/* FractalBrain — site styles
   Type: Source Serif 4 and Geist stand in for Stanley and GT Standard.
   To switch to the studio fonts, add their @font-face rules and change --serif and --sans. */

:root {
  --serif: 'Source Serif 4', 'Times New Roman', Times, serif;
  --sans: Geist, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --bg: #FFFFFF;
  --ink: #060607;
  --soft: #3F3F46;
  --mute: #6B6B74;
  --rule: #E7E7EB;
  --yellow: #FFF566;
  --peach: #FFBC6A;
  --salmon: #F6507F;
  --purple: #9050F6;
  --blue: #5066F6;
  --sky: #50E3F6;
  --teal: #00DBA4;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
a { color: inherit; }
a:hover { color: var(--blue); }
p, h1, h2, h3, ul { margin: 0; }

.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 15px; text-decoration: none; }
.skip:focus { top: 12px; color: #FFFFFF; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
}
.top .wrap { min-height: 72px; padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; }
.mark { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1; letter-spacing: -0.012em; color: var(--ink); text-decoration: none; }
.mark:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 2.6vw, 40px); font-size: 15px; line-height: 16px; }
.nav a { padding: 14px 0; color: var(--mute); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }

/* Type */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.2vw, 90px); line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.title { max-width: 12em; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.024em; text-wrap: balance; }
.h2.small { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.lead { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 29px); line-height: 1.32; letter-spacing: -0.012em; text-wrap: pretty; }
.big { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.text { font-size: 18px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.text.sm { font-size: 17px; }
.strong { font-size: 19px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.stack { display: flex; flex-direction: column; gap: 22px; max-width: 32em; }
.stack.tight { gap: 18px; max-width: 30em; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: clamp(640px, 50vw + 100px, 860px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(36px, 5.5vw, 80px); pointer-events: none; }
.hero-copy { max-width: min(640px, 100%); display: flex; flex-direction: column; gap: 24px; pointer-events: auto; }
.hero-copy p { max-width: 30em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--soft); text-wrap: pretty; }

/* Sections */
.section { padding-top: clamp(72px, 9vw, 136px); padding-bottom: clamp(72px, 9vw, 136px); }
.yellow { background: var(--yellow); color: var(--ink); }
.yellow .text { color: #3A3A33; }
.purple { background: var(--purple); color: #FFFFFF; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 28px clamp(32px, 6vw, 96px); }
.split.start { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.split.end { align-items: end; }
.split.base { align-items: baseline; gap: 20px clamp(32px, 6vw, 96px); }

.go { display: inline-flex; align-self: flex-start; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; font-weight: 500; text-decoration: none; }
.go svg { transition: transform 0.25s ease; }
.go:hover svg { transform: translateX(4px); }
.pill { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; transition: background-color 0.2s ease; }
.pill:hover { background: var(--yellow); color: var(--ink); }

/* Home: architecture */
.arch { display: flex; flex-wrap: wrap; align-items: stretch; gap: 40px clamp(32px, 5vw, 80px); }
.arch-copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.arch-copy .stack { max-width: 26em; }
.arch-fig { flex: 2.3 1 520px; min-width: 0; }

.lattice { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 340px; overflow: hidden; background: #F4F4F6; }
.lattice canvas, .seq canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fig-label { position: absolute; left: 20px; top: 16px; font-size: 13px; line-height: 20px; font-weight: 500; pointer-events: none; }
.stages { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.stages button {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(6, 6, 7, 0.18); background: rgba(255, 255, 255, 0.8); color: var(--ink);
  font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer;
}
.stages button:hover { border-color: var(--ink); }
.stages button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #F4F4F6; }

/* Research */
.page-head { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-head.roomy { padding-bottom: clamp(56px, 7vw, 96px); }
.page-head .title.narrow { max-width: 11em; }
.page-head .intro { max-width: 22em; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; color: var(--soft); }
.seq { position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 320px; overflow: hidden; background: var(--ink); }
.question .lead { max-width: 24em; }
.question .text { max-width: 26em; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 96px); padding-bottom: clamp(72px, 9vw, 136px); }
.area { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--ink); }
.area h3 { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(27px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -0.018em; }
.area h3::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--c); }
.area .strong { max-width: 30em; }
.area .text { max-width: 32em; font-size: 17px; }
.outputs { border-top: 1px solid var(--rule); }
.outputs .section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.outputs .text { max-width: 28em; }

/* People */
.team { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.team li { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 2.3fr) 168px; gap: 4px 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.team .name { font-family: var(--serif); font-size: clamp(23px, 2vw, 28px); line-height: 1.2; letter-spacing: -0.012em; }
.team .role { font-size: 15px; line-height: 1.4; color: var(--mute); }
.team .bio { font-size: 17px; line-height: 1.5; color: var(--soft); }
.team .links { display: flex; gap: 20px; font-size: 14px; line-height: 16px; }
.team .links a, .ext { display: inline-flex; align-items: center; gap: 6px; padding: 14px 0; text-decoration: none; }
.team-wrap { padding-bottom: clamp(80px, 10vw, 144px); }

/* Careers */
.positions { padding-bottom: clamp(72px, 9vw, 128px); }
.positions .h2 { padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.empty { padding: 26px 0; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.5; color: var(--soft); }
.purple .big { max-width: 18em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -0.015em; }
.hire-intro { padding-bottom: clamp(64px, 8vw, 112px); }
.roles-note { padding: 18px 0 0; font-size: 17px; color: var(--soft); }
.roles { margin-top: 8px; }
.role { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px clamp(32px, 6vw, 96px); padding: 36px 0; border-bottom: 1px solid var(--rule); }
.role-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.role h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.018em; }
.role-meta { font-size: 15px; color: var(--mute); }
.role-apply { font-size: 16px; margin-top: 6px; }
.role-body { display: flex; flex-direction: column; gap: 16px; max-width: 40em; font-size: 17px; line-height: 1.55; color: var(--soft); }
.role-body strong { color: var(--ink); font-weight: 500; }
@media (max-width: 800px) { .role { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.foot { background: var(--ink); color: #FFFFFF; }
.foot .wrap { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 28px; display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.foot-about { flex: 1 1 300px; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.foot .mark { align-self: flex-start; font-size: 30px; color: #FFFFFF; }
.foot-about p { font-size: 16px; line-height: 1.55; color: #A9A9B3; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 64px; font-size: 15px; line-height: 16px; }
.foot nav div { display: flex; flex-direction: column; }
.foot nav a { padding: 14px 0; color: #FFFFFF; text-decoration: none; }
.foot nav a:hover { color: var(--sky); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.legal { padding-top: 22px; border-top: 1px solid #26262C; font-size: 14px; line-height: 1.4; color: #A9A9B3; }

/* Tablet */
@media (max-width: 1000px) {
  .team li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .team .bio, .team .links { grid-column: 1 / -1; }
}
/* Tablets held upright: the field sits above the title and gets more room */
@media (min-width: 600px) and (max-aspect-ratio: 4/5) {
  .hero { min-height: min(108vw, 980px); }
}
/* Phones */
@media (max-width: 700px) {
  .seq { aspect-ratio: auto; height: clamp(340px, 96vw, 440px); min-height: 0; }
}
@media (max-width: 560px) {
  .top .wrap { min-height: 60px; padding-top: 6px; padding-bottom: 6px; gap: 0 14px; }
  .mark { font-size: 22px; }
  .nav { gap: 0 14px; font-size: 14px; }
  .nav .home { display: none; }
  .hero-copy { gap: 18px; }
  .team li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .team .links { gap: 24px; }
  .foot nav { gap: 8px 48px; }
}
@media (max-width: 380px) {
  :root { --pad: 16px; }
  .mark { font-size: 20px; }
  .nav { gap: 0 12px; font-size: 13.5px; }
  .display { font-size: 37px; }
  .title { font-size: 37px; }
  .stages button { padding: 0 12px; font-size: 12.5px; }
}
/* Phones turned sideways: keep the hero within one screen */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: max(340px, calc(100svh - 72px)); }
  .display { font-size: clamp(32px, 5vw, 50px); }
  .hero-copy { max-width: 50%; gap: 14px; }
  .hero-copy p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .go svg, .pill { transition: none; }
}
