/* =============================================================
   Formshift Capital
   Light editorial system: cream paper, deep green ink, a display
   serif for statements and a mono voice for details. Sections
   slide over each other as rounded sheets.
   ============================================================= */

:root {
  --cream: #f5f5ef;
  --ink: #152521;
  --sage: #dcded6;
  --beige: #e4e2ce;

  --bg: var(--cream);
  --bg-1: #efefe8;
  --bg-2: #e8e9e0;
  --bg-3: #e1e3d9;
  --fg: var(--ink);
  --fg-2: #2c3b37;
  --muted: #4f5b56;
  --dim: #66706a;      /* small text: 4.7:1 on cream */
  --dim-2: #838c86;    /* display text only: 3:1 on cream */
  --faint: rgba(21, 37, 33, .14);
  --line: rgba(21, 37, 33, .12);
  --line-2: rgba(21, 37, 33, .24);
  --line-3: rgba(21, 37, 33, .6);
  --accent: var(--ink);
  --live: #3f9b6b;
  --danger: #b23a2b;
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-hover: #2a453e;
  --ghost-hover: rgba(21, 37, 33, .07);

  --serif: 'Newsreader', 'Times New Roman', Georgia, serif;
  --sans: 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Fira Code', 'Fira Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --logo: 'Satoshi', 'Public Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-sheet: clamp(24px, 3.4vw, 48px);
  --r-big: clamp(40px, 8vw, 120px);

  --pad: clamp(20px, 4.4vw, 64px);
  --maxw: 1440px;
  --header-h: 72px;
  --sec: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

/* Dark surfaces: the hero video, the approach sheet, the footer, the open menu,
   and the header while it sits over any of them. */
[data-dark], .footer, .menu, .header.is-on-dark, .menu-open .header {
  --fg: var(--cream);
  --fg-2: #d7dad2;
  --muted: #aeb5af;
  --dim: #8f9891;
  --dim-2: #6f7a74;
  --faint: rgba(245, 245, 239, .16);
  --line: rgba(245, 245, 239, .12);
  --line-2: rgba(245, 245, 239, .24);
  --line-3: rgba(245, 245, 239, .55);
  --accent: var(--cream);
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  --btn-hover: #ffffff;
  --ghost-hover: rgba(245, 245, 239, .1);
  color: var(--fg);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-color: #b9bdb3 var(--bg);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main { display: block; overflow-x: clip; } /* clips decorative bleed without breaking position: sticky */
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 400; }
::selection { background: var(--ink); color: var(--cream); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--cream);
  font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

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

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hl { color: var(--fg); }
.gr { text-transform: none; }

/* Film grain is a dark-theme effect; the paper look stays clean */
.grain { display: none; }

/* ---------- Icons ---------- */
.i-arrow { width: 11px; height: 11px; flex: none; transition: transform .5s var(--ease); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), transform .6s var(--ease), border-color .4s, color .4s;
}
.header.is-scrolled {
  background: rgba(245, 245, 239, .82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.header.is-scrolled.is-on-dark { background: rgba(8, 16, 14, .55); border-bottom-color: transparent; }
.header.is-hidden { transform: translateY(-101%); }
.menu-open .header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; transform: none; }

.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--fg); }
.brand__mark { width: 22px; height: 22px; flex: none; color: var(--fg); transition: transform .9s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__name { font: 700 20px/1 var(--logo); letter-spacing: -.03em; }
.brand__sub {
  padding-left: 12px; border-left: 1px solid var(--line-2);
  font: 500 9.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 30px); margin-left: auto; }
.nav a {
  display: inline-flex; align-items: baseline; gap: 6px;
  font: 600 12.5px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase;
  color: var(--fg);
  padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 2px) / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s;
}
.nav a .idx { display: none; }
.nav a:hover, .nav a[aria-current] { background-size: 100% 1px; }

.header__right { display: flex; align-items: center; gap: 16px; }
.header__clock { display: none; }

.burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--fg);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.menu-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu__inner {
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + 32px); padding-bottom: 32px;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 400 clamp(40px, 11vw, 60px)/1 var(--serif); letter-spacing: -.035em;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.menu__nav a .mono { color: var(--dim); }
.menu__nav a[aria-current] { font-style: italic; }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .15s; }
.menu__foot { display: grid; gap: 16px; color: var(--fg-2); }
.menu__foot ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.menu__foot ul a { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: 600 12.5px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn__label { position: relative; display: block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn__label > span { position: relative; display: block; transition: transform .55s var(--ease); }
.btn__label > span::after {
  content: attr(data-text);
  content: attr(data-text) / ""; /* decorative copy: keep it out of the accessible name */
  position: absolute; left: 0; top: 100%;
}
.btn:hover .btn__label > span, .btn:focus-visible .btn__label > span { transform: translateY(-100%); }
.btn:hover .i-arrow { transform: translate(2px, -2px); }
.btn--light { background: var(--btn-bg); color: var(--btn-fg); }
.btn--light::before { background: var(--btn-hover); }
.btn--ghost { border-color: var(--line-3); color: var(--fg); background: transparent; }
.btn--ghost::before { background: var(--ghost-hover); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--sm { height: 36px; padding: 0 13px; font-size: 12px; gap: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--mono); letter-spacing: .01em;
  color: var(--fg);
  padding-bottom: 6px;
  background: linear-gradient(var(--line-3), var(--line-3)) left bottom / 100% 1px no-repeat,
              linear-gradient(var(--fg), var(--fg)) left bottom / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link:hover { background-size: 100% 1px, 100% 1px; }
.link:hover .i-arrow { transform: translate(2px, -2px); }

/* ---------- Labels, tags, tabs ---------- */
.label {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
}
.label__idx { color: var(--fg); }
.label__star { width: 9px; height: 9px; color: var(--fg); }

.tag, .chip {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 9px;
  font: 400 13px/1 var(--sans); letter-spacing: 0;
  color: var(--fg);
  border: 1px solid var(--line-3); border-radius: var(--r-xs);
  white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Segmented pills; the active pill slides under the label (tabs__ind, positioned by main.js) */
.tabs {
  position: relative; isolation: isolate;
  display: inline-flex; flex-wrap: wrap; gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2); border-radius: 999px;
}
.tabs button {
  position: relative; z-index: 1;
  padding: 9px 15px;
  border-radius: 999px;
  font: 600 12px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase;
  color: var(--muted);
  transition: color .35s var(--ease);
}
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { color: var(--btn-fg); }
.tabs__ind {
  position: absolute; left: 0; top: 0; z-index: 0; height: 0; width: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  transition: transform .55s var(--ease), width .55s var(--ease), height .3s;
  pointer-events: none;
}

/* ---------- Portfolio logos (generated marks + wordmarks) ---------- */
.logo { display: inline-flex; align-items: center; gap: .42em; font-size: 20px; line-height: 1; white-space: nowrap; color: inherit; }
.logo__mark { width: 1.05em; height: 1.05em; flex: none; }
.logo__name { display: block; }
.logo--sans .logo__name { font-family: var(--sans); font-weight: 600; letter-spacing: -.035em; }
.logo--wide .logo__name { font-family: var(--sans); font-weight: 500; font-size: .7em; letter-spacing: .26em; text-transform: uppercase; }
.logo--mono .logo__name { font-family: var(--mono); font-weight: 500; font-size: .9em; letter-spacing: -.03em; }
.logo--serif .logo__name { font-family: var(--serif); font-size: 1.15em; letter-spacing: -.02em; }
.logo--bold .logo__name { font-family: var(--sans); font-weight: 800; font-size: .86em; letter-spacing: -.04em; text-transform: uppercase; }
.logo--light .logo__name { font-family: var(--sans); font-weight: 300; letter-spacing: -.03em; }
.logo--lower .logo__name { font-family: var(--sans); font-weight: 600; letter-spacing: -.05em; text-transform: lowercase; }
.logo--lg { font-size: 30px; }
.logo--img img { display: block; height: 1.05em; width: auto; max-width: 6.5em; object-fit: contain; filter: brightness(0); }
.logo--icon { gap: .45em; }
.logo--icon img { width: 1.1em; height: 1.1em; }
.logo--icon .logo__name { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; }
/* official files are made for dark screens: on paper every logo is drawn in ink */
.logo--invert img { filter: brightness(0); }
[data-dark] .logo--img img, [data-dark] .logo--invert img { filter: brightness(0) invert(1); }

/* =============================================================
   HERO (full-bleed video, centred statement)
   ============================================================= */
/* The hero is pinned while the first sheet slides over it (main.js sets --hero-top so a hero
   taller than the viewport pins bottom-aligned, and drives --hero-fade/-rise/-zoom on scroll). */
.hero {
  position: sticky; top: var(--hero-top, 0px); z-index: 0;
  isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: calc(var(--r-sheet) + 84px);
  background: var(--ink);
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  transition: opacity 2s var(--ease);
}
.js .hero__canvas { opacity: 0; }
.js .is-loaded .hero__canvas { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 54%, rgba(21, 37, 33, .5), rgba(21, 37, 33, 0) 72%),
    linear-gradient(180deg, rgba(21, 37, 33, .6) 0%, rgba(21, 37, 33, 0) 20%, rgba(21, 37, 33, 0) 76%, rgba(21, 37, 33, .45) 100%);
}
.hero__glow { display: none; }

/* Background video: a glass form shifting sphere → cube → torus → octahedron.
   contrast() takes the render's #0e0e0e backdrop down to black; .hero__tint then lifts it to the ink. */
.hero__video {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.06) sepia(.12);
  transform: scale(var(--hero-zoom, 1)); transform-origin: 50% 50%;
  pointer-events: none;
  transition: opacity 2s var(--ease);
}
.js .hero__video { opacity: 0; }
.js .is-loaded .hero__video { opacity: 1; }
/* Screened over the video (and the 404 sky), this lifts their neutral black to the ink */
.hero__tint { position: absolute; inset: 0; z-index: -3; background: var(--ink); mix-blend-mode: screen; pointer-events: none; }

/* Intro top-left over the dark field, statement centred, actions under it, a bar at the foot */
.hero__content {
  position: relative;
  display: grid; justify-items: center; gap: clamp(24px, 4.4vh, 48px);
  text-align: center;
  opacity: var(--hero-fade, 1); transform: translateY(var(--hero-rise, 0px));
}
.hero__intro { justify-self: start; display: grid; justify-items: start; gap: 18px; max-width: 42ch; text-align: left; }
.hero__lead { margin: 0; font: 400 13.5px/1.6 var(--mono); color: var(--fg-2); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero__bar {
  position: absolute; left: 0; right: 0; bottom: calc(var(--r-sheet) + 26px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  color: var(--muted);
  opacity: var(--hero-fade, 1);
}
.hero__kicker, .hero__scroll { margin: 0; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.hero__kicker svg { width: 8px; height: 8px; color: var(--fg); }
.hero__scroll i { position: relative; display: block; width: 48px; height: 1px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; inset: 0; background: var(--fg);
  transform: translateX(-101%);
  animation: cue 2.4s var(--ease-io) infinite;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 30px; padding: 0 12px 0 11px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: rgba(21, 37, 33, .28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 12px/1 var(--mono); letter-spacing: .03em; text-transform: uppercase;
  color: var(--fg-2);
  transition: border-color .3s, color .3s;
}
.pill:hover { border-color: var(--line-3); color: var(--fg); }
.pill:hover .i-arrow { transform: translate(2px, -2px); }

.pulse { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--live); flex: none; }
.pulse::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--live); opacity: 0;
  animation: ping 2.6s var(--ease) infinite;
}

.hero__title {
  margin: 0;
  font: 400 clamp(50px, 7.6vw, 116px)/.96 var(--serif);
  letter-spacing: -.04em;
  color: var(--fg);
  text-wrap: balance;
  text-shadow: 0 2px 48px rgba(0, 0, 0, .45); /* keeps the statement crisp over the bright faces of the form */
}
.hero__title em, .serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.035em; }
.line { display: block; overflow: hidden; padding: 0 .08em .12em; margin: 0 -.08em -.12em; }
.line > span { display: block; }
.js .line > span { transform: translateY(110%); }
.js .is-loaded .line > span { transform: none; transition: transform 1.4s var(--ease); }
.js .is-loaded .line:nth-child(2) > span { transition-delay: .09s; }
.js .is-loaded .line:nth-child(3) > span { transition-delay: .18s; }

.js .fade-up { opacity: 0; transform: translateY(18px); }
.js .is-loaded .fade-up {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease) var(--d, .5s), transform 1.1s var(--ease) var(--d, .5s);
}

/* =============================================================
   SHEETS: sections that slide over the previous one
   ============================================================= */
.sheet {
  position: relative; z-index: 1;
  margin-top: calc(-1 * var(--r-sheet));
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--bg);
}
.sheet--big { margin-top: calc(-1 * var(--r-big)); border-radius: var(--r-big) var(--r-big) 0 0; }
.bg-ink { background: var(--ink); }
.bg-beige { background: var(--beige); }
.bg-sage { background: var(--sage); --dim-2: #6b7570; }

/* =============================================================
   VISION (scroll-driven statement)
   ============================================================= */
.vision { position: relative; height: 240vh; }
.vision__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(var(--header-h) + 28px); padding-bottom: 36px;
  overflow: hidden;
}
.vision__orbits {
  position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(118vh, 120vw); height: min(118vh, 120vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.vision__orbits circle { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vision__orbits .o-dash { stroke: var(--line-2); stroke-dasharray: 2 10; }
.vision__orbits .o-spin { transform-box: view-box; transform-origin: 50% 50%; animation: spin 140s linear infinite; }
.vision__orbits .o-spin--rev { animation-duration: 200s; animation-direction: reverse; }
.vision__orbits .o-body { fill: var(--fg); stroke: none; }
.vision__orbits .o-body--w { fill: var(--dim); }
.vision__head, .vision__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.vision__text {
  margin: 0 auto; max-width: 17.5em;
  text-align: center;
  font: 400 clamp(32px, 4.7vw, 74px)/1.04 var(--serif);
  letter-spacing: -.035em;
}
.vision__text p { margin: 0; text-wrap: balance; }
.h2, .cta__title, .wcard__title, .wfeat__title, .ahead__title, .featured__desc, .pcard__desc { text-wrap: balance; }
.vision__text p + p { margin-top: .6em; }
.w { color: var(--faint); transition: color .6s var(--ease); }
.w.is-lit { color: var(--fg); }
.vision__text p + p .w.is-lit { color: var(--dim-2); }
.w--em { font-style: italic; }
.vision__text .w--em.is-lit { color: var(--fg); }
.vision__bar { position: relative; flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.vision__bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.vision__pct { font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }

/* ---------- Stats: outlined cards with a chip, a big figure and a line of context ---------- */
.stats { padding: clamp(16px, 3vw, 40px) 0 clamp(56px, 7vw, 104px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.stat {
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: clamp(240px, 22vw, 300px); padding: 20px;
  border: 1px solid var(--line-3); border-radius: var(--r-md);
  transition: background-color .4s var(--ease);
}
.stat:hover { background: rgba(255, 255, 255, .42); }
.stat__value { margin: 26px 0 0; font: 400 clamp(36px, 3.6vw, 60px)/.98 var(--serif); letter-spacing: -.035em; }
.stat__desc { margin: auto 0 0; padding-top: 28px; max-width: 30ch; font-size: 15.5px; line-height: 1.38; color: var(--fg-2); }

/* =============================================================
   SELECTED INVESTMENTS (logo marquee)
   ============================================================= */
.selected { position: relative; padding: clamp(24px, 3vw, 40px) 0 calc(var(--r-big) + clamp(28px, 4vw, 56px)); }
.selected__head { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.selected__title { margin: 0; font: 400 clamp(34px, 3.8vw, 58px)/1 var(--serif); letter-spacing: -.035em; color: var(--fg); }
.beam { position: relative; height: 1px; background: var(--line); overflow: hidden; }
.beam::after {
  content: ''; position: absolute; top: 0; left: 0; width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--fg), transparent);
  animation: beam 7s var(--ease-io) infinite;
}
.beam--rev::after { animation-direction: reverse; animation-delay: -3.5s; }
.marquee {
  --mg: clamp(48px, 6vw, 92px);
  position: relative; overflow: hidden;
  padding: 44px 0 52px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.marquee.is-switching { opacity: 0; filter: blur(6px); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 44s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: var(--mg); padding: 0 calc(var(--mg) / 2); margin: 0; list-style: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--fg); opacity: .62; transition: opacity .35s; }
.marquee__item:hover, .marquee__item:focus-visible { opacity: 1; }
.marquee__item .logo { font-size: 23px; }
.marquee__item .i-arrow { opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s, transform .45s var(--ease); }
.marquee__item:hover .i-arrow, .marquee__item:focus-visible .i-arrow { opacity: 1; transform: none; }
.logo--text .logo__name { font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; }

/* =============================================================
   APPROACH (dark sheet, big-word accordion)
   ============================================================= */
.approach { padding-block: var(--sec) calc(var(--sec) + var(--r-sheet)); }
.acc { border-top: 1px solid var(--line-2); }
.acc__item { border-bottom: 1px solid var(--line-2); }
.acc__item summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 24px;
  padding: clamp(16px, 2vw, 26px) 0;
  list-style: none; cursor: pointer;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__title { font: 400 clamp(40px, 5.6vw, 84px)/1 var(--serif); letter-spacing: -.04em; transition: opacity .3s; }
.acc__item summary:hover .acc__title { opacity: .82; }
.acc__sub { font: 400 clamp(14px, 1.45vw, 21px)/1.2 var(--mono); color: var(--fg-2); text-align: right; }
.acc__chev { width: 18px; height: 18px; color: var(--fg); transition: transform .45s var(--ease); }
.acc__item[open] .acc__chev { transform: rotate(180deg); }
.acc__body { overflow: hidden; } /* main.js animates its height open and shut */
.acc__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px;
  padding: 0 0 clamp(26px, 3vw, 44px);
}
.acc__inner p { margin: 0; max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--fg-2); }
.acc__num { color: var(--dim); }

/* =============================================================
   SECTIONS
   ============================================================= */
.section { position: relative; padding-block: var(--sec); }
.section--line { border-top: 1px solid var(--line); }
.shead {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 26px 48px;
  margin-bottom: clamp(36px, 4.4vw, 64px);
}
.shead > .label { grid-column: 1 / -1; }
.h2 { margin: 0; max-width: 16em; font: 400 clamp(36px, 4.6vw, 70px)/1 var(--serif); letter-spacing: -.035em; color: var(--fg); }
.h2 .dim { color: var(--dim-2); }
.shead__note { margin: 18px 0 0; max-width: 54ch; font: 400 13px/1.6 var(--mono); color: var(--muted); }
.sfoot { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Featured company ---------- */
.featured {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border: 1px solid var(--line-3); border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.featured__visual {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; min-height: 320px;
  border-right: 1px solid var(--line-3);
  background: var(--bg-2);
  color: var(--fg);
}
.featured__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--fg); }
.featured__hud {
  position: absolute; left: 22px; right: 22px; top: 20px;
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--muted);
}
.featured__lockup {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 15px;
}
.lockup-ns { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--logo); letter-spacing: -.02em; }
.lockup-ns svg { width: 15px; height: 15px; flex: none; }
.lockup-x { color: var(--dim); font: 400 14px/1 var(--mono); }
.featured__lockup .logo { font-size: 17px; }
.featured__info {
  display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: clamp(28px, 3.6vw, 56px);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.is-swapping .featured__info { opacity: 0; transform: translateY(8px); }
.kv-label { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.featured__desc { margin: 0; font: 400 clamp(24px, 2.2vw, 34px)/1.08 var(--serif); letter-spacing: -.025em; }
.featured__about { margin: 12px 0 0; max-width: 48ch; font-size: 15px; color: var(--muted); }
.featured__facts { display: flex; flex-wrap: wrap; gap: 28px 48px; margin: 0; }
.featured__facts dd { margin: 0; font-size: 16px; font-weight: 500; }
.featured__facts a { border-bottom: 1px solid var(--line-3); transition: border-color .3s; }
.featured__facts a:hover { border-color: var(--fg); }

/* ---------- Portfolio table ---------- */
.ptable__head, .prow__btn {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) 44px;
  align-items: center; gap: 20px;
}
.ptable__head { padding: 0 0 16px; color: var(--muted); border-bottom: 1px solid var(--line-3); }
.ptable__body { list-style: none; margin: 0; padding: 0; }
.prow { position: relative; border-bottom: 1px solid var(--line-2); animation: rowIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.prow::before {
  content: ''; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: var(--fg);
  transform: scaleY(0); transition: transform .5s var(--ease);
}
.prow.is-selected::before { transform: none; }
.prow__btn {
  width: 100%; min-height: 76px; padding: 14px 0;
  text-align: left;
  transition: background-color .35s var(--ease);
}
.prow__btn:hover, .prow.is-selected .prow__btn { background: linear-gradient(90deg, rgba(21, 37, 33, .05), rgba(21, 37, 33, 0) 80%); }
.prow__name { min-width: 0; }
.prow__name .logo { font-size: 19px; color: var(--fg); transition: transform .55s var(--ease); }
.prow__btn:hover .prow__name .logo, .prow.is-selected .prow__name .logo { transform: translateX(14px); }
.prow__cell { font-size: 15px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.prow__link {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--dim);
  transition: color .3s;
}
.prow__link:hover { color: var(--fg); }
.prow__link:hover .i-arrow { transform: translate(2px, -2px); }
.ptable__empty { padding: 40px 0; color: var(--muted); }
.pgrid .ptable__empty { grid-column: 1 / -1; padding: 40px 28px; border: 1px solid var(--line-2); border-radius: var(--r-md); }

/* ---------- Portfolio grid (portfolio page) ---------- */
.pgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.pcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 270px; padding: 24px;
  border: 1px solid var(--line-3); border-radius: var(--r-md);
  transition: background-color .35s var(--ease), transform .5s var(--ease);
  animation: rowIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.pcard:hover { background: var(--bg-1); transform: translateY(-3px); }
.pcard .logo { font-size: 24px; color: var(--fg); }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pcard__desc { margin: 0; font: 400 22px/1.12 var(--serif); letter-spacing: -.02em; }
.pcard__about { margin: 0; font-size: 14.5px; color: var(--muted); }
.pcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pcard__meta { color: var(--dim); white-space: nowrap; }
.pcard__link { display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -8px 0 0; color: var(--dim); transition: color .3s; }
a.pcard__link:hover { color: var(--fg); }
a.pcard__link:hover .i-arrow { transform: translate(2px, -2px); }
[data-view="list"] .pgrid { display: none; }
[data-view="grid"] .ptable, [data-view="grid"] .featured { display: none; }
.featured { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Hover spotlight for cards */
[data-spotlight] { --mx: 50%; --my: 50%; }
[data-spotlight]::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(21, 37, 33, .05), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-spotlight]:hover::after { opacity: 1; }

/* ---------- Toolbar (portfolio + writings pages) ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.toolbar__right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 14px; height: 14px; color: var(--dim); pointer-events: none; }
.search input {
  width: 240px; height: 40px; padding: 0 14px 0 38px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; color: var(--fg);
  transition: border-color .3s, background-color .3s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--fg); background: #fff; }
.viewtoggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.viewtoggle button {
  padding: 9px 13px; border-radius: 999px;
  font: 600 11.5px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s, background-color .3s;
}
.viewtoggle button:hover { color: var(--fg); }
.viewtoggle button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }

/* ---------- Writings grid ---------- */
.wgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.wcard {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-3); border-radius: var(--r-md);
  transition: background-color .35s var(--ease), transform .5s var(--ease);
}
.wcard:hover { background: rgba(255, 255, 255, .35); transform: translateY(-3px); }
.wcard__link {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 16px;
  height: 100%; min-height: 320px; padding: 24px;
}
.wcard__top { display: flex; justify-content: space-between; align-items: center; color: var(--dim); }
.wcard__title { margin: 28px 0 0; font: 400 clamp(23px, 1.9vw, 29px)/1.08 var(--serif); letter-spacing: -.025em; }
.wcard__excerpt {
  margin: 0; font-size: 14.5px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wcard__meta { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 18px; color: var(--dim); }
.wcard__meta .i-arrow { margin-left: auto; width: 12px; height: 12px; color: var(--fg); }
.wcard:hover .i-arrow { transform: translate(3px, -3px); }
.wcard__bar { display: none; }
.wcard__media { display: block; margin: -24px -24px 18px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.wcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.wcard:hover .wcard__media img { transform: scale(1.045); }

/* Featured writing (writings page) */
.wfeat {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border: 1px solid var(--line-3); border-radius: var(--r-lg);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.wfeat__visual { position: relative; overflow: hidden; aspect-ratio: 16 / 10; min-height: 300px; border-right: 1px solid var(--line-3); background: var(--bg-2); color: var(--fg); }
.wfeat__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--fg); }
.wfeat__visual .featured__hud { color: var(--muted); }
.wfeat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wfeat__visual.has-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 37, 33, .5), rgba(21, 37, 33, 0) 42%); pointer-events: none; }
.wfeat__visual.has-photo .featured__hud { z-index: 1; color: var(--cream); }
.wfeat__body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 3.6vw, 56px); }
.wfeat__title { margin: 22px 0 18px; font: 400 clamp(32px, 3.3vw, 54px)/1.02 var(--serif); letter-spacing: -.035em; }
.wfeat__excerpt { margin: 0; color: var(--fg-2); font-size: 16px; max-width: 46ch; }
.wfeat__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dim); }
.wfeat__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.wfeat.is-hidden { display: none; }

/* =============================================================
   CTA (sage sheet) + constellation
   ============================================================= */
.cta {
  overflow: hidden;
  z-index: 1;
  margin-top: calc(-1 * var(--r-sheet));
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--sage);
  --dim-2: #6b7570;
  padding-bottom: calc(var(--sec) + var(--r-sheet));
}
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.cta__title { margin: 26px 0 24px; max-width: 13em; font: 400 clamp(42px, 5.6vw, 92px)/.98 var(--serif); letter-spacing: -.04em; color: var(--dim-2); }
.cta__title .hl { color: var(--fg); }
.cta__lead { margin: 0; max-width: 44ch; font-size: 17px; color: var(--fg-2); }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.cta__photo {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5; max-height: 580px;
  overflow: hidden; border-radius: clamp(28px, 4vw, 56px);
  background: var(--bg-2);
}
.cta__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.cta__photo:hover img { transform: scale(1.03); }
.cta__photo .featured__hud {
  position: absolute; left: 24px; right: 24px; top: 22px;
  color: var(--cream); text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

/* =============================================================
   FOOTER (dark sheet)
   ============================================================= */
.footer {
  position: relative; z-index: 2; overflow: hidden;
  margin-top: calc(-1 * var(--r-sheet));
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: var(--ink);
  padding-top: clamp(64px, 8vw, 112px);
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer__motto { margin: 0; font: 400 clamp(32px, 3.4vw, 52px)/1 var(--serif); letter-spacing: -.035em; color: var(--fg); }
.footer__motto em { display: block; font-style: italic; color: var(--dim); }
.footer__tag { margin: 22px 0 0; max-width: 36ch; color: var(--fg-2); font: 400 13px/1.6 var(--mono); }
.footer__col h2 { margin: 0 0 18px; font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a {
  font: 400 13.5px/1.4 var(--mono); color: var(--fg-2);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px;
  transition: color .3s, text-decoration-color .3s;
}
.footer__col a:hover { color: var(--fg); text-decoration-color: var(--fg); }
.footer__legal { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line); font: 400 11px/1.7 var(--mono); letter-spacing: .02em; color: var(--dim); }
.footer__legal p { margin: 0; max-width: 120ch; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--dim); }
.footer__bar a { transition: color .3s; }
.footer__bar a:hover { color: var(--fg); }
.footer__bar [data-clock] { font-variant-numeric: tabular-nums; }
.footer__mega {
  margin: clamp(8px, 2vw, 24px) 0 0;
  font-family: var(--logo); font-size: clamp(64px, 21.5vw, 360px); font-weight: 700;
  line-height: .74; letter-spacing: -.06em;
  text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(245, 245, 239, .9) 0%, rgba(245, 245, 239, .22) 55%, rgba(245, 245, 239, 0) 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  transform: translateY(16%);
  user-select: none; pointer-events: none;
}

/* =============================================================
   INNER PAGES
   ============================================================= */
.phero { position: relative; isolation: isolate; padding-top: calc(var(--header-h) + clamp(52px, 9vw, 128px)); padding-bottom: clamp(32px, 4.5vw, 64px); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: end; gap: 32px 64px; margin-top: 26px; }
.phero__grid .phero__title { margin: 0; }
.phero__side { display: grid; gap: 28px; padding-bottom: .5em; }
.phero__facts { display: flex; flex-wrap: wrap; gap: 20px 36px; margin: 0; }
.phero__facts dt { font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.phero__facts dd { margin: 8px 0 0; font: 400 30px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.phero__orbit {
  position: absolute; z-index: -1; pointer-events: none;
  right: -16vw; top: -18vw;
  width: min(64vw, 920px); height: min(64vw, 920px);
  max-width: none;
}
.phero__orbit circle { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.phero__orbit .o-dash { stroke: var(--line-2); stroke-dasharray: 2 10; }
.phero__orbit .o-spin { transform-box: view-box; transform-origin: 50% 50%; animation: spin 120s linear infinite; }
.phero__orbit .o-spin--rev { animation-duration: 180s; animation-direction: reverse; }
.phero__orbit .o-body { fill: var(--fg); stroke: none; }
.phero__orbit .o-body--w { fill: var(--dim); }
.crumbs { display: flex; align-items: center; gap: 10px; color: var(--dim); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--fg); }
.phero__title {
  display: flex; align-items: flex-start; gap: .12em;
  margin: 26px 0 0;
  font: 400 clamp(60px, 11vw, 176px)/.88 var(--serif);
  letter-spacing: -.045em;
}
.phero__title sup { margin-top: .4em; font: 500 clamp(11px, 1vw, 14px)/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.phero__lead { margin: 0; max-width: 48ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-2); }
.page-note { margin: clamp(32px, 4vw, 48px) 0 0; font: 400 11px/1.7 var(--mono); letter-spacing: .02em; color: var(--dim); max-width: 110ch; }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 128px);
  padding-top: calc(var(--header-h) + clamp(52px, 9vw, 128px)); padding-bottom: var(--sec);
}
.contact__aside { display: flex; flex-direction: column; gap: 40px; }
.contact > .form { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.contact__lead { margin: 0; max-width: 42ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-2); }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.steps .mono { color: var(--fg); padding-top: 4px; }
.steps strong { display: block; font: 400 22px/1.15 var(--serif); letter-spacing: -.015em; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }
.contact__direct { display: grid; gap: 14px; justify-items: start; }
.inline-socials { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.inline-socials a { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.inline-socials a:hover { color: var(--fg); }
.contact__planet { position: relative; aspect-ratio: 1 / 1; max-width: 420px; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); color: var(--fg); }
.contact__planet canvas { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--fg); }
.contact__planet .featured__hud { color: var(--muted); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg); }
.field label .opt { color: var(--dim); font-weight: 400; }
.input {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--fg);
  font: 400 15px/1.45 var(--sans);
  transition: border-color .3s, background-color .3s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--fg); background: #fff; }
textarea.input { min-height: 132px; resize: vertical; }
select.input {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23152521' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.input option { background: var(--bg); color: var(--fg); }
.field__err { min-height: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .02em; color: var(--danger); }
/* Empty messages stay in the accessibility tree (live regions must exist before they change) */
.field__err:empty, .form__status:empty {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.has-error .input { border-color: var(--danger); }
.form__foot { grid-column: 1 / -1; display: grid; gap: 14px; }
.form__status { margin: 0; font: 500 12px/1.6 var(--mono); letter-spacing: .02em; color: var(--live); }
.form__status.is-error { color: var(--danger); }
.form__fine { margin: 0; font-size: 12.5px; color: var(--dim); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.is-sent .field, .is-sent .form__fine { opacity: .45; }

/* ---------- Article ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.ahead { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 112px)); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-2); }
.ahead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; color: var(--muted); }
.ahead__title { margin: 26px 0 22px; max-width: 15em; font: 400 clamp(42px, 5.8vw, 96px)/.98 var(--serif); letter-spacing: -.04em; }
.ahead__excerpt { margin: 0; max-width: 38em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--fg-2); }
.ahead__media { margin: clamp(32px, 4.5vw, 56px) 0 0; max-width: 1024px; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); }
.ahead__media img { width: 100%; height: 100%; object-fit: cover; }
.abody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); gap: 40px; padding-block: clamp(48px, 6vw, 96px); }
.abody__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 18px; color: var(--muted); }
.abody__aside .mono { color: var(--dim); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.prose { font-size: 18px; line-height: 1.72; color: var(--fg-2); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { margin: 2em 0 .6em; font: 400 clamp(28px, 2.5vw, 36px)/1.1 var(--serif); letter-spacing: -.025em; color: var(--fg); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose em { font-family: var(--serif); font-size: 1.08em; color: var(--fg); }
.prose a { color: var(--fg); border-bottom: 1px solid var(--line-3); }
.prose ul { list-style: none; margin: 0 0 1.5em; padding: 0; }
.prose li { position: relative; margin: 0 0 .85em; padding-left: 28px; }
.prose li::before { content: ''; position: absolute; left: 2px; top: .82em; width: 10px; height: 1px; background: var(--fg); }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 28px;
  border-left: 2px solid var(--fg);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(27px, 2.6vw, 38px); line-height: 1.16; letter-spacing: -.02em;
  color: var(--fg);
}
.more { padding-bottom: calc(var(--sec) + var(--r-sheet)); }
.notfound { padding-top: calc(var(--header-h) + 120px); padding-bottom: var(--sec); }

/* ---------- Legal (privacy policy) ---------- */
.phero__title--sm { font-size: clamp(52px, 8.4vw, 132px); }
.legal { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 760px); gap: clamp(40px, 7vw, 128px); padding-bottom: calc(var(--sec) + var(--r-sheet)); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc summary { list-style: none; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line-2); counter-reset: toc; }
.toc a {
  display: flex; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px; line-height: 1.35; color: var(--muted);
  transition: color .3s;
}
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); flex: none; padding-top: 3px; font: 500 10.5px/1 var(--mono); color: var(--dim); transition: color .3s; }
.toc a:hover, .toc a.is-active { color: var(--fg); }
.toc a.is-active::before { color: var(--fg); }
.legal .prose { counter-reset: sec; }
.legal .prose h2 { scroll-margin-top: calc(var(--header-h) + 24px); display: flex; align-items: baseline; gap: 14px; }
.legal .prose h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); font: 500 12px/1 var(--mono); color: var(--dim); }
.legal .prose h2:first-child { margin-top: 0; }
.legal .prose h3 { margin: 1.6em 0 .5em; font-size: 18px; letter-spacing: -.01em; color: var(--fg); font-weight: 600; }
.legal-note { margin: 0 0 2em; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: rgba(21, 37, 33, .035); font-size: 15.5px; color: var(--fg-2); }
.legal-note strong { color: var(--fg); }

/* ---------- 404 ---------- */
.lost { justify-content: center; padding-bottom: calc(var(--r-sheet) + 48px); }
.lost .hero__shade { background: radial-gradient(60% 60% at 50% 50%, rgba(21, 37, 33, .2), rgba(21, 37, 33, .85)); }
.lost__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.lost__title { margin: 0; font: 400 clamp(60px, 10vw, 160px)/.92 var(--serif); letter-spacing: -.045em; }
.lost__lead { margin: 0; max-width: 40ch; color: var(--fg-2); font-size: 17px; }

/* =============================================================
   FOCUS, AFTER THE WIRE, FOUNDERS (home)
   ============================================================= */
.focus__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.focus__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.focus__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.focus__list h3 { margin: 0 0 8px; font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); letter-spacing: -.02em; }
.focus__list p { margin: 0; max-width: 52ch; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.focus__num { padding-top: 7px; color: var(--dim); }
.focus__pass {
  position: sticky; top: calc(var(--header-h) + 32px);
  padding: 26px; border: 1px solid var(--line-3); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .38);
}
.focus__pass ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.focus__pass li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.45; color: var(--fg-2); }
.focus__pass li::before { content: ''; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--fg); }
.focus__note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); font: 400 13px/1.6 var(--mono); color: var(--muted); }

.help__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.help__card {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 250px; padding: 24px;
  border: 1px solid var(--line-3); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .3);
}
.help__card .mono { color: var(--dim); }
.help__card h3 { margin: 10px 0 0; font: 400 clamp(24px, 2.1vw, 30px)/1.08 var(--serif); letter-spacing: -.02em; }
.help__card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }

.quotes-head { margin-top: clamp(56px, 7vw, 112px); padding-top: 26px; border-top: 1px solid var(--line-2); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.quote {
  margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 26px; border: 1px solid var(--line-3); border-radius: var(--r-md);
}
.quote p { margin: 0; font: 400 clamp(21px, 1.8vw, 26px)/1.22 var(--serif); letter-spacing: -.015em; color: var(--fg); text-wrap: balance; }
.quote footer { color: var(--muted); }

/* Portfolio details */
.tag--status { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.featured__facts > div:has(dd:empty) { display: none; }
.featured__more { margin: 0; }
.featured__more:empty { display: none; }

/* Founder FAQ (contact page) */
.faq { padding-top: clamp(40px, 6vw, 96px); padding-bottom: calc(var(--sec) + var(--r-sheet)); }
.acc--faq summary { grid-template-columns: minmax(0, 1fr) 20px; padding: 18px 0; }
.acc--faq .acc__title { font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.02em; }
.acc--faq .acc__inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 26px; }
.acc--faq .acc__inner p { max-width: 64ch; font-size: 16px; }

/* Pitch form extras */
.input--file { padding: 10px 15px; cursor: pointer; }
.input--file::file-selector-button {
  margin-right: 12px; padding: 7px 10px;
  border: 1px solid var(--line-3); border-radius: var(--r-xs); background: transparent;
  color: var(--fg); font: 600 11.5px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase;
  cursor: pointer;
}

/* Press kit */
.press { display: grid; gap: clamp(48px, 6vw, 96px); padding-bottom: calc(var(--sec) + var(--r-sheet)); }
.press__block { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px 64px; align-items: start; }
.press__block > .label { padding-top: 6px; }
.press__boiler { margin: 0 0 18px; max-width: 34em; font: 400 clamp(20px, 1.8vw, 26px)/1.35 var(--serif); letter-spacing: -.01em; }
.press__text { margin: 0; max-width: 62ch; color: var(--fg-2); }
.press__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 0; }
.press__facts dd { margin: 6px 0 0; font: 400 22px/1.15 var(--serif); letter-spacing: -.015em; }
.press__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.press__card { border: 1px solid var(--line-3); border-radius: var(--r-md); overflow: hidden; }
.press__preview { display: grid; place-items: center; aspect-ratio: 16 / 9; }
.press__preview--ink { background: var(--ink); }
.press__preview--cream { background: var(--cream); }
.press__preview img { width: 56%; max-height: 54%; object-fit: contain; }
.press__preview img.is-mark { width: 22%; }
.press__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.press__rules { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 14.5px; }
.press__rules li { padding-left: 20px; position: relative; }
.press__rules li::before { content: ''; position: absolute; left: 0; top: .7em; width: 9px; height: 1px; background: var(--fg); }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--line-3); border-radius: var(--r-md); overflow: hidden; }
.swatch i { display: block; aspect-ratio: 3 / 2; }
.swatch span { display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px; font: 500 11.5px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; }
.press__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

[data-clock]:empty { display: none; }

/* Case studies */
.case-note {
  margin: 0 0 1.5em; padding: 13px 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: rgba(21, 37, 33, .035);
  font: 400 12.5px/1.6 var(--mono); color: var(--muted);
}
.case-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px;
  margin: clamp(28px, 4vw, 48px) 0 0; max-width: 1024px;
  padding-top: 22px; border-top: 1px solid var(--line-2);
}
.case-facts div { min-width: 0; }
.case-facts dt { font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.case-facts dd { margin: 8px 0 0; font: 400 clamp(24px, 2.2vw, 32px)/1.05 var(--serif); letter-spacing: -.02em; }
.case-list { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(24px, 4vw, 64px); }

/* Small type on the tinted sheets needs darker greys to keep 4.5:1 */
.bg-beige, .bg-sage, .cta { --dim: #566059; --dim-2: #6b7570; }

/* =============================================================
   REVEAL + MOTION
   ============================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes beam { from { transform: translateX(-220px); } to { transform: translateX(100vw); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes cue { 0% { transform: translateX(-101%); } 55%, 100% { transform: translateX(101%); } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1180px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .abody { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
  .abody__aside { position: static; order: 2; border-top: 1px solid var(--line-2); padding-top: 28px; }
  .abody > :last-child:empty { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav, .header__right .btn { display: none; }
  .header__right { margin-left: auto; }
  .burger { display: block; }

  /* Narrow screens: the whole form sits above the statement instead of behind it.
     The box keeps the video's 16:9; its lower edge fades into the black. */
  .hero { justify-content: flex-start; padding-top: calc(48px + 64vw); padding-bottom: calc(var(--r-sheet) + 76px); }
  .hero__video {
    inset: auto; top: 48px; left: -47vw;
    width: 150vw; max-width: none; height: auto; aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
  }
  .hero__shade { background: linear-gradient(180deg, rgba(21, 37, 33, .55) 0%, rgba(21, 37, 33, 0) 14%); }
  .hero__intro { justify-self: center; justify-items: center; text-align: center; }
  .hero__bar { bottom: calc(var(--r-sheet) + 20px); }

  .shead { grid-template-columns: minmax(0, 1fr); }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured__visual, .wfeat__visual { min-height: 0; }
  .featured__visual { border-right: 0; border-bottom: 1px solid var(--line-3); }

  .ptable__head { display: none; }
  .prow__btn {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'name round' 'tags year';
    gap: 12px 16px; padding: 18px 52px 18px 0;
  }
  .prow__name { grid-area: name; }
  .prow__round { grid-area: round; text-align: right; }
  .prow__year { grid-area: year; text-align: right; color: var(--dim); }
  .prow__tags { grid-area: tags; }

  .acc__inner { grid-template-columns: minmax(0, 1fr); }
  .wgrid, .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wfeat { grid-template-columns: minmax(0, 1fr); }
  .wfeat__visual { border-right: 0; border-bottom: 1px solid var(--line-3); }

  .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .focus__grid { grid-template-columns: minmax(0, 1fr); }
  .focus__pass { position: static; }
  .help__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .press__block { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .press__grid { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__photo { max-width: 460px; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact > .form { position: static; }
  .contact__planet { display: none; }
  .phero__grid { grid-template-columns: minmax(0, 1fr); }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  }
  .toc summary::after { content: '+'; font: 400 22px/1 var(--serif); color: var(--fg); }
  .toc details[open] summary::after { content: '−'; }
  .toc ol { margin-top: 0; border-top: 0; }
  .phero__orbit { right: -40vw; top: -10vw; width: 110vw; height: 110vw; }
}

@media (max-width: 640px) {
  .brand__name { font-size: 18px; }
  .brand__sub { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__bar { justify-content: center; }
  .hero__scroll { display: none; }
  .stats__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stat { min-height: 0; }
  .stat__desc { padding-top: 22px; }
  .vision { height: 220vh; }
  .acc__item summary { grid-template-columns: minmax(0, 1fr) 18px; gap: 6px 14px; }
  .acc__sub { grid-column: 1; grid-row: 2; text-align: left; }
  .acc__chev { grid-column: 2; grid-row: 1; }
  .wgrid, .pgrid { grid-template-columns: minmax(0, 1fr); }
  .wcard__link { min-height: 0; padding: 22px 20px; }
  .wcard__media { margin: -22px -20px 16px; }
  .wcard__title { margin-top: 16px; }
  .pcard { padding: 22px 20px; min-height: 0; }
  .featured__hud { left: 16px; right: 16px; top: 14px; }
  .featured__lockup { left: 16px; right: 16px; bottom: 14px; gap: 10px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .help__grid { grid-template-columns: minmax(0, 1fr); }
  .press__facts { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar__right { width: 100%; justify-content: space-between; }
  .search input { width: 190px; }
}

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