/* ==========================================================================
   Mithilesh Results
   Text lives in copy.md. Design rules live in DESIGN_BRIEF.md.
   Change colors and fonts in the tokens block below, nowhere else.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #14231F;
  --cream: #F4EFE4;
  --accent: #E0490F;            /* warmed a step toward red on 14 Nov 2026 (was #E8590C) */
  --accent-text: #B43A0B;       /* small accent text on cream (was #B8400A) */
  --accent-on-dark: #FF9160;    /* accent text on the ink band (was #FF9A62) */
  --body: #34413C;
  --label: #4E5A55;
  --nav-link: #3A4742;
  --on-dark-body: #D9DDD3;

  --tint: color-mix(in srgb, var(--ink) 5%, var(--cream));
  --line: color-mix(in srgb, var(--ink) 15%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 25%, transparent);
  --accent-wash: color-mix(in srgb, var(--accent) 9%, var(--cream));
  --paper: color-mix(in srgb, #fff 40%, var(--cream));   /* a lighter warm card, never pure white */

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --serif: "Instrument Serif", "Playfair Display", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --narrow: 820px;
  --gutter: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 9vw, 112px);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section); }
.section--tint {
  --accent-text: #A43409;       /* a shade darker so small accent text passes on the tint */
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.h2 {
  font-size: clamp(1.7rem, 1.05rem + 2.5vw, 2.6rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.lede, .prose p:not(.eyebrow) {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--body);
  max-width: 65ch;
}
.prose p:not(.eyebrow) + p { margin-top: 18px; }

/* Anything in [BRACKETS] in copy.md: stays visibly marked until confirmed */
.todo {
  font-family: var(--mono);
  font-size: 0.82em;
  line-height: 1.5;
  color: var(--accent-text);
  background: var(--accent-wash);
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 6px;
  padding: 2px 7px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn::after {
  content: "";
  flex: none;
  width: 16px; height: 10px;
  background: var(--accent-on-dark);
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ink) 70%, transparent);
}
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--lg { min-height: 56px; padding: 17px 28px; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 11px 18px; font-size: 0.9rem; border-radius: 12px; }
.btn--sm::after { display: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost::after { background: var(--ink); transform: rotate(90deg); }
.btn--ghost:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: none; }
.btn--ghost:hover::after { transform: rotate(90deg) translateX(3px); }

:root {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --down-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 24' preserveAspectRatio='none'%3E%3Cpath d='M5.5 1v21M1.5 18l4 4.5 4-4.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --flow-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 12' preserveAspectRatio='none'%3E%3Cpath d='M1 6h25M21 1.5 26 6l-5 4.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(1080px, calc(100% - 24px));
  margin: 12px auto 0;
}
.nav__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: box-shadow .3s, background-color .3s;
}
.nav.is-stuck .nav__bar {
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  box-shadow: 0 12px 32px -20px color-mix(in srgb, var(--ink) 55%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand__logo { width: auto; height: 34px; }

.nav__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
  margin-right: 10px;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--nav-link);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.8125rem;
  cursor: pointer;
}
.nav__toggle-icon { position: relative; width: 16px; height: 10px; }
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav__toggle-icon::before { top: 1px; }
.nav__toggle-icon::after { top: 8px; }
.nav.is-open .nav__toggle-icon::before { top: 4.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle-icon::after { top: 4.5px; transform: rotate(-45deg); }

@media (max-width: 859px) {
  .js .nav__toggle { display: inline-flex; }
  .js .nav__menu { display: none; }
  .js .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 4px 6px;
    border-top: 1px solid var(--line);
  }
  .js .nav.is-open .nav__links {
    flex-direction: column;
    align-items: stretch;
    margin: 0 0 8px;
  }
  .js .nav.is-open .nav__links a { min-height: 48px; font-size: 0.9rem; }
  .js .nav.is-open .btn--sm { min-height: 48px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  --rise: clamp(34px, 6vw, 76px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 calc(var(--rise) + clamp(84px, 11vw, 150px));
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Graph-paper dots, only visible where the light reaches them */
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 100%, #000 0%, rgba(0,0,0,.55) 38%, transparent 76%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 100%, #000 0%, rgba(0,0,0,.55) 38%, transparent 76%);
}

/* One warm source, rising from behind the next section */
.hero__glow {
  position: absolute;
  left: 50%; bottom: 0;
  width: min(1500px, 190vw);
  height: min(78%, 620px);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  background:
    radial-gradient(ellipse 34% 44% at 50% 100%, color-mix(in srgb, var(--accent) 46%, transparent) 0%, transparent 100%),
    radial-gradient(ellipse 50% 78% at 50% 100%, color-mix(in srgb, var(--accent-on-dark) 46%, transparent) 0%, color-mix(in srgb, var(--accent-on-dark) 14%, transparent) 55%, transparent 100%);
  animation: glow-rise 1.8s var(--ease) both, glow-breathe 9s ease-in-out 1.8s infinite alternate;
}

/* The top edge of the next section, drawn as a shallow horizon */
.hero__horizon {
  position: absolute;
  left: 50%;
  top: calc(100% - var(--rise));
  width: 180vw;
  height: calc(var(--rise) * 11.87);
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--tint);
  box-shadow:
    0 -1px 0 color-mix(in srgb, var(--accent) 70%, transparent),
    0 -10px 34px color-mix(in srgb, var(--accent) 34%, transparent),
    0 -34px 110px color-mix(in srgb, var(--accent-on-dark) 42%, transparent);
}

@keyframes glow-rise {
  from { opacity: 0; transform: translateX(-50%) translateY(48px) scale(.94); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes glow-breathe {
  from { opacity: 1; transform: translateX(-50%) scale(1); }
  to   { opacity: .8; transform: translateX(-50%) scale(1.05, 1.1); }
}

.hero .eyebrow { margin-bottom: clamp(20px, 3vw, 28px); }

.hero__title {
  max-width: 15.5em;
  margin-inline: auto;
  font-size: clamp(2.25rem, 1.15rem + 4.9vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__title span { display: block; }
.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--accent-text);
  padding-right: 0.04em;
}

.hero__sub {
  max-width: 38em;
  margin: clamp(22px, 3vw, 30px) auto 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.55vw, 1.25rem);
  line-height: 1.6;
  color: var(--body);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 38px);
}
.hero__note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--label);
}
@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Bottleneck ---------- */
.neck {
  border-top: 0;
  padding-top: clamp(48px, 6vw, 80px);
}
.neck__grid {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .neck__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.neck .h2 { margin-bottom: 24px; }
.neck .lede + .lede { margin-top: 18px; }
.neck .lede--strong { color: var(--ink); font-weight: 500; }

.funnel {
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 24px 48px -36px color-mix(in srgb, var(--ink) 50%, transparent);
}
.funnel__eyebrow {
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
}
.funnel__bars li + li { margin-top: 18px; }
.funnel__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--body);
}
.funnel__row { display: flex; align-items: center; gap: 12px; }
.funnel__bar {
  flex: none;
  width: var(--w);
  height: 28px;
  border-radius: 6px;
  background: var(--ink);
  transform-origin: 0 50%;
}
.funnel__bars .is-neck .funnel__bar { background: var(--accent); }
.funnel__note {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-text);
  white-space: nowrap;
}
.funnel__note::before { content: "\2190\00a0"; }
.funnel__caption {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--label);
}

/* one-time draw-in when it scrolls into view */
.js .funnel .funnel__bar { transition: transform .9s var(--ease); }
.js .funnel .funnel__note { transition: opacity .5s .9s, transform .5s var(--ease) .9s; }
.js .funnel li:nth-child(2) .funnel__bar { transition-delay: .12s; }
.js .funnel li:nth-child(3) .funnel__bar { transition-delay: .24s; }
.js .funnel li:nth-child(4) .funnel__bar { transition-delay: .36s; }
.js .funnel:not(.is-in) .funnel__bar { transform: scaleX(0); }
.js .funnel:not(.is-in) .funnel__note { opacity: 0; transform: translateX(-8px); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (min-width: 860px) {
  .about__grid { grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); }
  .about__photo { position: sticky; top: 104px; }
}
/* a cut-out figure standing on the site's own warm light */
.about__photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  padding: 28px 24px 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 42% at 50% 100%, color-mix(in srgb, var(--accent-on-dark) 42%, transparent) 0%, transparent 100%),
    var(--cream);
}
.about__photo img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%; }
.about .h2 { margin-bottom: 26px; }

/* ---------- Method: process flow, everything visible ---------- */
.method .h2 { margin-bottom: clamp(32px, 5vw, 52px); }

.flow { --gap: 28px; }

.rail { display: none; }
@media (min-width: 1080px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gap);
    margin-bottom: 22px;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--label);
  }
  .rail__seg { display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; }
  .rail__seg::after { content: ""; flex: 1; min-width: 12px; }
  .rail__seg--pre { grid-column: 1 / 4; margin-right: calc(var(--gap) * -1 + 6px); }
  .rail__seg--pre::after { border-top: 1.5px dashed var(--line-strong); }
  .rail__seg--live { grid-column: 4; color: var(--accent-text); font-weight: 500; }
  .rail__seg--live::after {
    height: 10px;
    background: var(--accent);
    -webkit-mask: var(--flow-arrow) center / 100% 100% no-repeat;
    mask: var(--flow-arrow) center / 100% 100% no-repeat;
  }
  .rail__marker {
    flex: none;
    width: 11px; height: 11px;
    border-radius: 2px;
    background: var(--accent);
    transform: rotate(45deg);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  }
}

.units { display: grid; gap: 40px var(--gap); }

/* Each step is a unit on the flowsheet: a stream in, the unit, a stream out.
   Subgrid keeps the three rows lined up across the steps. */
.unit {
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 0;
}
.unit > .stream--in { grid-row: 1; align-self: end; }
.unit > .unit__card { grid-row: 2; }
.unit > .stream--out { grid-row: 3; }

@media (min-width: 680px) {
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit { grid-row: span 3; grid-template-rows: subgrid; }
}
@media (min-width: 1080px) {
  .units { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.unit__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 20px 40px -34px color-mix(in srgb, var(--ink) 55%, transparent);
}
.unit__tag {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
}
.unit__title { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
.unit__text { margin-top: 12px; font-size: 1rem; line-height: 1.6; color: var(--body); }
.unit__num {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3.2rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink) 16%, transparent);
}

/* streams: what goes into each step and what comes out */
.stream {
  position: relative;
  padding-inline: 24px 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--body);
}
.stream b {
  margin-right: 0.5em;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.stream::after {
  content: "";
  position: absolute;
  left: 25px;
  width: 11px; height: 24px;
  background: var(--label);
  -webkit-mask: var(--down-arrow) center / 100% 100% no-repeat;
  mask: var(--down-arrow) center / 100% 100% no-repeat;
}
.stream--in { padding-bottom: 34px; }
.stream--in::after { bottom: 4px; }
.stream--out { padding-top: 36px; }
.stream--out::after { top: 6px; }

/* arrows joining the units on the main line */
@media (min-width: 1080px) {
  .unit__text { font-size: 0.9375rem; }
  .unit:not(:last-child) .unit__card::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: var(--gap);
    height: 12px;
    margin: -6px 0 0 1px;
    background: var(--label);
    -webkit-mask: var(--flow-arrow) center / 100% 100% no-repeat;
    mask: var(--flow-arrow) center / 100% 100% no-repeat;
  }
}

/* Step 04: the clock starts here */
.unit--live .unit__card {
  border: 1.5px solid var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 11%, var(--paper)) 0%, var(--paper) 62%);
  box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--accent) 80%, transparent);
}
.unit--live .unit__tag { color: var(--accent-text); font-weight: 500; }
.unit--live .unit__num { color: color-mix(in srgb, var(--accent) 45%, transparent); }
.unit--live .stream::after { background: var(--accent); }
.unit--live .stream--out,
.unit--live .stream--out b { color: var(--accent-text); font-weight: 500; }

.js .unit[data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .unit[data-reveal]:nth-child(3) { transition-delay: .16s; }
.js .unit[data-reveal]:nth-child(4) { transition-delay: .24s; }

/* ---------- Services: tiles ---------- */
.services .h2 { margin-bottom: clamp(28px, 4vw, 44px); }

.tiles {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--line-strong);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.8vw, 32px);
  background: var(--cream);
  transition: background-color .25s;
}
.tile:hover { background: color-mix(in srgb, var(--ink) 3%, var(--cream)); }
.tile__title {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.tile__text { font-size: 1rem; line-height: 1.6; color: var(--body); }

.tile--cta { background: var(--accent-wash); }
.tile--cta:hover { background: var(--accent-wash); }
.tile--cta .tile__title { max-width: 11em; }
.tile--cta .tile__text { margin-bottom: 12px; color: var(--ink); }
.tile--cta .btn { align-self: flex-start; margin-top: auto; }

@media (min-width: 620px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 200px; }
}
@media (min-width: 940px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Results ---------- */
.results__title { margin-bottom: clamp(28px, 4vw, 44px); }

.quotes { display: grid; gap: 20px; }
@media (min-width: 820px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--cream);
}
.quote::before {
  content: "\201C";
  display: block;
  height: 0.5em;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
}
.quote blockquote p {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  line-height: 1.6;
}
.quote figcaption {
  margin-top: auto;
  padding-top: 24px;
}
.quote__name { display: block; font-weight: 600; }
.quote__role {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--label);
}

.case { margin-top: clamp(56px, 7vw, 88px); }
.case__eyebrow { color: var(--label); margin-bottom: 12px; }
.case__title {
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.9rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.case__team {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--body);
}

.stats {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stat {
  --p: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--cream);
}
.stat__num {
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--label);
}
.stat__viz { margin-top: auto; padding-top: 22px; }

.track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}
.track__fill {
  position: absolute; inset: 0;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleX(var(--p));
  transform-origin: 0 50%;
}
.track__mark {
  position: absolute;
  left: var(--at);
  top: -5px;
  width: 2px; height: 16px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--label);
  transition: background-color .2s;
}
.track__mark[style*="100%"] { margin-left: -2px; }
.track__mark.is-hit { background: var(--ink); }
.track__note {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--label);
}

.story {
  display: grid;
  gap: 22px;
  max-width: var(--narrow);
  margin-top: clamp(28px, 4vw, 40px);
}
.story dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.story dd {
  margin-top: 6px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  max-width: 65ch;
}
@media (min-width: 720px) {
  .story div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .story dt { padding-top: 5px; }
  .story dd { margin-top: 0; }
}

/* ---------- Guarantee: the only dark band ---------- */
.guarantee {
  padding-block: clamp(80px, 10vw, 120px);
  background: var(--ink);
  color: var(--cream);
}
.guarantee .eyebrow { color: var(--accent-on-dark); margin-bottom: 20px; }
.guarantee__title {
  font-size: clamp(1.8rem, 1.1rem + 3vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.guarantee__lead {
  margin-top: 28px;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent-on-dark);
}
.guarantee__points { margin-top: 32px; }
.guarantee__points p {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.375rem);
  line-height: 1.5;
}
.guarantee__points p + p { margin-top: 18px; }
.guarantee__fine {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
  border-radius: 14px;
}
.guarantee__fine p { font-size: 0.9375rem; line-height: 1.7; color: var(--on-dark-body); }
.guarantee__fine b { font-weight: 600; color: var(--cream); }
.guarantee :focus-visible { outline-color: var(--accent-on-dark); }
@media (max-width: 479px) { .guarantee__fine { padding: 20px; } }

/* ---------- FAQ ---------- */
.faq .h2 { margin-bottom: clamp(24px, 4vw, 40px); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem); letter-spacing: -0.01em; }
.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 68px;
  padding: 20px 2px;
  border: 0;
  background: none;
  font-weight: 600;
  letter-spacing: inherit;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.faq__q button:hover .faq__icon { background: var(--ink); border-color: var(--ink); }
.faq__q button:hover .faq__icon::before,
.faq__q button:hover .faq__icon::after { background: var(--cream); }
.faq__icon {
  position: relative;
  flex: none;
  display: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .2s, border-color .2s, transform .35s var(--ease);
}
.js .faq__icon { display: block; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.5px;
  margin: -0.75px 0 0 -5.5px;
  background: var(--ink);
  transition: transform .35s var(--ease), background-color .2s;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }

.faq__a { padding: 0 2px 26px; max-width: 65ch; }
.faq__a p { font-size: 1.0625rem; line-height: 1.7; color: var(--body); }

.js .faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .4s var(--ease), visibility 0s .4s;
}
.js .faq__panel > div { overflow: hidden; }
.js .faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .4s var(--ease), visibility 0s;
}

/* ---------- Final call to action ---------- */
.final { border-bottom: 0; text-align: center; }
.final__title {
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.final__text {
  max-width: 36em;
  margin: 24px auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--body);
}
.final__text--strong { margin-top: 18px; font-weight: 600; color: var(--ink); }
/* buttons that point here land with the headline just under the nav */
.final { scroll-margin-top: calc(16px - var(--section)); }

.form {
  max-width: 560px;
  margin: 36px auto 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 48px -36px color-mix(in srgb, var(--ink) 50%, transparent);
  text-align: left;
}
.form__grid { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__field--wide { grid-column: 1 / -1; }
}
.form__field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}
.form__field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 55%, transparent);
  border-radius: 10px;
  background: var(--cream);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form__field input:hover { border-color: var(--ink); }
.form__field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--ink);
  border-radius: 10px;
}
.form__hp { display: none; }
.form .btn { width: 100%; margin-top: 18px; cursor: pointer; }
@media (max-width: 439px) {
  .form .btn { padding-inline: 14px; font-size: 1rem; }
  .form .btn::after { display: none; }
}
.form .btn:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.form__error {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--accent-text);
}
.form__error a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.form__done {
  max-width: 560px;
  margin: 36px auto 0;
  padding: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  background: var(--paper);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
}
[hidden] { display: none !important; }
.final__small {
  max-width: 46em;
  margin: 24px auto 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--label);
}
.final__small a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { padding-block: 32px; border-top: 1px solid var(--line-strong); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 2;
  color: var(--label);
}
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px 12px; }
.footer__links a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .footer__links { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .footer__links li + li::before { content: "\00b7"; margin-right: 12px; }
}

/* ---------- Privacy page ---------- */
.legal { padding-block: clamp(48px, 7vw, 88px) var(--section); }
.legal__title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.legal__date {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--label);
}
.legal h2 {
  margin-top: 44px;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.legal p, .legal li {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  line-height: 1.7;
  color: var(--body);
  max-width: 65ch;
}
.legal p { margin-top: 14px; }
.legal ul { margin-top: 14px; padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__back { margin-top: 48px; }

/* ---------- Scroll reveal (JS only) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Added 16 Nov 2026: interactive diagram, case evidence, timeline,
   flow drawing, phone button bar, nav and hero polish
   ========================================================================== */

/* ---------- Hero: text arrives line by line ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow, .hero__title span, .hero__sub, .hero__actions, .hero__note {
  animation: rise-in .8s var(--ease) both;
}
.hero__title span:nth-child(1) { animation-delay: .08s; }
.hero__title span:nth-child(2) { animation-delay: .2s; }
.hero__sub { animation-delay: .34s; }
.hero__actions { animation-delay: .46s; }
.hero__note { animation-delay: .56s; }

/* ---------- Nav: mark the section you are in ---------- */
.nav__links a[aria-current="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

/* ---------- Bottleneck diagram: fix it and watch what follows ---------- */
.js .funnel .funnel__bar { transition: transform .9s var(--ease), width .9s var(--ease), background-color .4s; }
.funnel.is-fixed .funnel__bar { width: var(--w2, var(--w)); }
.funnel .when-on { display: none; }
.funnel.is-fixed .when-on { display: inline; }
.funnel.is-fixed .when-off { display: none; }
.funnel__note--gain::before { content: "\2190\00a0"; }

.funnel__switch {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 16px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.js .funnel__switch { display: inline-flex; }
.funnel__switch:hover { border-color: var(--ink); }
.funnel__switch-track {
  position: relative;
  width: 40px; height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transition: background-color .3s;
}
.funnel__switch-track::after {
  content: "";
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 40%, transparent);
  transition: transform .3s var(--ease);
}
.funnel.is-fixed .funnel__switch-track { background: var(--accent); }
.funnel.is-fixed .funnel__switch-track::after { transform: translateX(16px); }
.funnel__caption { margin-top: 20px; }

/* ---------- Case story: the real campaign page beside the story ---------- */
.case__body { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 40px); align-items: start; }
.case__body .story { margin-top: 0; }
@media (min-width: 940px) {
  .case__body { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); }
}
.evidence { max-width: 380px; }
.evidence img {
  width: 100%; height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 48px -34px color-mix(in srgb, var(--ink) 55%, transparent);
}
.evidence figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--label);
}

/* ---------- Guarantee: when things happen ---------- */
.tl {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.9fr;
  margin-top: 44px;
}
.tl li { position: relative; padding: 40px 12px 0 0; }
.tl li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 13px; height: 13px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--ink);
  z-index: 1;
}
.tl li::after {
  content: "";
  position: absolute;
  left: 13px; right: 0; top: 20px;
  transform-origin: 0 50%;
}
.tl li:nth-child(1)::after { border-top: 2px dashed color-mix(in srgb, var(--cream) 45%, transparent); top: 19.5px; }
.tl li:nth-child(2)::after { height: 2px; background: var(--accent-on-dark); }
.tl li:nth-child(3)::after { display: none; }
.tl li:nth-child(n+2)::before { border-color: var(--accent-on-dark); }
.tl li:nth-child(3)::before { background: var(--accent-on-dark); }
.tl__span {
  position: absolute;
  left: 13px; right: 0; top: -6px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-on-dark);
}
.tl__when { display: block; font-weight: 600; font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.125rem); line-height: 1.25; }
.tl__what {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: clamp(0.6875rem, 0.62rem + 0.3vw, 0.78rem);
  line-height: 1.5;
  color: var(--on-dark-body);
}
.js .tl li::after { transition: transform .9s var(--ease) .2s; }
.js .tl li:nth-child(2)::after { transition-delay: 1s; }
.js .tl li::before, .js .tl .tl__span { transition: opacity .4s, transform .4s var(--ease); }
.js .tl li:nth-child(2)::before { transition-delay: 1s; }
.js .tl li:nth-child(3)::before, .js .tl .tl__span { transition-delay: 1.8s; }
.js .tl:not(.is-in) li::after { transform: scaleX(0); }
.js .tl:not(.is-in) li:nth-child(n+2)::before { opacity: 0; transform: scale(.4); }
.js .tl:not(.is-in) .tl__span { opacity: 0; }

/* ---------- Method: the flow line draws itself, then each step arrives ---------- */
@media (min-width: 1080px) {
  .js .rail .rail__seg::after { transform-origin: 0 50%; transition: transform 1.1s var(--ease) .1s; }
  .js .rail .rail__seg--live::after { transition-delay: 1.3s; transition-duration: .5s; }
  .js .rail .rail__marker { transition: transform .4s var(--ease) 1.1s, opacity .3s 1.1s; }
  .js .rail .rail__seg--live span:last-child { transition: opacity .4s 1.2s; }
  .js .rail:not(.is-in) .rail__seg::after { transform: scaleX(0); }
  .js .rail:not(.is-in) .rail__marker { transform: rotate(45deg) scale(0); opacity: 0; }
  .js .rail:not(.is-in) .rail__seg--live span:last-child { opacity: 0; }
  .js .rail.is-in .rail__marker { animation: marker-pulse 1.4s ease-out 1.5s 1; }
  .js .unit[data-reveal]:nth-child(2) { transition-delay: .3s; }
  .js .unit[data-reveal]:nth-child(3) { transition-delay: .6s; }
  .js .unit[data-reveal]:nth-child(4) { transition-delay: 1.1s; }
}
@keyframes marker-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 18px transparent; }
}

/* ---------- Phones: the button follows you down the page ---------- */
.cta-bar { display: none; }
@media (max-width: 759px) {
  .js .cta-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--cream) 90%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility 0s .35s;
  }
  .js .cta-bar.is-on { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
  .cta-bar .btn { width: 100%; }
  .footer { padding-bottom: 96px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .funnel:not(.is-in) .funnel__bar { transform: none; }
  .js .funnel:not(.is-in) .funnel__note { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

@media print {
  .nav, .hero__bg { display: none; }
}
