/* ─────────────────────────────────────────────
   TOKENS
   ───────────────────────────────────────────── */
:root{
  --canvas:#FFFFFF;       /* white */
  --surface:#F7F5F0;      /* paper */
  --surface-2:#EFECE4;

  --ink:#191813;          /* ink */
  --ink-2:#6B6A61;
  --ink-3:#A3A197;
  --line:rgba(25,24,19,.09);

  /* single accent hue — every gradient derives from it */
  --hue:167;              /* viridian's hue — every gradient derives from it */
  --accent:#0E5646;       /* viridian */
  --accent-2:#5E9C84;     /* sage */
  --accent-soft:hsl(var(--hue) 34% 93%);
  --spark:#5E9C84;        /* sage */
  --on-accent:#F4F1E8;    /* cream */
  --cast:rgba(25,24,19,.32);

  --font-serif:"Instrument Serif",Iowan Old Style,Georgia,serif;
  --font-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --font-sans:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,Helvetica Neue,system-ui,sans-serif;

  --gap:12px;
  --r-xl:34px;
  --r-lg:26px;
  --r-md:18px;
  --pad:36px;
  --shell:1240px;
}
/* Light by default, always — dark is opt-in only, via data-theme="dark"
   on <html>. No prefers-color-scheme override: the page stays white
   regardless of the viewer's system appearance. */
:root[data-theme="dark"]{
  --canvas:#12201B; --surface:#182B24; --surface-2:#1F3830;   /* pine-black */
  --ink:#EDE9DD; --ink-2:#9BAAA2; --ink-3:#6C7D75;
  --line:rgba(244,241,232,.12);
  --accent:#5E9C84; --accent-2:#0E5646;
  --accent-soft:#1B3129; --on-accent:#12201B;
  --cast:rgba(0,0,0,.6);
}

@font-face{font-family:"Redaction";src:url("brand/fonts/Redaction-Regular.otf") format("opentype");
  font-weight:400;font-style:normal;font-display:swap}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased}
body{
  background:var(--canvas);color:var(--ink);
  font-family:var(--font-sans);
  font-size:16px;line-height:1.5;letter-spacing:-.002em;padding:var(--gap);
}

/* ─────────────────────────────────────────────
   THE MODULE
   ───────────────────────────────────────────── */
.mod{
  --mod-bg:var(--surface);
  position:relative;overflow:hidden;
  border-radius:var(--r-xl);background:transparent;
  padding:var(--pad);display:flex;flex-direction:column;isolation:isolate;
}
/* the fill is an inner layer, not the element background — a blended
   child needs a backdrop *inside* the isolated group to multiply against */
.mod::before{content:"";position:absolute;inset:0;z-index:-3;
  background:var(--mod-bg);border-radius:inherit}
.mod--quiet{--mod-bg:var(--surface-2)}
.mod--tint{--mod-bg:var(--accent-soft)}
.mod--deep{--mod-bg:var(--accent);color:var(--on-accent)}
.mod--deep .lab,.mod--deep .sub,.mod--deep .fine{color:color-mix(in srgb,currentColor 62%,transparent)}

/* monotonal gradient wash + blur */
.wash{position:absolute;inset:-30%;z-index:-2;filter:blur(70px);opacity:.9;pointer-events:none}
.wash i{position:absolute;display:block;border-radius:50%}
.wash i:nth-child(1){width:60%;aspect-ratio:1;left:-6%;top:-10%;background:hsl(var(--hue) 70% 62%/.55)}
.wash i:nth-child(2){width:52%;aspect-ratio:1;right:-4%;top:8%;background:hsl(var(--hue) 85% 34%/.45)}
.wash i:nth-child(3){width:70%;aspect-ratio:1;left:22%;bottom:-30%;background:hsl(var(--hue) 45% 88%/.85)}
.wash--soft{opacity:.45}
.wash--faint{opacity:.28}
.wash--warm i:nth-child(1){background:hsl(var(--hue) 34% 74%/.5)}

/* ─────────────────────────────────────────────
   IMAGE — bleeds past the module edge, clipped by
   its radius. brightness lift pushes the studio
   white to pure white, multiply then erases it.
   ───────────────────────────────────────────── */
.bleed{position:absolute;pointer-events:none;z-index:-1;
  mix-blend-mode:multiply}   /* on the wrapper: a z-indexed child would isolate its own blend */
/* placement lives here, not inline, so it can respond at narrow widths */
.mod--intake   {min-height:460px}
.mod--metric   {flex:1;min-height:180px;justify-content:space-between}
.mod--referrals{flex:1;min-height:360px}
.mod--routing  {min-height:440px;justify-content:flex-end}

.bleed--speculum{width:420px;right:-72px;bottom:-96px}
.bleed--mirror  {width:250px;right:-46px;bottom:-64px}
.bleed--fork    {width:480px;right:-140px;top:52px}
/* Real transparency, not a blend trick. Each image carries a generated
   alpha mask (grey+alpha PNG, ~4KB) cutting the studio background away.
   multiply is kept so objects still pick up the module tint where it is
   supported, but nothing depends on it any more — iOS Safari does not
   apply mix-blend-mode in this stacking arrangement, which left the white
   JPEG background showing as a rectangle. */
.bleed img{display:block;width:100%;
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.bleed--speculum img{-webkit-mask-image:url(img/speculum-mask.png);mask-image:url(img/speculum-mask.png)}
.bleed--mirror   img{-webkit-mask-image:url(img/mirror-mask.png);  mask-image:url(img/mirror-mask.png)}
.bleed--fork     img{-webkit-mask-image:url(img/fork-mask.png);    mask-image:url(img/fork-mask.png)}

/* ─────────────────────────────────────────────
   TOP NAV + HERO — unbounded, straight on the
   canvas. No module container above the fold.
   ───────────────────────────────────────────── */
/* sticky, and only frosts once content is actually behind it — a hairline
   and blur at rest would read as heavy chrome on a page whose premise is
   open canvas. */
.topnav{position:sticky;top:0;z-index:60;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 26px;gap:20px}
.topnav::before{content:"";position:absolute;inset:0;z-index:-1;opacity:0;
  background:color-mix(in srgb,var(--canvas) 66%,transparent);
  -webkit-backdrop-filter:blur(16px) saturate(1.6);
          backdrop-filter:blur(16px) saturate(1.6);
  box-shadow:0 1px 0 var(--line);
  transition:opacity .28s ease}
.topnav.is-stuck::before{opacity:1}
/* Vertical links. The site has pages now, so the nav has to navigate —
   this replaces the single-page treatment where the mark sat centred
   and the CTA was gated behind the hero. */
.navlinks{display:flex;gap:26px;margin-left:auto}
.navlinks a{font-size:15px;color:var(--ink-2);text-decoration:none;
  transition:color .2s ease}
.navlinks a:hover,.navlinks a[aria-current="page"]{color:var(--ink)}
.topnav .btn{margin-left:26px}
@media (prefers-reduced-motion:reduce){.topnav::before{transition:none}}

.hero{position:relative;padding:60px 26px 76px}
.hero>.grid{align-items:end}
.hero>.grid>*{position:relative}
/* unclipped monotonal glow — no rect to contain it */
.glow{position:absolute;pointer-events:none;
  right:0;top:-14%;width:56%;aspect-ratio:1;filter:blur(60px);
  background:radial-gradient(closest-side,hsl(var(--hue) 68% 60%/.34),transparent 74%)}
.glow--b{right:auto;left:-8%;top:auto;bottom:-30%;width:40%;
  background:radial-gradient(closest-side,hsl(var(--hue) 45% 86%/.9),transparent 72%)}

/* Statement home: one headline, one paragraph, one CTA. No object, so a
   centred single column rather than the hero's text/object split. */
.hero--statement{display:flex;align-items:center;justify-content:center;
  min-height:min(74vh,720px);text-align:center;
  padding:clamp(40px,8vh,90px) 26px clamp(50px,10vh,110px)}
.statement{position:relative;max-width:720px;margin:0 auto;  /* paint order, not z-index */
  display:flex;flex-direction:column;align-items:center}
.lede{font-size:clamp(19px,2.1vw,27px);line-height:1.3;letter-spacing:-.014em;
  color:var(--ink);max-width:19em;margin-top:22px}  /* em, not ch: scales with the clamp */
.hero--statement .sub{margin-top:24px;max-width:56ch}
.hero--statement .row{margin-top:34px;justify-content:center}

/* ── SWAY ─────────────────────────────────────
   The fork is a balanced object: the pointer leans it, and it springs back
   past centre and wobbles to rest rather than easing politely into place.
   The cast shadow follows the lean, stretching and lightening as it goes.
   Rotation and opacity only, written as CSS vars from app.js, so it stays
   on the compositor. Pivot is the contact point, not the centre, so it
   pivots on the paper instead of floating. */
.sway{position:relative;margin-top:clamp(26px,5vh,54px);width:min(46vw,208px)}
.sway__stage{display:block;position:relative;
  transform:rotate(var(--rot,0deg));
  transform-origin:50% 92%;
  will-change:transform}
.sway__obj{display:block;width:100%;height:auto;
  -webkit-mask-image:url(img/fork-mask.png);mask-image:url(img/fork-mask.png);
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.sway__cast{position:absolute;left:50%;bottom:3%;width:44%;height:24px;
  filter:blur(7px);opacity:var(--so,.88);
  transform:translateX(calc(-50% + var(--sx,0px))) scaleX(var(--ss,1));
  transform-origin:50% 50%;
  background:radial-gradient(50% 50% at 50% 50%,var(--cast),transparent 68%);
  will-change:transform,opacity}


/* Vertical cards: whole module is the link, object bleeds off the corner */
.vcard{text-decoration:none;color:inherit;display:flex;flex-direction:column;
  transition:transform .22s ease}
.vcard:hover{transform:translateY(-2px)}
.vcard .textlink{align-self:flex-start}
.bleed--v{width:230px;right:-52px;bottom:-66px}
.bleed--v img{-webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.m-speculum{-webkit-mask-image:url(img/speculum-mask.png);mask-image:url(img/speculum-mask.png)}
.m-trowel  {-webkit-mask-image:url(img/trowel-mask.png);mask-image:url(img/trowel-mask.png)}

/* section lead-in outside any module, matching hero gutters */
.sectionhead{padding:38px 26px 14px}
.textlink{display:inline-flex;align-items:center;gap:9px;color:var(--ink);
  font-size:15px;font-weight:500;text-decoration:none;
  border-bottom:1px solid var(--line);padding-bottom:3px;
  transition:border-color .2s ease}
.vcard:hover .textlink{border-color:var(--ink-3)}

.footlinks{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:22px}
.footlinks a{font-size:14px;color:var(--ink-2);text-decoration:none;
  transition:color .2s ease}
.footlinks a:hover{color:var(--ink)}
.footlinks a[aria-current="page"]{color:var(--ink)}
/* the Privacy · Terms pair in the copyright row — quieter than .footlinks */
footer .row a{color:var(--ink-2);text-decoration:none;
  border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
footer .row a:hover,footer .row a[aria-current="page"]{color:var(--ink);border-bottom-color:var(--line)}

/* the object sits on a cast shadow, not in a card */
.object{position:relative;display:flex;justify-content:center;align-items:flex-end}
.object img{display:block;width:min(100%,330px);mix-blend-mode:multiply;
  -webkit-mask-image:url(img/otoscope-mask.png);mask-image:url(img/otoscope-mask.png);
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
/* the hero object is per-vertical, so the mask is too */
.object--trowel img{-webkit-mask-image:url(img/trowel-mask.png);mask-image:url(img/trowel-mask.png)}
.cast{position:absolute;left:50%;bottom:4%;transform:translateX(-50%);
  width:52%;height:30px;filter:blur(7px);
  background:radial-gradient(50% 50% at 50% 50%,var(--cast),transparent 68%)}
.eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:13px;color:var(--ink-2)}

/* closing section — unbounded too, so the page opens and
   closes on open canvas with the modules stacked between */
.closer{position:relative;padding:104px 26px 88px;
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px}
.closer>:not(.glow){position:relative}   /* paint order, not z-index */
.closer .glow{left:50%;right:auto;top:0;translate:-50% 0;width:64%;
  background:radial-gradient(closest-side,hsl(var(--hue) 58% 62%/.24),transparent 74%)}
.closer .glow--b{left:50%;top:auto;bottom:-6%;width:44%;
  background:radial-gradient(closest-side,hsl(var(--hue) 34% 84%/.8),transparent 72%)}


/* ─────────────────────────────────────────────
   WORKFLOW LOOP — self-contained intake ledger,
   from brand/workflow-handoff. Fonts swapped to
   the page's own stack (Plex Sans / Plex Mono)
   rather than adding Open Sans + Spline Sans Mono.
   --paper is transparent so it takes the module tone.
   ───────────────────────────────────────────── */
.pw-frame{--paper:transparent;--card:var(--canvas);--hairline:#D9D4C6;--ink:#191813;
  --muted:#807B6E;--sub:#45423A;--accent:#0E5646;--tint:rgba(14,86,70,.07);
  width:100%;background:var(--paper);position:relative;
  font-family:var(--font-sans);container-type:inline-size}
.pw-card{background:var(--card);border:1px solid var(--hairline);border-radius:var(--r-md);
  overflow:hidden}
.pw-head{display:flex;justify-content:space-between;align-items:baseline;
  padding:3.4cqw 4.4cqw;border-bottom:1px solid var(--hairline)}
.pw-head b{font:400 3cqw var(--font-mono);text-transform:uppercase;letter-spacing:.14em;color:var(--sub)}
.pw-head span{font:400 2.5cqw var(--font-mono);color:var(--muted)}
.pw-bar{height:3px;background:var(--hairline);position:relative}
.pw-bar i{position:absolute;inset:0 auto 0 0;width:0;background:var(--accent)}
.pw-rows{position:relative}
.pw-hl,.pw-ind{position:absolute;left:0;top:0;height:var(--rowH);pointer-events:none}
.pw-hl{right:0;background:var(--tint)}
.pw-ind{width:3px;background:var(--accent)}
.pw-row{display:flex;align-items:center;gap:3cqw;height:var(--rowH);padding:3.4cqw 4.4cqw;
  border-bottom:1px solid var(--hairline);position:relative}
.pw-row:last-child{border-bottom:none}
.pw-row .n{font:400 3cqw var(--font-mono);width:7cqw;color:var(--muted)}
.pw-row .l{font:500 3.6cqw/1.25 var(--font-sans);letter-spacing:-.005em;color:var(--muted);flex:1}
.pw-row .s{font:400 2.6cqw var(--font-mono);text-align:right;min-width:21cqw;white-space:nowrap;color:var(--muted)}
.pw-row.on .n,.pw-row.done .n{color:var(--accent)}
.pw-row.on .l,.pw-row.done .l{color:var(--ink)}
.pw-row.on .s{color:var(--sub)}
.pw-row.done .s{color:var(--accent)}
@media (prefers-reduced-motion:reduce){.pw-hl,.pw-ind,.pw-bar i{transition:none}}

/* ─────────────────────────────────────────────
   TYPE
   ───────────────────────────────────────────── */
.lab{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);font-weight:500}
h1,h2,h3,.mono{font-family:var(--font-serif);font-weight:400}
h1{font-size:clamp(32px,6vw,86px);line-height:1.0;letter-spacing:-.018em}
h2{font-size:clamp(30px,3.4vw,46px);line-height:1.06;letter-spacing:-.014em}
h3{font-size:26px;line-height:1.14;letter-spacing:-.01em}
.dim{color:var(--ink-3)}
.sub{color:var(--ink-2);font-size:17px;max-width:44ch}
.mono{font-size:clamp(38px,4.4vw,60px);line-height:1;letter-spacing:-.015em}
.fine{font-size:14px;color:var(--ink-2)}
.lab{font-weight:500}

/* ─────────────────────────────────────────────
   LEGAL PROSE  (/privacy, /terms)
   ───────────────────────────────────────────── */
/* h2 is a display size on the marketing pages; in a legal document it is a
   section marker, so it is reset here rather than fought with inline styles. */
.legal{max-width:70ch}
.legal h2{font-size:24px;line-height:1.2;letter-spacing:-.008em;margin-top:40px}
.legal h2:first-child{margin-top:0}
.legal p{color:var(--ink-2);margin-top:12px}
.legal ul{margin-top:12px;padding-left:20px;color:var(--ink-2)}
.legal li{margin-top:8px}
.legal li::marker{color:var(--ink-3)}
.legal strong{color:var(--ink);font-weight:600}
.legal a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;
  text-decoration-color:var(--ink-3)}
.legal a:hover{text-decoration-color:var(--ink)}
/* the plain-language summary that sits beside the formal text */
.tldr{list-style:none;margin-top:16px}
.tldr li{font-size:14px;color:var(--ink-2);padding:13px 0;border-top:1px solid var(--line)}
.legal h3{font-family:var(--font-sans);font-size:17px;font-weight:600;
  letter-spacing:0;line-height:1.4;margin-top:26px}
.legal .meta{font-size:14px;color:var(--ink-3);margin-top:10px}
/* anchors must clear the sticky nav — /privacy links straight to /terms#sms */
.legal [id]{scroll-margin-top:96px}
/* the carrier-mandated disclosure, set apart so a reviewer can find it fast */
.legal .callout{background:var(--accent-soft);border-radius:var(--r-md);
  padding:20px 22px;margin-top:18px}
.legal .callout p{color:var(--ink);margin-top:0}
/* the SMS program terms table — the disclosure format carriers expect */
.kv{width:100%;border-collapse:collapse;margin-top:18px;font-size:14px}
.kv th{width:148px;text-align:left;vertical-align:top;font-weight:600;color:var(--ink);
  padding:15px 20px 15px 0;border-top:1px solid var(--line)}
.kv td{vertical-align:top;color:var(--ink-2);padding:15px 0;border-top:1px solid var(--line)}
.kv tr:first-child>*{border-top:0}
/* section index beside the text; navigation only, no prose */
.toc{list-style:none;margin-top:14px}
.toc a{display:block;font-size:14px;color:var(--ink-2);text-decoration:none;
  padding:10px 0;border-top:1px solid var(--line);transition:color .2s}
.toc a:hover{color:var(--ink)}
/* /sms-opt-in: the verbatim consent script, and the consent-screen evidence */
.legal .bubble{background:var(--surface-2);border-radius:var(--r-md);padding:18px 20px;
  margin-top:16px;font-size:15px;line-height:1.5;color:var(--ink)}
.legal .shot{display:block;width:100%;max-width:290px;height:auto;margin-top:20px;
  border-radius:var(--r-lg);border:1px solid var(--line)}
@media (max-width:620px){
  .kv tr:first-child>*{border-top:1px solid var(--line)}
  .kv th{display:block;width:auto;padding:15px 0 2px}
  .kv td{display:block;padding:0 0 15px;border-top:0}
}

/* ─────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────── */
.shell{max-width:var(--shell);margin:0 auto;display:flex;flex-direction:column;gap:var(--gap)}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap)}
.c3{grid-column:span 3}.c4{grid-column:span 4}.c5{grid-column:span 5}
.c6{grid-column:span 6}.c7{grid-column:span 7}.c8{grid-column:span 8}.c12{grid-column:span 12}
.stack{display:flex;flex-direction:column;gap:var(--gap)}

/* ─────────────────────────────────────────────
   BITS
   ───────────────────────────────────────────── */
.row{display:flex;align-items:center;gap:12px}
.between{justify-content:space-between}
.push{margin-top:auto}

.btn{display:inline-flex;align-items:center;gap:10px;border-radius:var(--r-md);
  padding:14px 22px;font-size:15px;font-weight:500;text-decoration:none;
  background:var(--accent);color:var(--on-accent);border:0;cursor:pointer;
  transition:transform .18s ease,opacity .18s ease}
.btn:hover{transform:translateY(-1px);opacity:.92}
.btn--ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.pill{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:7px 14px;
  font-size:13px;background:color-mix(in srgb,var(--canvas) 72%,transparent);
  backdrop-filter:blur(12px);box-shadow:inset 0 0 0 1px var(--line);width:max-content}
.dot{width:8px;height:8px;border-radius:50%;background:var(--spark);flex:none}
/* ── LOCKUPS · per brand/BRAND.md ────────────
   tile lockup for chrome, stacked for the closing
   moment. Wordmark is live text, never an image. */
.wordmark{font-family:"Redaction",Iowan Old Style,Georgia,serif;font-weight:400;
  letter-spacing:-.02em;line-height:1;color:var(--ink);white-space:nowrap}
.lockup{display:inline-flex;align-items:center;gap:12px;text-decoration:none}
.lockup img{display:block;flex:none}
.arrow{width:34px;height:34px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:var(--canvas);color:var(--ink-2);font-size:14px}
hr{border:0;height:1px;background:var(--line);margin:22px 0}

@media (max-width:980px){
  :root{--pad:26px;--r-xl:26px;--r-lg:20px}
  .c3,.c4,.c5{grid-column:span 6}
  .c7,.c8{grid-column:span 12}
}
@media (max-width:620px){
  :root{--pad:22px}
  /* Centred hero: the two unbounded sections (hero, closer) are centred,
     the modules between them stay left-aligned. Also resolves the mismatch
     of left-aligned copy sitting above a centred object. */
  .hero{padding:36px 22px 56px;text-align:center}
  .hero--statement{min-height:0;padding:26px 22px 56px}
  .footlinks{justify-content:flex-start}
  .sectionhead{padding:28px 22px 10px}
  .bleed--v{width:170px;right:-38px;bottom:-46px}
  .hero .eyebrow{justify-content:center}
  .hero .row{justify-content:center}
  .hero .sub{margin-left:auto;margin-right:auto}

  /* Nav on a phone: mark and CTA on one row, vertical links beneath. */
  .topnav{flex-wrap:wrap;padding:12px 22px;row-gap:8px}
  .topnav .lockup{order:1}
  .topnav .btn{order:2;margin-left:auto;padding:9px 16px;font-size:14px}
  .navlinks{order:3;width:100%;margin-left:0;gap:22px;font-size:14px}
  /* Portrait cards: drop the desktop min-heights, reserve a band at the
     bottom equal to each object's visible height, and let it bleed off the
     right and bottom corner at a size that actually reads. */
  .mod--intake,.mod--referrals,.mod--routing{min-height:0;justify-content:flex-start}
  .mod--referrals,.mod--metric{flex:0 0 auto}
  .mod--metric{min-height:0;gap:26px}
  .mod--intake   {padding-bottom:254px}
  .mod--referrals{padding-bottom:220px}
  .mod--routing  {padding-bottom:226px}
  .bleed--speculum{width:300px;right:-48px;bottom:-62px}
  .bleed--mirror  {width:260px;right:-44px;bottom:-56px}
  .bleed--fork    {width:280px;right:-46px;top:auto;bottom:-70px}
  .object img{width:min(100%,240px)}
  .closer{padding:72px 22px 64px}
  .c3,.c4,.c5,.c6,.c7,.c8{grid-column:span 12}
  .sub{font-size:16px}
}
