/* ==========================================================================
   ACEPLAN — design system v4
   Brand: black + pure yellow (#FFF100) + white, sampled from the real logo.
   Concept: every module is a "card" (ACEPLAN = Ace = playing card).
   ========================================================================== */

:root {
  /* Dark ladder — each step biased slightly warm (toward yellow), never neutral grey */
  --ink-900: #0A0A0A;
  --ink-800: #121210;
  --ink-700: #1A1A17;
  --ink-600: #242420;

  /* Light */
  --paper: #FFFFFF;
  --paper-soft: #F6F6F1;

  /* Brand yellow */
  --yellow: #FFF100;
  --yellow-deep: #E0D400;
  --yellow-ink: #6B5500;

  /* Text */
  --on-dark: #F4F4EF;
  --on-dark-muted: #A8A8A0;
  --on-light: #0A0A0A;
  --on-light-muted: #56564F;

  /* Radii */
  --r-card: 24px;
  --r-chip: 16px;
  --r-pill: 999px;

  /* Depth — five tools, not one */
  --rim: inset 0 1px 0 rgba(255, 241, 0, .14);
  --glow-sm: 0 0 24px -4px rgba(255, 241, 0, .45);
  --glow-lg: 0 0 48px -6px rgba(255, 241, 0, .55);
  --shadow-card: 0 24px 50px -28px rgba(0, 0, 0, .6);
  --shadow-lift: 0 36px 70px -30px rgba(0, 0, 0, .75);

  /* Type */
  --display: 'Outfit', 'Noto Sans TC', sans-serif;
  --sans: 'Outfit', 'Noto Sans TC', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  /* Rhythm */
  --pad-section: clamp(64px, 8vw, 120px);
  --gutter: clamp(20px, 6vw, 96px);
}

/* --------------------------------------------------------------------------
   Bands — a section declares its ground, components inherit from it.
   -------------------------------------------------------------------------- */

.band-dark,
.band-dark-alt,
.band-light,
.band-soft,
.band-yellow {
  padding: var(--pad-section) var(--gutter);
}

/* Ambient light fields. Painted as background layers rather than pseudo-
   elements so they can never stack above the content. This is what stops the
   large dark bands from reading as dead flat screen. */
.band-dark {
  background:
    radial-gradient(58% 54% at 86% 8%, rgba(255, 241, 0, .055), transparent 68%),
    radial-gradient(46% 46% at 6% 92%, rgba(255, 241, 0, .032), transparent 70%),
    var(--ink-900);
  --fg: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
  --surface: var(--ink-700);
  --surface-raised: var(--ink-600);
  --hairline: rgba(255, 255, 255, .09);
  --eyebrow-color: var(--yellow);
  color: var(--fg);
}

/* Mirrored so two dark bands in a row never light identically */
.band-dark-alt {
  background:
    radial-gradient(54% 50% at 12% 6%, rgba(255, 241, 0, .05), transparent 68%),
    radial-gradient(44% 46% at 92% 88%, rgba(255, 241, 0, .03), transparent 70%),
    var(--ink-800);
  --fg: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
  /* One step brighter than .band-dark's surface, or cards vanish into this ground */
  --surface: var(--ink-600);
  --surface-raised: #2D2D28;
  --hairline: rgba(255, 255, 255, .09);
  --eyebrow-color: var(--yellow);
  color: var(--fg);
}

.band-light {
  background: var(--paper);
  --fg: var(--on-light);
  --fg-muted: var(--on-light-muted);
  --surface: var(--paper-soft);
  --surface-raised: #FFFFFF;
  --hairline: rgba(10, 10, 10, .10);
  --eyebrow-color: var(--yellow-ink);
  color: var(--fg);
}

.band-soft {
  background: var(--paper-soft);
  --fg: var(--on-light);
  --fg-muted: var(--on-light-muted);
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --hairline: rgba(10, 10, 10, .10);
  --eyebrow-color: var(--yellow-ink);
  color: var(--fg);
}

/* The page's single peak. Used exactly once. */
.band-yellow {
  background: var(--yellow);
  --fg: #0A0A0A;
  --fg-muted: #4A4100;
  --surface: rgba(10, 10, 10, .055);
  --surface-raised: rgba(10, 10, 10, .09);
  --hairline: rgba(10, 10, 10, .16);
  --eyebrow-color: #4A4100;
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection { background: var(--yellow); color: #0A0A0A; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}

.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--yellow);
  color: #0A0A0A;
  padding: 12px 18px;
  border-radius: var(--r-chip);
  font-weight: 600;
  z-index: 50;
}

.skip:focus { top: 12px; }

.shell { max-width: 1320px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Motion primitives
   -------------------------------------------------------------------------- */

/* 1. Deal-in — the signature. Cards arrive like they're being dealt. */
[data-deal] {
  opacity: 0;
  transform: translateY(32px) rotate(-1.5deg);
  transition: opacity .6s cubic-bezier(.22, .8, .3, 1), transform .6s cubic-bezier(.22, .8, .3, 1);
  transition-delay: calc(var(--i, 0) * 60ms);
}

[data-deal].is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* 2. Draw-on SVG — strokes draw themselves. Each shape carries pathLength="1"
      so one rule works regardless of its real geometry length, plus a .dash
      class: attribute selectors on camelCase SVG attributes are unreliable
      across engines, so the class is what the CSS actually keys on. */
.draw .dash {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(.4, 0, .2, 1);
  transition-delay: calc(var(--d, 0) * 1ms);
}

.draw.is-visible .dash { stroke-dashoffset: 0; }

/* Filled marks can't be "drawn" — they fade and scale in instead. */
.draw .pop {
  opacity: 0;
  transform: scale(.4);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity .45s ease, transform .45s cubic-bezier(.3, 1.4, .5, 1);
  transition-delay: calc(var(--d, 0) * 1ms + 400ms);
}

.draw.is-visible .pop { opacity: 1; transform: scale(1); }

/* 5. Breathing glow on the primary CTA */
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 26px -6px rgba(255, 241, 0, .5); }
  50%      { box-shadow: 0 0 46px -4px rgba(255, 241, 0, .85); }
}

/* 6. Load-in: headline lines wipe up from a clipped mask, supporting copy
      rises behind them on a stagger. */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }

.hero h1 .line i {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  animation: lineUp .95s cubic-bezier(.19, .9, .22, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}

@keyframes lineUp { to { transform: translateY(0); } }

/* Keep .rise on a wrapper, never on an element that already owns an
   `animation` shorthand — the later shorthand wins outright and the element
   would be stranded at opacity 0. */
.rise {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn .8s cubic-bezier(.19, .9, .22, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 260ms);
}

p.rise { display: block; }

@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* 7. Ambient drift on the floating Ace cards */
@keyframes drift {
  0%, 100% { transform: var(--rest) translateY(0); }
  50%      { transform: var(--rest) translateY(-16px); }
}

/* --------------------------------------------------------------------------
   Scroll progress + film grain
   -------------------------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  background: rgba(255, 255, 255, .07);
}

.scroll-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 241, 0, .8);
}

/* A whisper of film grain keeps the large flat blacks from reading as dead
   screen. Generated inline — no image request. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Card system — every module is a playing card
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.band-dark .card,
.band-dark-alt .card { box-shadow: var(--shadow-card), var(--rim); }

.card.lift {
  transition: transform .28s cubic-bezier(.22, .8, .3, 1), box-shadow .28s ease, background-color .28s ease;
}

.card.lift:hover,
.card.lift:focus-within {
  transform: translateY(-6px);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lift);
}

.band-dark .card.lift:hover,
.band-dark-alt .card.lift:hover {
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 241, 0, .26);
}

/* Icon chip — a small card that breaks out of its parent's edge (overlap tool) */
.icon-chip {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-5deg);
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55);
  flex-shrink: 0;
}

.icon-chip svg { width: 40px; height: 40px; color: #0A0A0A; }

.icon-chip.sm { width: 54px; height: 54px; border-radius: 15px; }
.icon-chip.sm svg { width: 29px; height: 29px; }

/* --------------------------------------------------------------------------
   Shared type helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 500;
  color: var(--eyebrow-color);
  margin: 0;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  margin-right: 12px;
  box-shadow: 0 0 10px 2px rgba(255, 241, 0, .7);
}

.section-head { margin: 0 auto 56px; max-width: 1320px; }
.section-head .eyebrow { margin-bottom: 22px; }

.section-head h2 {
  font-size: clamp(30px, 4vw, 52px);
  max-width: 18ch;
}

.section-head .lede {
  color: var(--fg-muted);
  font-size: 15px;
  margin: 22px 0 0;
  max-width: 46ch;
}

.hl { color: var(--yellow); }
.band-light .hl, .band-soft .hl { color: var(--yellow-ink); }
.dim { color: var(--fg-muted); }

/* Split head: heading left, lede parked right on wide screens */
@media (min-width: 1040px) {
  .section-head.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34ch;
    align-items: end;
    gap: 48px;
  }
  .section-head.split .eyebrow { grid-column: 1 / -1; }
  .section-head.split .lede { margin: 0; }
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  background: var(--yellow);
  color: #0A0A0A;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-pill);
  box-shadow: var(--glow-sm);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: var(--glow-lg); }
.button .arr { font-size: 19px; line-height: 1; }

.button.pulse { animation: breathe 3.6s ease-in-out infinite; }
.button.pulse:hover { animation: none; }

/* On yellow ground the primary action inverts to black */
.band-yellow .button {
  background: #0A0A0A;
  color: var(--yellow);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .7);
}

.band-yellow .button:hover { box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .85); }

.button.ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--hairline);
}

.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--yellow); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* Header, footer and every section's inner content share one measure so the
   wordmark lines up with the hero text on ultra-wide displays. */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 26px var(--gutter);
  background: var(--ink-900);
  max-width: calc(1320px + var(--gutter) * 2);
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--yellow);
}

.brand-chip {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg);
  flex-shrink: 0;
}

.brand-chip svg { width: 17px; height: 17px; color: #0A0A0A; }

nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  color: var(--on-dark);
}

nav a:hover { color: var(--yellow); }

.cta-pill {
  background: var(--yellow);
  color: #0A0A0A;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  box-shadow: var(--glow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta-pill:hover { transform: translateY(-2px); box-shadow: var(--glow-lg); color: #0A0A0A; }

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink-900);
  padding: 64px var(--gutter) 0;
  overflow: hidden;
  --fg: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
}

/* Blurred light source (depth tool 5) — drifts toward the cursor */
.hero::before {
  content: '';
  position: absolute;
  top: -22%;
  right: -8%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle, rgba(255, 241, 0, .13), transparent 62%);
  pointer-events: none;
  transform: translate3d(calc(var(--mx, 0) * 26px), calc(var(--my, 0) * 20px), 0);
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}

.hero-inner { position: relative; max-width: 1320px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(50px, 7.6vw, 112px);
  line-height: 1.1;
  margin: 28px 0 36px;
  color: #fff;
}

.hero h1 .hl { color: var(--yellow); }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1000px;
}

.hero-bottom p {
  color: var(--on-dark-muted);
  font-size: 16.5px;
  line-height: 1.9;
  margin: 0;
}

/* Floating card shapes — the Ace motif, ambient */
.hero-cards {
  position: absolute;
  right: 2%;
  top: 14%;
  width: 290px;
  height: 330px;
  pointer-events: none;
}

/* Each card keeps its resting pose in --rest so the drift keyframes and the
   cursor parallax can both compose on top of it without fighting. */
.hero-cards i {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1.5px solid rgba(255, 241, 0, .22);
  background: linear-gradient(145deg, rgba(255, 241, 0, .05), transparent 60%);
  transform: var(--rest);
  animation: drift var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.hero-cards i:nth-child(1) {
  --rest: rotate(-13deg) translate(calc(-32px + var(--mx, 0) * -22px), calc(10px + var(--my, 0) * -14px));
  --dur: 9s; --delay: 0s;
}

.hero-cards i:nth-child(2) {
  --rest: rotate(-4deg) translate(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -8px));
  --dur: 11s; --delay: -3s;
}

.hero-cards i:nth-child(3) {
  --rest: rotate(7deg) translate(calc(30px + var(--mx, 0) * 18px), calc(-8px + var(--my, 0) * 12px));
  --dur: 8s; --delay: -5s;
  border-color: rgba(255, 241, 0, .45);
  background: linear-gradient(145deg, rgba(255, 241, 0, .12), transparent 55%);
}

/* Magnetic button — JS writes the offset, CSS eases it back on release */
.magnetic {
  transform: translate3d(var(--magx, 0px), var(--magy, 0px), 0);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .2s ease;
}

.magnetic.is-pulled { transition: transform .1s linear, box-shadow .2s ease; }
.magnetic:hover { transform: translate3d(var(--magx, 0px), var(--magy, 0px), 0); }

.hero-index {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding: 18px 0;
  font: 10px var(--mono);
  letter-spacing: .12em;
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, .09);
}

/* --------------------------------------------------------------------------
   2. Pinned blueprint narrative
   -------------------------------------------------------------------------- */

.pin-wrap { height: 240vh; min-height: 1300px; background: var(--ink-900); }

.blueprint {
  height: 100svh;
  min-height: 600px;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: var(--ink-900);
}

.blueprint::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 52% at 20% 32%, rgba(255, 241, 0, .10), transparent 70%);
  pointer-events: none;
}

/* Everything inside the pinned stage shares the page's measure, so on very wide
   displays the copy and tags stay with the content column instead of drifting
   to the window edges. */
.blueprint-shell {
  position: absolute;
  inset: 0;
  max-width: calc(1320px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.drawing-top, .drawing-bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font: 10px var(--mono);
  letter-spacing: .12em;
  color: var(--on-dark-muted);
  z-index: 2;
}

.drawing-top { top: 32px; }
.drawing-bottom { bottom: 30px; }
.drawing-state { color: var(--yellow); }

canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Left column: copy with the four industries beneath it. The diagram owns the
   right column alone, so neither crowds the other. */
.bp-left {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  max-width: 460px;
  z-index: 2;
}

.drawing-caption { max-width: none; }

.step-label { font: 12px var(--mono); letter-spacing: .14em; color: var(--yellow); }

.drawing-caption h2 {
  font-size: clamp(30px, 3.2vw, 56px);
  margin: 20px 0;
  color: #fff;
}

.drawing-caption p { font-size: 16px; color: var(--on-dark-muted); margin: 0; max-width: 32ch; }

.ruler {
  flex: 1;
  max-width: 340px;
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.ruler i { display: block; width: 0; height: 100%; background: var(--yellow); border-radius: var(--r-pill); }

.industry-tags {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  opacity: 0;
  transform: translateY(24px);
}

/* Dealt chips, not flat fills: a lit top edge, a dropped shadow in the brand
   hue, a leading marker, and a slight tilt so the four never read as a bar. */
.industry-tags span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 16px 13px 15px;
  border-radius: var(--r-chip);
  background: linear-gradient(170deg, #FFF74A 0%, var(--yellow) 42%, var(--yellow-deep) 100%);
  color: #0A0A0A;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    0 12px 26px -14px rgba(255, 241, 0, .75);
  transition: transform .25s cubic-bezier(.22, .8, .3, 1), box-shadow .25s ease;
}

.industry-tags span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #0A0A0A;
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: .75;
}

.industry-tags span:nth-child(1) { transform: rotate(-.8deg); }
.industry-tags span:nth-child(2) { transform: rotate(.6deg); }
.industry-tags span:nth-child(3) { transform: rotate(.5deg); }
.industry-tags span:nth-child(4) { transform: rotate(-.7deg); }

/* --------------------------------------------------------------------------
   3. Trust stats
   -------------------------------------------------------------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
}

.stat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-card), var(--rim);
  transition: transform .28s cubic-bezier(.22, .8, .3, 1), box-shadow .28s ease, background-color .28s ease;
}

/* A yellow rule wipes across the top as the card deals in — the energy the
   flat cards were missing. Staggered with the card itself. */
.stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s cubic-bezier(.22, .8, .3, 1);
  transition-delay: calc(var(--i, 0) * 90ms + 180ms);
}

.stat.is-visible::after { transform: scaleX(1); }

.stat:hover {
  transform: translateY(-5px);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 241, 0, .3);
}

.stat .val {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  text-shadow: 0 0 34px rgba(255, 241, 0, .3);
}

.stat .val .suf { font-size: .5em; margin-left: 2px; }
.stat .lbl { font-size: 15px; font-weight: 600; color: var(--fg); margin-top: 16px; }
.stat .sub { font: 10.5px var(--mono); letter-spacing: .08em; color: var(--fg-muted); margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .stat::after { transform: scaleX(1); transition: none; }
  .stat { transition: none; }
}

/* --------------------------------------------------------------------------
   3b. Keyword marquee — a thin band of motion between two static sections
   -------------------------------------------------------------------------- */

.marquee {
  background: var(--yellow);
  overflow: hidden;
  padding: 14px 0;
  display: flex;
}

/* width:max-content (not min-width:100%) is what makes the -50% loop seamless:
   JS clones the keyword set until one half is wider than the viewport, so the
   track never runs out of content and leaves a blank stretch. */
.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
  width: max-content;
  animation: slide 34s linear infinite;
}

.marquee-track span {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: #0A0A0A;
  white-space: nowrap;
}

.marquee-track i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #0A0A0A;
  transform: rotate(45deg);
  flex-shrink: 0;
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

/* --------------------------------------------------------------------------
   7b. Engagement models
   -------------------------------------------------------------------------- */

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
}

.model { padding: 24px; display: flex; flex-direction: column; }

.model-viz {
  margin: 0 0 22px;
  background: rgba(255, 255, 255, .035);
  border-radius: var(--r-chip);
  padding: 14px 12px;
  color: var(--on-dark);
}

.model-viz svg { display: block; width: 100%; height: auto; }

.model h3 { font-size: 20px; margin: 0 0 10px; }
.model p { font-size: 14px; color: var(--fg-muted); margin: 0; }

.model .fit {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12.5px;
  color: var(--yellow);
}

/* --------------------------------------------------------------------------
   9b. Comparison
   -------------------------------------------------------------------------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.compare-col {
  border-radius: var(--r-card);
  padding: 30px 32px;
}

.compare-head {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: .01em;
}

.compare-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }

.compare-col li {
  font-size: 14.5px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

.muted-col {
  background: rgba(10, 10, 10, .045);
  color: var(--fg-muted);
}

.muted-col .compare-head { color: var(--fg-muted); }

/* A struck-through dash reads as "this is the thing you're leaving behind" */
.muted-col li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .72em;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .5;
}

.win-col {
  background: #0A0A0A;
  color: var(--on-dark);
  box-shadow: var(--shadow-card);
}

.win-col .compare-head { color: var(--yellow); }

.win-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .34em;
  width: 18px;
  height: 10px;
  border-left: 2.5px solid var(--yellow);
  border-bottom: 2.5px solid var(--yellow);
  transform: rotate(-45deg) scale(.86);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   4. Industries
   -------------------------------------------------------------------------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 1320px;
  margin: 0 auto;
}

.industry-card { padding: 34px 34px 30px; }

/* Each card rotates a touch differently so the grid never reads as a table */
.industry-card:nth-child(1) [data-deal], .industry-card:nth-child(1) { --tilt: -1.4deg; }
.industry-card:nth-child(2) { --tilt: 1.1deg; }
.industry-card:nth-child(3) { --tilt: .9deg; }
.industry-card:nth-child(4) { --tilt: -1deg; }

.industry-card .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.industry-card .idx {
  font: 10px var(--mono);
  letter-spacing: .14em;
  color: var(--fg-muted);
  padding-top: 12px;
}

/* Overlap: the chip breaks out past the card's padding edge */
.industry-card .icon-chip { margin: -14px -12px 0 0; }

.industry-card h3 { font-size: 27px; margin: 0 0 14px; }
.industry-card .pain { font-size: 15px; color: var(--fg-muted); margin: 0; min-height: 52px; }

.solution { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--hairline); }

.shift {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0A0A0A;
  background: var(--yellow);
  padding: 5px 14px;
  border-radius: var(--r-pill);
}

.solution .svc { font-size: 13px; margin: 12px 0 0; color: var(--fg-muted); }

/* --------------------------------------------------------------------------
   5. AI approach — split layout, drawn diagram
   -------------------------------------------------------------------------- */

.approach-split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.approach-list { display: grid; gap: 14px; }

.approach-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: var(--r-chip);
  box-shadow: var(--rim);
}

.approach-item .eyebrow { font-size: 10px; margin-bottom: 6px; }
.approach-item h3 { font-size: 19px; margin: 0 0 7px; }
.approach-item p { font-size: 14px; color: var(--fg-muted); margin: 0; }

.diagram-frame {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-card), var(--rim);
}

.diagram-frame svg { display: block; width: 100%; height: auto; }

.diagram-cap {
  font: 10px var(--mono);
  letter-spacing: .1em;
  color: var(--fg-muted);
  margin: 18px 0 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   5b. Monthly pricing
   -------------------------------------------------------------------------- */

.pricing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.pricing-viz {
  margin: 0;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.pricing-viz svg { display: block; width: 100%; height: auto; }

.pricing-points { display: grid; gap: 14px; }

.ppoint {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--r-chip);
  padding: 20px 22px;
}

.ppoint-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 12px var(--mono);
  color: #0A0A0A;
  background: var(--yellow);
  transform: rotate(-5deg);
}

.ppoint h3 { font-size: 17px; margin: 0 0 6px; }
.ppoint p { font-size: 14px; color: var(--fg-muted); margin: 0; }

/* --------------------------------------------------------------------------
   7c. JV Project — the second yellow moment, deliberately inverted
   -------------------------------------------------------------------------- */

/* Mirrors the self-check section rather than repeating it: that one runs
   copy-left / panel-right, this one is flipped. */
.jv-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.jv-grid > div:first-child { order: 2; }
.jv-panel { order: 1; }

.jv-grid h2 { font-size: clamp(30px, 4vw, 52px); max-width: 17ch; }
.jv-grid .lede { color: #3A3300; font-size: 16px; max-width: 46ch; margin: 22px 0 0; }

/* Underline drawn as a block behind the words — reads as a highlighter mark */
.jv-ul {
  background: linear-gradient(transparent 62%, rgba(10, 10, 10, .16) 62%);
  padding: 0 .06em;
}

.jv-actions { margin-top: 32px; }

.jv-panel {
  background: #0A0A0A;
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .55);
}

.jv-viz { margin: 0; color: var(--yellow); }
.jv-viz svg { display: block; width: 100%; height: auto; }

.jv-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1320px;
  margin: clamp(40px, 5vw, 70px) auto 0;
}

.jv-fact {
  background: rgba(10, 10, 10, .07);
  border-radius: var(--r-chip);
  padding: 22px 24px;
}

.jv-fact b {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.jv-fact span { font-size: 14px; color: #3A3300; line-height: 1.7; }

/* --------------------------------------------------------------------------
   6. Assessment — the page's single peak, full yellow
   -------------------------------------------------------------------------- */

.assess-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.assess-grid h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 15ch; }
.assess-grid .lede { color: #3A3300; font-size: 16px; max-width: 40ch; margin: 22px 0 0; }

.assess-meta { display: flex; gap: 26px; margin-top: 30px; font: 11px var(--mono); letter-spacing: .1em; color: #4A4100; }

.assess-panel {
  background: #0A0A0A;
  color: var(--on-dark);
  border-radius: var(--r-card);
  padding: 34px;
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .6);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.q-bar-track { height: 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); overflow: hidden; }
.q-bar-track i { display: block; height: 100%; width: 20%; background: var(--yellow); border-radius: var(--r-pill); transition: width .35s ease; }

.q-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; font: 11px var(--mono); letter-spacing: .12em; color: var(--on-dark-muted); }
.q-top .q-count { color: var(--yellow); }

.q-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 26px 0; }

.q-step { display: none; }
.q-step.is-active { display: block; }

.q-step h3 { font-size: 22px; color: #fff; margin: 0 0 20px; }

.q-options { display: grid; gap: 10px; }

.q-option {
  text-align: left;
  width: 100%;
  background: var(--ink-700);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 14.5px;
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.q-option:hover { background: var(--ink-600); border-color: rgba(255, 241, 0, .4); transform: translateX(3px); }
.q-option[aria-pressed="true"] { border-color: var(--yellow); background: var(--ink-600); }

.q-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; }

.q-back {
  background: none;
  border: none;
  color: var(--on-dark-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 2px;
}

.q-back:hover { color: var(--yellow); }
.q-back[hidden] { display: none; }

/* Result */
#q-result[hidden] { display: none; }
#q-result { text-align: center; }

.gauge-wrap { position: relative; width: 190px; margin: 0 auto 6px; }
.gauge-wrap svg { display: block; width: 100%; height: auto; }

.gauge-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
}

.gauge-num b {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.gauge-num span { font: 10px var(--mono); letter-spacing: .12em; color: var(--on-dark-muted); margin-top: 4px; }

#q-gauge .fill {
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--score, 0));
  transition: stroke-dashoffset .9s cubic-bezier(.3, .8, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  #q-gauge .fill { transition: none; }
}

#q-tier { font-family: var(--display); font-size: 24px; font-weight: 800; color: #fff; margin: 10px 0 10px; }
#q-advice { font-size: 14.5px; color: var(--on-dark-muted); margin: 0 auto 24px; max-width: 42ch; }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.result-actions .button { padding: 15px 24px; font-size: 14px; }
.result-actions .button.ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); background: transparent; }
.result-actions .button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--yellow); }

/* --------------------------------------------------------------------------
   7. Cases — horizontal scroll, a layout used nowhere else
   -------------------------------------------------------------------------- */

/* Wide screens show all four at once — a horizontal scroller that clips the
   last card reads as broken, not as an affordance. Scrolling only kicks in
   when four columns genuinely stop fitting. */
.case-scroll {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 6px 2px 10px;
}

@media (max-width: 1180px) {
  .case-scroll {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 360px);
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 26px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
    scrollbar-width: thin;
  }
}

.case-card { scroll-snap-align: start; display: flex; flex-direction: column; }

.case-tag {
  font: 10px var(--mono);
  letter-spacing: .14em;
  color: var(--yellow-ink);
  background: var(--yellow);
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  align-self: flex-start;
}

/* Keep CJK headlines from breaking a compound across lines where possible */
.case-card h3 {
  font-size: 21px;
  margin: 18px 0 14px;
  line-break: strict;
  text-wrap: balance;
}

.case-block { margin-top: 14px; }
.case-block dt { font: 10px var(--mono); letter-spacing: .12em; color: var(--fg-muted); }
.case-block dd { margin: 5px 0 0; font-size: 14px; }

.case-result {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.case-result {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.case-result b {
  font-family: var(--display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--yellow-ink);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.case-result span { font-size: 13px; color: var(--fg-muted); }

/* The swipe hint only makes sense while the row actually scrolls */
.scroll-hint { display: none; font: 10px var(--mono); letter-spacing: .1em; color: var(--fg-muted); margin: 4px 0 0; }

@media (max-width: 1180px) {
  .scroll-hint { display: block; }
}

/* --------------------------------------------------------------------------
   8. Difference — staggered offset list, deliberately not a grid
   -------------------------------------------------------------------------- */

.principles { max-width: 1000px; margin: 0 auto; display: grid; gap: 18px; }

.principle {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 26px 30px;
  box-shadow: var(--shadow-card), var(--rim);
}

/* Each one steps further right — a dealt, fanned stack */
.principle:nth-child(1) { margin-left: 0; }
.principle:nth-child(2) { margin-left: 5%; }
.principle:nth-child(3) { margin-left: 10%; }
.principle:nth-child(4) { margin-left: 15%; }

.principle .num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 13px var(--mono);
  color: #0A0A0A;
  background: var(--yellow);
  transform: rotate(-5deg);
}

.principle h3 { font-size: 19px; margin: 0 0 8px; }
.principle p { font-size: 14px; color: var(--fg-muted); margin: 0; }

/* --------------------------------------------------------------------------
   9. Route
   -------------------------------------------------------------------------- */

.route-strip { overflow-x: auto; max-width: 1320px; margin: 0 auto; }
.route-strip svg { display: block; width: 100%; min-width: 820px; height: auto; }

/* --------------------------------------------------------------------------
   10. Funding — asymmetric, small
   -------------------------------------------------------------------------- */

.funding {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.funding h2 { font-size: clamp(28px, 3.4vw, 42px); }
.funding p { color: var(--fg-muted); font-size: 15px; max-width: 40ch; }

.funding-diagram {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.funding-diagram svg { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */

.faq-list { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border-radius: var(--r-chip);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .4);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 20px;
  color: var(--yellow-ink);
  flex-shrink: 0;
  transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .answer { padding: 0 24px 22px; font-size: 14.5px; color: var(--fg-muted); margin: 0; max-width: 62ch; }

/* --------------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------------- */

.contact { position: relative; overflow: hidden; }

.contact::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 10%;
  width: 55vw;
  height: 55vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(255, 241, 0, .11), transparent 62%);
  pointer-events: none;
}

.contact-inner { position: relative; max-width: 1320px; margin: 0 auto; }

.contact h2 { font-size: clamp(38px, 6vw, 84px); margin: 26px 0 36px; color: #fff; }

.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.wa {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 18px 26px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2);
  transition: box-shadow .2s ease, transform .2s ease;
}

.wa svg { width: 19px; height: 19px; }
.wa:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--yellow); color: var(--on-dark); }

.contact-note { font-size: 13.5px; color: var(--on-dark-muted); margin: 26px 0 60px; }

.contact-details {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 30px;
  font-size: 14px;
}

.contact-details a:hover { color: var(--yellow); }
.contact-details address { font-style: normal; color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Contact form — shared rules taking over the inline styles codex had to use
   while it could not touch this file.
   -------------------------------------------------------------------------- */

#contact-form {
  display: grid;
  gap: 20px;
  max-width: 980px;
  padding: 34px 36px;
}

/* Name and company sit side by side; the long fields stay full width */
@media (min-width: 720px) {
  #contact-form { grid-template-columns: 1fr 1fr; }
  #contact-form > h3,
  #contact-form > #contact-form-note,
  #contact-form > .field-wide,
  #contact-form > .contact-actions,
  #contact-form > #contact-form-status,
  #contact-form > noscript { grid-column: 1 / -1; }
}

#contact-form h3 { font-size: 21px; margin: 0; }
#contact-form label { font-size: 14px; font-weight: 600; }

#contact-form input,
#contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-chip);
  background: var(--ink-900);
  color: var(--on-dark);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#contact-form textarea { resize: vertical; min-height: 140px; }

#contact-form input:hover,
#contact-form textarea:hover { border-color: rgba(255, 241, 0, .5); }

#contact-form input:focus-visible,
#contact-form textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-color: var(--yellow);
}

#contact-form input[aria-invalid="true"],
#contact-form textarea[aria-invalid="true"] { border-color: var(--signal, #E3934F); }

footer {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px var(--gutter);
  background: var(--ink-900);
  max-width: calc(1320px + var(--gutter) * 2);
  margin: 0 auto;
  font: 10px var(--mono);
  letter-spacing: .1em;
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, .07);
}

footer .wordmark { font-size: 19px; }
footer .wordmark .brand-chip { width: 24px; height: 24px; border-radius: 8px; }
footer .wordmark .brand-chip svg { width: 13px; height: 13px; }
footer a:hover { color: var(--yellow); }
footer small { margin-left: auto; font-size: 10px; }

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

@media (max-width: 1040px) {
  .approach-split, .assess-grid, .compare, .pricing-split, .jv-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .jv-facts { grid-template-columns: 1fr; }
  /* Stacked, the copy should lead and the diagram follow */
  .jv-grid > div:first-child { order: 1; }
  .jv-panel { order: 2; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(even) { transform: none; }
  .hero-cards { display: none; }
  .principle:nth-child(n) { margin-left: 0; }
}

@media (max-width: 760px) {
  .header { flex-wrap: wrap; gap: 14px; padding: 18px var(--gutter); }
  .wordmark { font-size: 21px; }
  .header nav { order: 3; width: 100%; margin-left: 0; gap: 18px; font-size: 13px; justify-content: space-between; }
  .cta-pill { padding: 9px 16px; font-size: 13px; }

  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(40px, 13vw, 62px); margin: 22px 0 28px; }
  .hero-bottom { display: block; }
  .hero-bottom .button { margin-top: 26px; }
  .hero-index { margin-top: 40px; font-size: 8px; }

  .pin-wrap { height: 210vh; min-height: 1080px; }
  .blueprint { min-height: 560px; }
  .bp-left { top: 13%; transform: none; width: auto; right: var(--gutter); max-width: none; }
  .drawing-caption h2 { font-size: 28px; margin: 14px 0; }
  .drawing-caption p { font-size: 13px; }
  .drawing-top, .drawing-bottom { font-size: 8px; letter-spacing: .06em; }
  .ruler { max-width: 110px; }
  .industry-tags { margin-top: 26px; gap: 8px; }
  .industry-tags span { font-size: 10.5px; padding: 10px 6px; }

  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(26px, 8vw, 34px); }

  .stats-row { gap: 14px; }
  .stat { padding: 22px 20px; }

  .marquee-track span { font-size: 13.5px; }
  .marquee-track { gap: 16px; }
  .model-grid { grid-template-columns: 1fr; gap: 16px; }
  .compare-col { padding: 24px; }
  .industry-grid { grid-template-columns: 1fr; gap: 18px; }
  .industry-card { padding: 26px 24px; }
  .industry-card .pain { min-height: 0; }
  .icon-chip { width: 60px; height: 60px; border-radius: 17px; }
  .icon-chip svg { width: 32px; height: 32px; }

  .assess-panel { padding: 24px 20px; min-height: 0; }
  .q-step h3 { font-size: 19px; }

  .case-scroll { grid-auto-columns: minmax(270px, 84vw); }

  .principle { padding: 22px; gap: 16px; }

  .contact h2 { font-size: clamp(32px, 11vw, 48px); }
  .contact-details { flex-direction: column; gap: 14px; }

  footer { gap: 16px; }
  footer .tagline { display: none; }
  footer small { margin-left: 0; flex: 1; }
}

/* --------------------------------------------------------------------------
   Reduced motion — show every end state, animate nothing
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-deal] { opacity: 1; transform: none; transition: none; }
  .draw .dash { stroke-dashoffset: 0; transition: none; }
  .draw .pop { opacity: 1; transform: none; transition: none; }
  .button.pulse { animation: none; }
  .card.lift { transition: none; }
  .marquee-track { animation: none; }
  .hero-cards i { animation: none; }
  .hero::before { transition: none; transform: none; }
  .magnetic { transform: none; transition: none; }
  .grain { display: none; }
  .hero h1 .line i { transform: none; animation: none; }
  .rise { opacity: 1; transform: none; animation: none; }

  .pin-wrap { height: auto; min-height: 0; }
  .blueprint { position: relative; height: 780px; }
  .industry-tags { opacity: 1; transform: none; }
}
