/* GastroInnovations — shared styles
   Tokens, base, components, then page sections. Motion lives at the bottom. */

:root {
  --ink: #35414B;
  --deep: #2A343C;
  --night: #1F272D;
  --panel: #333F48;
  --edge: #46545F;
  --edge-2: #4E5D68;
  --edge-3: #5D6C77;
  --rule-dark: #38444D;

  --bg: #F2F6F4;
  --white: #FFFFFF;
  --mist: #E5EFEA;
  --mist-2: #DFE9E5;
  --line: #D6E0DD;
  --input-line: #C2CFCB;
  --muted: #3E4A53;

  --on-dark: #EEF3F2;
  --on-dark-2: #C8D3D8;
  --sage: #B0BEC5;

  --mint: #8CCCB2;
  --mint-ink: #266B51;
  --mint-mid: #3E9273;
  --mint-line: #5FB394;
  --cream: #E3F3EC;
  --teal: #3E9273;
  --teal-soft: #A8DCC6;
  --bar-grey: #9AA8B0;

  --font-display: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.5, .5, 1);
  --header-h: 69px;
  --card-shadow: 0 1px 2px rgba(42, 52, 60, .06), 0 20px 36px -26px rgba(42, 52, 60, .42);
  --plate-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
svg { flex: none; }
[hidden] { display: none !important; }

a { color: var(--ink); transition: color .2s ease; }
a:hover { color: var(--mint-ink); }

::selection { background: var(--mint); color: var(--deep); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mint-ink);
  outline-offset: 3px;
}
/* Brighter ring where the background is dark slate */
:is(.hero, .band-dark, .site-footer, .stage, .news-signup, .aside-dark)
  :is(a, button, input):focus-visible { outline-color: var(--mint); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Type ---------- */

/* Even line lengths in headings; no single orphaned word at the end of paragraphs. */
:is(h1, h2, h3, h4, .h1, .h2, .h3, .stage-title) { text-wrap: balance; }
:is(p, li, dd, .lede) { text-wrap: pretty; }
/* Count-ups keep every digit the same width, so numbers don't wobble while they climb. */
[data-count] { font-variant-numeric: tabular-nums; }

.display { font-family: var(--font-display); letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-ink);
}
p.eyebrow:not(.eyebrow--sm) { display: flex; align-items: flex-start; gap: 10px; }
p.eyebrow:not(.eyebrow--sm)::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .42em; border-radius: 50%; background: currentColor; }
.eyebrow--sm { font-size: 13px; letter-spacing: 0.1em; }
.eyebrow--mint { color: var(--mint); }
.eyebrow--teal { color: var(--teal-soft); }

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2--md { font-size: clamp(34px, 4.2vw, 52px); }

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.fine { font-size: 13px; }
.band-dark :is(.lede, .muted) { color: var(--on-dark-2); }

/* ---------- Layout ---------- */

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 16px); }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr));
  gap: var(--gap, 20px);
}

.section { padding-block: 112px; }
.section--md { padding-block: 104px; }

.intro { display: flex; flex-direction: column; gap: 18px; max-width: 780px; }

.band-dark { background: var(--deep); color: var(--on-dark); }
.band-mist { background: var(--mist); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 16px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, color .25s ease,
              border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
/* The press itself is a short scale pulse from site.js, so it shows even on a quick tap. */
.btn:active { transform: translateY(0); transition-duration: .08s; }
:is(.btn, .chip, .steptab, .tab, .menu-toggle, .copy-btn) { -webkit-tap-highlight-color: transparent; }
.btn--lg { padding: 15px 24px; }
.btn--sm { padding: 11px 18px; font-size: 15px; }

.btn--mint { background: var(--mint); color: var(--deep); }
.btn--mint:hover { color: var(--deep); box-shadow: 0 14px 26px -14px rgba(140, 204, 178, .8); }

.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { color: var(--bg); box-shadow: 0 14px 26px -14px rgba(53, 65, 75, .7); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { color: var(--ink); background: rgba(53, 65, 75, .06); }

.btn--outline-dark { border-color: var(--edge-3); color: var(--on-dark); background: transparent; }
.btn--outline-dark:hover { color: var(--on-dark); border-color: var(--sage); }

.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover .arrow-ne { transform: translate(2px, -2px); }

/* ---------- Copy email ---------- */

/* Inline flow, so the button follows the last line of the address when it wraps. */
.email-copy { display: block; }
.email-copy .copy-btn { margin-left: 8px; vertical-align: middle; }
.email-copy .copy-status { margin-left: 8px; vertical-align: middle; }
.copy-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
/* Keep a 44px touch target without growing the visible circle. */
.copy-btn::before { content: ""; position: absolute; inset: -6px; }
.copy-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); border-color: color-mix(in srgb, currentColor 45%, transparent); }
.copy-btn svg { grid-area: 1 / 1; transition: opacity .2s ease, scale .3s var(--ease-spring); }
.copy-btn .i-done { opacity: 0; scale: .5; }
.copy-btn.is-copied { border-color: var(--mint-mid); background: var(--mint); color: var(--deep); }
.copy-btn.is-copied .i-copy { opacity: 0; scale: .5; }
.copy-btn.is-copied .i-done { opacity: 1; scale: 1; }
.copy-status { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.copy-status:empty { display: none; }
.copy-status:not(:empty) { animation: zFade .3s ease both; }

/* ---------- Glossary hover definitions ---------- */

.gloss {
  text-decoration: underline dotted;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  cursor: help;
  border-radius: 3px;
  transition: text-decoration-color .2s ease, background-color .2s ease;
}
.gloss:hover, .gloss.is-active { text-decoration-color: var(--mint-mid); }
.gloss:focus-visible { outline: 2px solid var(--mint-mid); outline-offset: 2px; }
.gloss-tip {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  padding: 12px 14px 13px;
  border-radius: 14px;
  background: var(--deep);
  color: var(--on-dark-2);
  font: 400 14px/1.5 var(--font-body);
  box-shadow: 0 18px 40px -18px rgba(20, 28, 34, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  pointer-events: none;
  opacity: 0;
  translate: 0 4px;
  transition: opacity .16s ease, translate .22s var(--ease-out);
}
.gloss-tip.is-below { translate: 0 -4px; }
.gloss-tip.is-on { opacity: 1; translate: 0 0; }
.gloss-tip strong { display: block; margin-bottom: 3px; color: var(--mint); font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.gloss-tip::after {
  content: "";
  position: absolute;
  left: var(--ax, 50%);
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: inherit;
  rotate: 45deg;
  border-radius: 2px;
}
.gloss-tip.is-below::after { top: -5px; bottom: auto; }

/* ---------- Cards, pills, chips ---------- */

:is(.symptoms, .flow-card, .value-points li, .compare, .vs-card:not(.vs-card--eat)) { box-shadow: var(--card-shadow); }

.lift { transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -22px rgba(53, 65, 75, .45);
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sage);
  border: 1px solid var(--edge-2);
  border-radius: 999px;
  padding: 4px 10px;
}

.live-dot {
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.8s ease-out infinite;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  --logo-g: #EEF3F2;
  background: rgba(42, 52, 60, .94);
  color: var(--on-dark);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-dark);
  transition: box-shadow .35s ease;
}
.site-header a:not(.btn), .site-header a:not(.btn):hover { color: var(--on-dark); }
.site-header.is-scrolled { box-shadow: 0 14px 32px -20px rgba(20, 28, 34, .7); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: var(--header-h);
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { display: block; transition: transform .5s var(--ease-spring); }
.brand:hover .brand-mark { transform: scale(1.06); }

/* Logo intro: G drawn and filled, bar sweeps in, dot lands, i rises and gets its tittle, then the name slides out.
   The header plays it on load; the footer logo replays it the first time it scrolls into view. */
:is(.brand--intro, .logo-intro) .brand-mark { overflow: visible; }
:is(.brand--intro, .logo-intro.is-in) .bm-g { stroke: var(--logo-g, #35414B); stroke-width: 4; stroke-opacity: 0; stroke-dasharray: 1; animation: gDraw 1.1s ease-in-out .15s both; }
:is(.brand--intro, .logo-intro) :is(.bm-bar, .bm-dot, .bm-stem, .bm-tittle) { transform-box: fill-box; }
:is(.brand--intro, .logo-intro.is-in) .bm-bar { transform-origin: left center; animation: logoBar .5s var(--ease-out) .9s both; }
:is(.brand--intro, .logo-intro.is-in) .bm-dot { transform-origin: center; animation: popIn .5s var(--ease-spring) 1.1s both; }
:is(.brand--intro, .logo-intro.is-in) .bm-stem { transform-origin: center bottom; animation: logoStem .45s var(--ease-out) 1.25s both; }
:is(.brand--intro, .logo-intro.is-in) .bm-tittle { transform-origin: center; animation: logoTittle .5s var(--ease-spring) 1.55s both; }
:is(.brand--intro, .logo-intro.is-in) .wordmark { animation: wordIn .8s var(--ease-out) 1.7s both; }
.js .logo-intro.reveal { opacity: 1; translate: none; }
.js .logo-intro.reveal:not(.is-in) { visibility: hidden; }

/* Logo wordmark: Montserrat ExtraBold caps, outlined into an SVG so it never waits on a font.
   Sized in em, so font-size still sets its height. Slate + mint; the darker mint keeps it legible on light. */
.wordmark {
  display: block;
  flex: none;
  font-size: 18px;
  width: 12.108em;
  height: 1em;
  fill: currentColor;
}
.wordmark .wm-b { fill: #2E7A5D; }
.site-header .wordmark .wm-b { fill: var(--mint); }
.wordmark--dark { color: var(--on-dark); font-size: 19px; }
.wordmark--dark .wm-b { fill: var(--mint); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 22px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:not(.btn) {
  position: relative;
  padding-block: 6px;
  text-decoration: none;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease-out);
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.site-header .site-nav a[aria-current="page"] { color: var(--mint); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--edge-3);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font: 600 15px var(--font-body);
  cursor: pointer;
}
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-icon::before { top: 1px; }
.menu-icon::after { top: 9px; }
.menu-open .menu-icon::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-icon::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .header-row { gap: 12px; }
  .brand { gap: 8px; min-width: 0; }
  .brand .brand-mark { width: 38px; height: 30px; }
  .brand .wordmark { font-size: 14px; }
  .menu-toggle { flex: none; padding: 0 14px; gap: 8px; }
  .header-row .site-nav { padding-inline: 16px; }
}
@media (max-width: 360px) {
  /* The one-word wordmark has to clear the Menu button on the smallest phones. */
  .brand .wordmark { font-size: 12px; }
  .menu-toggle { padding: 0 11px; }
}

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 24px 24px;
    background: var(--deep);
    border-bottom: 1px solid var(--rule-dark);
    box-shadow: 0 24px 40px -28px rgba(20, 28, 34, .8);
    opacity: 0;
    visibility: hidden;
    translate: 0 -10px;
    transition: opacity .25s ease, translate .35s var(--ease-out), visibility 0s .35s;
  }
  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    translate: none;
    transition: opacity .25s ease, translate .35s var(--ease-out), visibility 0s;
  }

  .site-nav > a {
    opacity: 0;
    translate: 0 -6px;
    transition: opacity .3s ease, translate .4s var(--ease-out);
  }
  .menu-open .site-nav > a { opacity: 1; translate: none; }
  .menu-open .site-nav > a:nth-child(2) { transition-delay: .03s; }
  .menu-open .site-nav > a:nth-child(3) { transition-delay: .06s; }
  .menu-open .site-nav > a:nth-child(4) { transition-delay: .09s; }
  .menu-open .site-nav > a:nth-child(5) { transition-delay: .12s; }
  .menu-open .site-nav > a:nth-child(6) { transition-delay: .15s; }
  .menu-open .site-nav > a:nth-child(7) { transition-delay: .18s; }

  .site-nav a:not(.btn) {
    padding-block: 14px;
    border-bottom: 1px solid var(--rule-dark);
    font-size: 18px;
  }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 18px; }
}

/* ---------- Brush scrollbar (built by site.js) ----------
   The thumb is the cytology brush from the Collect illustration; the sage shaft fills in behind it. */

html.brushbar-fine { scrollbar-width: none; }
html.brushbar-fine::-webkit-scrollbar { display: none; }

.brushbar {
  position: fixed;
  z-index: 25;
  top: calc(var(--header-h) + 14px);
  bottom: 14px;
  right: 6px;
  width: 18px;
  cursor: pointer;
  transition: opacity .4s ease;
}
.bb-track, .bb-shaft { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; }
.bb-track { background: rgba(163, 179, 187, .32); }
.bb-shaft { background: var(--sage); transform-origin: top center; transform: scaleY(0); }
.bb-blips { position: absolute; inset: 0; }
.bb-blip { position: absolute; left: 0; right: 0; height: 14px; margin-top: -7px; }
.bb-blip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  border-radius: 1px;
  background: var(--sage);
  transition: background-color .3s ease, width .25s var(--ease-out), margin .25s var(--ease-out);
}
.bb-blip.is-past::before { background: #5FB394; }
.bb-blip:hover::before { width: 16px; margin-left: -8px; background: var(--ink); }
.bb-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 48px;
  margin-left: -4px;
  border-radius: 4px;
  background: repeating-linear-gradient(0deg, var(--mint) 0 3px, #5FB394 3px 5px);
  box-shadow: 0 0 0 1px rgba(53, 65, 75, .14);
  cursor: grab;
  transition: width .2s ease, margin .2s ease, box-shadow .5s ease;
}
.brushbar:hover .bb-head, .brushbar.is-dragging .bb-head { width: 10px; margin-left: -5px; }
.brushbar.is-dragging .bb-head { cursor: grabbing; }
/* Read to the end: the bristles come back "wet", like the sample in step 1. */
.bb-head::after { content: ""; position: absolute; inset: -3px; border-radius: 6px; border: 1.5px solid rgba(140, 204, 178, .9); opacity: 0; transition: opacity .5s ease; }
.brushbar.is-done .bb-head { box-shadow: 0 0 12px rgba(140, 204, 178, .9); }
.brushbar.is-done .bb-head::after { opacity: 1; }
.bb-tip {
  position: absolute;
  right: 24px;
  top: 0;
  translate: 0 -50%;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--deep);
  color: var(--on-dark);
  font: 600 11px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.bb-tip.is-on { opacity: 1; }
/* Touch screens: a slimmer, passive indicator that shows while scrolling, like native ones. */
.brushbar-touch .brushbar { right: 2px; pointer-events: none; opacity: 0; }
.brushbar-touch .brushbar.is-active { opacity: 1; }
@media print { .brushbar { display: none; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: var(--on-dark-2); font-size: 15px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--mint); }
.footer-inner { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.footer-brand .email { color: var(--mint); }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 48px;
  align-content: start;
}
.footer-legal {
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--rule-dark);
  padding-top: 24px;
}
.footer-slim { padding-block: 32px; font-size: 13px; line-height: 1.7; }
.footer-logo { --logo-g: #EEF3F2; display: inline-flex; align-items: center; gap: 12px; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-dark);
}

.hero--full { display: flex; flex-direction: column; justify-content: space-between; min-height: calc(100vh - var(--header-h)); }
.hero--full .wrap { width: 100%; }

.hero-grid {
  position: relative;
  padding-block: 28px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
/* Sized so the longest line, "days, not months.", fits the copy column at every width. */
.hero h1 { font-size: clamp(40px, 4.4vw, 63px); }
.hero h1 .line { display: block; }
.hero-lede { font-size: 19px; line-height: 1.6; color: var(--on-dark-2); max-width: 540px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sage);
}

.plate {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 30px;
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--plate-shadow);
}
.plate-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plate-tools { display: flex; align-items: center; gap: 8px; }
.plate-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--edge-3);
  border-radius: 999px;
  background: none;
  color: var(--on-dark-2);
  font: 500 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.plate-replay:hover, .plate-replay:focus-visible { color: var(--on-dark); border-color: var(--mint); }
.plate-replay[data-state="replay"]:hover svg { animation: spin .6s var(--ease-out) reverse; }

/* Hero cinematic: site.js draws every frame; CSS only sets type and the chapter/caption chrome. */
/* As wide as the column allows, but short enough that the whole film fits on the first screen. */
.cine { gap: 14px; margin: 0; justify-self: end; width: 100%; max-width: max(620px, calc((100vh - 420px) * 4 / 3 + 40px)); }
.cine .plate-head, .cine-chapters, .cine-lines, .cine figcaption { padding-inline: 6px; }
.cine-svg { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--deep); }
.cn-hud { font: 500 10.5px var(--font-mono); letter-spacing: .14em; fill: var(--on-dark-2); paint-order: stroke; stroke: var(--deep); stroke-width: 3px; stroke-linejoin: round; }
.cn-label { font: 500 11.5px var(--font-mono); letter-spacing: .1em; fill: var(--on-dark); text-anchor: middle; paint-order: stroke; stroke: var(--deep); stroke-width: 4px; stroke-linejoin: round; }
.cn-dlabel { font: 500 12.5px var(--font-mono); letter-spacing: .1em; }
.cn-count { font: 600 10px var(--font-mono); fill: var(--deep); text-anchor: middle; }
.cn-total { font: 700 40px var(--font-display); fill: var(--mint); text-anchor: middle; paint-order: stroke; stroke: var(--deep); stroke-width: 6px; stroke-linejoin: round; }
.cn-total-label { font: 500 9.5px var(--font-mono); letter-spacing: .16em; fill: var(--sage); text-anchor: middle; }
.cn-plus { font: 700 12px var(--font-mono); fill: var(--mint); text-anchor: middle; paint-order: stroke; stroke: var(--deep); stroke-width: 3px; stroke-linejoin: round; }
.cn-vial { font: 700 10px var(--font-mono); letter-spacing: .12em; fill: var(--deep); text-anchor: middle; }
.cn-th { font: 500 9.5px var(--font-mono); letter-spacing: .12em; fill: var(--sage); }
.cn-flag rect { fill: none; stroke: rgba(163, 179, 187, .4); }
.cn-flag text { font: 600 9.5px var(--font-mono); letter-spacing: .1em; fill: var(--sage); text-anchor: middle; }
.cn-flag--hot rect { fill: rgba(140, 204, 178, .14); stroke: var(--mint); }
.cn-flag--hot text { fill: var(--mint); }
.cn-sum { font: 600 15px var(--font-display); fill: var(--mint); text-anchor: middle; }

.cine-chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cine-ch {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 2px 0 4px;
  border: 0;
  background: none;
  color: var(--sage);
  font: 500 10.5px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.cine-ch:hover, .cine-ch.is-on { color: var(--on-dark); }
.cine-ch:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
.cine-bar { display: block; height: 3px; border-radius: 3px; background: var(--edge); overflow: hidden; }
.cine-bar i { display: block; height: 100%; background: var(--mint); transform-origin: left; transform: scaleX(var(--p, 0)); }
/* "Submission" has to fit a fifth of a phone-width plate. */
@media (max-width: 480px) {
  .cine-chapters { gap: 2px; }
  .cine-ch { font-size: 9px; letter-spacing: 0; }
}

.cine-lines { display: grid; }
.cine-line {
  grid-area: 1 / 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--on-dark-2);
  opacity: 0;
  translate: 0 6px;
  transition: opacity .35s ease, translate .35s var(--ease-out);
}
.cine[data-scene="0"] .cine-line:nth-child(1), .cine[data-scene="1"] .cine-line:nth-child(2),
.cine[data-scene="2"] .cine-line:nth-child(3), .cine[data-scene="3"] .cine-line:nth-child(4),
.cine[data-scene="4"] .cine-line:nth-child(5) { opacity: 1; translate: none; }
html:not(.js) .cine-stage, html:not(.js) .cine-chapters, html:not(.js) .plate-replay { display: none; }

@media (prefers-reduced-motion: reduce) {
  .plate-replay { display: none; }
}
.plate figcaption {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}
.plate figcaption span { color: var(--mint); }

/* The film runs larger on wide screens, so its overlays come down a size. */
@media (min-width: 700px) {
  .cn-hud { font-size: 8px; stroke-width: 2.5px; }
  .cn-label { font-size: 9.5px; stroke-width: 3px; }
}
/* The copy keeps the page's left edge; only the film reaches past the 1200px column. */
@media (min-width: 1081px) {
  .hero-grid { max-width: none; padding-inline: max(24px, calc((100vw - 1200px) / 2 + 24px)) max(24px, calc((100vw - 1368px) / 2 + 24px)); }
}

/* Narrow: the film follows the headline, then the rest of the copy. */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 36px; }
  .hero-copy { display: contents; }
  .cine { order: 1; width: 100%; max-width: 760px; margin-inline: auto; }
  .hero-lede { order: 2; max-width: none; }
  .hero-copy > .row { order: 3; }
  .hero-note { order: 4; }
}
@media (max-width: 480px) {
  .plate { padding: 12px 12px 18px; border-radius: 24px; }
  .cine-svg { border-radius: 14px; }
  .plate figcaption { font-size: 19px; }
  .cine .plate-head { flex-wrap: nowrap; gap: 8px; }
  .cine .plate-head .eyebrow { font-size: 11px; white-space: nowrap; }
  .cine .plate-tools { gap: 6px; }
  .cine .tag { padding: 3px 8px; font-size: 10px; }
  .cine .plate-replay { padding: 4px 9px; font-size: 10px; }
}

/* ---------- Problem ---------- */

.problem { display: flex; flex-direction: column; gap: 48px; padding-block: 112px; }

/* What EoE is: the definition on the left, its symptoms in a card on the right. */
.eoe { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.eoe-copy { display: flex; flex-direction: column; gap: 16px; }
.eoe-key { padding-left: 16px; border-left: 3px solid var(--mint-line); font-size: 19px; font-weight: 600; line-height: 1.5; }
.symptoms { display: flex; flex-direction: column; gap: 16px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.symptom-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.symptom-list li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; }
.symptom-list li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--cream); }
@media (max-width: 860px) {
  .eoe { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Stats ---------- */

.stats { display: flex; flex-direction: column; gap: 26px; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--edge); border-radius: 30px; background: var(--deep); color: var(--on-dark); box-shadow: var(--plate-shadow); }
.stats-grid { --min: 260px; --gap: 32px; }
.stats .muted { color: var(--on-dark-2); }
.stats .ref a { color: var(--mint); }
@media (min-width: 1000px) {
  .stat + .stat { padding-left: 32px; border-left: 1px solid var(--edge); }
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-num--accent { color: var(--mint); }

/* ---------- The cycle ---------- */

/* Today's elimination-diet cycle and why allergy tests miss share one green band below the problem,
   a touch greener than the other bands, so "today's options" reads as one block before How EAT works. */
#cycle, .why { background: #DFEDE6; }
.cycle { display: flex; flex-direction: column; gap: 48px; }

.flow { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.flow-card {
  flex: 1 1 200px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-card .step-label { font-family: var(--font-mono); font-size: 12px; color: var(--mint-ink); display: flex; align-items: center; gap: 8px; }
.flow-card p { font-size: 15px; color: var(--muted); }
.flow-card--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.flow-card--dark .step-label { color: var(--mint); }
.flow-card--dark p { color: var(--on-dark-2); }
.flow-card--dark .repeat-icon { transition: transform .8s var(--ease-out); }
.flow-card--dark:hover .repeat-icon { transform: rotate(180deg); }

/* The repeat: a line runs from the last card back to the first, with a dot making the trip.
   Both ends tuck behind the cards, so the dot slips out of one and fully into the other. */
.flow-loop { --tuck: 30px; position: relative; height: calc(26px + var(--tuck)); margin: calc(-44px - var(--tuck)) 12% 0; border: 2px dashed var(--mint-line); border-top: 0; border-radius: 0 0 20px 20px; }
.flow-loop::before { content: ""; position: absolute; left: -8px; top: calc(var(--tuck) - 3px); border: 7px solid transparent; border-top: 0; border-bottom: 9px solid var(--mint-line); }
.flow-loop i { position: absolute; left: -1px; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--mint-mid); box-shadow: 0 0 0 4px rgba(140, 204, 178, .35); animation: loopBack 8s linear infinite; }
@media (max-width: 1000px) { .flow-loop { display: none; } }

/* A footnote strip to the steps above: one reason under each card, so the two read as one block.
   The heading lands first, then the reasons settle in one by one. */
.friction { display: flex; flex-direction: column; gap: 22px; margin-top: -12px; padding-top: 30px; border-top: 1px solid var(--line); }
.friction-title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.friction-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; margin: 0; padding: 0; list-style: none; }
.friction-list li { display: flex; align-items: center; gap: 16px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; line-height: 1.3; color: var(--ink); }
.friction-icon { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--white); color: var(--mint-ink); box-shadow: var(--card-shadow); }
.friction-icon svg { width: 30px; height: 30px; }
@media (max-width: 860px) {
  .friction-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .friction-list { grid-template-columns: minmax(0, 1fr); }
}
.js .friction-list li {
  opacity: 0;
  translate: 0 8px;
  transition: opacity .6s var(--ease-out) calc(var(--d, 0s) + .3s + var(--i) * .09s),
              translate .6s var(--ease-out) calc(var(--d, 0s) + .3s + var(--i) * .09s);
}
.js .friction.is-in .friction-list li { opacity: 1; translate: none; }

/* ---------- Timeline: the goal of EAT ---------- */

.compare {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.compare-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 16px; flex-wrap: wrap; }
.compare-head h3 { font-size: 26px; }
.compare-unit { margin-top: 10px; font: 500 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* The goal of EAT: two lanes on one 18-month axis, EAT first in a highlighted box. Each arrow
   is one round (6–8 weeks of diet, then a scope). On reveal the line steps round by round:
   it draws one hop every --th without stopping, and each scope mark pops up as the line passes.
   Scope k is reached at R(k) = --d + --t0 + k × --step; round j draws from R(j) to R(j+1).
   Both lanes start together, so EAT is done after one round while today's keeps looping. */
.compare-title { flex: 1 1 420px; }
.compare-sub { margin-top: 8px; max-width: 58ch; font-size: 17px; color: var(--muted); }

.lanes { --t0: .4s; --th: .7s; --tc: 0s; --step: calc(var(--th) + var(--tc)); display: flex; flex-direction: column; gap: 28px; }
.lane { --lw: 3px; --leg: 8px; --bw: 2px; --sh: 12px; display: flex; flex-direction: column; gap: 6px; }

/* EAT: a boxed, slightly heavier lane. The negative margin cancels the padding and border so its
   track still lines up with today's on the month axis. */
.lane--eat {
  --lw: 5px;
  --leg: 9px;
  --sh: 14px;
  margin-inline: -23px;
  padding: 22px 20px 6px;
  border: 3px solid var(--mint);
  border-radius: 24px;
  background: #F3FAF7;
}

/* One sentence per lane, all one size: who it is (lighter) and what it takes (bold). */
.lane-head {
  position: relative;
  margin-bottom: 12px;
  padding-left: 20px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lane-head::before { content: ""; position: absolute; left: 0; top: .4em; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.lane--eat .lane-head::before { background: var(--mint); }
.lane-name { font-weight: 500; }
.lane-stat { font-weight: 800; }
.lane--eat .lane-stat { color: var(--mint-ink); }

/* --y is the time line; arrows arc above it, scope labels sit below it. */
.lane-track { --y: 74px; --arc: 24px; --c: var(--ink); position: relative; height: 158px; margin-inline: 18px; }
.lane--eat .lane-track { --c: var(--mint-ink); height: 128px; }
.lane-base, .lane-fill { position: absolute; top: calc(var(--y) - var(--lw) / 2); height: var(--lw); border-radius: var(--lw); }
.lane-base { left: 0; right: 0; background: var(--mist-2); }
.lane-fill { left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); background: var(--c); transform-origin: left center; }
.lane--eat .lane-fill { background: var(--mint-line); }

/* A scope: a short bar across the time line, named below it. */
.stop { position: absolute; top: calc(var(--y) - var(--sh)); left: calc(var(--p) * 100%); width: 6px; height: calc(var(--sh) * 2); margin-left: -3px; border-radius: 3px; background: var(--c); }
.lane--eat .stop { width: 8px; margin-left: -4px; border-radius: 4px; background: var(--mint-mid); }
.stop-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  font: 500 11px/1.35 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--muted);
}
.stop--start .stop-label { left: 0; translate: 0 0; text-align: left; }
.stop-label em { display: block; font: 600 13px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--mint-ink); }

/* One hop: 6–8 weeks of diet between two scopes. The arc rises just right of one scope mark
   and comes down just left of the next, so each mark sits in a small gap between two arrows.
   Both ends stop a few px above the time line. The curve is an ellipse cap over short straight
   legs, so the arrowhead sits squarely on a vertical leg. Legs are centred --leg from the marks.
   The arrowhead is placed from the padding edge (inside the border): right = -(bw + head) / 2. */
.hop {
  position: absolute;
  top: calc(var(--y) - 12px - var(--arc));
  left: calc(var(--a) * 100% + var(--leg) - var(--bw) / 2);
  width: calc((var(--b) - var(--a)) * 100% - var(--leg) * 2 + var(--bw));
  height: calc(var(--arc) + 6px);
  border: var(--bw) solid var(--c);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / calc(var(--arc) - 4px) calc(var(--arc) - 4px) 0 0;
  color: var(--c);
}
.hop::after {
  content: "";
  position: absolute;
  right: calc((var(--bw) + 10px) / -2);
  bottom: 0;
  border: 5px solid transparent;
  border-top: 8px solid currentColor;
  border-bottom: 0;
}
.hop-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  translate: -50% 0;
  font: 600 14px/1.2 var(--font-body);
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
}
.lane--eat .hop-label { color: var(--mint-ink); }
.hop-label em { display: block; font: 500 11px/1.4 var(--font-mono); font-style: normal; color: var(--muted); }

/* The loop: a bracket under scopes 2–8 saying it is the same round each time. */
.loop {
  position: absolute;
  top: calc(var(--y) + 50px);
  left: calc(var(--a) * 100%);
  width: calc((var(--b) - var(--a)) * 100%);
  height: 12px;
  border: 1.5px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.loop-label {
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--white);
  font: 600 14px var(--font-body);
  white-space: nowrap;
  color: var(--ink);
}
.loop-label svg { flex: none; color: var(--mint-ink); }
.loop-short { display: none; }

/* The time EAT saves: a dashed span from EAT's last scope to where today's last scope falls. */
.saved {
  position: absolute;
  top: calc(var(--y) - 1px);
  left: calc(var(--a) * 100% + 14px);
  width: calc((var(--b) - var(--a)) * 100% - 14px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--mint-line) 0 6px, transparent 6px 11px);
  transform-origin: left center;
}
.saved::after { content: ""; position: absolute; right: 0; top: -11px; width: 3px; height: 24px; border-radius: 2px; background: var(--mint-line); }
.saved-label {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  padding: 5px 14px;
  border: 1px solid var(--mint-line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--mint-ink);
  font: 600 14px var(--font-body);
  white-space: nowrap;
}

/* Written out for screen readers; shown as the legend on narrow screens. */
.lane-key {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lane-key li { display: flex; gap: 10px; }
.lane-key strong { flex: none; min-width: 30px; font: 600 12px/1.9 var(--font-mono); color: var(--ink); }
.lane--eat .lane-key strong { color: var(--mint-ink); }

.tl-axis { position: relative; height: 26px; margin: -6px 18px 0; border-top: 1px dashed var(--line); font: 12px var(--font-mono); color: var(--muted); }
.tl-axis span { position: absolute; top: 9px; left: calc(var(--x) * 100%); translate: -50% 0; white-space: nowrap; }
.tl-axis span:first-child { translate: -18px 0; }

.race-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.race-legend { flex: 1 1 420px; display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--muted); }
.race-legend i { flex: none; width: 6px; height: 20px; margin-top: 1px; border-radius: 3px; background: var(--ink); }
.race-note { flex: 0 1 auto; font-size: 14px; color: var(--muted); }
.tl-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 500 11px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.tl-replay:hover, .tl-replay:focus-visible { color: var(--ink); border-color: var(--mint-line); }
.tl-replay:hover svg { animation: spin .6s var(--ease-out) reverse; }
@media (prefers-reduced-motion: reduce) { .tl-replay { display: none; } }

/* Entry, step by step. Pre-state under .compare; play state under .compare.is-in, unless the
   Replay button has the lanes in .is-reset (which snaps them back with no transitions). */
.js .compare .lane-fill {
  transform: scaleX(0);
  transition: transform var(--th) linear calc(var(--d, 0s) + var(--t0) + var(--i) * var(--step) + var(--tc));
}
.js .compare .hop {
  clip-path: inset(-80px 100% -80px -80px);
  transition: clip-path var(--th) linear calc(var(--d, 0s) + var(--t0) + var(--i) * var(--step) + var(--tc));
}
.js .compare .hop-label { opacity: 0; transition: opacity var(--th) ease calc(var(--d, 0s) + var(--t0) + var(--i) * var(--step) + var(--tc)); }
.js .compare .stop {
  scale: 1 0;
  transition: scale .35s var(--ease-spring) calc(var(--d, 0s) + var(--t0) + var(--i) * var(--step));
}
.js .compare .stop-label { opacity: 0; transition: opacity .3s ease calc(var(--d, 0s) + var(--t0) + var(--i) * var(--step)); }
.js .compare .loop { opacity: 0; transition: opacity .4s ease calc(var(--d, 0s) + var(--t0) + var(--step)); }
.js .compare .saved { transform: scaleX(0); transition: transform .9s var(--ease-out) calc(var(--d, 0s) + var(--t0) + 7 * var(--step) + .2s); }
.js .compare .saved-label {
  opacity: 0;
  scale: .85;
  transition: opacity .5s ease calc(var(--d, 0s) + var(--t0) + 7 * var(--step) + .8s),
              scale .6s var(--ease-spring) calc(var(--d, 0s) + var(--t0) + 7 * var(--step) + .8s);
}
.js .compare.is-in .lanes:not(.is-reset) .hop { clip-path: inset(-80px -7px -80px -80px); }
.js .compare.is-in .lanes:not(.is-reset) :is(.lane-fill, .saved) { transform: none; }
.js .compare.is-in .lanes:not(.is-reset) .stop { scale: 1; }
.js .compare.is-in .lanes:not(.is-reset) :is(.hop-label, .stop-label, .loop, .saved-label) { opacity: 1; scale: 1; }
/* The loop icon turns once per round of today's loop, six rounds in all. */
.js .compare.is-in .lanes:not(.is-reset) .loop-label svg { animation: spin var(--step) linear calc(var(--d, 0s) + var(--t0) + var(--step)) 6; }
.lanes.is-reset *, .lanes.is-reset *::after { transition: none !important; animation: none !important; }

/* Narrow: the arrows stay but their labels can't fit, so scopes show numbers only and each
   lane's key does the telling. */
@media (max-width: 860px) {
  .lane { --leg: 6px; --bw: 1.5px; --sh: 9px; }
  .lane--eat { --leg: 7px; --sh: 11px; margin-inline: -15px; padding: 16px 12px 4px; }
  .lane-track, .lane--eat .lane-track { --y: 30px; --arc: 14px; height: 70px; margin-inline: 13px; }
  .lane--eat .lane-track { height: 56px; }
  .hop { top: calc(var(--y) - 9px - var(--arc)); height: calc(var(--arc) + 4px); }
  .hop::after { right: calc((var(--bw) + 8px) / -2); border-width: 4px; border-top-width: 6px; }
  .stop { width: 4px; margin-left: -2px; }
  .lane--eat .stop { width: 6px; margin-left: -3px; }
  .hop-label, .stop-word, .stop-label em { display: none; }
  .stop-label { top: calc(100% + 4px); }
  .stop--start .stop-label { left: 50%; translate: -50% 0; }
  .loop { top: calc(var(--y) + 28px); height: 8px; }
  .loop-label { gap: 6px; padding: 0 8px; font-size: 13px; }
  .loop-label svg { width: 14px; height: 14px; }
  .loop-long { display: none; }
  .loop-short { display: inline; }
  .saved-label { padding: 3px 10px; font-size: 12px; }
  .tl-axis { margin-inline: 13px; }
  .tl-axis span:first-child { translate: -13px 0; }
  .lane-key {
    position: static;
    padding: 0;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    display: grid;
    gap: 6px;
    margin: 4px 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
  }
  .lane-track { margin-bottom: 12px; }
  /* Keep the month axis right under today's track, with its key after. */
  .lane--today { display: contents; }
  .lane--today .lane-head { order: 1; }
  .lane--today .lane-track { order: 2; }
  .lanes .tl-axis { order: 3; margin-top: -14px; }
  .lane--today .lane-key { order: 4; margin-top: 0; }
}

/* ---------- How EAT compares ---------- */

/* The reader's question, then the short answer right under it behind a mint rule. */
.qa { display: flex; flex-direction: column; gap: 30px; max-width: 900px; }
.qa-a { display: flex; flex-direction: column; gap: 14px; max-width: 820px; padding-left: 24px; border-left: 3px solid var(--mint-line); }
.qa-lead { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.qa-a .lede strong { color: var(--ink); }
/* It continues the cycle's green band, so the cycle's bottom padding is the only gap between them. */
.why > .section--md { padding-top: 0; }

/* EAT takes the tall left column; the two indirect tests stack beside it, deliberately quieter. */
.versus {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: "eat skin" "eat blood";
  gap: 20px;
}
.vs-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .5);
  color: var(--muted);
}
.vs-card:nth-child(2) { grid-area: skin; }
.vs-card:nth-child(3) { grid-area: blood; }
.vs-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vs-head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); opacity: .8; }
.vs-tag {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: #A84834;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px -8px rgba(168, 72, 52, .7);
}
.vs-rows { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.45; }
.vs-rows li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.vs-k {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .75;
}
.mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.mark--no { background: rgba(170, 72, 52, .1); color: #A84834; }
.mark--yes { width: 30px; height: 30px; background: var(--mint); color: var(--deep); }

.vs-card--eat {
  grid-area: eat;
  position: relative;
  overflow: hidden;
  gap: 24px;
  padding: 36px;
  border: 0;
  border-radius: 30px;
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 30px 60px -36px rgba(53, 65, 75, .9), 0 0 0 1px rgba(140, 204, 178, .28);
}
.vs-card--eat .vs-head h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; color: var(--on-dark); opacity: 1; }
.vs-card--eat .vs-rows { gap: 20px; font-size: 18px; }
.vs-card--eat .vs-rows li { grid-template-columns: 30px 1fr; gap: 14px; }
.vs-card--eat .vs-k { color: var(--mint); opacity: 1; }
.vs-badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vs-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 600; color: var(--mint); text-decoration: none; }
.vs-more:hover { color: var(--mint); }
.vs-more:hover .arrow { transform: translateX(4px); }
.vs-more .arrow { transition: transform .3s var(--ease-out); }
.forks { position: absolute; right: 22px; top: 22px; display: flex; gap: 10px; animation: floaty 5s ease-in-out infinite; }

/* Marks land one row at a time after their card arrives; the badges and off-target tags land last. */
.js .vs-card .mark { transition: opacity .4s ease, scale .5s var(--ease-spring); transition-delay: calc(var(--d, 0s) + .5s + var(--i) * .16s); }
.js .vs-card:not(.is-in) .mark { opacity: 0; scale: .4; }
.js .vs-card:not(.is-in) :is(.vs-badge, .vs-tag) { opacity: 0; }
.js .vs-card.is-in :is(.vs-badge, .vs-tag) { animation: popIn .6s var(--ease-spring) calc(var(--d, 0s) + 1.05s) both; }

@media (max-width: 860px) {
  .versus { grid-template-columns: 1fr; grid-template-areas: "eat" "skin" "blood"; }
  .vs-card--eat { padding: 30px 26px; }
  .vs-card--eat .vs-rows { font-size: 17px; }
}

/* ---------- How it works ---------- */

/* Intro: the "answer" copy beside three value points. */
.how-head { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.how-head .intro { flex: 1 1 460px; min-width: 0; }
.value-points { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.value-points li { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.value-points strong { display: block; margin-bottom: 2px; font-size: 17px; color: var(--ink); }
.value-points li > span:last-child { color: var(--muted); font-size: 15px; }
/* The film's food drawings, each on a small dark disc like the film's own bubbles, so the pale ones read on white. */
.food { flex: none; display: inline-block; box-sizing: border-box; width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: var(--deep); box-shadow: inset 0 0 0 1px var(--edge-2); overflow: visible; }
.food-row { display: flex; gap: 8px; margin-top: 8px; }
.value-num { flex: none; min-width: 64px; font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--mint-ink); }
.js .how-head .value-points li { opacity: 0; translate: 16px 0; transition: opacity .5s ease, translate .6s var(--ease-out); transition-delay: calc(.3s + var(--i) * .14s); }
.js .how-head.is-in .value-points li { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) { .js .how-head .value-points li { opacity: 1; translate: none; } }
@media (max-width: 480px) {
  .value-points li { padding: 16px 18px; gap: 14px; }
  .value-num { min-width: 52px; font-size: 32px; }
}

.how-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.step-list { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }

.steptab {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color .3s ease, box-shadow .3s ease, translate .4s var(--ease-out);
}
/* Each step is a card; the open one gets a mint edge and sits a little higher. */
.steptab:hover { border-color: var(--mint); translate: 0 -2px; }
.steptab.on {
  border-color: var(--mint-line);
  box-shadow: 0 0 0 1px var(--mint-line), 0 22px 40px -24px rgba(42, 52, 60, .55);
  translate: 0 -2px;
}
.steptab .sn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--mist-2);
  color: var(--ink);
  font: 600 14px var(--font-mono);
  transition: background-color .3s ease, transform .4s var(--ease-spring);
}
.steptab.on .sn { background: var(--mint); transform: scale(1.06); }
.steptab .st-copy { display: flex; flex-direction: column; gap: 4px; }
.steptab .st-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.steptab .st-body { font-size: 15px; line-height: 1.55; color: var(--muted); }

.stage {
  flex: 999 1 520px;
  min-width: 0;
  min-height: 460px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--edge);
  border-radius: 30px;
  background: var(--deep);
  color: var(--on-dark);
  box-shadow: var(--plate-shadow);
}
.stage-panel { display: flex; flex-direction: column; gap: 24px; flex: 1; }

/* Previous / next controls along the bottom of the stage */
.stage-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(186, 199, 205, .14); }
.stage-nav .btn:disabled { opacity: .35; cursor: default; box-shadow: none; transform: none; border-color: var(--edge-3); }
.stage-nav .btn:disabled .arrow { transform: none; }
.btn:hover .arrow-back { transform: translateX(-4px); }
.stage-progress { display: flex; align-items: center; gap: 12px; }
.sp-count { font: 600 12px var(--font-mono); letter-spacing: .1em; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.sp-bar { display: flex; gap: 5px; }
.sp-bar i { width: 30px; height: 3px; border-radius: 3px; background: var(--edge); transition: width .45s var(--ease-out), background-color .3s ease; }
.sp-bar i.is-past { background: rgba(140, 204, 178, .45); }
.sp-bar i.is-current { width: 48px; background: var(--mint); }
.stage-nav .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .stage-nav .btn { padding-inline: 14px; }
  .stage-nav [data-step-prev] { padding-inline: 12px; }
  .stage-nav [data-step-prev] .sn-label, .sp-count, .sn-to { display: none; }
  .sp-bar { gap: 4px; }
  .sp-bar i { width: 8px; }
  .sp-bar i.is-current { width: 18px; }
}
@media (max-width: 359px) { .stage-progress { display: none; } }
.stage-panel--row { flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: center; }
.stage-title { font-family: var(--font-display); font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.stage .muted { color: var(--on-dark-2); }
.stage-copy { flex: 1 1 240px; display: flex; flex-direction: column; gap: 14px; }

/* Step 1: one pass of the brush (in, out, in, withdraw), ending beside the tube.
   Resting styles are the end pose, so reduced motion shows the wet brush on display. */
.esoph { position: relative; width: 260px; height: 380px; flex: none; margin: 0 auto; }
/* The tube reuses the hero's lining: a wavy wall of cells and eosinophils, a mucus film, antibodies standing in it. */
.esoph-tube { position: absolute; left: 20px; top: 30px; width: 100px; height: 330px; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.esoph-brush {
  position: absolute;
  left: 56px;
  top: 0;
  width: 28px;
  height: 166px;
  transform: translate(150px, 70px);
  animation: brushPass 6s ease-in-out both;
}
.brush-shaft { position: absolute; left: 12px; top: 0; width: 4px; height: 124px; border-radius: 2px; background: var(--sage); }
.brush-head {
  position: absolute;
  left: 0;
  top: 118px;
  width: 28px;
  height: 46px;
  border-radius: 10px;
  background: repeating-linear-gradient(0deg, var(--mint) 0 4px, #5FB394 4px 7px);
}
.brush-wet {
  position: absolute;
  inset: -4px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(168, 220, 198, .14), rgba(140, 204, 178, .5));
  border: 1.5px solid rgba(206, 238, 224, .75);
  box-shadow: 0 0 18px rgba(140, 204, 178, .45);
  animation: wetIn 6s ease-in-out both;
}
.brush-wet::before { content: ""; position: absolute; left: 5px; top: 6px; width: 5px; height: 22px; border-radius: 3px; background: rgba(255, 255, 255, .7); }
.brush-wet::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 10px; margin-left: -7px; border-radius: 0 0 7px 7px; background: rgba(140, 204, 178, .85); }
.drop { position: absolute; top: 172px; border-radius: 50%; background: var(--mint); animation: dripOut 1.7s ease-in 5.3s infinite backwards; }
.drop--1 { left: 10px; width: 9px; height: 11px; }
.drop--2 { left: 4px; width: 6px; height: 7px; animation-delay: 5.9s; }
.drop--3 { left: 17px; width: 7px; height: 8px; animation-delay: 6.5s; }
.esoph-tag {
  position: absolute;
  left: 172px;
  top: 316px;
  width: 96px;
  font: 500 11px/1.35 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--mint);
  animation: fadeUp .6s var(--ease-out) 5.2s both;
}
/* Hold step 1 until the section scrolls into view. */
.js .how-layout:not(.is-in) .esoph * { animation-play-state: paused; }

/* Step 2: zoom from the wet brush into the fluid, then antibodies dock on each food protein. */
.zoom { flex: 1 1 280px; width: 100%; max-width: 400px; height: auto; margin: 0 auto; overflow: visible; }
.zoom-cone { animation: zFade .5s ease .35s both; }
.zoom-lens { transform-box: view-box; transform-origin: 34px 118px; animation: zoomIn .9s var(--ease-out) both; }
.zoom-specks { animation: zFade .6s ease .8s both; }
.zbob { animation: zBob 4.5s ease-in-out calc(3.2s + var(--i) * .4s) infinite; }
.zp { transform-box: fill-box; transform-origin: center; animation: popIn .5s var(--ease-spring) calc(.9s + var(--i) * .15s) both; }
.zab { animation: dock .6s var(--ease-out) var(--t) both; }
.zring { fill: none; stroke: var(--mint); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: zRing .9s ease-out var(--t) both; }
.zlabel { font: 500 13px var(--font-mono); letter-spacing: .1em; fill: var(--on-dark); text-anchor: middle; animation: zFade .4s ease calc(1s + var(--i) * .15s) both; }

.ab-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 4px 0 0; padding: 0; list-style: none; font: 500 13px var(--font-mono); color: var(--on-dark); }
.ab-key li { display: flex; align-items: center; gap: 8px; }
.ab-key svg { overflow: visible; }
.ab-dot { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#F1EBDC 0 25%, #E2B866 0 50%, #F2C14E 0 75%, #B9CB8C 0); }

/* Step 3: the report prints out of a slot, bars grow past the threshold, elevated rows light up. */
.printer { position: relative; }
.printer-slot { position: relative; z-index: 1; display: block; height: 12px; margin-inline: -10px; border-radius: 6px; background: #1F272D; box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .07); }
.report-clip { margin-top: -6px; overflow: hidden; border-radius: 0 0 22px 22px; }
.report {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 24px;
  border-radius: 0 0 22px 22px;
  background: var(--bg);
  color: var(--ink);
  animation: printOut 1.1s var(--ease-out) .2s both;
}
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--input-line); font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.report-key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; text-transform: none; letter-spacing: .04em; }
/* Antibody A in mint and B in white, on the same dark ground as the hero film. */
.report-key .k { width: 12px; height: 12px; border: 2px solid var(--deep); border-radius: 4px; background: var(--mint); }
.report-key .k--igg { margin-left: 8px; background: var(--on-dark); }
.report-key .k--th { width: 0; height: 12px; margin-left: 8px; border: 0; border-left: 2px dashed var(--bar-grey); border-radius: 0; background: none; }
.report-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 96px minmax(0, 1fr) 92px; align-items: center; gap: 8px 14px; }
.report-row--hot::before {
  content: "";
  position: absolute;
  inset: -5px -10px;
  z-index: -1;
  border-radius: 12px;
  background: var(--cream);
  transform-origin: left center;
  animation: drawX .6s var(--ease-out) calc(2.3s + var(--r) * .15s) both;
}
.report-row .name { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.report-track { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 5px 4px; border-radius: 7px; background: var(--deep); }
.report-bar { display: block; height: 6px; border-radius: 3px; transform-origin: left center; animation: drawX 1s var(--ease-out) calc(1.1s + var(--r) * .12s) both; }
.report-bar--iga { background: var(--mint); }
.report-bar--igg { background: var(--on-dark); animation-delay: calc(1.18s + var(--r) * .12s); }
.thresh { position: absolute; left: 55%; top: -7px; bottom: -7px; border-left: 2px dashed var(--bar-grey); transform-origin: top center; animation: drawY .35s ease-out calc(.95s + var(--r) * .08s) both; }
.report-row .flag { justify-self: start; font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); animation: zFade .4s ease calc(2.4s + var(--r) * .1s) both; }
.report-row .flag--hot { padding: 3px 9px; border: 1.5px solid var(--mint-ink); border-radius: 999px; color: var(--mint-ink); font-weight: 600; animation: stamp .45s var(--ease-spring) calc(2.45s + var(--r) * .15s) both; }
.report-sum { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--mint); font-size: 14px; font-weight: 600; animation: fadeUp .6s var(--ease-out) 3s both; }
@media (max-width: 520px) {
  .report { padding: 18px; }
  .report-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name flag" "track track"; }
  .report-row .name { grid-area: name; }
  .report-row .flag { grid-area: flag; justify-self: end; }
  .report-track { grid-area: track; }
}

/* Step 4: flagged foods lift off the plate into the Remove tray; the rest settle; the diet runs to a confirming scope. */
.act-visual { display: block; width: 100%; max-width: 430px; height: auto; margin: 0 auto; overflow: visible; }
.act-tray { fill: rgba(255, 255, 255, .03); stroke: rgba(140, 204, 178, .55); stroke-width: 1.5; stroke-dasharray: 5 5; animation: zFade .5s ease .9s both; }
.act-label { font: 500 13px var(--font-mono); letter-spacing: .12em; text-anchor: middle; }
.act-label--keep { fill: var(--on-dark-2); animation: zFade .5s ease 2.9s both; }
.act-label--remove { fill: var(--mint); animation: zFade .5s ease .9s both; }
.act-food { font: 500 11px var(--font-mono); letter-spacing: .1em; text-anchor: middle; fill: var(--on-dark); animation: labelFlip 1s ease var(--t) both; }
.act-food--keep { fill: var(--muted); animation: none; }
.act-more { animation: zFade .5s ease 2.8s both; }
.act-more-txt { font: 500 11px var(--font-mono); letter-spacing: .1em; fill: var(--muted); }
.act-pop { transform-box: fill-box; transform-origin: center; animation: popIn .5s var(--ease-spring) calc(.2s + var(--i) * .12s) both; }
.act-ring { fill: none; stroke: var(--mint-mid); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: zRing 1s ease-out calc(.8s + var(--i) * .15s) both; }
.act-out { transform-box: fill-box; transform-origin: center; transform: translate(var(--dx), var(--dy)); animation: liftOut 1s cubic-bezier(.65, 0, .35, 1) var(--t) both; }
.act-out .fi { opacity: .45; animation: dimOut .4s ease calc(var(--t) + .9s) both; }
.act-slash { stroke: var(--on-dark); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; animation: slash .35s ease-out calc(var(--t) + 1s) both; }
.act-stay { transform: translate(var(--dx), var(--dy)); animation: settle .7s var(--ease-out) 2.3s both; }
.act-check { transform-box: fill-box; transform-origin: center; animation: popIn .5s var(--ease-spring) 3s both; }

.diet-line { display: flex; flex-direction: column; gap: 10px; }
.dl-head { display: flex; justify-content: space-between; gap: 12px; font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.dl-track { position: relative; height: 8px; margin-right: 14px; border-radius: 4px; background: var(--edge); }
.dl-fill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--mint-mid), var(--mint)); transform-origin: left center; animation: drawX 1.4s ease-in-out 3.2s both; }
.dl-end { position: absolute; right: -14px; top: 50%; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--deep); animation: popIn .5s var(--ease-spring) 4.5s both; }
.dl-cap { font-size: 15px; color: var(--on-dark-2); animation: zFade .5s ease 4.6s both; }

/* ---------- Early results ---------- */

.science { display: flex; flex-direction: column; gap: 56px; }

.pilot {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 30px;
  background: var(--bg);
  color: var(--ink);
}
.pilot-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.pilot-copy .claim { font-family: var(--font-display); font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.pilot-bars { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.hbar { display: flex; flex-direction: column; gap: 8px; }
.hbar-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.hbar-head strong { font-family: var(--font-display); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hbar--dim .hbar-head { color: var(--muted); }
.hbar-track { height: 22px; border-radius: 6px; background: var(--mist-2); overflow: hidden; }
.hbar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--mint-mid);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-out) var(--bd, .2s);
}
.hbar--dim .hbar-fill { background: var(--bar-grey); --bd: .35s; }
.is-in .hbar-fill { transform: none; }

/* ---------- Team ---------- */

/* A rule across the top, like the About section's, since the team now shares the page background. */
.team::before { content: ""; display: block; margin-bottom: 40px; border-top: 1px solid var(--line); }
.team-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.team-lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.team-label { display: flex; align-items: center; gap: 14px; margin: 64px 0 32px; }
.team-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.founders { --g: 48px; --lens: clamp(150px, 15vw, 184px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.founder { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* A dashed thread runs from each portrait's center to the next one's. */
.founder-link {
  position: absolute;
  top: calc(var(--lens) / 2 - 1px);
  left: 50%;
  width: calc(100% + var(--g));
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--mint-line) 0 6px, transparent 6px 12px);
}

/* The portrait lens, like step 2's zoom: an inner photo, a drawn mint ring and a dashed outer ring. */
.lens { position: relative; z-index: 1; flex: none; width: var(--lens); aspect-ratio: 1; border-radius: 50%; background: var(--bg); }
.founder .lens { margin-bottom: 28px; }
.lens img { position: absolute; top: 9%; left: 9%; width: 82%; height: 82%; border-radius: 50%; object-fit: cover; background: var(--mist-2); }
.lens-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; rotate: -90deg; }
.lens-ring circle { fill: none; }
.lr-draw { stroke: var(--mint-mid); stroke-width: 1.4; stroke-dasharray: 1; stroke-linecap: round; }
.lr-dash { stroke: var(--sage); stroke-width: .9; stroke-dasharray: 1.5 4.5; transform-box: fill-box; transform-origin: center; transition: rotate 1.4s var(--ease-out); }
.founder:hover .lr-dash { rotate: 60deg; }

.founder-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.founder-role { margin-top: 6px; font-size: 15px; font-weight: 600; }
.founder-role span { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--mint-ink); }
.founder-bio { margin-top: 14px; max-width: 38ch; font-size: 16px; line-height: 1.6; color: var(--muted); }
.founder-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.founder-tags li { padding: 5px 11px; border: 1px solid var(--input-line); border-radius: 999px; font: 500 12px/1.3 var(--font-mono); color: var(--muted); }

.advisor { --lens: 104px; display: flex; align-items: center; gap: 24px; padding: 22px 28px 22px 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); color: var(--ink); text-decoration: none; }
.advisor-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* An open advisor seat, set as one row under the founders. */
.advisor--open { margin-top: 72px; border: 1.5px dashed var(--input-line); background: transparent; }
.advisor--open .advisor-copy { flex: 1; }
.advisor--open:hover { color: var(--ink); border-color: var(--mint-line); }
.lens--empty { display: grid; place-items: center; border: 1.5px dashed var(--mint-line); background: transparent; color: var(--mint-ink); transition: rotate .6s var(--ease-spring); }
.advisor--open:hover .lens--empty { rotate: 90deg; }
.advisor-ask { font-size: 16px; line-height: 1.5; }
.advisor--open .go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding-inline: 8px; font-weight: 600; color: var(--mint-ink); }
.advisor--open .go .arrow { transition: transform .3s var(--ease-out); }
.advisor--open:hover .go .arrow { transform: translateX(5px); }

/* Reveal: the photo opens from a dot, the ring draws, then the mint duotone develops into color. */
.js .team .lens img {
  clip-path: circle(0% at 50% 50%);
  filter: grayscale(1) sepia(.45) hue-rotate(105deg) saturate(1.5) brightness(1.03);
  transition: clip-path 1s var(--ease-out) calc(var(--d, 0s) + .2s), filter 1.6s ease calc(var(--d, 0s) + 1.2s);
}
.js .team .is-in .lens img { clip-path: circle(50% at 50% 50%); filter: none; }
.js .team .lr-draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-out) calc(var(--d, 0s) + .1s); }
.js .team .is-in .lr-draw { stroke-dashoffset: 0; }
.js .founder-link { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-out) calc(var(--d, 0s) + .8s); }
.js .founder.is-in .founder-link { clip-path: inset(0); }

@media (max-width: 860px) {
  /* Stacked: portrait on the left, the thread runs down between portraits. */
  .founders { --g: 44px; --lens: 120px; grid-template-columns: minmax(0, 1fr); }
  .founder { display: grid; grid-template-columns: var(--lens) minmax(0, 1fr); column-gap: 24px; align-items: start; text-align: left; }
  .founder > :not(.lens, .founder-link) { grid-column: 2; }
  .founder .lens { grid-row: 1 / span 4; margin: 0; }
  .founder-name { padding-top: 10px; }
  .founder-bio { max-width: none; }
  .founder-tags { justify-content: flex-start; }
  .founder-link {
    top: calc(var(--lens) / 2);
    left: calc(var(--lens) / 2 - 1px);
    width: 2px;
    height: calc(100% + var(--g));
    background: repeating-linear-gradient(180deg, var(--mint-line) 0 6px, transparent 6px 12px);
  }
  .js .founder-link { clip-path: inset(0 0 100% 0); }
  .advisor--open { flex-wrap: wrap; }
  .advisor--open .go { padding-left: calc(var(--lens) + 24px); }
}
@media (max-width: 480px) {
  /* Phones: name beside the portrait, bio full width below; no room for the thread. */
  .founders { --lens: 88px; --g: 44px; }
  .founder { column-gap: 18px; align-items: center; }
  .founder .lens { grid-row: 1 / span 2; }
  .founder-name { align-self: end; padding-top: 0; font-size: 22px; }
  .founder-role { align-self: start; }
  .founder > :is(.founder-bio, .founder-tags) { grid-column: 1 / -1; }
  .founder-bio { margin-top: 18px; }
  .founder-link { display: none; }
  .advisor { --lens: 84px; gap: 18px; padding: 18px; }
  .advisor--open { margin-top: 56px; }
  .advisor--open .go { padding-left: calc(var(--lens) + 18px); }
}

/* ---------- News ---------- */

.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.news-item:hover { color: var(--ink); }
.news-item .date { width: 120px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.news-item .headline {
  flex: 1 1 400px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: translate .4s var(--ease-out);
}
.news-item:hover .headline { translate: 8px 0; }
.news-item .go { font-size: 15px; font-weight: 600; color: var(--mint-ink); display: inline-flex; align-items: center; gap: 6px; }
.news-item .arrow-ne { transition: transform .3s var(--ease-out); }
.news-item:hover .arrow-ne { transform: translate(2px, -2px); }

/* ---------- Newsletter ---------- */

/* Sits directly under the news list, as the "want more?" next step. */
.news-signup {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
  justify-content: space-between;
  padding: 48px;
  border-radius: 32px;
  background: radial-gradient(circle at 100% 0%, rgba(140, 204, 178, .18), transparent 46%), var(--deep);
  color: var(--on-dark);
}
@media (max-width: 600px) { .news-signup { padding: 34px 24px; border-radius: 26px; } }
.newsletter-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.newsletter-copy h3 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.newsletter-copy p { color: var(--on-dark-2); }
/* Form delivery: an off-screen spam trap, and a message when a send fails. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { font-size: 15px; font-weight: 500; color: #A63D2A; }
/* The newsletter forms sit on dark panels, where the dark red is unreadable. */
.newsletter-form .form-error, .strip-form .form-error { color: #F2A391; }
form[aria-busy="true"] [type="submit"] { opacity: .6; cursor: progress; }

.newsletter-form { flex: 1 1 460px; display: flex; flex-direction: column; gap: 16px; }
.newsletter-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter-form legend { font-size: 14px; color: var(--on-dark-2); margin-bottom: 10px; padding: 0; }

.chip {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--edge-3);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font: 500 14px var(--font-body);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-spring);
}
.chip:hover { border-color: var(--sage); }
.chip.on { background: var(--mint); border-color: var(--mint); color: var(--deep); }

.inline-field { display: flex; gap: 10px; flex-wrap: wrap; }
.dark-input {
  flex: 1 1 240px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--edge-3);
  border-radius: 999px;
  background: var(--panel);
  color: var(--on-dark);
  font: 400 16px var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dark-input::placeholder { color: #93A2AB; }
.dark-input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(140, 204, 178, .25); }
.inline-field .btn { min-height: 54px; padding-inline: 28px; }

.sub-done {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  font-size: 17px;
  font-weight: 500;
  outline: none;
  animation: fadeUp .5s var(--ease-out) both;
}
.sub-done .badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  animation: popIn .6s var(--ease-spring) both;
}

/* ---------- Audiences ---------- */

.audiences { --min: 420px; padding-bottom: 104px; }

/* ---------- About (company) ---------- */

/* About follows the audience cards, which already leave 104px below them. */
#about { padding-top: 0; }
.company { display: flex; flex-wrap: wrap; gap: 28px 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.company-head { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.company-body { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.company-lead { font-size: 21px; line-height: 1.5; font-weight: 500; }
.company-body .row { margin-top: 6px; }

/* ---------- References ---------- */

/* Superscript markers in the copy; each links to its numbered entry at the bottom of the page. */
.ref { margin-left: 1px; font: 600 .62em/0 var(--font-mono); vertical-align: super; }
.ref a { padding: 0 1px; color: var(--mint-ink); text-decoration: none; }
.ref a:hover { color: var(--ink); text-decoration: underline; }
.band-dark .ref a { color: var(--mint); }
.vs-card--eat .ref a { color: var(--mint); }
.flow-card--dark .ref a { color: var(--mint); }
.flow-card--dark .ref a:hover { color: var(--on-dark); }

.refs { display: flex; flex-direction: column; gap: 18px; padding-bottom: 72px; }
.refs > h2 { padding-top: 40px; border-top: 1px solid var(--line); }
.refs-list { display: grid; gap: 10px; margin: 0; padding-left: 26px; max-width: 960px; font: 12.5px/1.65 var(--font-mono); color: var(--muted); }
.refs-list li { padding-left: 6px; scroll-margin-top: 120px; }
.refs-list li::marker { color: var(--mint-ink); font-weight: 600; }
.refs-list li:target { color: var(--ink); background: var(--cream); border-radius: 6px; }
.refs-list a { color: var(--mint-ink); }
.refs-list a:hover { color: var(--ink); }
.audience {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  padding: 40px;
  border-radius: 32px;
  text-decoration: none;
}
.audience .kicker { font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.1em; }
.audience .big { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.audience .body { font-size: 17px; max-width: 420px; }
.audience .go { margin-top: auto; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.audience .go .arrow { transition: transform .3s var(--ease-out); }
.audience:hover .go .arrow { transform: translateX(5px); }
.audience--mint, .audience--mint:hover { background: var(--mint); color: var(--deep); }
.audience--ink, .audience--ink:hover { background: var(--ink); color: var(--on-dark); }
.audience--ink .kicker, .audience--ink .go { color: var(--mint); }
.audience--ink .body { color: var(--on-dark-2); }

@media (max-width: 480px) {
  .audience { padding: 30px; }
  .audience .big { font-size: 34px; }
}

/* ---------- Contact page ---------- */

.thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--ink);
  pointer-events: none;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), height .45s var(--ease-out);
}

.contact-hero { padding-block: 72px 48px; display: flex; flex-direction: column; gap: 20px; }
.contact-hero h1 { font-size: clamp(44px, 6vw, 78px); max-width: 900px; }
.contact-hero .lede { font-size: 20px; max-width: 680px; color: var(--on-dark-2); }
.hero + .forms { padding-top: 56px; }

.forms { padding-bottom: 104px; display: flex; flex-direction: column; gap: 20px; }
.who {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 28px;
  background: var(--mist);
}
.who .thumb { border-radius: 22px; box-shadow: 0 16px 30px -18px rgba(53, 65, 75, .6); }
.tab {
  position: relative;
  z-index: 1;
  flex: 1 1 200px;
  min-height: 44px;
  padding: 18px 22px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color .3s ease;
}
.tab:not(.on):hover { background: rgba(53, 65, 75, .05); }
.tab .ttl { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.tab .tsub { display: block; font-size: 14px; color: var(--muted); transition: color .3s ease; }
.tab.on { color: var(--bg); }
.tab.on .tsub { color: var(--on-dark-2); }
html:not(.js) .tab.on { background: var(--ink); }

.contact-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.form-card {
  flex: 999 1 560px;
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
}
.form { display: flex; flex-direction: column; gap: 22px; }
.form-head { display: flex; flex-direction: column; gap: 8px; }
.form-head h2 { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.form-head p { color: var(--muted); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; background: var(--cream); font-size: 15px; }
.notice svg { margin-top: 2px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
.inp {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--input-line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: 400 16px var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.inp:hover { border-color: #9AABB3; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(140, 204, 178, .35); }
.inp:user-invalid { border-color: #B4472E; }
textarea.inp { resize: vertical; min-height: 140px; }
.checks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.check-row { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.form .btn { align-self: flex-start; min-height: 52px; padding: 16px 28px; }

.done { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 40px 0; }
.done .badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--mint);
  animation: popIn .6s var(--ease-spring) both;
}
.check-path { stroke-dasharray: 40; animation: draw .6s .3s ease both; }
.done h2 { font-family: var(--font-display); font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; outline: none; }
.done p { color: var(--muted); max-width: 520px; }

.contact-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.aside-dark { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 30px; background: var(--ink); color: var(--on-dark); }
.aside-dark h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.aside-dark p { color: var(--on-dark-2); font-size: 15px; }
.aside-dark .btn { align-self: flex-start; }
.glance { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.glance li { border-top: 1px solid var(--edge-2); padding-top: 12px; }
.glance strong { display: block; color: var(--mint); }
.aside-mist { container-type: inline-size; display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 30px; background: var(--mist); }
/* The address sizes to the card so it stays on one line (it is about 14× as wide as its font size). */
.aside-mist a { font-family: var(--font-display); font-size: min(18px, 100cqi / 14.6); font-weight: 700; overflow-wrap: anywhere; }
.aside-mist span:last-child { font-size: 15px; color: var(--muted); }

.strip-inner { padding-block: 72px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.strip-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.strip-copy h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
.strip-copy p { color: var(--on-dark-2); }
.strip-form { flex: 1 1 440px; }

/* ---------- Motion ---------- */

/* Cross-fade between pages; the header holds still. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

@keyframes fadeUp { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
@keyframes pop {
  from { opacity: 0; transform: translateX(-50%) scale(.3); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes popIn { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes brushPass {
  0% { opacity: 0; transform: translate(0, -120px); }
  8% { opacity: 1; transform: translate(0, -100px); }
  24% { transform: translate(0, 130px); }
  36% { transform: translate(0, 50px); }
  48% { transform: translate(0, 130px); }
  62% { transform: translate(0, -140px); }
  76% { transform: translate(150px, -60px); }
  88%, 100% { opacity: 1; transform: translate(150px, 70px); }
}
@keyframes wetIn { 0%, 22% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes dripOut {
  0% { opacity: 0; transform: translateY(-4px) scale(.4); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  85% { opacity: .9; transform: translateY(58px); }
  100% { opacity: 0; transform: translateY(68px); }
}
/* Down out of the last card, around the corner, along the line, around again and up into the first.
   The dot then waits out of sight before the next trip. */
@keyframes loopBack {
  0% { left: calc(100% + 1px); top: 0; }
  4% { left: calc(100% + 1px); top: calc(100% - 19px); }
  5% { left: calc(100% - 4.86px); top: calc(100% - 4.86px); }
  6% { left: calc(100% - 19px); top: calc(100% + 1px); }
  86% { left: 19px; top: calc(100% + 1px); }
  87% { left: 4.86px; top: calc(100% - 4.86px); }
  88% { left: -1px; top: calc(100% - 19px); }
  92%, 100% { left: -1px; top: 0; }
}
@keyframes zFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.11); } to { opacity: 1; transform: scale(1); } }
@keyframes zBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes dock { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes gDraw {
  0% { fill-opacity: 0; stroke-opacity: 1; stroke-dashoffset: 1; }
  65% { fill-opacity: 0; stroke-opacity: 1; stroke-dashoffset: 0; }
  100% { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
}
@keyframes logoBar { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes logoStem { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes logoTittle { 0% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 1; transform: none; } }
@keyframes wordIn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-18px); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes printOut { from { transform: translateY(-101%); } to { transform: none; } }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.6) rotate(-6deg); } 100% { opacity: 1; transform: none; } }
@keyframes labelFlip { 0%, 30% { fill: #4D5A63; } 100% { fill: #EEF3F2; } }
@keyframes liftOut {
  0% { transform: none; }
  22% { transform: translateY(-10px) scale(1.12); }
  100% { transform: translate(var(--dx), var(--dy)); }
}
@keyframes dimOut { from { opacity: 1; } to { opacity: .45; } }
@keyframes slash { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes settle { from { transform: none; } to { transform: translate(var(--dx), var(--dy)); } }
@keyframes zRing { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 179, 148, .55); } 100% { box-shadow: 0 0 0 14px rgba(95, 179, 148, 0); } }

.hero-in { animation: fadeUp .9s var(--ease-out) var(--d, 0s) both; }
.panel-in { animation: fadeUp .55s var(--ease-out) both; }

/* Scroll reveal: uses the `translate` property so it composes with hover `transform`s. */
.js .reveal {
  opacity: 0;
  translate: 0 36px;
  transition: opacity .9s var(--ease-out) var(--d, 0s),
              translate .9s var(--ease-out) var(--d, 0s),
              transform .4s var(--ease-out),
              box-shadow .4s ease;
}
.js .reveal.is-in { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .hbar-fill { transform: none; }
}
