/* ── base · reset, shells, nav, shared atoms ─────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--lime); color: var(--ink); }

main { position: relative; }

/* ── section shells ── */
.dark {
  position: relative;
  background: var(--studio);
  color: var(--chalk);
  padding: var(--section) var(--gutter);
  overflow: clip;
}
.light {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: var(--section) var(--gutter);
  overflow: clip;
}
.dark + .dark { padding-top: 0; }

/* studio dot-grid texture, fades at the edges */
.dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%);
  opacity: .55;
}
.dark > :not(.dots) { position: relative; z-index: 1; }
.dark > .problem-pin, .dark > .studio-pin, .dark > .truth-pin, .dark > .steps-pin { position: sticky; }

/* ── type atoms ── */
.label {
  font-size: var(--t-micro);
  letter-spacing: .02em;
  color: var(--mute);
  line-height: 1.35;
}
.dark .label { color: var(--chalk-dim); }
.label--center { display: block; text-align: center; }
.label--center span { display: block; color: var(--chalk-faint); }

.h2 {
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em;
}
.h2 span { color: var(--mute); font-weight: 400; }
.dark .h2 span { color: var(--chalk-dim); }
.h2--center { text-align: center; }
.h2--center + * { margin-top: clamp(40px, 6vw, 88px); }
.label--center + .h2 { margin-top: 14px; }

@media (max-width: 600px) { .h2 br { display: none; } .nav-brand span { display: none; } .nav-brand { padding: 6px; } .nav-cta { padding: 6px 12px; } }

/* ── nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--gutter);
  pointer-events: none;
  color: #fff;
}
.nav-link {
  pointer-events: auto;
  font-size: var(--t-small);
  font-weight: 500;
  display: inline-flex; gap: 6px; align-items: center;
  padding: 6px 2px;
  position: relative;
  transition: opacity var(--fast) var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--normal) var(--ease-out);
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-glyph { font-weight: 400; }
body.menu-open .nav { mix-blend-mode: normal; color: var(--ink); }

/* ── overlay menu ── */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper);
  display: grid; grid-template-rows: 1fr auto;
  padding: 120px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--slow) var(--ease-in-out);
}
.menu[hidden] { display: grid; visibility: hidden; }
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-inner { display: flex; flex-direction: column; gap: .1em; }
.menu-inner a {
  font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.02;
  color: var(--ink); transition: color var(--fast), transform var(--normal) var(--ease-out);
  transform: translateY(20px); opacity: 0;
}
body.menu-open .menu-inner a { transform: none; opacity: 1; }
.menu-inner a:nth-child(n) { transition-delay: calc(var(--i, 0) * 40ms + 120ms); }
.menu-inner a:hover { color: var(--mute); }
.menu-foot { display: flex; justify-content: space-between; font-size: var(--t-small); color: var(--mute); }
.menu-foot a:hover { color: var(--ink); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--white);
  font-size: var(--t-small); font-weight: 500;
  transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), background var(--fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.pill {
  font-size: var(--t-micro); padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink-2);
}
.pill--lime { background: var(--lime-soft); color: #0D1638; }
.pill--dark { background: var(--studio-3); color: var(--chalk-dim); }

/* ── focus ── */
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── no-motion / no-GSAP fallback: pinned runways collapse to single screens ── */
.reduced .hero, .reduced .problem, .reduced .studio, .reduced .truth, .reduced .steps { height: auto; }
.reduced .hero-stage, .reduced .problem-pin, .reduced .studio-pin, .reduced .truth-pin, .reduced .steps-pin { position: relative; height: auto; min-height: 100svh; }
.reduced .problem-flip { position: static; translate: none; opacity: 1; pointer-events: auto; width: 100%; margin-top: 32px; }
.reduced .ledger .ledger-card--order { opacity: 1; transform: translate(24%, 26%); }
.reduced .ledger .ledger-card--grid { transform: translate(-18%, -16%); }

/* brand lockup (real mark + Garamond wordmark) */
.nav-brand {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
  padding: 7px 16px 7px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.72); border: 1px solid rgba(13,22,56,.08);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 6px 24px rgba(13,22,56,.08);
  transition: background var(--normal), border-color var(--normal), color var(--normal);
}
body.is-dark .nav-brand { background: rgba(15,16,23,.62); border-color: rgba(157,180,255,.18); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.nav-brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 8px rgba(119,106,255,.35)); }
.nav-brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0; line-height: 1; }
.nav-cta { background: var(--grad-action); color: #fff; border-radius: var(--r-pill); padding: 8px 16px; }
.nav-cta::after { display: none; }
.wordmark-lockup { display: inline-flex; align-items: center; gap: 10px; }
.wordmark-lockup img { width: 30px; height: 30px; }
.wordmark-lockup .wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.foot-disclosure { font-size: var(--t-micro); color: var(--mute-2); }

/* blend only the text link; the brand lockup + gradient CTA keep true colour */
.nav-menu { color: var(--ink); transition: color var(--normal); }
body.is-dark .nav-menu { color: var(--chalk); }
.nav-brand { color: var(--ink); }
body.is-dark .nav-brand { color: var(--chalk); }
