/* --------------------------------------------------------------------------
   Nexora Studio — site v11 (prototype)
   Multi-page, motion-first. A live pixel field sits behind every page and
   reacts to the pointer and the scroll. Sections enter with masked text,
   pinned scenes, stacked cards and horizontal tracks (GSAP + Lenis).
   Without JS everything is plain, readable and static.
   Pages are generated by tools/build_v11.py.
   -------------------------------------------------------------------------- */

:root {
  --ink: #0c100f;
  --ink-2: #131917;
  --ink-3: #1a211f;
  --paper: #ece6d8;
  --cream: #ece6d8;
  --cream-2: rgba(236, 230, 216, 0.68);
  --cream-3: rgba(236, 230, 216, 0.4);
  --dark: #141412;
  --dark-2: rgba(20, 20, 18, 0.66);
  --line: rgba(236, 230, 216, 0.14);
  --line-l: rgba(20, 20, 18, 0.16);
  --accent: #ff6a2b;
  --cond: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --pixel: "Doto", "JetBrains Mono", monospace;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--ink); padding: 8px 14px; font: 500 13px var(--mono); }
.skip:focus { left: 8px; }
main { position: relative; z-index: 1; }

/* ---------- live background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.bg-glow { position: fixed; z-index: 0; width: 60vmax; height: 60vmax; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,106,43,.13), transparent 70%); transform: translate(-50%, -50%); will-change: transform; }

/* ---------- type ---------- */
.cond { font-family: var(--cond); font-weight: 800; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.01em; }
.serif { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.01em; }
.label { display: block; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 28px; }
.muted { color: var(--cream-2); }
.link { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .2s; }
.link:hover { color: var(--accent); }

/* split text (built by JS) */
.sl { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.sl > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px;
  font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  transition: translate .35s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { translate: 0 -2px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--line { border: 1px solid rgba(12,16,15,.35); color: var(--ink); }
.btn--line:hover { background: rgba(12,16,15,.08); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; gap: 28px;
  height: 68px; padding: 0 var(--gutter); transition: transform .5s var(--ease), background .3s; }
.top.is-scrolled { background: rgba(12,16,15,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top.is-hidden { transform: translateY(-100%); }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--cond); letter-spacing: .02em; }
.top__brand img { border-radius: 5px; }
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a { position: relative; padding: 8px 14px; text-decoration: none; font: 500 13px var(--sans); color: var(--cream-2); transition: color .2s; }
.top__nav a:hover, .top__nav a[aria-current] { color: var(--cream); }
.top__nav a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); }
.top .btn { height: 42px; padding: 0 18px; }
.top__menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--cream); cursor: pointer; }
.top__menu span { display: block; width: 16px; height: 1px; margin: 4px auto; background: currentColor; transition: transform .3s; }
.drawer { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 100px var(--gutter) 40px;
  background: var(--accent); color: var(--ink); clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.76,0,.24,1); }
.drawer a { font: 900 clamp(48px, 13vw, 96px)/0.95 var(--cond); text-transform: uppercase; text-decoration: none; }
.drawer.is-open { clip-path: inset(0 0 0 0); }
.is-menu .top__menu span:first-child { transform: translateY(2.5px) rotate(45deg); }
.is-menu .top__menu span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* ---------- page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); transform: translateY(100%); }
.curtain b { font: 900 clamp(70px, 14vw, 220px)/0.8 var(--cond); text-transform: uppercase; letter-spacing: -.015em; opacity: 0; }
.js .curtain.is-covering { transform: translateY(0); }

/* ---------- hero (every page) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px 0 56px; overflow: hidden; }
.hero__kicker { margin-bottom: 26px; }
.hero__title { font: 900 clamp(56px, min(15vw, calc(40svh - 130px)), 250px)/0.82 var(--cond); text-transform: uppercase; letter-spacing: -.015em; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 600px) auto; justify-content: space-between; align-items: end; gap: 32px; margin-top: clamp(20px, 4svh, 44px); }
.hero__foot .serif { color: var(--cream-2); }
.hero__hint { position: absolute; right: var(--gutter); bottom: 72px; display: flex; align-items: center; gap: 12px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--cream-3); writing-mode: vertical-rl; }
.hero__hint::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--cream-3), transparent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero--short { min-height: 88svh; }

/* ---------- generic section ---------- */
.sec { position: relative; padding: clamp(110px, 14vw, 220px) 0; }

/* big statement with words that light up while scrolling */
.statement__text { font: 400 clamp(36px, 5.6vw, 92px)/1.03 var(--serif); letter-spacing: -.02em; max-width: 1240px; }
.statement__text .w { opacity: 1; }
.motion .statement__text .w { opacity: .14; }

/* ---------- home: "what we do" pinned scene ---------- */
.doing { position: relative; height: 100svh; overflow: hidden; }
.doing__inner { position: relative; height: 100%; display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 40px; }
.doing__list { position: relative; }
.doing__item { display: flex; align-items: baseline; gap: 24px; font: 900 clamp(56px, 9vw, 150px)/0.9 var(--cond); text-transform: uppercase; color: rgba(236,230,216,.12); transition: color .4s; }
.doing__item small { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--cream-3); }
.doing__item.is-on { color: var(--cream); }
.doing__item.is-on small { color: var(--accent); }
.doing__copy { position: relative; min-height: 180px; }
.doing__copy p { position: absolute; inset: 0 auto auto 0; max-width: 440px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
.doing__copy p.is-on { opacity: 1; transform: none; }
.doing__copy p:first-child { opacity: 1; transform: none; }
.motion .doing__copy p:first-child:not(.is-on) { opacity: 0; transform: translateY(20px); }
.doing__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; height: 1px; background: var(--line); }
.doing__bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); white-space: nowrap; }
.marquee__row { display: inline-flex; gap: 48px; font: 900 clamp(56px, 8vw, 128px)/1 var(--cond); text-transform: uppercase; will-change: transform; }
.marquee__row span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__row span::after { content: ""; width: .14em; height: .14em; background: var(--accent); }
.marquee__row .o { color: transparent; -webkit-text-stroke: 1px var(--cream-2); }

/* ---------- horizontal track (history, services) ---------- */
.track { position: relative; overflow: hidden; }
.track__head { padding-top: clamp(100px, 12vw, 180px); }
.track__rail { display: flex; gap: clamp(20px, 3vw, 40px); padding: 48px var(--gutter) clamp(100px, 12vw, 160px); width: max-content; will-change: transform; }
.panel { position: relative; flex: 0 0 auto; width: min(78vw, 560px); min-height: 520px; padding: 36px; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.panel__num { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--accent); }
.panel__year { margin-top: auto; font: 900 clamp(88px, 10vw, 150px)/0.85 var(--cond); color: transparent; -webkit-text-stroke: 1px var(--cream-3); }
.panel h3 { font: 800 clamp(40px, 4vw, 64px)/0.9 var(--cond); text-transform: uppercase; margin: 18px 0 14px; }
.panel p { color: var(--cream-2); max-width: 420px; }
.panel--accent { background: var(--accent); color: var(--ink); border-color: transparent; }
.panel--accent p { color: var(--dark-2); }
.panel--accent .panel__num { color: var(--ink); }
.panel--accent .panel__year { -webkit-text-stroke-color: rgba(12,16,15,.5); }
.panel--paper { background: var(--paper); color: var(--dark); border-color: transparent; }
.panel--paper p { color: var(--dark-2); }
.panel--paper .panel__num { color: #c2410c; }
.panel .tags { margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags i { font: normal 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 6px 11px; border: 1px solid currentColor; border-radius: 999px; opacity: .7; }
.checks { margin: 22px 0 28px; border-top: 1px solid var(--line); }
.checks li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.checks li::after { content: "✓"; color: var(--accent); }

/* ---------- stacked cards ---------- */
.stack { position: relative; padding-bottom: clamp(80px, 10vw, 140px); }
.stack__card { position: sticky; top: 100px; min-height: calc(100svh - 160px); margin: 0 var(--gutter) 40px; padding: clamp(28px, 4vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-content: space-between;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 8px; transform-origin: 50% 0; will-change: transform; }
.stack__card:nth-child(2) { background: var(--paper); color: var(--dark); border-color: transparent; }
.stack__card:nth-child(3) { background: #232b28; }
.stack__card:nth-child(4) { background: var(--accent); color: var(--ink); border-color: transparent; }
.stack__time { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.stack__card h3 { grid-column: 1 / -1; font: 900 clamp(64px, 11vw, 190px)/0.85 var(--cond); text-transform: uppercase; letter-spacing: -.01em; }
.stack__card p { grid-column: 2; font: 400 clamp(20px, 2vw, 30px)/1.25 var(--serif); }
.stack__card .stack__n { justify-self: end; font: 900 clamp(40px, 4vw, 64px)/1 var(--cond); opacity: .3; }

/* ---------- work: cases ---------- */
.case { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.case__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.case--flip .case__media { order: 2; }
.case__media { position: relative; display: flex; justify-content: center; align-items: center; gap: 3%; padding: clamp(48px, 6vw, 88px) 6%;
  background: var(--ink-2); border-radius: 6px; overflow: hidden;
  background-image: radial-gradient(rgba(236,230,216,.08) 1px, transparent 1px); background-size: 18px 18px; }
.case__media::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .45; background: var(--glow, #3b5bff); }
.case__media img { position: relative; width: 30%; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.5); will-change: transform; }
.case__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 18px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cream-3); }
.case__name { font-size: clamp(88px, 11vw, 180px); margin-bottom: 22px; }
.case__copy > .serif { margin-bottom: 18px; }
.case__copy > p:not(.serif) { color: var(--cream-2); margin-bottom: 32px; max-width: 520px; }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: 32px; }
.figs div { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.figs div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.figs dt { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cream-3); margin-bottom: 6px; }
.figs dd { font: 800 clamp(36px, 3.6vw, 56px)/1 var(--cond); }

/* ---------- team ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { position: relative; padding: 32px; min-height: 440px; display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.person__ini { font: 900 clamp(110px, 12vw, 190px)/0.8 var(--cond); color: transparent; -webkit-text-stroke: 1px var(--cream-3); margin-bottom: auto; transition: color .5s, -webkit-text-stroke-color .5s; }
.person:hover .person__ini { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.person__role { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 28px 0 8px; }
.person h3 { font: 600 22px/1.25 var(--sans); margin-bottom: 10px; }
.person p { font-size: 15px; color: var(--cream-2); }
.hiring { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; margin-top: 20px; padding: clamp(32px, 4vw, 56px); background: var(--paper); color: var(--dark); border-radius: 6px; }
.hiring h3 { font: 900 clamp(48px, 6vw, 96px)/0.9 var(--cond); text-transform: uppercase; }
.hiring p { color: var(--dark-2); margin-top: 12px; max-width: 520px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.values li { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); }
.values li:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.values h3 { font: 800 clamp(34px, 3.4vw, 54px)/0.95 var(--cond); text-transform: uppercase; margin-bottom: 14px; }
.values p { color: var(--cream-2); max-width: 460px; }

/* ---------- contact ---------- */
.contact { background: var(--accent); color: var(--ink); }
.contact .hero__title { color: var(--ink); }
.contact .label { color: var(--ink); }
.contact .serif { color: var(--dark-2) !important; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.way { display: flex; flex-direction: column; min-height: 300px; padding: 32px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--ink-2);
  transition: background .3s, color .3s, translate .5s var(--ease); }
.way:hover { background: var(--cream); color: var(--ink); translate: 0 -6px; }
.way:hover p { color: var(--dark-2); }
.way small { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.way h3 { font: 800 clamp(40px, 4vw, 64px)/0.9 var(--cond); text-transform: uppercase; margin: auto 0 12px; }
.way p { color: var(--cream-2); }
.mail { display: inline-block; margin-top: 40px; font: 900 clamp(32px, 6vw, 96px)/1 var(--cond); text-transform: uppercase; text-decoration: none; border-bottom: .06em solid var(--accent); }
.mail:hover { color: var(--accent); }
.faq { max-width: 1000px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 400 clamp(22px, 2.2vw, 34px)/1.2 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px var(--mono); color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 700px; color: var(--cream-2); }

/* ---------- next page (end of every page) ---------- */
.next { position: relative; display: block; padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 9vw, 120px); text-decoration: none; overflow: hidden; border-top: 1px solid var(--line); }
.next__label { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cream-3); }
.next__title { display: flex; align-items: center; gap: .2em; margin-top: 18px; font: 900 clamp(90px, 17vw, 300px)/0.8 var(--cond); text-transform: uppercase; letter-spacing: -.015em; transition: color .4s; }
.next__title span { display: inline-block; transition: translate .6s var(--ease); }
.next:hover .next__title { color: var(--accent); }
.next:hover .next__title span:last-child { translate: .15em 0; }
.next__fill { position: absolute; inset: 0; background: var(--ink-2); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); z-index: -1; }
.next:hover .next__fill { transform: scaleY(1); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cream-3); }
.foot__grid nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ---------- motion initial states (only when the motion engine runs) ---------- */
.motion [data-fade] { opacity: 0; transform: translateY(40px); }
.motion [data-clip] { clip-path: inset(100% 0 0 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .top__nav, .top > .btn { display: none; }
  .top__menu { display: block; }
  .people { grid-template-columns: 1fr; }
  .person { min-height: 300px; }
  .ways { grid-template-columns: 1fr; }
  .way { min-height: 200px; }
}
@media (max-width: 860px) {
  .hero__foot, .case__grid, .doing__inner, .hiring { grid-template-columns: 1fr; }
  .case--flip .case__media { order: 0; }
  .doing { height: auto; padding: 120px 0; }
  .doing__copy { display: none; }
  .doing__item { color: var(--cream); }
  .doing__bar { display: none; }
  .stack__card { grid-template-columns: 1fr; top: 84px; }
  .stack__card p { grid-column: 1; }
  .values { grid-template-columns: 1fr; }
  .values li:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero__hint { display: none; }
}
@media (max-width: 560px) {
  .figs dd { font-size: 30px; }
  .panel { min-height: 460px; padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__hint::after, .chip { animation: none !important; }
}

/* On the apricot contact page the header button flips to ink. */
body[data-page="Contact"] .top:not(.is-scrolled) .btn--accent { background: var(--ink); color: var(--cream); }
body[data-page="Contact"] .top:not(.is-scrolled) .top__nav a { color: rgba(12,16,15,.7); }
body[data-page="Contact"] .top:not(.is-scrolled) .top__brand { color: var(--ink); }

/* Phones: the horizontal tracks become a swipeable row instead of a pinned scene. */
@media (max-width: 860px) {
  .track__rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .track__rail::-webkit-scrollbar { display: none; }
  .panel { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
}

/* Desktop: a pinned track fills exactly one screen, so the cards are always fully visible. */
@media (min-width: 861px) {
  .track { height: 100vh; display: flex; flex-direction: column; }
  .track__head { flex: none; padding-top: clamp(84px, 11vh, 120px); }
  .track__head .label { margin-bottom: 14px; }
  .track__head h2 { font-size: clamp(48px, min(7vw, 11vh), 120px) !important; }
  .track__rail { flex: 1; min-height: 0; align-items: stretch; padding-top: clamp(20px, 3vh, 40px); padding-bottom: clamp(24px, 5vh, 56px); }
  .panel { min-height: 0; height: 100%; padding: clamp(22px, 3.4vh, 36px); }
  .panel h3 { font-size: clamp(32px, min(4vw, 6.4vh), 64px); margin: clamp(8px, 1.6vh, 18px) 0 clamp(8px, 1.4vh, 14px); }
  .panel .checks { margin: clamp(10px, 2vh, 22px) 0 clamp(12px, 2.4vh, 28px); }
  .panel .checks li { padding: clamp(6px, 1.1vh, 11px) 0; }
  .panel__year { font-size: clamp(64px, min(10vw, 15vh), 150px); }
}

/* Founder cards open a profile */
.person { padding: 0; }
.person__open { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 32px; }
.person__open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.person__more { display: inline-flex; gap: 8px; margin-top: 24px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cream-2); transition: color .3s; }
.person__more span { display: inline-block; transition: rotate .4s var(--ease); }
.person:hover { border-color: rgba(255,106,43,.5); }
.person:hover .person__more { color: var(--accent); }
.person:hover .person__more span { rotate: 90deg; }

.profile { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 10px;
  background: var(--ink-2); color: var(--cream); overflow: auto; }
.profile::backdrop { background: rgba(6,8,7,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.profile__inner { position: relative; display: grid; grid-template-columns: 4fr 7fr; min-height: 560px; }
.profile__ini { display: flex; align-items: flex-end; padding: 32px; background: var(--accent); color: var(--ink);
  font: 900 clamp(120px, 16vw, 240px)/0.8 var(--cond); letter-spacing: -.02em; }
.profile__body { padding: clamp(28px, 4vw, 56px); }
.profile__name { font: 900 clamp(48px, 5.4vw, 88px)/0.88 var(--cond); text-transform: uppercase; margin-bottom: 22px; }
.profile__body .serif { color: var(--cream-2); font-size: clamp(20px, 1.8vw, 26px); margin-bottom: 32px; }
.profile__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 24px 0; border-block: 1px solid var(--line); margin-bottom: 24px; }
.profile__h { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cream-3); margin-bottom: 12px; }
.profile__built li { padding: 4px 0; font-size: 15px; }
.profile__built li::before { content: "→ "; color: var(--accent); }
.profile__note { display: block; text-decoration: none; font: 400 clamp(22px, 2vw, 30px)/1.2 var(--serif); margin-bottom: 28px; transition: color .2s; }
.profile__note:hover { color: var(--accent); }
.profile__links { display: flex; flex-wrap: wrap; gap: 8px; }
.profile__link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.profile__link:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.profile__close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--ink-2); color: var(--cream); font: 300 26px/1 var(--sans); cursor: pointer; transition: rotate .4s var(--ease), background .2s; }
.profile__close:hover { rotate: 90deg; background: var(--accent); color: var(--ink); }
html.is-modal { overflow: hidden; }
@media (max-width: 760px) {
  .profile__inner { grid-template-columns: 1fr; min-height: 0; }
  .profile__ini { font-size: 110px; padding: 24px; min-height: 160px; }
  .profile__cols { grid-template-columns: 1fr; }
}

/* Custom scrollbar: thin ink track, apricot thumb, no arrow buttons. */
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--ink); } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--ink); border-radius: 999px; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: #ff8a55; border-width: 2px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: var(--ink); }

/* Profile popup on short screens (laptops at 100% zoom): tighter, so it fits without scrolling. */
@media (min-width: 761px) and (max-height: 820px) {
  .profile { max-height: calc(100svh - 20px); }
  .profile__inner { min-height: 0; }
  .profile__body { padding: clamp(16px, 3vh, 40px) clamp(24px, 3vw, 44px); }
  .profile__body .label { margin-bottom: 10px; }
  .profile__name { font-size: clamp(36px, 7.5vh, 72px); margin-bottom: 12px; }
  .profile__body .serif { font-size: clamp(16px, 2.6vh, 22px); margin-bottom: 14px; }
  .profile__cols { padding: 12px 0; margin-bottom: 12px; gap: 20px; }
  .profile__h { margin-bottom: 6px; }
  .profile__built li { padding: 1px 0; font-size: 14px; }
  .tags i { padding: 4px 9px; font-size: 10px; }
  .profile__note { font-size: clamp(17px, 2.8vh, 24px); margin-bottom: 14px; }
  .profile__link { height: 38px; padding: 0 14px; }
  .profile__ini { font-size: clamp(100px, 24vh, 200px); padding: 24px; }
}

/* Profile dialog: keep long names inside the card */
.profile__body { min-width: 0; }
.profile__name--long { font-size: clamp(32px, 4.4vw, 68px); }
