/* ==========================================================================
   Evolve AI — "Kōwhai & Forest"
   Bone paper · forest ink · kōwhai accent (fill only on light, text only on dark)
   Type: Bricolage Grotesque (display) · Geist (body) · Geist Mono (labels)
   ========================================================================== */

:root {
  --bone: #f2efe6;
  --bone-2: #e9e4d7;
  --card: #faf8f2;
  --ink: #0f1f19;
  --ink-2: #47544d;
  --ink-3: #5c6861;
  --line: #d8d2c3;
  --line-strong: #b9b29f;

  --forest: #12382a;
  --forest-2: #1a4636;
  --forest-line: #2c5947;
  --forest-ink: #eef0e6;
  --forest-ink-2: #a9bcb1;
  --moss: #2f6b4f;

  --kowhai: #f2c230;
  --kowhai-press: #e3b01a;
  --kowhai-soft: #f8e3a0;

  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-s: 4px;
  --radius: 8px;
  --radius-l: 14px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 148px);
  --header-h: 76px;

  /* Motion: strong ease-out for anything responding to the user,
     ease-in-out for things moving on screen. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--kowhai); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Highlighter swipe — the signature. Kōwhai fill behind ink text, drawn in
   left-to-right the first time it scrolls into view. */
.mark {
  background-image: linear-gradient(var(--kowhai), var(--kowhai));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 34%;
  padding: 0 .08em; margin: 0 -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .75s var(--ease-in-out) .15s;
}
html:not(.no-js) .mark:not(.in) { background-size: 0% 34%; }
.hero .mark, .page-hero .mark { transition-delay: .55s; }
.dark .mark { background: none; color: var(--kowhai); padding: 0; margin: 0; }
.cta-box .mark { background-image: linear-gradient(var(--card), var(--card)); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 10px 14px; border-radius: var(--radius-s); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 3px; }
.dark :focus-visible { outline-color: var(--kowhai); }

/* ---------- Labels ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--moss);
  margin-bottom: 24px;
}
.label::before { content: ""; width: 8px; height: 8px; background: var(--kowhai); border: 1.5px solid var(--ink); border-radius: 50%; flex: none; }
.dark .label { color: var(--forest-ink-2); }
.dark .label::before { border-color: var(--kowhai); }
.tag { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--bone-2); padding: 4px 9px; border-radius: var(--radius-s); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest); --fg: var(--forest-ink); --bd: var(--forest); --lift: var(--kowhai);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out), background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn .arrow { flex: none; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bg: var(--ink); --bd: var(--ink); box-shadow: 4px 4px 0 var(--lift); transform: translate(-2px, -2px); }
  .btn:hover .arrow { transform: translateX(3px); }
  .btn-line:hover { --bg: var(--card); --fg: var(--ink); --bd: var(--ink); }
  .btn-kowhai:hover { --bg: var(--kowhai-press); --bd: var(--kowhai-press); --fg: var(--ink); }
  .dark .btn-line:hover { --bg: var(--forest-2); --bd: var(--forest-ink-2); --fg: var(--forest-ink); box-shadow: none; transform: none; }
  .cta-box .btn-line:hover { --bg: var(--kowhai-soft); box-shadow: none; transform: none; }
}
.btn:active { transform: scale(.97); box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn-line { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn-kowhai { --bg: var(--kowhai); --fg: var(--ink); --bd: var(--kowhai); --lift: var(--forest-ink); }
.dark .btn-line { --fg: var(--forest-ink); --bd: var(--forest-line); }
.cta-box .btn { --lift: var(--card); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }

.textlink {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--kowhai);
  transition: text-decoration-color .2s ease;
}
.textlink:hover { text-decoration-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 24px -20px rgba(15, 31, 25, .45); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 24px; }

.wordmark {
  display: inline-flex; align-items: baseline; justify-self: start; text-decoration: none; line-height: 1;
  font-family: var(--font-display); font-weight: 800; font-size: 27px; letter-spacing: -0.045em; color: var(--ink);
}
.wordmark .w-ai { color: var(--moss); margin-left: 2px; }
.wordmark .w-dot { width: .26em; height: .26em; border-radius: 50%; background: var(--kowhai); border: 2px solid var(--ink); margin-left: 3px; align-self: center; transform: translateY(.2em); }
.dark .wordmark { color: var(--forest-ink); }
.dark .wordmark .w-ai { color: var(--kowhai); }
.dark .wordmark .w-dot { border-color: var(--kowhai); }

.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.nav-links a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  font-weight: 500; font-size: 15px; color: var(--ink-2); text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bone-2); }
.nav-links a[aria-current="page"] { color: var(--forest-ink); background: var(--forest); }
.nav-links .menu-book { display: none; }
.nav-cta { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
  -webkit-tap-highlight-color: transparent; transition: transform .16s var(--ease-out);
}
.nav-toggle:active { transform: scale(.95); }
.nav-toggle .bars { position: relative; width: 20px; height: 12px; }
.nav-toggle .bars i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease-out); }
.nav-toggle .bars i:first-child { top: 0; }
.nav-toggle .bars i:last-child { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars i:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:last-child { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone); border: 0; border-top: 1px solid var(--line); border-radius: 0;
    padding: 8px var(--gutter) 40px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .18s ease, transform .22s var(--ease-out), visibility 0s linear .22s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a { display: block; padding: 18px 0; border-radius: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.035em; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: transparent; }
  .nav-links a[aria-current="page"] { background: transparent; color: var(--moss); }
  .nav-links .menu-book { display: block; padding-top: 24px; }
  .nav-links .menu-book a { display: flex; font-family: var(--font-body); font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--forest-ink); padding: 0 24px; border-bottom: 0; min-height: 54px; }
  .nav-cta .btn { display: none; }
}

/* ---------- Load-in (hero content only; plays once) ---------- */
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.enter { animation: enter .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 40ms); }

/* ---------- Hero ---------- */
.hero, .page-hero { position: relative; isolation: isolate; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--line-strong) 1.1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 58% 78% at 80% 42%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 78% at 80% 42%, #000 0%, transparent 72%);
}
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(52px, 6.3vw, 96px); letter-spacing: -0.05em; line-height: .93; font-weight: 800; }
.hero h1 .line { display: block; }
.hero-lede { font-size: clamp(18px, 1.55vw, 21px); color: var(--ink-2); max-width: 540px; margin: 32px 0 36px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 560px;
  margin: 40px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.hero-proof svg { width: 16px; height: 16px; color: var(--moss); flex: none; }

/* ---------- Ledger card (hero signature) ---------- */
.flow {
  position: relative; margin: 0; background: var(--card);
  border: 1.5px solid var(--ink); border-radius: var(--radius-l);
  box-shadow: 10px 10px 0 var(--forest);
  padding: 24px;
}
.flow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.flow-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.025em; }
.flow-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.flow-item {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
.flow-item .state {
  width: 26px; height: 26px; border-radius: var(--radius-s);
  display: grid; place-items: center; border: 1.5px solid var(--line-strong); color: var(--ink);
  transition: background-color .25s ease, border-color .25s ease;
}
.flow-item .state svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .3s var(--ease-out); }
.flow-item .task { font-weight: 500; line-height: 1.35; }
.flow-item .task small { display: grid; font-family: var(--font-mono); font-weight: 400; font-size: 12.5px; margin-top: 3px; }
.flow-item .task small > span { grid-area: 1 / 1; transition: opacity .3s ease, filter .3s ease; }
.flow-item .was { color: var(--ink-3); }
.flow-item .now { color: var(--moss); opacity: 0; filter: blur(3px); }
.flow-item .hrs {
  font-family: var(--font-mono); font-size: 14px; color: var(--ink); white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 52% / 0% 1.5px;
  transition: color .3s ease, background-size .35s var(--ease-out);
}
.flow-item.done .state { background: var(--kowhai); border-color: var(--ink); }
.flow-item.done .state svg { opacity: 1; transform: none; }
.flow-item.done .was { opacity: 0; filter: blur(3px); }
.flow-item.done .now { opacity: 1; filter: none; }
.flow-item.done .hrs { color: var(--ink-3); background-size: 100% 1.5px; }
.flow-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 20px; }
.flow-foot .k { display: block; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.flow-meter { flex: 1; max-width: 200px; padding-bottom: 6px; }
.flow-meter .bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; }
.flow-meter .bar i { display: block; height: 100%; border-radius: inherit; background: var(--forest); transform-origin: left; transition: transform .5s var(--ease-out); }
.flow-total { text-align: right; }
.flow-total .num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 60px; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; margin-top: 6px; }
.flow-total .unit { font-size: 22px; letter-spacing: -0.02em; margin-left: 4px; color: var(--moss); }
.flow-note { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; color: var(--ink-3); margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.flow-replay { flex: none; font-family: var(--font-mono); font-size: 12.5px; color: var(--moss); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.flow-replay:hover { color: var(--ink); }
/* Space for Replay is always reserved, so showing it never moves the page. */
.flow-replay.is-waiting { visibility: hidden; opacity: 0; }
.flow-replay { transition: opacity .3s ease; }

/* ---------- Ticker: the bridge out of the hero ---------- */
.ticker { display: flex; align-items: stretch; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); overflow: hidden; }
.ticker-label {
  flex: none; display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 0 24px 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--moss);
  border-right: 1px solid var(--line-strong);
}
.ticker-view {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 96px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 96px), transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker-row { display: flex; align-items: center; flex: none; margin: 0; padding: 22px 0; list-style: none; }
.ticker-row li { display: flex; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 27px); letter-spacing: -0.025em; white-space: nowrap; }
.ticker-row li::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--kowhai); border: 1.5px solid var(--ink); margin: 0 clamp(18px, 2.2vw, 30px); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) { .ticker:hover .ticker-track { animation-play-state: paused; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .65) 0; }
.dark { background: var(--forest); color: var(--forest-ink); }
.section-head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head h2, .h2 { font-size: clamp(38px, 5.2vw, 72px); letter-spacing: -0.045em; line-height: .98; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }
.dark .section-head p { color: var(--forest-ink-2); }

/* Problem: statement + calculator */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.problem h2 { font-size: clamp(38px, 4.8vw, 66px); letter-spacing: -0.045em; line-height: .98; margin-bottom: 28px; }
.problem-copy p { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.55; max-width: 520px; }
.problem-copy p strong { color: var(--ink); font-weight: 600; }
.problem-copy p:last-child { margin-bottom: 0; }

.calc { margin: 0; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-l); box-shadow: 10px 10px 0 var(--kowhai); overflow: hidden; }
.calc-body { padding: 24px 24px 10px; }
.calc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.calc-head h3 { font-size: 20px; letter-spacing: -0.025em; }
.calc-field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 16px; padding: 16px 0 12px; border-top: 1px solid var(--line); }
.calc-field label { font-weight: 500; font-size: 15.5px; }
.calc-field output { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] {
  grid-column: 1 / -1; -webkit-appearance: none; appearance: none;
  width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; --p: 50%;
}
.calc-field input[type="range"]:focus { outline: none; }
.calc-field input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--forest) var(--p), var(--line) var(--p)); }
.calc-field input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.calc-field input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--forest); }
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px;
  border-radius: 50%; background: var(--kowhai); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  transition: transform .16s var(--ease-out), box-shadow .16s var(--ease-out);
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--kowhai); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.calc-field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 var(--ink); }
.calc-field input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--moss); outline-offset: 3px; }
.calc-field input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--moss); outline-offset: 3px; }
.calc-out { background: var(--forest); color: var(--forest-ink); padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: end; }
.calc-out .k { display: block; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--forest-ink-2); }
.calc-out .big { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 4.4vw, 60px); letter-spacing: -0.05em; line-height: .95; color: var(--kowhai); font-variant-numeric: tabular-nums; margin-top: 8px; }
.calc-out .side { text-align: right; }
.calc-out .side output { display: block; font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 8px; }
.calc-line { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--forest-line); color: var(--forest-ink-2); font-size: 15.5px; }
.calc-line strong { color: var(--forest-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--forest-ink-2); }

/* Services: three columns sharing one frame */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); border-radius: var(--radius-l); overflow: hidden; background: var(--card); }
.tier { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); text-decoration: none; color: inherit; position: relative; transition: background-color .25s ease; }
.tier + .tier { border-left: 1px solid var(--line-strong); }
.tier .t-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.tier .t-n { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.tier .t-stage { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ink); }
.tier h3 { font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -0.035em; margin-bottom: 14px; }
.tier .t-line { font-size: 18px; font-weight: 500; line-height: 1.35; margin-bottom: 14px; color: var(--ink); }
.tier p { color: var(--ink-2); font-size: 15.5px; }
.tier .t-foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.tier .t-go { width: 40px; height: 40px; border-radius: var(--radius); border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background-color .2s ease, color .2s ease; flex: none; }
.tier .t-go svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.tier.featured { background: var(--forest); color: var(--forest-ink); }
.tier.featured .t-n, .tier.featured p { color: var(--forest-ink-2); }
.tier.featured .t-line { color: var(--forest-ink); }
.tier.featured .t-stage { border-color: var(--kowhai); color: var(--kowhai); }
.tier.featured .t-go { border-color: var(--kowhai); color: var(--kowhai); }
@media (hover: hover) and (pointer: fine) {
  a.tier:hover { background: #fff; }
  a.tier:hover .t-go { background: var(--kowhai); }
  a.tier:hover .t-go svg { transform: translate(2px, -2px); }
  a.tier.featured:hover { background: var(--forest-2); }
  a.tier.featured:hover .t-go { background: var(--kowhai); color: var(--ink); }
}

/* Process: one line, four stops. The line draws across as the section arrives. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; }
.steps::before { background: var(--forest-line); }
.steps::after { background: var(--kowhai); transform-origin: left; transition: transform 1.6s linear .25s; }
html:not(.no-js) .steps:not(.in)::after { transform: scaleX(0); }
.step { position: relative; padding: 52px 32px 0 0; }
.step::before {
  content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--kowhai); border: 2px solid var(--kowhai);
  transition: background-color .3s ease, border-color .3s ease, box-shadow .5s ease;
  transition-delay: calc(var(--i, 0) * 400ms + 250ms);
}
html:not(.no-js) .steps:not(.in) .step::before { background: var(--forest); border-color: var(--forest-line); }
.step .n { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--kowhai); margin-bottom: 14px; }
.step h3 { font-size: clamp(30px, 3.1vw, 44px); letter-spacing: -0.045em; margin-bottom: 10px; }
.step .when { font-family: var(--font-mono); font-size: 12.5px; color: var(--forest-ink-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.step p { color: var(--forest-ink-2); font-size: 15.5px; margin: 0; max-width: 270px; }

/* Why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.why-item { padding: 28px 24px 8px 0; }
.why-item + .why-item { padding-left: 24px; border-left: 1px solid var(--line); }
.why-item .ic { width: 44px; height: 44px; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--card); display: grid; place-items: center; margin-bottom: 24px; }
.why-item .ic svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 10px; }
.why-item p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid h2 { font-size: clamp(38px, 4.8vw, 66px); letter-spacing: -0.045em; line-height: .98; }
.faq-side { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-side p { color: var(--ink-2); margin: 24px 0 0; max-width: 320px; }
.faq-side p a { white-space: nowrap; }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 22px); letter-spacing: -0.02em; line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 32px; height: 32px; border-radius: var(--radius); border: 1.5px solid var(--ink); position: relative; transition: background-color .2s ease; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s var(--ease-out); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm { background: var(--kowhai); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]) summary:hover .pm { background: var(--bone-2); } }
.faq .a { padding: 0 56px 26px 0; color: var(--ink-2); }
.faq .a p:last-child { margin: 0; }
@supports selector(::details-content) {
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* CTA */
.cta { padding: 0 0 var(--section); }
.cta-box {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--kowhai); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 22px;
  padding: clamp(40px, 7vw, 96px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: end;
  box-shadow: 12px 12px 0 var(--forest);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 31, 25, .28) 1.1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 55% 90% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 90% at 100% 0%, #000 0%, transparent 70%);
}
.cta-box h2 { font-size: clamp(48px, 7.4vw, 112px); letter-spacing: -0.055em; line-height: .9; font-weight: 800; }
.cta-box p { font-size: 18px; max-width: 420px; }
.cta-box .btn-line { --bd: var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta-fine { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 24px 0 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 13px; }
.cta-fine li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cta-fine li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(52px, 8vw, 120px); letter-spacing: -0.055em; line-height: .92; font-weight: 800; max-width: 13ch; }
.page-hero .lede { font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-2); max-width: 640px; margin: 32px 0 0; line-height: 1.5; }

/* Services page */
.svc { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 80px); padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line-strong); align-items: start; }
.svc:first-child { border-top: 1.5px solid var(--ink); }
.svc-side { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-side .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(72px, 9vw, 128px); line-height: .8; letter-spacing: -0.06em; display: block; margin-bottom: 20px; }
.svc-side .n .mark { padding: 0 .04em; }
.svc-side .s { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.svc-main h2 { font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -0.04em; margin-bottom: 14px; }
.svc-main .line { font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; line-height: 1.35; margin-bottom: 18px; max-width: 640px; }
.svc-main .for { color: var(--ink-2); font-size: 17px; max-width: 640px; }
.svc-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 36px; }
.svc-cols h4 { font-family: var(--font-mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 12px; }
.included { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.included li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.included li svg { width: 18px; height: 18px; color: var(--moss); margin-top: 3px; }
.fitbox { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-l); padding: 24px; box-shadow: 6px 6px 0 var(--forest); }
.fitbox .k { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.fitbox strong { display: block; font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; margin: 10px 0 20px; }
.fitbox .out { font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; margin: 0 0 20px; }
.fitbox .out b { color: var(--ink); }

/* About page */
.story { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.story h2 { font-size: clamp(38px, 4.8vw, 66px); letter-spacing: -0.045em; line-height: .98; }
.story-body p { color: var(--ink-2); font-size: 18px; }
.story-body p.big { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: clamp(23px, 2.3vw, 30px); line-height: 1.3; letter-spacing: -0.025em; }
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.belief { background: var(--forest-2); border: 1px solid var(--forest-line); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px); }
.belief .n { font-family: var(--font-mono); color: var(--kowhai); font-size: 13px; display: block; margin-bottom: 36px; }
.belief h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; margin-bottom: 12px; }
.belief p { color: var(--forest-ink-2); margin: 0; max-width: 460px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.contact-list .k { display: block; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 6px; }
.contact-list a, .contact-list .v { font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.025em; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--kowhai); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.book { margin-top: 32px; padding: 28px; border-radius: var(--radius-l); }
.book h3 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 10px; }
.book p { color: var(--forest-ink-2); font-size: 15.5px; margin-bottom: 22px; }
.form { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); box-shadow: 10px 10px 0 var(--forest); }
.form h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.04em; margin-bottom: 10px; }
.form > p { color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: var(--bone); border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px var(--kowhai-soft); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.form-foot small { color: var(--ink-2); font-size: 13.5px; max-width: 300px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; display: none; }
.form-status.ok { display: block; background: #e3efe6; color: #12382a; border: 1px solid #b7d3bf; }
.form-status.err { display: block; background: #f8e5df; color: #7a2a12; border: 1px solid #e8bfb1; }
.hp { position: absolute; left: -9999px; }

/* Legal */
.legal { max-width: 760px; }
.legal .updated { font-family: var(--font-mono); color: var(--ink-2); font-size: 13.5px; }
.legal h2 { font-size: 26px; letter-spacing: -0.025em; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.legal a { text-decoration-color: var(--moss); text-underline-offset: 3px; }
.legal .notice { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 9vw, 112px) 0 32px; color: var(--forest-ink-2); font-size: 15px; }
.foot-big {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.055em; line-height: .9;
  font-size: clamp(48px, 9vw, 136px); color: var(--forest-ink); margin-bottom: clamp(48px, 7vw, 88px);
}
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding: 40px 0 56px; border-top: 1px solid var(--forest-line); border-bottom: 1px solid var(--forest-line); }
.foot-brand p { max-width: 300px; margin-top: 16px; }
.foot-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--forest-ink-2); margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--forest-ink); text-decoration: none; transition: color .15s ease; }
.foot-col a:hover { color: var(--kowhai); }
.foot-col address { font-style: normal; color: var(--forest-ink); line-height: 1.65; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--forest-line); display: grid; place-items: center; color: var(--forest-ink); transition: border-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.socials a:hover { border-color: var(--kowhai); color: var(--kowhai); }
.socials a:active { transform: scale(.95); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 14px; }
.foot-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.foot-bottom a { color: var(--forest-ink-2); text-decoration: none; transition: color .15s ease; }
.foot-bottom a:hover { color: var(--forest-ink); }

/* ---------- Reveal on scroll (staggered with --i) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion: keep colour and opacity, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .enter { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mark, .steps::after, .step::before { transition: none; }
  .ticker-view { -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; width: auto; }
  .ticker-row { flex-wrap: wrap; row-gap: 10px; flex: 1; }
  .ticker-row[aria-hidden="true"] { display: none; }
  .btn, .btn .arrow, .tier .t-go svg, .nav-links, .nav-toggle .bars i { transition-duration: .01s; }
  .btn:hover, .btn:active { transform: none; }
  .faq details::details-content { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(44px, 6vw, 64px); }
  .problem { gap: 40px; }
  .tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--line-strong); }
  .tier .t-top { margin-bottom: 28px; }
  .why { grid-template-columns: 1fr 1fr; }
  .why-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .why-item:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  /* Timeline turns vertical */
  .steps { grid-template-columns: 1fr; }
  .steps::before, .steps::after { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .steps::after { transform-origin: top; }
  html:not(.no-js) .steps:not(.in)::after { transform: scaleY(0); }
  .step { padding: 0 0 44px 48px; }
  .step:last-child { padding-bottom: 0; }
  .step .n { margin-bottom: 10px; }
  .step p { max-width: 520px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: clamp(46px, 12.5vw, 88px); }
  .hero::before, .page-hero::before { -webkit-mask-image: radial-gradient(ellipse 90% 60% at 100% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 90% 60% at 100% 0%, #000 0%, transparent 70%); }
  .flow { max-width: 580px; }
  .section-head, .problem, .faq-grid, .story, .contact-grid, .svc, .cta-box { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .faq-side, .svc-side { position: static; }
  .svc-cols { grid-template-columns: 1fr; }
  .svc-side { display: flex; align-items: baseline; gap: 18px; }
  .svc-side .n { margin: 0; }
  .beliefs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .why { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item { padding: 24px 0; border-left: 0; margin: 0; }
  .why-item + .why-item { border-top: 1px solid var(--line); }
  .why-item .ic { margin-bottom: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .flow { padding: 18px; box-shadow: 6px 6px 0 var(--forest); }
  .flow-total .num { font-size: 48px; }
  .flow-item { gap: 10px; font-size: 14.5px; }
  .flow-note { flex-direction: column; gap: 8px; }
  .ticker { flex-direction: column; }
  .ticker-label { border-right: 0; border-bottom: 1px solid var(--line-strong); padding: 10px var(--gutter); }
  .ticker-row { padding: 16px 0; }
  .calc { box-shadow: 6px 6px 0 var(--kowhai); }
  .calc-body { padding: 18px 18px 6px; }
  .calc-out { grid-template-columns: 1fr; padding: 20px 18px; }
  .calc-out .side { text-align: left; }
  .cta-box { box-shadow: 6px 6px 0 var(--forest); }
  .form { box-shadow: 6px 6px 0 var(--forest); }
  .foot-top { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .faq .a { padding-right: 0; }
}
