/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --aubergine: #281B2C;
  --pear: #D6F369;
  --chalk: #F4F0E8;
  --lilac: #CEC7CD;
  --plum: #655C65;
  --rule-dark: #756979;

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(56px, 9vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--aubergine);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--pear); outline-offset: 4px; }
.on-chalk a:focus-visible, .site-header a:focus-visible { outline-color: var(--aubergine); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--pear); color: var(--aubergine); padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 40px;
  min-height: 52px; padding: 14px 22px;
  background: var(--pear); color: var(--aubergine);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border-radius: 2px;
  transition: background-color .15s ease;
}
.btn:hover { background: #E3FA8C; }
.text-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid currentColor;
}
.text-link:hover { border-bottom-color: var(--plum); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--lilac); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3vw, 34px); line-height: 0.92; letter-spacing: -0.05em;
  text-decoration: none; display: inline-block;
}
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); font-size: 15px; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { font-weight: 600; border-bottom: 2px solid var(--aubergine); }
@media (max-width: 760px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 4px; }
  .nav { width: 100%; gap: 16px; font-size: 14px; }
  .nav-cta { margin-left: auto; }
  .nav a[href*="#how-it-works"], .nav a[href*="#about"] { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--aubergine); color: var(--chalk); }
.hero .wrap { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); }
.hero h1 {
  font-size: clamp(46px, 9vw, 112px); line-height: 0.98; letter-spacing: -0.045em;
  margin: 28px 0 clamp(40px, 6vw, 72px);
}
.hero h1 em { font-style: normal; color: var(--pear); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero-copy p { font-size: clamp(17px, 1.6vw, 20px); max-width: 30ch; }
.hero-copy .btn { margin-top: 28px; }
.hero-copy .hint { font-size: 14px; color: var(--lilac); margin-top: 14px; }
.flow { border-top: 1px solid var(--rule-dark); padding-top: 14px; }
.flow h2 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac); }
.flow ol { list-style: none; margin: 10px 0 0; padding: 0; }
.flow li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--rule-dark); font-size: 16px;
}
.flow li span:last-child { color: var(--pear); font-size: 13px; letter-spacing: 0.08em; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .flow { display: none; } }

.sector { border-bottom: 1px solid var(--lilac); }
.sector p { padding-block: 22px; color: var(--plum); font-size: 15px; }

/* ---------- Section heads ---------- */
section.block { padding-block: var(--section); }
.head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.head h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; max-width: 16ch; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.service { border-top: 1px solid var(--aubergine); padding-top: 16px; }
.service h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.02em; margin: 28px 0 16px; }
.service p { max-width: 36ch; }
.service p + p { color: var(--plum); margin-top: 12px; font-size: 16px; }
.services-cta { margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .service h3 { margin-top: 16px; } }

/* ---------- Approach ---------- */
.approach { border-top: 1px solid var(--lilac); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.split h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }
.split .intro { margin-top: 24px; color: var(--plum); max-width: 46ch; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--aubergine); }
.rows li { padding: 22px 0; border-bottom: 1px solid var(--lilac); }
.rows strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.rows span { color: var(--plum); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { border-top: 1px solid var(--lilac); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.steps li { border-top: 1px solid var(--aubergine); padding-top: 16px; }
.steps .num { font-family: var(--font-display); font-size: clamp(48px, 6vw, 72px); line-height: 1; letter-spacing: -0.04em; display: block; margin: 12px 0 20px; }
.steps h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 10px; }
.steps p { color: var(--plum); max-width: 34ch; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--lilac); }
.about .split h2 { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.04em; }
.about p { font-size: clamp(18px, 1.8vw, 22px); max-width: 40ch; }
.about p + p { font-size: 17px; color: var(--plum); margin-top: 20px; max-width: 48ch; }

/* ---------- Closing CTA ---------- */
.closing { background: var(--aubergine); color: var(--chalk); }
.closing .wrap { padding-block: clamp(72px, 11vw, 140px); }
.closing h2 { font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: -0.04em; max-width: 14ch; }
.closing p { margin-top: 28px; font-size: clamp(17px, 1.6vw, 20px); max-width: 40ch; }
.closing .btn { margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--aubergine); color: var(--chalk); border-top: 1px solid var(--rule-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding-block: 40px; }
.site-footer .meta { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--lilac); }
.site-footer .meta a { color: var(--chalk); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Inner pages ---------- */
.service .more { margin-top: 20px; }
.service p.more { color: inherit; font-size: 16px; }
.page-hero h1 { font-size: clamp(44px, 7.5vw, 96px); }
.page-hero .lede { font-size: clamp(18px, 1.8vw, 22px); max-width: 38ch; }
.page-hero .btn { margin-top: 32px; }
.crumb { font-size: 14px; color: var(--lilac); }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--rule-dark); }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 48px); border-top: 1px solid var(--aubergine); }
.topics li { padding: 22px 0; border-bottom: 1px solid var(--lilac); }
.topics strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.topics span { color: var(--plum); }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }
.band { border-top: 1px solid var(--lilac); }
.quote-line { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.02em; max-width: 26ch; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Noise reel ---------- */
.noise { background: var(--chalk); padding-block: var(--section); border-bottom: 1px solid var(--lilac); overflow: hidden; }
.noise h2 { font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; margin-top: 20px; max-width: 16ch; }
.noise h2 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--pear); text-decoration-thickness: 0.12em; text-underline-offset: 0.1em; }
.reel { margin-block: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 8px; border-block: 1px solid var(--aubergine); padding-block: 18px; }
.reel-row { display: flex; width: max-content; }
.reel-track { list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; }
.reel-track li {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 5.5vw, 72px); line-height: 1.15; letter-spacing: -0.03em;
  padding-inline: clamp(16px, 2vw, 28px); white-space: nowrap; color: var(--aubergine);
}
.reel-track li:nth-child(3n+2) { color: var(--plum); }
.reel-track li:nth-child(4n+3) { -webkit-text-stroke: 1.5px var(--aubergine); color: transparent; }
.reel-track li::after { content: "?"; color: var(--plum); margin-left: 2px; }
.reel-track li:nth-child(4n+3)::after { -webkit-text-stroke: 0; }
@media (prefers-reduced-motion: no-preference) {
  .reel-left { animation: reel-left 48s linear infinite; }
  .reel-right { animation: reel-right 56s linear infinite; }
  .reel:hover .reel-row { animation-play-state: paused; }
}
@keyframes reel-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes reel-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.noise-answer { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.noise-line { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 48px); line-height: 1.3; letter-spacing: -0.03em; }
.noise-line span { background: var(--pear); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0.02em 0.12em 0.08em; }
.noise-sub { color: var(--plum); max-width: 44ch; }
@media (max-width: 760px) { .noise-answer { grid-template-columns: 1fr; } }

/* ---------- System builds: fit diagram ---------- */
.col-title { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 16px; }
.intro { margin-top: 24px; color: var(--plum); max-width: 46ch; }
.fit { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: clamp(16px, 2.5vw, 32px); align-items: center; }
.fit-side { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.fit-side li { border-top: 1px solid var(--aubergine); padding-top: 14px; }
.fit-side strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-bottom: 4px; }
.fit-side span { color: var(--plum); font-size: 15px; }
.fit-core { background: var(--aubergine); color: var(--chalk); padding: clamp(20px, 3vw, 32px); border-radius: 2px; }
.fit-core .label { color: var(--pear); }
.fit-core ul { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fit-core li { border: 1px solid var(--rule-dark); padding: 10px 12px; font-size: 15px; }
.fit-foot { font-size: 13px; color: var(--lilac); letter-spacing: 0.04em; }
@media (max-width: 900px) { .fit { grid-template-columns: 1fr; } }

/* ---------- System builds: phases ---------- */
.phases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--aubergine); }
.phases li { display: grid; grid-template-columns: 64px 1.4fr 1fr; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--lilac); }
.phase-num { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.phases h3 { font-size: 22px; margin-bottom: 6px; }
.phases div p { color: var(--plum); max-width: 48ch; }
.phase-exit { font-size: 15px; }
.phase-exit .label { background: var(--pear); padding: 2px 6px; margin-right: 8px; }
@media (max-width: 760px) { .phases li { grid-template-columns: 48px 1fr; } .phase-exit { grid-column: 2; } }

/* ---------- Visual components ---------- */
.caption-line { margin-top: 20px; color: var(--plum); font-size: 15px; }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 32px); align-items: stretch; }
.ba-panel { margin: 0; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; border-radius: 2px; }
.ba-before { border: 1px dashed var(--plum); }
.ba-after { background: var(--aubergine); color: var(--chalk); }
.ba-after .label { color: var(--pear); }
.ba-panel figcaption { font-size: 15px; margin-top: auto; }
.ba-before figcaption { color: var(--plum); }
.ba-arrow { align-self: center; font-family: var(--font-display); font-size: 48px; margin: 0; }
.scatter { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 12px 10px; justify-content: center; }
.scatter li { border: 1px dashed var(--plum); padding: 8px 14px; font-size: 15px; background: var(--chalk); }
.scatter li:nth-child(odd) { transform: rotate(-4deg); }
.scatter li:nth-child(3n) { transform: rotate(5deg) translateY(6px); }
.scatter li:nth-child(4n) { transform: rotate(-2deg) translateY(-4px); }
.hub { display: grid; place-items: center; gap: 14px; padding: 8px 0; }
.hub-core { background: var(--pear); color: var(--aubergine); font-family: var(--font-display); font-weight: 700; font-size: 20px; padding: 14px 22px; }
.hub ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.hub li { border: 1px solid var(--rule-dark); text-align: center; padding: 8px 6px; font-size: 15px; }
@media (max-width: 860px) { .ba { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); justify-self: center; } }

/* chains */
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; align-items: center; }
.chain li { border: 1px solid var(--aubergine); padding: 8px 12px; font-size: 15px; background: var(--chalk); }
.chain li:not(:last-child)::after { content: "→"; margin: 0 -26px 0 12px; display: inline-block; width: 14px; color: var(--plum); }
.chain li:not(:last-child) { margin-right: 26px; }
.chain li.hot { background: var(--pear); border-color: var(--pear); }
@media (max-width: 860px) { .flows { grid-template-columns: 1fr; } }

/* mock screen */
.mock { margin: clamp(40px, 6vw, 64px) 0 0; border: 1px solid var(--aubergine); background: #FBF9F5; border-radius: 2px; }
.mock-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--lilac); font-size: 13px; color: var(--plum); letter-spacing: 0.04em; }
.mock-scroll { overflow-x: auto; }
.mock table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.mock th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--plum); padding: 12px 16px; border-bottom: 1px solid var(--lilac); }
.mock td { padding: 14px 16px; border-bottom: 1px solid var(--lilac); }
.mock tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--plum); }
.tag-pear { background: var(--pear); border-color: var(--pear); }
.tag-dark { background: var(--aubergine); color: var(--chalk); border-color: var(--aubergine); }

/* chips */
.chips { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--lilac); padding: 8px 14px; font-size: 15px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--aubergine); }
.timeline li { position: relative; padding-top: 32px; }
.timeline .dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--chalk); border: 2px solid var(--aubergine); }
.timeline .dot-pear { background: var(--pear); }
.t-num { font-family: var(--font-display); font-size: 40px; line-height: 1; margin-bottom: 8px; }
.timeline h3 { font-size: 20px; margin-bottom: 6px; }
.timeline p:not(.t-num):not(.load) { color: var(--plum); font-size: 15px; }
.load { display: flex; gap: 4px; margin-top: 16px; }
.load i, .load b, .legend i { display: block; width: 18px; height: 8px; }
.load i, .legend i { background: var(--plum); }
.load b { border: 1px solid var(--lilac); }
.legend { display: inline-block; vertical-align: middle; margin-right: 6px; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 32px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding-top: 0; }
  .timeline .dot { left: -32px; top: 6px; }
}

/* tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--lilac); border: 1px solid var(--lilac); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles li { background: var(--chalk); padding: clamp(20px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 6px; }
.tiles strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.01em; }
.tiles span { color: var(--plum); font-size: 15px; }
.tiles .tile-k { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aubergine); }
@media (max-width: 860px) { .tiles, .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles, .tiles-4 { grid-template-columns: 1fr; } }
.mock td { white-space: nowrap; }
.note-raw { font-family: 'Courier New', monospace; font-size: 15px; line-height: 1.6; background: #FBF9F5; border: 1px solid var(--lilac); padding: 16px; transform: rotate(-1deg); }
.note-clean { background: var(--chalk); color: var(--aubergine); padding: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-row .btn { margin-top: 0; }
.btn-ghost { background: transparent; color: var(--chalk); border: 2px solid var(--chalk); gap: 0; }
.btn-ghost:hover { background: transparent; border-color: var(--pear); color: var(--pear); }
.sector .strap { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.02em; color: var(--aubergine); padding-block: clamp(28px, 4vw, 44px); }
.sector .strap em { font-style: normal; background: var(--pear); padding: 0 0.12em; }
.sector .strap { padding-bottom: 20px; }
.promises { list-style: none; margin: 0; padding: 0 0 clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px clamp(20px, 3vw, 40px); }
@media (max-width: 1000px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promises li { border-top: 1px solid var(--aubergine); padding-top: 12px; font-size: 18px; font-weight: 500; display: flex; gap: 12px; }
.promises span { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--plum); padding-top: 5px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }
.strap-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 40px; }
.stat { display: flex; align-items: center; gap: 14px; padding-block: 12px 20px; }
.stat strong { color: var(--aubergine); font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.stat span { max-width: 18ch; font-size: 15px; color: var(--plum); line-height: 1.4; }

/* ---------- Hero demo animation ---------- */
.demo { margin: 0; background: #34253A; border: 1px solid var(--rule-dark); border-radius: 6px; overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule-dark); }
.demo-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-dark); }
.demo-bar p { margin-left: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); }
.demo-stage { position: relative; height: 290px; }
.chaos { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.chaos li {
  position: absolute; max-width: 62%; padding: 8px 12px; border-radius: 4px;
  background: var(--chalk); color: var(--aubergine); font-size: 13px; line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transform: rotate(var(--r));
}
.chaos b { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--plum); }
.chaos .c1 { top: 8%;  left: 5%;  --r: -5deg; --tx: 40%;  --ty: 120%; }
.chaos .c2 { top: 12%; right: 6%; --r: 4deg;  --tx: -50%; --ty: 140%; }
.chaos .c3 { top: 42%; left: 34%; --r: -2deg; --tx: 0%;   --ty: 10%; background: var(--pear); }
.chaos .c4 { top: 66%; left: 4%;  --r: 3deg;  --tx: 60%;  --ty: -110%; }
.chaos .c5 { top: 70%; right: 5%; --r: -6deg; --tx: -50%; --ty: -120%; }
.chaos .c6 { top: 38%; left: 2%;  --r: 7deg;  --tx: 90%;  --ty: 0%; }
.order { position: absolute; inset: 18px; display: flex; flex-direction: column; }
.order-title { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 18px; }
.order-title span { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pear); }
.order-title span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pear); margin-right: 6px; vertical-align: 1px; }
.order ul { list-style: none; margin: 12px 0 0; padding: 0; }
.order li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule-dark); font-size: 15px; }
.order em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.s-pear { background: var(--pear); color: var(--aubergine); }
.s-amber { background: #F2C46B; color: var(--aubergine); }
.s-done { background: transparent; color: var(--lilac); border: 1px solid var(--rule-dark); }
.order-foot { margin-top: auto; font-size: 13px; color: var(--lilac); }
.order-foot::before { content: "✓ "; color: var(--pear); }
.demo figcaption { padding: 12px 14px; border-top: 1px solid var(--rule-dark); font-size: 14px; font-weight: 600; }
.demo figcaption span { font-weight: 400; color: var(--lilac); }

@media (prefers-reduced-motion: no-preference) {
  .chaos li { animation: chaos 24s ease-in-out infinite both; }
  .chaos .c2 { animation-delay: .15s; } .chaos .c3 { animation-delay: .3s; }
  .chaos .c4 { animation-delay: .1s; }  .chaos .c5 { animation-delay: .25s; } .chaos .c6 { animation-delay: .05s; }
  .order-title, .order-foot { animation: order-in 24s ease-out infinite both; }
  .order li { animation: order-in 24s ease-out infinite both; }
  .order li:nth-child(1) { animation-delay: .25s; } .order li:nth-child(2) { animation-delay: .5s; }
  .order li:nth-child(3) { animation-delay: .75s; } .order li:nth-child(4) { animation-delay: 1s; }
  .order-foot { animation-delay: 1.4s; }
}
@media (prefers-reduced-motion: reduce) { .chaos { display: none; } }
@keyframes chaos {
  0%   { opacity: 0; transform: rotate(var(--r)) scale(.9); }
  4%   { opacity: 1; transform: rotate(var(--r)) scale(1); }
  12%  { transform: rotate(calc(var(--r) * -1)) translateY(-3px); }
  20%  { transform: rotate(var(--r)) translateY(2px); }
  28%  { transform: rotate(calc(var(--r) * -1)) translateY(-2px); }
  36%  { transform: rotate(var(--r)); opacity: 1; }
  46%  { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(0) scale(.4); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(0) scale(.4); }
}
@keyframes order-in {
  0%, 46% { opacity: 0; transform: translateY(10px); }
  52%, 94% { opacity: 1; transform: none; }
  99%, 100% { opacity: 0; transform: none; }
}

/* ---------- Cost calculator ---------- */
.calc { background: var(--chalk); border-bottom: 1px solid var(--lilac); }
.calc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-block: var(--section); align-items: start; }
.calc h2 { margin-top: 20px; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.035em; }
.calc h2 em { font-style: normal; background: var(--pear); padding: 0 0.1em; }
.calc-intro { margin-top: 20px; color: var(--plum); max-width: 46ch; }
.calc-inputs { margin-top: 36px; display: grid; gap: 10px; }
.calc-inputs label { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-top: 14px; }
.calc-inputs output { font-family: var(--font-display); font-size: 20px; }
.calc input[type=range] { width: 100%; height: 32px; accent-color: var(--aubergine); cursor: pointer; }
.calc-result { background: var(--aubergine); color: var(--chalk); padding: clamp(28px, 4vw, 44px); border-radius: 4px; }
.calc-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac); }
.calc-big { font-family: var(--font-display); font-size: clamp(44px, 6vw, 76px); line-height: 1.05; letter-spacing: -0.04em; margin-top: 8px; }
.calc-sub { color: var(--lilac); margin-top: 4px; }
.calc-back { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule-dark); }
.calc-win { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); color: var(--pear); margin-top: 6px; letter-spacing: -0.02em; }
.calc-result .btn { margin-top: 28px; }
.calc-note { margin-top: 18px; font-size: 13px; color: var(--lilac); }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .demo-stage { height: 270px; } .chaos li { font-size: 12px; } .chaos .c3 { top: 50%; left: 46%; } .chaos .c6 { top: 34%; } }

/* ---------- Demo band ---------- */
.demo-band { background: var(--aubergine); color: var(--chalk); }
.demo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: var(--section); }
.demo-band h2 { margin-top: 20px; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.035em; }
.demo-band h2 em { font-style: normal; color: var(--pear); }
.demo-intro { margin-top: 20px; color: var(--lilac); max-width: 44ch; font-size: clamp(17px, 1.6vw, 19px); }
.demo-band .demo-stage { height: 320px; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .demo-band .demo-stage { height: 290px; } }

/* ---------- Home hero: split layout + relay animation ---------- */
.hero-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-home h1 { font-size: clamp(46px, 6.6vw, 100px); margin-bottom: clamp(28px, 4vw, 44px); }
.relay { margin: 0; background: #34253A; border: 1px solid var(--rule-dark); border-radius: 6px; padding: clamp(20px, 2.6vw, 30px); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.relay-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac); padding-bottom: 16px; border-bottom: 1px solid var(--rule-dark); }
.relay-live { color: var(--pear); font-weight: 600; }
.relay-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pear); margin-right: 8px; vertical-align: 1px; }
.relay ol { list-style: none; margin: 8px 0 0; padding: 0 0 0 30px; position: relative; }
.relay ol::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 22px; width: 2px; background: var(--rule-dark); }
.relay ol::after { content: ""; position: absolute; left: 7px; top: 22px; width: 2px; height: calc(100% - 44px); background: var(--pear); transform-origin: top; }
.relay li { position: relative; padding: 13px 0; display: grid; gap: 2px; }
.relay li::before { content: ""; position: absolute; left: -30px; top: 17px; width: 16px; height: 16px; border-radius: 50%; background: var(--pear); border: 2px solid var(--pear); box-sizing: border-box; }
.relay b { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; color: var(--chalk); }
.relay li span { font-size: 15px; color: var(--lilac); }
.relay-done { margin-top: 12px; padding: 14px 16px; background: var(--pear); color: var(--aubergine); border-radius: 4px; font-size: 15px; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .relay ol::after { animation: relay-line 12s linear infinite both; }
  .relay-done { animation: relay-done 12s ease-out infinite both; }
  .relay li:nth-child(1) { animation: relay-1 12s ease-out infinite both; }
  .relay li:nth-child(1)::before { animation: relay-dot-1 12s ease-out infinite both; }
  .relay li:nth-child(2) { animation: relay-2 12s ease-out infinite both; }
  .relay li:nth-child(2)::before { animation: relay-dot-2 12s ease-out infinite both; }
  .relay li:nth-child(3) { animation: relay-3 12s ease-out infinite both; }
  .relay li:nth-child(3)::before { animation: relay-dot-3 12s ease-out infinite both; }
  .relay li:nth-child(4) { animation: relay-4 12s ease-out infinite both; }
  .relay li:nth-child(4)::before { animation: relay-dot-4 12s ease-out infinite both; }
  .relay li:nth-child(5) { animation: relay-5 12s ease-out infinite both; }
  .relay li:nth-child(5)::before { animation: relay-dot-5 12s ease-out infinite both; }
}
@keyframes relay-line {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  86% { transform: scaleY(1); opacity: 1; }
  94%, 100% { transform: scaleY(1); opacity: 0; }
}
@keyframes relay-done {
  0%, 64% { opacity: 0; transform: translateY(8px); }
  70%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}
@keyframes relay-1 {
  0% { opacity: .35; transform: translateX(0); }
  4% { opacity: 1; transform: translateX(6px); }
  8%, 86% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: .35; }
}
@keyframes relay-dot-1 {
  0% { background: #34253A; border-color: var(--rule-dark); box-shadow: none; }
  4% { background: var(--pear); border-color: var(--pear); box-shadow: 0 0 0 8px rgba(214,243,105,.25); }
  8%, 86% { background: var(--pear); border-color: var(--pear); box-shadow: none; }
  94%, 100% { background: #34253A; border-color: var(--rule-dark); }
}
@keyframes relay-2 {
  0%, 15% { opacity: .35; transform: translateX(0); }
  19% { opacity: 1; transform: translateX(6px); }
  23%, 86% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: .35; }
}
@keyframes relay-dot-2 {
  0%, 15% { background: #34253A; border-color: var(--rule-dark); box-shadow: none; }
  19% { background: var(--pear); border-color: var(--pear); box-shadow: 0 0 0 8px rgba(214,243,105,.25); }
  23%, 86% { background: var(--pear); border-color: var(--pear); box-shadow: none; }
  94%, 100% { background: #34253A; border-color: var(--rule-dark); }
}
@keyframes relay-3 {
  0%, 30% { opacity: .35; transform: translateX(0); }
  34% { opacity: 1; transform: translateX(6px); }
  38%, 86% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: .35; }
}
@keyframes relay-dot-3 {
  0%, 30% { background: #34253A; border-color: var(--rule-dark); box-shadow: none; }
  34% { background: var(--pear); border-color: var(--pear); box-shadow: 0 0 0 8px rgba(214,243,105,.25); }
  38%, 86% { background: var(--pear); border-color: var(--pear); box-shadow: none; }
  94%, 100% { background: #34253A; border-color: var(--rule-dark); }
}
@keyframes relay-4 {
  0%, 45% { opacity: .35; transform: translateX(0); }
  49% { opacity: 1; transform: translateX(6px); }
  53%, 86% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: .35; }
}
@keyframes relay-dot-4 {
  0%, 45% { background: #34253A; border-color: var(--rule-dark); box-shadow: none; }
  49% { background: var(--pear); border-color: var(--pear); box-shadow: 0 0 0 8px rgba(214,243,105,.25); }
  53%, 86% { background: var(--pear); border-color: var(--pear); box-shadow: none; }
  94%, 100% { background: #34253A; border-color: var(--rule-dark); }
}
@keyframes relay-5 {
  0%, 60% { opacity: .35; transform: translateX(0); }
  64% { opacity: 1; transform: translateX(6px); }
  68%, 86% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: .35; }
}
@keyframes relay-dot-5 {
  0%, 60% { background: #34253A; border-color: var(--rule-dark); box-shadow: none; }
  64% { background: var(--pear); border-color: var(--pear); box-shadow: 0 0 0 8px rgba(214,243,105,.25); }
  68%, 86% { background: var(--pear); border-color: var(--pear); box-shadow: none; }
  94%, 100% { background: #34253A; border-color: var(--rule-dark); }
}

/* ---------- Four services + funnel ---------- */
.services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: center; }
.funnel li { width: var(--w); background: var(--aubergine); color: var(--chalk); text-align: center; padding: 16px 12px; font-weight: 600; font-size: clamp(14px, 1.4vw, 17px); border-radius: 2px; }
.funnel li.hot { background: var(--pear); color: var(--aubergine); }
@media (prefers-reduced-motion: no-preference) {
  .funnel li { animation: funnel-in .7s ease-out both; }
  .funnel li:nth-child(2) { animation-delay: .1s; } .funnel li:nth-child(3) { animation-delay: .2s; }
  .funnel li:nth-child(4) { animation-delay: .3s; } .funnel li:nth-child(5) { animation-delay: .4s; } .funnel li:nth-child(6) { animation-delay: .5s; }
}
@keyframes funnel-in { from { opacity: 0; transform: scaleX(.6); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; row-gap: 0; }
  .nav-cta { margin-left: 0; }
}
.nav-short { display: none; }
@media (max-width: 760px) {
  .nav { flex-wrap: nowrap; }
  .nav-cta { margin-left: auto; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
}
.hero-home h1 { font-size: clamp(46px, 5.6vw, 84px); }
