/* Northgauge site styles. Brand values live in tokens.css only.
   Design language: industrial editorial. Serif display, boxy mono
   labels, ivory / cream / black color blocks, one electric blue. */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}

p { max-width: 60ch; text-wrap: pretty; }

/* Brand link law: Harbor Blue, always underlined */
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.brand, .btn { text-decoration: none; }

img, svg { display: block; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* Mono label utility: the boxy uppercase register */
.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--cream);
  color: var(--ink);
  padding: 3px 8px;
}

/* ---------- Navigation ---------- */

.nav {
  background: var(--band-bg);
  color: var(--band-ink);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 250ms ease;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--band-line), 0 12px 32px rgba(6, 16, 28, 0.35); }

.nav .wrap {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--band-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.625rem;
  letter-spacing: 0.005em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), filter 200ms ease;
}
.btn::after {
  content: "\00BB";
  font-family: var(--font-mono);
  transition: transform 200ms var(--ease-out);
}
.btn:hover { text-decoration: none; filter: brightness(1.15); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* On dark bands the ink button would vanish: invert to cream */
.nav .btn, .footer .btn {
  background: var(--cream);
  color: var(--ink);
}
.nav .btn:focus-visible, .footer .btn:focus-visible {
  outline-color: var(--band-ink);
}

/* ---------- Hero: dark, halftone print texture ---------- */

.hero {
  background:
    radial-gradient(1100px 620px at 78% -10%, var(--mist-glow), transparent 65%),
    radial-gradient(700px 500px at -8% 105%, var(--sand-glow), transparent 60%),
    var(--band-bg);
  color: var(--band-ink-2);
  position: relative;
  overflow: hidden;
}

/* halftone dot field, like duotone print */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--frost-dot) 1px, transparent 1.6px);
  background-size: 7px 7px;
  mask-image: radial-gradient(900px 700px at 70% 20%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 700px at 70% 20%, black, transparent 75%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(72px, 9vw, 130px);
}

.hero .eyebrow {
  color: var(--mist); /* tagline on navy uses Slate Mist (brand §05) */
  margin: 0 0 22px;
}

.hero h1 {
  color: var(--band-ink);
  font-size: clamp(2.9rem, 5.4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0.002em;
}

.hero .sub {
  margin: 24px 0 0;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--band-ink-2);
  max-width: 40ch;
}

/* ---------- Hero card: sample morning check ---------- */

.check-card {
  background: var(--band-panel);
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  max-width: 460px;
  justify-self: end;
  width: 100%;
}

.check-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--band-ink-2);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--band-line);
  margin-bottom: 4px;
}

.check-item { padding: 14px 0 4px; position: relative; padding-left: 26px; }
.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--band-ink-2);
  border-radius: 50%;
}
.check-item + .check-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -18px;
  height: 36px;
  width: 1px;
  background: var(--band-line);
}

.check-item .k {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--band-ink);
  margin: 0 0 8px;
}

.chip {
  display: inline-block;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: var(--radius);
}
/* Status data: Redstone value paired with an arrow (brand color law) */
.chip .delta { color: var(--redstone); font-weight: 600; white-space: nowrap; }

.check-done {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--band-ink);
  border: 1px solid var(--band-line);
  padding: 8px 12px;
  border-radius: var(--radius);
}

.check-card .card-foot {
  margin-top: 18px;
  color: var(--band-ink-2);
  font-size: 0.75rem;
}

/* ---------- Marquee: watched signals, print-ticker style ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.marquee-track .sep { color: var(--line); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Hero card play-through (JS adds .animate) ---------- */

.js .check-card.animate .check-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}
.js .check-card.animate .check-item.on {
  opacity: 1;
  transform: none;
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 170px) 0; }

.section-title {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.08;
  max-width: 24ch;
}
.section-title.center { margin-inline: auto; text-align: center; }

.section-lede { margin: 20px 0 0; font-size: 1.125rem; }

/* Platform: modules left, cream pipeline panel right */

.platform-grid {
  margin-top: clamp(48px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}

.module {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.module:last-of-type { border-bottom: 1px solid var(--line); }
.module h3 {
  font-size: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.module p { margin: 8px 0 0; font-size: 1rem; }

.pipeline {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 48px);
}
.pipeline .p-step { padding: 20px 0; }
.pipeline .p-step + .p-step { border-top: 1px solid var(--navy-hairline); }
.pipeline .p-step h3 {
  font-size: 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.pipeline .p-step h3 .n {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.pipeline .p-step p { margin: 8px 0 0 0; font-size: 1rem; }

/* ---------- Watching band (black, cycling word) ---------- */

.watch {
  background: var(--band-bg);
  color: var(--band-ink-2);
  padding: clamp(90px, 12vw, 180px) 0;
  text-align: center;
}

.watch .big {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--band-ink);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.05;
  margin: 0;
}
.watch .big .word { color: var(--frost); font-style: italic; }

.watch .statement {
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.45;
  color: var(--band-ink);
  max-width: 46ch;
}

/* ---------- Findings (cream band) ---------- */

.findings-band {
  background: var(--cream);
  padding: clamp(90px, 12vw, 170px) 0;
}
.findings-band .section-lede { color: var(--ink-2); }

.findings { margin-top: clamp(44px, 6vw, 64px); }

.finding {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
  padding: 26px 0;
  border-top: 1px solid var(--navy-hairline);
  max-width: 56ch;
}
.finding:last-of-type { border-bottom: 1px solid var(--navy-hairline); }
.finding .flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-right: 12px;
  transform: translateY(-3px);
}

.findings-band .note {
  margin-top: 26px;
  font-size: 1rem;
  color: var(--ink-2);
}

/* ---------- Closing ---------- */

.closing .section-title { max-width: 20ch; }
/* Proof point as a sandstone callout (brand file callout style:
   sandstone fill, Deep Navy text) */
.closing .proof {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--sand-fill);
  border-left: 3px solid var(--sandstone);
  padding: 12px 16px;
  border-radius: var(--radius);
}
.closing .btn { margin-top: 30px; }

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

.footer {
  background: var(--band-bg);
  color: var(--band-ink-2);
  padding: clamp(48px, 6vw, 72px) 0;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer .brand { font-size: 1.25rem; }
.footer .brand img { width: 24px; height: 24px; }
.footer .meta { font-size: 1rem; margin: 0; }
.footer .meta a { color: var(--band-ink); text-decoration: underline; text-underline-offset: 3px; }

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

.contact-main {
  min-height: calc(100dvh - 66px - 140px);
  display: grid;
  place-items: start center;
  padding: clamp(72px, 12vh, 140px) 20px 96px;
}

.contact-box { width: min(100%, 560px); text-align: center; }

.contact-eyebrow { color: var(--accent-2); margin: 0 0 18px; }

.contact-box h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }

.contact-lede {
  margin: 18px auto 40px;
  font-size: 1.0625rem;
  max-width: 44ch;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--mist);
  overflow-wrap: anywhere;
  transition: text-decoration-color 200ms ease;
}
.contact-email:hover { text-decoration-color: var(--ink); }

.contact-note {
  margin: 22px auto 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ---------- Scroll reveal (enhances visible defaults) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(5px);
  transition:
    opacity 750ms var(--ease-out),
    transform 750ms var(--ease-out),
    filter 750ms var(--ease-out);
  transition-delay: var(--stagger, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .btn, .btn::after { transition: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .check-card { justify-self: start; max-width: 480px; }
  .platform-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .nav .brand { font-size: 1.3rem; }
  .check-card { padding: 20px 18px 16px; }
}

/* ============================================================
   DESIGN UPGRADE LAYER (preview)
   ============================================================ */

/* ---- Hero signal line: the intelligence layer motif ---- */

.signal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.signal-line {
  fill: none;
  stroke: var(--frost);
  stroke-width: 1.5;
  stroke-linejoin: round;
  opacity: 0.28;
  stroke-dasharray: 3200;
  stroke-dashoffset: 3200;
}
.js .signal-line.draw {
  animation: signal-draw 2400ms var(--ease-out) 300ms forwards;
}
@keyframes signal-draw {
  to { stroke-dashoffset: 0; }
}

/* grain texture on dark bands: quiet, print-like */
.hero::after, .watch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.watch { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.watch .wrap { position: relative; z-index: 2; }

/* ---- Live dot on the morning check ---- */

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--frost);
  margin-right: 9px;
  vertical-align: 1px;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 224, 228, 0.45); }
  55%      { box-shadow: 0 0 0 6px rgba(215, 224, 228, 0); }
}
.live-dot { animation: live-pulse 2.4s ease-out infinite; }

/* ---- Findings: status values (brand color law: data only,
        always paired with a sign or arrow) ---- */

.finding .val { font-weight: 600; white-space: nowrap; }
.finding .val.neg { color: var(--redstone); }
.finding .val.pos { color: var(--spruce); }

.finding {
  transition: transform 350ms var(--ease-out);
}
@media (hover: hover) {
  .finding:hover { transform: translateX(10px); }
}

/* ---- Module hover: harbor rule grows ---- */

.module { position: relative; transition: padding-left 300ms var(--ease-out); }
.module::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: calc(100% + 1px);
  width: 0;
  border-left: 3px solid var(--harbor);
  opacity: 0;
  transition: opacity 300ms ease;
}
@media (hover: hover) {
  .module:hover { padding-left: 18px; }
  .module:hover::before { opacity: 1; }
}

/* ---- Proof ticker ---- */

.proof .tick {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---- Tagline band above footer ---- */

.tagline-band {
  position: relative;
  background: var(--band-bg);
  padding: clamp(72px, 9vw, 120px) 20px clamp(56px, 7vw, 88px);
  text-align: center;
  overflow: hidden;
}
.band-ridge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(40px, 6vw, 80px);
}
.band-ridge polyline {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1;
  opacity: 0.35;
}
.band-tagline {
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  color: var(--band-ink);
  max-width: 22ch;
}
.band-tagline em { font-style: italic; color: var(--frost); }

.footer { border-top: 1px solid var(--band-line); }

/* ---- Gentle hero parallax (JS sets --py) ---- */

.js .hero-copy { transform: translateY(calc(var(--py, 0) * 0.05px)); }
.js .hero .check-card { transform: translateY(calc(var(--py, 0) * 0.12px)); }

/* ---- Reduced motion: upgrades stay still ---- */

@media (prefers-reduced-motion: reduce) {
  .js .signal-line { animation: none; stroke-dashoffset: 0; }
  .live-dot { animation: none; }
  .finding, .module { transition: none; }
  .js .hero-copy, .js .hero .check-card { transform: none; }
}

/* ============================================================
   DESIGN UPGRADE LAYER 2: below the fold
   ============================================================ */

/* ---- Module sparklines (Harbor Blue: charts role) ---- */

.spark { width: 96px; height: 22px; margin-top: 12px; }
.spark polyline {
  fill: none;
  stroke: var(--harbor);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}
.js .module.in .spark polyline {
  animation: spark-draw 1300ms var(--ease-out) 250ms forwards;
}
.no-js .spark polyline, html:not(.js) .spark polyline { stroke-dashoffset: 0; }
@keyframes spark-draw { to { stroke-dashoffset: 0; } }

/* ---- Watch band terrain layers (cross-location terrain) ---- */

.terrain {
  position: absolute;
  left: -6%;
  width: 112%;
  height: clamp(60px, 9vw, 120px);
  pointer-events: none;
}
.terrain polyline { fill: none; stroke: var(--mist); stroke-width: 1; }
.terrain.t1 { top: 10%; opacity: 0.22; animation: drift 70s ease-in-out infinite alternate; }
.terrain.t2 { bottom: 8%; opacity: 0.13; animation: drift 90s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translateX(-1.5%); }
  to   { transform: translateX(1.5%); }
}

/* ---- Findings section: two-column with sample email ---- */

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.email-card {
  background: var(--bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 43, 74, 0.18);
  position: sticky;
  top: 96px;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}

.email-head {
  background: var(--navy);
  color: var(--band-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.email-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.email-brand img { width: 22px; height: 22px; }
.email-meta {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--band-ink-2);
  text-align: right;
}

.email-tagbar {
  background: var(--harbor);
  color: var(--band-ink);
  padding: 7px 20px;
  font-size: 0.75rem;
}

.email-body { padding: 20px; }
.email-label {
  color: var(--harbor);
  margin: 0 0 6px;
  font-size: 0.75rem;
}
.email-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink);
}
.email-row .val { font-weight: 600; white-space: nowrap; }
.email-row .val.pos { color: var(--spruce); }
.email-row .val.neg { color: var(--redstone); }
.email-row .val.mon { color: var(--ink); }

.email-action {
  margin-top: 16px;
  background: var(--sand-fill);
  border-left: 3px solid var(--sandstone);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
}

.email-foot {
  padding: 12px 20px 16px;
  color: var(--ink-2);
  font-size: 0.75rem;
  border-top: 1px solid var(--line);
}

/* ---- Marquee pauses on hover ---- */

.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
  .email-card { position: static; justify-self: start; }
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .js .module.in .spark polyline { animation: none; stroke-dashoffset: 0; }
  .terrain.t1, .terrain.t2 { animation: none; }
}

/* ============================================================
   DESIGN UPGRADE LAYER 3: background canvases
   ============================================================ */

/* Decorative layer: absolutely fills its section, clips its own
   bleed so it can never cause horizontal scroll, never captures
   clicks, and sits behind the content. */
.deco-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.platform, .findings-band, .closing, .contact-main { position: relative; }
.platform .wrap, .findings-band .wrap, .closing .wrap, .contact-box {
  position: relative;
  z-index: 1;
}

.deco { position: absolute; color: var(--navy); }

/* Nested hexagons: top-right of the platform section */
.hex-nest {
  top: -90px;
  right: -110px;
  width: clamp(280px, 30vw, 460px);
  height: auto;
  opacity: 0.06;
}

/* Large hexagon + ridge: bottom-left of the findings band */
.hex-big {
  bottom: -140px;
  left: -120px;
  width: clamp(320px, 34vw, 520px);
  height: auto;
  opacity: 0.05;
}

/* Gauge: right side of the closing section, needle finds north */
.gauge {
  right: -40px;
  bottom: 8%;
  width: clamp(300px, 34vw, 480px);
  height: auto;
  opacity: 0.09;
}
.gauge-needle {
  transform-origin: 200px 220px;
  transform: rotate(-52deg);
  transition: transform 1600ms var(--ease-out) 300ms;
}
.js .gauge.in .gauge-needle { transform: rotate(0deg); }

/* Contact page: ridge lines along the bottom */
.contact-ridge {
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(80px, 12vw, 160px);
  color: var(--mist);
  opacity: 0.35;
}

@media (max-width: 700px) {
  .hex-nest { top: -60px; right: -90px; }
  .gauge { opacity: 0.06; }
}

@media (prefers-reduced-motion: reduce) {
  .gauge-needle { transition: none; transform: rotate(0deg); }
}

/* ============================================================
   DESIGN UPGRADE LAYER 4: more motion
   ============================================================ */

/* ---- Scroll gauge: the page measures itself (sandstone fill) ---- */

.scroll-gauge {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--sandstone);
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
}

/* ---- Nav mark: ridge redraws on hover ---- */

@media (hover: hover) {
  .brand:hover .mark-ridge {
    stroke-dasharray: 44;
    animation: ridge-redraw 900ms var(--ease-out);
  }
}
@keyframes ridge-redraw {
  from { stroke-dashoffset: 44; }
  to   { stroke-dashoffset: 0; }
}

/* ---- Hero halftone dots: slow crawl ---- */

.hero::before {
  animation: dots-crawl 36s linear infinite;
}
@keyframes dots-crawl {
  from { background-position: 0 0; }
  to   { background-position: 14px 28px; }
}

/* ---- Email report: rows cascade in when the card reveals ---- */

.js .email-card.reveal .email-row,
.js .email-card.reveal .email-action {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.js .email-card.reveal.in .email-row,
.js .email-card.reveal.in .email-action {
  opacity: 1;
  transform: none;
}
.js .email-card.reveal.in .email-row:nth-child(2) { transition-delay: 250ms; }
.js .email-card.reveal.in .email-row:nth-child(3) { transition-delay: 400ms; }
.js .email-card.reveal.in .email-row:nth-child(4) { transition-delay: 550ms; }
.js .email-card.reveal.in .email-action { transition-delay: 750ms; }

/* ---- Finding values stamp in after their line reveals ---- */

.js .finding.reveal .val { opacity: 0; }
.js .finding.reveal.in .val {
  animation: val-stamp 500ms var(--ease-out) 450ms both;
}
@keyframes val-stamp {
  from { opacity: 0; transform: scale(1.25); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- Morning check: the done-chip pops when it lands ---- */

.js .check-card.animate .check-item.on .check-done {
  animation: done-pop 550ms var(--ease-out);
}
@keyframes done-pop {
  0%   { transform: scale(0.92); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---- Tagline band ridge draws itself in view ---- */

.band-ridge polyline {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
}
.js .tagline-band .band-tagline.in ~ * polyline,
.js .tagline-band.ridge-in .band-ridge polyline {
  animation: signal-draw 2000ms var(--ease-out) forwards;
}
html:not(.js) .band-ridge polyline { stroke-dashoffset: 0; }

/* ---- Hexagon decorations breathe ---- */

.hex-nest g, .hex-big g {
  transform-origin: 100px 100px;
  animation: hex-breathe 14s ease-in-out infinite alternate;
}
@keyframes hex-breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* ---- Reduced motion: everything above goes still ---- */

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .brand:hover .mark-ridge { animation: none; }
  .js .email-card.reveal .email-row,
  .js .email-card.reveal .email-action { opacity: 1; transform: none; transition: none; }
  .js .finding.reveal .val { opacity: 1; }
  .js .finding.reveal.in .val { animation: none; }
  .js .check-card.animate .check-item.on .check-done { animation: none; }
  .band-ridge polyline { stroke-dashoffset: 0; animation: none !important; }
  .hex-nest g, .hex-big g { animation: none; }
  .scroll-gauge { display: none; }
}

/* ============================================================
   REPOSITIONING LAYER: audit-first service
   ============================================================ */

/* Hero CTA sits on the navy band: invert to cream like the nav */
.hero .btn {
  background: var(--cream);
  color: var(--ink);
  margin-top: 34px;
}
.hero .btn:focus-visible { outline-color: var(--band-ink); }

/* Process: the cream pipeline panel stands alone, centered */
.pipeline.solo {
  max-width: 860px;
  margin: clamp(48px, 6vw, 84px) auto 0;
}

/* Modules: six, two columns; bottom row closes the hairlines */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 5vw, 88px);
  margin-top: clamp(48px, 6vw, 84px);
}
.modules-grid .module:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }

/* New sections join the deco positioning context */
.process, .modules-section { position: relative; }
.process .wrap, .modules-section .wrap { position: relative; z-index: 1; }

/* Centered section lede (modules intro) */
.section-lede.center {
  margin-inline: auto;
  text-align: center;
  max-width: 58ch;
}

/* Closing CTA note under the audit button */
.closing .cta-note {
  margin: 16px 0 0;
  font-size: 0.75rem;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .modules-grid { grid-template-columns: 1fr; }
  .modules-grid .module:nth-last-child(2) { border-bottom: none; }
}

/* ============================================================
   PROCESS TIMELINE: the route through the four steps
   ============================================================ */

/* Section eyebrow above the centered title */
.section-eyebrow {
  color: var(--accent-2);
  text-align: center;
  margin: 0 auto 18px;
}

/* Each step: node rail | text | drawn icon */
.pipeline.solo { position: relative; }
.pipeline.solo .p-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  padding: 26px 0;
  position: relative;
}
/* Separators stop at the text column instead of crossing the rail */
.pipeline.solo .p-step + .p-step { border-top: none; }
.pipeline.solo .p-step + .p-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 0;
  height: 1px;
  background: var(--navy-hairline);
}

/* The rail: a hairline the page fills with sandstone as you
   scroll (same register as the nav scroll-gauge). Geometry is
   set by JS from the node positions; decorative only. */
.pipeline.solo .rail {
  position: absolute;
  left: calc(clamp(28px, 3.5vw, 48px) + 5.5px);
  top: var(--rail-top, 96px);
  height: var(--rail-len, calc(100% - 220px));
  width: 2px;
  background: var(--navy-hairline);
}
.pipeline.solo .rail-fill {
  position: absolute;
  inset: 0;
  background: var(--sandstone);
  transform: scaleY(var(--pp, 0));
  transform-origin: top;
}
html:not(.js) .pipeline.solo .rail { display: none; }

/* Nodes light as their step reveals */
.step-node {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--harbor);
  background: var(--cream);
  margin-top: 12px;
  position: relative;
  z-index: 1;
  transition: background 400ms ease 300ms, border-color 400ms ease 300ms;
}
.js .p-step.reveal.in .step-node {
  background: var(--sandstone);
  border-color: var(--navy);
}

/* Step numerals: oversized editorial serif, fully visible
   beside each title so nothing overlaps at any zoom or width */
.step-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(14px, 2vw, 22px);
  align-items: start;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 3.4vw, 3.4rem);
  line-height: 0.85;
  min-width: 1.6em;
  margin-top: -0.02em;
  color: var(--harbor);
  opacity: 0.38;
  transition: opacity 300ms ease;
}
.p-step:hover .step-num { opacity: 0.62; }

/* Step meta line; the audit step carries the sandstone chip */
.step-meta {
  font-size: 0.6875rem;
  color: var(--accent-2);
  margin: 4px 0 10px;
}
.step-meta.chip {
  display: inline-block;
  background: var(--sand-fill);
  border-left: 3px solid var(--sandstone);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: var(--radius);
}
.pipeline.solo .p-step .step-text > p:last-child { margin: 0; }

/* Icons draw themselves in as each step reveals */
.step-icon {
  width: clamp(46px, 5vw, 60px);
  height: auto;
  color: var(--harbor);
  opacity: 0.8;
  align-self: center;
  margin-left: 20px;
}
.step-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js .p-step.reveal .step-icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js .p-step.reveal.in .step-icon path {
  animation: icon-draw 1100ms var(--ease-out) 250ms forwards;
}
@keyframes icon-draw {
  to { stroke-dashoffset: 0; }
}
/* Hover: the icon redraws, like the nav mark's ridge */
@media (hover: hover) {
  .js .p-step.reveal.in:hover .step-icon path {
    animation: icon-redraw 900ms var(--ease-out) forwards;
  }
}
@keyframes icon-redraw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

@media (max-width: 700px) {
  .step-icon { display: none; }
  .pipeline.solo .p-step { grid-template-columns: 28px minmax(0, 1fr); }
  .step-num { font-size: 2rem; min-width: 1.4em; }
}

/* Small screens: the audit button breathes next to the wordmark,
   and step numerals stack above their titles so copy keeps width */
@media (max-width: 560px) {
  .nav .btn { padding: 9px 12px; letter-spacing: 0.08em; }
  .step-body { grid-template-columns: 1fr; row-gap: 2px; }
  .step-num { font-size: 1.9rem; min-width: 0; line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pipeline.solo .rail-fill { transform: scaleY(1); }
  .step-node { transition: none; }
  .js .p-step.reveal .step-icon path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .js .p-step.reveal.in:hover .step-icon path { animation: none; }
  .step-num { transition: none; }
}
