@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/inter-tight-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('../fonts/dm-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-var.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.wt-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 var(--text-md)/1.5 var(--font-body);
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { color: var(--color-heading); font-family: var(--font-heading); font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-heading); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--color-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 30; background: var(--color-heading); color: var(--color-bg); padding: var(--space-2) var(--space-4); }
.skip:focus { top: var(--space-4); }

/* Calm, decelerating curve used for every reveal and transition. */
:root { --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); --ease-in-out: cubic-bezier(0.6, 0, 0.2, 1); }

/* ---------- Shared bits ---------- */
/* One idea per viewport: generous vertical rhythm, centred head, narrow measure. */
.section { padding: clamp(6rem, 13vw, 11rem) var(--gutter); }
.section-head { display: grid; justify-items: center; gap: var(--space-6); max-width: 50rem; margin: 0 auto clamp(3.5rem, 7vw, 6rem); text-align: center; }
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-3);
  font: 500 var(--text-xs)/1.4 var(--font-body);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-heading);
}
.eyebrow-mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.08em; color: var(--color-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); flex: none; }
/* Tracking tightens as type grows; leading tightens with it. */
.h2 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); line-height: 1.03; letter-spacing: -0.038em; text-wrap: balance; }
.h2-xl { font-size: clamp(2.5rem, 6.6vw, 6rem); line-height: 0.98; letter-spacing: -0.045em; }
.h2-sm { font-size: clamp(2rem, 3.6vw, 3rem); }
.h2 .short { display: none; }
.lead { font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); line-height: 1.5; letter-spacing: -0.006em; color: var(--color-muted); max-width: 34em; text-wrap: pretty; }
.dark .lead { color: var(--color-muted-on-dark); }
.center-action { display: flex; justify-content: center; margin-top: clamp(3rem, 6vw, 5rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 3.25rem; padding: var(--space-3) var(--space-8);
  font: 700 var(--text-xs)/1 var(--font-body);
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  transition: background-color .2s, color .2s, border-color .2s, transform .1s ease-out;
}
/* Feedback lands on the press, not the release. */
.btn:active, .play:active .play-icon, .link-arrow:active { transform: scale(0.97); }
.btn .arrow { font-size: 1.25em; line-height: 0.5; font-weight: 600; }
.btn-sm { min-height: 2.5rem; padding-inline: var(--space-4); font-weight: 600; }
.btn-primary { background: var(--color-primary); color: var(--color-heading); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-dark { background: var(--color-heading); color: var(--color-bg); }
.btn-dark:hover { background: var(--color-text); }
.btn-outline { border-color: var(--color-muted); color: var(--color-heading); }
.btn-outline:hover { background: var(--color-heading); color: var(--color-bg); }
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: 500 1rem/1.3 var(--font-body); color: var(--color-heading);
  padding-block: var(--space-2); border-bottom: 1px solid var(--color-muted);
  transition: border-color .2s, transform .1s ease-out;
}
.link-arrow:hover { border-color: var(--color-heading); }

.placeholder {
  display: grid; place-items: center; padding: var(--space-4);
  background: repeating-linear-gradient(135deg, var(--color-placeholder) 0 12px, var(--color-surface) 12px 13px);
  color: var(--color-text);
  font: 400 var(--text-xs)/1.4 var(--font-mono);
  text-align: center;
  text-wrap: balance;
}
.placeholder-dark {
  background: repeating-linear-gradient(135deg, var(--color-placeholder-dark) 0 12px, var(--color-ink-dark) 12px 13px);
  color: var(--color-muted-on-dark);
}

.dark { background: var(--color-ink-dark); color: var(--color-on-dark); }
.dark h2, .dark .eyebrow { color: var(--color-on-dark); }

/* ---------- Scroll reveals (only with JS and when motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(1.75rem); }
  /* Images open from a slightly inset frame and settle from a gentle scale. */
  .js [data-reveal="image"] { transition: clip-path 1.6s var(--ease-out); }
  .js [data-reveal="image"]:not(.is-in) { opacity: 1; transform: none; clip-path: inset(8% 6% round 1.75rem); }
  .js [data-reveal="image"] > * { transition: transform 1.8s var(--ease-out); }
  .js [data-reveal="image"]:not(.is-in) > * { transform: scale(1.08); }
}

/* ---------- Header: translucent bar, content scrolls under it ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--color-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); max-width: 80rem; margin-inline: auto; padding: var(--space-3) var(--gutter); }
.logo { display: inline-block; font: 800 0.8125rem/0.9 var(--font-heading); letter-spacing: -0.04em; color: var(--color-heading); }
.logo sup { font-size: 0.4em; font-weight: 600; vertical-align: top; position: relative; top: 0.5em; margin-left: 0.1em; }
.site-nav { display: flex; align-items: center; gap: var(--space-8); }
.site-nav ul { display: flex; gap: var(--space-8); }
.site-nav ul a { white-space: nowrap; font: 400 0.8125rem/1 var(--font-body); color: var(--color-text); padding-block: var(--space-2); transition: color .2s; }
.site-nav ul a:hover { color: var(--color-heading); }
.locale { display: inline-flex; align-items: center; gap: var(--space-1); font: 500 0.8125rem/1 var(--font-body); color: var(--color-muted); }
.nav-toggle { display: none; }
.site-nav .btn { white-space: nowrap; }
@media (max-width: 1180px) { .site-nav, .site-nav ul { gap: var(--space-4); } }

/* ---------- 1. Hero ---------- */
.hero { position: relative; overflow: clip; background: var(--color-surface); text-align: center; }
.hero-copy { position: relative; z-index: 1; display: grid; justify-items: center; padding: clamp(4.5rem, 9vw, 8rem) var(--gutter) 0; }
.hero .eyebrow .dot { width: 9px; height: 9px; }
.hero .eyebrow .sep { color: var(--color-border); font-family: var(--font-body); }
.hero h1 {
  font-size: clamp(3rem, 8.4vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 10.5em;
  margin-block: var(--space-8) var(--space-6);
  text-wrap: balance;
}
.hero-sub { font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.42; letter-spacing: -0.01em; max-width: 29em; color: var(--color-muted); text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-4) var(--space-12); margin-top: var(--space-12); }
/* The play button launches the walkthrough, so it gets real weight: a solid dark disc with a lime glyph. */
.play { display: inline-flex; align-items: center; gap: var(--space-4); text-align: left; }
.play-icon {
  position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--color-heading); color: var(--color-primary);
  transition: transform .1s ease-out;
}
.play-icon svg { margin-left: 3px; }
.play-icon::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--color-border); transition: inset .35s var(--ease-out), border-color .35s; }
.play:hover .play-icon::after { inset: -9px; border-color: var(--color-muted); }
.play strong { display: block; font: 600 0.9375rem/1.3 var(--font-body); color: var(--color-heading); }
.play small { display: block; font: 400 0.6875rem/1.5 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }

/* Product shot: the devices sit right of the photo's centre, so shift it left to centre them,
   and pull it up under the copy so the empty wall becomes the headline's backdrop. */
.hero-media {
  --w: min(1448px, 108vw);
  position: relative; width: var(--w);
  margin: calc(var(--w) * -0.14) 0 0 calc(50% - var(--w) * 0.6);
  -webkit-mask-image: linear-gradient(to bottom, transparent 18%, #000 34%), linear-gradient(to right, #000 82%, transparent 99%);
  mask-image: linear-gradient(to bottom, transparent 18%, #000 34%), linear-gradient(to right, #000 82%, transparent 99%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero-shot { position: relative; }
.hero-shot img { width: 100%; }
.hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; font-family: var(--font-heading); text-align: left; }
.hero-overlay .ink { fill: var(--color-heading); }
.hero-overlay .soft { fill: var(--color-muted); }
.hero-overlay .up { fill: var(--color-accent); }
.hero-overlay .pill { fill: var(--color-ui-pill); }
.hero-overlay .light { fill: var(--color-surface); }
.hero-overlay .dim { fill: var(--color-muted-on-dark); }

/* ---------- 2. Problem ---------- */
.problem { background: var(--color-bg); }
/* Five cards along a customer's path; the leak at each step is flagged underneath. */
.leak { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.5rem, 3.2vw, 3.5rem); max-width: 80rem; margin-inline: auto; }
.leak-step { position: relative; display: grid; grid-template-rows: 1fr 1.25rem; justify-items: center; gap: var(--space-6); }
.leak-card { height: 100%; }
.leak-card {
  width: 100%; overflow: hidden; border-radius: 1.25rem; background: color-mix(in srgb, var(--color-surface) 70%, #fff);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 18px 40px -22px color-mix(in srgb, var(--color-ink-dark) 35%, transparent);
}
.leak-card h3 { padding: var(--space-6) var(--space-6) var(--space-1); font-size: 1.25rem; letter-spacing: -0.025em; }
.leak-card > p { padding: 0 var(--space-6) var(--space-6); font-size: 0.9375rem; line-height: 1.45; color: var(--color-muted); }
.leak-vis { position: relative; display: grid; place-items: center; height: 11rem; overflow: hidden; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.leak-arrow { position: absolute; top: 5.5rem; left: 100%; width: clamp(1.25rem, 2.6vw, 2.75rem); height: 12px; margin-left: calc(clamp(1.5rem, 3.2vw, 3.5rem) / 2 - clamp(1.25rem, 2.6vw, 2.75rem) / 2); fill: none; stroke: var(--color-heading); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.leak-flag { display: inline-flex; align-items: center; gap: var(--space-3); font: 400 0.8125rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-heading); }
.leak-bang { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #e2513c; color: #fff; font: 700 0.75rem/1 var(--font-body); }

/* Mock UI inside the cards */
.mk-photo { position: absolute; inset: 0; }
.mk-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.mk-form { display: grid; gap: 6px; width: 86%; }
.mk-input { padding: 6px 9px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; font-size: 0.6875rem; color: var(--color-muted); }
.mk-area { height: 2.75rem; }
.mk-submit { display: grid; place-items: center; height: 1.75rem; border-radius: 999px; background: var(--color-heading); color: #fff; font-size: 0.6875rem; font-weight: 600; }
.mk-mail { width: 86%; padding: var(--space-4); border-radius: 0.75rem; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.mk-mail-head { display: flex; align-items: center; gap: var(--space-2); }
.mk-env { display: grid; place-items: center; color: #e2513c; }
.mk-mail-head strong { font-size: 0.75rem; font-weight: 600; color: var(--color-heading); }
.mk-mail-head em { margin-left: auto; font-style: normal; font-size: 0.625rem; color: var(--color-muted); }
.mk-mail p { margin: var(--space-3) 0 var(--space-2); font-size: 0.6875rem; color: var(--color-text); }
.mk-mail i { display: block; height: 5px; margin-top: 5px; border-radius: 3px; background: var(--color-ui-pill); }
.mk-mail i.short { width: 70%; }
.mk-cal { width: 86%; }
.mk-cal-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); color: var(--color-heading); }
.mk-cal-head strong { font-size: 0.75rem; font-weight: 600; }
.mk-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mk-slots span { display: grid; place-items: center; height: 2rem; border-radius: 6px; background: #fff; font-size: 0.6875rem; color: var(--color-heading); }
.mk-slots .off { color: var(--color-muted); opacity: .55; }
.leak-paid .leak-vis { background:
  radial-gradient(120% 90% at 18% 20%, #f2c27a 0%, #c98a45 28%, transparent 60%),
  radial-gradient(90% 80% at 85% 85%, #2a2420 0%, transparent 70%),
  linear-gradient(160deg, #b67a3e, #3b2c22 70%); }
.mk-check { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--color-heading); color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary), 0 10px 24px -6px rgb(0 0 0 / .5); }

/* Problem, mobile: the journey as one swipeable track (desktop keeps the five-card row). */
.pj { display: none; }
@media (max-width: 700px) {
  .problem .leak, .problem > .center-action { display: none; }
  .pj { display: block; }
  .pj-miles { display: flex; justify-content: space-between; margin-bottom: var(--space-6); font: 400 0.6875rem/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
  .pj-miles li { position: relative; padding-bottom: var(--space-2); transition: color .3s; }
  .pj-miles li + li::before { content: '\2192'; position: absolute; right: calc(100% + 0.2rem); color: var(--color-border); }
  .pj-miles li::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
  .pj-miles li.is-on { color: var(--color-heading); }
  .pj-miles li.is-on::after { transform: none; }
  .pj-miles li.is-past { color: var(--color-heading); }

  /* Cards are a little narrower than the screen so the next one peeks in: one continuous path. */
  .pj-track {
    display: flex; gap: var(--space-3); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--space-6);
  }
  .pj-track::-webkit-scrollbar { display: none; }
  .pj-track:focus-visible { outline-offset: -2px; }
  /* Positioned so screen-reader-only labels inside stay in their card instead of widening the page. */
  .pj-track { position: relative; }
  .pj-slide, .pj-end { position: relative; flex: 0 0 86%; scroll-snap-align: start; scroll-snap-stop: always; }
  .pj-slide .leak-vis { height: 12.5rem; }
  .pj-slide h3 { display: flex; align-items: center; gap: var(--space-2); }
  .pj-num { font: 400 0.75rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--color-muted); margin-right: var(--space-1); }
  .pj-slide.is-leak .leak-card { box-shadow: inset 0 2px 0 #e2513c, 0 1px 2px rgb(0 0 0 / .04), 0 18px 40px -22px color-mix(in srgb, var(--color-ink-dark) 35%, transparent); }
  .pj-end { flex-basis: 100%; display: grid; align-content: center; justify-items: start; gap: var(--space-6); padding: var(--space-6) var(--space-2); }
  .pj-end-title { font: 700 1.75rem/1.1 var(--font-heading); letter-spacing: -0.035em; color: var(--color-heading); text-wrap: balance; }
  .pj-end-title span { color: var(--color-muted); }
  .pj .chm-controls { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }
  .pj .chm-arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--color-border); color: var(--color-heading); transition: border-color .2s, opacity .2s, transform .1s ease-out; }
  .pj .chm-arrow:active { transform: scale(0.94); }
  .pj .chm-arrow:disabled { opacity: 0.35; cursor: default; }
  .pj [data-pj-next] { margin-left: auto; }
  .pj .chm-count { font: 400 0.8125rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--color-heading); }
  .pj .chm-dots { display: flex; gap: 6px; }
  .pj .chm-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--color-muted); transition: background-color .3s, border-color .3s; }
  .pj .chm-dots i.is-on { width: 20px; border-radius: 4px; background: var(--color-primary); border-color: var(--color-heading); }
  .pj .chm-dots i.is-past { background: var(--color-heading); border-color: var(--color-heading); }

  /* New mocks for the stages the desktop row covers with a flag only */
  .mk-search, .mk-slow, .mk-crm, .mk-attr { width: 86%; padding: var(--space-4); border-radius: 0.75rem; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .06); font-size: 0.75rem; color: var(--color-heading); }
  .mk-q { display: flex; align-items: center; gap: var(--space-2); padding: 7px 10px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text); }
  .mk-res { margin-top: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: 0.5rem; }
  .mk-res.is-ad { background: color-mix(in srgb, var(--color-primary) 22%, #fff); box-shadow: inset 0 0 0 1.5px var(--color-heading); }
  .mk-res small { display: block; font-size: 0.625rem; color: var(--color-muted); }
  .mk-res strong { font-weight: 600; }
  .mk-res i, .mk-slow > i { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: var(--color-ui-pill); }
  .mk-res i.short, .mk-slow > i.short { width: 60%; }
  .mk-bar { display: block; height: 3px; border-radius: 2px; background: var(--color-ui-pill); overflow: hidden; }
  .mk-bar i { display: block; width: 34%; height: 100%; background: var(--color-muted); }
  .mk-slow p { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-4) 0 var(--space-2); color: var(--color-text); }
  .mk-slow b { margin-left: auto; color: #c2402c; }
  .mk-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--color-ui-pill); border-top-color: var(--color-muted); }
  .mk-late { display: inline-block; margin-top: var(--space-2); padding: 3px 8px; border-radius: 999px; background: #fbe4df; color: #b3381f; font-size: 0.625rem; font-weight: 600; }
  .mk-crm-row { display: flex; align-items: center; justify-content: space-between; }
  .mk-crm-row strong { font-size: 0.8125rem; }
  .mk-cold { padding: 2px 8px; border-radius: 999px; background: #e7ecf2; color: #4a5a6e; font-size: 0.625rem; font-weight: 600; }
  .mk-crm small { display: block; margin-top: 2px; color: var(--color-muted); }
  .mk-crm p { margin-top: var(--space-3); color: var(--color-text); }
  .mk-crm-task { display: block; margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-border); color: var(--color-muted); }
  .mk-crm-task i { font-style: normal; color: #b3381f; }
  .mk-attr small { display: block; color: var(--color-muted); }
  .mk-attr p { margin-top: var(--space-3); color: var(--color-muted); font-size: 0.6875rem; }
  .mk-attr strong { font: 700 1.25rem/1.1 var(--font-heading); letter-spacing: -0.02em; }
  .mk-guess { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--space-3); }
  .mk-guess span { padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--color-muted); color: var(--color-muted); font-size: 0.625rem; }
}

/* ---------- 3. System ---------- */
.system { background: var(--color-surface); }
.process-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 76rem; margin-inline: auto; border-block: 1px solid var(--color-border); }
.step { display: grid; justify-items: center; align-content: start; gap: var(--space-2); padding: var(--space-12) var(--space-4); text-align: center; }
.step + .step { border-left: 1px solid var(--color-border); }
.step-num { font: 500 2.5rem/1 var(--font-numeral); letter-spacing: -0.01em; color: var(--color-heading); margin-bottom: var(--space-3); }
.step-title { font: 600 1.125rem/1.2 var(--font-heading); letter-spacing: -0.015em; }
.step p { font-size: 0.875rem; line-height: 1.5; color: var(--color-muted); max-width: 13em; }
.step-result { align-content: center; }
.step-result .step-num { color: var(--color-muted); }
.profit { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.3em 0.8em; border-radius: 999px; background: var(--color-primary); font-size: 1.375rem; }
.profit svg { width: 0.8em; height: 0.8em; }

/* ---------- 4. Services: chapters with a pinned, rebuilding visual ---------- */
.ch { max-width: 76rem; margin-inline: auto; }
.chapter { display: grid; justify-items: start; gap: var(--space-4); padding-block: var(--space-16); border-top: 1px solid var(--color-border); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.ch-eyebrow { font: 400 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.ch-num { color: var(--color-heading); }
.ch-q { font: 500 1rem/1.4 var(--font-body); color: var(--color-muted); margin-top: var(--space-4); }
.ch-title { font-size: clamp(2.375rem, 4.1vw, 3.75rem); line-height: 1; letter-spacing: -0.045em; }
.ch-copy { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; letter-spacing: -0.006em; color: var(--color-muted); max-width: 30em; margin-top: var(--space-2); }
.ch-img { width: 100%; margin-top: var(--space-6); }
.ch-img img, .ch-img.placeholder { width: 100%; border-radius: 1.5rem; }
.ch-img.placeholder { aspect-ratio: 520 / 681; }
.ch-frame { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-8); width: 100%; max-width: 32rem; margin-top: var(--space-8); }
.ch-frame div { display: grid; gap: var(--space-1); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.ch-frame div:first-child { border-top-color: var(--color-primary); }
.ch-frame dt { font: 600 0.75rem/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-heading); }
.ch-frame dd { font-size: 1rem; line-height: 1.45; color: var(--color-muted); }
.ch-stage { display: none; }

@media (min-width: 1000px) {
  .ch.is-enhanced { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-16); }
  .ch.is-enhanced .chapter { min-height: 92vh; align-content: center; border-top: 0; padding-block: var(--space-12); }
  .ch.is-enhanced .ch-img { display: none; }
  .ch.is-enhanced .chapter { transition: opacity .7s var(--ease-out); }
  .ch.is-enhanced .chapter:not(.is-active) { opacity: 0.18; }
  .ch.is-enhanced .ch-stage {
    --h: min(74vh, 44rem);
    display: grid; justify-items: center; gap: var(--space-6);
    position: sticky; top: calc(50vh - var(--h) / 2 - 0.5rem); align-self: start;
  }
  .ch-frame-visual { position: relative; height: var(--h); aspect-ratio: 520 / 681; }
  .ch-visual { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-out); }
  .ch-visual.is-active { opacity: 1; }
  .ch-pic { position: absolute; inset: 0; overflow: clip; border-radius: 1.75rem; }
  .ch-pic img { width: 100%; height: 100%; object-fit: cover; }
  .ch-pic.placeholder { display: grid; }
  /* The model assembles: the render rises into place from its base. */
  .ch-visual .ch-pic { clip-path: inset(100% 0 0 0 round 1.75rem); transform: translateY(3%); transition: clip-path 1.4s var(--ease-out), transform 1.6s var(--ease-out); }
  .ch-visual.is-active .ch-pic { clip-path: inset(0 0 0 0 round 1.75rem); transform: none; }
  /* No labels on the image: it settles slowly while the framework beside it lights up in step. */
  .ch-pic img { transform: scale(1.08); transition: transform 3.2s var(--ease-out); }
  .ch-visual.is-active .ch-pic img { transform: none; }
  .ch.is-enhanced .ch-frame div { position: relative; border-top-color: var(--color-border); opacity: 0.35; transition: opacity .8s var(--ease-out); }
  .ch.is-enhanced .ch-frame div::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; border-top: 1px solid var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out); }
  .ch.is-enhanced .chapter.is-active .ch-frame div { opacity: 1; transition-delay: calc(1s + var(--i) * 0.45s); }
  .ch.is-enhanced .chapter.is-active .ch-frame div::before { transform: none; transition-delay: calc(1s + var(--i) * 0.45s); }
  .ch-index { display: flex; gap: var(--space-6); font: 400 0.6875rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
  .ch-index li { display: flex; align-items: center; gap: var(--space-2); transition: color .4s; }
  .ch-index button { display: flex; align-items: center; gap: inherit; padding: var(--space-1); margin: calc(var(--space-1) * -1); border-radius: 999px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
  .ch-index button:hover span { border-color: var(--color-heading); color: var(--color-heading); }
  .ch-index button:active span { transform: scale(0.94); }
  .ch-index li span { transition: background-color .4s, border-color .4s, transform .1s ease-out; }
  .ch-index li span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--color-border); transition: background-color .4s, border-color .4s; }
  .ch-index li:not(.is-active) { font-size: 0; gap: 0; }
  .ch-index li:not(.is-active) span { font-size: 0.6875rem; }
  .ch-index li.is-active { color: var(--color-heading); }
  .ch-index li.is-active span { background: var(--color-primary); border-color: var(--color-primary); }
}

/* ---------- 5. Proof ---------- */
.case .section-head { max-width: 62rem; }
.case-photo { max-width: 80rem; margin-inline: auto; border-radius: 1.75rem; overflow: clip; }
.case-photo { position: relative; }
.case-photo img { width: 100%; aspect-ratio: 1536 / 658; object-fit: cover; }
.case-tag { position: absolute; left: var(--space-4); bottom: var(--space-4); padding: 0.45em 0.8em; border-radius: 999px; background: color-mix(in srgb, var(--color-ink-dark) 70%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 400 0.6875rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-on-dark); }
.metrics { display: grid; max-width: 62rem; margin: clamp(4rem, 9vw, 8rem) auto 0; }
.metrics div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; gap: var(--space-8); padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--color-border-dark); }
.metrics div:last-child { border-bottom: 1px solid var(--color-border-dark); }
.metrics dd { font: 700 clamp(4rem, 11vw, 9.5rem)/0.9 var(--font-heading); letter-spacing: -0.055em; color: var(--color-on-dark); }
.metrics div:first-child dd { color: var(--color-primary); }
.metrics dt { font: 500 clamp(1.125rem, 2vw, 1.75rem)/1.25 var(--font-heading); letter-spacing: -0.02em; color: var(--color-muted-on-dark); }

/* ---------- 6. Approach ---------- */
/* The stack stays in view while the five layers pass beside it; the active layer's
   front edge is traced on the render and its text comes forward. */
.approach { background: var(--color-surface); }
.approach-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); max-width: 76rem; margin-inline: auto; }
.stack-wrap { position: sticky; top: calc(50vh - min(19vw, 17rem) + 1.75rem); align-self: start; }
.stack-frame { position: relative; }
.stack img { width: 100%; }
.stack-marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mark { opacity: 0; transition: opacity .4s var(--ease-out); }
.mark polyline, .mark line { fill: none; stroke: var(--color-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease-out); }
.mark line { stroke: var(--color-heading); stroke-width: 1.5; transition-delay: .35s; }
.mark circle { fill: var(--color-heading); }
.mark[data-layer="0"] polyline { stroke: var(--color-heading); }
.mark.is-active { opacity: 1; }
.mark.is-active polyline, .mark.is-active line { stroke-dashoffset: 0; }
.layers { display: grid; }
.layers li { display: grid; grid-template-columns: 2.75rem 1fr; align-content: center; column-gap: var(--space-4); row-gap: var(--space-2); padding-block: var(--space-8); border-top: 1px solid var(--color-border); transition: opacity .5s var(--ease-out); }
.layers li:last-child { border-bottom: 1px solid var(--color-border); }
.layer-num { grid-row: 1 / span 2; font: 400 0.8125rem/1.9 var(--font-mono); letter-spacing: 0.06em; color: var(--color-muted); transition: color .4s; }
.layers h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; }
.layers p { font-size: 1rem; line-height: 1.5; color: var(--color-muted); max-width: 26em; }
[data-layers].is-enhanced .layers li:not(.is-active) { opacity: 0.32; }
[data-layers].is-enhanced .layers li.is-active .layer-num { color: var(--color-heading); }
@media (min-width: 1000px) {
  /* Room to scroll: each layer gets a beat of its own while the stack stays pinned. */
  [data-layers].is-enhanced .layers li { min-height: 36vh; }
}
.approach-close { max-width: 20em; margin: clamp(4rem, 8vw, 7rem) auto 0; text-align: center; font: 600 clamp(1.625rem, 3.2vw, 2.75rem)/1.12 var(--font-heading); letter-spacing: -0.035em; color: var(--color-heading); text-wrap: balance; }

/* ---------- 7. Trust ---------- */
.trust { text-align: center; }
.quote { display: grid; justify-items: center; gap: var(--space-8); max-width: 52rem; margin: 0 auto clamp(5rem, 10vw, 8rem); }
.quote blockquote { font: 600 clamp(1.625rem, 3.4vw, 2.75rem)/1.18 var(--font-heading); letter-spacing: -0.032em; color: var(--color-heading); text-wrap: balance; }
.quote figcaption { display: flex; align-items: center; gap: var(--space-4); font-size: 0.875rem; color: var(--color-muted); text-align: left; }
.quote figcaption strong { display: block; color: var(--color-heading); font-weight: 600; }
.initials { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-heading); color: var(--color-primary); font-weight: 600; font-size: var(--text-sm); }
.trust-title { margin-bottom: var(--space-8); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-6) clamp(var(--space-8), 4vw, var(--space-16)); color: var(--color-muted); }
.logo-hottyres { font: 700 1.35rem/1 var(--font-heading); letter-spacing: -0.04em; }
.logo-bresnahans { font: 500 1.25rem/1 Georgia, 'Times New Roman', serif; letter-spacing: -0.01em; }
.logo-sadc { font: 800 1.2rem/1 var(--font-heading); letter-spacing: -0.02em; }
.logo-sadc::before { content: 'S'; display: inline-block; margin-right: 0.15em; font-size: 1.5em; font-weight: 900; transform: skewX(-12deg); vertical-align: -0.12em; }
.logo-hair { font: 300 1.25rem/1 var(--font-body); text-transform: uppercase; transform: scaleX(0.85); }
.logo-ozwalls { font: 400 1.2rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.18em; }

/* ---------- Next move ---------- */
.next { padding: clamp(5rem, 10vw, 9rem) var(--space-4); }
.next-panel { display: grid; justify-items: center; gap: var(--space-8); max-width: 80rem; margin-inline: auto; padding: clamp(5.5rem, 12vw, 11rem) var(--gutter); border-radius: 1.75rem; text-align: center; }
.next .h2 { max-width: 13em; }
.next-quiet { display: block; color: var(--color-muted-on-dark); }
.next .lead { max-width: 28em; }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-6) var(--space-12); margin-top: var(--space-4); }
.next .link-arrow { color: var(--color-on-dark); border-color: var(--color-muted-on-dark); }
.next .link-arrow:hover { border-color: var(--color-primary); }
.next-human { margin-top: var(--space-8); font: 400 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted-on-dark); }

/* ---------- How We Work page ---------- */
.site-nav ul a[aria-current="page"] { color: var(--color-heading); font-weight: 500; }
.hw-hero { padding: clamp(4.5rem, 9vw, 8rem) var(--gutter) clamp(5rem, 10vw, 9rem); background: var(--color-surface); }
.hw-hero .section-head { max-width: 56rem; }
.hw-hero h1 { font-size: clamp(3rem, 7.6vw, 6.75rem); line-height: 0.96; letter-spacing: -0.045em; text-wrap: balance; }
.hw-photo { max-width: 80rem; margin-inline: auto; aspect-ratio: 21 / 9; border-radius: 1.75rem; }
img.hw-photo { width: 100%; object-fit: cover; }
.hw-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); max-width: 76rem; margin-inline: auto; }
.hw-cols > div { display: grid; align-content: start; gap: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.hw-cols > div:last-child { border-top-color: var(--color-primary); }
.hw-col-title { font-size: var(--text-2xl); letter-spacing: -0.03em; }
.hw-cols p { color: var(--color-muted); }
.hw-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); list-style: none; }
.hw-tags li { padding: var(--space-1) var(--space-3); border: 1px solid var(--color-border); border-radius: 999px; font-size: 0.8125rem; color: var(--color-text); }
.hw-steps .step p { max-width: 15em; }
.hw-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); max-width: 76rem; margin-inline: auto; }
.hw-plan { display: grid; align-content: start; justify-items: start; gap: var(--space-6); padding-top: var(--space-8); border-top: 1px solid var(--color-border); }
.hw-plan-name { font: 500 var(--text-xs)/1.4 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.hw-amount { font: 600 clamp(2.5rem, 4.4vw, 3.75rem)/1 var(--font-heading); letter-spacing: -0.04em; color: var(--color-heading); }
.hw-from { font: 500 1rem/1 var(--font-body); letter-spacing: 0; color: var(--color-muted); vertical-align: 0.9em; margin-right: 0.15em; }
.hw-amount small { font: 500 1rem/1 var(--font-body); letter-spacing: 0; color: var(--color-muted); margin-left: 0.15em; }
.hw-std { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); font-size: 0.875rem; color: var(--color-muted); }
.hw-std span { font: 500 0.6875rem/1.4 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.hw-std s { text-decoration-thickness: 1px; }
.hw-fp { display: grid; justify-items: start; gap: var(--space-3); }
.fp-badge { padding: 0.35em 0.75em; border-radius: 999px; background: var(--color-primary); font: 600 0.6875rem/1 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-heading); }
.hw-plan-desc { font-size: 1rem; line-height: 1.55; color: var(--color-muted); max-width: 21em; }
.hw-reassure { display: grid; justify-items: center; gap: var(--space-3); max-width: 40rem; margin: clamp(4rem, 8vw, 6rem) auto 0; text-align: center; }
.hw-note { font: 600 clamp(1.125rem, 1.6vw, 1.375rem)/1.35 var(--font-heading); letter-spacing: -0.015em; color: var(--color-heading); text-wrap: balance; }
.hw-note-sub { font-size: 0.9375rem; line-height: 1.55; color: var(--color-muted); text-wrap: pretty; }
/* Founding Partners: quiet capacity note in pricing, then its own section */
.fp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); max-width: 76rem; margin: 0 auto clamp(5rem, 10vw, 8rem); }
.fp-head { display: grid; align-content: start; gap: var(--space-6); }
.fp-head .eyebrow { justify-content: flex-start; }
.fp-head .h2 { max-width: 11em; }
.fp-body { display: grid; align-content: start; justify-items: start; gap: var(--space-6); font-size: 1.0625rem; line-height: 1.6; color: var(--color-muted); }
.fp-body > p { max-width: 32em; }
.fp-emph { font: 600 clamp(1.25rem, 1.9vw, 1.625rem)/1.3 var(--font-heading); letter-spacing: -0.02em; color: var(--color-heading); }
.fp-intake { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-8); width: 100%; padding-block: var(--space-4); border-block: 1px solid var(--color-border); font-size: 0.875rem; }
.fp-intake dt { display: flex; align-items: center; gap: var(--space-3); font: 500 0.75rem/1.4 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-heading); }
.fp-intake dd { font: 400 0.8125rem/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--color-muted); }
.fp-signal { width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 30%, transparent); flex: none; }
.fp-fit { font-size: 0.875rem; color: var(--color-muted); }
@media (max-width: 1000px) {
  .fp { grid-template-columns: 1fr; gap: var(--space-12); }
}
.hw-own { max-width: 76rem; margin-inline: auto; margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hw-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; max-width: 76rem; margin-inline: auto; }
.hw-split > div { display: grid; gap: var(--space-6); justify-items: start; }
.hw-split .eyebrow { justify-content: flex-start; }
.hw-principles { list-style: none; border-top: 1px solid var(--color-border); }
.hw-principles li { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-6); border-bottom: 1px solid var(--color-border); font: 500 clamp(1.0625rem, 1.5vw, 1.3125rem)/1.35 var(--font-heading); letter-spacing: -0.015em; color: var(--color-heading); }
.hw-principles li::before { content: ''; width: 1.25rem; height: 2px; background: var(--color-primary); flex: none; }
.hw-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); max-width: 64rem; margin-inline: auto; }
.hw-headshot { aspect-ratio: 1; border-radius: 1.25rem; }
img.hw-headshot { width: 100%; height: auto; object-fit: cover; }
.hw-team figcaption { display: grid; gap: var(--space-1); margin-top: var(--space-4); font-size: 0.875rem; color: var(--color-muted); }
.hw-team strong { font: 600 1.0625rem/1.2 var(--font-heading); color: var(--color-heading); }
@media (max-width: 1000px) {
  .hw-steps .step:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .hw-own { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-split { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 700px) {
  .hw-photo { aspect-ratio: 4 / 5; }
  .hw-cols, .hw-team, .hw-plans { grid-template-columns: 1fr; }
  .hw-plans { gap: var(--space-16); }
  .hw-own { grid-template-columns: 1fr; }
}

/* ---------- 8. CTA + FAQ ---------- */
.cta-section { padding: 0 var(--space-4); }
.cta { display: grid; justify-items: center; gap: var(--space-6); max-width: 80rem; margin-inline: auto; padding: clamp(5.5rem, 11vw, 10rem) var(--gutter); border-radius: 1.75rem; text-align: center; }
.cta .h2 { max-width: 12em; }
.cta .btn { margin-top: var(--space-4); }
.faq { padding-bottom: clamp(5rem, 9vw, 8rem); }
.faq .section-head { margin-bottom: var(--space-12); }
.faq-list { max-width: 48rem; margin-inline: auto; border-top: 1px solid var(--color-border); }
.faq-list details { border-bottom: 1px solid var(--color-border); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-block: var(--space-6); cursor: pointer; list-style: none;
  font: 600 clamp(1.0625rem, 1.5vw, 1.25rem)/1.3 var(--font-heading); letter-spacing: -0.015em; color: var(--color-heading);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; font: 300 1.75rem/1 var(--font-body); color: var(--color-muted); transition: transform .25s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: var(--space-6); font-size: 1rem; line-height: 1.6; color: var(--color-muted); max-width: 40em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-heading); color: var(--color-muted-on-dark); }
.site-footer .logo { color: var(--color-on-dark); }
.site-footer :focus-visible { outline-color: var(--color-primary); }
.wrap { width: 100%; padding-inline: var(--gutter); }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-6) var(--space-12); max-width: 80rem; margin-inline: auto; padding-block: var(--space-12); align-items: start; font-size: var(--text-sm); }
.footer-about { max-width: 30em; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.site-footer nav a { color: var(--color-on-dark); }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-insights strong { color: var(--color-on-dark); font-weight: 600; }
.copy { grid-column: 1 / -1; padding-top: var(--space-6); border-top: 1px solid var(--color-border-dark); font-size: var(--text-xs); }

/* ---------- Walkthrough ---------- */
.wt {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--color-surface); color: var(--color-text);
}
.wt::backdrop { background: var(--color-surface); }
.wt[open] { animation: wt-in .6s var(--ease-out) both; }
.wt.is-closing { animation: wt-out .35s ease-in both; }
@keyframes wt-in { from { opacity: 0; transform: scale(1.02); } }
@keyframes wt-out { to { opacity: 0; transform: scale(1.02); } }
.wt-shell { display: grid; grid-template-rows: auto 1fr auto; height: 100%; max-width: 84rem; margin-inline: auto; padding: var(--space-6) var(--gutter); }
.wt-top { display: flex; align-items: flex-start; gap: var(--space-8); }
.wt-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); flex: 1; }
.wt-progress button { display: grid; gap: var(--space-3); width: 100%; text-align: left; font: 500 0.75rem/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); transition: color .3s; }
.wt-progress li.is-active button, .wt-progress li.is-done button { color: var(--color-heading); }
.wt-bar { display: block; height: 2px; background: var(--color-border); border-radius: 2px; overflow: hidden; }
.wt-bar i { display: block; width: 0; height: 100%; background: var(--color-heading); }
.wt-close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-top: -0.75rem; border-radius: 50%; border: 1px solid var(--color-border); color: var(--color-heading); transition: border-color .2s, transform .1s ease-out; }
.wt-close:hover { border-color: var(--color-muted); }
.wt-close:active, .wt-controls button:active { transform: scale(0.94); }
.wt-stage { position: relative; min-height: 0; }
.wt-scene {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(2rem, 6vw, 6rem);
  opacity: 0; visibility: hidden; transition: opacity .7s var(--ease-out), visibility 0s .7s;
}
.wt-scene.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease-out) .15s, visibility 0s; }
.wt-caption { display: grid; gap: var(--space-4); }
.wt-step { font: 400 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.wt-caption h3 { font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.wt-caption > p:last-child { font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--color-muted); max-width: 26em; }
.wt-visual { display: grid; place-items: center; }
.wt-final { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.wt-final .wt-caption { justify-items: center; }
.wt-final h3 { font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 0.98; letter-spacing: -0.045em; text-transform: uppercase; }
.wt-final-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-4) var(--space-8); margin-top: var(--space-8); }
.wt-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.wt-note { font: 400 0.6875rem/1.4 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.wt-controls { display: flex; gap: var(--space-2); }
.wt-controls button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--color-border); color: var(--color-heading); transition: border-color .2s, transform .1s ease-out; }
.wt-controls button:hover { border-color: var(--color-muted); }
.wt .i-play { display: none; }
.wt.is-paused .i-play { display: block; }
.wt.is-paused .i-pause { display: none; }
.wt.is-paused .wt-scene.is-active * { animation-play-state: paused !important; }

/* Mock UI. The resting state (no animation) is the scene's final frame, so reduced motion still reads. */
.ui {
  position: relative; width: min(32rem, 100%);
  padding: var(--space-6); border-radius: 1.25rem; background: #fff; color: var(--color-heading);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 60px -20px color-mix(in srgb, var(--color-ink-dark) 28%, transparent);
  font-size: 0.875rem; text-align: left;
}
.ui small { display: block; font-size: 0.6875rem; color: var(--color-muted); }
.ui-line { display: block; height: 7px; margin-top: 7px; border-radius: 4px; background: var(--color-ui-pill); }
.ui-line.w70 { width: 70%; } .ui-line.w55 { width: 55%; }
.ui-searchbar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-muted); }
.ui-searchbar .type { display: inline-block; overflow: hidden; white-space: nowrap; color: var(--color-heading); }
.ui-result { padding: var(--space-4) var(--space-3); margin-top: var(--space-2); border-radius: 0.75rem; }
.ui-result strong { display: block; margin-top: 2px; font-weight: 600; }
.ui-result.is-you { box-shadow: inset 0 0 0 1.5px var(--color-heading); background: color-mix(in srgb, var(--color-primary) 18%, #fff); }
.ui-cursor { position: absolute; left: 56%; top: 38%; width: 16px; height: 16px; border-radius: 50%; background: var(--color-heading); box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-heading) 12%, transparent); opacity: 0; }
.ui-title { font: 600 1.125rem/1.2 var(--font-heading); letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.ui-field { padding: var(--space-3) var(--space-4); margin-top: var(--space-2); border: 1px solid var(--color-border); border-radius: 0.625rem; }
.ui-field span { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 100%; }
.ui-submit { display: grid; place-items: center; min-height: 2.75rem; margin-top: var(--space-4); border-radius: 0.625rem; background: var(--color-heading); color: var(--color-bg); font-weight: 600; }
.ui-done { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: 0.625rem; background: color-mix(in srgb, var(--color-accent) 10%, #fff); color: var(--color-accent); font-weight: 500; }
.ui-ops { width: min(36rem, 100%); }
.ui-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.ui-col { display: grid; align-content: start; gap: var(--space-2); min-height: 8.5rem; padding: var(--space-3); border-radius: 0.75rem; background: var(--color-surface); }
.ui-card { padding: var(--space-3); border-radius: 0.625rem; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.ui-card strong { display: block; font-weight: 600; font-size: 0.8125rem; }
.ui-card span { font-size: 0.75rem; color: var(--color-muted); }
.ui-card .chip-time { display: inline-block; margin-top: var(--space-1); padding: 2px 6px; border-radius: 4px; background: var(--color-primary); color: var(--color-heading); font-weight: 500; }
.c-new, .c-mid { opacity: 0; }
.ui-sms { margin-top: var(--space-4); margin-left: auto; max-width: 80%; padding: var(--space-3) var(--space-4); border-radius: 1rem 1rem 0.25rem 1rem; background: var(--color-heading); color: var(--color-bg); }
.ui-sms small { color: var(--color-muted-on-dark); margin-bottom: 2px; }
.ui-sms p { font-size: 0.8125rem; line-height: 1.45; }
.ui-analytics { width: min(40rem, 100%); padding: var(--space-8); background: #fbfaf7; }
.ui-an-head { display: grid; gap: 2px; }
.ui-an-head strong { font: 700 1.375rem/1.15 var(--font-heading); letter-spacing: -0.025em; }
.ui-an-head small { font-size: 0.8125rem; }
.ui-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-6); }
.ui-kpis div { display: grid; gap: var(--space-1); padding-inline: var(--space-4); }
.ui-kpis div:first-child { padding-left: 0; }
.ui-kpis div + div { border-left: 1px solid var(--color-border); }
.ui-kpis dt { font-size: 0.75rem; color: var(--color-muted); }
.ui-kpis dd { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font: 700 1.375rem/1.2 var(--font-heading); letter-spacing: -0.025em; color: var(--color-heading); }
.ui-kpis em { padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb, var(--color-primary) 32%, #fff); font: 600 0.6875rem/1 var(--font-body); font-style: normal; letter-spacing: 0; color: #3f6a0b; }
.ui-chart { margin-top: var(--space-6); }
.ui-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ui-chart .grid line { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: 3 4; }
.ui-chart .axis-line { stroke: var(--color-border); stroke-width: 1; }
.ui-chart .axis text { font: 400 12px var(--font-body); fill: var(--color-muted); }
.ui-chart .area { fill: url(#an-area); }
.ui-chart .line { fill: none; stroke: url(#an-line); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
.ui-chart .dot { fill: #fff; stroke: #7da61a; stroke-width: 2.25; }
.ui-chart .is-last .dot { fill: #5f8a10; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .25)); }
.ui-chart .hit { fill: transparent; }
.ui-chart .pt:hover .dot { stroke-width: 3.5; }
.ui-chart .tip path { fill: var(--color-heading); }
.ui-chart .tip-k { font: 400 11px var(--font-body); fill: var(--color-muted-on-dark); }
.ui-chart .tip-v { font: 600 14px var(--font-body); fill: #fff; }
.ui-chart .tip-v tspan { fill: var(--color-primary); }
.ui-trail-wrap { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.ui-trail-wrap small { margin-bottom: var(--space-3); font-size: 0.8125rem; }
.ui-trail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); }
.ui-trail li { position: relative; padding: 0.5em 1em; border-radius: 999px; background: var(--color-heading); color: var(--color-bg); font-size: 0.8125rem; font-weight: 500; }
.ui-trail li + li::before { content: '\2192'; position: absolute; right: calc(100% + var(--space-6) / 2); top: 50%; transform: translate(50%, -50%); color: var(--color-muted); font-size: 1.125rem; font-weight: 400; }
.ui-trail li.won { background: var(--color-primary); color: var(--color-heading); }

@media (prefers-reduced-motion: no-preference) {
  /* Scene 1: type the search, results settle, cursor picks your listing. */
  .is-active .ui-searchbar .type { animation: type 1.4s steps(24, end) .5s both; }
  .is-active .ui-result { animation: rise .7s var(--ease-out) both; }
  .is-active .ui-result:nth-of-type(2) { animation-delay: 2.1s; }
  .is-active .ui-result:nth-of-type(3) { animation-delay: 2.25s; }
  .is-active .ui-result:nth-of-type(4) { animation-delay: 2.4s; }
  .is-active .ui-result.is-you { animation: rise .7s var(--ease-out) 2.1s both, pick .5s var(--ease-out) 4.3s both; }
  .is-active .ui-cursor { animation: cursor 2s var(--ease-in-out) 2.9s both; }
  /* Scene 2: the form fills, submits, confirms. */
  .is-active .ui-field span { animation: type 1s steps(20, end) both; }
  .is-active .f1 span { animation-delay: .6s; }
  .is-active .f2 span { animation-delay: 1.7s; }
  .is-active .f3 span { animation-duration: 1.4s; animation-delay: 2.8s; }
  .is-active .ui-submit { animation: press .4s ease-out 4.5s both; }
  .is-active .ui-done { animation: rise .6s var(--ease-out) 5s both; }
  /* Scene 3: new lead, instant reply, moves to contacted, then booked. */
  .is-active .c-new { animation: hold 3.2s var(--ease-out) .5s both; }
  .is-active .ui-sms { animation: rise .7s var(--ease-out) 2s both; }
  .is-active .c-mid { animation: hold 2.8s var(--ease-out) 3.7s both; }
  .is-active .c-booked { animation: rise .7s var(--ease-out) 6.5s both; }
  /* Scene 4: the trail lights up step by step, then revenue draws in. */
  .is-active .ui-trail li { animation: rise .5s var(--ease-out) both; }
  .is-active .ui-trail li:nth-child(1) { animation-delay: 3.6s; }
  .is-active .ui-trail li:nth-child(2) { animation-delay: 3.85s; }
  .is-active .ui-trail li:nth-child(3) { animation-delay: 4.1s; }
  .is-active .ui-trail li:nth-child(4) { animation-delay: 4.35s; }
  .is-active .ui-trail li:nth-child(5) { animation-delay: 4.6s; }
  .is-active .ui-kpis div { animation: rise .6s var(--ease-out) both; }
  .is-active .ui-kpis div:nth-child(1) { animation-delay: .3s; }
  .is-active .ui-kpis div:nth-child(2) { animation-delay: .45s; }
  .is-active .ui-kpis div:nth-child(3) { animation-delay: .6s; }
  .is-active .ui-kpis div:nth-child(4) { animation-delay: .75s; }
  .is-active .ui-chart .line { animation: draw 2.2s var(--ease-in-out) .9s both; }
  .is-active .ui-chart .area { animation: fade 1.2s ease 2.2s both; }
  .is-active .ui-chart .pt { animation: fade .4s ease both; animation-delay: calc(.9s + var(--k) * .37s); }
  .is-active .ui-chart .tip { animation: rise .6s var(--ease-out) 3.2s both; }
  /* Scene 5 */
  .wt-final.is-active h3 { animation: rise 1.1s var(--ease-out) .2s both; }
  .wt-final.is-active .wt-final-actions { animation: rise .9s var(--ease-out) .9s both; }
}
@keyframes type { from { max-width: 0; } to { max-width: 30em; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pick { from { box-shadow: inset 0 0 0 0 var(--color-heading); background: #fff; } }
@keyframes press { 50% { transform: scale(0.96); } }
@keyframes hold { 0% { opacity: 0; transform: translateY(10px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes cursor { 0% { opacity: 0; left: 80%; top: 95%; } 20% { opacity: 1; } 75% { left: 56%; top: 38%; opacity: 1; } 90% { box-shadow: 0 0 0 14px transparent; } 100% { left: 56%; top: 38%; opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { border-bottom: 1px solid var(--color-border); }
  .step + .step { border-left: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--color-border); }
  .step-result { grid-column: 1 / -1; border-bottom: 0; }
  .approach-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  /* Mobile: the stack pins under the header and the layers scroll beneath it. */
  .stack-wrap { top: 3.75rem; z-index: 2; margin-inline: calc(var(--gutter) * -1); padding: var(--space-4) var(--gutter); background: var(--color-surface); }
  .stack-frame { max-width: min(30rem, 72%); margin-inline: auto; }
  .stack-marks .mark line, .stack-marks .mark circle { display: none; }
  .mark polyline { stroke-width: 8; }
  [data-layers].is-enhanced .layers li { min-height: 34vh; }
  .leak { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-12); }
  .leak-step:nth-child(3) .leak-arrow { display: none; }
}
@media (max-width: 899px) {
  .js .nav-toggle { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; }
  .js .nav-toggle-bars, .js .nav-toggle-bars::before, .js .nav-toggle-bars::after { display: block; width: 18px; height: 1.5px; background: var(--color-heading); position: relative; transition: transform .2s; }
  .js .nav-toggle-bars::before, .js .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .js .nav-toggle-bars::before { top: -6px; }
  .js .nav-toggle-bars::after { top: 6px; }
  .js .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .js .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .js .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--space-4);
    padding: var(--space-4) var(--gutter) var(--space-8);
    background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  }
  .js .nav-toggle[aria-expanded="true"] + .site-nav { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding-block: var(--space-3); font-size: 1.0625rem; color: var(--color-heading); border-bottom: 1px solid var(--color-border); }
  .js .locale { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { flex-basis: 100%; flex-wrap: wrap; gap: var(--space-4); }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 0 var(--space-6); }
  /* Walkthrough: caption above, one visual below. */
  .wt-shell { padding: var(--space-4); }
  .wt-top { gap: var(--space-4); }
  .wt-progress { gap: var(--space-1); }
  .wt-progress button { font-size: 0; gap: 0; }
  .wt-scene { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: var(--space-8); padding-top: var(--space-8); }
  .wt-visual { align-self: start; }
  .wt-final { align-content: center; }
}
/* Mobile is its own layout: shorter headlines, larger gaps, one visual at a time. */
@media (max-width: 700px) {
  .h2 .long { display: none; }
  .h2 .short { display: inline; }
  /* Apple-style rhythm on phones: each section gets a full breath of space around it. */
  .section { padding-block: clamp(7.5rem, 32vw, 9.5rem); }
  .section-head { gap: var(--space-6); margin-bottom: 4.5rem; }
  .next { padding-block: clamp(7.5rem, 32vw, 9.5rem); }
  .faq { padding-bottom: 9rem; }
  .hero-actions { flex-direction: column; gap: var(--space-8); margin-top: 2.5rem; }
  .hero-media { --w: 150vw; margin-left: calc(50% - var(--w) * 0.62); margin-top: calc(var(--w) * -0.06); -webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 26%); mask-image: linear-gradient(to bottom, transparent 12%, #000 26%); }
  .hero-overlay { display: none; }
  .leak { grid-template-columns: 1fr; max-width: 24rem; gap: var(--space-16); }
  .leak-step:nth-child(3) .leak-arrow { display: block; }
  .leak-arrow { top: auto; bottom: calc(var(--space-16) / -2 - 22px); left: 50%; width: 2.25rem; margin-left: -1.125rem; transform: rotate(90deg); }
  .ch-frame { grid-template-columns: 1fr; gap: var(--space-6); }
  .case-photo img { aspect-ratio: 819 / 1024; }
  .metrics div { grid-template-columns: 1fr; gap: var(--space-2); }
  .step { padding: var(--space-8) var(--space-2); }
  .step-num { font-size: 2rem; }
  .ui { padding: var(--space-4); font-size: 0.8125rem; }
  .ui-col { min-height: 7rem; padding: var(--space-2); }
  .ui-board { gap: var(--space-2); }
  /* The chart scales with the card, so its labels need a larger size in viewBox units here. */
  .ui-analytics { padding: var(--space-5, 1.25rem); }
  .ui-kpis { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
  .ui-kpis div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ui-kpis dd { font-size: 1.125rem; }
  .ui-chart .axis text { font-size: 18px; }
  .ui-chart .tip { transform: scale(1.25); transform-origin: 470px 70px; }
  .ui-trail { gap: var(--space-2); }
  .ui-trail li + li::before { display: none; }
}
@media (max-width: 480px) {
  .hero-actions .btn-primary { width: 100%; }
}
/* Reduced motion keeps colour feedback and fades, drops movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity !important; }
  .btn:active, .play:active .play-icon, .link-arrow:active { transform: none; }
  .mark polyline, .mark line { stroke-dashoffset: 0; }
  .ch-visual .ch-pic { clip-path: none; transform: none; }
}
