/* ═══════════════════════════════════════════════════════════════
   KIN DESIGN SYSTEM
   Single source of truth. Every page links this file.

   Principle: the brand promise is "without the noise". Motion here
   is cinematic, not loud — long easings, deep staggers, nothing that
   bounces, blinks, or demands. Weight and patience read as expensive.

   Contrast: every text/background pair below is measured against
   WCAG 2.1. Ratios are noted inline. Do not introduce a colour
   without measuring it first.
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
   01 · TOKENS
   ─────────────────────────────────────────────── */
:root {
  /* — Surfaces — */
  --deep:        #1A2F2F;   /* primary dark surface */
  --deep-mid:    #1E3A3A;   /* raised dark surface */
  --deep-deeper: #142525;   /* recessed dark surface */
  --warm:        #F4F1EC;   /* secondary light surface */
  --cream:       #FAF9F6;   /* primary light surface */
  --white:       #FFFFFF;

  /* — Brand teal —
     --teal      brand fill. Never use as text on a light surface (2.74:1).
     --teal-ink  the text-weight teal. 5.14:1 on cream, 4.80:1 on warm.
                 Passes AA on BOTH light surfaces — the earlier #3F7C7C
                 cleared cream at 4.55 but failed warm at 4.25.
     --teal-lit  for text/accents on --deep only. 6.63:1 on deep.
     --teal-glow ambient light, decorative only.                        */
  --teal:      #5BA4A4;
  --teal-ink:  #3A7373;
  --teal-deep: #2F5F5F;
  --teal-lit:  #7DBDBD;
  --teal-glow: rgba(91, 164, 164, 0.06);

  /* Small tracked all-caps is thinner on the page than its size suggests,
     so 4.8:1 reads worse than the number promises. Anything ≤13px or
     letter-spaced past 0.1em uses the strong rung: 7.66 cream / 7.16 warm. */
  --teal-ink-str: #2B5757;

  /* — Clay (the "what kin is not" register, and the error state) —
     --clay      decorative only. 3.40:1 on cream — never use as text.
     --clay-ink  text weight on light: 4.88:1 cream, 4.56:1 warm.
     --clay-lit  text weight on --deep: 7.01:1.                        */
  --clay:     #C47068;
  --clay-ink: #A85647;
  --clay-ink-str: #8E4636;  /* 6.48 cream / 6.05 warm — small tracked caps */
  --clay-lit: #E8A79E;

  /* — Ink on light surfaces —
     Ratios given as cream / warm. Both must clear 4.5:1, because every
     one of these is used on both surfaces somewhere on the site.       */
  --charcoal:   #1E1E1E;   /* 15.83 / 14.80 */
  --charcoal-2: #2F2F2F;   /* 12.53 / 11.72 */
  --text:       #3A3A3A;   /* 10.80 / 10.10 — body               */
  --text-mid:   #5F5F5F;   /*  6.07 /  5.67 — secondary body     */
  --text-soft:  #6E6E6E;   /*  4.84 /  4.53 — smallest passing   */
  --hairline:   #9A9A9A;   /*  2.67 /  2.50 — NEVER text. Rules only. */
  --border:     #E0DDD8;
  --border-soft: rgba(26, 47, 47, 0.06);

  /* — Ink on --deep —
     Below 0.50 alpha nothing passes AA for body copy.
     Below 0.35 nothing passes even at display size.       */
  --on-deep:       rgba(255, 255, 255, 0.96); /* 13.2:1 */
  --on-deep-mid:   rgba(255, 255, 255, 0.72); /*  8.1:1 */
  --on-deep-soft:  rgba(255, 255, 255, 0.58); /*  5.8:1 — body floor */
  --on-deep-quiet: rgba(255, 255, 255, 0.50); /*  4.7:1 — AA minimum */
  --on-deep-display: rgba(255,255,255,0.38);  /*  3.3:1 — ≥24px only */
  --on-deep-rule:  rgba(255, 255, 255, 0.14); /* decorative only */
  --on-deep-hair:  rgba(255, 255, 255, 0.08);

  /* — Type — */
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans:  'Jost', 'Futura', 'Avenir Next', sans-serif;
  --body:  'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-display: clamp(46px, 8.4vw, 108px);
  --fs-1:  clamp(38px, 6vw, 72px);
  --fs-2:  clamp(31px, 5.4vw, 62px);
  --fs-3:  clamp(26px, 4vw, 42px);
  --fs-4:  clamp(23px, 3.5vw, 38px);
  --fs-5:  clamp(24px, 3vw, 30px);
  --fs-6:  clamp(20px, 2.4vw, 26px);
  --fs-7:  22px;
  --fs-8:  20px;
  --fs-9:  16px;
  --fs-body: 15px;
  --fs-sm: 14px;
  --fs-xs: 13px;
  --fs-2xs: 12px;
  --fs-3xs: 11px;
  --fs-label: 10px;

  --lh-tight: 1.05;
  --lh-display: 1.15;
  --lh-snug: 1.4;
  --lh-body: 1.75;
  --lh-loose: 1.85;

  --ls-display: -0.02em;
  --ls-label: 0.3em;
  --ls-eyebrow: 0.36em;

  /* — Space (4px base) — */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;
  --s-9: 48px;  --s-10: 56px; --s-11: 64px; --s-12: 80px;
  --s-13: 100px; --s-14: 140px;

  --gutter:     clamp(20px, 6vw, 80px);
  --gutter-nav: clamp(20px, 4vw, 48px);
  --section-y:    clamp(80px, 10vw, 140px);
  --section-y-lg: clamp(88px, 12vw, 168px);
  --measure: 720px;
  --measure-wide: 1000px;

  /* — Radius — */
  --r-xs: 8px;  --r-sm: 12px; --r-md: 16px;
  --r-lg: 20px; --r-xl: 28px; --r-pill: 100px;

  /* — Elevation — */
  --shadow-sm: 0 1px 2px rgba(26,47,47,0.04), 0 2px 8px rgba(26,47,47,0.04);
  --shadow-md: 0 2px 4px rgba(26,47,47,0.04), 0 12px 32px rgba(26,47,47,0.07);
  --shadow-lg: 0 4px 10px rgba(26,47,47,0.05), 0 28px 64px rgba(26,47,47,0.10);
  --shadow-cta: 0 6px 22px rgba(91,164,164,0.26);
  --shadow-cta-lift: 0 12px 34px rgba(91,164,164,0.34);

  /* — Motion —
     One easing family. Expo-out is the house curve: fast commit,
     long settle. Nothing overshoots. Nothing bounces.            */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.30, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft:      cubic-bezier(0.4, 0, 0.2, 1);

  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   620ms;
  --dur-reveal: 1100ms;
  --dur-line:   1000ms;
  --dur-ambient: 22s;
  --stagger:    90ms;

  /* — Layers — */
  --z-below: 0;
  --z-base: 1;
  --z-mobilenav: 98;
  --z-nav: 100;
  --z-progress: 101;
}

/* ───────────────────────────────────────────────
   02 · RESET + BASE
   ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;         /* anchors clear the fixed nav */
  background: var(--deep);          /* prevents a cream flash before paint */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
/* height:auto is not optional once an <img> carries width/height attributes.
   Those attributes act as presentational hints, so without this the rendered
   height stays pinned to the intrinsic pixel value while the width scales —
   which stretches the image. They are still worth setting: they give the
   browser the aspect ratio up front and stop the layout shifting on load. */
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

/* Any component that sets `display` out-ranks the [hidden] UA default,
   so a hidden element renders anyway. .btn is display:inline-flex — this
   is what kept a dead "Share" button on screen where Web Share is
   unsupported. Keep this rule above every component. */
[hidden] { display: none !important; }

::selection { background: var(--teal); color: var(--deep); }

/* Focus — visible, on-brand, and never removed.
   Two-tone ring so it reads on both light and dark surfaces. */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.on-dark :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.final :focus-visible,
.footer :focus-visible,
.nav :focus-visible,
.mobile-nav :focus-visible {
  outline-color: var(--teal-lit);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--teal); color: var(--deep);
  font-family: var(--sans); font-size: var(--fs-2xs); font-weight: 500;
  letter-spacing: 0.06em;
  padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--r-xs) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ───────────────────────────────────────────────
   03 · SURFACE PRIMITIVES
   ─────────────────────────────────────────────── */
.grain { position: relative; }
.grain::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
/* Multiply on a dark surface cancels itself out. Overlay keeps the tooth. */
.grain.on-dark::after { mix-blend-mode: overlay; opacity: 0.07; }

/* Ambient glow — the slow breathing light behind dark sections. */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 65%);
  will-change: transform, opacity;
}
.glow--hero { top: 30%; left: 50%; width: 800px; height: 800px; margin: -400px 0 0 -400px; }
.glow--low  { bottom: -30%; right: -10%; width: 500px; height: 500px; }
.glow--top  { top: -20%; left: 50%; width: 600px; height: 600px; margin-left: -300px; }

.container { max-width: var(--measure); margin: 0 auto; }
.container.wide { max-width: var(--measure-wide); }

/* ───────────────────────────────────────────────
   04 · MOTION
   The reveal contract: `html.js` is set synchronously in <head>.
   No JS  → nothing is ever hidden. No flash, no dependency.
   ─────────────────────────────────────────────── */

/* — Scroll reveal — */
html.js .r {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(5px);
}
html.js .r.v {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity   var(--dur-reveal) var(--ease-out-expo),
    transform var(--dur-reveal) var(--ease-out-expo),
    filter    var(--dur-slow)   var(--ease-out-expo);
}
.r-delay-1 { transition-delay: calc(var(--stagger) * 1) !important; }
.r-delay-2 { transition-delay: calc(var(--stagger) * 2) !important; }
.r-delay-3 { transition-delay: calc(var(--stagger) * 3) !important; }
.r-delay-4 { transition-delay: calc(var(--stagger) * 4) !important; }

/* Children stagger automatically off the parent's reveal. */
html.js .r-stagger > * { opacity: 0; transform: translate3d(0, 20px, 0); }
html.js .r-stagger.v > * {
  opacity: 1; transform: none;
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}
html.js .r-stagger.v > *:nth-child(1) { transition-delay: calc(var(--stagger) * 0); }
html.js .r-stagger.v > *:nth-child(2) { transition-delay: calc(var(--stagger) * 1); }
html.js .r-stagger.v > *:nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
html.js .r-stagger.v > *:nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
html.js .r-stagger.v > *:nth-child(5) { transition-delay: calc(var(--stagger) * 4); }
html.js .r-stagger.v > *:nth-child(6) { transition-delay: calc(var(--stagger) * 5); }

/* — Signature move: the masked line rise —
   Display type arrives one line at a time from behind its own baseline.
   This is the site's most expensive-feeling gesture. Use it only on h1. */
.ln { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.ln > span { display: block; }
html.js .r-lines .ln > span {
  transform: translate3d(0, 110%, 0);
  opacity: 0;
}
html.js .r-lines.v .ln > span {
  transform: none;
  opacity: 1;
  transition: transform var(--dur-line) var(--ease-out-expo),
              opacity calc(var(--dur-line) * 0.6) var(--ease-soft);
}
html.js .r-lines.v .ln:nth-child(2) > span { transition-delay: 110ms; }
html.js .r-lines.v .ln:nth-child(3) > span { transition-delay: 220ms; }

/* — Signature move: the circle draw —
   The mark closes its own loop. Circle motif = circles = vinculum, a bond. */
.draw-circle {
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
}
html.js .draw-circle { animation: circleDraw 1600ms var(--ease-out-expo) 260ms forwards; }
@keyframes circleDraw { to { stroke-dashoffset: 0; } }

/* — Ambient breathing on the glows — */
html.js .glow { animation: breathe var(--dur-ambient) var(--ease-soft) infinite; }
html.js .glow--low { animation-duration: 28s; animation-direction: alternate; }
@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: 0.75; }
  50%      { transform: scale(1.18); opacity: 1; }
}

/* — Scroll depth hairline — */
.progress {
  position: fixed; top: 0; left: 0; height: 2px;
  width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal), var(--teal-lit));
  z-index: var(--z-progress);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  html.js .progress {
    animation: progressGrow linear;
    animation-timeline: scroll(root block);
  }
  @keyframes progressGrow { to { transform: scaleX(1); } }
}

/* — Scroll-linked parallax where the browser can do it off-thread — */
@supports (animation-timeline: view()) {
  html.js .parallax-slow {
    animation: parallaxDrift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes parallaxDrift {
    from { transform: translate3d(0, 6%, 0); }
    to   { transform: translate3d(0, -6%, 0); }
  }
}

/* — Cross-document page transitions —
   Progressive: Chrome/Edge/Safari get it, Firefox gets a normal load. */
@view-transition { navigation: auto; }

.nav        { view-transition-name: kin-nav; }
.footer     { view-transition-name: kin-footer; }

::view-transition-old(root) {
  animation: vtOut 320ms var(--ease-in-out) both;
}
::view-transition-new(root) {
  animation: vtIn 560ms var(--ease-out-expo) both;
}
@keyframes vtOut {
  to { opacity: 0; transform: translate3d(0, -14px, 0) scale(0.994); filter: blur(3px); }
}
@keyframes vtIn {
  from { opacity: 0; transform: translate3d(0, 20px, 0) scale(1.006); filter: blur(4px); }
}
/* The nav and footer persist across the cut — they never re-animate. */
::view-transition-group(kin-nav),
::view-transition-group(kin-footer) { animation-duration: 320ms; }

/* — The one honest exception to "no reduced motion" —
   Everything above collapses to an instant, legible state.        */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .r,
  html.js .r-stagger > *,
  html.js .r-lines .ln > span {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  html.js .draw-circle { stroke-dashoffset: 0; animation: none; }
  html.js .glow { animation: none; }
  .progress { display: none; }
  @view-transition { navigation: none; }
}

/* ───────────────────────────────────────────────
   05 · NAV
   ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 0 var(--gutter-nav);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: height var(--dur-slow) var(--ease-out-expo),
              background var(--dur-base) var(--ease-soft),
              backdrop-filter var(--dur-base) var(--ease-soft),
              border-color var(--dur-base) var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 56px;
  background: rgba(26, 47, 47, 0.86);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--on-deep-hair);
}

.nav-logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nav-mark {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}
.nav-logo:hover .nav-mark { transform: rotate(-16deg) scale(1.06); }
.nav-mark svg { width: 30px; height: 30px; overflow: visible; }
.nav-mark .ring { stroke: var(--on-deep-mid); transition: stroke var(--dur-base); }
.nav-mark .tie  { stroke: var(--teal-lit); }
.nav.scrolled .nav-mark .ring { stroke: var(--on-deep); }

.nav-wordmark {
  font-family: var(--sans);
  font-size: var(--fs-9); font-weight: 400;
  color: var(--on-deep-mid);
  letter-spacing: 0.12em;
  transition: color var(--dur-base);
}
.nav-logo:hover .nav-wordmark { color: var(--on-deep); }

.nav-links { display: flex; gap: var(--s-7); list-style: none; align-items: center; }
.nav-links a {
  position: relative;
  display: flex; align-items: center;
  min-height: 44px;                    /* WCAG 2.5.8 target size */
  font-family: var(--body);
  font-size: var(--fs-3xs); font-weight: 400;
  color: var(--on-deep-quiet);
  letter-spacing: 0.05em;
  transition: color var(--dur-base) var(--ease-soft);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 12px;
  height: 1px; background: var(--teal-lit);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}
.nav-links a:hover { color: var(--on-deep); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-links a.active { color: var(--on-deep); }
.nav-links a.active::after { transform: scaleX(1); background: var(--teal); }

/* The nav CTA — the only always-visible conversion affordance.
   Selector must out-rank `.nav-links a` (0,1,1) and `.nav-links a.active`
   (0,2,1), or the link colour wins and the label renders white-on-teal
   at 2.78:1 instead of deep-on-teal at 4.89:1. */
.nav-links a.nav-cta,
.nav-links a.nav-cta.active {
  font-family: var(--sans);
  font-size: var(--fs-2xs); font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--deep);
  background: var(--teal);
  padding: 9px var(--s-5);
  min-height: 0;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-soft),
              transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-soft);
}
.nav-links a.nav-cta:hover {
  color: var(--deep);
  background: var(--teal-lit);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}
/* The CTA is a button, not a nav link — it gets no underline. */
.nav-links a.nav-cta::after,
.nav-links a.nav-cta.active::after { display: none; }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: var(--s-2);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--on-deep-mid);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out-expo),
              opacity var(--dur-fast) var(--ease-soft);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20, 37, 37, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--z-mobilenav);
  padding: 96px var(--gutter-nav) var(--s-9);
  display: flex; flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-soft),
              visibility 0s linear var(--dur-base);
}
.mobile-nav.open {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-base) var(--ease-soft), visibility 0s;
}
.mobile-nav a {
  font-family: var(--serif);
  font-size: var(--fs-6); font-weight: 400;
  color: var(--on-deep-mid);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--on-deep-hair);
  display: block;
  opacity: 0; transform: translateY(14px);
  transition: color var(--dur-base),
              opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}
.mobile-nav.open a { opacity: 1; transform: none; }
.mobile-nav.open a:nth-child(1) { transition-delay: 40ms; }
.mobile-nav.open a:nth-child(2) { transition-delay: 80ms; }
.mobile-nav.open a:nth-child(3) { transition-delay: 120ms; }
.mobile-nav.open a:nth-child(4) { transition-delay: 160ms; }
.mobile-nav.open a:nth-child(5) { transition-delay: 200ms; }
.mobile-nav.open a:nth-child(6) { transition-delay: 240ms; }
.mobile-nav.open a:nth-child(7) { transition-delay: 280ms; }
.mobile-nav a:hover { color: var(--on-deep); }
.mobile-nav a.active { color: var(--teal-lit); }
/* Same specificity trap as .nav-cta — must beat `.mobile-nav a.active` (0,2,1). */
.mobile-nav a.mobile-cta,
.mobile-nav a.mobile-cta.active,
.mobile-nav a.mobile-cta:hover {
  margin-top: var(--s-8);
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--deep); background: var(--teal);
  border: none; border-bottom: none; border-radius: var(--r-pill);
  padding: var(--s-4) var(--s-7);
}
.mobile-nav a.mobile-cta:hover { background: var(--teal-lit); }

/* ───────────────────────────────────────────────
   06 · BUTTONS
   One primary identity site-wide: teal fill, deep ink.
   White-on-teal is 2.88:1 and fails AA — deep-on-teal is 4.89:1.
   The hairline border carries the 3:1 boundary on light surfaces.
   ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-weight: 500; letter-spacing: 0.04em;
  border: none; cursor: pointer; text-decoration: none;
  border-radius: var(--r-pill);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  transition: background var(--dur-base) var(--ease-soft),
              color var(--dur-base) var(--ease-soft),
              transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-slow) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-soft);
}
.btn svg { width: 1em; height: 1em; flex-shrink: 0;
  transition: transform var(--dur-slow) var(--ease-out-expo); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

.btn--primary {
  background: var(--teal);
  color: var(--deep);
  border: 1px solid var(--teal-ink);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover {
  background: var(--teal-lit);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-lift);
}

.btn--ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--charcoal); border-color: var(--text-soft); }

.btn--dark {
  background: var(--deep); color: var(--on-deep);
  border: 1px solid var(--deep);
}
.btn--dark:hover { background: var(--deep-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--lg { font-size: var(--fs-body); padding: 18px var(--s-11); }
.btn--md { font-size: var(--fs-sm); padding: 16px var(--s-9); }
.btn--sm { font-size: var(--fs-2xs); padding: 11px var(--s-6); }

/* The magnetic halo — a ring that breathes out of the primary CTA.
   Draws the eye without blinking at it. */
.btn--primary::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--teal);
  opacity: 0;
  z-index: -1;
  transition: transform var(--dur-slow) var(--ease-out-expo),
              opacity var(--dur-slow) var(--ease-out-expo);
}
.btn--primary:hover::before { opacity: 0.5; transform: scale(1.09); }

/* CTA support text */
.btn-meta {
  font-family: var(--body);
  font-size: var(--fs-2xs); font-weight: 300;
  color: var(--text-soft);
  margin-top: var(--s-4);
}
.on-dark .btn-meta { color: var(--on-deep-quiet); }

/* ───────────────────────────────────────────────
   07 · FORMS
   ─────────────────────────────────────────────── */
.hp-field { position: absolute; left: -5000px; }

/* Pill form on dark surfaces */
.form-pill {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--on-deep-rule);
  border-radius: var(--r-pill);
  padding: 5px;
  max-width: 420px; margin: 0 auto;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.form-pill:focus-within {
  border-color: var(--teal);
  background: rgba(255,255,255,0.10);
}
.form-pill input[type="email"] {
  flex: 1;
  font-family: var(--body);
  font-size: var(--fs-xs); font-weight: 300;
  padding: 13px var(--s-5);
  background: transparent; border: none; outline: none;
  color: var(--on-deep);
  min-width: 0;
}
.form-pill input::placeholder { color: var(--on-deep-quiet); }

.form-note {
  font-family: var(--body);
  font-size: var(--fs-3xs); font-weight: 300;
  color: var(--on-deep-quiet);
  margin-top: var(--s-4);
}

.form-status {
  font-family: var(--body); font-size: var(--fs-xs); font-weight: 300;
  margin-top: var(--s-4); line-height: var(--lh-snug);
}
.form-status[data-state="pending"] { color: var(--text-mid); }
.form-status[data-state="ok"]      { color: var(--teal-ink); }
.form-status[data-state="error"]   { color: var(--clay-ink); }
.on-dark .form-status[data-state="pending"] { color: var(--on-deep-soft); }
.on-dark .form-status[data-state="ok"]      { color: var(--teal-lit); }
.on-dark .form-status[data-state="error"]   { color: var(--clay-lit); }

/* Boxed form on light surfaces */
.field { margin-bottom: var(--s-5); }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: var(--s-2);
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: var(--fs-sm); font-weight: 300;
  padding: 14px var(--s-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}
.field input:focus, .field textarea:focus {
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 3px rgba(91,164,164,0.16);
}
.field textarea { min-height: 150px; resize: vertical; }

/* ─── Capture form on a dark surface ───
   The pill form is for a single email. This is the concierge capture:
   name, mobile, and a readiness choice. It is the page's primary action,
   so it is never hidden behind a disclosure. */
.capture {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}
.on-dark .field label,
.capture .field label { color: var(--on-deep-soft); }
.on-dark .field input,
.on-dark .field textarea,
.capture .field input,
.capture .field textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--on-deep-rule);
  color: var(--on-deep);
}
.capture .field input::placeholder { color: var(--on-deep-quiet); }
.capture .field input:focus,
.capture .field textarea:focus {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(91, 164, 164, 0.22);
}
.capture .btn { width: 100%; margin-top: var(--s-2); }

/* The readiness fork. Two stacked cards, not a bare radio pair — the
   choice is the most consequential thing on the page and needs the room. */
.choice { border: none; margin: 0 0 var(--s-5); padding: 0; }
.choice > legend {
  font-family: var(--sans);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-deep-soft);
  margin-bottom: var(--s-3);
  padding: 0;
}
.choice-list { display: grid; gap: var(--s-2); }
.choice-option {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--on-deep-rule);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-soft),
              background var(--dur-base) var(--ease-soft);
}
.choice-option:hover { border-color: var(--on-deep-quiet); }
.choice-option:has(input:checked) {
  border-color: var(--teal);
  background: rgba(91, 164, 164, 0.12);
}
.choice-option:has(input:focus-visible) {
  outline: 2px solid var(--teal-lit);
  outline-offset: 2px;
}
.choice-option input {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 2px;
  border: 1.5px solid var(--on-deep-quiet);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.choice-option input:checked {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 4px var(--teal);
}
.choice-option input:focus-visible { outline: none; }
.choice-text { display: block; }
.choice-text strong {
  display: block;
  font-family: var(--body); font-size: var(--fs-sm); font-weight: 500;
  color: var(--on-deep);
}
.choice-text span {
  display: block;
  font-family: var(--body); font-size: var(--fs-2xs); font-weight: 300;
  color: var(--on-deep-soft);
  line-height: 1.55; margin-top: 2px;
}

/* Consent — small, but it is a commitment, so it stays above the AA floor. */
.consent {
  font-family: var(--body);
  font-size: var(--fs-3xs); font-weight: 300;
  line-height: 1.6;
  color: var(--on-deep-quiet);
  margin-top: var(--s-3);
}

/* Disclosure toggle (the "not on iPhone" path) */
/* Also styles an <a> — the home page links to beta's code panel rather than
   inlining a second copy of the TestFlight URL. */
.disclosure-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: var(--fs-3xs); font-weight: 300;
  color: var(--on-deep-quiet);
  background: none; border: none; cursor: pointer;
  text-align: center;
  /* The underline is drawn as a pseudo-element so the hit area can be
     44px tall without a comically deep rule under the text. */
  position: relative;
  min-height: 44px;
  padding: 0 var(--s-2);
  transition: color var(--dur-base);
}
.disclosure-toggle::after {
  content: '';
  position: absolute; left: var(--s-2); right: var(--s-2);
  bottom: 12px; height: 1px;
  background: var(--on-deep-rule);
  transition: background var(--dur-base);
}
.disclosure-toggle:hover { color: var(--on-deep); }
.disclosure-toggle:hover::after { background: var(--teal-lit); }
/* Collapsed only when JS is present to expand it again. Ungated, a failed
   script left the non-iOS waitlist form permanently unreachable — the
   opposite of the no-JS contract the rest of the file keeps. */
.disclosure { display: grid; grid-template-rows: 1fr; width: 100%; }
html.js .disclosure {
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out-expo);
}
html.js .disclosure > div { overflow: hidden; }
html.js .disclosure.open { grid-template-rows: 1fr; }
/* Without JS the toggle cannot do anything, so it should not be offered. */
html:not(.js) .disclosure-toggle { display: none; }

/* sms: has no handler on desktop — offer it only to touch devices. */
@media (hover: hover) and (pointer: fine) {
  #smsBtn { display: none; }
}

/* ───────────────────────────────────────────────
   08 · HERO (home)
   ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh; min-height: 100svh;
  background: var(--deep);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 120px var(--gutter) var(--s-12);
  position: relative; overflow: hidden;
}
.hero-label {
  font-family: var(--sans);
  font-size: var(--fs-3xs); font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--teal-lit);
  margin-bottom: var(--s-8);
  position: relative; z-index: var(--z-base);
  display: inline-flex; align-items: center; gap: var(--s-3);
}
/* The live dot — the single "on air" signal. Slow, not a blink. */
.hero-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(91,164,164,0.6);
}
html.js .hero-label::before { animation: pulseDot 3.2s var(--ease-soft) infinite; }
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(91,164,164,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(91,164,164,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,164,164,0); }
}

.hero h1 {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--on-deep);
  letter-spacing: var(--ls-display);
  position: relative; z-index: var(--z-base);
  max-width: 900px;
}
.hero h1 em { font-style: italic; color: var(--teal-lit); }

.hero-sub {
  font-family: var(--body);
  font-size: var(--fs-body); font-weight: 300;
  line-height: var(--lh-loose);
  color: var(--on-deep-soft);
  max-width: 440px;
  margin: var(--s-8) auto 0;
  position: relative; z-index: var(--z-base);
}
.hero-capture { margin-top: var(--s-9); position: relative; z-index: var(--z-base); width: 100%; }
.hero-cta {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-5);
  max-width: 420px; margin: 0 auto;
}

.hero-scroll { position: absolute; bottom: var(--s-7); left: 50%; transform: translateX(-50%); }
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--on-deep-rule), transparent);
}
html.js .scroll-line { animation: scrollPulse 2.8s var(--ease-soft) infinite; }
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.75); transform-origin: top; }
  50%      { opacity: 1;    transform: scaleY(1);    transform-origin: top; }
}

.capture-success { display: none; text-align: center; }
.capture-success.show { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.capture-success p { font-family: var(--serif); font-size: var(--fs-7); color: var(--teal-lit); }
.capture-success span {
  display: block; font-family: var(--body);
  font-size: var(--fs-xs); font-weight: 300;
  color: var(--on-deep-soft); margin-top: var(--s-3);
  max-width: 340px;
}


/* ───────────────────────────────────────────────
   09 · PAGE HERO (subpages)
   ─────────────────────────────────────────────── */
.page-hero {
  background: var(--deep);
  padding: 156px var(--gutter) var(--s-13);
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero-inner { position: relative; z-index: var(--z-base); max-width: 700px; margin: 0 auto; }
.page-hero-eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-3xs); font-weight: 500;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--teal-lit);
  margin-bottom: var(--s-6);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: var(--fs-1);
  font-weight: 400; line-height: var(--lh-display);
  color: var(--on-deep);
  letter-spacing: var(--ls-display);
}
.page-hero h1 em { font-style: italic; color: var(--teal-lit); }
.page-hero-sub {
  font-family: var(--body);
  font-size: var(--fs-body); font-weight: 300;
  line-height: var(--lh-loose);
  color: var(--on-deep-soft);
  max-width: 540px;
  margin: var(--s-6) auto 0;
}
.page-hero-meta {
  font-family: var(--sans);
  font-size: var(--fs-label); font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-deep-quiet);
  margin-top: var(--s-7);
}

/* ───────────────────────────────────────────────
   10 · CONTENT SHELL
   ─────────────────────────────────────────────── */
.content { background: var(--cream); padding: var(--section-y) var(--gutter); }
.content--warm { background: var(--warm); }
.content-inner { max-width: var(--measure); margin: 0 auto; }
.content-inner.wide { max-width: var(--measure-wide); }

.section-label {
  font-family: var(--sans);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: var(--s-9); text-align: center;
}

/* ───────────────────────────────────────────────
   11 · CONTRAST (is / is not)
   ─────────────────────────────────────────────── */
.contrast { padding: var(--section-y) var(--gutter); background: var(--warm); }
.contrast-inner {
  max-width: var(--measure-wide); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contrast-col { min-width: 0; }
.contrast-divider {
  background: linear-gradient(to bottom, transparent, var(--border) 12%, var(--border) 88%, transparent);
  align-self: stretch;
  transform-origin: 50% 0;
}
html.js .contrast-divider { transform: scaleY(0); transition: transform 1400ms var(--ease-out-expo); }
html.js .contrast.v .contrast-divider,
html.js .contrast-inner.v .contrast-divider { transform: scaleY(1); }

.contrast-label {
  font-family: var(--sans);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  margin-bottom: var(--s-9);
}
.contrast-label.not { color: var(--clay-ink-str); }
.contrast-label.is  { color: var(--teal-ink-str); }

.contrast-item { padding: var(--s-5) 0; border-bottom: 1px solid var(--border-soft); }
.contrast-item:last-child { border-bottom: none; }
.contrast-item p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400; color: var(--charcoal);
  line-height: var(--lh-snug);
}
.contrast-item .sub {
  font-family: var(--body);
  font-size: var(--fs-xs); font-weight: 300;
  color: var(--text-mid); line-height: 1.65;
  margin-top: var(--s-2);
}

/* ───────────────────────────────────────────────
   12 · PHILOSOPHY
   ─────────────────────────────────────────────── */
.philosophy {
  background: var(--deep);
  padding: var(--section-y-lg) var(--gutter);
  text-align: center;
  position: relative; overflow: hidden;
}
.philosophy blockquote {
  font-family: var(--serif);
  font-size: var(--fs-2);
  font-weight: 400; font-style: italic;
  line-height: 1.25; color: var(--on-deep);
  max-width: 750px; margin: 0 auto;
  position: relative; z-index: var(--z-base);
}
.philosophy blockquote .second { display: block; margin-top: var(--s-2); color: var(--on-deep-display); }
.philosophy-tag {
  font-family: var(--sans);
  font-size: var(--fs-label); font-weight: 400;
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--on-deep-quiet);
  margin-top: var(--s-9);
  position: relative; z-index: var(--z-base);
}

/* ───────────────────────────────────────────────
   13 · MECHANICS / STEPS
   ─────────────────────────────────────────────── */
.mechanics { background: var(--cream); padding: var(--section-y) var(--gutter); }
.mechanics-inner { max-width: var(--measure); margin: 0 auto; }

.mechanic {
  display: grid; grid-template-columns: 52px 1fr;
  gap: var(--s-6);
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.mechanic:last-child { border-bottom: none; }
.mechanic-marker {
  font-family: var(--serif);
  font-size: 34px; color: var(--teal-ink);
  line-height: 1; padding-top: 2px;
  position: relative;
}
.mechanic h3 {
  font-family: var(--serif);
  font-size: var(--fs-7); font-weight: 400;
  color: var(--charcoal); margin-bottom: var(--s-2);
}
.mechanic p {
  font-family: var(--body);
  font-size: var(--fs-sm); font-weight: 300;
  color: var(--text-mid); line-height: var(--lh-body);
}

/* Numbered steps (beta) — the ring fills as the step reveals. */
.step {
  display: flex; gap: var(--s-5);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border);
  text-align: left;
}
.step:first-of-type { border-top: none; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--deep); color: var(--on-deep);
  font-family: var(--sans); font-size: var(--fs-2xs); font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.step-num::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--teal);
  opacity: 0; transform: scale(0.8);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}
html.js .step.v .step-num::after { opacity: 0.6; transform: scale(1); }
.step h3 {
  font-family: var(--sans); font-size: var(--fs-9); font-weight: 500;
  color: var(--charcoal); margin-bottom: var(--s-1);
}
.step p {
  font-family: var(--body); font-size: var(--fs-sm); font-weight: 300;
  line-height: var(--lh-body); color: var(--text-mid);
}

/* ───────────────────────────────────────────────
   14 · COMPAT STRIP
   ─────────────────────────────────────────────── */
.compat {
  padding: var(--s-5) var(--gutter);
  text-align: center;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.compat p {
  font-family: var(--body);
  font-size: var(--fs-3xs); font-weight: 300;
  color: var(--text-soft); letter-spacing: 0.04em;
}

/* ───────────────────────────────────────────────
   15 · FINAL CTA
   ─────────────────────────────────────────────── */
.final {
  background: var(--deep);
  padding: var(--section-y-lg) var(--gutter);
  text-align: center;
  position: relative; overflow: hidden;
}
.final-lead {
  font-family: var(--serif);
  font-size: var(--fs-3);
  font-weight: 400; font-style: italic;
  color: var(--on-deep-display);
  margin-bottom: var(--s-9);
  position: relative; z-index: var(--z-base);
}
.final-card { max-width: 460px; margin: 0 auto; position: relative; z-index: var(--z-base); }
.final-title {
  font-family: var(--serif);
  font-size: var(--fs-5); font-weight: 400;
  color: var(--on-deep); margin-bottom: var(--s-3);
}
.final-desc {
  font-family: var(--body);
  font-size: var(--fs-sm); font-weight: 300;
  color: var(--on-deep-soft);
  line-height: var(--lh-body); margin-bottom: var(--s-8);
}

/* ───────────────────────────────────────────────
   16 · FEATURES / PRINCIPLES / ENTITY (about)
   ─────────────────────────────────────────────── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(60px, 8vw, 100px) 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.feature-row:last-of-type { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-label {
  font-family: var(--sans);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--teal-ink-str);
  margin-bottom: var(--s-4);
}
.feature-title {
  font-family: var(--serif);
  font-size: var(--fs-4);
  font-weight: 400; color: var(--charcoal);
  line-height: 1.2; margin-bottom: var(--s-4);
  letter-spacing: -0.01em;
}
.feature-desc {
  font-family: var(--body);
  font-size: var(--fs-body); font-weight: 300;
  color: var(--text-mid); line-height: var(--lh-body);
}
.feature-image {
  width: 100%; border-radius: var(--r-sm); display: block;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-reveal) var(--ease-out-expo),
              box-shadow var(--dur-reveal) var(--ease-out-expo);
}
html.js .feature-row .feature-image { transform: scale(0.97); }
html.js .feature-row.v .feature-image { transform: scale(1); box-shadow: var(--shadow-lg); }

.principles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7);
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.principle h4 {
  font-family: var(--serif);
  font-size: var(--fs-8); font-weight: 400;
  color: var(--charcoal); margin-bottom: var(--s-2);
}
.principle p {
  font-family: var(--body);
  font-size: var(--fs-xs); font-weight: 300;
  color: var(--text-mid); line-height: var(--lh-body);
}

.entity-card {
  margin-top: clamp(60px, 8vw, 100px);
  padding: clamp(32px, 5vw, 56px);
  background: var(--warm);
  border-radius: var(--r-md);
  text-align: center;
}
.entity-card .feature-label { margin-bottom: var(--s-3); }
.entity-card h3 {
  font-family: var(--serif);
  font-size: var(--fs-6); font-weight: 400;
  color: var(--charcoal); margin-bottom: var(--s-3);
}
.entity-card p {
  font-family: var(--body);
  font-size: var(--fs-sm); font-weight: 300;
  color: var(--text-mid); line-height: var(--lh-body);
  margin: 0 auto var(--s-5); max-width: 500px;
}

/* ───────────────────────────────────────────────
   17 · LINKS IN PROSE
   ─────────────────────────────────────────────── */
.link-teal {
  color: var(--teal-ink);
  border-bottom: 1px solid rgba(58,115,115,0.38);
  transition: border-color var(--dur-base), color var(--dur-base);
}
.link-teal:hover { border-bottom-color: var(--teal-ink); color: var(--teal-deep); }

/* A standalone call-to-action, not a link inside a sentence — so WCAG 2.5.8's
   inline exception does not apply and it needs a real 24px target. */
.link-inline {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 24px;
  font-family: var(--sans);
  font-size: var(--fs-2xs); font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--teal-ink);
  border-bottom: 1px solid rgba(58,115,115,0.38);
  padding-bottom: 2px;
  transition: border-color var(--dur-base), color var(--dur-base);
}
.link-inline svg { transition: transform var(--dur-slow) var(--ease-out-expo); }
.link-inline:hover { border-bottom-color: var(--teal-ink); }
.link-inline:hover svg { transform: translateX(3px); }

/* ───────────────────────────────────────────────
   18 · LEGAL PROSE
   ─────────────────────────────────────────────── */
.legal {
  font-family: var(--body);
  font-size: 14.5px; font-weight: 300;
  line-height: var(--lh-loose);
  color: var(--text);
}
.legal h2 {
  font-family: var(--serif);
  font-size: var(--fs-6); font-weight: 400;
  color: var(--charcoal);
  margin: var(--s-10) 0 var(--s-4);
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: none; padding: 0; }
.legal li { padding: var(--s-3) 0 var(--s-3) var(--s-5); position: relative; }
.legal li::before { content: '—'; position: absolute; left: 0; color: var(--teal-ink); }
.legal p { margin-bottom: var(--s-4); }
.legal a {
  color: var(--teal-ink);
  border-bottom: 1px solid rgba(58,115,115,0.38);
  transition: border-color var(--dur-base);
}
.legal a:hover { border-bottom-color: var(--teal-ink); }

/* ───────────────────────────────────────────────
   19 · CONTACT
   ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
.contact-col h3 {
  font-family: var(--serif);
  font-size: var(--fs-7); font-weight: 400;
  color: var(--charcoal); margin-bottom: var(--s-5);
}
.contact-label {
  font-family: var(--sans);
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: var(--s-2);
}
.contact-value {
  font-family: var(--body);
  font-size: var(--fs-body); font-weight: 300;
  color: var(--text);
  margin-bottom: var(--s-7); line-height: var(--lh-body);
}
.contact-value a {
  display: inline-block;      /* lets the 24px target apply */
  min-height: 24px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--dur-base);
}
.contact-value a:hover { border-bottom-color: var(--teal-ink); }
.contact-hint { font-size: var(--fs-2xs); color: var(--text-soft); }

/* ───────────────────────────────────────────────
   20 · BETA PAGE
   ─────────────────────────────────────────────── */
.beta-wrap { max-width: 640px; margin: 0 auto; }

.qr-panel {
  display: none; margin-top: var(--s-8); padding: var(--s-7);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.qr-panel.show { display: block; }
.qr-panel img { width: 168px; height: 168px; margin: 0 auto var(--s-5); }
.qr-panel p {
  font-family: var(--body); font-size: var(--fs-xs); font-weight: 300;
  color: var(--text-mid); line-height: var(--lh-body);
}

.share-box {
  margin-top: var(--s-8); padding: var(--s-7);
  background: var(--warm); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: left;
}
.share-box .lbl {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--text-mid); margin-bottom: var(--s-3);
}
.share-text {
  font-family: var(--body); font-size: 13.5px; font-weight: 300;
  line-height: var(--lh-loose); color: var(--text);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5); margin-bottom: var(--s-4);
}
.share-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.beta-note {
  font-family: var(--body); font-size: var(--fs-2xs); font-weight: 300;
  line-height: var(--lh-loose); color: var(--text-soft);
  margin-top: var(--s-8); padding-top: var(--s-7);
  border-top: 1px solid var(--border);
  text-align: left;
}

/* ─── Creed (vinculum) ─── */
.creed { text-align: center; }
.creed-rule { width: 40px; height: 1px; background: var(--border); margin: 0 auto var(--s-9); }
.creed blockquote {
  font-family: var(--serif); font-size: var(--fs-7);
  font-style: italic; color: var(--text-mid);
  line-height: 1.5; max-width: 560px; margin: 0 auto var(--s-9);
}
.creed-contact { font-family: var(--body); font-size: var(--fs-xs); color: var(--text-mid); }
.creed-back { margin-top: var(--s-9); }

/* ───────────────────────────────────────────────
   21 · FOOTER
   ─────────────────────────────────────────────── */
.footer {
  background: var(--deep);
  border-top: 1px solid var(--on-deep-hair);
  padding: var(--s-8) var(--gutter-nav) var(--s-7);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-4);
}
.footer-left { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.footer-wordmark {
  font-family: var(--sans);
  font-size: var(--fs-sm); font-weight: 400;
  color: var(--on-deep-soft); letter-spacing: 0.1em;
}
.footer-email {
  font-family: var(--body);
  font-size: var(--fs-3xs);
  color: var(--on-deep-quiet);
  display: inline-flex; align-items: center; min-height: 32px;
  transition: color var(--dur-base);
}
.footer-email:hover { color: var(--on-deep); }
.footer-nav {
  display: flex; gap: var(--s-5); flex-wrap: wrap; list-style: none;
}
.footer-nav a {
  font-family: var(--body); font-size: var(--fs-3xs);
  color: var(--on-deep-quiet);
  display: inline-flex; align-items: center; min-height: 32px;
  transition: color var(--dur-base);
}
.footer-nav a:hover { color: var(--on-deep); }
.footer-right { display: flex; align-items: center; gap: var(--s-4); }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--on-deep-rule);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-base), transform var(--dur-slow) var(--ease-out-expo);
}
.footer-social a:hover { border-color: var(--teal); transform: translateY(-2px); }
.footer-social svg { width: 13px; height: 13px; color: var(--on-deep-soft); }
.footer-copy {
  width: 100%; text-align: center;
  font-family: var(--body);
  font-size: var(--fs-label); color: var(--on-deep-quiet);
  margin-top: var(--s-4); padding-top: var(--s-4);
  border-top: 1px solid var(--on-deep-hair);
}

/* ───────────────────────────────────────────────
   22 · RESPONSIVE
   ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  .contrast-inner { grid-template-columns: 1fr; gap: var(--s-10); }
  .contrast-divider { display: none; }
  .mechanic { grid-template-columns: 40px 1fr; gap: var(--s-4); }
  .form-pill { flex-direction: column; border-radius: var(--r-md); gap: var(--s-1); padding: var(--s-1); }
  .form-pill .btn { border-radius: var(--r-sm); width: 100%; padding: 15px var(--s-7); }
  .form-pill input[type="email"] { padding: 15px var(--s-4); }
  .hero-scroll { display: none; }
  .hero { padding: 104px var(--gutter) var(--s-11); }
  .page-hero { padding: 128px var(--gutter) var(--s-12); }
  .feature-row { grid-template-columns: 1fr; gap: var(--s-7); padding: var(--s-10) 0; }
  .feature-row.reverse { direction: ltr; }
  .principles { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: var(--s-4); }
}

@media (max-width: 480px) {
  .principles { grid-template-columns: 1fr; }
  .hero { padding: 96px var(--s-6) var(--s-11); }
  .btn--lg { font-size: var(--fs-sm); padding: 16px var(--s-8); width: 100%; }
  .share-actions .btn { flex: 1; }
}

/* Coarse pointers get no hover-lift — it reads as a stuck state on touch. */
@media (hover: none) {
  .btn:hover { transform: none; }
  .btn--primary:hover::before { opacity: 0; transform: none; }
  .footer-social a:hover { transform: none; }
}

@media print {
  .nav, .mobile-nav, .progress, .hero-scroll, .grain::after, .glow { display: none !important; }
  body { background: #fff; color: #000; }
}
