/* ==========================================================================
   RESOLVIFI — Design Tokens
   ========================================================================== */
:root {
  --black: #0B0B0B;
  --charcoal: #161616;
  --border-charcoal: #2A2A2A;
  --white: #FFFFFF;
  --soft-white: #F6F5F2;
  --light-border: #E4E2DC;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-bright: #3B82F6;
  --ink: #1C1C1A;
  --grey: #6E6C66;
  --grey-on-dark: #8A8A85;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Satoshi', 'Manrope', -apple-system, sans-serif;

  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 40px;
  --sp-6: 48px; --sp-8: 64px; --sp-10: 80px; --sp-12: 96px; --sp-15: 120px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;

  --content-max: 1400px;
  --text-max: 720px;
  --gutter: 80px;
  --section-pad: clamp(88px, 10vw, 152px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1200px) { :root { --gutter: 48px; } }
@media (max-width: 768px)  { :root { --gutter: 24px; } }
@media (max-width: 480px)  { :root { --gutter: 20px; } }

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Removes the ~300ms wait mobile browsers add before firing click, in case the
   tap turns out to be a double-tap zoom. Set the tap highlight deliberately
   rather than inheriting each browser's default flash. */
a, button, [role="button"], input, select, textarea, label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.15);
}

body {
  background: var(--soft-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: var(--white); padding: var(--sp-1) var(--sp-2); z-index: 200; }
.skip-link:focus { left: 0; }
/* Skipping to #main used to land it underneath the fixed bar. */
#main { scroll-margin-top: 90px; }
#main:focus { outline: none; }

/* Set while the mobile menu is open - without it the page scrolled underneath
   the overlay, which reads as the menu itself being broken. */
body.has-menu-open { overflow: hidden; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

/* ==========================================================================
   Typography
   ========================================================================== */
.h-display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 6vw, 92px); line-height: 0.98; letter-spacing: -0.03em;
  color: var(--white);
}
.h-1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.03em;
}
.h-2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 3.8vw, 58px); line-height: 1.06; letter-spacing: -0.025em;
}
.h-3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -0.01em; }

/* Evens out the last line so a heading never drops a single orphaned word.
   Forced <br> in the markup still wins where a break is deliberate. */
.h-display, .h-1, .h-2, .h-3 { text-wrap: balance; }

.body-lg { font-size: clamp(20px, 1.3vw, 24px); line-height: 1.5; color: var(--grey); font-weight: 400; }
.section--dark .body-lg { color: rgba(255,255,255,0.6); }

p.standard { font-size: 17px; line-height: 1.65; color: var(--grey); max-width: 60ch; }
.section--dark p.standard { color: rgba(255,255,255,0.62); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey); margin-bottom: var(--sp-3); display: block;
}
.section--dark .eyebrow { color: var(--grey-on-dark); }

.text-blue { color: var(--blue-bright); }
.section--light .text-blue { color: var(--blue); }

/* ==========================================================================
   Icons
   ========================================================================== */
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon--row { width: 20px; height: 20px; color: var(--blue); margin-bottom: var(--sp-2); }
.icon--service { width: 30px; height: 30px; color: var(--blue); margin-bottom: var(--sp-3); }

/* ==========================================================================
   Layout
   ========================================================================== */
.container { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); position: relative; scroll-margin-top: 90px; }
#audit-form { scroll-margin-top: 90px; }
.section--dark { background: var(--black); color: var(--white); }
.section--light { background: var(--soft-white); color: var(--ink); }
.section--blue {
  background: radial-gradient(120% 160% at 12% 0%, #17348F 0%, #0C1D52 55%, #070F2E 100%);
  color: var(--white);
}

.section-head { max-width: 760px; margin-bottom: var(--sp-10); }
.divider { border: none; border-top: 1px solid var(--light-border); }
.section--dark .divider { border-top-color: var(--border-charcoal); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 58px; padding-inline: 34px; border-radius: var(--r-md);
  font-weight: 600; font-size: 15.5px; border: 1px solid transparent; cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
  white-space: nowrap;
}
.btn .arrow { display: inline-block; transition: transform 180ms var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn--secondary { background: transparent; border-color: rgba(255,255,255,0.26); color: var(--white); }
.section--light .btn--secondary { border-color: #D2CFC6; color: var(--ink); }
.btn--secondary:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.btn--full { width: 100%; justify-content: center; }
.btn--nav { height: 46px; padding-inline: 22px; font-size: 14px; }

.cta-row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-6); }
.cta-qualifier { margin-top: var(--sp-3); font-size: 14px; color: var(--grey-on-dark); }

/* ==========================================================================
   Logo
   ========================================================================== */
/* min-height keeps the logo and the scroll cue at a 24px+ tap target; the
   images inside are only ~21px tall on their own. */
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo img { height: auto; width: 140px; object-fit: contain; }
.logo--nav img { width: 138px; }
.logo--final img, .logo--footer img { width: 150px; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 76px;
  display: flex; align-items: center;
  /* Keeps the logo and menu button clear of the notch/rounded corners when a
     phone is held in landscape. Resolves to 0 on every other device. */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), height 220ms var(--ease);
}
/* The bar's background and blur live on a pseudo-element rather than on .nav.
   backdrop-filter turns an element into the containing block for its
   position:fixed descendants - with it on .nav, the mobile menu panel's
   inset:68px 0 0 0 resolved against the 68px bar instead of the viewport, so
   the panel collapsed to zero height and its links spilled over the page
   with no background behind them. */
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(11,11,11,0.35);
  transition: background 220ms var(--ease);
}
.nav.is-scrolled::before {
  background: rgba(9,9,9,0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav.is-scrolled {
  border-bottom-color: var(--border-charcoal); height: 70px;
}
.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--blue-bright); transform: scaleX(0); transform-origin: left;
}
.nav__inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__links { display: flex; align-items: center; gap: var(--sp-6); }
.nav__links a:not(.btn) { color: rgba(255,255,255,0.78); font-size: 15px; font-weight: 500; transition: color 160ms var(--ease); }
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: var(--sp-10); padding-bottom: var(--sp-10); min-height: 860px; display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-10); align-items: center; width: 100%; }
.hero__sub { margin-top: var(--sp-5); max-width: 500px; }

.hero__bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image:
    radial-gradient(46% 60% at 78% 42%, rgba(37,99,235,0.16) 0%, rgba(37,99,235,0) 70%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 75% 75% at 68% 45%, black 20%, transparent 72%);
}

.eyebrow--blue { color: var(--blue-bright); }

/* ---- Headline entry animation ----
   Default state is fully visible — critical hero content (headline, CTAs)
   must never depend on an animation actually completing. A CSS `animation`
   with a delay can get stuck at its start frame if the tab is backgrounded
   or loses compositing at the wrong moment (e.g. toggling DevTools' device
   toolbar) — so instead of a self-playing animation, JS adds a class on
   load that triggers a plain transition, which always resolves to its
   target style even if it can't animate smoothly. No JS, or JS running
   before paint settles: content is simply visible immediately. */
/* No overflow:hidden here. The reveal translates this very element, so
   clipping it masks nothing - but combined with the 0.98 line-height it cut
   the descenders off "marketing", "your" and any g/y/p on the last line. */
.hero-line { display: block; }
.hero-line > .text-blue { display: inline-block; }
.hero-anim { opacity: 1; transform: none; }
html.js .hero-anim {
  opacity: 0; transform: translateY(16px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}
html.js .hero-anim.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero-anim { opacity: 1; transform: none; }
}

.hero__scroll {
  position: absolute; left: 50%; bottom: var(--sp-4); transform: translateX(-50%);
  font-size: 12.5px; letter-spacing: 0.06em; color: var(--grey-on-dark);
  display: none;
  /* 20px tall on its own - pad it up to a usable target. */
  padding: 8px 12px;
}
@media (min-width: 1080px) and (min-height: 760px) { .hero__scroll { display: block; } }

/* ---- Acquisition network visual ---- */
.hero__visual { position: relative; display: flex; justify-content: center; }
.network { position: relative; width: 100%; max-width: 480px; aspect-ratio: 560 / 900; }
.network__path { position: absolute; inset: 0; width: 100%; height: 100%; }
.network__pulse { offset-path: path('M134,18 C 300,60 380,120 414,171 C 220,220 90,280 134,324 C 300,370 380,430 414,477 C 220,520 90,580 134,630 C 300,680 380,740 414,783'); animation: pulseTravel 7s linear infinite; opacity: 0.9; filter: drop-shadow(0 0 4px rgba(59,130,246,0.7)); }
@keyframes pulseTravel { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.network__node[data-node="1"] { --x: 6%; --y: 2%; }
.network__node[data-node="2"] { --x: 52%; --y: 19%; }
.network__node[data-node="3"] { --x: 2%; --y: 36%; }
.network__node[data-node="4"] { --x: 52%; --y: 53%; }
.network__node[data-node="5"] { --x: 8%; --y: 70%; }
.network__node[data-node="6"] { --x: 52%; --y: 87%; }

.network__node {
  position: absolute; left: var(--x); top: var(--y); width: 44%;
  display: flex; flex-direction: column; gap: 3px;
  background: var(--charcoal); border: 1px solid var(--border-charcoal); border-radius: var(--r-md);
  padding: 14px 16px;
  opacity: 0; transform: translateY(10px); animation: nodeIn 500ms var(--ease) both;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), background 220ms var(--ease);
}
.network__node:nth-of-type(1) { animation-delay: 620ms; }
.network__node[data-node="1"] { animation-delay: 620ms; }
.network__node[data-node="2"] { animation-delay: 700ms; }
.network__node[data-node="3"] { animation-delay: 780ms; }
.network__node[data-node="4"] { animation-delay: 860ms; }
.network__node[data-node="5"] { animation-delay: 940ms; }
.network__node[data-node="6"] { animation-delay: 1020ms; }
@keyframes nodeIn { to { opacity: 1; transform: translateY(0); } }

.network__node:hover, .network__node:focus-visible { border-color: var(--blue-bright); background: #1a1a1a; transform: translateY(-5px); }
.network__node:hover .network__icon, .network__node:focus-visible .network__icon { color: var(--blue-bright); }

.network__icon { width: 22px; height: 22px; color: var(--grey-on-dark); transition: color 220ms var(--ease); }
.network__icon .icon { width: 100%; height: 100%; }
.network__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--white); }
.network__status { font-size: 12px; color: var(--grey-on-dark); }

.network__node.is-warn { border-color: rgba(245,158,11,0.55); background: rgba(245,158,11,0.07); }
.network__node.is-warn .network__icon { color: #F59E0B; }
.network__node.is-warn .network__status { color: #F59E0B; font-weight: 600; font-size: 0; }
.network__node.is-warn .network__status::before { content: "Drop-off detected"; font-size: 12px; }

.icon--sm { width: 14px; height: 14px; }

/* ==========================================================================
   Problem — editorial rows
   ========================================================================== */
.problem__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-12); }
.problem__rows { border-top: 1px solid var(--light-border); }
.problem__row { display: grid; grid-template-columns: 28px 176px 1fr; gap: var(--sp-4); padding-block: var(--sp-5); border-bottom: 1px solid var(--light-border); align-items: center; }
.problem__row .icon--row { margin-bottom: 0; color: var(--grey); }
.problem__row-label { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.problem__row-desc { font-size: 18px; color: var(--grey); max-width: 46ch; }

/* ---- Section-to-section transitional line ---- */
/* Sections ending in one of these lines shouldn't also pay their own full
   bottom section-pad — the line's own spacing plus the next section's top
   pad already reads as one deliberate gap. */
.section:has(> .section-link) { padding-bottom: 0; }
.section-link {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(15px, 1.2vw, 17px); color: var(--grey); letter-spacing: -0.005em;
  padding-block: var(--sp-4) var(--sp-3); margin: 0;
}
.section-link--dark { color: var(--grey-on-dark); }

/* ==========================================================================
   System — pinned scroll story
   ========================================================================== */
.system__pin-wrap { position: relative; }
html.js .system__pin-wrap { height: 240vh; }
.system__pin { padding-block: var(--sp-4) 0; }
html.js .system__pin { position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; align-items: center; padding-block: 0; }
@media (max-width: 900px), (max-height: 640px) {
  html.js .system__pin-wrap { height: auto; }
  html.js .system__pin { position: static; height: auto; padding-block: var(--sp-4) 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .system__pin-wrap { height: auto; }
  html.js .system__pin { position: static; height: auto; padding-block: var(--sp-4) 0; }
}

.system__head { max-width: 760px; margin-bottom: var(--sp-12); }
.flow { position: relative; }
.flow__line { position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--border-charcoal); }
.flow__pulse {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 8px 2px rgba(59,130,246,0.6);
  transform: translateX(0); opacity: 0; transition: opacity 300ms var(--ease);
}
.flow__pulse.is-active { opacity: 1; }
.flow__track { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; z-index: 1; }
.flow__stage { background: none; border: none; text-align: left; cursor: pointer; padding: 0; color: inherit; }
.flow__stage-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--charcoal); border: 1px solid var(--border-charcoal); margin-bottom: var(--sp-4); transition: background 220ms var(--ease), border-color 220ms var(--ease); }
.flow__stage:hover .flow__stage-dot, .flow__stage:focus-visible .flow__stage-dot, .flow__stage.is-active .flow__stage-dot, .flow__stage.in-view .flow__stage-dot { background: var(--blue-bright); border-color: var(--blue-bright); }
.flow__stage-index { display: block; font-size: 12.5px; color: var(--grey-on-dark); margin-bottom: 6px; }
.flow__stage-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: rgba(255,255,255,0.7); transition: color 220ms var(--ease); padding-right: var(--sp-2); }
.flow__stage:hover .flow__stage-title, .flow__stage:focus-visible .flow__stage-title, .flow__stage.is-active .flow__stage-title, .flow__stage.in-view .flow__stage-title { color: var(--white); }

.flow__stage-flag {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #F59E0B; height: 0; overflow: hidden; opacity: 0; transition: opacity 220ms var(--ease);
  margin-top: 4px;
}
.flow__stage.is-warn .flow__stage-dot { background: #F59E0B; border-color: #F59E0B; }
.flow__stage.is-warn .flow__stage-title { color: #F59E0B; }
.flow__stage.is-warn .flow__stage-flag { height: auto; opacity: 1; }

.flow__hint {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease);
  grid-column: 1 / -1; margin-top: var(--sp-4);
}
.flow__hint > p { overflow: hidden; font-size: 17px; color: rgba(255,255,255,0.65); max-width: 640px; padding-top: 0; }
.flow__hint.is-open { grid-template-rows: 1fr; }
.flow__hint.is-open > p { padding-top: var(--sp-4); border-top: 1px solid var(--border-charcoal); }

/* ==========================================================================
   Services — editorial 2x2
   ========================================================================== */
.services__connector {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 96px;
  background: linear-gradient(var(--blue-bright), transparent);
  opacity: 0.5;
}
.services__head { max-width: 700px; margin-bottom: var(--sp-12); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--light-border); }
.service-block { padding: var(--sp-8) var(--sp-6) var(--sp-8) 0; border-bottom: 1px solid var(--light-border); }
.service-block:nth-child(odd) { padding-right: var(--sp-8); border-right: 1px solid var(--light-border); }
.service-block:nth-child(even) { padding-left: var(--sp-8); }
.service-block__num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--grey); margin-bottom: var(--sp-3); }
.service-block h3 { margin-bottom: 6px; }
.service-block__tag { color: var(--grey); font-size: 17px; margin-bottom: var(--sp-4); }
.service-block__list { font-size: 16px; color: var(--ink); }
.service-block__list span:not(:last-child)::after { content: " · "; color: var(--light-border); }

/* ==========================================================================
   Diagnostic interlude
   ========================================================================== */
.interlude__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.interlude__metrics { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--sp-5); }
.interlude__metric { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.interlude__metric .arrow-up { color: #86EFAC; }
.interlude__metric .arrow-down { color: #FCA5A5; }
.interlude .h-2 { color: var(--white); margin-bottom: var(--sp-3); }
.interlude p.standard { margin-bottom: var(--sp-6); }

.interlude-chart { width: 100%; height: 260px; }
.interlude__bleed {
  position: absolute; top: -140px; left: 0; right: 0; height: 280px; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(37,99,235,0.16), transparent 72%);
}
.interlude-chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease); }
.interlude-chart.is-visible .interlude-chart__line { stroke-dashoffset: 0; }
.interlude-chart__line--down { transition-delay: 150ms; }

/* ==========================================================================
   Free audit
   ========================================================================== */
.audit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.audit__content .h-2 { color: var(--white); margin-bottom: var(--sp-3); }
.audit__content p.standard { margin-bottom: var(--sp-5); }

.checklist { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--sp-6); }
.checklist li { position: relative; padding-left: 28px; font-size: 17px; color: rgba(255,255,255,0.88); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--blue-bright); font-weight: 700; }

.audit-visual { border: 1px solid var(--border-charcoal); border-radius: var(--r-lg); padding: var(--sp-6); }
.audit-visual__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--white); margin-bottom: var(--sp-4); }
.audit-visual__list { display: flex; flex-direction: column; }
.audit-visual__item { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-top: 1px solid var(--border-charcoal); font-size: 16px; color: rgba(255,255,255,0.82); }
.audit-visual__item:last-child { border-bottom: 1px solid var(--border-charcoal); }
.audit-visual__check { color: var(--blue-bright); font-weight: 700; opacity: 0; transition: opacity 300ms var(--ease); }
.audit-visual__item.is-checked .audit-visual__check { opacity: 1; }

/* Form — separate, flat section */
.audit-form-section { background: var(--charcoal); }
.audit-form { max-width: 820px; margin-inline: auto; }
.audit-form__title { text-align: center; margin-bottom: var(--sp-8); }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.field label, .field__legend { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7); }
.field input, .field select, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--border-charcoal);
  border-radius: 0; padding: 13px 2px; height: 52px; color: var(--white); font-size: 16px;
  transition: border-color 160ms var(--ease);
}
.field textarea { height: auto; resize: vertical; min-height: 80px; padding-top: 12px; }
/* Native <select> popup is drawn by the OS/browser, not this stylesheet — without
   color-scheme it defaults to a light popup even though the closed field is dark. */
.field select { color-scheme: dark; }
.field select option { background: var(--charcoal); color: var(--white); }
/* Focus: the blue border is the mouse-click affordance. The global
   :focus-visible ring (see top of file) must survive for keyboard users -
   suppressing the outline on plain :focus removed it from every field on the
   lead form, which is the one place it matters most. */
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-bright); }
.field input:focus:not(:focus-visible),
.field select:focus:not(:focus-visible),
.field textarea:focus:not(:focus-visible) { outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #F87171; }
.field__error { font-size: 12.5px; color: #F87171; min-height: 15px; }

.radio-row { display: flex; gap: var(--sp-6); padding-top: 6px; }
.radio { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85); cursor: pointer; }
.radio input { accent-color: var(--blue); width: 16px; height: 16px; }

.form-note { min-height: 18px; font-size: 13.5px; color: var(--grey-on-dark); margin-top: var(--sp-2); }
.audit-form-section .btn--primary { margin-top: var(--sp-2); }

.audit-form__success { text-align: center; max-width: 560px; margin-inline: auto; }
.audit-form__success .h-3 { color: var(--white); margin-bottom: var(--sp-2); }

/* ==========================================================================
   Process — single line
   ========================================================================== */
.process__head { max-width: 640px; margin-bottom: var(--sp-12); }
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.process-track__line { position: absolute; top: 27px; left: 2%; right: 2%; height: 1px; background: var(--light-border); }
.process-track__line-fill { position: absolute; inset: 0; width: 0%; background: var(--blue); transition: width 1200ms var(--ease); }
.process-step { position: relative; z-index: 1; padding-right: var(--sp-4); }
.process-step__index {
  width: 54px; height: 54px; border-radius: 50%; background: var(--soft-white);
  border: 1px solid var(--blue); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  margin-bottom: var(--sp-3);
}
.process-step__index .icon { width: 20px; height: 20px; }
.process-step h3 { font-size: clamp(18px, 1.5vw, 21px); margin-bottom: 6px; }
.process-step p { color: var(--grey); font-size: 15.5px; }

/* ==========================================================================
   Differentiation — editorial split
   ========================================================================== */
.why__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-12); align-items: start; }
.why__rows { border-top: 1px solid var(--light-border); }
.why__row { padding-block: var(--sp-5); border-bottom: 1px solid var(--light-border); }
.why__row h3 { margin-bottom: 6px; }
.why__row p { color: var(--grey); font-size: 17px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__head { max-width: 640px; margin-bottom: var(--sp-8); }
.accordion { max-width: 850px; border-top: 1px solid var(--light-border); }
.accordion__item { border-bottom: 1px solid var(--light-border); }
.accordion__trigger {
  width: 100%; text-align: left; background: none; border: none;
  padding: var(--sp-4) 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; cursor: pointer;
}
.accordion__trigger::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--blue); transition: transform 220ms var(--ease); margin-left: var(--sp-3); }
.accordion__trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); }
.accordion__panel > p { overflow: hidden; padding-right: var(--sp-6); color: var(--grey); font-size: 16px; line-height: 1.6; max-width: 66ch; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__item.is-open .accordion__panel > p { padding-bottom: var(--sp-4); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { text-align: center; }
.final-cta__bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image:
    radial-gradient(50% 70% at 50% 30%, rgba(37,99,235,0.10) 0%, rgba(37,99,235,0) 70%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
  animation: bgDrift 26s linear infinite;
}
@keyframes bgDrift { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 64px 64px, 64px 64px; } }
.final-cta .h-1 { color: var(--white); margin-block: var(--sp-3) var(--sp-5); }
.final-cta p.standard { max-width: 520px; margin-inline: auto; margin-bottom: var(--sp-8); }
.final-cta .logo { display: flex; justify-content: center; margin-top: var(--sp-10); opacity: 0.7; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--black); color: var(--white); padding-block: var(--sp-10) var(--sp-5); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--sp-8); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--border-charcoal); }
.footer__brand p { margin-top: var(--sp-4); color: var(--grey-on-dark); font-size: 15px; max-width: 300px; }
.footer__col-title { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-on-dark); margin-bottom: var(--sp-3); }
.footer__col a { display: block; color: rgba(255,255,255,0.72); font-size: 15px; padding-block: 6px; transition: color 160ms var(--ease); }
.footer__col a:hover { color: var(--blue-bright); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); padding-top: var(--sp-5); }
.footer__bottom p { color: var(--grey-on-dark); font-size: 13.5px; }
.footer__socials { display: flex; gap: var(--sp-4); }
.footer__socials a { font-size: 13.5px; color: var(--grey-on-dark); }
.footer__socials a:hover { color: var(--blue-bright); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal, .fx-scale { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
html.js .fx-scale { opacity: 0; transform: scale(0.95); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
html.js .reveal.is-visible, html.js .fx-scale.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .fx-scale { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .hero__grid, .problem__grid, .interlude__grid, .audit__grid, .why__grid { grid-template-columns: 1fr; }
  .problem__grid { gap: var(--sp-6); }
  /* Clears the 68px fixed bar before the eyebrow starts, instead of leaving
     the hero's first line 12px under it. */
  .hero { min-height: 0; padding-top: calc(68px + var(--sp-8)); }
  .network { max-width: 440px; margin-top: var(--sp-8); }
}

@media (max-width: 640px) {
  /* The absolute layout needs desktop width to read as a connected journey.
     Narrowed to a phone it became a few cards adrift in empty space, with
     Targeting and Tracking hidden entirely - so the sequence it exists to
     show was the part that got lost. Below 640px it becomes a plain vertical
     list of all six stages and the connecting curve is dropped. */
  .hero__grid { gap: var(--sp-6); }
  .network {
    position: static;
    max-width: none; aspect-ratio: auto; margin-top: 0;
    display: grid; gap: 10px;
  }
  .network__path { display: none; }
  .network__node {
    position: static; width: auto;
    display: grid; grid-template-columns: 22px 1fr;
    grid-template-areas: "icon label" "icon status";
    column-gap: 12px; row-gap: 2px; align-items: center;
    padding: 12px 14px;
  }
  .network__icon { grid-area: icon; align-self: center; }
  .network__label { grid-area: label; }
  .network__status { grid-area: status; }
  /* Lift on hover assumed an absolutely-placed card; in a list it just makes
     the row jump against its neighbours. */
  .network__node:hover, .network__node:focus-visible { transform: none; }
  .hero__scroll { display: none; }
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-block:nth-child(odd) { padding-right: 0; border-right: none; }
  .service-block:nth-child(even) { padding-left: 0; }
  .flow__track { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-8); }
  .flow__line { display: none; }
  .process-track { grid-template-columns: 1fr; gap: var(--sp-6); }
  .process-track__line { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .problem__row { grid-template-columns: 24px auto; gap: var(--sp-2) var(--sp-3); }
  .problem__row-desc { grid-column: 2; }
}

@media (max-width: 860px) {
  .nav { height: 68px; }
  .nav__links {
    position: fixed; inset: 68px 0 0 0; flex-direction: column; align-items: flex-start; gap: var(--sp-4);
    background: var(--black); padding: var(--sp-6) var(--gutter);
    transform: translateX(100%); transition: transform 260ms var(--ease); z-index: 90;
  }
  .nav__links.is-open { transform: translateX(0); }
  /* Solid bar while the menu is open, so the top strip matches the panel
     instead of showing the page through it. */
  .nav.is-menu-open::before {
    background: var(--black);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav__toggle { display: flex; }
  .btn--nav { width: 100%; justify-content: center; }
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: var(--sp-6); }
  .logo--nav img { width: 112px; }
}

@media (max-width: 640px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
  .footer__top { grid-template-columns: 1fr; }
  .flow-hero { max-width: none; }
}
