/* ==========================================================================
   Gel4Med redesign — STYLES.CSS
   The single stylesheet for this project. There is only one design going
   forward; do not create a second variant stylesheet (a.css/c.css/d.css are
   archived, not in use). Update STYLEGUIDE.md and styleguide.html in the
   same change whenever a token, heading size, or color here changes.

   Load order matters — this file is assembled in three parts:
     1. TOKENS   — palette, spacing, type scale, base reset, hero, nav, pipeline shell
     2. SMP      — the peptide mechanism diagram (platform section)
     3. DESIGN   — every section-specific rule, the heading ladder, and color
   ========================================================================== */

/* ============================== 1. TOKENS ============================= */

/* ==========================================================================
   Gel4Med redesign — shared token layer
   Type scale and spacing are IDENTICAL across all three variants.
   Only font FAMILIES change per variant (set in each variant's stylesheet).
   Every line-height is a multiple of 4px. Sizes step at breakpoints rather
   than using clamp(), so the 4px rule holds at every viewport.
   ========================================================================== */

:root {
  /* --- Brand + palette (extracted from existing site, unchanged) --- */
  --cyan:        #64d8ea;
  --cyan-soft:   rgba(100, 216, 234, 0.30);
  --cyan-faint:  rgba(100, 216, 234, 0.12);

  /* Old names kept so existing rules still resolve; values now come from
     tokens.css (design-system decisions 1 and 14). */
  --black:       var(--dark);      /* pure black folds into Dark */
  --dark:        #0b0f10;
  --dark-2:      var(--graphite);
  --dark-line:   rgba(255, 255, 255, 0.14);
  --dark-ink:    #f2f5f6;
  --dark-ink-2:  rgba(242, 245, 246, 0.66);

  --paper:       #fafafa;
  --white:       #ffffff;
  --ink:         var(--dark);      /* #111417 folds into Dark */
  --ink-2:       #3a4247;
  --slate:       #5d6c7b;
  --slate-2:     var(--slate);     /* #5d737b folds into Slate */
  --line:        #dddddd;
  --line-soft:   var(--mist);      /* #ececec folds into Mist */

  /* --- Spacing: 4px base --- */
  --s-1:   4px;   --s-2:   8px;   --s-3:  12px;  --s-4:  16px;
  --s-6:  24px;   --s-8:  32px;   --s-12: 48px;  --s-16: 64px;
  /* --s-32 and --s-48 keep their old names but snap to the grid steps
     (decision 7: 128 -> 120, 192 -> 200). */
  --s-24: 96px;   --s-32: var(--space-120);  --s-40: 160px; --s-48: var(--space-200);

  --section-y: var(--section-pad-compact);
  --gutter:    var(--s-8);
  /* 1504 = 1440px of content + the 32px gutter either side. The pill nav
     (.nav--pill .nav-shell) is capped at the same 1440 so its edges line up
     with the content's left and right edges. */
  --container: 1504px;
  --measure:   68ch;

  /* --- Type scale (desktop) --- */
  /* Old size names, kept so existing rules still resolve. Each one is a step on the scale in
     tokens.css (the names are one rung off: --fs-h1 is H2, and so on). */
  --fs-dxl: var(--h1-size);       --lh-dxl: var(--h1-line);       /* H1, hero headline */
  --fs-dl:  var(--display-size);  --lh-dl:  var(--display-line);  /* Display */
  --fs-h1:  var(--h2-size);       --lh-h1:  var(--h2-line);       /* H2 */
  --fs-h2:  var(--h3-size);       --lh-h2:  var(--h3-line);       /* H3 */
  --fs-h3:  var(--h4-size);       --lh-h3:  var(--h4-line);       /* H4 */
  --fs-h4:  var(--h5-size);       --lh-h4:  var(--h5-line);       /* H5 */
  --fs-bl:  var(--body-size);     --lh-bl:  var(--body-line);     /* Body */
  --fs-b:   var(--body-size);     --lh-b:   var(--body-line);     /* Body */
  --fs-sm:  var(--small-size);    --lh-sm:  var(--small-line);    /* Small */
  --fs-lb:  var(--small-size);  --lh-lb:  var(--small-line);  /* Tiny 12/16 retired: labels are Small (design-system decision 5) */

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tablet and phone sizes step down inside tokens.css. */
@media (max-width: 640px) {
  :root {
    --gutter: var(--s-6);
  }}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x is set on BOTH html and body deliberately. body alone was not
   enough: the homepage intentionally overflows sideways (the investor
   .ticker-track is ~3460px, and
   the hero title's slice lines carry a negative inline margin). body's
   overflow-x:hidden clips all of that visually, but the document's scroll
   width still reported wider than the viewport — and the fixed .nav then
   sized itself to THAT width, so .nav-shell's `margin: auto` centred the
   menu on the overflow width instead of the viewport and pushed the panel
   off the right edge on small screens. Setting it on html too keeps the
   scroll width equal to the viewport, so the nav centres correctly. */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-b);
  line-height: var(--lh-b);
  /* Body copy is 300. Archivo 400 is a sturdy grotesque and read as heavy at
     paragraph sizes. NOTE: 300 must stay in the Google Fonts request in every
     HTML head, or the browser falls back to 400 and this line does nothing. */
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, not hidden: hidden quietly turns body into a scroll box that never
     scrolls, which blinds scroll-driven animations (the About roadmap's
     phone line). clip trims the sideways overflow the same way without that. */
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Visible focus on everything interactive — never removed. Two-tone ring
   (2px Dark inside, 2px Cyan outside) so one of the two always shows, on
   light, cyan, dark and photo grounds alike. It follows each element's own
   corners, so pills stay pills. The transparent outline keeps a ring in
   Windows high-contrast mode, which drops box-shadows. Fields don't take the
   ring: their own line carries focus (design-system README, Focus and fields). */
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus-visible,
textarea:focus-visible, select:focus-visible { box-shadow: none; }

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

.wide { max-width: 1600px; }

/* --------------------------------------------------------------------------
   Type utilities
   -------------------------------------------------------------------------- */
.t-dxl { font-size: var(--fs-dxl); line-height: var(--lh-dxl); }
.t-dl  { font-size: var(--fs-dl);  line-height: var(--lh-dl); }
.t-h1  { font-size: var(--fs-h1);  line-height: var(--lh-h1); }
.t-h2  { font-size: var(--fs-h2);  line-height: var(--lh-h2); }
.t-h3  { font-size: var(--fs-h3);  line-height: var(--lh-h3); }
.t-h4  { font-size: var(--fs-h4);  line-height: var(--lh-h4); }
.t-bl  { font-size: var(--fs-bl);  line-height: var(--lh-bl); }
.t-lead { font-size: var(--lead-size); line-height: var(--lead-line); }
.t-sm  { font-size: var(--fs-sm);  line-height: var(--lh-sm); }

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-lb);
  line-height: var(--lh-lb);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Citation/footnote markers — global, not page-scoped, so no section can be
   missed again: every <sup> on the site (inline citations, figure-caption
   citations, the ‡/asterisk footnote symbols) gets this same bold, mono,
   tracked-out treatment, matching what .ph-feat sup already did on its own
   before this rule existed. */
/* Colour is inherited from the surrounding text on every ground — pure white
   citation numbers read as beacons (client note). Bold stays. */
sup { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.04em;
  /* Raised by offset, not vertical-align, so a cited line keeps the same
     line spacing as its neighbours instead of pushing them apart. */
  line-height: 0; vertical-align: baseline; position: relative; top: -0.5em; }
/* Registered mark (G4Derm Plus®, Suprello®): raised like a citation, but in
   the surrounding face and weight, not the bold mono citation treatment. */
html sup.tm { font-family: inherit; font-weight: 500; letter-spacing: 0; font-size: 0.6em; top: -0.7em; }
/* Explicit 700, not the browser default "bolder" — body copy is weight 300
   (see the note on body above), and "bolder" only steps a 300 base up to
   400, which barely reads as bold at all. Reference-list numbers need this
   as much as sup does. */
strong, b { font-weight: 700; }

/* Eyebrow: mono label + short rule (the one device shared by all 3) */
.eyebrow { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-8); }
.eyebrow .rule { width: 32px; height: 2px; background: var(--cyan); }

/* --------------------------------------------------------------------------
   Scroll reveal — fires ONCE per element per page load
   -------------------------------------------------------------------------- */
/* Round 1 feedback: one quick, subtle fade-and-rise for text and photos alike. */
[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Rule-draw reveal, used by variant C */
[data-reveal-rule] { transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal-rule].is-in { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   HERO — shared and locked across all three variants
   Full viewport, true black. The source image is already black-grounded;
   a soft diagonal mask reveals it from the bottom-right on load, so the
   structure reads as emerging from the dark rather than sitting in a box.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--surface-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed image, revealed on load by a soft diagonal mask (client
   direction): the visible region grows from the bottom-right corner toward
   the centre, its leading edge a wide feathered gradient rather than a cut.
   --hero-r is where along the bottom-right → top-left diagonal the fade is
   centred; the edge is ±30% either side of it. It comes to rest at 50%
   (the centre), so the top-left — where the headline sits — stays dissolved
   into black. Resting at ~130% instead would reveal the whole image.
   Source is 2880x1620, a 2x asset for a 1440-wide screen. */
/* The headline's plain text would paint before js/site.js rebuilds it into
   the animated slices — invisible on a first visit (the font is still
   loading) but a visible flash on a cached return. Hidden until rebuilt;
   the html.js flag (set in index.html's <head>) keeps it visible if
   scripts never run. */
html.js .hero h1:not(.is-split) { visibility: hidden; }
/* Same for the inner-page hero titles, which js/site.js rebuilds for the
   per-character ripple (it marks each one [data-hreveal] as it does). */
html.js .ph-hero .ph-title:not([data-hreveal]) { visibility: hidden; }

@property --hero-r {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -30%;
}
.hero-orb {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/protein-chain-biomolecules-gel4med-hero.jpg");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  --hero-r: -30%;
  -webkit-mask-image: linear-gradient(to top left, #000 calc(var(--hero-r) - 30%), transparent calc(var(--hero-r) + 30%));
  mask-image: linear-gradient(to top left, #000 calc(var(--hero-r) - 30%), transparent calc(var(--hero-r) + 30%));
}
@keyframes hero-reveal { to { --hero-r: 50%; } }
/* Phone: a portrait screen shows only a narrow middle slice of this wide
   image, so slide it left to bring the orange, red, and pink strands on its
   right side into view (on request). */
@media (max-width: 640px) { .hero-orb { background-position: 80% 50%; } }

/* Feathers the left edge into pure black so type always has clean ground */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--dark) 0%, rgba(11,15,16,0.86) 24%, rgba(11,15,16,0.35) 36%, transparent 46%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: var(--s-32) var(--s-24); }

/* Typographic rule for the hero heading lives entirely on .hero-title
   below — this used to be split across three rules fighting by specificity. */

/* Per-line mask. Inside each line sit eight stacked copies of the same text,
   each clipped to one horizontal band and pushed sideways; as the offsets
   converge to zero the bands reassemble into the exact line. Characters ripple
   in left to right underneath, and the RGB channels converge with them —
   tearing plus refraction, resolving into clean type. */
.hero h1 .ln {
  display: block;
  position: relative;
  overflow: hidden;
  /* Room for the sideways tear without the mask clipping it. */
  padding-inline: 48px;
  margin-inline: -48px;
}
.hero h1 .sl {
  display: block;
  clip-path: inset(var(--top) 0 var(--bot) 0);
  transform: translate3d(var(--sx, 0), 0, 0);
  transition: transform 1.32s cubic-bezier(0.16, 0.84, 0.24, 1);
  transition-delay: var(--sd, 0ms);
  will-change: transform;
}
.hero h1 .sl + .sl { position: absolute; inset: 0; padding-inline: 48px; }
.hero.is-live h1 .sl { transform: translate3d(0, 0, 0); }

.hero h1 .ln-in { display: block; white-space: pre; }

.hero h1 .ch {
  display: inline-block;
  will-change: transform, opacity;
  transform: translateY(108%);
  opacity: 0;
  /* Chromatic aberration — the RGB channels enter split and converge. */
  text-shadow:
    -7px  3px 2px rgba(255,  46,  70, 0.92),
     0px -4px 2px rgba( 62, 255, 138, 0.72),
     7px  3px 2px rgba(  0, 190, 255, 0.92);
  transition:
    transform 1.05s var(--ease-out),
    opacity 0.62s ease-out,
    text-shadow 0.92s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.hero.is-live h1 .ch {
  transform: translateY(0);
  opacity: 1;
  text-shadow:
    0 0 0 rgba(255,  46,  70, 0.92),
    0 0 0 rgba( 62, 255, 138, 0.72),
    0 0 0 rgba(  0, 190, 255, 0.92);
}

.hero-sub {
  margin-top: var(--s-8);
  max-width: 46ch;
  color: var(--text-quiet-on-dark);
  font-size: var(--lead-size);
  line-height: var(--lead-line);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s var(--ease-out) 0s, transform 0.9s var(--ease-out);
}

/* Scroll marker, resting at the bottom of the viewport */
.hero-scroll {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0 var(--gutter) var(--s-8);
  display: flex; align-items: flex-end; gap: var(--s-4);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.hero-scroll .container { display: flex; align-items: flex-end; gap: var(--s-4); }
.hero-scroll .label { color: var(--mist-66); padding-bottom: var(--s-2); }
.hero-scroll .tick { width: 1px; height: 56px; background: linear-gradient(180deg, transparent, var(--cyan)); }

/* Fades out once the visitor actually scrolls (js/site.js toggles this) and
   back in if they return to the very top. !important is deliberate: several
   different rules set this element to opacity:1 depending on which hero it's
   in — the homepage's delayed .is-live rule below, and every inner page's
   plain .ph-hero .hero-scroll rule in platform.css, loaded after this file —
   and this must win over all of them regardless of load order.
   transition-delay: 0s !important is also deliberate, not decorative — see
   the long comment on .hero.is-live .hero-scroll below for the bug this
   closes: without it, the homepage's one-time entrance delay was leaking
   into every later fade, on both directions of the toggle. */
.hero-scroll.is-past { opacity: 0 !important; pointer-events: none; transition-delay: 0s !important; }

/* Play state — added by JS after the initial black hold */
/* 500ms after the headline starts rippling in (client instruction), so the
   two overlap rather than the image waiting for the text to finish. */
.hero.is-live .hero-orb { animation: hero-reveal 2.6s var(--ease-out) 500ms both; }
/* Channels align; at zero offset the shadows sit hidden behind the glyph. */
.hero.is-live h1 .ch {
  transform: translateY(0);
  opacity: 1;
  text-shadow:
    0 0 0 rgba(255,  46,  70, 0.92),
    0 0 0 rgba( 62, 255, 138, 0.72),
    0 0 0 rgba(  0, 190, 255, 0.92);
}
.hero.is-live .hero-sub { opacity: 1; transform: none; transition-delay: 1.6s; }
/* opacity only — NOT transition-delay here. .hero.is-live is added once and
   never removed, so a transition-delay written into this rule would apply
   forever, not just for the initial reveal: every later opacity change on
   .hero-scroll (i.e. every scroll-cue toggle in js/site.js, in both
   directions) would silently inherit this rule's delay too. That was the
   reported bug — scrolling back to the top looked broken because the fade
   back in was waiting a stray 2.15s before it even started. The one-time
   entrance delay this hero actually wants now lives as a self-clearing
   inline style set by the hero's own JS, once, in js/site.js. */
.hero.is-live .hero-scroll { opacity: 1; }

@media (max-width: 1024px) {
  .hero::after { background: linear-gradient(180deg, var(--dark) 0%, rgba(11,15,16,0.84) 30%, rgba(11,15,16,0.4) 56%, transparent 92%); }
  .hero h1 { max-width: 100%; }}

/* --------------------------------------------------------------------------
   NAVIGATION — compact centred panel
   Measured from lamalama.com: a 438px card centred at top:16px, 50px bar,
   50px rows at 16px type, 40px children indented 43px, 4px radius. Opening
   drops a black/80 + heavy-blur backdrop over the page and expands the card
   downward on an expo-out curve (~64% of travel in the first 64ms).
   -------------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; pointer-events: none; }

/* Backdrop — the page recedes behind the panel */
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.nav.is-open .nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }

.nav-shell {
  position: relative;
  pointer-events: auto;
  width: 575px;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  background: rgba(12, 16, 17, 0.88); /* was 0.72: read grey over white sections (on request) */
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
/* At the very top of the page the bar dissolves: no fill, no border, no
   blur — the logo, links and CTA sit straight on the hero. It turns frosted
   the moment the page scrolls, and stays frosted while the mobile menu is
   open so the panel has a ground. The html.nav-top flag is set by the
   inline script in each page's <head>, BEFORE first paint — so the bar
   never paints frosted and then fades clear on load — and js/site.js keeps
   it in step with the scroll position from then on. */
html.nav-top .nav:not(.is-open) .nav-shell {
  background-color: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* First-visit entrance — added by js/site.js only the first time the nav
   shows up in a tab's session, so it arrives alongside that page's own
   headline instead of every navigation replaying it. */
.nav-shell.nav-entrance { opacity: 0; transform: translateY(-8px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
/* `none`, not translateY(0): any transform on the shell would trap the
   full-screen phone menu (position: fixed) inside the shell's own box. */
.nav-shell.nav-entrance.is-in { opacity: 1; transform: none; }

/* Whole-page fade-through between internal pages — see js/site.js. Opaque
   by default so it's already covering the page before the first paint;
   JS removes .is-out on load (fade to clear) and re-adds it just before an
   internal navigation (fade to opaque), so the cut between pages reads as a
   dissolve rather than a jump. */
/* Page fade-through: a black cover that is opaque from the VERY FIRST frame
   (pure CSS, keyed to the html.js flag set in each page's <head>) and fades
   out once js/site.js adds html.page-in. It used to be a <div> injected by
   site.js — which runs after the first paint, so the nav was drawn, then
   covered, then revealed again: a visible flicker on arrival. Removing
   page-in fades it back to black just before an internal navigation. The
   <head> script adds page-in itself after 3s as a safety net, so the page
   can never stay black if site.js fails to load. */
html.js body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--surface-dark);
  opacity: 1;
  pointer-events: none;
  transition: opacity 380ms var(--ease-out);
}
html.js.page-in body::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) { html.js body::after { display: none; } }
@media (max-width: 520px) { .nav-shell { max-width: calc(100vw - 24px); }
  .nav-bar { height: 88px; }}

/* Bar ---------------------------------------------------------------------- */
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  /* 92px = 76px (room for the uncropped logo + tagline) + the 16px gap the
     bar used to float in, now that it sits flush to the top (client
     instruction). 88px on phones, where that gap was 12px. */
  height: 92px;
  padding: 0 var(--s-4);
}
/* FULL lockup — wordmark AND tagline ("The Smart Materials Company").
   This used to be cropped to just the wordmark (a 31px container with
   overflow:hidden clipping a 45px image), on the reasoning that the tagline
   was unreadable in a 60px bar. That was true at that size, but the client
   wants the tagline, so the bar grew instead of the mark being cut.
   52px was chosen by rendering the lockup at 40/46/52/60 and reading the
   tagline at each: 40 and 46 are mush, 52 is the first size where it holds.
   Do not reintroduce a fixed height + overflow:hidden here — that is what
   silently ate the tagline in the first place. */
.nav-logo { display: block; }
.nav-logo img { height: 52px; width: auto; display: block; }

.nav-toggle {
  width: 40px; height: 40px;
  margin-right: -8px;
  display: grid; place-items: center;
  color: var(--dark-ink);
}
.nav-toggle .bars { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0;
  width: 16px; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.nav-toggle .bars::before { transform: translateY(-5px); }
.nav-toggle .bars::after  { transform: translateY(5px); }
.nav-toggle .bars { transition: background-color 0.2s var(--ease); }
.nav.is-open .nav-toggle .bars { background-color: transparent; }
.nav.is-open .nav-toggle .bars::before { transform: rotate(45deg); }
.nav.is-open .nav-toggle .bars::after  { transform: rotate(-45deg); }
.nav-toggle { width: 44px; height: 44px; margin-right: -10px; }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 999px; }

/* Menu --------------------------------------------------------------------- */
.nav-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}
.nav.is-open .nav-menu { grid-template-rows: 1fr; }
.nav-menu > div { overflow: hidden; }

.nav-list { max-height: max(200px, calc(100svh - 220px)); overflow-y: auto; overscroll-behavior: contain; }
.nav-list::-webkit-scrollbar { width: 0; }
.nav-list { scrollbar-width: none; }

.m-item { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.m-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 50px;
  padding: 0 var(--s-4);
  text-align: left;
  font-size: var(--fs-b); line-height: var(--lh-b);
  letter-spacing: -0.02em;
  color: var(--dark-ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.m-link:hover { background: rgba(255, 255, 255, 0.05); }
.m-item.is-open > .m-link { color: var(--cyan); }

/* The link for whatever page is currently open. Cyan, and genuinely inert —
   not just styled to look disabled, pointer-events is off so it can't be
   clicked or hovered (a matching preventDefault in site.js covers keyboard
   activation, which pointer-events doesn't touch). Wins over the .is-open
   dropdown-trigger colour above on specificity, which is correct: knowing
   where you are outranks a transient open/closed state. */
.m-link.is-current { color: var(--cyan); pointer-events: none; }
.m-link.is-current:hover { background: none; }

/* Expand glyph — a plus that resolves to a minus */
.glyph { position: relative; width: 10px; height: 10px; flex: none; }
.glyph::before, .glyph::after {
  content: ""; position: absolute; left: 0; top: 4.25px;
  width: 10px; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease);
}
.glyph::after { transform: rotate(90deg); }
.m-item.is-open .glyph::after { transform: rotate(0deg); opacity: 0; }

/* Children ------------------------------------------------------------------ */
.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.m-item.is-open .m-sub { grid-template-rows: 1fr; }
.m-sub > div { overflow: hidden; }
.m-sub a {
  display: flex; align-items: center;
  height: 40px;
  padding: 0 var(--s-4) 0 43px;
  font-size: 14px; line-height: 20px;
  color: rgba(242, 245, 246, 0.62);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.m-sub a:hover { color: var(--cyan); background: rgba(100, 216, 234, 0.06); }

/* Actions ------------------------------------------------------------------- */
.nav-actions {
  padding: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; gap: var(--s-2);
}
.nav-cta {
  display: flex; align-items: center; justify-content: center;
  height: 48px;
  font-family: var(--font-mono);
  font-size: var(--nav-size); letter-spacing: 0.01em;
  color: var(--dark-ink);
  border: 1px solid rgba(255, 255, 255, 0.24);
  /* Pill, on client instruction — every button on the site takes this same
     999px radius now: .nav-cta here, .btn-sub and .ct-submit below. */
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav-cta:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(100, 216, 234, 0.08); }
.nav-cta.is-primary { background: var(--cyan); border-color: var(--cyan); color: #06181c; font-weight: 600; }
.nav-cta.is-primary:hover { background: transparent; color: var(--cyan); }

/* --------------------------------------------------------------------------
   PHONE AND TABLET MENU: full screen (under 1120px, where the pill bar can't fit)
   The menu becomes its own dark full-screen layer under the bar: page names
   in the headline serif, one per line, arriving with the site's quick
   fade-and-rise one after another; the Order pill sits at the bottom. The
   current page carries a short cyan rule before its name (the tick-list
   mark), so it isn't marked by colour alone. The shell drops its frost and
   border while open so the bar reads as part of the same ground.
   -------------------------------------------------------------------------- */
@media (max-width: 1119.98px) {
  html.nav-locked { overflow: hidden; }
  /* Edge to edge, flush to the top, like the desktop strip (on request):
     no floating box, no rounded corners. The logo and the menu sit on the
     page's own gutter so they line up with the content below. */
  .nav-shell { width: 100%; max-width: none; border-radius: 0; border-width: 0 0 1px; }
  .nav-bar { padding: 0 var(--gutter); }
  .nav.is-open .nav-backdrop { opacity: 0; }
  .nav.is-open .nav-shell { background-color: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
  .nav-bar { position: relative; z-index: 1; }

  .nav-menu {
    position: fixed; inset: 0; z-index: 0;
    display: block;
    padding: 92px 0 0;
    background: var(--surface-dark);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }
  .nav.is-open .nav-menu { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease-out), visibility 0s; }
  .nav-menu > div {
    height: 100%;
    padding: var(--s-8) var(--gutter) max(var(--s-8), env(safe-area-inset-bottom));
    display: flex; flex-direction: column;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-list { max-height: none; overflow: visible; }

  .m-item {
    border-top: 0;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
  }
  .nav.is-open .m-item {
    opacity: 1; transform: none;
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out);
    transition-delay: calc(0.1s + var(--i) * 0.05s);
  }
  .m-link {
    display: flex; align-items: center; justify-content: flex-start; gap: var(--s-3);
    height: auto; min-height: 44px;
    padding: var(--s-2) 0;
    font-family: var(--font-display); font-weight: 300;
    font-size: var(--h2-size); line-height: var(--h2-line);
    letter-spacing: -0.01em;
  }
  .m-link:hover { background: none; color: var(--cyan); }
  .m-link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
  .m-link.is-current::before {
    content: ""; flex: none;
    width: 24px; height: 1.5px; background: currentColor;
  }

  .nav-actions {
    margin-top: auto; padding: var(--s-8) 0 0; border-top: 0;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
  }
  .nav.is-open .nav-actions {
    opacity: 1; transform: none;
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out);
    transition-delay: 0.5s;
  }
  .nav-cta { height: 52px; }
}
@media (max-width: 520px) { .nav-menu { padding-top: 88px; } }
@media (max-width: 1119.98px) and (prefers-reduced-motion: reduce) {
  .m-item, .nav-actions, .nav.is-open .m-item, .nav.is-open .nav-actions { transform: none; }
}

/* --------------------------------------------------------------------------
   NAV VARIANT: PILL  (.nav--pill)
   A capsule bar with every link inline and the order CTA as a pill inside it.

   This is a SKIN, not a second nav: the markup is byte-identical to the
   collapsing panel variant (same .nav-bar / .nav-menu / .nav-list / .m-item /
   .m-link / .nav-cta), so js/site.js drives both without knowing which is on,
   and switching is one class in partials/nav.html.

   It only applies from 1120px up. Seven inline links plus a logo plus the CTA
   genuinely do not fit below that, so under 1120px this variant simply stops
   overriding and the collapsing panel underneath takes over unchanged — which
   is why the toggle, the backdrop and the stacked list all stay in the markup.
   -------------------------------------------------------------------------- */
@media (min-width: 1120px) {
  /* 1440px cap = the content column's own width, and the same gutter either
     side at narrower widths, so the pill's outer edges always sit on the
     content's left and right edges (client instruction). */
  /* Width is `100%` of .nav's own box, NOT `100vw`. .nav is a fixed-position
     element with inset:0, so ITS box already correctly equals the true
     visible viewport (browsers size a fixed element's containing block to
     the visual viewport, excluding any reserved scrollbar gutter). The
     `100vw` unit does NOT make that same exclusion — it's based on the
     initial containing block and stays the same whether or not a scrollbar
     is reserving space. So on any page whose content is just tall enough to
     show a classic (non-overlay) scrollbar, `calc(100vw - 48px)` came out a
     few pixels WIDER than .nav's real, already-correct width, and the
     centred shell sat off-centre by half that difference — visible as the
     whole nav "nudging" sideways when navigating between pages of different
     heights/scrollbar states. `100%` of the correctly-sized parent has no
     such gap, on any page, regardless of scrollbar. */
  .nav--pill .nav-shell {
    /* A full-width strip, edge to edge of the browser, flush to the top, no
       rounding (client instruction). Its CONTENTS still sit on the 1440px
       content column: the side padding is whatever puts the logo on the
       content's left edge and the CTA on its right edge. Height comes from
       the 52px logo + 18px top/bottom. */
    width: 100%;
    max-width: none;
    border-radius: 0;
    border-width: 0 0 1px;
    padding: 18px max(var(--gutter), calc((100% - 1440px) / 2));
    display: flex;
    align-items: center;
    gap: var(--s-6);
  }

  /* The bar shrinks to just the logo; the toggle belongs to the mobile
     variant only. */
  .nav--pill .nav-bar { height: auto; padding: 0; flex: none; }
  .nav--pill .nav-toggle { display: none; }

  /* .nav-menu is a collapsing grid in the other variant. Here it is simply a
     row — and its inner wrapper div (which exists only to clip that grid
     animation) is flattened out with display:contents so the list and the CTA
     become direct flex children. */
  .nav--pill .nav-menu {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: var(--s-6);
    grid-template-rows: none;
    transition: none;
  }
  .nav--pill .nav-menu > div { display: contents; }

  /* Links centred in the pill, apart from the Order CTA (client instruction):
     auto margins split the free space either side of the list, so the logo
     holds the far left and the CTA the far right. */
  .nav--pill .nav-list {
    display: flex;
    align-items: center;
    margin-inline: auto;
    gap: var(--s-1);
    max-height: none;
    overflow: visible;
  }

  /* Rows become pills. The top border that separated stacked rows would read
     as a stray tick mark in a horizontal row, so it goes. */
  .nav--pill .m-item { border-top: 0; }
  .nav--pill .m-link {
    /* 44px, not 40 — the project's minimum click/touch target. It also lines
       the link pills up with the 44px CTA pill beside them. */
    height: 44px;
    width: auto;
    /* --s-3 rather than --s-4: 4px tighter each side is imperceptible on a
       pill this size but returns ~56px across seven links, which is the
       difference between one spare slot and two before this row stops
       fitting at 1200px. Headroom for more links was part of the brief. */
    padding: 0 var(--s-3);
    border-radius: 999px;
    font-size: var(--nav-size);
    line-height: var(--nav-line);
    white-space: nowrap;
  }
  /* At Normal (17px) the full row needs ~1234px; between 1120 and 1279 the
     links and the CTA drop to Small (14px) so the pill still fits. */
  @media (max-width: 1279px) {
    .nav--pill .m-link { font-size: var(--nav-size-tight); line-height: var(--nav-line-tight); }
    .nav--pill .nav-cta { font-size: var(--nav-size-tight); }
  }
  /* Cyan sliver, not a pill-shaped background wash — client explicitly did
     not want the rounded highlight. A centred underline that grows out from
     the middle on hover and text that eases to cyan alongside it; on
     press/click it collapses back toward the centre and vanishes (the same
     scaleX(0) with a centred transform-origin naturally shrinks from both
     sides at once — no separate keyframes needed for that motion). */
  .nav--pill .m-link { position: relative; color: var(--dark-ink); }
  .nav--pill .m-link::after {
    content: "";
    position: absolute; left: var(--s-3); right: var(--s-3); bottom: 6px;
    height: 1px;
    border-radius: 999px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.32s var(--ease-out);
  }
  .nav--pill .m-link:hover { color: var(--cyan); background: none; }
  .nav--pill .m-link:hover::after { transform: scaleX(1); }
  /* Current-page link: cyan, inert, no sliver — a permanently-lit sliver
     would read as "hovered," not "you are here," so it stays off. */
  .nav--pill .m-link.is-current { color: var(--cyan); pointer-events: none; }
  .nav--pill .m-link.is-current::after { transform: scaleX(0) !important; }
  /* Press feedback: a quicker, snappier collapse than the hover-out speed,
     so a click reads as a distinct tactile response rather than just an
     early mouse-leave. */
  .nav--pill .m-link:active::after { transform: scaleX(0); transition-duration: 0.12s; }

  /* The actions block loses its divider and padding — the CTA is just the
     last pill in the row. */
  .nav--pill .nav-actions {
    padding: 0;
    border-top: 0;
    display: block;
    flex: none;
  }
  .nav--pill .nav-cta {
    border-radius: 999px;
    height: 48px;
    padding: 0 var(--s-6);
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   PIPELINE — interactive accordion (rebuilt from the flat PNG)
   Rows without content carry no expand affordance.
   -------------------------------------------------------------------------- */
.pipe { border-top: 1px solid var(--pipe-line); }

/* --------------------------------------------------------------------------
   Reduced motion — everything renders in place, immediately
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    animation-delay: 0ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal-rule] { transform: scaleX(1); }
  .hero-orb, .hero.is-live .hero-orb { animation: none; --hero-r: 50%; }
  .hero h1 .ch { transform: none; opacity: 1; text-shadow: none; }
  .hero h1 .sl { transform: none; }
  .hero-sub, .hero-scroll { opacity: 1; transform: none; }
  .pipe-fill { width: var(--w); }
}

/* ================================ 2. SMP =============================== */

/* ==========================================================================
   SMP™ mechanism — scroll-driven assembly diagram.
   Theme-agnostic: colours come from --smp-* which each variant sets.
   ========================================================================== */

.smp { position: relative; }
.smp-track { position: relative; min-height: 300svh; }
.smp-sticky {
  position: sticky; top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s-24);
}

.smp-figure { position: relative; display: grid; place-items: center; }
.smp-svg { width: min(560px, 46vw); height: auto; overflow: hidden; }

.smp-fibers line {
  stroke: var(--smp-fiber);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.smp-units rect { fill: var(--smp-unit); }
.smp-nodes circle { fill: var(--smp-node); opacity: 0; }

/* A faint disc so the assembly reads as happening inside a volume */
.smp-figure::before {
  content: "";
  position: absolute;
  width: min(620px, 52vw); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--smp-halo);
  opacity: calc(var(--smp-p, 0) * 0.9);
  transition: opacity 0.3s linear;
  pointer-events: none;
}

.smp-copy { max-width: 46ch; }
.smp-copy > .eyebrow { margin-bottom: var(--s-8); }
.smp-steps { display: flex; flex-direction: column; gap: var(--s-6); }

.smp-step {
  padding-left: var(--s-6);
  border-left: 1px solid var(--smp-step-line);
  opacity: 0.34;
  transition: opacity 0.45s var(--ease), border-color 0.45s var(--ease);
}
.smp-step.is-active { opacity: 1; border-left-color: var(--cyan); }
.smp-step h3 {
  font-size: var(--fs-h4); line-height: var(--lh-h4);
  margin-bottom: var(--s-2);
}
.smp-step p { font-size: var(--fs-b); line-height: var(--lh-b); color: var(--smp-body); }
.smp-step .smp-idx {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-lb); line-height: var(--lh-lb);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--smp-idx);
  margin-bottom: var(--s-2);
}
.smp-step.is-active .smp-idx { color: var(--cyan); }

@media (max-width: 900px) {
  .smp-track { min-height: 0; }
  .smp-sticky {
    position: static;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: var(--s-12);
    padding-block: var(--section-y);
  }
  .smp-svg { width: min(440px, 84vw); }
  .smp-step { opacity: 1; }
  .smp-step.is-active { border-left-color: var(--smp-step-line); }}

@media (prefers-reduced-motion: reduce) {
  .smp-track { min-height: 0; }
  .smp-sticky { position: static; min-height: 0; padding-block: var(--section-y); }
  .smp-step { opacity: 1; }}

/* =============================== 3. DESIGN ============================= */

/* ==========================================================================
   DIRECTION B — "Dark Field"
   Cinematic. The page never leaves the dark; imagery bleeds to the edges and
   cyan behaves like emission rather than ink. Serif display carries the voice.
   Type: Newsreader / Archivo
   ========================================================================== */

:root {
  --font-display: "Newsreader", Georgia, serif;
  --font-body:    "Archivo", system-ui, sans-serif;
  --font-mono:    "Archivo", system-ui, sans-serif;
  --display-weight: 300;   /* serif is 300 everywhere (design-system Type) */
  --display-tracking: -0.012em;

  --pipe-line:  rgba(255,255,255,0.12);
  --pipe-ink:   var(--dark-ink);
  --pipe-muted: rgba(242,245,246,0.52);
  --pipe-track: rgba(255,255,255,0.08);
  --pipe-bar:   var(--cyan);
  --pipe-hover: rgba(100,216,234,0.05);
}

body { background: var(--dark); color: var(--dark-ink); }

.sec { padding-block: var(--section-y); }
.label { color: rgba(242,245,246,0.46); letter-spacing: 0.14em; }
.eyebrow .rule { background: var(--accent-on-dark); box-shadow: none; }

/* Links ---------------------------------------------------------------------
   One behaviour, everywhere a link appears: colour on hover, a quick press
   on click, then it goes where it says it goes. Nothing slides, nothing
   grows, no background appears. The arrow icon on .link-arrow is a static
   glyph, not an animated one — it does not move independently of the text
   beside it. Every per-ground override below only ever changes the hover
   COLOUR (light grounds can't use --cyan directly — 1.6:1 on white — so they
   step to --slate-2/--ink instead); none may reintroduce motion. */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 44px;
  font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 500;
  color: var(--dark-ink);
  transition: color 0.25s var(--ease);
}
.link-arrow i { width: 18px; height: 1px; background: currentColor; position: relative; }
.link-arrow i::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.link-arrow:hover { color: var(--cyan); }
.inline-link { color: var(--cyan); border-bottom: 1px solid rgba(100,216,234,0.4); }
.inline-link:hover { border-bottom-color: var(--cyan); }

/* The press. One rule covers every link and button on the site — the arrow
   links, the inline text links, the nav CTA, the subscribe button, the
   careers job rows. A brief scale-down that springs back is the actual click
   feedback; :active only holds for as long as the mouse/finger is down, so it
   reads as a press even though the page navigates a moment later. */
.link-arrow, .inline-link, .nav-cta, .btn-sub, .cr-job {
  transition: color 0.25s var(--ease), transform 0.15s var(--ease-out);
}
.link-arrow:active, .inline-link:active, .nav-cta:active, .btn-sub:active, .cr-job:active {
  transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .link-arrow:active, .inline-link:active, .nav-cta:active, .btn-sub:active, .cr-job:active { transform: none; }
}


/* Credential strip --------------------------------------------------------- */
.strip { border-block: 1px solid rgba(255,255,255,0.1); background: var(--black); }
.strip-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-8); padding-block: var(--s-12); }
.strip-list li { display: flex; flex-direction: column; gap: var(--s-2); position: relative; padding-left: var(--s-6); }
.strip-list li > i {
  position: absolute; left: 0; top: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px rgba(100,216,234,0.9);
}
.strip-list p { font-size: var(--fs-bl); line-height: var(--lh-bl); color: var(--dark-ink); }
@media (max-width: 860px) { .strip-list { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-8); }}
@media (max-width: 480px) { .strip-list { grid-template-columns: 1fr; }}

/* Intro -------------------------------------------------------------------- */
.intro .lede {
  font-size: var(--fs-dl); line-height: var(--lh-dl);
  max-width: 20ch; margin-bottom: var(--s-12);
}
.intro-body { color: var(--dark-ink-2); max-width: 62ch; margin-left: auto; }
@media (max-width: 1024px) { .intro-body { margin-left: 0; }}

/* Vision ------------------------------------------------------------------- */
.vision { background: var(--black); border-block: 1px solid rgba(255,255,255,0.08); }
.vision-copy { max-width: 26ch; }

/* Platform ----------------------------------------------------------------- */
.platform { padding-right: 0; overflow: hidden; }
.platform-grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: var(--s-24); align-items: center;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.platform-copy h2 { margin-block: 0 var(--heading-gap); }
.platform-copy p { color: var(--dark-ink-2); max-width: 46ch; margin-bottom: var(--s-8); }
.platform-fig { position: relative; }
.platform-fig img { width: 100%; }
/* Vignette so the illustration meets the dark instead of sitting on it */
.platform-fig::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(72% 72% at 50% 50%, transparent 42%, rgba(11,15,16,0.85) 88%);
}
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: 1fr; gap: var(--s-12); padding-inline: var(--gutter); }}

/* Products — full-bleed panels --------------------------------------------- */
.products { display: grid; }
.panel { position: relative; min-height: max(620px, 84svh); display: grid; align-items: center; isolation: isolate; }
.panel-fig { position: absolute; inset: 0; z-index: 0; }
.panel-fig img { width: 100%; height: 100%; object-fit: cover; }
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,9,10,0.96) 0%, rgba(6,9,10,0.86) 34%, rgba(6,9,10,0.35) 68%, rgba(6,9,10,0.55) 100%);
}
.panel-copy { position: relative; z-index: 2; width: 100%; padding-block: var(--s-24); }
.panel-copy .container { max-width: var(--container); }
.panel-copy .label { display: block; margin-bottom: var(--s-4); color: var(--cyan); }
.panel-copy h3 { font-size: var(--fs-dl); line-height: var(--lh-dl); margin-bottom: var(--s-6); }
.panel-copy p { color: rgba(255,255,255,0.78); max-width: 44ch; margin-bottom: var(--s-8); }
.panel-pull {
  font-size: var(--fs-h3) !important; line-height: var(--lh-h3);
  color: var(--cyan) !important;
  padding-left: var(--s-6); border-left: 1px solid rgba(100,216,234,0.5);
  margin-bottom: var(--s-6) !important;
}
@media (max-width: 900px) {
  .panel { min-height: 0; }
  .panel::after { background: linear-gradient(180deg, rgba(6,9,10,0.72) 0%, rgba(6,9,10,0.94) 46%, rgba(6,9,10,0.98) 100%); }
  .panel-copy { padding-block: 44svh var(--s-16); }
}

/* Proof --------------------------------------------------------------------- */
.quote { padding-block: var(--s-16); border-bottom: 1px solid rgba(255,255,255,0.1); }
.quote:first-of-type { border-top: 1px solid rgba(255,255,255,0.1); }
.quote blockquote { font-size: var(--fs-h2); line-height: var(--lh-h2); max-width: 34ch; margin-bottom: var(--s-8); }
.quote figcaption { display: flex; align-items: center; gap: var(--s-4); }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.quote figcaption span { display: flex; flex-direction: column; gap: 2px; }
.quote figcaption strong { font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: 600; }
.quote figcaption em { font-style: normal; font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--dark-ink-2); }

.investors { margin-top: var(--s-24); }
.investors .label { display: block; margin-bottom: var(--s-8); }
.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-12) var(--s-8); align-items: center; }
.logo-row li { display: grid; place-items: center; min-height: 88px; }
.logo-row img {
  max-height: 52px; width: auto; object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1); opacity: 0.45;
  transition: opacity 0.3s var(--ease);
}
.logo-row li:hover img { opacity: 0.9; }
@media (max-width: 780px) { .logo-row { grid-template-columns: repeat(2, 1fr); }}

/* News ---------------------------------------------------------------------- */
.news-list { border-top: 1px solid rgba(255,255,255,0.1); }
.news-row { border-bottom: 1px solid rgba(255,255,255,0.1); }
.news-row > a {
  display: grid; grid-template-columns: 200px 1fr 48px; gap: var(--s-8);
  align-items: center; padding-block: var(--s-8);
  transition: background-color 0.3s var(--ease), padding-inline 0.3s var(--ease);
}
.news-row > a:hover { background: rgba(255,255,255,0.03); }
.news-row figure { overflow: hidden; aspect-ratio: 16 / 10; }
.news-row figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6); transition: transform 1.1s var(--ease-out), filter 0.5s var(--ease); }
.news-row > a:hover figure img { transform: scale(1.05); filter: grayscale(0); }
.news-body h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); margin-bottom: var(--s-3); }
.news-body p { color: var(--dark-ink-2); font-size: var(--fs-b); line-height: var(--lh-b); max-width: 62ch; }
.news-go { justify-self: end; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; position: relative; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.news-go::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: translate(-60%,-50%) rotate(45deg); }
.news-row > a:hover .news-go { border-color: var(--cyan); background: rgba(100,216,234,0.12); }
@media (max-width: 780px) {
  .news-row > a { grid-template-columns: 1fr; }
  .news-go { display: none; }}

/* Team ----------------------------------------------------------------------- */
.team { background: var(--surface-dark); }
.team h2 { margin-bottom: var(--s-6); }
.team p { color: var(--dark-ink-2); max-width: 58ch; margin-bottom: var(--s-8); }

/* Footer --------------------------------------------------------------------- */
.foot { background: var(--dark-2); padding-block: var(--s-32) var(--s-16); border-top: 1px solid rgba(255,255,255,0.08); }

/* Three columns: brand+address / nav links / newsletter. */
.foot-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-16);
  padding-bottom: var(--s-24);
  border-bottom: 1px solid var(--dark-line);
}

.foot-brand { display: flex; flex-direction: column; }
.foot-logo { display: inline-block; margin-bottom: var(--s-8); }
.foot-logo img { height: 80px; }             /* 40 -> 50 (+25%) -> 100 (+100%) -> 80 (-20%) */
.foot-addr { display: flex; flex-direction: column; gap: var(--s-8); }
.foot-addr .label { display: block; margin-bottom: var(--s-2); }
.foot-addr p { color: var(--dark-ink-2); font-size: var(--fs-sm); line-height: var(--lh-sm); }

/* Nav links — now their own column, stacked rather than wrapped inline. */
.foot-nav { display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-3); justify-self: center; }
.foot-nav a { font-size: var(--fs-b); color: var(--dark-ink-2); min-height: 40px; display: inline-flex; align-items: center; }
.foot-nav a:hover { color: var(--cyan); }

/* Newsletter form — was cramped at 4px between fields; given real room. */
/* 380px wide where there's room, never wider than its column (phones). */
.foot-form { display: flex; flex-direction: column; gap: var(--s-8); width: 380px; max-width: 100%; }
.foot-form > .label { margin-bottom: 0; }

/* The two fields are wrapped in Mailchimp's own #mc_embed_signup_scroll div,
   which sits one level deeper than .foot-form's direct children — so the
   form's flex `gap` never reached them at all. That's what made the form
   read as cramped: zero space between Email and Full Name regardless of the
   gap set above them. Spacing here is now explicit and doesn't depend on
   which element happens to be a direct child of what. */
#mc_embed_signup_scroll { display: flex; flex-direction: column; gap: var(--s-6); }

.fld { display: flex; flex-direction: column; gap: var(--s-3); }
/* Fields on dark (design-system Focus and fields): Mist stands in for Dark
   and White 24% for Slate. Resting 1px White 24%, hover Mist, focus 2px Mist
   (border plus a 1px inner outline). Labels at Mist 66% (decision 8). */
.fld span { font-family: var(--font-mono); font-size: var(--fs-lb); line-height: var(--lh-lb); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist-66); }
.fld input { min-height: 48px; padding: 0 var(--s-4); background: rgba(255,255,255,0.05); color: var(--white); border: 1px solid var(--white-24); border-radius: var(--r-small); font: inherit; transition: border-color var(--t-quick) var(--ease-standard); }
.fld input:hover { border-color: var(--mist); }
.fld input:focus { border-color: var(--mist); outline: 1px solid var(--mist); outline-offset: -2px; }

/* Submit sits apart from the fields, not stacked flush with them. */
#mc_embed_signup_scroll > input[type="submit"] { margin-top: var(--s-2); }
/* Real markup here is <input type="submit">, not <button> — the global
   button reset (`button { ... }`) only targets the <button> tag, so an
   input needs its own appearance reset or Safari/Chrome draw native button
   chrome underneath the cyan fill. Submitting behavior is untouched either
   way; this is purely visual. */
/* Secondary, not the solid cyan fill it had — client instruction: the
   filled/primary treatment is reserved for ordering only (.nav-cta.is-
   primary) now, so every other button on the site, including this one,
   is the outlined "secondary" form instead. Same outline device
   .nav-cta's own base (non-.is-primary) state already uses on this same
   dark footer ground, reused here rather than inventing a second one.
   No align-self:flex-start any more — that was what kept it from matching
   the fields above; a flex column's items stretch to the container's width
   by default, so removing the override is the whole fix. */
.btn-sub {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  min-height: 46px; padding: 0 var(--s-8); margin-top: 0;
  background: transparent; color: var(--dark-ink); font-weight: 600; font-size: var(--fs-sm);
  font-family: inherit; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-sub:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(100, 216, 234, 0.08); }
.foot-note { color: var(--text-quiet-on-dark); margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   Mailchimp form — response text and per-field errors.
   IDs/classes below (#mce-error-response, #mce-success-response,
   .mce_inline_error) are Mailchimp's own — mc-validate.js targets them
   directly, so the selectors themselves cannot change, only the colours.
   -------------------------------------------------------------------------- */
/* #mce-responses is always in the DOM (Mailchimp requires it), even when
   empty — its two children stay display:none until there's something to say.
   No margin of its own: an empty block with margin still opens a gap, which
   would put a mystery space above the button on every load. The message
   itself carries the spacing, only when it's actually showing. */
#mce-responses { margin: 0; }
#mce-error-response,
#mce-success-response {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  max-width: 100%;              /* long messages wrap inside the 380px form, never overflow it */
}
#mce-error-response { color: var(--error-on-dark); }
#mce-success-response { color: var(--text-on-dark); }   /* also set inline by newsletter.js on actual success */
#mce-success-response .nl-ok { display: inline-flex; align-items: center; gap: var(--space-8); }

/* Per-field errors: reflow the form, they don't overlay or break it. Same
   rule as above — spacing comes from the message being present, not from a
   permanent gap that's there whether or not it's needed. */
.fld .mce_inline_error {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--fs-lb);
  line-height: var(--lh-lb);
  color: var(--error-on-dark);
  max-width: 100%;
}
.fld input.mce_inline_error { border-color: var(--error-on-dark); outline: 1px solid var(--error-on-dark); outline-offset: -2px; }

/* Copyright now sits directly under the divider — nav moved up into foot-top. */
.foot-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-16);
  padding-top: var(--s-12);
}
.foot-bottom p { color: var(--text-quiet-on-dark); margin-bottom: 0; }
.foot-bottom > .inline-link { display: inline-block; flex: none; white-space: nowrap; font-size: var(--fs-b); line-height: var(--lh-b); }
/* "Site by Thynkmedia": on its own row under the copyright, away from LinkedIn.
   Plain small text, 44px tall tap target, underline on hover and focus. */
.foot-credit-row { padding-top: var(--s-4); }
.foot-credit { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text-quiet-on-dark); white-space: nowrap; }
.foot-credit:hover, .foot-credit:focus-visible { color: var(--text-on-dark, #fff); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: var(--s-4); }}

@media (max-width: 900px) {
  /* minmax(0, …): a plain 1fr column would grow to fit the form's 380px. */
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: var(--s-16); }
  .foot-nav { flex-direction: row; flex-wrap: wrap; gap: var(--s-6); padding-top: 0; }}

/* --------------------------------------------------------------------------
   SMP mechanism palette (dark)
   -------------------------------------------------------------------------- */
:root {
  --smp-fiber:     rgba(100, 216, 234, 0.55);
  --smp-unit:      rgba(226, 240, 244, 0.92);
  --smp-node:      var(--cyan);
  --smp-halo:      radial-gradient(circle at 50% 50%, rgba(100,216,234,0.14) 0%, rgba(100,216,234,0.04) 46%, transparent 70%);
  --smp-step-line: rgba(255,255,255,0.16);
  --smp-body:      var(--dark-ink-2);
  --smp-idx:       rgba(242,245,246,0.42);
}
.smp { background: var(--black); border-block: 1px solid rgba(255,255,255,0.08); }
.smp-grid { display: contents; }
.smp-sticky > .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-24); align-items: center; width: 100%; }
.smp-step h3 { font-family: var(--font-display); font-weight: 200; color: var(--dark-ink); }
@media (max-width: 900px) { .smp-sticky > .container { grid-template-columns: 1fr; gap: var(--s-12); }}

/* --------------------------------------------------------------------------
   Products — G4Derm Plus leads at full bleed; Suprello sits in a contained
   two-column block so the hierarchy between them is unmistakable.
   -------------------------------------------------------------------------- */
.prod-minor { padding-block: var(--s-16); border-top: 1px solid rgba(255,255,255,0.1); background: var(--dark); }
.prod-minor-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s-16); align-items: center; }
.prod-minor-copy .label { display: block; margin-bottom: var(--s-4); color: var(--cyan); }
.prod-minor-copy h3 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-bottom: var(--s-4); }
.prod-minor-copy p { color: var(--dark-ink-2); max-width: 44ch; margin-bottom: var(--s-8); }
.prod-minor-copy .panel-pull { font-size: var(--fs-h4) !important; line-height: var(--lh-h4); margin-bottom: var(--s-4) !important; }
.prod-minor-fig { overflow: hidden; max-width: 400px; margin-left: auto; }
.prod-minor-fig img { width: 100%; }
@media (max-width: 900px) { .prod-minor-grid { grid-template-columns: 1fr; gap: var(--s-8); }}


/* --------------------------------------------------------------------------
   Hero headline leading — +8px at every step. The 4px line-height rule still
   holds: 80->88, 60->68, 44->52.
   -------------------------------------------------------------------------- */
/* line-height now lives on .hero-title below, alongside font-size */

/* --------------------------------------------------------------------------
   INVESTORS — light band with a continuous logo ticker.
   First light section in this variant. The ground is drawn from the brand's
   own pale ice (#d7faff / #c1eff7 family) rather than flat grey, so the break
   from the dark reads as Gel4Med rather than as a default white page.
   -------------------------------------------------------------------------- */
.investors-strip {
  /* Exact ground from the live site's investors section (.section-home-5). */
  background: #ffffff;
  border-block: 1px solid var(--line);
  padding-block: var(--s-16);
  overflow: hidden;
}
.investors-strip .label { color: var(--slate); }
.investors-strip .eyebrow { margin-bottom: var(--s-12); }
.investors-strip .eyebrow .rule { box-shadow: none; }

.ticker {
  position: relative;
  /* Logos dissolve at the edges instead of hard-cutting. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerRun 46s linear infinite;
}
/* Two identical sets sit end to end; travelling exactly one set width and
   looping makes the seam invisible. */
@keyframes tickerRun {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

.ticker-set {
  display: flex;
  align-items: center;
  flex: none;
}
.ticker-set li {
  flex: none;
  display: grid;
  place-items: center;
  padding-inline: var(--s-16);
  min-height: 132px;
}
.ticker-set img {
  height: auto;
  max-height: 92px;
  max-width: 380px;
  width: auto;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity 0.3s var(--ease);
}
.ticker-set li:hover img { opacity: 1; }

@media (max-width: 640px) {
  .ticker-set li { padding-inline: var(--s-8); min-height: 96px; }
  .ticker-set img { max-height: 68px; max-width: 280px; }}

/* No motion: let the row simply scroll by hand. */
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; transform: none; }
  .ticker-set[aria-hidden="true"] { display: none; }
}

/* Section eyebrow labels (the ones sitting above the cyan rule) +50%:
   12/16 -> 18/24. Line-height stays on the 4px grid. */
.eyebrow .label { font-size: var(--h6-size); line-height: var(--h6-line); letter-spacing: 0.1em; font-weight: 400; }

/* ==========================================================================
   HEADING LADDER — six levels, six jobs.
   Sizes are bound to the tag, not to per-section utility classes, so the
   document outline and the visual hierarchy say the same thing.
   Every line-height divisible by 4.
   ========================================================================== */
/* Sizes come from tokens.css, which steps them down for tablet and phone. */
h2              { font-size: var(--h2-size); line-height: var(--h2-line); }
h3              { font-size: var(--h3-size); line-height: var(--h3-line); }
h4              { font-size: var(--h4-size); line-height: var(--h4-line); }
h5              { font-size: var(--h5-size); line-height: var(--h5-line); }
h6              { font-size: var(--h6-size); line-height: var(--h6-line); }

/* No widows in any headline: lines are evened out so the last line never
   holds a single word. Inherited into the split hero headline's spans. */
h1, h2, h3, h4, h5 { text-wrap: balance; }

h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.012em;
  color: var(--dark-ink);
}
/* No ligatures anywhere the title face (Newsreader) is set. One shared list —
   add any new element that takes var(--font-display) here too. */
h1, h2, h3, h4, h5, h6, .hero-title, .ph-title, .ph-statement, .ph-quote-fig blockquote,
.vision-copy, .lede, .quote blockquote, .panel-pull, .cr-perks-lead, .sp-stat dt {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
}
h6 {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* SMP step titles carry H5 now; drop the old local override. */

/* ==========================================================================
   HEADING SYSTEM — corrected.
   The hero is NOT part of the content ladder. It carries its own exclusive
   class and stays an <h1> purely for semantics. H1–H6 are the content scale,
   so a content H1 tier exists for the largest in-page statement.
   ========================================================================== */
.hero-title {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  font-weight: 300;
  letter-spacing: var(--display-tracking, -0.02em);
  color: var(--white);
  max-width: 15ch;
}

h1 { font-size: var(--display-size); line-height: var(--display-line); }   /* content H1 is Display */

/* The opening statement sits at content-H1 size. */
/* 23ch, not 20 — the first line "Gel4Med is a commercial-stage" measures
   22.4ch, so at 20ch "commercial-stage" dropped to line 2 and left a gap. */
.intro .lede { font-size: var(--display-size); line-height: var(--display-line); max-width: 23ch; }


/* --------------------------------------------------------------------------
   INTRO — first light content band.
   -------------------------------------------------------------------------- */
.intro {
  background: var(--surface-light);
  color: var(--text-on-light);
  border-bottom: 1px solid var(--line);
}
.intro .lede { color: var(--text-on-light); }
.intro .intro-body { color: var(--ink-2); }
.intro .label { color: var(--slate); }
.intro .link-arrow { color: var(--ink); }
.intro .link-arrow:hover { color: var(--slate-2); }

/* --------------------------------------------------------------------------
   PLATFORM — the SMP™ diagram now occupies the right column and assembles
   once, when it scrolls into view. Replaces the static illustration.
   -------------------------------------------------------------------------- */
.platform-fig { position: relative; display: grid; place-items: center; }
.platform-fig .smp-svg {
  width: min(560px, 44vw);
  height: auto;
  overflow: visible;
}
/* Faint volume behind the assembly, so it reads as happening inside something. */
.platform-fig::before {
  content: "";
  position: absolute;
  width: min(600px, 48vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(100,216,234,0.13) 0%, rgba(100,216,234,0.04) 46%, transparent 72%);
  pointer-events: none;
}
/* The old illustration vignette no longer applies. */
.platform-fig::after { content: none; }

.platform .smp-fibers line { stroke: rgba(100, 216, 234, 0.62); stroke-width: 2.4; }
.platform .smp-units rect  { fill: rgba(230, 243, 247, 0.94); }
.platform .smp-nodes circle{ fill: var(--cyan); }

@media (max-width: 1024px) {
  .platform-fig .smp-svg { width: min(440px, 82vw); }
  .platform-fig::before  { width: min(470px, 88vw); }}

/* --------------------------------------------------------------------------
   LABEL LEGIBILITY
   Micro-labels were sitting at 46% white on black — around 4.7:1, which is
   marginal at 12px. Lifted well past AAA and given a little more size.
   -------------------------------------------------------------------------- */
.label { color: rgba(242, 245, 246, 0.80); }

/* Credential strip: these are scannable facts, not decoration. */
.strip-list .label {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.11em;
  color: rgba(242, 245, 246, 0.86);
}
.strip-list li > i { width: 7px; height: 7px; }

/* On the light bands, labels take ink rather than mid-slate. */
.intro .label,
.investors-strip .label { color: var(--ink-2); }

/* Bullet dots removed from the credential strip — the label already names the
   item, so the dot was saying the same thing twice. */
.strip-list li { padding-left: 0; }
.strip-list li > i { display: none; }

/* --------------------------------------------------------------------------
   VISION — now sits between the two products, as a full-bleed pause.
   Coming straight off the G4Derm panel it needs its own ground, otherwise it
   reads as part of the product block rather than a statement of intent.
   -------------------------------------------------------------------------- */
.products .vision {
  background: var(--black);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--s-32);
}
.products .vision .vision-copy { max-width: 22ch; }
@media (max-width: 900px) {
  .products .vision { padding-block: var(--s-24); }
  .products .vision .vision-copy { max-width: 100%; }}

/* ==========================================================================
   SUPRELLO — light band, brand pastels.
   G4Derm keeps the dark full-bleed panel; Suprello gets a different KIND of
   section rather than a shrunken copy of it. The gradient is lifted straight
   from the live site (linear-gradient(115.96deg, #ffc0c0, #d7faff)), so the
   colour is theirs, not invented. Blush → ice also suits the surgical product.
   ========================================================================== */
.prod-minor {
  background: linear-gradient(115.96deg, #ffc0c0 6%, #ffdede 34%, #eaf6fb 68%, #d7faff 100%);
  border-top: 0;
  color: var(--ink);
  padding-block: var(--s-24);
}
.prod-minor-grid { grid-template-columns: 1fr 1.05fr; gap: var(--s-16); align-items: center; }

.prod-minor-copy .label { color: var(--ink-2); }
.prod-minor-copy h3     { color: var(--ink); }
.prod-minor-copy p      { color: var(--ink-2); }

/* Cyan is unreadable on this ground — the pull takes ink with a solid rule. */
.prod-minor-copy .panel-pull {
  color: var(--ink) !important;
  border-left: 3px solid rgba(17, 20, 23, 0.55);
  padding-left: var(--s-6);
}
.prod-minor .link-arrow { color: var(--ink); }
.prod-minor .link-arrow i,
.prod-minor .link-arrow i::after { background-color: var(--ink); border-color: var(--ink); }
.prod-minor .link-arrow:hover { color: var(--slate-2); }

/* The product shot sits on the pastel rather than in a box. */
.prod-minor-fig {
  max-width: none;
  margin-left: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 20, 23, 0.16);
}
.prod-minor-fig img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

@media (max-width: 900px) {
  .prod-minor { padding-block: var(--s-16); }
  .prod-minor-grid { grid-template-columns: 1fr; gap: var(--s-8); }}

/* ==========================================================================
   THE PRODUCTS PASSAGE — G4Derm → Vision → Suprello as one continuous flow.
   No hairlines, no gaps: the grounds butt straight into each other so the
   three read as a single movement rather than three stacked bands.
   ========================================================================== */
.products { display: block; }
.products .panel { border: 0; }

/* --- Vision: the mission beat, in colour ---------------------------------
   Their own brand gradient (#64d8ea → #7fded0, live on the current site).
   Dark type on a bright ground — the page needed a lift here, and this is
   the one moment on the homepage that is pure statement. */
.products .vision {
  background: linear-gradient(115.96deg, #64d8ea 0%, #6fdbe0 42%, #7fded0 100%);
  border: 0;
  padding-block: var(--s-32);
  color: var(--ink);
}
.products .vision .vision-copy { color: var(--ink); max-width: 24ch; }
.products .vision .label { color: rgba(17, 20, 23, 0.72); }
.products .vision .eyebrow .rule { background: rgba(17, 20, 23, 0.8); box-shadow: none; }

/* --- Suprello: photograph bleeds to the edge, copy on the pastel ---------
   The previous studio shot carried its own grey backdrop, which read as a box
   sitting on the gradient. This one fills its column completely and runs off
   the side of the page, so there is no second background to fight. */
.prod-minor {
  background: linear-gradient(115.96deg, #ffc0c0 0%, #ffdede 38%, #eaf6fb 74%, #d7faff 100%);
  border: 0;
  padding-block: 0;
  overflow: hidden;
}
.prod-minor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 620px;
}
.prod-minor-copy {
  align-self: center;
  padding: var(--s-24) var(--s-16) var(--s-24)
           max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.prod-minor-fig {
  max-width: none; margin: 0;
  border-radius: 0; box-shadow: none;
  height: 100%;
}
.prod-minor-fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  display: block;
}

@media (max-width: 900px) {
  .prod-minor-grid { grid-template-columns: 1fr; min-height: 0; }
  .prod-minor-fig { height: 56vw; max-height: 420px; }
  .prod-minor-copy { padding: var(--s-16) var(--gutter); }
  .products .vision { padding-block: var(--s-24); }}

/* Intro — the first real section. Opened right up so the opening statement
   has room to land instead of being pressed between two neighbours. */
.intro { padding-block: var(--section-pad); }

/* --------------------------------------------------------------------------
   SECTION HEADING REVEAL — the hero's ripple, without the tearing.
   -------------------------------------------------------------------------- */
h2[data-hreveal], h3[data-hreveal] { }
.hln { display: block; overflow: hidden; }
.hln-in { display: block; white-space: pre-wrap; }
.hch {
  display: inline-block;
  transform: translateY(104%);
  opacity: 0;
  transition: transform 0.86s var(--ease-out), opacity 0.5s ease-out;
  transition-delay: var(--hd, 0ms);
  will-change: transform, opacity;
}
[data-hreveal].is-lit .hch { transform: translateY(0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hch { transform: none; opacity: 1; }}

/* ==========================================================================
   PLATFORM + PRODUCTS on white.
   Black is now reserved for the hero. The live site runs the platform
   illustration and both products inside one white section (.section-home-3)
   with 240px between them — the product photography was shot to blend with
   that white, so it is the correct ground.
   ========================================================================== */
.platform {
  background: #ffffff;
  color: var(--ink);
  padding-block: var(--section-pad);
}
.platform .label,
.platform h2 { color: var(--ink); }
.platform .platform-copy p { color: var(--ink-2); }
.platform .link-arrow { color: var(--ink); }
.platform .link-arrow i,
.platform .link-arrow i::after { background-color: var(--ink); border-color: var(--ink); }
.platform .link-arrow:hover { color: var(--slate-2); }
/* Diagram re-keyed for a light ground. */
.platform .smp-fibers line { stroke: rgba(29, 118, 136, 0.75); }
.platform .smp-units rect  { fill: rgba(17, 20, 23, 0.82); }
.platform .smp-nodes circle{ fill: #1d8ba1; }
.platform-fig::before {
  background: radial-gradient(circle at 50% 50%,
    rgba(100, 216, 234, 0.20) 0%, rgba(100, 216, 234, 0.06) 46%, transparent 74%);
}

/* --- Products: one section, alternating, generously spaced --------------- */
.products {
  background: var(--surface-light);
  color: var(--text-on-light);
  padding-block: 0 200px;
  overflow: hidden;
}
.products > .container .eyebrow { margin-bottom: 0; }
.products .label { color: var(--ink-2); }

.prod { padding-top: 240px; }
.prod-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: var(--s-24);
  align-items: center;
}
.prod-grid--mirror { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }

/* Reading measure lives on the paragraph, not the whole column, so the
   H2 above it can use the full grid track width instead of being capped
   to 46 characters regardless of how much room the grid actually gives it. */
.prod-copy h2, .prod-copy h3 { color: var(--text-on-light); margin-bottom: var(--heading-gap); }
.prod-copy p { color: var(--ink-2); margin-bottom: var(--s-8); max-width: 46ch; }
.prod-copy .link-arrow { color: var(--text-on-light); font-size: var(--body-size); line-height: var(--body-line); }
.prod-copy .link-arrow i,
.prod-copy .link-arrow i::after { background-color: currentColor; border-color: currentColor; }
.prod-copy .link-arrow:hover { color: var(--accent-on-light); }
.prod-pull {
  font-size: 22px; line-height: 32px;
  color: var(--ink) !important;
  padding-left: var(--s-6);
  border-left: 3px solid rgba(17, 20, 23, 0.45);
}
.prod-fig img { width: 100%; height: auto; display: block; }

/* Brand-mark badge on the product photo — corner-placed, not centred, since
   both syringes sit on a diagonal: G4Derm's own photo runs up-and-right, so
   its empty corner is upper-left (~10 o'clock); Suprello's is CSS-tilted
   the mirror way (up-and-left, see .prod-fig--tilt img's rotate), so its
   empty corner is upper-right (~2 o'clock). Selector specificity is
   deliberate: ".prod-fig .prod-fig-logo" (two classes) has to outrank the
   plain ".prod-fig img" width:100% rule above it, and
   ".prod-fig--tilt .prod-fig-logo" has to outrank ".prod-fig--tilt img"
   for the same reason — a bare ".prod-fig-logo" alone would lose both. */
.prod-fig { position: relative; }
/* Sized by HEIGHT, not width — the two logos have very different aspect
   ratios (G4Derm 619x180, ~3.44:1; Suprello 203x97, ~2.09:1), so matching
   width alone left Suprello's badge ~65% taller than G4Derm's despite
   "the same size." height:72px + width:auto makes each logo's own aspect
   ratio produce a visually equal footprint instead. */
.prod-fig .prod-fig-logo {
  position: absolute;
  top: 6%;
  left: 4%;
  height: 72px;
  width: auto;
  max-width: none;
  z-index: 2;
}
/* Mirrored to the top-right for Suprello's tilt. */
.prod-fig--tilt .prod-fig-logo {
  left: auto;
  right: 4%;
}
/* G4Derm's logo is much wider than Suprello's, so at the same height it read
   bigger. 56px gives both logos about the same area (G4Derm ~189 x 56,
   Suprello ~151 x 72), so they read as a matched pair. */
.prod-fig--cutout .prod-fig-logo { height: 56px; }
@media (max-width: 640px) {
  .prod-fig .prod-fig-logo { height: 52px; }
  .prod-fig--cutout .prod-fig-logo { height: 40px; }
}
/* G4Derm's syringe is a transparent cutout that already runs up-and-right.
   It fills its own frame edge to edge, while Suprello's syringe fills only
   part of its photo, so it's capped by the size of the SYRINGE it has to
   match (~360px tall on desktop), not by Suprello's image box. */
.prod-fig--cutout { display: grid; place-items: center; }
.prod-fig--cutout img:not(.prod-fig-logo) { width: auto; max-width: 100%; max-height: 360px; }
@media (max-width: 1024px) {
  .prod-fig--cutout img:not(.prod-fig-logo) { max-height: 260px; }}

/* --- Vision back on its own dark-free ground ---------------------------- */
.vision {
  background: linear-gradient(115.96deg, #64d8ea 0%, #6fdbe0 42%, #7fded0 100%);
  color: var(--text-on-light);
  padding-block: var(--section-pad);
  border: 0;
}
.vision .vision-copy {
  font-size: var(--h2-size); line-height: var(--h2-line);
  font-family: var(--font-display);
  letter-spacing: -0.012em;
  color: var(--text-on-light); max-width: 24ch;
}
.vision .label { color: var(--text-second-on-light); }
.vision .eyebrow .rule { background: var(--dark-80); box-shadow: none; }

@media (max-width: 1024px) {
  .prod-grid, .prod-grid--mirror { grid-template-columns: 1fr; gap: var(--s-8); }
  .prod-grid--mirror .prod-fig { order: -1; }
  .prod-copy { max-width: 100%; }}
@media (max-width: 640px) {
  .vision .vision-copy { max-width: 100%; }}

/* ==========================================================================
   PLATFORM — deep petrol, not black.
   Built from the darker end of their own palette (#004080 navy, #00b8d5
   cyan). Distinct ground from the white products block that follows, so the
   two no longer read as one continuous slab.
   ========================================================================== */
.platform {
  background:
    radial-gradient(120% 90% at 78% 40%, rgba(0, 184, 213, 0.18) 0%, transparent 62%),
    linear-gradient(152deg, #052a37 0%, #06364f 52%, #053062 100%);
  color: var(--dark-ink);
}
.platform .label { color: var(--mist-80); }
.platform h2 { color: var(--text-on-dark); }
.platform .platform-copy p { color: var(--text-quiet-on-dark); }
.platform .link-arrow { color: var(--dark-ink); }
.platform .link-arrow i,
.platform .link-arrow i::after { background-color: var(--dark-ink); border-color: var(--dark-ink); }
.platform .link-arrow:hover { color: var(--cyan); }
.platform .eyebrow .rule { background: var(--accent-on-dark); box-shadow: none; }

/* Diagram back to cyan — it belongs on this ground. */
.platform .smp-fibers line { stroke: rgba(100, 216, 234, 0.68); }
.platform .smp-units rect  { fill: rgba(234, 246, 250, 0.95); }
.platform .smp-nodes circle{ fill: var(--cyan); }
.platform-fig::before {
  background: radial-gradient(circle at 50% 50%,
    rgba(100, 216, 234, 0.16) 0%, rgba(100, 216, 234, 0.05) 48%, transparent 74%);
}

/* --------------------------------------------------------------------------
   PRODUCTS — spacing.
   The "Products" label was sitting flush against the platform section with
   nothing above it, then a 240px void before the first product. Space moved
   to where it belongs: air above the label, the first product tucked under it,
   240px kept between the two products.
   -------------------------------------------------------------------------- */
.products { padding-block: var(--section-pad); }
.prod { padding-top: 0; }
.prod + .prod { padding-top: var(--space-160); }
.products > .container .eyebrow { margin-bottom: var(--s-16); }

@media (max-width: 1024px) {
  .prod + .prod { padding-top: var(--space-144); }}
@media (max-width: 640px) {
  .prod + .prod { padding-top: var(--space-96); }}

/* --------------------------------------------------------------------------
   Suprello syringe — the source shot is dead vertical, G4Derm's runs
   up-and-right. Tilting this one up-and-left makes them read as a matched
   pair, purple against green, mirrored.
   -------------------------------------------------------------------------- */
.prod-fig--tilt { display: grid; place-items: center; }
/* `rotate`, the standalone property, so the tilt survives the entrance's own
   transform/scale untouched. The logo badge is excluded — it stays upright. */
.prod-fig--tilt img:not(.prod-fig-logo) {
  rotate: -38deg;
  width: auto;
  max-height: 520px;
  max-width: 100%;
}
/* Same selector as above (with :not) so this actually wins: the bare
   ".prod-fig--tilt img" lost on specificity, leaving Suprello at its
   desktop 520px on phones, far bigger than G4Derm's 260px. */
@media (max-width: 1024px) {
  .prod-fig--tilt img:not(.prod-fig-logo) { max-height: 380px; }}

.pl { border-top: 1px solid #cfdfe5; }

/* ==========================================================================
   PIPELINE v2 — after Cambrian Bio.
   The stage labels were wrapping because they were uppercase with 0.08em
   tracking: same words, ~40% wider. Cambrian sets theirs sentence-case with
   white-space:pre and they fit on one line. Same here.
   Rows are tinted cards with a real hover, not hairlines on a pale ground.
   ========================================================================== */
.pl { border-top: 0; }

/* The heading splitter rebuilds headings from textContent, so any <br> inside
   one is stripped. Break this statement with measure instead of markup. */
/* max-width for .pipe-statement is set once, below. */

/* Words stay atomic so headings never break mid-word. */
.hword { display: inline-block; white-space: nowrap; }
.hln-in { white-space: normal; }


/* ==========================================================================
   HEADING WEIGHT — Newsreader at 200 was reading as hairline, especially on
   the product headings. Stepped up across the board; the two product names
   go one further since they carry the most weight on the page.
   ========================================================================== */
.vision-copy, .intro .lede { font-weight: 300; }
/* G4Derm/Suprello (.prod-copy h2/h3) and the pipeline statement (.pipe-statement,
   an <h2>) both inherit weight 300 from the base ladder above — no override
   needed, and a duplicate here would only risk fighting it again later. */

/* ==========================================================================
   INNOVATION SPOTLIGHT — dark cards, drifting gradient ground.
   Consolidated from six stacked design iterations that had accumulated in
   this file (offset landscape cards -> smaller portrait cards -> drifting
   gradient background -> wider cards -> dark cards -> two-layer "wandering"
   gradient), each one only patching a few properties on top of the last
   rather than replacing it. That made the actual rendered result impossible
   to read from the source — this is the resolved, final state, with the
   properties each iteration left dead along the way removed:
     - .spot-card--drop's vertical offset (a later !important set every
       card's margin-top to 0 permanently, cancelling the whole idea)
     - .spot-body p — the card copy was a <p> and became a real <h4
       class="spot-title"> (inheriting the H4 ladder, 25/32) at some point;
       the <p> rules were never deleted despite matching nothing
     - .spot-go i / i::after — an arrow drawn with a line + chevron child
       element; the current markup's .spot-go is an empty <span>, and the
       arrow is drawn by .spot-go::after alone
     - @keyframes spotDrift — superseded by spotWander/spotWander2 below,
       never removed
   Ground is a flat sage-mint (#dfeeec) under two independently "wandering"
   blurred gradient layers (not a single rotation, which read as mechanical
   — see the keyframes). Cards are dark so the NIH photo (shot on white)
   doesn't dissolve into a white card.
   ========================================================================== */
.news {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  color: var(--text-on-light);
  border-block: 1px solid var(--line-on-light);
  padding-block: 160px; /* -20% on request, from 200px */
}
.news .label { color: var(--ink-2); }
.news .eyebrow { margin-bottom: var(--s-16); }
.news > .container { position: relative; z-index: 1; }

.news::before,
.news::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 150vmax; height: 150vmax;
  margin: -75vmax 0 0 -75vmax;
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}
.news::before {
  background:
    radial-gradient(closest-side at 30% 30%, rgba(100, 216, 234, 0.95), transparent 68%),
    radial-gradient(closest-side at 74% 26%, rgba(255, 176, 176, 0.85), transparent 68%);
  animation: spotWander 29s ease-in-out infinite;
}
.news::after {
  background:
    radial-gradient(closest-side at 62% 74%, rgba(111, 219, 208, 0.95), transparent 68%),
    radial-gradient(closest-side at 22% 72%, rgba(160, 226, 245, 0.92), transparent 68%);
  animation: spotWander2 18s ease-in-out infinite;
}
/* Two layers on different periods (29s / 18s) with rotation, drift and scale
   never realign, so the motion never repeats the same way twice — reads as
   wandering rather than a single mechanical rotation. */
@keyframes spotWander {
  0%   { transform: rotate(0deg)   translate(0, 0)          scale(1); }
  27%  { transform: rotate(96deg)  translate(6%, -4%)       scale(1.12); }
  53%  { transform: rotate(183deg) translate(-5%, 5%)       scale(0.94); }
  78%  { transform: rotate(272deg) translate(3%, 6%)        scale(1.08); }
  100% { transform: rotate(360deg) translate(0, 0)          scale(1); }
}
@keyframes spotWander2 {
  0%   { transform: rotate(0deg)    translate(0, 0)     scale(1.05); }
  34%  { transform: rotate(-118deg) translate(-7%, 4%)  scale(0.92); }
  61%  { transform: rotate(-205deg) translate(5%, -6%)  scale(1.14); }
  100% { transform: rotate(-360deg) translate(0, 0)     scale(1.05); }
}

.spot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-24);
  align-items: stretch;
}
/* Each card sits at 72% of its column rather than filling it — see the
   history of this exact value in the comment below. */
.spot-card {
  width: 72%;
  display: flex;
  flex-direction: column;
  background: var(--surface-raised-dark);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(8, 24, 30, 0.16);
}
.spot-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(8, 24, 30, 0.30); }
/* Entrance: the shared "frame opens" (.fx-frame, below). */

.spot-fig { overflow: hidden; aspect-ratio: 5 / 4; }
.spot-fig img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.01);
  filter: grayscale(0.55);
  transition: transform 1.6s var(--ease-out), filter 0.6s var(--ease);
}
.spot-card:hover .spot-fig img { transform: scale(1.06); filter: grayscale(0); }

/* flex:1 — this is what absorbs the height difference between the two
   cards' headline lengths, so both cards end flush even though their
   text runs different lengths. .spot-title itself is a real <h4> with no
   rule of its own: it inherits the H4 ladder (25/32, weight 300,
   --dark-ink) exactly as intended. */
.spot-body {
  padding: var(--s-8);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-8);
}

.spot-go {
  display: inline-flex; align-items: center; gap: var(--s-3);
  width: 44px; height: 44px; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.spot-go::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid #fff; border-right: 1px solid #fff;
  transform: translate(-60%, -50%) rotate(45deg);
  transition: border-color 0.3s var(--ease);
}
.spot-card:hover .spot-go { border-color: var(--cyan); background: rgba(100, 216, 234, 0.16); }

@media (max-width: 1024px) {
  .news { padding-block: var(--space-96); } /* -20% on request, from 128px; snapped to the grid */
  .spot { gap: var(--s-8); }
}
/* Stacked (tablet and phone): cards capped at 440px and 64px apart, on
   request ("giant", "so close"); was full width / 72% and 32px apart. */
@media (max-width: 1024px) {
  .spot { grid-template-columns: 1fr; gap: var(--s-16); }
  .spot-card { width: 100%; max-width: 440px; }
  .spot-title { font-size: var(--h5-size); line-height: var(--h5-line); }
}
@media (max-width: 640px) {
  .news { padding-block: 64px; } /* -20% on request, from 80px */
  .spot-fig { aspect-ratio: 2 / 1; }
  .spot-body { padding: var(--s-6); gap: var(--s-6); }
}
@media (prefers-reduced-motion: reduce) {
  .news::before, .news::after { animation: none; }
  .spot-card:hover { transform: none; }
  .spot-card:hover .spot-fig img { transform: scale(1.01); }
}

/* --------------------------------------------------------------------------
   PHOTO ENTRANCE — a soft fade, the one entrance for every image in the
   content. Opt in with class="fx-frame" + data-reveal on the frame; the
   shared reveal observer in js/site.js supplies .is-in as soon as the
   image's top edge enters the screen, so it is fully in view while the
   text beside it is read. Round 1 feedback (Oct 2026) replaced the old
   "frame opens from a line" wipe, which read as abrupt. Keyframe animation,
   not a transition, so it never fights a card's own hover lift. On the
   tilted Suprello syringe the <img> itself is the frame.
   -------------------------------------------------------------------------- */
:root {
  --fx-open: fx-frame-open var(--t-long) var(--ease-standard) backwards;
}
/* Delay set per rule, not inside the token above: a var() inside a :root
   token resolves at :root, which would lose each element's own stagger. */
/* Photos take the same fade-and-rise as their text ([data-reveal] above), with
   no delay of their own, so a photo and its copy arrive together. */
.fx-frame[data-reveal] { transition-delay: 0ms; }
@keyframes fx-frame-open {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-frame[data-reveal].is-in { animation: none; }
}