/* ==========================================================================
   Gale Mind — site styles
   Palette: night/ink (storm), paper (chart), signal (gale-warning orange),
   sea (Bosphorus teal). Type: Instrument Serif / Geist / Geist Mono.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext for Turkish) ---------- */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/assets/fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(/assets/fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --night: #07090b;
  --ink: #0f1113;
  --ink-2: #17191c;
  --paper: #f3efe7;
  --paper-2: #e9e3d6;
  --foam: #eef1f0;
  --fog: #9ba3a8;
  --stone: #5f5b53;
  --signal: #ff5b22;
  --signal-hover: #ff7444;
  --signal-deep: #b93a0a;
  --sea: #0e3433;
  --aqua: #8ed8cb;

  --line-dark: rgba(238, 241, 240, .13);
  --line-light: rgba(15, 17, 19, .13);

  --f-serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
  --radius: clamp(20px, 2.4vw, 32px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--foam);
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--signal); color: var(--ink); font-weight: 500;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Shared small-caps mono voice: labels, figures, data */
.eyebrow, .mono-label, .section-tag, .card-num, .card-fig figcaption,
.hero-bar, .tags li, .footer-bottom, .bf-readout, .bf-bars .n, .beaufort figcaption {
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.mono-label { color: var(--stone); }

.arrow { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }

/* ---------- Buttons & links ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  height: var(--h); padding: 0 1.45em; border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .3s, color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-hover); }
.btn-ghost { color: var(--foam); box-shadow: inset 0 0 0 1px rgba(238, 241, 240, .28); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(238, 241, 240, .75); background: rgba(238, 241, 240, .04); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .2s;
}
.link-arrow:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link-arrow:hover .arrow { transform: translate(2px, 2px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 12px var(--gutter);
  color: var(--foam);
  pointer-events: none;
  transition: color .35s;
  animation: fade-in 1s .5s var(--ease-out) backwards;
}
.nav-bar {
  pointer-events: auto;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-inline: auto;
  height: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  transition: background-color .35s, box-shadow .35s;
}
.nav.is-scrolled .nav-bar {
  background: rgba(12, 14, 16, .7);
  box-shadow: inset 0 0 0 1px rgba(238, 241, 240, .09), 0 10px 30px -14px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.nav[data-on='light'], .nav[data-on='signal'] { color: var(--ink); }
.nav[data-on='light'].is-scrolled .nav-bar,
.nav[data-on='signal'].is-scrolled .nav-bar {
  background: rgba(243, 239, 231, .8);
  box-shadow: inset 0 0 0 1px rgba(15, 17, 19, .08), 0 10px 30px -14px rgba(15, 17, 19, .25);
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.mark { width: 26px; height: 26px; transition: transform .8s var(--ease-out); }
.brand:hover .mark { transform: rotate(-90deg); }
.mark-a { fill: currentColor; }
.mark-b { fill: var(--signal); }
.brand-word { font-family: var(--f-serif); font-size: 1.62rem; line-height: 1; letter-spacing: -.01em; padding-top: 2px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: .92rem;
  opacity: .78; transition: opacity .2s, background-color .2s;
}
.nav-links a:hover, .nav-links a[aria-current='true'] { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.btn-nav { --h: 40px; justify-self: end; padding: 0 1.15em; font-size: .9rem; background: var(--foam); color: var(--ink); }
.btn-nav:hover { background: #fff; }
.nav[data-on='light'] .btn-nav, .nav[data-on='signal'] .btn-nav { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none; justify-self: end;
  width: 44px; height: 44px; border-radius: 999px;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded='true'] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  gap: 32px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--night); color: var(--foam);
  animation: fade-in .35s var(--ease-out);
}
.menu[hidden] { display: none; }
.menu-links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--f-serif); font-size: clamp(2rem, 8.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.01em;
  animation: rise .7s var(--ease-out) backwards;
}
.menu-links a:nth-child(2) { animation-delay: .04s; }
.menu-links a:nth-child(3) { animation-delay: .08s; }
.menu-links a:nth-child(4) { animation-delay: .12s; }
.menu-links a:nth-child(5) { animation-delay: .16s; }
.menu-links a:nth-child(6) { animation-delay: .2s; }
.menu-links a:nth-child(7) { animation-delay: .24s; }
.menu-links a:nth-child(8) { animation-delay: .28s; }
.menu-links small { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em; color: var(--fog); }
.menu-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fog); font-size: .9rem; }
.menu-foot a { color: var(--foam); }
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-bar { grid-template-columns: 1fr auto; padding-left: 14px; padding-right: 6px; }
  .nav-links, .btn-nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 600px;
  display: grid; grid-template-rows: 1fr auto;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90vmax 60vmax at 100% -10%, rgba(255, 91, 34, .13), transparent 55%),
    radial-gradient(80vmax 70vmax at -10% 110%, rgba(14, 52, 51, .55), transparent 60%),
    var(--night);
  color: var(--foam);
}
.hero::after { /* film grain */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .07;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  animation: fade-in 2.4s .1s var(--ease-out) backwards;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 24% 72%, rgba(7, 9, 11, .72), rgba(7, 9, 11, 0) 72%),
    linear-gradient(to top, rgba(7, 9, 11, .8), rgba(7, 9, 11, 0) 26%);
}
.hero-inner {
  align-self: end;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: clamp(28px, 5.5vh, 64px);
  transform: translateY(calc(var(--hp, 0) * -6vh)) scale(calc(1 - var(--hp, 0) * .04));
  transform-origin: 0 100%;
  opacity: calc(1 - var(--hp, 0) * 1.1);
}
.hero-eyebrow { display: flex; align-items: center; gap: 12px; color: rgba(238, 241, 240, .74); animation: fade-in 1s .2s var(--ease-out) backwards; }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.pulse::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--signal); animation: ping 2.4s var(--ease-out) infinite;
}
.hero-title {
  margin: clamp(14px, 2.4vh, 24px) 0 clamp(26px, 4.5vh, 48px);
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(3.4rem, 1.1rem + 8.6vw, 10.6rem);
  line-height: .88; letter-spacing: -.028em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .1em .12em 0; margin-bottom: -.12em; }
.hero-title .line > span { display: inline-block; animation: line-up 1.25s .15s var(--ease-out) backwards; }
.hero-title .line + .line > span { animation-delay: .27s; }
.hero-title em { color: var(--signal); letter-spacing: -.02em; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.hero-lede {
  max-width: 40ch; font-size: clamp(1.02rem, .94rem + .32vw, 1.2rem); line-height: 1.5;
  color: rgba(238, 241, 240, .78);
  animation: rise 1.1s .5s var(--ease-out) backwards;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: rise 1.1s .62s var(--ease-out) backwards; }

.hero-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  min-height: 58px; padding-block: 12px;
  border-top: 1px solid var(--line-dark);
  font-size: .7rem; color: var(--fog);
  opacity: calc(1 - var(--hp, 0) * 1.4);
  animation: fade-in 1.2s .9s var(--ease-out) backwards;
}
.readout { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.readout b { font-weight: 500; color: var(--foam); }
.readout-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--foam); box-shadow: 0 0 0 4px rgba(238, 241, 240, .12); transition: background-color .3s, box-shadow .3s; }
.readout-label { color: rgba(238, 241, 240, .5); }
.readout-dir::before, .readout-force::before, .readout-kn::before {
  content: ''; display: inline-block; width: 1px; height: 10px; margin-right: 14px; background: var(--line-dark); vertical-align: -1px;
}
.readout-kn b { display: inline-block; min-width: 2ch; text-align: right; }
.readout-hint { justify-self: center; color: rgba(238, 241, 240, .5); }
.readout-hint > span { display: none; }
@media (pointer: fine) { .hero:not(.is-gale) .hint-fine { display: inline; } }
@media (pointer: coarse) { .hero:not(.is-gale) .hint-coarse { display: inline; } }
.hero.is-gale .hint-gale { display: inline; color: var(--signal); }
.hero.is-gale .readout-dot { background: var(--signal); box-shadow: 0 0 0 5px rgba(255, 91, 34, .25); }
.hero.is-gale [data-force] { color: var(--signal); }
.coords { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.coords time { color: var(--foam); }
.sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }

@media (max-width: 1100px), (prefers-reduced-motion: reduce) { .readout-hint { visibility: hidden; } }
/* Short screens (landscape phones): a sticky hero taller than the viewport would hide its own
   lower half behind the sheet, so let it scroll normally instead. */
@media (max-height: 640px) {
  .hero { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
}
@media (max-width: 760px) {
  .hero-bar { grid-template-columns: 1fr auto; }
  .readout-hint, .readout-dir, .readout-label { display: none; }
  .hero-bar .coord-ll { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .hero-bar .coord-city { display: none; }
}

/* ---------- Content sheet ---------- */
.sheet {
  position: relative; z-index: 2;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, .55);
  color-scheme: light;
}
.sheet-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

.section { padding-block: clamp(88px, 11vw, 168px); }
.section-tag { display: flex; align-items: center; gap: 12px; color: var(--stone); }
.section-tag .idx {
  display: inline-grid; place-items: center; height: 24px; padding: 0 9px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor;
  font-size: .68rem; letter-spacing: .04em;
}
.title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.7rem, 1rem + 5.4vw, 6.6rem);
  line-height: .94; letter-spacing: -.025em;
  text-wrap: balance;
}
.title em { color: var(--signal-deep); }
.section-head { display: grid; gap: 26px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-intro { max-width: 34ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--stone); }
@media (min-width: 960px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; column-gap: 72px; row-gap: 32px; }
  .section-head .section-tag { grid-column: 1 / -1; }
  .section-intro { padding-bottom: .55em; }
}

/* ---------- Mission ---------- */
.mission { padding-bottom: clamp(56px, 7vw, 110px); }
.mission-grid { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .mission-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); gap: 48px; }
  .mission .section-tag { padding-top: .9em; align-self: start; }
}
.statement {
  font-family: var(--f-serif);
  font-size: clamp(1.95rem, 1rem + 3vw, 4.15rem);
  line-height: 1.07; letter-spacing: -.018em;
  text-wrap: pretty;
}
.statement em { color: var(--signal-deep); }
.statement.is-split .w { opacity: .15; transition: opacity .3s linear; }
.mission .link-arrow { margin-top: clamp(32px, 4vw, 52px); }

/* ---------- Focus: stacking cards ---------- */
.stack { display: grid; gap: 20px; }
.card {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-radius: var(--radius); overflow: hidden;
}
.card-ink { background: var(--ink); color: var(--foam); }
.card-signal { background: var(--signal); color: var(--ink); }
.card-sea { background: var(--sea); color: var(--foam); }
.card-ink::before, .card-sea::before { /* grain on dark cards */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .05;
}
.card-text { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 56px); }
.card-num { opacity: .65; }
.card-num span { opacity: 1; }
.card-title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.5rem, 1rem + 3.8vw, 5rem);
  line-height: .93; letter-spacing: -.025em;
  margin-top: 28px;
  text-wrap: balance;
}
.card-desc { max-width: 38ch; font-size: clamp(1rem, .96rem + .2vw, 1.12rem); line-height: 1.55; opacity: .8; }
.card-signal .card-desc { opacity: .86; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tags li { padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; font-size: .68rem; opacity: .78; }
.card-fig { position: relative; min-height: 320px; margin: 0 12px 12px; border-radius: calc(var(--radius) - 10px); overflow: hidden; }
.card-fig::after { /* chart frame */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent);
}
.card-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-ink .card-fig { background: rgba(255, 255, 255, .025); }
.card-signal .card-fig { background: rgba(0, 0, 0, .04); }
.card-sea .card-fig { background: rgba(0, 0, 0, .12); }
.card-fig figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 16px;
  font-size: .66rem; line-height: 1.5; opacity: .7;
  pointer-events: none;
}
.card-fig figcaption span { margin-right: 8px; opacity: 1; font-weight: 500; }

@media (min-width: 960px) {
  .card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 560px; }
  .card-text { padding-right: 24px; }
  .card-title { margin-top: auto; }
  .card-fig { margin: 14px 14px 14px 0; min-height: 0; }
}
/* Sticky stacking deck on roomy screens */
@media (min-width: 960px) and (min-height: 680px) {
  .stack { gap: 14vh; padding-bottom: 4vh; }
  .card {
    position: sticky;
    top: calc(var(--nav-h) + 36px + var(--i) * 16px);
    height: min(calc(100vh - var(--nav-h) - 96px), 700px);
    transform-origin: 50% 0;
    transform: scale(calc(1 - var(--cover, 0) * .06));
  }
  .card::after {
    content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: #000; opacity: calc(var(--cover, 0) * .4);
  }
}

/* ---------- Approach ---------- */
.approach { padding-top: clamp(56px, 7vw, 110px); }
.steps { display: grid; gap: 52px; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.step { position: relative; padding-top: 34px; padding-right: clamp(0px, 3vw, 48px); }
.step-line { position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--line-light); overflow: hidden; }
.step-line::after {
  content: ''; position: absolute; top: 0; left: 0; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--signal-deep));
  transform: translateX(-100%);
  animation: run 4.8s linear infinite;
  animation-delay: calc(var(--i, 0) * 1.6s);
}
.node {
  position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink);
}
.step:last-child .node { background: var(--signal); box-shadow: none; }
.step-kicker { display: flex; gap: 10px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--stone); }
.step-kicker span { color: var(--ink); }
.step-title {
  margin: 18px 0 14px;
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2rem, 1rem + 1.9vw, 3rem); line-height: 1; letter-spacing: -.02em;
}
.step-desc { max-width: 32ch; color: var(--stone); font-size: 1.02rem; }

/* ---------- The name / Beaufort ---------- */
.name {
  position: relative; isolation: isolate;
  background: var(--ink); color: var(--foam);
  color-scheme: dark;
}
.name::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .05;
}
.name .section-tag { color: var(--fog); }
.name .title em { color: var(--signal); }
.name-grid { display: grid; gap: 32px; margin-bottom: clamp(56px, 8vw, 112px); }
.name-grid header { display: grid; gap: 26px; }
@media (min-width: 960px) { .name-grid { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 72px; } }
.name-copy p { max-width: 34ch; font-size: clamp(1.12rem, 1rem + .55vw, 1.45rem); line-height: 1.45; color: rgba(238, 241, 240, .74); }
.name-copy p + p { margin-top: .9em; color: var(--foam); }
.name-copy em { font-family: var(--f-serif); font-size: 1.12em; color: var(--foam); }

.beaufort { --bars-h: clamp(220px, 30vw, 380px); }
.bf-readout { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; min-height: 3.5rem; color: var(--fog); }
.bf-readout .bf-name {
  font-family: var(--f-serif); font-size: clamp(2.2rem, 1rem + 3vw, 3.6rem); line-height: 1;
  text-transform: none; letter-spacing: -.015em; color: var(--foam);
}
.bf-readout .bf-f { color: var(--signal); }
.bf-bars {
  display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); align-items: end;
  gap: clamp(5px, 1.5vw, 22px);
  height: var(--bars-h); margin-top: 72px;
}
.bf-bars li { position: relative; height: 100%; }
.bf-bars button {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; height: 100%; padding: 0; border-radius: 8px;
}
.bf-bars button:focus-visible { outline-offset: 4px; }
.bf-bars .bar {
  display: block; width: 100%;
  height: calc(var(--k) / 72 * (100% - 30px));
  min-height: 3px;
  border-radius: 7px 7px 2px 2px;
  background: rgba(238, 241, 240, .13);
  transform-origin: 50% 100%;
  transition: transform 1.2s var(--ease-out), background-color .25s;
  transition-delay: calc(var(--n, 0) * 45ms), 0s;
}
.js .beaufort .bar { transform: scaleY(0); }
.js .beaufort.is-in .bar { transform: none; }
.bf-bars .n { display: block; height: 30px; padding-top: 10px; text-align: center; color: var(--fog); font-size: .68rem; }
.bf-bars .is-poet .bar { background: rgba(238, 241, 240, .42); }
.bf-bars .is-gale .bar { background: var(--signal); }
.bf-bars .is-gale .n { color: var(--signal); }
.bf-bars button:hover .bar, .bf-bars button.is-active .bar { background: rgba(238, 241, 240, .7); }
.bf-bars .is-gale button.is-active .bar { background: var(--signal); }
.bf-bars .is-gale button:hover .bar { background: var(--signal-hover); }
.bf-bars .note {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1rem, .9rem + .5vw, 1.35rem); line-height: 1;
  color: var(--foam);
}
.bf-bars .is-gale .note { color: var(--signal); }
.bf-bars .is-poet button::before, .bf-bars .is-gale button::before { /* leader line */
  content: ''; position: absolute; left: 50%; top: 0; width: 1px;
  bottom: calc(var(--k) / 72 * (100% - 30px) + 30px + 8px);
  background: repeating-linear-gradient(to bottom, currentColor 0 3px, transparent 3px 6px);
  opacity: .5;
}
.bf-bars .is-gale button::before { color: var(--signal); opacity: .8; }
.beaufort figcaption { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: var(--fog); font-size: .68rem; text-transform: none; letter-spacing: .02em; }
@media (max-width: 640px) {
  .bf-bars .n { font-size: .6rem; }
  .bf-bars .note { font-size: .95rem; }
}

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(72px, 9vw, 140px); }
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1080px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 72px; align-items: start; } }
.email-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin: 16px 0 36px; }
.email {
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, .9rem + 3.6vw, 4.7rem); line-height: 1.02; letter-spacing: -.02em;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--signal-deep), var(--signal-deep)) 0 100% / 0% 2px no-repeat;
  padding-bottom: .04em;
  transition: background-size .6s var(--ease-out), color .3s;
}
.email:hover { color: var(--signal-deep); background-size: 100% 2px; }
.copy {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(15, 17, 19, .2);
  font-size: .85rem; color: var(--stone);
  transition: box-shadow .25s, color .25s, background-color .25s;
}
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.copy.is-copied { background: var(--ink); color: var(--paper); box-shadow: none; }
.topics { border-top: 1px solid var(--line-light); }
.topics a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid var(--line-light);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem);
  transition: padding .45s var(--ease-out), color .2s;
}
.topics a .arrow { width: 18px; height: 18px; }
.topics a:hover { padding-left: 14px; color: var(--signal-deep); }
.topics a:hover .arrow { transform: translate(2px, -2px); }

.place {
  display: grid; gap: 28px 36px; align-items: center;
  grid-template-areas: 'head' 'rose' 'meta';
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius); background: var(--paper-2);
}
@media (min-width: 640px) {
  .place { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'head head' 'rose meta'; }
}
.place-head { grid-area: head; padding-bottom: 24px; border-bottom: 1px solid var(--line-light); }
.place-meta { grid-area: meta; }
.place .rose { grid-area: rose; justify-self: center; max-width: 340px; }
.place address {
  margin-top: 14px;
  font-family: var(--f-serif); font-size: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); line-height: 1.06; letter-spacing: -.01em;
}
.place-time { font-size: .92rem; color: var(--stone); margin-bottom: 18px; }
.place-time time { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.place-note { margin-top: 24px; font-size: .92rem; line-height: 1.55; color: var(--stone); }
.place-note b { font-weight: 500; color: var(--ink); }

.rose { width: 100%; height: auto; color: var(--ink); overflow: visible; }
.rose-rings circle { fill: none; stroke: currentColor; stroke-opacity: .22; stroke-width: 1; }
.rose-rings .dash { stroke-dasharray: 3 5; }
.rose-ticks circle { fill: none; stroke: currentColor; }
.rose-ticks .minor { stroke-width: 9; stroke-opacity: .35; stroke-dasharray: 1 14.708; stroke-dashoffset: .5; }
.rose-ticks .major { stroke-width: 15; stroke-opacity: .9; stroke-dasharray: 2 137.01; stroke-dashoffset: 1; }
.rose-star path { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.rose-star .lit { fill: currentColor; }
.rose-star .hot { fill: var(--signal); stroke: var(--signal); }
.rose-star .hot-o { stroke: var(--signal); }
.rose-labels text { font-family: var(--f-mono); font-size: 15px; letter-spacing: .06em; fill: var(--stone); }
.rose-labels .hot { fill: var(--signal-deep); font-weight: 500; }
.rose-pin { fill: var(--paper-2); stroke: currentColor; stroke-width: 2; }
.rose .rose-star { transform-origin: 0 0; transition: transform 1.6s var(--ease-out); }
.place:hover .rose-star { transform: rotate(-8deg); }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 2; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--foam);
  padding-top: clamp(72px, 9vw, 128px);
  color-scheme: dark;
}
.footer::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .06;
}
.footer-top { display: grid; gap: 48px; }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1fr auto; } }
.footer .brand-word { font-size: 1.9rem; }
.footer .mark { width: 30px; height: 30px; }
.footer-tagline {
  margin-top: 22px; max-width: 16ch;
  font-family: var(--f-serif); font-size: clamp(1.9rem, 1rem + 2.2vw, 3.1rem); line-height: 1; letter-spacing: -.015em;
  color: rgba(238, 241, 240, .9);
}
.footer-tagline em { color: var(--signal); }
.footer .mono-label { color: var(--fog); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 7vw, 112px); }
.footer-cols ul { display: grid; gap: 10px; margin-top: 18px; }
.footer-cols a { display: inline-flex; align-items: center; gap: 6px; color: rgba(238, 241, 240, .78); transition: color .2s; }
.footer-cols a:hover { color: var(--signal); }
.footer-cols .arrow { width: 14px; height: 14px; }
.wordmark {
  margin-top: clamp(56px, 8vw, 120px);
  font-family: var(--f-serif); font-size: min(28.6vw, 416px); line-height: .8; letter-spacing: -.04em;
  text-align: center; white-space: nowrap;
  color: transparent;
  background: linear-gradient(to bottom, rgba(238, 241, 240, .95) 18%, rgba(238, 241, 240, .08) 96%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
  padding-bottom: .02em;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-top: clamp(8px, 1.5vw, 20px);
  padding: 22px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: .68rem; color: var(--fog);
}
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--foam); }
.to-top:hover .arrow { transform: translateY(-3px); }

/* ---------- Research: open questions ---------- */
.research {
  position: relative; isolation: isolate;
  background: var(--ink); color: var(--foam);
  color-scheme: dark;
}
.research::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .05;
}
.research .section-tag { color: var(--fog); }
.research .title em { color: var(--signal); }
.research .section-intro { color: rgba(238, 241, 240, .7); }
.questions { display: grid; border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 6vw, 96px); } }
.q { display: grid; align-content: start; gap: 14px; padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-dark); }
.q-meta { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fog); }
.q-tag { padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; font-size: .64rem; }
.t-assist { color: var(--foam); }
.t-cog { color: var(--signal); }
.t-sus { color: var(--aqua); }
.q-title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 1.7vw, 2.6rem); line-height: 1.04; letter-spacing: -.015em;
  text-wrap: balance;
  transition: transform .6s var(--ease-out);
}
.q:hover .q-title { transform: translateX(8px); }
.q-text { max-width: 46ch; color: rgba(238, 241, 240, .68); line-height: 1.6; }
.research-cta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px;
  margin-top: clamp(40px, 5vw, 64px);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: rgba(238, 241, 240, .72);
}
.research-cta .link-arrow { color: var(--foam); }

/* ---------- How we work: principles ---------- */
.principles { margin-top: clamp(80px, 10vw, 144px); }
.principles-head { display: grid; gap: 20px; margin-bottom: clamp(28px, 3.5vw, 44px); }
@media (min-width: 960px) {
  .principles-head { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; column-gap: 72px; }
}
.principles-title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.1rem, 1rem + 3vw, 4rem); line-height: .98; letter-spacing: -.02em;
}
.principles-title em { color: var(--signal-deep); }
.principle-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .principle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principle {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 2.4vw, 34px) clamp(24px, 2.4vw, 34px) clamp(28px, 2.8vw, 40px);
  border-radius: calc(var(--radius) - 8px);
  background: var(--paper-2);
  transition: background-color .35s, transform .6s var(--ease-out);
}
.principle:hover { background: #e2dbcc; }
.p-num { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .07em; color: var(--stone); }
.p-title {
  margin-top: clamp(28px, 3vw, 44px);
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(1.7rem, 1rem + 1.1vw, 2.2rem); line-height: 1.02; letter-spacing: -.015em;
}
.p-text { color: var(--stone); line-height: 1.55; max-width: 36ch; }

/* ---------- Careers ---------- */
.disciplines { display: grid; gap: 44px; }
@media (min-width: 900px) { .disciplines { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.discipline { padding-top: 26px; padding-right: clamp(0px, 3vw, 48px); border-top: 1px solid var(--ink); }
.d-kicker { display: flex; gap: 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--stone); }
.d-kicker span { color: var(--ink); }
.d-title {
  margin: 16px 0 12px;
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.3rem, 1rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -.02em;
}
.d-text { max-width: 34ch; color: var(--stone); line-height: 1.55; }
.hiring { display: grid; gap: 32px; margin-top: clamp(64px, 8vw, 112px); }
@media (min-width: 1000px) { .hiring { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.hiring-steps ol { margin-top: 16px; border-top: 1px solid var(--line-light); }
.hiring-steps li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px;
  padding: 22px 0; border-bottom: 1px solid var(--line-light);
}
.h-num { font-family: var(--f-serif); font-size: 2.1rem; line-height: .9; color: var(--signal-deep); }
.h-title { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.h-text { margin-top: 4px; color: var(--stone); line-height: 1.55; max-width: 48ch; }
.apply {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  min-height: 460px; padding: clamp(28px, 3.4vw, 48px);
  border-radius: var(--radius);
  background: var(--sea); color: var(--foam);
}
.apply::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .06;
}
.apply .mono-label { color: var(--aqua); }
.apply-title {
  font-family: var(--f-serif);
  font-size: clamp(2.3rem, 1rem + 2.6vw, 3.6rem); line-height: .98; letter-spacing: -.02em;
  max-width: 12ch;
}
.apply-title em { color: var(--aqua); }
.apply-text { max-width: 36ch; color: rgba(238, 241, 240, .76); line-height: 1.55; }
.apply .btn { margin-top: auto; }
.apply-isobars {
  position: absolute; right: -7%; bottom: -9%; z-index: -1;
  width: 72%; max-width: 420px; height: auto;
  color: var(--aqua); opacity: .55;
  transition: transform 2.4s var(--ease-out);
}
.apply-isobars path { fill: none; stroke: currentColor; stroke-width: 1; stroke-opacity: .55; }
.apply-isobars .major { stroke-width: 1.6; stroke-opacity: 1; }
.apply-isobars text { font-family: var(--f-serif); font-size: 30px; fill: var(--foam); text-anchor: middle; dominant-baseline: middle; }
.apply:hover .apply-isobars { transform: rotate(-6deg) scale(1.04); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); }
.faq-grid { display: grid; gap: 40px; }
.faq-head { display: grid; gap: 26px; align-content: start; }
.faq-head .section-intro a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 72px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 56px); }
}
.faq-list { border-top: 1px solid rgba(15, 17, 19, .2); }
.faq-list details { border-bottom: 1px solid rgba(15, 17, 19, .2); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--f-serif); font-size: clamp(1.4rem, 1rem + 1vw, 1.95rem); line-height: 1.15; letter-spacing: -.01em;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--signal-deep); }
.plus {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(15, 17, 19, .25); color: var(--ink);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.plus::before, .plus::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--ease-out); }
.faq-list details[open] .plus { background: var(--ink); color: var(--paper); box-shadow: none; }
.faq-list details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 56px 28px 0; }
.faq-a p { max-width: 60ch; color: var(--stone); font-size: 1.05rem; line-height: 1.65; }
.faq-a a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq-a a:hover { color: var(--signal-deep); }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* ---------- Document pages (privacy) ---------- */
.doc-page { background: var(--paper); }
.doc { padding: calc(var(--nav-h) + clamp(72px, 10vw, 140px)) 0 clamp(88px, 10vw, 150px); background: var(--paper); color: var(--ink); color-scheme: light; }
.doc-inner { max-width: 780px; }
.doc h1 {
  margin: 22px 0 14px;
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(3.2rem, 1rem + 6.4vw, 6.4rem); line-height: .92; letter-spacing: -.025em;
}
.doc h1 em { color: var(--signal-deep); }
.doc-lede { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; color: #3b3d40; max-width: 46ch; }
.doc-meta { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-light); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--stone); }
.doc h2 {
  margin: clamp(44px, 5vw, 64px) 0 14px;
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(1.8rem, 1rem + 1.4vw, 2.5rem); line-height: 1.05; letter-spacing: -.015em;
}
.doc p, .doc li { font-size: 1.06rem; line-height: 1.7; color: #3b3d40; }
.doc p + p { margin-top: 1em; }
.doc ul { list-style: disc; padding-left: 1.25em; display: grid; gap: 8px; margin-top: 12px; }
.doc a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:not(.btn):hover { color: var(--signal-deep); }
.doc address { margin-top: 12px; font-size: 1.06rem; line-height: 1.7; color: #3b3d40; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes run { 0% { transform: translateX(-100%); } 33%, 100% { transform: translateX(340%); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-inner, .hero-bar { transform: none; opacity: 1; }
}

/* ---------- 404 ---------- */
.lost { min-height: 100vh; min-height: 100svh; }
.lost .hero-inner { align-self: center; }
.lost .hero-title { font-size: clamp(3.2rem, 1rem + 8vw, 9rem); }
