/* Driftline — Superside-structure clone. Tokens from brand-kits/2026-07-02-driftline (never restate elsewhere). */
:root {
  --ink: #16232B;
  --fog: #F4F0E6;
  --river: #2E4A56;
  --line: #C96F2E;
  --reed: #7C8B6E;
  --paper: #FFFFFF;

  /* Driftline Certified — brass/gold, earned-status mark. Law (mirrors ember): fill + ink glyph/text,
     never brass text <24px, never adjacent to reed. --brass-deep is dark enough for fog text (WCAG AA). */
  --brass: #B0812E;
  --brass-deep: #8A6220;
  --brass-glow: rgba(176, 129, 46, .34);
  --brass-wash: rgba(176, 129, 46, .09);

  --text-muted: rgba(22, 35, 43, .78);
  --text-muted-rev: rgba(244, 240, 230, .78);
  /* ember for SMALL text: --line (#C96F2E) is 3.2:1 on fog — decorative only.
     Small ember type uses these AA-safe pairs instead. */
  --ember-text: #A04E12;      /* 5.1:1 on fog */
  --ember-text-rev: #E89A5B;  /* 7.0:1 on ink */
  --hairline: rgba(22, 35, 43, .12);
  --hairline-rev: rgba(244, 240, 230, .16);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --frx: "SOFT" 0, "WONK" 0;

  --radius: 8px;
  --radius-img: 4px;
  --radius-pill: 999px;
  --rule-w: 3px;
  --measure: 64ch;

  --reveal-dur: .7s;
  --reveal-ease: ease-out;

  --nav-h: 64px;
  --pad-x: clamp(20px, 5vw, 72px);
  --max-w: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* anchor jumps land clear of the 64px fixed nav (it auto-hides going down, shows going up) */
[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* width/height ATTRS exist for CLS only (enhance_imgs.py) -- height:auto keeps CSS/aspect-ratio in charge
   of rendered size, or the attr height would win (the 1064px-tall statement image bug, 2026-07-06) */
img[height] { height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- mood system (the Superside data-mood idea, Driftline palette) ----------
   base lives in :where() (zero specificity) so the mood overrides always win */
:where(section[data-mood], header[data-mood], footer[data-mood]) {
  --bg: var(--fog);
  --fg: var(--ink);
  --fg-muted: var(--text-muted);
  --rule-c: var(--hairline);
}
section[data-mood], header[data-mood], footer[data-mood] {
  background: var(--bg);
  color: var(--fg);
}
[data-mood="dark"]  { --bg: var(--ink);   --fg: var(--fog); --fg-muted: var(--text-muted-rev); --rule-c: var(--hairline-rev); }
[data-mood="river"] { --bg: var(--river); --fg: var(--fog); --fg-muted: var(--text-muted-rev); --rule-c: var(--hairline-rev); }
[data-mood="dusk"]  { --bg: var(--ink);   --fg: var(--fog); --fg-muted: var(--text-muted-rev); --rule-c: var(--hairline-rev); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- type ---------- */
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: var(--frx);
  letter-spacing: -.01em;
  line-height: 1.06;
  margin: 0;
}
h1 { font-size: clamp(44px, 6.4vw, 92px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; }
h3 { font: 600 19px/1.35 var(--font-body); margin: 0; }
em, .it { font-style: italic; font-variation-settings: var(--frx); }
h1 em, h2 em { font-weight: 500; }
p { margin: 0; }
.lede { font: 500 clamp(19px, 1.8vw, 24px)/1.45 var(--font-body); }
.body-copy { color: var(--fg-muted, var(--text-muted)); max-width: var(--measure); }

.eyebrow {
  font: 400 13px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted, var(--text-muted));
  display: block;
  margin-bottom: 20px;
}
.eyebrow--ruled { border-bottom: 1px solid var(--rule-c, var(--hairline)); padding-bottom: 14px; }

/* ---------- buttons (pill, per reference; CTA fill = ink law) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-pill);
  padding: 15px 28px;
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  position: relative;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(22,35,43,.18); }
.btn-primary { background: var(--ink); color: var(--fog); box-shadow: inset 0 calc(-1 * var(--rule-w)) 0 0 var(--line); }
.btn-ghost { background: transparent; color: var(--fg, var(--ink)); border-color: currentColor; }
[data-mood="dark"] .btn-primary, [data-mood="river"] .btn-primary, [data-mood="dusk"] .btn-primary, .theme-dark .btn-primary {
  background: var(--fog); color: var(--ink);
}
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ---------- nav (transparent over hero → ink on scroll, like the reference) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent; color: var(--fog);
  transition: background .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled, .nav.nav--open { background: var(--ink); box-shadow: 0 8px 30px rgba(22,35,43,.35); }
.nav .wrap { display: flex; align-items: center; gap: 36px; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font: 500 14.5px/1 var(--font-body); color: var(--text-muted-rev); transition: color .2s ease; }
.nav-links a:hover { color: var(--fog); }
.nav-ctas { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-ctas .btn { padding: 11px 20px; font-size: 14px; }
.nav-phone { text-decoration: none; font: 500 14px/1 var(--font-body); color: var(--text-muted-rev); }
.nav-phone:hover { color: var(--fog); }
.nav-burger { display: none; background: none; border: 0; color: var(--fog); width: 40px; height: 40px; }
.nav-burger svg { display: block; margin: auto; }

/* mega dropdown */
.nav-item { position: relative; }
.nav-drop-btn { background: none; border: 0; color: var(--text-muted-rev); font: 500 14.5px/1 var(--font-body); padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-btn:hover, .nav-item.is-open .nav-drop-btn { color: var(--fog); }
.nav-drop-btn svg { transition: transform .25s ease; }
.nav-item.is-open .nav-drop-btn svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 18px); left: -24px; min-width: 560px;
  background: var(--fog); color: var(--ink); border-radius: 12px; padding: 22px;
  box-shadow: 0 30px 80px rgba(22,35,43,.35); border-bottom: var(--rule-w) solid var(--line);
  display: none; grid-template-columns: 1fr 1fr; gap: 8px;
}
.nav-item.is-open .mega { display: grid; animation: megaIn .3s ease-out both; }
@keyframes megaIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mega a { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; padding: 12px; border-radius: var(--radius); transition: background .2s ease; }
.mega a:hover { background: rgba(22,35,43,.05); }
.mega img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mega h5 { margin: 0 0 4px; font: 600 15px/1.2 var(--font-body); }
.mega h5 .tag { font: 400 9.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--line); border-radius: var(--radius-pill); padding: 3px 7px; margin-left: 6px; vertical-align: middle; }
.mega p { font-size: 13px; line-height: 1.45; color: var(--text-muted); margin: 0; }
@media (max-width: 1080px) { .mega { display: none !important; } .nav-drop-btn { pointer-events: none; } }

/* custom cursor (pointer:fine only; JS enables) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 200; border-radius: 50%; display: none; }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { display: block; }
.cursor-dot { width: 6px; height: 6px; background: var(--line); margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(201,111,46,.75);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  display: none; align-items: center; justify-content: center;
}
body.has-cursor .cursor-ring { display: flex; }
.cursor-ring .cursor-label { font: 500 10px/1 var(--font-body); letter-spacing: .04em; color: var(--fog); opacity: 0; transition: opacity .15s ease; }
.cursor-ring.is-hover { transform: scale(1.6); background: rgba(201,111,46,.12); }
.cursor-ring.is-view { transform: scale(2.3); background: var(--ink); border-color: var(--ink); }
.cursor-ring.is-view .cursor-label { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h); }
.hero::after { /* grain drift */
  content: ""; position: absolute; inset: -100px; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  animation: noiseDrift 9s steps(6) infinite;
}
@keyframes noiseDrift {
  0% { transform: translate(0,0); } 20% { transform: translate(-30px,10px); }
  40% { transform: translate(20px,-25px); } 60% { transform: translate(-15px,-35px); }
  80% { transform: translate(25px,20px); } 100% { transform: translate(0,0); }
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 72px); align-items: center; min-height: min(88vh, 860px); padding-top: 32px; padding-bottom: 0; }
.hero-copy { position: relative; z-index: 2; padding: 48px 0 64px; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy .body-copy { font-size: 18px; max-width: 46ch; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* vertical auto-scroll collage */
.hero-collage {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  height: min(88vh, 860px);
}
.hero-collage .collage-col:nth-child(3) { display: none; }
@media (min-width: 1200px) {
  .hero-collage { grid-template-columns: 1fr 1fr 1fr; }
  .hero-collage .collage-col:nth-child(3) { display: flex; }
}
.hero-collage {
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.collage-col { display: flex; flex-direction: column; gap: 16px; animation: collageUp 46s linear infinite; will-change: transform; }
.collage-col--slow { animation-duration: 58s; animation-direction: reverse; }
.hero-collage:hover .collage-col { animation-play-state: paused; }
@keyframes collageUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tile { border-radius: var(--radius); overflow: hidden; flex-shrink: 0; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-in-out; }
.tile:hover img { transform: scale(1.02); }

/* entrance drifts (reference values: ±12px diagonal + fade) */
.drift-in .tile { opacity: 0; animation: driftBL .8s ease-out forwards; }
.drift-in .collage-col--slow .tile { animation-name: driftTR; }
.drift-in .tile:nth-child(1) { animation-delay: .05s; } .drift-in .tile:nth-child(2) { animation-delay: .15s; }
.drift-in .tile:nth-child(3) { animation-delay: .25s; } .drift-in .tile:nth-child(4) { animation-delay: .35s; }
.drift-in .tile:nth-child(n+5) { animation-delay: .45s; }
@keyframes driftBL { 0% { opacity: 0; transform: translate(-12px, 12px); } 100% { opacity: 1; transform: translate(0, 0); } }
@keyframes driftTR { 0% { opacity: 0; transform: translate(12px, -12px); } 100% { opacity: 1; transform: translate(0, 0); } }

/* ken-burns video-feel loops (three phases, alternating) */
.kb img { animation: kbA 18s ease-in-out infinite alternate; will-change: transform; }
.kb--b img { animation-name: kbB; animation-duration: 15s; }
.kb--c img { animation-name: kbC; animation-duration: 21s; }
@keyframes kbA { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.6%, 1.2%); } }
@keyframes kbB { from { transform: scale(1.08) translate(1.4%, -1%); } to { transform: scale(1) translate(0, 0); } }
@keyframes kbC { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(1.5%, -1.5%); } }
.kb:hover img, .kb--b:hover img, .kb--c:hover img { animation-play-state: paused; }

/* scroll cue (reference wiggle: ±10px x) */
.scroll-cue {
  position: absolute; left: var(--pad-x); bottom: 22px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font: 400 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted-rev);
}
.scroll-cue svg { animation: wiggleX 2.4s ease-in-out infinite; }
@keyframes wiggleX { 0% { transform: translateX(0); } 20% { transform: translateX(-6px); } 80% { transform: translateX(6px); } 100% { transform: translateX(0); } }
@media (max-width: 1080px) { .scroll-cue { display: none; } }
.tile--photo { aspect-ratio: 4/5; }
.tile--sq { aspect-ratio: 1/1; }
.tile-brand { display: flex; align-items: center; justify-content: center; aspect-ratio: 1/1; }
.tile-brand img { width: 44%; height: auto; }
.tile-caption {
  position: absolute; left: 12px; bottom: 12px;
  font: 400 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(22,35,43,.72); color: var(--fog); padding: 5px 10px; border-radius: var(--radius-pill);
}
/* mini report tile */
.tile-report { background: var(--paper); aspect-ratio: 4/5; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tile-report .tr-head { font: 400 10px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); display: flex; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding-bottom: 8px; }
.tile-report .tr-stat { font-family: var(--font-display); font-variation-settings: var(--frx); font-size: 34px; line-height: 1; }
.tile-report .tr-label { font: 400 10.5px/1.45 var(--font-mono); color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.tile-report .tr-bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; padding-top: 6px; }
.tile-report .tr-bars i { display: block; width: 100%; background: var(--river); border-radius: 2px 2px 0 0; }
.tile-report .tr-bars i.hot { background: var(--line); }
.tile-report .tr-foot { font: 400 9.5px/1.4 var(--font-mono); color: var(--text-muted); border-top: 1px solid var(--hairline); padding-top: 8px; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- waters marquee ---------- */
.waters { padding: 72px 0 84px; }
.waters .eyebrow { text-align: center; margin-bottom: 8px; }
.waters h2 { text-align: center; font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 48px; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marqueeX 38s linear infinite; align-items: baseline; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.water { white-space: nowrap; color: var(--ink); opacity: .82; }
.water--serif { font-family: var(--font-display); font-style: italic; font-variation-settings: var(--frx); font-size: 28px; }
.water--mono { font: 400 16px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.water--sans { font: 600 20px/1 var(--font-body); letter-spacing: .02em; }

/* ---------- statement blocks ---------- */
.statement { padding: 124px 0; }
.statement .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.statement--flip .st-copy { order: 2; }
.statement--flip .st-media { order: 1; }
.st-copy h2 { font-size: clamp(34px, 3.6vw, 54px); margin-bottom: 24px; }
.st-copy .lede { margin-bottom: 18px; }
.st-copy .body-copy { margin-bottom: 32px; }
.st-media img { border-radius: var(--radius); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }

/* ---------- pillars (dark 3-card) ---------- */
.pillars { padding: 140px 0 150px; }
.pillars-head { text-align: center; max-width: 900px; margin: 0 auto 64px; }
.pillars-head .eyebrow { text-align: center; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--river); }
.pillar-img { aspect-ratio: 7/8; overflow: hidden; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-in-out; }
.pillar:hover .pillar-img img { transform: scale(1.02); }
.pillar-panel { padding: 26px 24px 30px; font-family: var(--font-display); font-variation-settings: var(--frx); font-size: 26px; line-height: 1.25; flex: 1; }
.pillar-panel .tag { display: inline-block; vertical-align: middle; margin-left: 8px; font: 400 11px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 5px 10px; opacity: .85; }
.pillar--ember .pillar-panel { background: var(--line); color: #0E161C; } /* deep ink: 5.04:1 on ember */
.pillar--river .pillar-panel { background: var(--river); color: var(--fog); }
.pillar--paper .pillar-panel { background: var(--paper); color: var(--ink); }

/* ---------- stats ---------- */
.stats { padding: 140px 0 120px; }
.stats-head { text-align: center; max-width: 860px; margin: 0 auto 72px; }
.stats-head .eyebrow { text-align: center; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 64px); }
.stat { display: flex; justify-content: space-between; align-items: center; gap: 32px; border-bottom: 1px solid var(--hairline); padding: 40px 0; }
.stat-desc { color: var(--text-muted); max-width: 34ch; font-size: 16.5px; }
.stat-desc a { color: var(--ink); font-weight: 500; }
.stat-num { font-family: var(--font-display); font-variation-settings: var(--frx); font-weight: 500; font-size: clamp(64px, 6.4vw, 104px); line-height: 1; white-space: nowrap; }
.odometer { display: inline-flex; overflow: hidden; }
.odometer .digit { display: inline-block; height: 1em; overflow: hidden; }
.odometer .digit span { display: block; height: 1em; line-height: 1; transition: transform 2.1s cubic-bezier(.22,1,.36,1); transform: translateY(0); }
.odometer .digit span i { overflow: hidden; }
.stats-src { text-align: center; margin-top: 48px; font: 400 13px/1.6 var(--font-mono); color: var(--text-muted); letter-spacing: .02em; }
.stats-src a { color: var(--ink); }

/* ---------- story cards ---------- */
.stories { padding: 40px 0 110px; }
.stories-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }
.story-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px;
  display: flex; flex-direction: column; justify-content: flex-start;
  color: var(--fog); text-decoration: none; isolation: isolate;
}
.story-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: -2; transition: transform .5s ease-in-out; }
.story-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,35,43,.94) 0%, rgba(22,35,43,.62) 48%, rgba(22,35,43,.82) 100%); }
.story-card:hover > img { transform: scale(1.02); }
.story-card .sc-inner { padding: 32px; display: flex; flex-direction: column; height: 100%; }
.sc-pill { align-self: flex-start; font: 400 11.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(244,240,230,.5); border-radius: var(--radius-pill); padding: 8px 14px; margin-bottom: 22px; }
.story-card h3 { font: 500 clamp(24px, 2.2vw, 32px)/1.25 var(--font-display); font-variation-settings: var(--frx); max-width: 22ch; }
.sc-link { margin-top: auto; font: 500 15px/1 var(--font-body); padding-top: 28px; }
.sc-link span { border-bottom: 1px solid rgba(244,240,230,.5); padding-bottom: 3px; }
.sc-link .arr { display: inline-block; transition: transform .25s ease; border: 0; }
.story-card:hover .arr { transform: translate(3px, -3px); }

/* mobile pillar carousel (Carousel-island equivalent) */
@media (max-width: 1080px) {
  .pillars-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; max-width: none; margin: 0; scrollbar-width: none; }
  .pillars-grid::-webkit-scrollbar { display: none; }
  .pillar { flex: 0 0 82%; scroll-snap-align: center; }
  .pillar-img { aspect-ratio: 7/8; }
  .pillar-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
  .pillar-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(244,240,230,.3); transition: background .25s ease, transform .25s ease; }
  .pillar-dots button.is-active { background: var(--line); transform: scale(1.3); }
}
@media (min-width: 1081px) { .pillar-dots { display: none; } }

/* ---------- services headline ---------- */
.services { padding: 110px 0 90px; text-align: center; position: relative; overflow: hidden; }
.services::before {
  content: ""; position: absolute; left: 50%; bottom: -18%; transform: translateX(-30%) rotate(-6deg);
  width: 70vw; height: 46%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201,111,46,.16), transparent 65%);
  pointer-events: none;
}
.services h2 { max-width: 1000px; margin: 0 auto; }
.services .inline-chip {
  display: inline-block; vertical-align: middle; width: 1.5em; height: 1.05em; border-radius: 10px;
  overflow: hidden; margin: 0 .12em; position: relative; top: -.06em;
}
.services .inline-chip img { width: 100%; height: 100%; object-fit: cover; }
.svc-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; max-width: 620px; margin: 72px auto 0; position: relative; z-index: 2; text-align: left; }
.svc-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 14px; padding: 12px 18px; font: 500 15px/1 var(--font-body);
  border: 1px solid var(--hairline); background: var(--paper);
}
.svc-pill img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.svc-pill--ink { background: var(--ink); color: var(--fog); border-color: var(--ink); }
.svc-pill--river { background: var(--river); color: var(--fog); border-color: var(--river); }
.svc-pill--ember { background: var(--line); color: var(--ink); border-color: var(--line); }
.svc-pill--muted { color: var(--text-muted); }
.svc-pill .tag { font: 400 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 4px 8px; opacity: .8; }
.svc-mark { position: absolute; right: clamp(24px, 12vw, 200px); bottom: 60px; width: 92px; height: 92px; border-radius: 22.37%; background: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 60px rgba(201,111,46,.35); }
.svc-mark img { width: 54%; filter: brightness(0) invert(.96); }
.cmp-row--hero .cmp-ico img { filter: brightness(0) invert(.96); }

/* ---------- work rail (scroll-scrubbed at desktop, native swipe below) ---------- */
.work { padding: 130px 0; }
.work-pin { position: relative; }
body.rail-scrub .work-pin { position: sticky; top: 0; padding-top: calc(var(--nav-h) + 40px); min-height: 100vh; box-sizing: border-box; }
body.rail-scrub .rail { overflow-x: hidden; }
body.rail-scrub .rail-nav { display: none; }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.work-head h2 { max-width: 15ch; }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-card { flex: 0 0 clamp(300px, 30vw, 420px); scroll-snap-align: start; text-decoration: none; color: inherit; }
.rail-card .rc-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; margin-bottom: 18px; position: relative; background: var(--paper); }
.rail-card .rc-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease-in-out; }
.rail-card:hover .rc-media img { transform: scale(1.02); }
.rc-flag { position: absolute; top: 12px; left: 12px; font: 400 10.5px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; background: rgba(22,35,43,.78); color: var(--fog); padding: 6px 10px; border-radius: var(--radius-pill); }
.rail-card h3 { font: 500 24px/1.2 var(--font-display); font-style: italic; font-variation-settings: var(--frx); margin-bottom: 10px; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-tags span { font: 400 11px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 6px 10px; color: var(--text-muted); }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--paper); display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.rail-btn:hover { background: var(--ink); color: var(--fog); }
/* report card inside rail */
.rc-report { position: absolute; inset: 0; background: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- comparison ---------- */
.compare { padding: 140px 0 150px; }
.compare-head { text-align: center; max-width: 800px; margin: 0 auto 72px; }
.compare-head .eyebrow { text-align: center; }
.cmp { display: flex; flex-direction: column; gap: 0; min-width: 900px; }
.cmp-scroll { overflow-x: auto; }
.cmp-hint { display: none; font: 400 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted-rev); margin-bottom: 16px; }
@media (max-width: 1024px) { .cmp-hint { display: block; } }
.cmp-cols { display: grid; grid-template-columns: minmax(300px, 1.35fr) repeat(6, 1fr); align-items: center; }
.cmp-crit { padding: 0 8px 18px; font: 500 16px/1.3 var(--font-display); font-variation-settings: var(--frx); text-align: center; color: var(--text-muted-rev); }
.cmp-row { border-top: 1px solid var(--hairline-rev); }
.cmp-row .cmp-cols { padding: 26px 0; }
.cmp-row--hero { background: var(--fog); color: var(--ink); border-radius: var(--radius); border-top: 0; box-shadow: 0 0 0 var(--rule-w) var(--line); margin-bottom: 10px; }
.cmp-row--hero + .cmp-row { border-top: 0; }
.cmp-who { display: flex; gap: 16px; align-items: flex-start; padding: 0 20px; }
.cmp-ico { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(244,240,230,.08); color: var(--fog); }
.cmp-row--hero .cmp-ico { background: var(--ink); }
.cmp-row--hero .cmp-ico img { width: 56%; }
.cmp-who h3 { margin-bottom: 6px; }
.cmp-row--hero .cmp-who h3 { font: 500 22px/1.1 var(--font-display); font-variation-settings: var(--frx); }
.cmp-who p { font-size: 13.5px; line-height: 1.5; color: var(--text-muted-rev); max-width: 30ch; }
.cmp-row--hero .cmp-who p { color: var(--text-muted); }
.cmp-mark { text-align: center; font-size: 18px; }
.cmp-mark svg { display: inline-block; vertical-align: middle; }
.ok { color: var(--line); } .cmp-row--hero .ok { color: var(--ink); }
.no { opacity: .55; }

/* ---------- receipts marquee ---------- */
.receipts { padding: 130px 0; overflow: hidden; }
.receipts-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.receipts-head .eyebrow { text-align: center; }
.rcpt-rows { display: flex; flex-direction: column; gap: 20px; }
.rcpt-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rcpt-track { display: flex; gap: 20px; width: max-content; animation: marqueeX 52s linear infinite; }
.rcpt-track--rev { animation-direction: reverse; animation-duration: 60s; }
.rcpt-marquee:hover .rcpt-track { animation-play-state: paused; }
.rcpt {
  width: 380px; flex-shrink: 0; border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 210px;
}
.rcpt-k { font: 400 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.rcpt-v { font: 500 26px/1.2 var(--font-display); font-variation-settings: var(--frx); }
.rcpt-v em { font-style: italic; }
.rcpt p { font-size: 14.5px; color: var(--text-muted); }
.rcpt-src { margin-top: auto; font: 400 11.5px/1.5 var(--font-mono); color: var(--text-muted); letter-spacing: .02em; }
.rcpt--ink { background: var(--ink); color: var(--fog); border-color: var(--ink); }
.rcpt--ink .rcpt-k, .rcpt--ink p, .rcpt--ink .rcpt-src { color: var(--text-muted-rev); }
.rcpt--sign .rcpt-v { font-style: italic; font-size: 22px; }

/* ---------- pricing ---------- */
.pricing { padding: 130px 0; }
.pricing-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.pricing-head .eyebrow { text-align: center; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--paper); padding: 36px 32px; display: flex; flex-direction: column; }
.price-card--hero { background: var(--ink); color: var(--fog); border-color: var(--ink); box-shadow: inset 0 calc(-1 * var(--rule-w) - 3px) 0 0 var(--line); }
.pc-name { font: 500 26px/1.1 var(--font-display); font-variation-settings: var(--frx); margin-bottom: 6px; }
.pc-for { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }
.price-card--hero .pc-for { color: var(--text-muted-rev); }
.pc-price { font: 500 52px/1 var(--font-display); font-variation-settings: var(--frx); }
.pc-price small { font: 400 15px/1 var(--font-body); }
.pc-ads { font: 400 12.5px/1.5 var(--font-mono); letter-spacing: .02em; color: var(--text-muted); margin: 10px 0 26px; }
.price-card--hero .pc-ads { color: var(--text-muted-rev); }
.pc-list { list-style: none; margin: 0 0 32px; padding: 24px 0 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.price-card--hero .pc-list { border-top-color: var(--hairline-rev); }
.pc-list li { display: flex; gap: 10px; align-items: flex-start; }
.pc-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--reed); flex-shrink: 0; margin-top: 7px; }
.price-card--hero .pc-list li::before { background: var(--line); }
.pc-tag { align-self: flex-start; font: 400 11px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; border: 1px solid #D07835; color: #D07835; border-radius: var(--radius-pill); padding: 6px 12px; margin-bottom: 20px; } /* ember lightened a step: 4.9:1 on ink */
.price-card .btn { margin-top: auto; justify-content: center; }
.pricing-foot { text-align: center; margin-top: 44px; font-size: 15px; color: var(--text-muted); }

/* ---------- platform / report ---------- */
.platform { padding: 100px 0 110px; }
.platform-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.platform-head .lede { color: var(--text-muted); font-weight: 400; }
.plat-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.plat-card { border-radius: var(--radius); overflow: hidden; position: relative; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--hairline); background: var(--paper); }
.plat-card h3 { font: 500 24px/1.2 var(--font-display); font-variation-settings: var(--frx); margin-bottom: 12px; }
.plat-card p { font-size: 15px; color: var(--text-muted); max-width: 40ch; }
.plat-card--report { grid-row: 1 / 3; background: var(--ink); color: var(--fog); border-color: var(--ink); }
.plat-card--report h3 { color: var(--fog); }
.plat-card--report p { color: var(--text-muted-rev); }
.plat-report-mock { margin-top: 28px; background: var(--paper); color: var(--ink); border-radius: var(--radius-img); padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.plat-card--wide { grid-column: span 2; }
.plat-card--photo { padding: 0; min-height: 260px; }
.plat-card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plat-card--photo .pc-overlay { position: relative; z-index: 1; background: linear-gradient(180deg, rgba(22,35,43,.92) 0%, rgba(22,35,43,.72) 60%, rgba(22,35,43,.3) 100%); color: var(--fog); padding: 30px; height: 100%; display: flex; flex-direction: column; }
.plat-card--photo p { max-width: 52ch; }
.plat-card--photo h3 { color: var(--fog); }
.plat-card--photo p { color: var(--text-muted-rev); }
.plat-tag { align-self: flex-start; font: 400 11px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 6px 12px; margin-bottom: 16px; opacity: .9; }

/* ---------- benefits ---------- */
.benefits { padding: 100px 0 110px; }
.benefits-head { text-align: center; max-width: 900px; margin: 0 auto 72px; }
.benefits-head .eyebrow { text-align: center; }
.bene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.bene .b-ico { width: 64px; height: 64px; border-radius: 14px; background: rgba(124,139,110,.16); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--ink); }
.bene .eyebrow { margin-bottom: 10px; }
.bene h3 { font-size: 21px; margin-bottom: 12px; }
.bene p { font-size: 15px; color: var(--text-muted); }

/* ---------- founder ---------- */
.founder { padding: 0; }
.founder .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; max-width: none; }
.founder-copy { padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.founder-copy .eyebrow { color: rgba(201,111,46,.85); border-bottom: 1px solid rgba(201,111,46,.35); padding-bottom: 14px; }
.founder-copy h2 { color: var(--line); margin-bottom: 26px; }
.founder-copy .lede { color: var(--fog); margin-bottom: 18px; }
.founder-copy .body-copy { color: var(--text-muted-rev); margin-bottom: 36px; }
.founder-media { position: relative; min-height: 540px; }
.founder-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 38%; }

/* ---------- closer ---------- */
.closer { padding: 0; }
.closer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; max-width: none; }
.closer-media { position: relative; min-height: 520px; }
.closer-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closer-copy { padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.closer-copy h2 { margin-bottom: 24px; }
.closer-copy .body-copy { margin-bottom: 36px; }

/* ---------- footer ---------- */
.footer { position: relative; isolation: isolate; color: var(--fog); }
.footer-hero { position: relative; text-align: center; padding: 140px var(--pad-x) 110px; overflow: hidden; }
.footer-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.footer-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(22,35,43,.78); }
.footer-hero h2 { font-size: clamp(40px, 5vw, 76px); margin-bottom: 36px; }
.footer-hero .btn { margin-bottom: 18px; }
.footer-hero .f-phone { display: block; font: 400 14px/1.6 var(--font-mono); letter-spacing: .04em; color: var(--text-muted-rev); }
.footer-hero .f-phone a { color: var(--fog); text-decoration: none; border-bottom: 1px solid rgba(244,240,230,.4); }
.footer-body { background: var(--ink); padding: 72px 0 0; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 72px; }
.f-col h4 { font: 400 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted-rev); margin: 0 0 20px; border-bottom: 1px solid var(--hairline-rev); padding-bottom: 12px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.f-col a { text-decoration: none; font-size: 14.5px; color: var(--text-muted-rev); transition: color .2s ease; }
.f-col a:hover { color: var(--fog); }
.f-brand p { font-size: 14.5px; color: var(--text-muted-rev); max-width: 34ch; margin-top: 16px; }
.f-brand img { height: 26px; }
.footer-mark { border-top: 1px solid var(--hairline-rev); padding-top: 48px; padding-bottom: 28px; overflow: hidden; }
.footer-mark img { width: min(720px, 82%); height: auto; opacity: .92; filter: brightness(0) invert(.94); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-top: 20px; padding-bottom: 36px; font: 400 12px/1.6 var(--font-mono); letter-spacing: .03em; color: var(--text-muted-rev); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-back { position: absolute; inset: 0; background: rgba(22,35,43,.66); }
.modal-card { position: relative; background: var(--fog); color: var(--ink); border-radius: 12px; max-width: 520px; width: 100%; padding: 44px 40px; animation: modalUp .35s var(--reveal-ease); box-shadow: 0 40px 90px rgba(22,35,43,.45); border-bottom: var(--rule-w) solid var(--line); }
@keyframes modalUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal-card h3 { font: 500 30px/1.15 var(--font-display); font-variation-settings: var(--frx); margin-bottom: 14px; }
.modal-card p { color: var(--text-muted); margin-bottom: 28px; font-size: 15.5px; }
.modal-x { position: absolute; top: 16px; right: 16px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--text-muted); padding: 8px; }
.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.modal-actions .btn { justify-content: center; }
.modal-note { font: 400 12.5px/1.6 var(--font-mono); color: var(--text-muted); margin-top: 20px; text-align: center; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form label { font: 400 11px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 6px; }
.modal-form input {
  width: 100%; border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  padding: 13px 18px; font: 400 15px/1.3 var(--font-body); background: var(--paper); color: var(--ink);
}
.modal-form input:focus { outline: 2px solid var(--line); outline-offset: 1px; border-color: transparent; }
.modal-form .btn { justify-content: center; margin-top: 8px; }
.modal-alt { text-align: center; font-size: 14px; margin-top: 14px; }
.modal-alt a { font-weight: 600; }
.modal-success { display: none; text-align: center; padding: 24px 0 8px; }
.modal.is-sent .modal-form, .modal.is-sent .modal-alt { display: none; }
.modal.is-sent .modal-success { display: block; }
.modal-success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--fog); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 24px; box-shadow: inset 0 -3px 0 0 var(--line); }

/* ---------- live-site lightbox (browser-chrome preview) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 28px; }
.lightbox.is-open { display: flex; }
.lightbox-back { position: absolute; inset: 0; background: rgba(22,35,43,.78); }
.lightbox-card {
  position: relative; width: min(1160px, 96vw); height: min(760px, 88vh);
  background: var(--paper); border-radius: 12px; overflow: hidden;
  box-shadow: 0 50px 120px rgba(22,35,43,.55); animation: modalUp .35s var(--reveal-ease);
  display: flex; flex-direction: column;
}
.lb-chrome { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--fog); border-bottom: 1px solid var(--hairline); }
.lb-dots { display: flex; gap: 6px; }
.lb-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.lb-dots i:first-child { background: var(--line); }
.lb-url {
  flex: 1; display: flex; align-items: center; gap: 10px; background: var(--paper);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 8px 16px;
  font: 400 12.5px/1 var(--font-mono); color: var(--text-muted); letter-spacing: .02em;
  white-space: nowrap; overflow: hidden;
}
.lb-live { font: 600 9.5px/1 var(--font-body); letter-spacing: .08em; color: var(--fog); background: var(--line); border-radius: var(--radius-pill); padding: 4px 8px; }
.lb-open { font: 600 13px/1 var(--font-body); text-decoration: none; color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--radius-pill); padding: 9px 16px; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.lb-open:hover { background: var(--ink); color: var(--fog); }
.lb-x { background: none; border: 0; font-size: 20px; color: var(--text-muted); padding: 6px 10px; }
.lightbox-card iframe { flex: 1; width: 100%; border: 0; background: var(--paper); }

/* ---------- living sample report ---------- */
.tile-report .tr-bars i { transform: scaleY(.06); transform-origin: bottom; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.report-live .tr-bars i { transform: scaleY(1); }
.report-live .tr-bars i:nth-child(2) { transition-delay: .12s; }
.report-live .tr-bars i:nth-child(3) { transition-delay: .24s; }
.report-live .tr-bars i:nth-child(4) { transition-delay: .36s; }
.report-live .tr-bars i:nth-child(5) { transition-delay: .48s; }
.report-live .tr-bars i:nth-child(6) { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .tile-report .tr-bars i { transform: scaleY(1); transition: none; } }

/* ---------- sample SMS check-in (labeled sample; rolling out) ---------- */
.sms-demo { margin-top: auto; align-self: flex-end; width: min(300px, 78%); display: flex; flex-direction: column; gap: 8px; }
.sms-demo .sms-tag { align-self: flex-end; font: 400 9.5px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--fog); background: rgba(22,35,43,.72); border: 1px solid rgba(244,240,230,.35); border-radius: var(--radius-pill); padding: 5px 9px; }
.sms-bubble {
  font: 400 13.5px/1.45 var(--font-body); padding: 11px 14px; border-radius: 16px;
  opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease;
  box-shadow: 0 8px 24px rgba(22,35,43,.3);
}
.sms-bubble--out { background: var(--fog); color: var(--ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.sms-bubble--in { background: var(--river); color: var(--fog); border-bottom-left-radius: 4px; align-self: flex-start; }
.sms-demo.is-live .sms-bubble { opacity: 1; transform: none; }
.sms-demo.is-live .sms-bubble--out { transition-delay: .3s; }
.sms-demo.is-live .sms-bubble--in { transition-delay: 1.5s; }
@media (prefers-reduced-motion: reduce) { .sms-bubble { opacity: 1; transform: none; transition: none; } }
@media (max-width: 640px) { .sms-demo { width: 100%; } }

/* ---------- a11y ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: var(--fog); padding: 12px 20px; border-radius: 0 0 var(--radius) 0; font: 600 14px/1 var(--font-body); }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity var(--reveal-dur) var(--reveal-ease), transform var(--reveal-dur) var(--reveal-ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal-card, .mega { animation: none !important; }
  .collage-col, .marquee-track, .rcpt-track, .hero::after,
  .kb img, .kb--b img, .kb--c img, .scroll-cue svg, .drift-in .tile { animation: none !important; }
  .drift-in .tile { opacity: 1; }
  .odometer .digit span { transition: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  html { scroll-behavior: auto; }
}
/* no-JS failsafe: content never hidden without JS */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-ctas { margin-left: 0; }
  .nav-ctas .nav-phone { display: none; }
  .nav.nav--open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--ink); padding: 24px var(--pad-x) 32px; gap: 20px; border-top: 1px solid var(--hairline-rev);
  }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-collage { height: 420px; margin: 0 calc(-1 * var(--pad-x)); grid-template-columns: 1fr 1fr 1fr; padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .pillar-img { aspect-ratio: 16/10; }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plat-grid { grid-template-columns: 1fr; }
  .plat-card--report { grid-row: auto; }
  .plat-card--wide { grid-column: auto; }
  .bene-grid { grid-template-columns: 1fr 1fr; }
  .founder .wrap, .closer .wrap { grid-template-columns: 1fr; }
  .founder-media, .closer-media { min-height: 380px; order: -1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .platform-head { grid-template-columns: 1fr; }
  .statement .wrap { grid-template-columns: 1fr; }
  .statement--flip .st-copy { order: 0; }
  .statement--flip .st-media { order: 1; }
}
@media (max-width: 640px) {
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat-num { font-size: 60px; }
  .stat-desc { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-copy { padding-top: 24px; }
  .hero-collage { grid-template-columns: 1fr 1fr; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .bene-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .rcpt { width: 300px; }
  .cmp-who p { display: none; }
}

/* ---- Legal pages + SMS consent microcopy (added 2026-07-05) ---- */
.footer-legal a { color: var(--fog); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--line); }

.sms-consent { margin-top: 12px; font: 400 11.5px/1.5 var(--font-mono); letter-spacing: .01em; color: var(--text-muted-rev); max-width: 54ch; }
.sms-consent a { color: var(--fog); text-decoration: underline; text-underline-offset: 2px; }
.sms-consent a:hover { color: var(--line); }

.textbox-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; flex-shrink: 0; }
.textbox-consent { margin: 0; font: 400 11.5px/1.5 var(--font-mono); letter-spacing: .01em; color: var(--text-muted-rev); max-width: 34ch; }
.textbox-consent a { color: var(--fog); text-decoration: underline; text-underline-offset: 2px; }
.textbox-consent a:hover { color: var(--line); }
@media (max-width: 900px) { .textbox-cta { align-self: stretch; } }

.legalsec { padding: 20px 0 100px; }
.legal { max-width: 68ch; }
.legal .legal-updated { font: 400 12px/1.5 var(--font-mono); letter-spacing: .04em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 32px; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-variation-settings: var(--frx); font-size: clamp(21px, 2vw, 26px); line-height: 1.2; margin: 40px 0 12px; color: var(--ink); }
.legal h2:first-of-type { margin-top: 0; }
.legal p { font-size: 16.5px; line-height: 1.68; color: var(--text-muted); margin-bottom: 16px; }
.legal ul { margin: 0 0 16px 20px; }
.legal li { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); margin-bottom: 8px; }
.legal a { color: var(--line); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); font-weight: 600; }

/* ---- Photo credit chip (liquid glass) — real guide photography attribution ---- */
.ph-wrap { position: relative; display: block; }
.plat-card--photo .ph-wrap { position: absolute; inset: 0; }
.ph-credit {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  font: 400 8.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.78); text-decoration: none; white-space: nowrap;
  padding: 4px 8px; border-radius: var(--radius-pill);
  background: rgba(22,35,43,.28);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .2s ease, color .2s ease;
}
a.ph-credit:hover, a.ph-credit:focus-visible { background: rgba(22,35,43,.6); color: #fff; }
@supports not (backdrop-filter: blur(1px)) { .ph-credit { background: rgba(22,35,43,.6); } }
@media (max-width: 520px) { .ph-credit { font-size: 8px; padding: 3px 7px; right: 6px; bottom: 6px; } }
