/* ============================================================
   Brandon Abelson — consulting site
   Design tokens + layout + the four scroll mechanics
   ============================================================ */

:root{
  --ink:        #08090C;
  --ink-2:      #0D0F14;
  --text:       #EDEDF0;
  --muted:      #8B909C;
  --muted-2:    #626878;
  --accent:     #F0A03C;
  --accent-dim: #8A5E22;
  --line:       rgba(255,255,255,.09);
  --line-2:     rgba(255,255,255,.05);

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 64px);

  /* driven by JS: hero scroll progress 0 → 1 */
  --hero-p: 0;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img,video,canvas{ max-width:100%; display:block; }

::selection{ background:var(--accent); color:#12120C; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--accent); color:#12120C; padding:12px 18px; font-weight:600;
}
.skip:focus{ left:12px; top:12px; }

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:2px;
}

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin-inline:auto;
  padding-inline:var(--gut);
}

/* ── MECHANIC 1: PINNED BACKDROP LAYER ───────────────────────
   Fixed, full-viewport, z-0. Everything else scrolls over it.
   This is most of the parallax effect.                       */
.backdrop{
  position:fixed;
  inset:0;
  width:100%;
  height:100lvh;
  z-index:0;
  overflow:clip;
  background:
    radial-gradient(120% 80% at 50% 0%, #10131C 0%, var(--ink) 55%),
    var(--ink);
  pointer-events:none;
}
.backdrop canvas{ width:100%; height:100%; display:block; }
.backdrop-veil{
  position:absolute; inset:0;
  background:
    radial-gradient(90% 60% at 50% 42%, rgba(240,160,60,.055), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(8,9,12,.85) 100%);
}

/* ── MECHANIC 2: PINNED HERO HEADLINE ────────────────────────
   Out of flow, fixed. --hero-p (0→1) is written by JS as the
   viewport crosses the .hero-spacer below.                   */
.hero-fixed{
  position:relative;
  z-index:2;
  padding-block:22vh 12vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding-inline:var(--gut);
}

/* pinned + scroll-driven only when JS is running */
.js .hero-fixed{
  position:fixed;
  inset-inline:0;
  top:50%;
  padding-block:0;
  pointer-events:none;
  transform:
    translateY(-50%)
    translateY(calc(var(--hero-p) * -6vh))
    scale(calc(1 - var(--hero-p) * .12));
  opacity:calc(1 - var(--hero-p) * 1.35);
  filter:blur(calc(var(--hero-p) * 7px));
  will-change:transform,opacity,filter;
}
.hero-fixed[data-done="1"]{ visibility:hidden; }
.hero-fixed a{ pointer-events:auto; }

.hero-eyebrow{
  font-size:12px; letter-spacing:.22em; text-transform:uppercase;
  color:var(--accent); font-weight:600; margin:0 0 26px;
}

.hero-h1{
  margin:0;
  font-weight:600;
  letter-spacing:-.035em;
  line-height:1.02;
  font-size:clamp(34px, 6.4vw, 82px);
  max-width:16ch;
}
.hero-h1 .line{ display:block; }
.hero-h1 .line-2{ color:var(--muted); }

.hero-sub{
  margin:30px 0 0;
  max-width:56ch;
  color:var(--muted);
  font-size:clamp(15px,1.6vw,18px);
}

.hero-cta{ margin-top:32px; }

.scroll-cue{
  margin-top:44px; width:1px; height:56px;
  background:linear-gradient(180deg, var(--line), transparent);
  position:relative; overflow:hidden;
}
.scroll-cue span{
  position:absolute; inset-inline:0; top:0; height:16px;
  background:var(--accent);
  animation:cue 2.4s ease-in-out infinite;
}
@keyframes cue{
  0%{ transform:translateY(-16px); opacity:0 }
  30%{ opacity:1 }
  100%{ transform:translateY(56px); opacity:0 }
}

/* the tall empty section the pinned headline animates across */
.hero-spacer{ display:none; }
.js .hero-spacer{ display:block; height:200vh; }

/* ── MECHANIC 3: SPLIT-TEXT REVEAL ───────────────────────── */
.word{ display:inline-block; white-space:nowrap; }
.char{ display:inline-block; }
.js .char{
  transform:translateY(.9em);
  opacity:0;
  transition:transform .62s cubic-bezier(.22,.75,.2,1), opacity .62s ease;
  transition-delay:var(--d, 0ms);
  will-change:transform,opacity;
}
.split-in .char{ transform:none; opacity:1; }

/* generic scroll reveal */
.js .reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s ease, transform .7s cubic-bezier(.22,.75,.2,1);
}
.js .reveal.in{ opacity:1; transform:none; }

/* ── MECHANIC 4: FIXED PILL NAV + SCROLL-SPY ─────────────── */
.pillnav{ display:none; }
.js .pillnav{
  display:block;
  position:fixed;
  bottom:0; left:50%;
  transform:translateX(-50%) translateY(calc((1 - var(--nav-in,0)) * 130%));
  z-index:60;
  padding:0 16px 18px;
  max-width:100vw;
  transition:transform .45s cubic-bezier(.22,.75,.2,1);
}
.pillnav-track{
  display:flex; gap:4px;
  padding:6px;
  background:rgba(14,16,22,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid var(--line);
  border-radius:999px;
  overflow-x:auto;
  scrollbar-width:none;
  max-width:100%;
}
.pillnav-track::-webkit-scrollbar{ display:none; }
.chip{
  flex:0 0 auto;
  appearance:none; border:0; background:transparent;
  color:var(--muted);
  font:inherit; font-size:13.5px; font-weight:500;
  padding:8px 15px; border-radius:999px;
  cursor:pointer; white-space:nowrap;
  transition:color .2s ease, background-color .2s ease;
}
.chip:hover{ color:var(--text); }
.chip[aria-current="true"]{
  color:#12120C;
  background:var(--accent);
  font-weight:600;
}

/* ── SHARED SECTION FURNITURE ────────────────────────────── */
main{ position:relative; z-index:1; }

.section{
  position:relative;
  padding-block:clamp(84px, 11vh, 132px);
}
.section + .section{ border-top:1px solid var(--line-2); }

.eyebrow{
  display:block;
  font-size:12px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--accent); font-weight:600; margin-bottom:22px;
}

.h2{
  font-size:clamp(30px, 4.6vw, 58px);
  line-height:1.04;
  letter-spacing:-.032em;
  font-weight:600;
  margin:0 0 24px;
  max-width:18ch;
}

.lede{
  font-size:clamp(19px, 2.3vw, 27px);
  line-height:1.45;
  letter-spacing:-.015em;
  max-width:34ch;
  margin:0 0 32px;
}
.section-thesis .lede:last-of-type{ color:var(--muted); }

.pillar-lede{
  color:var(--muted);
  max-width:62ch;
  font-size:clamp(16px,1.7vw,19px);
  margin:0;
}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 24px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--text);
  text-decoration:none;
  font-weight:500; font-size:15px;
  transition:border-color .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover{ border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.04); }
.btn-primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#12120C;
  font-weight:600;
}
.btn-primary:hover{ background:#F5B15C; border-color:#F5B15C; color:#12120C; }

/* ── SHARED ──────────────────────────────────────────────── */
.section-lede{
  color:var(--muted);
  max-width:62ch;
  font-size:clamp(16px,1.8vw,19px);
  margin:0 0 8px;
}

.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:32px; }

/* ── ROSTER ──────────────────────────────────────────────── */
.section-roster{ padding-block:clamp(56px,8vh,88px); }
.roster-label{
  margin:0 0 22px;
  font-size:12px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted-2);
}
.roster{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:8px;
}
.roster li{
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 18px;
  font-size:14.5px;
  color:var(--text);
  background:rgba(255,255,255,.02);
}
.roster-note{ margin:22px 0 0; font-size:13px; color:var(--muted-2); }
.roster-note strong{ color:var(--accent); font-weight:600; }

/* ── RESULTS BAND ────────────────────────────────────────── */
.results{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(268px,1fr));
  gap:1px; background:var(--line);
  border:1px solid var(--line);
  border-radius:16px; overflow:hidden;
  margin-top:52px;
}
.result{
  background:var(--ink-2);
  padding:34px 30px 30px;
  display:flex; flex-direction:column;
}
.result-n{
  font-size:clamp(28px,3.4vw,40px);
  font-weight:600; letter-spacing:-.035em; line-height:1.02;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
  margin-bottom:16px;
}
.result-l{ font-size:15px; color:var(--muted); line-height:1.55; margin-bottom:20px; }
.result-tag{
  margin-top:auto; padding-top:16px;
  border-top:1px solid var(--line-2);
  font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted-2);
}
.result-todo{ background:repeating-linear-gradient(135deg, var(--ink-2), var(--ink-2) 10px, rgba(240,160,60,.045) 10px, rgba(240,160,60,.045) 20px); }
.result-todo .result-n{ color:var(--muted-2); }

/* ── SERVICES ────────────────────────────────────────────── */
.svcs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:1px; background:var(--line-2);
  border-block:1px solid var(--line-2);
  margin-top:52px;
}
.svc{ background:var(--ink); padding:34px 30px 36px; }
.svc-n{
  display:block; margin-bottom:16px;
  font-size:12px; letter-spacing:.18em; color:var(--accent); font-weight:600;
}
.svc h3{ margin:0 0 12px; font-size:21px; font-weight:600; letter-spacing:-.02em; line-height:1.2; }
.svc > p{ margin:0 0 22px; color:var(--muted); font-size:15px; line-height:1.6; }
.tags{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.tags li{
  font-size:12.5px;
  color:var(--muted-2);
  border:1px solid var(--line-2);
  border-radius:6px;
  padding:5px 10px;
}

/* ── CASE STUDIES ────────────────────────────────────────── */
.cases{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:20px;
  margin-top:52px;
}
.case{
  border:1px solid var(--line);
  border-radius:16px;
  padding:32px 30px 30px;
  background:linear-gradient(180deg,var(--ink-2),rgba(13,15,20,.35));
  display:flex; flex-direction:column;
}
.case-tag{
  font-size:11.5px; letter-spacing:.13em; text-transform:uppercase;
  color:var(--muted-2); margin-bottom:16px;
}
.case h3{ margin:0 0 16px; font-size:22px; font-weight:600; letter-spacing:-.022em; line-height:1.22; }
.case > p{ margin:0 0 26px; color:var(--muted); font-size:15px; line-height:1.62; }
.case-metrics{
  margin-top:auto;
  display:grid; grid-template-columns:1fr 1fr; gap:20px;
  padding-top:22px; border-top:1px solid var(--line-2);
}
.cm-n{
  display:block;
  font-size:22px; font-weight:600; letter-spacing:-.03em; color:var(--accent);
  margin-bottom:6px;
}
.cm-l{ display:block; font-size:12.5px; color:var(--muted-2); line-height:1.4; }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.quotes{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  gap:20px;
  margin-top:12px;
}
.quote{
  margin:0;
  border:1px solid var(--line);
  border-radius:16px;
  padding:30px 28px;
  background:var(--ink-2);
}
.quote p{
  margin:0 0 24px;
  font-family:var(--serif);
  font-size:19px; line-height:1.45;
}
.quote cite{ font-style:normal; display:block; }
.quote cite strong{ display:block; font-family:var(--sans); font-size:14.5px; font-weight:600; }
.quote cite span{ display:block; font-size:13px; color:var(--muted-2); margin-top:3px; }
.quote-todo{
  border-style:dashed;
  border-color:rgba(240,160,60,.35);
  background:rgba(240,160,60,.03);
}
.quote-todo p{ font-family:var(--sans); font-size:14.5px; color:var(--muted); line-height:1.6; }
.quote-todo cite strong,.quote-todo cite span{ color:var(--muted-2); }

/* ── PROCESS ─────────────────────────────────────────────── */
.steps{
  list-style:none; margin:44px 0 0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1px; background:var(--line-2);
  border-block:1px solid var(--line-2);
}
.step{ background:var(--ink); padding:34px 30px 36px; }
.step-n{
  display:block; margin-bottom:18px;
  font-family:var(--serif); font-size:38px; line-height:1; color:var(--accent);
}
.step h3{ margin:0 0 12px; font-size:19px; font-weight:600; letter-spacing:-.02em; }
.step p{ margin:0; color:var(--muted); font-size:15px; line-height:1.6; }

/* ── WHY ME ──────────────────────────────────────────────── */
.whys{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1px; background:var(--line-2);
  border-block:1px solid var(--line-2);
  margin-top:44px;
}
.why{ background:var(--ink); padding:32px 28px 34px; }
.why h3{ margin:0 0 12px; font-size:18px; font-weight:600; letter-spacing:-.015em; line-height:1.28; }
.why p{ margin:0; color:var(--muted); font-size:15px; line-height:1.6; }
.why-note{
  margin:26px 0 0; font-size:14px; color:var(--muted-2);
}

/* ── CONTACT + FOOTER ────────────────────────────────────── */
.section-contact{ text-align:center; padding-block:clamp(100px,13vh,150px); }
.contact-h{
  font-size:clamp(36px,6.5vw,84px);
  line-height:1;
  letter-spacing:-.04em;
  font-weight:600;
  margin:0 0 24px;
}
.contact-sub{ margin:0 auto 40px; max-width:48ch; color:var(--muted); font-size:clamp(16px,1.8vw,19px); }
.contact-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

.footer{
  position:relative; z-index:1;
  border-top:1px solid var(--line-2);
  background:var(--ink);
  padding-block:34px 92px;
}
.footer-in{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:13px; color:var(--muted-2);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width:720px){
  .hero-spacer{ height:160vh; }
  .part{ grid-template-columns:1fr; }
  .part h3,.part p{ grid-column:1; }
  .receipt{ padding:24px 22px; }
  .footer{ padding-bottom:104px; }
}

/* ── REDUCED MOTION: everything static and fully readable ── */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .js .hero-fixed{
    position:static;
    transform:none !important;
    opacity:1 !important;
    filter:none !important;
    padding-block:22vh 12vh;
    visibility:visible !important;
  }
  .js .hero-spacer{ display:none; }
  .scroll-cue{ display:none; }
  .js .char{ transform:none !important; opacity:1 !important; transition:none !important; }
  .js .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  .js .pillnav{ transform:translateX(-50%) !important; }
  *{ animation:none !important; }
}

/* ── NO-JS: base styles above are already the static, readable
   version. The .js class (set inline in <head>) opts into motion. */


/* ============================================================
   MULTI-PAGE CHROME
   ============================================================ */

/* ── SITE HEADER ─────────────────────────────────────────── */
.site-head{
  position:fixed; inset-inline:0; top:0; z-index:80;
  background:rgba(8,9,12,.72);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-2);
}
.head-in{
  max-width:var(--wrap); margin-inline:auto;
  padding:12px var(--gut);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{
  font-weight:600; font-size:16px; letter-spacing:-.02em;
  color:var(--text); text-decoration:none; white-space:nowrap;
}
.brand:hover{ color:var(--accent); }
.head-nav{ display:flex; align-items:center; gap:6px; }
.head-link{
  color:var(--muted); text-decoration:none; font-size:14.5px;
  padding:8px 12px; border-radius:8px;
}
.head-link:hover{ color:var(--text); background:rgba(255,255,255,.04); }

/* services dropdown — <details>, works without JS */
.svc-menu{ position:relative; }
.svc-menu summary{
  list-style:none; cursor:pointer;
  color:var(--muted); font-size:14.5px;
  padding:8px 12px; border-radius:8px;
  display:flex; align-items:center; gap:6px;
}
.svc-menu summary::-webkit-details-marker{ display:none; }
.svc-menu summary::after{
  content:""; width:5px; height:5px;
  border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
}
.svc-menu summary:hover{ color:var(--text); background:rgba(255,255,255,.04); }
.svc-menu[open] summary{ color:var(--text); }
.svc-menu-list{
  position:absolute; top:calc(100% + 10px); right:0;
  min-width:280px; list-style:none; margin:0; padding:6px;
  background:#0E1016;
  border:1px solid var(--line); border-radius:12px;
  box-shadow:0 20px 50px rgba(0,0,0,.55);
}
.svc-menu-list a{
  display:block; padding:10px 14px; border-radius:8px;
  color:var(--muted); text-decoration:none; font-size:14.5px;
}
.svc-menu-list a:hover{ color:var(--text); background:rgba(255,255,255,.05); }
.svc-menu-list a[aria-current="page"]{ color:var(--accent); }

.btn-sm{ padding:9px 16px; font-size:14px; }

/* header is fixed, so the static (no-JS / reduced-motion) hero needs clearance */
.hero-fixed{ padding-top:calc(22vh + 56px); }
.js .hero-fixed{ padding-top:0; }

/* ── SERVICE PAGE HERO ───────────────────────────────────── */
.page-service .js .hero-spacer{ height:150vh; }
.page-hero .hero-h1{ font-size:clamp(32px,5.6vw,72px); max-width:20ch; }
.page-hero .hero-sub{ max-width:60ch; }

/* ── HOME SERVICE INDEX ──────────────────────────────────── */
.idx{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:1px; background:var(--line-2);
  border-block:1px solid var(--line-2);
  margin-top:52px;
}
.idx-card{
  background:var(--ink);
  padding:34px 30px 32px;
  display:flex; flex-direction:column;
  text-decoration:none; color:inherit;
  transition:background-color .25s ease;
}
.idx-card:hover{ background:var(--ink-2); }
.idx-lead{ background:linear-gradient(180deg,rgba(240,160,60,.07),var(--ink) 60%); }
.idx-n{
  display:block; margin-bottom:16px;
  font-size:12px; letter-spacing:.18em; color:var(--accent); font-weight:600;
}
.idx-card h3{ margin:0 0 12px; font-size:22px; font-weight:600; letter-spacing:-.022em; }
.idx-card > p{ margin:0 0 22px; color:var(--muted); font-size:15px; line-height:1.6; }
.idx-card .tags{ margin-bottom:24px; }
.idx-go{
  margin-top:auto; display:inline-flex; align-items:center; gap:8px;
  color:var(--accent); font-size:14.5px; font-weight:600;
}
.idx-go::after{ content:"\2192"; transition:transform .2s ease; }
.idx-card:hover .idx-go::after{ transform:translateX(4px); }

/* ── RELATED SERVICES (service page foot) ────────────────── */
.section-related{ padding-block:clamp(72px,10vh,110px); }
.rels{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px; margin-top:36px;
}
.rel-card{
  border:1px solid var(--line); border-radius:14px;
  padding:28px 26px;
  text-decoration:none; color:inherit;
  background:var(--ink-2);
  display:flex; flex-direction:column;
  transition:border-color .2s ease;
}
.rel-card:hover{ border-color:rgba(240,160,60,.45); }
.rel-card h3{ margin:0 0 10px; font-size:19px; font-weight:600; letter-spacing:-.02em; }
.rel-card p{ margin:0 0 20px; color:var(--muted); font-size:14.5px; line-height:1.55; }
.rel-go{
  margin-top:auto; color:var(--accent); font-size:14px; font-weight:600;
  display:inline-flex; align-items:center; gap:7px;
}
.rel-go::after{ content:"\2192"; transition:transform .2s ease; }
.rel-card:hover .rel-go::after{ transform:translateX(4px); }

/* ── FOOTER SITEMAP ──────────────────────────────────────── */
.footer-grid{
  display:grid; grid-template-columns:2fr 1fr 1fr;
  gap:40px; padding-bottom:40px;
}
.footer-brand{ margin:0 0 10px; font-weight:600; font-size:16px; }
.footer-blurb{ margin:0; color:var(--muted-2); font-size:14px; max-width:34ch; }
.footer-h{
  margin:0 0 14px; font-size:11.5px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted-2);
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.footer-col a{ color:var(--muted); text-decoration:none; font-size:14px; }
.footer-col a:hover{ color:var(--accent); }
.footer-in{ padding-top:26px; border-top:1px solid var(--line-2); }

@media (max-width:820px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; }
  .footer-col:first-child{ grid-column:1 / -1; }
}
@media (max-width:640px){
  .head-link{ display:none; }
  .head-in{ padding-inline:16px; }
  .svc-menu-list{ min-width:min(280px, calc(100vw - 32px)); }
  .page-service .js .hero-spacer{ height:130vh; }
}

/* ── INLINE CONTENT LINKS ────────────────────────────────── */
.svc p a,
.step p a,
.section-lede a,
.lede a,
.why p a,
.case p a{
  color:var(--accent);
  text-decoration:none;
  border-bottom:1px solid rgba(240,160,60,.35);
  transition:border-color .2s ease;
}
.svc p a:hover,
.step p a:hover,
.section-lede a:hover,
.lede a:hover,
.why p a:hover,
.case p a:hover{ border-bottom-color:var(--accent); }


/* ============================================================
   THE PUSH — phone search that expands into the results wall
   Self-playing loop, acts on the section via [data-act]:
     phone → typing → loading → results → expand → reset → …
   Base styles (no attribute) ARE the final expanded state, so
   no-JS and reduced-motion render the payoff statically.
   ============================================================ */

.section-push{ text-align:center; }
.show-head .h2{ margin-inline:auto; }

.show-captions{ display:grid; justify-items:center; min-height:2.6em; margin-top:4px; }
.cap{
  grid-area:1/1; margin:0; max-width:56ch;
  color:var(--muted); font-size:clamp(15px,1.7vw,18px);
  opacity:0; transform:translateY(10px);
  transition:opacity .5s ease, transform .5s ease;
}
.cap-b{ opacity:1; transform:none; }                                   /* final */
[data-act]:not([data-act="expand"]) .cap-b{ opacity:0; transform:translateY(10px); }
[data-act="typing"] .cap-a, [data-act="loading"] .cap-a,
[data-act="results"] .cap-a{ opacity:1; transform:none; }

.push-stage{
  position:relative;
  --push-r:clamp(150px,19vw,250px);
  margin-top:clamp(24px,4vh,44px);
  min-height:clamp(540px,72vh,680px);
  display:flex; justify-content:center; align-items:center;
  perspective:1100px;
}

/* ── bubbles ─────────────────────────────────────────────── */
.bubset{ display:contents; }
.bub{
  position:absolute; z-index:3;
  background:#5A4FE0; color:#fff;
  font-size:13.5px; font-weight:600; white-space:nowrap;
  padding:10px 18px; border-radius:999px;
  box-shadow:0 12px 32px rgba(50,40,160,.45);
  opacity:0; transform:translateY(14px) scale(.9);
  transition:opacity .5s ease, transform .5s cubic-bezier(.22,.75,.2,1);
}
.bubset .bub:nth-child(1){ right:calc(50% + var(--push-r)); top:14%; transition-delay:0s; }
.bubset .bub:nth-child(2){ left:calc(50% + var(--push-r)); top:34%; transition-delay:.12s; }
.bubset .bub:nth-child(3){ right:calc(50% + var(--push-r) - 40px); top:62%; transition-delay:.24s; }
.bubset-b .bub{ background:var(--accent); color:#12120C; box-shadow:0 12px 32px rgba(240,160,60,.3); }

.bubset-b .bub{ opacity:1; transform:none; }                            /* final */
[data-act]:not([data-act="expand"]) .bubset-b .bub{ opacity:0; transform:translateY(14px) scale(.9); }
[data-act="results"] .bubset-a .bub{ opacity:1; transform:none; }

/* ── phone ───────────────────────────────────────────────── */
.phone-float{
  position:relative; z-index:2;
  animation:pfloat 7s ease-in-out infinite;
  opacity:0; visibility:hidden;                                          /* final: gone */
  transition:opacity .6s ease, visibility .6s;
}
[data-act]:not([data-act="expand"]) .phone-float{ opacity:1; visibility:visible; }
@keyframes pfloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-12px); } }
[data-act="expand"] .phone-float{ animation-play-state:paused; }

.phone-enter{ transform-style:preserve-3d; }
.js .phone-enter.pre{ opacity:0; transform:rotateY(26deg) rotateX(5deg) translateY(46px); }
.js .phone-enter.live{
  opacity:1; transform:none;
  transition:opacity .9s ease, transform 1.05s cubic-bezier(.22,.75,.2,1);
}
[data-act="expand"] .phone-enter.live{                     /* recede as the cards leap out */
  transform:scale(.9) translateY(14px);
  opacity:0;
  transition:opacity .5s ease .16s, transform .7s ease .1s;
}

.phone{
  position:relative;
  width:clamp(230px,24vw,280px);
  aspect-ratio:9/18.5;
  background:#F2F3F6;
  border-radius:42px;
  border:9px solid #17181D;
  box-shadow:0 40px 90px rgba(0,0,0,.55);
  overflow:hidden;
  will-change:transform;
}
.p-island{
  position:absolute; top:10px; left:50%; transform:translateX(-50%);
  width:34%; height:20px; background:#17181D; border-radius:999px; z-index:2;
}
.p-screen{
  height:100%;
  padding:44px 12px 14px;
  display:flex; flex-direction:column; gap:9px;
  background:linear-gradient(180deg,#F7F7FA,#ECEEF3);
  color:#16181D; text-align:left;
}
.p-q{
  background:#fff; border-radius:999px; padding:9px 14px;
  font-size:12.5px; font-weight:600; min-height:35px;
  box-shadow:0 2px 8px rgba(20,22,30,.08);
}
.p-caret{
  display:none; width:2px; height:12px; margin-left:2px;
  background:#16181D; vertical-align:-2px;
}
[data-act="typing"] .p-caret{ display:inline-block; animation:blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }

.p-label{
  font-size:10px; letter-spacing:.08em; text-transform:uppercase;
  color:#8A8F99; padding-left:4px;
  opacity:0; transition:opacity .4s ease;
}
[data-act="results"] .p-label{ opacity:1; }

.p-rows{ display:grid; }
.p-skels, .p-list{ grid-area:1/1; display:flex; flex-direction:column; gap:9px; }

.skel{
  height:62px; border-radius:12px;
  background:linear-gradient(90deg,#E7E9EE 25%,#F5F6F9 45%,#E7E9EE 65%);
  background-size:200% 100%;
  animation:shimmer 1.1s linear infinite;
  opacity:0; transition:opacity .3s ease;
}
[data-act="loading"] .skel{ opacity:1; }
@keyframes shimmer{ from{ background-position:180% 0; } to{ background-position:-20% 0; } }

.p-list .mrow{
  opacity:0; transform:translateY(10px);
  transition:opacity .45s ease, transform .45s cubic-bezier(.22,.75,.2,1);
}
.p-list .mrow:nth-child(2){ transition-delay:.12s; }
.p-list .mrow:nth-child(3){ transition-delay:.24s; }
[data-act="results"] .p-list .mrow{ opacity:1; transform:none; }

.mrow{
  position:relative;
  display:flex; gap:10px; align-items:center;
  background:#fff; border-radius:12px; padding:8px;
  box-shadow:0 2px 8px rgba(20,22,30,.06);
}
.mtile{
  flex:none; width:52px; height:46px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
}
.mtile svg{ width:70%; height:auto; }
.mtile-2{ background:linear-gradient(160deg,#E9DED6,#D5BBA8); }
.mtile-you{ background:linear-gradient(160deg,#F6EFDF,#E8D3A8); }
.mtile-4{ background:linear-gradient(160deg,#DFE4E8,#BFC9D2); }
.mbody{ min-width:0; }
.mname{ font-size:11.5px; font-weight:600; line-height:1.25; }
.mstars{ font-size:10px; color:#E8A33D; letter-spacing:.04em; }
.mstars em{ font-style:normal; color:#8A8F99; }
.mprice{ font-size:12.5px; font-weight:700; margin-top:2px; }

.mrow-you{ outline:2px solid var(--accent); }
.rank-b{
  position:absolute; top:-10px; right:8px; z-index:2;
  background:#16181D; color:#fff;
  font-size:10px; font-weight:600;
  padding:3px 9px; border-radius:999px;
}
.rank-b b{ color:var(--accent); }

.mtag{
  display:inline-block; font-size:8.5px; font-weight:700; letter-spacing:.07em;
  text-transform:uppercase; padding:1px 6px; border-radius:3px; margin-bottom:2px;
}
.mtag-sp{ background:#EEF0F3; color:#6B7280; }
.mtag-org{ background:#E4F5E8; color:#1F7A3D; }

.p-more{ margin-top:auto; text-align:center; font-size:11px; font-weight:600; color:#5A4FE0; }
.p-dock{ display:flex; gap:16px; justify-content:center; padding-top:8px; }
.p-dock span{ width:26px; height:26px; border-radius:8px; background:#DDE0E7; }

/* ── the expanded results wall ───────────────────────────── */
.serp-big{
  position:absolute; inset:0; z-index:1;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  gap:22px;
}
[data-act]:not([data-act="expand"]) .serp-big{ pointer-events:none; }

.serp-bar{
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  background:#fff; color:#16181D;
  border-radius:999px; padding:10px 20px;
  width:min(560px,90%);
  font-size:14px; font-weight:600;
  transition:opacity .5s ease .4s, transform .5s ease .4s;
}
[data-act]:not([data-act="expand"]) .serp-bar{
  opacity:0; transform:translateY(-12px); transition-delay:0s;
}
.serp-meta{ color:#8A8F99; font-weight:400; font-size:12.5px; white-space:nowrap; }

.serp{
  --step:clamp(150px,15vw,204px);   /* distance each card flies from the phone */
  display:flex; gap:14px; justify-content:center; align-items:flex-end;
  width:min(1060px,94vw);
}

.pcard{
  flex:0 1 190px; min-width:0;
  background:#fff; color:#16181D;
  border-radius:14px; overflow:hidden;
  box-shadow:0 14px 40px rgba(0,0,0,.35);
  transition:opacity .45s ease, transform .85s cubic-bezier(.26,1.25,.4,1);
}
/* how far (in steps) each card must travel back to the phone screen */
.pcard:nth-child(1){ --cx:2; }
.pcard:nth-child(2){ --cx:1; }
.pcard:nth-child(3){ --cx:0; }
.pcard:nth-child(4){ --cx:-1; }
.pcard:nth-child(5){ --cx:-2; }
/* collapsed: shrunk into the phone screen, hidden behind the device */
[data-act]:not([data-act="expand"]) .pcard{
  opacity:0;
  transform:translate(calc(var(--cx,0) * var(--step)), -28px) scale(.22) rotate(calc(var(--cx,0) * -5deg));
  transition-delay:0s;
}
/* burst order: the center card leaps first, then outward */
.pcard:nth-child(3){ transition-delay:0s; }
.pcard:nth-child(2), .pcard:nth-child(4){ transition-delay:.09s; }
.pcard:nth-child(1), .pcard:nth-child(5){ transition-delay:.18s; }

.ptile{ position:relative; aspect-ratio:5/4; display:flex; align-items:center; justify-content:center; }
.ptile svg{ width:62%; height:auto; }
.ptile-1{ background:linear-gradient(160deg,#E8E4DA,#CEC6B4); }
.ptile-5{ background:linear-gradient(160deg,#EDE0DE,#D6BFBA); }

.pbody{ padding:12px 14px 14px; text-align:left; }
.pbrand{ font-size:11px; color:#8A8F99; letter-spacing:.04em; }
.pname{ font-size:13.5px; font-weight:600; line-height:1.3; margin:2px 0 6px; }
.pstars{ font-size:12px; color:#E8A33D; letter-spacing:.05em; }
.pstars em{ font-style:normal; color:#8A8F99; }
.pprice{ font-size:15px; font-weight:700; margin-top:6px; }
.pbody .mtag{ font-size:10px; padding:2px 8px; border-radius:4px; margin-bottom:6px; }

/* singled-out selections in the wall */
.pcard-you{
  position:relative; z-index:2;
  transform:translateY(-16px) scale(1.05);
  box-shadow:0 26px 60px rgba(0,0,0,.5), 0 0 0 2px var(--accent);
}
[data-act]:not([data-act="expand"]) .pcard-you{
  opacity:0; transform:translate(0,-28px) scale(.22);
}
.rank-big{ top:10px; right:auto; left:10px; font-size:11px; padding:4px 10px; }
.serp .pcard:first-child, .serp .pcard:last-child{ opacity:.72; transform:scale(.97); }
[data-act]:not([data-act="expand"]) .serp .pcard:first-child{
  opacity:0; transform:translate(calc(2 * var(--step)), -28px) scale(.22) rotate(-10deg);
}
[data-act]:not([data-act="expand"]) .serp .pcard:last-child{
  opacity:0; transform:translate(calc(-2 * var(--step)), -28px) scale(.22) rotate(10deg);
}

.show-note{
  margin:clamp(26px,4vh,40px) auto 0; text-align:center;
  font-size:13px; color:var(--muted-2); max-width:60ch;
}
.show-note a{ color:var(--accent); text-decoration:none; }
.show-note a:hover{ text-decoration:underline; }

/* small screens */
@media (max-width:820px){
  .serp .pcard:first-child, .serp .pcard:last-child{ display:none; }
  .pcard{ flex-basis:160px; }
}
@media (max-width:760px){
  .push-stage{ flex-direction:column; gap:18px; min-height:clamp(560px,80vh,720px); }
  .bubbles{ display:grid; justify-items:center; min-height:86px; width:100%; }
  .bubset{ display:flex; grid-area:1/1; gap:8px; flex-wrap:wrap; justify-content:center; align-content:flex-start; }
  .bubset .bub:nth-child(1), .bubset .bub:nth-child(2), .bubset .bub:nth-child(3){
    position:static; right:auto; left:auto; top:auto;
  }
  .bub{ font-size:12.5px; padding:8px 14px; white-space:normal; text-align:center; }
  .serp-big{ position:absolute; inset:auto 0 0 0; top:86px; }
}

@media (prefers-reduced-motion:reduce){
  .phone-float{ animation:none; }
  .cap, .bub, .pcard, .serp-bar{ transition:none !important; }
}


/* ── FIGURE BLOCKS ───────────────────────────────────────── */
.section-figure{ padding-block:clamp(72px,9vh,110px); }
.figure{ margin:44px 0 0; }
.figure img, .figure video{
  width:100%; height:auto; display:block;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  background:#0D1018;
}
.figure figcaption{
  margin-top:14px;
  font-size:13px; color:var(--muted-2);
  text-align:center;
}


/* ── REFERENCE SCENE: one scroll section, many addressable entries ── */
.ref-updated{
  margin:-12px 0 36px;
  font-size:13px; letter-spacing:.04em;
  color:var(--muted-2);
}
.ref-toc{
  margin:0 0 56px;
  padding:22px 26px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.02);
}
.ref-toc ol{
  margin:0; padding:0;
  list-style:none;
  counter-reset:ref;
  columns:2; column-gap:40px;
}
.ref-toc li{
  counter-increment:ref;
  break-inside:avoid;
  padding:5px 0;
  font-size:14.5px; line-height:1.4;
}
.ref-toc li::before{
  content:counter(ref, decimal-leading-zero);
  display:inline-block; width:2.4em;
  color:var(--accent); font-weight:600; font-size:12px; letter-spacing:.08em;
}
.ref-toc a{ color:var(--text); text-decoration:none; }
.ref-toc a:hover{ color:var(--accent); }

.ref-section{
  padding:48px 0 40px;
  border-top:1px solid var(--line-2);
  scroll-margin-top:104px;
}
.ref-section:last-child{ padding-bottom:0; }
.ref-h{
  font-size:clamp(23px, 2.7vw, 34px);
  line-height:1.12;
  letter-spacing:-.025em;
  font-weight:600;
  margin:0 0 20px;
  max-width:26ch;
}
.ref-body{ max-width:68ch; }
.ref-body > p:first-child{
  font-size:19px; line-height:1.55;
  color:var(--text);
}
.ref-body p{ margin:0 0 18px; color:#D7D8DE; }
.ref-body h4{
  font-size:18px; font-weight:600; letter-spacing:-.01em;
  margin:30px 0 10px; color:var(--text);
}
.ref-body ul, .ref-body ol{ margin:0 0 18px; padding-left:1.3em; color:#D7D8DE; }
.ref-body li{ margin:0 0 7px; }
.ref-body li::marker{ color:var(--accent); }
.ref-body a{ color:var(--text); text-decoration:underline; text-decoration-color:var(--accent-dim); text-underline-offset:3px; }
.ref-body a:hover{ text-decoration-color:var(--accent); }
.ref-body code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size:.88em; padding:1px 6px; border-radius:5px;
  background:rgba(255,255,255,.06); border:1px solid var(--line);
}
.ref-body strong{ color:var(--text); font-weight:600; }
.ref-body blockquote{
  margin:22px 0; padding:4px 0 4px 20px;
  border-left:2px solid var(--accent);
  border-radius:0;
  color:var(--text);
}
.ref-body blockquote p{ margin:0; font-family:var(--serif); font-size:21px; line-height:1.4; color:var(--text); }
.ref-body table{
  width:100%; border-collapse:collapse; margin:0 0 22px;
  font-size:15px;
}
.ref-body th, .ref-body td{
  text-align:left; padding:9px 12px 9px 0;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.ref-body th{ color:var(--muted); font-weight:500; font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; }

/* tier-2 pill nav row */
.pillnav-sub{ margin-bottom:6px; }
.pillnav-sub[hidden]{ display:none; }
.chip-sub{ font-size:12.5px; padding:6px 12px; font-weight:500; }
.chip-sub[aria-current="true"]{ background:rgba(240,160,60,.18); color:var(--accent); font-weight:600; }

@media (max-width:720px){
  .ref-toc ol{ columns:1; }
  .ref-toc{ padding:18px 18px; }
  .ref-section{ padding:38px 0 30px; scroll-margin-top:124px; }
  .footer{ padding-bottom:150px; }
}

/* reference entries: arrive, then recede once read */
.js .ref-section{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .75s ease, transform .75s cubic-bezier(.22,.75,.2,1);
}
.js .ref-section.in{ opacity:1; transform:none; }
.js .ref-section.in.past{ opacity:.34; transition:opacity .6s ease; }
.js .ref-section.in.past:hover{ opacity:1; }
@media (prefers-reduced-motion:reduce){
  .js .ref-section{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ── HOME: all text centered ─────────────────────────────── */
.page-home main .section{ text-align:center; }
.page-home .h2,
.page-home .lede,
.page-home .section-lede,
.page-home .why,
.page-home .step,
.page-home .idx-card,
.page-home .quote,
.page-home .roster-note{ margin-inline:auto; }
.page-home .why h3, .page-home .why p,
.page-home .step h3, .page-home .step p,
.page-home .idx-card h3, .page-home .idx-card p{ text-align:center; }
.page-home .tags,
.page-home .roster{ justify-content:center; }
.page-home .step-n,
.page-home .idx-n,
.page-home .idx-go,
.page-home .eyebrow,
.page-home .roster-label{ display:block; text-align:center; }
.page-home .quote cite{ display:block; text-align:center; }

/* ============================================================
   LIGHT THEME — cream base, light-blue washes, amber accent.
   Loaded last; overrides the dark tokens and every hardcoded
   dark/white-alpha value above. Serif headlines, sans body.
   ============================================================ */
:root{
  --ink:        #F7F3EA;   /* page: warm cream */
  --ink-2:      #FFFDF8;   /* cards: cream white */
  --sky:        #DCEBF6;   /* light blue wash */
  --sky-2:      #BFD8EA;   /* deeper light blue */
  --navy:       #17304A;   /* headline ink */
  --text:       #1B2430;
  --muted:      #55627A;
  --muted-2:    #5F6C7D;   /* 4.7:1 on cream */
  --accent:     #E8961F;   /* amber, buttons and fills */
  --accent-ink: #9A5B0A;   /* amber for text on cream (AA) */
  --accent-dim: #C9A26B;
  --line:       rgba(23,48,74,.13);
  --line-2:     rgba(23,48,74,.07);
}
body{ background:var(--ink); color:var(--text); }

/* backdrop + veil */
.backdrop{ background:radial-gradient(120% 80% at 50% 0%, #E3EEF7 0%, var(--ink) 55%); }
.backdrop-veil{
  background:
    radial-gradient(90% 60% at 50% 42%, rgba(232,150,31,.06), transparent 70%),
    linear-gradient(180deg, transparent 70%, rgba(247,243,234,.55) 100%);
}

/* chrome */
.site-head{ background:rgba(247,243,234,.82); border-bottom:1px solid var(--line-2); }
.head-link:hover, .svc-menu summary:hover{ background:rgba(23,48,74,.05); }
.svc-menu-list{ background:var(--ink-2); border:1px solid var(--line); box-shadow:0 18px 40px rgba(23,48,74,.12); }
.svc-menu-list a:hover{ background:rgba(23,48,74,.05); }
.pillnav-track{ background:rgba(255,253,248,.86); border:1px solid var(--line); box-shadow:0 10px 30px rgba(23,48,74,.10); }
.chip{ color:var(--muted); }
.chip:hover{ color:var(--navy); }
.chip-sub[aria-current="true"]{ background:rgba(232,150,31,.16); color:var(--accent-ink); }
.btn{ border-color:var(--line); color:var(--navy); }
.btn:hover{ border-color:var(--sky-2); background:rgba(23,48,74,.04); }
.eyebrow{ color:var(--accent-ink); }
.roster li{ background:rgba(23,48,74,.04); border-color:var(--line); }
.ref-toc{ background:rgba(23,48,74,.03); }
.ref-toc li::before{ color:var(--accent-ink); }
.ref-body p, .ref-body ul, .ref-body ol{ color:var(--text); }
.ref-body li::marker{ color:var(--accent-ink); }
.ref-body code{ background:rgba(23,48,74,.06); }
.ref-body strong, .ref-body h4, .ref-body blockquote p{ color:var(--navy); }
.ref-body blockquote{ border-left-color:var(--accent); }
.ref-body th{ color:var(--muted); }
.ref-updated{ color:var(--muted-2); }
.receipt{ background:var(--sky); border-color:var(--sky-2); }

/* cards: cream white, light-blue for the engagement-style steps */
.why, .idx-card, .svc, .rel-card, .quote, .case, .result{ background:var(--ink-2); border:1px solid var(--line); }
.step{ background:var(--sky); border:1px solid var(--sky-2); }
.step-n, .idx-n, .svc-n{ color:var(--accent-ink); }
.idx-go, .rel-go{ color:var(--accent-ink); }
.tags li{ background:rgba(23,48,74,.05); border-color:var(--line); color:var(--muted); }
.section-contact{ background:linear-gradient(180deg, transparent, var(--sky)); }
.footer{ border-top:1px solid var(--line); }

/* text colour on cream */
.hero-sub, .section-lede, .lede, .why p, .step p, .idx-card p, .svc p, .contact-sub{ color:var(--muted); }
.hero-h1, .h2, .ref-h, .contact-h, .why h3, .step h3, .idx-card h3, .svc h3{ color:var(--navy); }
.hero-h1 .line-2{ color:var(--muted); }

/* typography: serif headlines, sans body */
.hero-h1, .h2, .ref-h, .contact-h{
  font-family:var(--serif);
  font-weight:400;
  letter-spacing:-.012em;
}
.hero-h1{ font-size:clamp(46px, 7.2vw, 96px); line-height:1.0; }
.hero-h1 .line-2{ font-style:italic; }
.h2{ font-size:clamp(34px, 5vw, 64px); line-height:1.02; }
.ref-h{ font-size:clamp(27px, 3.1vw, 40px); line-height:1.1; }
.contact-h{ font-weight:400; }

/* amber is for fills only. All amber-as-text moves to navy. */
.eyebrow, .step-n, .idx-n, .svc-n, .idx-go, .rel-go,
.ref-toc li::before, .ref-body li::marker, .ref-toc a:hover,
.chip-sub[aria-current="true"], .roster-label{ color:var(--navy); }
.chip-sub[aria-current="true"]{ background:var(--sky-2); }
.ref-body a{ text-decoration-color:var(--sky-2); }
.ref-body a:hover{ text-decoration-color:var(--navy); }
.ref-body blockquote{ border-left-color:var(--navy); }
.show-note a, .footer a:hover, .head-link:hover{ color:var(--navy); }
.result-n, .cm-n{ color:var(--navy); }
.svc p a, .idx-card p a, .why p a, .step p a, .lede a, .section-lede a, .result-l a{ color:var(--navy); text-decoration:underline; text-decoration-color:var(--sky-2); text-underline-offset:3px; }
.svc p a:hover, .lede a:hover{ text-decoration-color:var(--navy); }

/* ── SERVICE + GUIDE PAGES: centered like the home page ────── */
.page-service main .section, .page-guide main .section{ text-align:center; }
.page-service .h2, .page-guide .h2,
.page-service .lede, .page-guide .lede,
.page-service .section-lede, .page-guide .section-lede,
.page-service .svc, .page-guide .svc,
.page-service .step, .page-guide .step,
.page-service .result, .page-guide .result,
.page-service .receipt, .page-guide .receipt,
.page-service .rel-card, .page-guide .rel-card,
.page-service .ref-h, .page-guide .ref-h,
.page-service .ref-toc, .page-guide .ref-toc{ margin-inline:auto; }
.page-service .svc h3, .page-service .svc p, .page-service .step h3, .page-service .step p,
.page-service .rel-card h3, .page-service .rel-card p, .page-service .result-l, .page-service .result-n, .page-service .result-tag,
.page-guide .step h3, .page-guide .step p, .page-guide .rel-card h3, .page-guide .rel-card p{ text-align:center; }
.page-service .tags, .page-guide .tags{ justify-content:center; }
.page-service .svc-n, .page-service .step-n, .page-service .rel-go, .page-service .eyebrow,
.page-guide .step-n, .page-guide .rel-go, .page-guide .eyebrow{ display:block; text-align:center; }
.page-service .receipt cite, .page-guide .receipt cite{ display:block; text-align:center; }
/* reference entries: heading and TOC centered, long-form body stays left-aligned for reading */
.page-service .ref-toc ol, .page-guide .ref-toc ol{ text-align:left; }
.page-service .ref-body, .page-guide .ref-body{ text-align:left; margin-inline:auto; }
.page-service .ref-updated, .page-guide .ref-updated{ text-align:center; }
.hero-eyebrow{ color:var(--navy); }
.hero-eyebrow .char{ color:inherit; }

/* remaining amber-as-text rules from the dark theme, forced to navy */
.hero-eyebrow,
.eyebrow,
.roster-note strong,
.result-n,
.svc-n,
.cm-n,
.step-n,
.brand:hover,
.svc-menu-list a[aria-current="page"],
.idx-n,
.idx-go,
.rel-go,
.footer-col a:hover,
.case p a,
.case p a:hover,
.rank-b b,
.show-note a,
.ref-toc li::before,
.ref-toc a:hover,
.ref-body li::marker,
.ref-body a:hover,
.chip-sub[aria-current="true"]{ color:var(--navy); }

/* the rank badge sits on a near-black chip; keep its number amber */
.rank-b b{ color:var(--accent); }

/* footer: four columns, brand column wider, nothing wrapping under it */
.footer{ padding-block:48px 92px; }
.footer-grid{ grid-template-columns:1.6fr 1fr 1fr 1fr; gap:48px; padding-bottom:36px; align-items:start; }
.footer-brand{ font-family:var(--serif); font-weight:400; font-size:22px; color:var(--navy); margin-bottom:8px; }
.footer-blurb{ color:var(--muted); font-size:14px; line-height:1.55; max-width:30ch; }
.footer-h{ color:var(--muted-2); margin-bottom:12px; }
.footer-col ul{ gap:8px; }
.footer-col a{ color:var(--navy); font-size:14px; }
.footer-col a:hover{ text-decoration:underline; text-decoration-color:var(--sky-2); text-underline-offset:3px; }
.footer-in{ padding-top:22px; border-top:1px solid var(--line); color:var(--muted-2); font-size:13px; }
@media (max-width:980px){
  .footer-grid{ grid-template-columns:1fr 1fr 1fr; gap:32px; }
  .footer-col:first-child{ grid-column:1 / -1; }
}
@media (max-width:640px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px; }
}

/* header dropdowns on narrow screens: full-width panel under the header,
   anchored to the header itself instead of to the trigger, so nothing clips */
@media (max-width:720px){
  .svc-menu{ position:static; }
  .svc-menu-list{
    position:absolute; top:calc(100% + 6px); left:var(--gut); right:var(--gut);
    min-width:0; width:auto;
    max-height:calc(100vh - 110px); overflow-y:auto;
  }
  .svc-menu-list a{ padding:12px 14px; font-size:15px; }
}
@media (max-width:720px){
  .head-in{ gap:8px; padding-inline:16px; }
  .head-nav{ gap:2px; }
  .head-link{ display:none; }
  .svc-menu summary{ padding:8px 8px; font-size:14px; }
  .head-nav .btn-sm{ white-space:nowrap; padding:8px 12px; font-size:13px; }
}
@media (max-width:720px){
  .head-in{ padding-inline:12px; gap:6px; }
  .brand{ font-size:14.5px; }
  .svc-menu summary{ padding:8px 6px; font-size:13.5px; gap:4px; }
  .head-nav .btn-sm{ padding:7px 10px; font-size:12.5px; }
}

/* pinned hero on phones: centre it in the space BELOW the fixed header,
   and shorten the block so a four-line serif headline doesn't climb under it */
@media (max-width:720px){
  .js .hero-fixed{ top:calc(50% + 34px); }
  .hero-h1, .page-hero .hero-h1{ font-size:clamp(32px, 9.4vw, 44px); line-height:1.02; }
  .hero-eyebrow{ font-size:11px; letter-spacing:.18em; margin-bottom:18px; }
  .hero-sub{ font-size:15px; line-height:1.5; }
  .hero-ctas{ margin-top:4px; }
}

/* accent: olive green instead of amber */
:root{ --accent:#7F8F3B; --accent-dim:#A9B26E; }
.btn-primary{ background:var(--accent); border-color:var(--accent); color:#F7F3EA; }
.btn-primary:hover{ background:#8FA04A; border-color:#8FA04A; color:#F7F3EA; }
.chip[aria-current="true"]{ background:var(--accent); color:#F7F3EA; }
.chip-sub[aria-current="true"]{ background:rgba(127,143,59,.18); }
.bubset-b .bub{ background:var(--accent); color:#F7F3EA; box-shadow:0 12px 32px rgba(127,143,59,.3); }
.rank-b b{ color:#C9D27A; }
::selection{ background:var(--accent); color:#F7F3EA; }
.skip{ background:var(--accent); color:#F7F3EA; }

/* hero sits a little lower in the viewport (desktop); phones already offset for the header */
@media (min-width:721px){
  .js .hero-fixed{ top:calc(50% + 4vh); }
}

/* desktop hero: shorter block so it sits with air above it instead of jammed under the header */
@media (min-width:721px){
  .hero-h1{ font-size:clamp(46px, 6.2vw, 84px); max-width:18ch; }
  .hero-sub{ margin-top:26px; }
}

/* lighter olive on the buttons */
:root{ --accent:#97A64C; --accent-dim:#BCC487; }
.btn-primary{ background:var(--accent); border-color:var(--accent); color:#1B2430; }
.btn-primary:hover{ background:#A5B35A; border-color:#A5B35A; color:#1B2430; }
.chip[aria-current="true"]{ background:var(--accent); color:#1B2430; }
.chip-sub[aria-current="true"]{ background:rgba(151,166,76,.22); }
.bubset-b .bub{ background:var(--accent); color:#1B2430; box-shadow:0 12px 32px rgba(151,166,76,.3); }
::selection{ background:var(--accent); color:#1B2430; }
.skip{ background:var(--accent); color:#1B2430; }

/* ── HERO MEDIA: optional framed loop inside the pinned hero ── */
.hero-media{
  width:min(100%, 560px);
  aspect-ratio:1 / 1;
  max-height:52vh;
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 24px 70px rgba(23,48,74,.18);
  background:var(--ink-2);
}
.hero-media video{ width:100%; height:100%; object-fit:cover; display:block; }

/* phones / narrow: the hero is already tight under the header, so the panel is dropped */
@media (max-width:899px){ .hero-media{ display:none; } }

/* wide: copy left, media right; the whole block still recedes with --hero-p */
@media (min-width:900px){
  .js .has-hero-video:not(.page-home) .hero-fixed{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    column-gap:clamp(32px, 5vw, 72px);
    align-items:center;
    justify-items:start;
    text-align:left;
    width:min(100% - 2*var(--gut), var(--wrap));
    inset-inline:auto;
    left:50%;
    transform:
      translateX(-50%)
      translateY(-50%)
      translateY(calc(var(--hero-p) * -6vh))
      scale(calc(1 - var(--hero-p) * .12));
  }
  .has-hero-video .hero-media{ grid-column:2; grid-row:1 / span 5; align-self:center; justify-self:end; }
  .has-hero-video .hero-eyebrow,
  .has-hero-video .hero-h1,
  .has-hero-video .hero-sub,
  .has-hero-video .hero-ctas,
  .has-hero-video .scroll-cue{ grid-column:1; }
  .has-hero-video .hero-h1{ max-width:none; }
  .has-hero-video .hero-sub{ max-width:52ch; }
  .has-hero-video .hero-ctas{ justify-content:flex-start; }
}
/* two-column hero: headline a step smaller so long lines (Amazon) clear the fold */
@media (min-width:900px){
  .has-hero-video .page-hero .hero-h1{ font-size:clamp(32px, 4.6vw, 64px); }
}

/* bio portrait */
.bio-photo{
  width:136px; height:136px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  margin:4px auto 26px;
  border:1px solid var(--line);
  box-shadow:0 14px 40px rgba(23,48,74,.16);
  background:var(--ink-2);
}
@media (max-width:720px){ .bio-photo{ width:112px; height:112px; margin-bottom:20px; } }

/* buttons: Amazon buy-button yellow, dark text */
:root{ --accent:#FFD814; --accent-dim:#F7CA00; }
.btn-primary{ background:#FFD814; border-color:#FCD200; color:#0F1111; }
.btn-primary:hover{ background:#F7CA00; border-color:#F2C200; color:#0F1111; }
.chip[aria-current="true"]{ background:#FFD814; color:#0F1111; }
.chip-sub[aria-current="true"]{ background:rgba(255,216,20,.28); }
.bubset-b .bub{ background:#FFD814; color:#0F1111; box-shadow:0 12px 32px rgba(255,216,20,.35); }
::selection{ background:#FFD814; color:#0F1111; }
.skip{ background:#FFD814; color:#0F1111; }

/* logo: monogram beside the name in the header, full lockup in the footer */
.brand{ display:inline-flex; align-items:center; gap:10px; }
.brand-mark{ height:26px; width:auto; display:block; }
.footer-logo{ height:64px; width:auto; display:block; }
@media (max-width:720px){ .brand-mark{ height:22px; } .brand{ gap:8px; } }

/* phones: the mark alone is the brand; the name text was colliding with the nav */
@media (max-width:720px){
  .brand span{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .brand{ flex:0 0 auto; gap:0; }
  .brand-mark{ height:24px; }
  .head-nav{ min-width:0; }
}

/* phones / narrow: show the hero clip under the copy, compact, and tighten the copy to make room */
@media (max-width:899px){
  .hero-media{ display:block; order:99; width:min(100%, 240px); max-height:26vh; margin:18px auto 0; border-radius:16px; }
  .has-hero-video .hero-fixed{ display:flex; flex-direction:column; }
  .has-hero-video .page-hero .hero-h1{ font-size:clamp(28px, 7.6vw, 40px); }
  .has-hero-video .hero-sub{ font-size:14.5px; line-height:1.45; margin-top:14px; max-width:46ch; }
  .has-hero-video .hero-ctas{ margin-top:14px; }
  .has-hero-video .hero-eyebrow{ margin-bottom:12px; }
  .has-hero-video .scroll-cue{ display:none; }
}

/* ── PLAIN PAGES: privacy, 404 ─────────────────────────────── */
.page-plain main .section{ text-align:center; }
.page-plain .plain{ margin:0 auto; text-align:left; }
.plain-updated{ font-size:13px; letter-spacing:.04em; color:var(--muted-2); margin:0 0 28px; }
.plain-h{ font-family:var(--serif); font-weight:400; font-size:clamp(24px,2.6vw,32px); line-height:1.15; color:var(--navy); margin:36px 0 12px; }
.plain-h:first-of-type{ margin-top:0; }
.page-plain .ref-body p, .page-plain .ref-body li{ color:var(--text); }
.notfound-list{ list-style:none; padding:0; margin:28px auto 0; max-width:720px; display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.notfound-list a{
  display:inline-block; padding:10px 16px; border-radius:999px;
  border:1px solid var(--line); background:rgba(23,48,74,.04);
  color:var(--navy); text-decoration:none; font-size:15px;
}
.notfound-list a:hover{ background:var(--accent); border-color:var(--accent); color:#0F1111; }

/* plain-page tables (privacy policy) */
.plain-table{ width:100%; border-collapse:collapse; margin:8px 0 22px; font-size:15px; line-height:1.4; }
.plain-table th, .plain-table td{ text-align:left; vertical-align:top; padding:10px 12px; border-bottom:1px solid var(--line); }
.plain-table th{ font-weight:600; color:var(--navy); font-size:13px; letter-spacing:.04em; text-transform:uppercase; }
.plain-table td a{ color:var(--navy); }
.plain-h[id]{ scroll-margin-top:84px; }
@media (max-width:720px){
  .plain-table{ font-size:14px; }
  .plain-table th, .plain-table td{ padding:8px 6px; }
}

/* home hero with a clip: same two-column treatment, headline sized like the service pages */
@media (min-width:900px){
  .page-home.has-hero-video .hero-h1{ font-size:clamp(34px, 4.8vw, 64px); }
  .page-home.has-hero-video .hero-media{ width:min(100%, 600px); max-height:56vh; }
}
@media (max-width:899px){
  .page-home.has-hero-video .hero-h1{ font-size:clamp(28px, 7.6vw, 40px); }
}

/* home page: the clip sits between the eyebrow and the headline, single centred column */
.page-home.has-hero-video .hero-fixed{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.page-home.has-hero-video .hero-eyebrow{ order:-2; }
.page-home.has-hero-video .hero-media{ order:-1; margin:0 auto 22px; }
.page-home.has-hero-video .hero-h1{ max-width:16ch; }
.page-home.has-hero-video .hero-ctas{ justify-content:center; }
@media (min-width:900px){
  .page-home.has-hero-video .hero-media{ width:min(100%, 560px); max-height:30vh; }
  .page-home.has-hero-video .hero-h1{ font-size:clamp(34px, 4.2vw, 58px); }
  .page-home.has-hero-video .hero-sub{ margin-top:18px; font-size:clamp(15px,1.4vw,17px); }
  .page-home.has-hero-video .hero-ctas{ margin-top:22px; }
}
@media (max-width:899px){
  .page-home.has-hero-video .hero-media{ width:min(100%, 230px); max-height:22vh; margin:0 auto 14px; }
  .page-home.has-hero-video .hero-eyebrow{ margin-bottom:12px; }
}
/* home stack was overflowing a 900px-tall window: tighten the clip and the headline */
@media (min-width:900px){
  .page-home.has-hero-video .hero-media{ width:min(100%, 480px); max-height:24vh; margin-bottom:18px; }
  .page-home.has-hero-video .hero-h1{ font-size:clamp(32px, 3.8vw, 52px); max-width:20ch; line-height:1.02; }
  .page-home.has-hero-video .hero-sub{ margin-top:16px; max-width:54ch; }
  .page-home.has-hero-video .hero-ctas{ margin-top:18px; }
  .page-home.has-hero-video .hero-eyebrow{ margin-bottom:14px; }
}
/* shorter laptop windows (≤820px tall): keep the eyebrow clear of the header */
@media (min-width:900px) and (max-height:820px){
  .page-home.has-hero-video .hero-media{ max-height:20vh; margin-bottom:14px; }
  .page-home.has-hero-video .hero-h1{ font-size:clamp(30px, 3.3vw, 44px); }
  .page-home.has-hero-video .hero-sub{ margin-top:12px; font-size:15px; max-width:58ch; }
  .page-home.has-hero-video .hero-ctas{ margin-top:14px; }
  .page-home.has-hero-video .hero-eyebrow{ margin-bottom:10px; }
}

/* links inside prose are underlined, not colour-only (PageSpeed a11y) */
.svc p a, .step p a, .lede a, .section-lede a, .contact-sub a, .push-note a, .plain a, .plain-table a, .footer-col a:hover{
  text-decoration:underline; text-decoration-color:currentColor; text-underline-offset:3px; text-decoration-thickness:1px;
}
