/* KM Services Nationwide — site styles
   Tokens first, then base, layout, components, sections, motion. */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0b0a;
  --ink-2: #131513;
  --ink-3: #1b1e1b;
  --paper: #f4f5f3;
  --paper-2: #e9ebe7;
  --white: #ffffff;
  --mute: #8a8d88;
  --mute-dark: #5c5f5a;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(10, 11, 10, 0.12);
  --green: #12936a;
  --green-bright: #3ccb94;
  --green-deep: #0c3a2a;
  --sun: #f2c14e;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 3vw, 40px);
  --max: 1360px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
::selection { background: var(--green-bright); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 3px; }

.mono, .label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.label { color: var(--mute); display: inline-block; }
.muted { color: var(--mute); }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--paper); color: var(--ink); padding: 10px 14px;
  font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  background: var(--bg); color: var(--fg);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px;
  overflow: hidden; isolation: isolate; cursor: pointer;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green-bright);
  transform: translateY(101%); border-radius: inherit;
  transition: transform 0.5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 11.5px; }
.link-arrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .is-home .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); color: var(--green-bright);
  transition: clip-path 0.9s var(--ease-in-out) 0.1s;
  clip-path: inset(0 0 0 0);
}
.loader__inner { display: flex; align-items: center; gap: 14px; }
.loader__mark { width: 44px; height: 44px; }
.loader__mark circle { opacity: 0; transform-origin: center; animation: dot-in 0.5s var(--ease) forwards; }
.loader__mark circle:nth-child(1) { animation-delay: 0.02s } .loader__mark circle:nth-child(2) { animation-delay: 0.06s }
.loader__mark circle:nth-child(3) { animation-delay: 0.1s } .loader__mark circle:nth-child(4) { animation-delay: 0.14s }
.loader__mark circle:nth-child(5) { animation-delay: 0.18s } .loader__mark circle:nth-child(6) { animation-delay: 0.22s }
.loader__mark circle:nth-child(7) { animation-delay: 0.26s } .loader__mark circle:nth-child(8) { animation-delay: 0.3s }
.loader__mark circle:nth-child(9) { animation-delay: 0.34s } .loader__mark circle:nth-child(10) { animation-delay: 0.38s }
.loader__mark circle:nth-child(11) { animation-delay: 0.42s } .loader__mark circle:nth-child(12) { animation-delay: 0.46s }
.loader__word { color: var(--paper); opacity: 0; animation: fade 0.6s var(--ease) 0.3s forwards; }
@keyframes dot-in { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }
.js body.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader.is-skipped { display: none !important; }

/* ---------- Custom cursor (desktop, fine pointer only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--paper); mix-blend-mode: difference;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.3s;
    opacity: 0;
  }
  .js .cursor.is-visible { opacity: 1; }
  .js .cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--green-bright); }
  .cursor__label { color: var(--ink); font-size: 10.5px; opacity: 0; transition: opacity 0.2s; text-align: center; }
  .cursor.is-big .cursor__label { opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--pad);
  color: var(--paper);
  transition: transform 0.5s var(--ease), background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 11, 10, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); justify-self: start; }
.brand__mark { width: 34px; height: 34px; color: var(--green-bright); transition: transform 0.8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; line-height: 1; text-transform: uppercase; }
.brand__km { color: var(--green-bright); }
.brand__text small { font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: 0.3em; color: var(--mute); margin-top: 5px; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); }
.nav a {
  position: relative; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: rgba(244, 245, 243, 0.78);
  transition: color 0.3s, background-color 0.3s;
}
.nav a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.header__right { display: flex; align-items: center; gap: 20px; justify-self: end; white-space: nowrap; }
@media (max-width: 1360px) { .clock { display: none; } }
.clock { color: var(--mute); font-variant-numeric: tabular-nums; }
.header__phone { text-decoration: none; }
.header__phone:hover { color: var(--green-bright); }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer; }
.menu-btn__lines { display: grid; gap: 5px; width: 22px; }
.menu-btn__lines i { display: block; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.menu-open .menu-btn__lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn__lines i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Expandable menu (mobile + tablet) */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper); color: var(--ink);
  padding: calc(var(--header-h) + 24px) var(--pad) 120px;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-in-out);
}
.menu[hidden] { display: block; visibility: hidden; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-header { color: var(--ink); background: transparent; border-color: transparent; backdrop-filter: none; }
.menu-open .site-header .brand { color: var(--ink); }
.menu-open .site-header .brand__mark, .menu-open .brand__km { color: var(--green); }
.menu__panel { display: grid; gap: 48px; }
.menu__col { display: flex; flex-direction: column; gap: 10px; }
.menu__link {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(40px, 9vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05;
  text-decoration: none; border-bottom: 1px solid var(--line-light); padding: 6px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.menu__link .mono { font-size: 12px; color: var(--mute-dark); letter-spacing: 0.08em; }
.menu__link:hover { color: var(--green); }
.menu-open .menu__link { opacity: 1; transform: none; }
.menu-open .menu__link:nth-child(2) { transition-delay: 0.15s } .menu-open .menu__link:nth-child(3) { transition-delay: 0.2s }
.menu-open .menu__link:nth-child(4) { transition-delay: 0.25s } .menu-open .menu__link:nth-child(5) { transition-delay: 0.3s }
.menu-open .menu__link:nth-child(6) { transition-delay: 0.35s }
.menu__col--meta a { text-decoration: none; }
.menu__big { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.menu__col--meta .btn { align-self: flex-start; margin-top: 12px; }
.menu .label { color: var(--mute-dark); }
.menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  .nav, .clock { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .header__phone, .header__right .btn { display: none; }
  :root { --header-h: 64px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: #1a2620 radial-gradient(120% 80% at 70% 30%, #3b4b40 0%, #141a16 60%, #0a0b0a 100%); }
.hero__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.is-loaded .hero__media video { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,11,10,0.6) 0%, rgba(10,11,10,0.05) 30%, rgba(10,11,10,0.15) 55%, rgba(10,11,10,0.95) 100%),
    linear-gradient(90deg, rgba(10,11,10,0.55) 0%, rgba(10,11,10,0) 60%);
}
.hero__content {
  align-self: end;
  padding: calc(var(--header-h) + 40px) var(--pad) 56px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end;
}
.hero__title {
  grid-column: 1 / span 8;
  font-size: clamp(44px, 7.2vw, 112px); line-height: 0.96; letter-spacing: -0.045em; font-weight: 600;
}
.hero__side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 22px; padding-bottom: 10px; }
.hero__side p { font-size: 18px; color: rgba(244,245,243,0.86); max-width: 380px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 18px var(--pad) 22px; border-top: 1px solid var(--line-dark);
}
.hero__bar .mono { color: rgba(244,245,243,0.75); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 28px; background: rgba(255,255,255,0.25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero__title, .hero__side { grid-column: 1 / -1; }
  .hero__content { padding-bottom: 32px; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + 96px) 0 80px; overflow: hidden; isolation: isolate; }
.page-hero__title { font-size: clamp(48px, 8.5vw, 132px); line-height: 0.95; letter-spacing: -0.05em; max-width: 12ch; }
.page-hero__lead { font-size: clamp(18px, 1.6vw, 22px); color: rgba(244,245,243,0.8); max-width: 560px; }
.page-hero__meta { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.page-hero__glow { position: absolute; z-index: -1; width: 70vw; height: 70vw; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(60,203,148,0.18) 0%, rgba(60,203,148,0) 60%); filter: blur(10px); }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 12vw, 180px) 0; position: relative; }
.section--light { background: var(--paper); color: var(--ink); }
.section--light .label, .section--light .muted { color: var(--mute-dark); }
.section--tight { padding: clamp(64px, 8vw, 120px) 0; }
.section__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); align-items: end; }
.section__head .label { grid-column: 1 / span 3; align-self: start; padding-top: 10px; }
.section__head h2 { grid-column: 4 / span 9; font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.04em; }
.statement { grid-column: 4 / span 9; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 500; }
.statement .dim { color: var(--mute); }
.section--light .statement .dim { color: #9a9d98; }
@media (max-width: 900px) {
  .section__head .label, .section__head h2, .statement { grid-column: 1 / -1; }
}

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; font-size: clamp(32px, 4.4vw, 64px); font-weight: 500; letter-spacing: -0.035em; white-space: nowrap; }
.marquee__item svg { width: 26px; height: 26px; color: var(--green-bright); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Chapters (service panels) */
.chapters { position: relative; }
.chapter {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  border-top: 1px solid var(--line-dark);
}
.chapter__media { position: absolute; inset: 0; z-index: -2; clip-path: inset(6% 6% 6% 6% round 6px); transition: clip-path 1.2s var(--ease); }
.chapter.is-in .chapter__media { clip-path: inset(0 0 0 0 round 0); }
.chapter__media video, .chapter__media .art { width: 100%; height: 100%; object-fit: cover; }
.chapter__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,11,10,0.55), rgba(10,11,10,0.25) 40%, rgba(10,11,10,0.8)); }
.chapter__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; padding: 120px var(--pad); width: 100%; }
.chapter__num { grid-column: 1 / span 2; align-self: start; color: rgba(244,245,243,0.7); }
.chapter__title { grid-column: 3 / span 6; font-size: clamp(48px, 7vw, 116px); letter-spacing: -0.05em; line-height: 0.95; text-transform: none; }
.chapter__text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 22px; }
.chapter__text p { color: rgba(244,245,243,0.86); font-size: 17.5px; }
@media (max-width: 900px) {
  .chapter__num, .chapter__title, .chapter__text { grid-column: 1 / -1; }
}

/* Abstract art panels (stand in for footage until real clips exist) */
.art { position: relative; }
.art--battery { background: radial-gradient(70% 90% at 25% 40%, #1d4a36 0%, #0f1a14 55%, #0a0b0a 100%); }
.art--monitor { background: radial-gradient(70% 80% at 75% 55%, #4a3a17 0%, #17130b 55%, #0a0b0a 100%); }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-light); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.step { position: relative; padding-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.step::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); z-index: 1; }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.step h3 { font-size: 24px; letter-spacing: -0.02em; }
.step p { color: var(--mute-dark); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } .steps::before, .steps::after { display: none; } .step { border-top: 1px solid var(--line-light); } .step::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Energy flow diagram */
.flow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.flow__copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 28px; }
.flow__stage { grid-column: 7 / span 6; }
.flow__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow__list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line-dark); transition: opacity 0.4s; }
.flow__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.flow__list h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 6px; }
.flow__list p { color: rgba(244,245,243,0.72); font-size: 16px; }
.flow__list .mono { color: var(--green-bright); padding-top: 4px; }
.flow svg { width: 100%; height: auto; overflow: visible; }
.flow .wire { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 2; }
.flow .pulse { fill: none; stroke: var(--green-bright); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 10 22; animation: flow 1.4s linear infinite; }
.flow .pulse--sun { stroke: var(--sun); }
@keyframes flow { to { stroke-dashoffset: -32; } }
.flow .sun { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow .panel-cell { fill: #1e3550; stroke: #6f93b5; stroke-width: 1; transition: fill 0.6s; }
.flow.is-in .panel-cell { animation: glint 3.2s var(--ease) infinite; }
@keyframes glint { 0%, 100% { fill: #1e3550; } 50% { fill: #2c5a85; } }
.flow .batt-fill { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0.15); transition: transform 2.4s var(--ease) 0.4s; fill: var(--green-bright); }
.flow.is-in .batt-fill { transform: scaleY(0.82); }
@media (max-width: 900px) { .flow__copy, .flow__stage { grid-column: 1 / -1; } .flow__stage { order: -1; } }

/* Feature cards / reasons */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.reason { padding: 32px 24px 40px 0; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line-light); }
.reason + .reason { padding-left: 24px; }
.reason:last-child { border-right: 0; }
.reason svg { width: 30px; height: 30px; color: var(--green); }
.reason h3 { font-size: 22px; letter-spacing: -0.02em; }
.reason p { color: var(--mute-dark); font-size: 16px; }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr 1fr; } .reason { border-bottom: 1px solid var(--line-light); padding-left: 0 !important; padding-right: 16px; } .reason:nth-child(2n) { border-right: 0; padding-left: 16px !important; } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } .reason { border-right: 0; padding-left: 0 !important; } }

/* Index list (Artemii style) */
.index { display: flex; flex-direction: column; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.index__row {
  display: grid; grid-template-columns: 3fr 4fr 3fr 1fr; gap: 16px; align-items: center;
  padding: 18px 12px; border-bottom: 1px solid var(--line-dark); text-decoration: none; position: relative; isolation: isolate;
}
.index__row::before { content: ""; position: absolute; inset: 0; background: var(--paper); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); }
.index__row:hover::before, .index__row:focus-visible::before { transform: scaleY(1); }
.index__row:hover, .index__row:focus-visible { color: var(--ink); }
.index__row--head { color: var(--mute); font-size: 11px; padding-top: 0; }
.index__row--head::before { display: none; }
.index__row span:last-child { text-align: right; }
@media (max-width: 700px) { .index__row { grid-template-columns: 1fr auto; } .index__row span:nth-child(2), .index__row span:nth-child(3) { display: none; } }

/* Reviews links */
.review-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.review-link { background: var(--paper); padding: 40px; display: flex; justify-content: space-between; align-items: end; gap: 24px; min-height: 220px; text-decoration: none; transition: background-color 0.4s; }
.review-link:hover { background: var(--white); }
.review-link h3 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.03em; }
.review-link .circle { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; flex: none; transition: background-color 0.4s, color 0.4s, transform 0.4s var(--ease); }
.review-link:hover .circle { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
@media (max-width: 700px) { .review-links { grid-template-columns: 1fr; } .review-link { min-height: 160px; padding: 28px; } }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid currentColor; position: relative; transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open] .plus { transform: rotate(180deg); background: var(--ink); color: var(--paper); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 0 28px; max-width: 760px; color: var(--mute-dark); display: flex; flex-direction: column; gap: 12px; }
.faq--dark { border-color: var(--line-dark); }
.faq--dark details { border-color: var(--line-dark); }
.faq--dark .faq__body > div { color: rgba(244,245,243,0.72); }
.faq--dark details[open] .plus { background: var(--paper); color: var(--ink); }

/* Split content (inner pages) */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.split__label { grid-column: 1 / span 3; }
.split__body { grid-column: 4 / span 8; display: flex; flex-direction: column; gap: 22px; font-size: 19px; }
.split__body p { color: inherit; }
.section--light .split__body p { color: #2c2f2b; }
.split__body h3 { font-size: 28px; letter-spacing: -0.025em; margin-top: 18px; }
.split__body ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.split__body li { padding: 14px 0 14px 32px; border-top: 1px solid var(--line-light); position: relative; font-size: 17px; }
.split__body li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.section:not(.section--light) .split__body li { border-color: var(--line-dark); }
.section:not(.section--light) .split__body li::before { background: var(--green-bright); }
@media (max-width: 900px) { .split__label, .split__body { grid-column: 1 / -1; } }

.note { font-size: 14px; color: var(--mute-dark); border-left: 2px solid var(--green); padding: 4px 0 4px 16px; }
.section:not(.section--light) .note { color: var(--mute); border-color: var(--green-bright); }

/* Big media panel */
.media-panel { position: relative; height: clamp(420px, 70vh, 760px); overflow: hidden; border-radius: 6px; }
.media-panel video, .media-panel .art { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }

/* ---------- Form ---------- */
.quote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.quote__intro { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 24px; }
.quote__intro h2 { font-size: clamp(40px, 5vw, 76px); letter-spacing: -0.045em; line-height: 0.98; }
.quote__contact { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.quote__contact a { text-decoration: none; }
.quote__phone { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.quote__form { grid-column: 7 / span 6; }
@media (max-width: 900px) { .quote__intro, .quote__form { grid-column: 1 / -1; } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.field { position: relative; grid-column: span 1; display: flex; flex-direction: column; border-bottom: 1px solid var(--ink); padding-top: 26px; }
.field--full { grid-column: 1 / -1; }
.field label { position: absolute; left: 0; top: 34px; font-size: 19px; color: var(--mute-dark); pointer-events: none; transform-origin: left top; transition: transform 0.35s var(--ease), color 0.3s; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 19px; color: var(--ink);
  background: transparent; border: 0; border-radius: 0; padding: 8px 0 14px; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label,
.field.has-value label,
.field--select label { transform: translateY(-26px) scale(0.68); color: var(--mute-dark); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 17px; }
.field--select::before { content: ""; position: absolute; right: 4px; bottom: 26px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field .error { font-size: 13px; color: #b3261e; min-height: 0; padding-bottom: 6px; display: none; }
.field.is-invalid { border-color: #b3261e; }
.field.is-invalid .error { display: block; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 8px; border: 0; margin: 0; }
.chips legend { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-dark); margin-bottom: 12px; padding: 0; width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-light); border-radius: 999px; font-size: 15px; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.form__small { font-size: 13.5px; color: var(--mute-dark); max-width: 360px; }
.form__small a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { grid-column: 1 / -1; margin-top: 20px; font-size: 16px; }
.form__status[data-state="error"] { color: #b3261e; }
.form-success { display: none; flex-direction: column; gap: 16px; padding: 48px 0; }
.form-success h3 { font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.03em; }
.form-success svg { width: 56px; height: 56px; color: var(--green); }
.form-success svg path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.is-sent .form { display: none; }
.is-sent .form-success { display: flex; }
.is-sent .form-success svg path { animation: draw 0.9s var(--ease) 0.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 560px) { .field { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 160px) var(--pad) 0; border-top: 1px solid var(--line-dark); }
.footer__big { font-size: clamp(40px, 6.5vw, 104px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 600; max-width: 14ch; }
.footer__big a { color: var(--green-bright); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size 0.7s var(--ease); }
.footer__big a:hover { background-size: 100% 3px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr 1fr; gap: 32px; margin-top: clamp(72px, 9vw, 140px); padding-top: 32px; border-top: 1px solid var(--line-dark); }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; color: rgba(244,245,243,0.8); }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--green-bright); }
.footer__col .label { margin-bottom: 8px; }
.footer__col p { max-width: 320px; }
.badge { align-self: flex-start; border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 12px; margin-top: 8px; color: var(--paper); }
.footer__legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 0 28px; color: var(--mute); font-size: 11px; line-height: 1.7; }
.footer__legal a { color: var(--mute); }
.footer__word { font-weight: 700; font-size: 19vw; line-height: 0.78; letter-spacing: -0.06em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.1); white-space: nowrap; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); user-select: none; transform: translateY(12%); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__col:first-child { grid-column: 1 / -1; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10,11,10,0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-dark);
    transform: translateY(110%); transition: transform 0.5s var(--ease);
  }
  .mobile-bar.is-on { transform: none; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
  .mobile-bar__call { border: 1px solid rgba(255,255,255,0.3); }
  .mobile-bar__quote { background: var(--paper); color: var(--ink); }
  .site-footer { padding-bottom: 80px; }
  .menu-open .mobile-bar { transform: translateY(110%); }
}

/* Prose (privacy) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 17px; }
.prose h2 { font-size: 30px; letter-spacing: -0.025em; margin-top: 28px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose p, .prose li { color: #2c2f2b; }

/* ---------- Motion helpers ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-lines .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js .reveal-lines .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 0.08s + var(--d, 0s)); }
.js .reveal-lines.is-in .line > span { transform: none; }
.js .fade-chars .ch { display: inline-block; opacity: 0.15; transition: opacity 0.4s linear; }
.js .fade-chars .ch.is-lit { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-lines .line > span { opacity: 1; transform: none; }
  .js .fade-chars .ch { opacity: 1; }
  .marquee__track { animation: none; }
  .chapter__media { clip-path: none; }
  .hero__media video { transform: none; }
}

/* =========================================================
   SAMPLE SWITCHER (preview build only)
   ========================================================= */
.sample-switch {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 160;
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px;
  background: #ffffff; color: #0a0b0a; border-radius: 999px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.08);
  font-family: var(--font); font-size: 13px;
}
.sample-switch .mono { font-size: 10.5px; color: #5c5f5a; margin-right: 6px; }
.sample-switch button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.sample-switch button[aria-pressed="true"] { background: #0a0b0a; color: #fff; }
@media (max-width: 760px) { .sample-switch { bottom: 84px; font-size: 12px; } .sample-switch button { padding: 7px 9px; } .sample-switch .mono { display: none; } }

/* =========================================================
   SAMPLE 2: DAYLIGHT  (light, fresh, brand green)
   ========================================================= */
[data-theme="daylight"] {
  --page: #fafaf8; --text: #121a15; --soft: #4b5563;
  --green: #1b6b35; --green-bright: #2e9e5b;
}
[data-theme="daylight"] body { background: var(--page); color: var(--text); }
[data-theme="daylight"] .label { color: #6b7280; }
[data-theme="daylight"] .site-header { color: var(--text); }
[data-theme="daylight"] .site-header.is-scrolled { background: rgba(250,250,248,0.85); border-bottom-color: var(--line-light); }
[data-theme="daylight"] .brand { color: var(--text); }
[data-theme="daylight"] .brand__mark, [data-theme="daylight"] .brand__km { color: #12936a; }
[data-theme="daylight"] .nav { background: rgba(18,26,21,0.05); border-color: var(--line-light); }
[data-theme="daylight"] .nav a { color: #374151; }
[data-theme="daylight"] .nav a:hover { background: rgba(18,26,21,0.06); color: var(--text); }
[data-theme="daylight"] .nav a[aria-current="page"] { background: var(--green); color: #fff; }
[data-theme="daylight"] .btn--light { --bg: var(--green); --fg: #fff; }
[data-theme="daylight"] .btn::before { background: #0f3d23; }
[data-theme="daylight"] .btn:hover, [data-theme="daylight"] .btn:focus-visible { color: #fff; }
[data-theme="daylight"] .btn--dark { --bg: var(--green); --fg: #fff; }
[data-theme="daylight"] .btn { border-radius: 12px; font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 15.5px; font-weight: 600; }
[data-theme="daylight"] .btn--small { font-size: 14px; border-radius: 10px; }
[data-theme="daylight"] .loader { background: #fafaf8; }
[data-theme="daylight"] .loader__word { color: var(--text); }
/* hero becomes a rounded card */
[data-theme="daylight"] .hero { margin: calc(var(--header-h) + 4px) var(--pad) 0; border-radius: 24px; min-height: calc(100svh - var(--header-h) - 24px); color: #fff; }
[data-theme="daylight"] .hero__content { padding-top: 60px; }
[data-theme="daylight"] .hero .btn--ghost { color: #fff; }
[data-theme="daylight"] .hero .btn--light { --bg: #fff; --fg: var(--text); }
[data-theme="daylight"] .hero .btn--light:hover { color: #fff; }
[data-theme="daylight"] .hero__bar { border-color: rgba(255,255,255,0.2); }
[data-theme="daylight"] .marquee { border-color: var(--line-light); margin-top: 24px; }
[data-theme="daylight"] .marquee__item { color: var(--text); }
[data-theme="daylight"] .marquee__item svg { color: #f2c14e; }
[data-theme="daylight"] .statement .dim, [data-theme="daylight"] .fade-chars .ch { color: var(--text); }
[data-theme="daylight"] .section--light { background: #eef4ef; color: var(--text); }
[data-theme="daylight"] .chapter { border-color: transparent; color: #fff; margin: 0 var(--pad) 16px; border-radius: 24px; min-height: 86svh; }
[data-theme="daylight"] .flow__list li { border-color: var(--line-light); }
[data-theme="daylight"] .flow__list p { color: var(--soft); }
[data-theme="daylight"] .flow__list .mono { color: var(--green); }
[data-theme="daylight"] .flow__stage { background: #0f3d23; border-radius: 24px; padding: 32px; }
[data-theme="daylight"] .note { color: var(--soft); border-color: var(--green); }
[data-theme="daylight"] .faq--dark, [data-theme="daylight"] .faq--dark details { border-color: var(--line-light); }
[data-theme="daylight"] .faq--dark .faq__body > div { color: var(--soft); }
[data-theme="daylight"] .faq--dark details[open] .plus { background: var(--green); color: #fff; border-color: var(--green); }
[data-theme="daylight"] .reason svg { color: var(--green); }
[data-theme="daylight"] .review-link, [data-theme="daylight"] .review-links { border-radius: 18px; }
[data-theme="daylight"] .review-links { overflow: hidden; }
[data-theme="daylight"] .page-hero__lead { color: var(--soft); }
[data-theme="daylight"] .page-hero__glow { background: radial-gradient(circle, rgba(242,193,78,0.28) 0%, rgba(242,193,78,0) 60%); }
[data-theme="daylight"] .media-panel { border-radius: 24px; }
[data-theme="daylight"] .split__body p, [data-theme="daylight"] .section:not(.section--light) .split__body p { color: var(--soft) !important; }
[data-theme="daylight"] .section:not(.section--light) .split__body li { border-color: var(--line-light); }
[data-theme="daylight"] .section:not(.section--light) .split__body li::before { background: var(--green); }
[data-theme="daylight"] .index__row { border-color: var(--line-light); }
[data-theme="daylight"] .index__row::before { background: #0f3d23; }
[data-theme="daylight"] .index__row:hover, [data-theme="daylight"] .index__row:focus-visible { color: #fff; }
[data-theme="daylight"] .field::after { background: var(--green); }
[data-theme="daylight"] .chip input:checked + span { background: var(--green); border-color: var(--green); }
[data-theme="daylight"] .site-footer { background: #0f3d23; color: #e8f1eb; border: 0; margin-top: 0; }
[data-theme="daylight"] .footer__big a { color: #f2c14e; }
[data-theme="daylight"] .footer__grid, [data-theme="daylight"] .badge { border-color: rgba(255,255,255,0.16); }
[data-theme="daylight"] .footer__legal, [data-theme="daylight"] .footer__legal a, [data-theme="daylight"] .site-footer .label { color: #a9c4b2; }
[data-theme="daylight"] .footer__word { -webkit-text-stroke-color: rgba(255,255,255,0.12); }
[data-theme="daylight"] .menu-btn { color: var(--text); }
[data-theme="daylight"] .cursor.is-big { background: #f2c14e; }
@media (max-width: 760px) {
  [data-theme="daylight"] .mobile-bar { background: rgba(250,250,248,0.92); border-color: var(--line-light); }
  [data-theme="daylight"] .mobile-bar__call { border-color: rgba(18,26,21,0.2); color: var(--text); }
  [data-theme="daylight"] .mobile-bar__quote { background: var(--green); color: #fff; }
  [data-theme="daylight"] .hero, [data-theme="daylight"] .chapter { border-radius: 16px; }
}

/* =========================================================
   SAMPLE 3: EDITORIAL  (white, black, big type, sharp)
   ========================================================= */
[data-theme="editorial"] {
  --page: #ffffff; --text: #0b0b0b; --soft: #55595e;
  --green: #0e7a57; --green-bright: #12936a;
}
[data-theme="editorial"] body { background: var(--page); color: var(--text); }
[data-theme="editorial"] h1, [data-theme="editorial"] h2 { font-weight: 500; letter-spacing: -0.055em; }
[data-theme="editorial"] .label { color: var(--soft); }
[data-theme="editorial"] .site-header { color: var(--text); }
[data-theme="editorial"] .site-header.is-scrolled { background: rgba(255,255,255,0.9); border-bottom-color: var(--line-light); }
[data-theme="editorial"] .brand { color: var(--text); }
[data-theme="editorial"] .brand__mark, [data-theme="editorial"] .brand__km { color: var(--green-bright); }
[data-theme="editorial"] .nav { background: transparent; border-color: transparent; gap: 18px; }
[data-theme="editorial"] .nav a { color: var(--text); padding: 6px 0; border-radius: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
[data-theme="editorial"] .nav a:hover { background-color: transparent; background-size: 100% 1px; }
[data-theme="editorial"] .nav a[aria-current="page"] { background-color: transparent; color: var(--text); background-size: 100% 1px; }
[data-theme="editorial"] .btn { border-radius: 0; }
[data-theme="editorial"] .btn--light, [data-theme="editorial"] .btn--dark { --bg: #0b0b0b; --fg: #fff; }
[data-theme="editorial"] .btn::before { background: var(--green-bright); }
[data-theme="editorial"] .btn:hover { color: #fff; }
[data-theme="editorial"] .btn--ghost { color: var(--text); }
[data-theme="editorial"] .loader { background: #fff; color: var(--green-bright); }
[data-theme="editorial"] .loader__word { color: var(--text); }
/* hero: headline on white, footage as a band below */
[data-theme="editorial"] .hero { display: flex; flex-direction: column; min-height: 0; color: var(--text); }
[data-theme="editorial"] .hero__content { order: 1; padding-top: calc(var(--header-h) + 72px); padding-bottom: 48px; }
[data-theme="editorial"] .hero__title { font-size: clamp(56px, 10vw, 168px); grid-column: 1 / -1; }
[data-theme="editorial"] .hero__side { grid-column: 7 / span 6; }
[data-theme="editorial"] .hero__side p { color: var(--soft); }
[data-theme="editorial"] .hero__media { order: 2; position: relative; inset: auto; height: 78vh; margin: 0 var(--pad); z-index: 0; }
[data-theme="editorial"] .hero__shade { display: none; }
[data-theme="editorial"] .hero__bar { order: 3; border-color: var(--line-light); }
[data-theme="editorial"] .hero__bar .mono { color: var(--soft); }
[data-theme="editorial"] .scroll-cue i { background: rgba(0,0,0,0.15); }
[data-theme="editorial"] .scroll-cue i::after { background: var(--text); }
[data-theme="editorial"] .marquee { border-color: var(--line-light); }
[data-theme="editorial"] .marquee__item { color: var(--text); font-weight: 400; }
[data-theme="editorial"] .marquee__item svg { color: var(--green-bright); }
[data-theme="editorial"] .statement { font-weight: 400; }
[data-theme="editorial"] .statement .dim, [data-theme="editorial"] .fade-chars .ch { color: var(--text); }
[data-theme="editorial"] .section--light { background: #f3f3f1; color: var(--text); }
[data-theme="editorial"] .chapter { color: #fff; border-color: transparent; margin: 0 var(--pad) var(--pad); min-height: 92svh; }
[data-theme="editorial"] .chapter__title { font-weight: 500; }
[data-theme="editorial"] .flow__list li { border-color: var(--line-light); }
[data-theme="editorial"] .flow__list p { color: var(--soft); }
[data-theme="editorial"] .flow__list .mono { color: var(--green); }
[data-theme="editorial"] .flow__stage { background: #0b0b0b; padding: 32px; }
[data-theme="editorial"] .note { color: var(--soft); border-color: var(--text); }
[data-theme="editorial"] .faq--dark, [data-theme="editorial"] .faq--dark details { border-color: var(--line-light); }
[data-theme="editorial"] .faq--dark .faq__body > div { color: var(--soft); }
[data-theme="editorial"] .faq--dark details[open] .plus { background: var(--text); color: #fff; }
[data-theme="editorial"] .reason svg { color: var(--text); }
[data-theme="editorial"] .page-hero__lead { color: var(--soft); }
[data-theme="editorial"] .page-hero__glow { display: none; }
[data-theme="editorial"] .page-hero__title { font-weight: 500; }
[data-theme="editorial"] .media-panel { border-radius: 0; }
[data-theme="editorial"] .split__body p, [data-theme="editorial"] .section:not(.section--light) .split__body p { color: var(--soft) !important; }
[data-theme="editorial"] .section:not(.section--light) .split__body li { border-color: var(--line-light); }
[data-theme="editorial"] .section:not(.section--light) .split__body li::before { background: var(--text); }
[data-theme="editorial"] .index__row { border-color: var(--line-light); }
[data-theme="editorial"] .index__row::before { background: var(--text); }
[data-theme="editorial"] .index__row:hover, [data-theme="editorial"] .index__row:focus-visible { color: #fff; }
[data-theme="editorial"] .chip span { border-radius: 0; }
[data-theme="editorial"] .site-footer { background: #fff; color: var(--text); border-color: var(--line-light); }
[data-theme="editorial"] .footer__big a { color: var(--green); }
[data-theme="editorial"] .footer__grid, [data-theme="editorial"] .badge { border-color: var(--line-light); }
[data-theme="editorial"] .footer__col { color: var(--soft); }
[data-theme="editorial"] .badge { color: var(--text); }
[data-theme="editorial"] .footer__legal, [data-theme="editorial"] .footer__legal a { color: var(--soft); }
[data-theme="editorial"] .footer__word { -webkit-text-stroke-color: rgba(0,0,0,0.1); }
[data-theme="editorial"] .menu-btn { color: var(--text); }
[data-theme="editorial"] .cursor.is-big { background: #0b0b0b; }
[data-theme="editorial"] .cursor.is-big .cursor__label { color: #fff; }
@media (max-width: 900px) { [data-theme="editorial"] .hero__side { grid-column: 1 / -1; } [data-theme="editorial"] .hero__media { height: 56vh; } }
@media (max-width: 760px) {
  [data-theme="editorial"] .mobile-bar { background: rgba(255,255,255,0.94); border-color: var(--line-light); }
  [data-theme="editorial"] .mobile-bar a { border-radius: 0; }
  [data-theme="editorial"] .mobile-bar__call { border-color: rgba(0,0,0,0.2); color: var(--text); }
  [data-theme="editorial"] .mobile-bar__quote { background: #0b0b0b; color: #fff; }
}

/* ---------- Small-screen fixes ---------- */
@media (max-width: 900px) {
  .grid > .label { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  .hero__bar { justify-content: space-between; }
  .hero__bar .mono:nth-child(2), .hero__bar .scroll-cue { display: none; }
}
.chips { padding-top: 36px; }
.field--select { padding-top: 26px; }

/* =========================================================
   PER-STYLE CONTENT (preview shows only the active style's)
   ========================================================= */
html:not([data-theme="cinematic"]) [data-only="cinematic"],
html:not([data-theme="daylight"]) [data-only="daylight"],
html:not([data-theme="editorial"]) [data-only="editorial"] { display: none !important; }

.chapter__media img, .media-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-panel img { inset: -8% 0; height: 116%; }
.chapter.is-in .kb { animation: kb 18s var(--ease) both; }
@keyframes kb { from { transform: scale(1.18) translate(1.5%, 1%); } to { transform: scale(1.02) translate(0, 0); } }

/* =========================================================
   SCROLL HEROES (shared)
   --p goes 0 -> 1 as you scroll through the hero (set in JS)
   ========================================================= */
.hero-scroll { position: relative; height: 180svh; --p: 0; }
.hero-scroll__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }

/* ---------- 1. CINEMATIC: pinned photo, push-in + darken, light sweep ---------- */
.hero-cine .hero-scroll__stick { display: grid; grid-template-rows: 1fr auto; color: var(--paper); }
.hc__photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #111; }
.hc__kb { position: absolute; inset: 0; animation: hc-drift 26s ease-in-out infinite alternate; }
.hc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: scale(calc(1.06 + var(--p) * 0.32)) translateY(calc(var(--p) * -3%));
  filter: saturate(calc(1 - var(--p) * 0.4)) brightness(calc(0.95 - var(--p) * 0.35)); }
@keyframes hc-drift { from { transform: translate3d(-1.2%, 0, 0) scale(1.02); } to { transform: translate3d(1.2%, -1%, 0) scale(1.06); } }
.hc__glare { position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 38%, rgba(255,236,190,0.65) 48%, rgba(255,255,255,0.0) 58%);
  animation: hc-glare 7.5s var(--ease-in-out) infinite; }
@keyframes hc-glare { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
.hc__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,11,10,0.55) 0%, rgba(10,11,10,0.05) 32%, rgba(10,11,10,0.2) 58%, rgba(10,11,10,0.95) 100%),
              linear-gradient(90deg, rgba(10,11,10,0.55), rgba(10,11,10,0) 60%); }
.hc__shade::after { content: ""; position: absolute; inset: 0; background: #0a0b0a; opacity: calc(var(--p) * 0.6); }
.hc__content { transform: translateY(calc(var(--p) * -22vh)); opacity: calc(1 - var(--p) * 2.2); }
.hc__after { position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(calc(-50% + (1 - var(--p)) * 12vh));
  opacity: calc((var(--p) - 0.45) * 2.6); margin: 0; text-align: center; pointer-events: none;
  font-size: clamp(36px, 6vw, 96px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.hc__after em { font-style: normal; color: var(--green-bright); }
.hero-cine .hero__bar { opacity: calc(1 - var(--p) * 2); }

/* ---------- 2. DAYLIGHT: illustrated day, scroll moves the sun ---------- */
.hero-day { height: 260svh; }
.hero-day .hero-scroll__stick { padding: calc(var(--header-h) + 8px) var(--pad) 20px; display: flex; }
.hd__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 56px); align-items: stretch; min-height: 0; }
.hd__copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 12px 0; }
.hd__pill { align-self: flex-start; background: #e6f3ea; color: #0f3d23; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.hd__title { font-size: clamp(44px, 6vw, 96px); line-height: 0.98; letter-spacing: -0.045em; }
.hd__lead { font-size: 18px; color: #4b5563; max-width: 440px; }
.hero-day .btn--ghost { color: #121a15; border-color: rgba(18,26,21,0.25); }
.hd__stages { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.hd__stages li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-light); font-size: 15.5px; color: #9aa09a; transition: color 0.4s, padding-left 0.4s var(--ease); }
.hd__stages .mono { color: inherit; font-size: 11px; padding-top: 3px; }
.hero-day[data-stage="1"] li[data-s="1"], .hero-day[data-stage="2"] li[data-s="2"], .hero-day[data-stage="3"] li[data-s="3"] { color: #121a15; padding-left: 10px; }
.hero-day[data-stage="1"] li[data-s="1"] .mono, .hero-day[data-stage="2"] li[data-s="2"] .mono, .hero-day[data-stage="3"] li[data-s="3"] .mono { color: #1b6b35; }
.hd__scene { position: relative; border-radius: 24px; overflow: hidden; background: #7cc3ef; min-height: 0; box-shadow: 0 30px 60px -30px rgba(18,26,21,0.45); }
.hd__scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hd-dawn { opacity: var(--dawn, 1); }
.hd-dusk { opacity: var(--dusk, 0); }
.hd-stars { opacity: calc(var(--night, 0) * 1); }
.hd-cloud { opacity: calc(0.9 - var(--night, 0) * 0.6); }
.hd-cloud--a { animation: cloud-a 46s linear infinite; }
.hd-cloud--b { animation: cloud-b 64s linear infinite; }
@keyframes cloud-a { from { transform: translate(-120px, 150px); } to { transform: translate(1120px, 150px); } }
@keyframes cloud-b { from { transform: translate(1100px, 230px); } to { transform: translate(-120px, 230px); } }
.hd-cell { fill: url(#dPanel); stroke: #8fb0d3; stroke-width: 1.5; }
.hd-panels .hd-cell { animation: cell 3.6s ease-in-out infinite; animation-delay: var(--o, 0s); }
@keyframes cell { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(calc(1 + var(--gen, 0.5) * 0.8)); } }
.hd-glint { opacity: calc(var(--gen, 0) * 0.35); animation: glint-move 4.5s var(--ease-in-out) infinite; }
@keyframes glint-move { 0% { transform: translateX(-30px); } 60%, 100% { transform: translateX(190px); } }
.hd-lights { opacity: var(--night, 0); transition: opacity 0.3s; }
.hd-lights--n { opacity: calc(var(--night, 0) * 0.8); }
.hd-wire { fill: none; stroke: rgba(30,40,50,0.35); stroke-width: 4; }
.hd-flow { fill: none; stroke: #ffd25e; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 18; animation: flow 1.1s linear infinite; opacity: var(--gen, 0); }
.hd-charge { transform-box: fill-box; transform-origin: bottom; transform: scaleY(var(--charge, 0.1)); }
.hd-bolt { opacity: calc(0.4 + var(--charge, 0) * 0.6); }
@media (max-width: 900px) {
  .hero-day { height: auto; }
  .hero-day .hero-scroll__stick { position: relative; height: auto; }
  .hd__grid { grid-template-columns: 1fr; }
  .hd__scene { height: 62vw; min-height: 300px; order: -1; }
  .hd__stages { display: none; }
}

/* ---------- 3. EDITORIAL: window opens to full bleed, headline splits ---------- */
.hero-ed { height: 220svh; }
.hero-ed .hero-scroll__stick { background: var(--page, #fff); color: var(--text, #0b0b0b); }
.he__title { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 4vh); z-index: 2; margin: 0; padding: 0 var(--pad);
  display: flex; flex-direction: column; font-size: clamp(52px, 9.4vw, 164px); line-height: 0.9; letter-spacing: -0.055em; font-weight: 500; pointer-events: none; }
.he__l { align-self: flex-start; transform: translateX(calc(var(--p) * -45vw)); opacity: calc(1 - var(--p) * 1.6); }
.he__r { align-self: flex-end; transform: translateX(calc(var(--p) * 45vw)); opacity: calc(1 - var(--p) * 1.6); }
.he__intro { position: absolute; left: var(--pad); bottom: 5vh; width: min(34vw, 420px); z-index: 2; display: flex; flex-direction: column; gap: 18px;
  opacity: calc(1 - var(--p) * 3); transform: translateY(calc(var(--p) * 6vh)); }
.he__intro p { color: var(--soft, #55595e); font-size: 17px; }
.he__window { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: #ddd;
  clip-path: inset(calc((1 - var(--p)) * 46%) calc((1 - var(--p)) * 6%) calc((1 - var(--p)) * 5%) calc((1 - var(--p)) * 40%)); }
.he__drift { position: absolute; inset: 0; animation: he-drift 22s ease-in-out infinite alternate; }
.he__window img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.32 - var(--p) * 0.32)); }
@keyframes he-drift { from { transform: translateX(-1.5%); } to { transform: translateX(1.5%); } }
.he__flare { position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: -24vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,240,200,0.55) 0%, rgba(255,240,200,0) 60%); mix-blend-mode: screen; animation: he-flare 6s ease-in-out infinite; }
@keyframes he-flare { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.08); } }
.he__overlay { position: absolute; left: var(--pad); right: var(--pad); bottom: 7vh; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  opacity: calc((var(--p) - 0.7) * 3.4); transform: translateY(calc((1 - var(--p)) * 4vh)); text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.he__overlay p { font-size: clamp(30px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; text-align: right; }
.he__window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45)); opacity: var(--p); pointer-events: none; }
@media (max-width: 900px) {
  .he__intro { width: auto; right: var(--pad); bottom: auto; top: 44vh; }
  .he__window { clip-path: inset(calc((1 - var(--p)) * 66%) calc((1 - var(--p)) * 5%) calc((1 - var(--p)) * 4%) calc((1 - var(--p)) * 5%)); }
}

/* Reduced motion: no pinning, show the settled state */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: auto !important; }
  .hero-scroll__stick { position: relative; min-height: 100svh; height: auto; }
  .hc__kb, .hc__glare, .he__drift, .he__flare, .hd-cloud { animation: none !important; }
}
/* Daylight scene: keep the whole drawing in view */
.hd__scene { align-self: center; width: 100%; aspect-ratio: 1000 / 760; max-height: calc(100svh - var(--header-h) - 40px); }
.hd__scene svg { position: absolute; inset: 0; }
@media (max-width: 900px) { .hd__scene { height: auto; aspect-ratio: 1000 / 760; } }
@media (max-width: 900px) {
  .he__intro { top: 30vh; }
  .he__intro .btn--ghost { display: none; }
}

/* =========================================================
   CHAPTERS 02 + 03: a different picture per style
   ========================================================= */
.cx { position: absolute; inset: 0; }
.cx--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Cinematic: photos with live overlays --- */
.hud { position: absolute; right: 7%; top: 16%; display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; border-radius: 999px;
  background: rgba(10,11,10,0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.14); color: #fff; z-index: 1; }
.hud svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.hud__track { fill: none; stroke: rgba(255,255,255,0.15); stroke-width: 8; }
.hud__ring { fill: none; stroke: var(--green-bright); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; }
.chapter.is-in .hud__ring { animation: hud-ring 6s var(--ease-in-out) infinite; }
@keyframes hud-ring { 0% { stroke-dashoffset: 300; } 70% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 300; } }
.hud__label { display: flex; flex-direction: column; gap: 2px; }
.hud__label .mono { color: rgba(255,255,255,0.6); font-size: 10.5px; }
.hud__label strong { font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; gap: 8px; }
.hud__label strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.hud__scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(180deg, rgba(60,203,148,0) 0%, rgba(60,203,148,0.16) 80%, rgba(60,203,148,0.5) 100%); }
.chapter.is-in .hud__scan { animation: scan 5s var(--ease-in-out) infinite; }
@keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(440%); } }
.glass { position: absolute; right: 7%; top: 14%; width: min(300px, 70vw); padding: 18px 20px; border-radius: 18px; z-index: 1; color: #fff;
  background: rgba(255,255,255,0.12); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255,255,255,0.22);
  display: grid; gap: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); transform: translateY(20px); opacity: 0; transition: transform 1s var(--ease) .5s, opacity 1s var(--ease) .5s; }
.chapter.is-in .glass { transform: none; opacity: 1; }
.glass .mono { font-size: 10.5px; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.75); }
.glass .mono::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; animation: pulse-dot 1.4s infinite; }
.glass__row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.glass__row i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.18); position: relative; overflow: hidden; }
.glass__row i::after { content: ""; position: absolute; inset: 0; background: var(--green-bright); border-radius: inherit; transform-origin: left; transform: scaleX(0); }
.chapter.is-in .glass__row i::after { animation: bar-live 4.5s var(--ease-in-out) infinite alternate; }
.glass__row:nth-child(3) i::after { background: #ffffff; animation-delay: .3s !important; }
.glass__row:nth-child(4) i::after { background: #f2c14e; animation-delay: .6s !important; }
.glass__row:nth-child(5) i::after { background: #8a8d88; animation-delay: .9s !important; }
@keyframes bar-live { 0% { transform: scaleX(calc(var(--w) * 0.6)); } 100% { transform: scaleX(var(--w)); } }

/* --- Shared layout for the drawn (Daylight / Editorial) versions: art left, words right --- */
[data-theme="daylight"] .chapter--battery .chapter__media, [data-theme="daylight"] .chapter--monitor .chapter__media,
[data-theme="editorial"] .chapter--battery .chapter__media, [data-theme="editorial"] .chapter--monitor .chapter__media { background: #0b0b0b; }
[data-theme="daylight"] .chapter--battery .chapter__media { background: radial-gradient(90% 90% at 25% 50%, #1f6a42 0%, #0f3d23 70%); }
[data-theme="daylight"] .chapter--monitor .chapter__media { background: radial-gradient(90% 90% at 25% 50%, #2a4a7a 0%, #14243f 70%); }
[data-theme="daylight"] .chapter--battery .chapter__shade, [data-theme="daylight"] .chapter--monitor .chapter__shade,
[data-theme="editorial"] .chapter--battery .chapter__shade, [data-theme="editorial"] .chapter--monitor .chapter__shade { display: none; }
.cx--art { inset: 8% 48% 8% 4%; display: grid; place-items: center; }
.cx--art > svg { width: 100%; height: 100%; }
[data-theme="daylight"] .chapter--battery .chapter__num, [data-theme="daylight"] .chapter--monitor .chapter__num,
[data-theme="editorial"] .chapter--battery .chapter__num, [data-theme="editorial"] .chapter--monitor .chapter__num { grid-column: 7 / span 6; }
[data-theme="daylight"] .chapter--battery .chapter__title, [data-theme="daylight"] .chapter--monitor .chapter__title,
[data-theme="editorial"] .chapter--battery .chapter__title, [data-theme="editorial"] .chapter--monitor .chapter__title { grid-column: 7 / span 6; }
[data-theme="daylight"] .chapter--battery .chapter__text, [data-theme="daylight"] .chapter--monitor .chapter__text,
[data-theme="editorial"] .chapter--battery .chapter__text, [data-theme="editorial"] .chapter--monitor .chapter__text { grid-column: 7 / span 5; }
[data-theme="daylight"] .chapter--battery .chapter__inner, [data-theme="daylight"] .chapter--monitor .chapter__inner,
[data-theme="editorial"] .chapter--battery .chapter__inner, [data-theme="editorial"] .chapter--monitor .chapter__inner { align-content: center; row-gap: 28px; }
@media (max-width: 900px) {
  .cx--art { inset: 4% 4% 50% 4%; }
  [data-theme="daylight"] .chapter--battery .chapter__num, [data-theme="daylight"] .chapter--monitor .chapter__num,
  [data-theme="editorial"] .chapter--battery .chapter__num, [data-theme="editorial"] .chapter--monitor .chapter__num,
  [data-theme="daylight"] .chapter--battery .chapter__title, [data-theme="daylight"] .chapter--monitor .chapter__title,
  [data-theme="editorial"] .chapter--battery .chapter__title, [data-theme="editorial"] .chapter--monitor .chapter__title,
  [data-theme="daylight"] .chapter--battery .chapter__text, [data-theme="daylight"] .chapter--monitor .chapter__text,
  [data-theme="editorial"] .chapter--battery .chapter__text, [data-theme="editorial"] .chapter--monitor .chapter__text { grid-column: 1 / -1; }
  [data-theme="daylight"] .chapter--battery .chapter__inner, [data-theme="daylight"] .chapter--monitor .chapter__inner,
  [data-theme="editorial"] .chapter--battery .chapter__inner, [data-theme="editorial"] .chapter--monitor .chapter__inner { align-content: end; padding-top: 52vh; }
}

/* --- Daylight battery: day/night loop, battery fills then powers the house --- */
.cx--day-batt svg { filter: drop-shadow(0 30px 40px rgba(0,0,0,0.35)); }
.db-cells rect { fill: #2e9e5b; }
.db-cover { transform-box: fill-box; transform-origin: top; transform: scaleY(1); }
.db-night, .db-moon, .db-window, .db-tag--night { opacity: 0; }
.db-wire { fill: none; stroke: #c4cbc4; stroke-width: 5; }
.db-flow { fill: none; stroke: #ffb020; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 6 12; }
.chapter.is-in .db-cover { animation: db-level 10s var(--ease-in-out) infinite; }
.chapter.is-in .db-night { animation: db-night 10s ease-in-out infinite; }
.chapter.is-in .db-sun { animation: db-sun 10s ease-in-out infinite; }
.chapter.is-in .db-moon, .chapter.is-in .db-window, .chapter.is-in .db-tag--night { animation: db-show-night 10s ease-in-out infinite; }
.chapter.is-in .db-tag--day { animation: db-show-day 10s ease-in-out infinite; }
.chapter.is-in .db-flow { animation: flow 1s linear infinite; }
.chapter.is-in .db-flow--in { animation: flow 1s linear infinite, db-show-day 10s ease-in-out infinite; }
@keyframes db-level { 0% { transform: scaleY(1); } 40% { transform: scaleY(0); } 55% { transform: scaleY(0); } 95% { transform: scaleY(0.85); } 100% { transform: scaleY(1); } }
@keyframes db-night { 0%, 45% { opacity: 0; } 55%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes db-sun { 0%, 45% { transform: translateY(0); opacity: 1; } 55%, 92% { transform: translateY(160px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes db-show-night { 0%, 47% { opacity: 0; } 57%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes db-show-day { 0%, 43% { opacity: 1; } 53%, 95% { opacity: 0; } 100% { opacity: 1; } }

/* --- Daylight monitoring: illustrated phone with a live app --- */
.phone { width: min(300px, 70%); aspect-ratio: 9 / 18.5; border-radius: 40px; background: #0d1117; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(255,255,255,0.08); transform: rotate(-4deg) translateY(30px); transition: transform 1.2s var(--ease); }
.chapter.is-in .phone { transform: rotate(-4deg) translateY(0); }
.phone__screen { height: 100%; border-radius: 30px; background: #f7faf8; color: #121a15; padding: 22px 16px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.phone__top { display: flex; justify-content: space-between; align-items: center; }
.phone__top .mono { font-size: 11px; color: #4b5563; }
.phone__dot { width: 9px; height: 9px; border-radius: 50%; background: #2e9e5b; animation: pulse-dot 1.4s infinite; }
.phone__chart { background: #fff; border-radius: 16px; padding: 12px 10px 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.phone__chart svg { width: 100%; height: 110px; }
.pc-area { fill: rgba(242,193,78,0.25); opacity: 0; transition: opacity 1s .8s; }
.pc-line { fill: none; stroke: #f2a516; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pc-use { fill: none; stroke: #1b6b35; stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chapter.is-in .pc-area { opacity: 1; }
.chapter.is-in .pc-line { animation: draw-1 2.2s var(--ease) .3s forwards; }
.chapter.is-in .pc-use { animation: draw-1 2.2s var(--ease) .7s forwards; }
@keyframes draw-1 { to { stroke-dashoffset: 0; } }
.pc-axis { display: flex; justify-content: space-between; font-size: 9.5px; color: #9aa09a; }
.phone__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: #fff; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.tile .mono { font-size: 10px; color: #4b5563; }
.tile i { display: block; height: 32px; border-radius: 8px; background: #eef2ee; position: relative; overflow: hidden; }
.tile i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0.2); border-radius: inherit; }
.tile--sun i::after { background: #f2c14e; } .tile--home i::after { background: #1b6b35; } .tile--batt i::after { background: #2e9e5b; } .tile--grid i::after { background: #9aa09a; }
.chapter.is-in .tile i::after { animation: tile-live 3.6s var(--ease-in-out) infinite alternate; }
.tile--home i::after { animation-delay: .4s !important; } .tile--batt i::after { animation-delay: .8s !important; } .tile--grid i::after { animation-delay: 1.2s !important; }
@keyframes tile-live { from { transform: scaleX(0.25); } to { transform: scaleX(0.85); } }

/* --- Editorial battery: line drawing, cells fill one by one --- */
.eb-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.chapter.is-in .eb-draw { animation: draw-1 1.6s var(--ease) forwards; }
.eb-cells rect { fill: #f4f5f3; opacity: 0.06; }
.chapter.is-in .eb-cells rect { animation: eb-cell 7s var(--ease-in-out) infinite; }
.chapter.is-in .eb-cells rect:nth-child(1) { animation-delay: 1.2s; } .chapter.is-in .eb-cells rect:nth-child(2) { animation-delay: 1.6s; }
.chapter.is-in .eb-cells rect:nth-child(3) { animation-delay: 2s; } .chapter.is-in .eb-cells rect:nth-child(4) { animation-delay: 2.4s; }
.chapter.is-in .eb-cells rect:nth-child(5) { animation-delay: 2.8s; fill: #12936a; }
@keyframes eb-cell { 0% { opacity: 0.06; } 8% { opacity: 1; } 70% { opacity: 1; } 80%, 100% { opacity: 0.06; } }

/* --- Editorial monitoring: chart draws itself, a dot traces the day --- */
.em-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.chapter.is-in .em-line { animation: draw-1 2.6s var(--ease) forwards; }
.em-use { opacity: 0; transition: opacity 1s 1.6s; }
.chapter.is-in .em-use { opacity: 1; animation: flow 2s linear infinite; }
.em-dot { opacity: 0; transition: opacity .6s 2.4s; }
.chapter.is-in .em-dot { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .db-cover { transform: scaleY(0.3); } .eb-cells rect { opacity: 1; } .pc-line, .pc-use, .em-line, .eb-draw { stroke-dashoffset: 0; }
}
.chapter--battery .cx--photo img { filter: brightness(0.45) saturate(0.75) contrast(1.05); }
.chapter--monitor .cx--photo img { filter: brightness(0.6) saturate(0.85); }
@media (min-width: 901px) { [data-theme="editorial"] .cx--art { inset: 4% 46% 4% 1%; } }

/* =========================================================
   CINEMATIC EXTRAS
   ========================================================= */
.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; }
html[data-theme="cinematic"] .not-cine { display: none !important; }
html[data-theme="cinematic"] .pt-cine { padding-top: clamp(96px, 12vw, 180px) !important; }

/* Scroll progress line (all styles) */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--green-bright); transform-origin: left; transform: scaleX(var(--sp, 0)); }

/* Page curtain transition (all styles) */
.curtain { position: fixed; inset: 0; z-index: 180; background: var(--green-deep); color: var(--green-bright); display: grid; place-items: center; pointer-events: none;
  transform: translateY(100%); transition: transform 0.55s var(--ease-in-out); }
.curtain svg { width: 54px; height: 54px; opacity: 0; transition: opacity .3s .2s; }
.is-leaving .curtain { transform: translateY(0); pointer-events: all; }
.is-leaving .curtain svg { opacity: 1; }
.is-arriving .curtain { transform: translateY(0); transition: none; }
.is-arriving .curtain svg { opacity: 1; transition: none; }
.is-arriving.is-arrived .curtain { transform: translateY(-100%); transition: transform 0.7s var(--ease-in-out); }
.is-arriving.is-arrived .curtain svg { opacity: 0; transition: opacity .2s; }

/* Film grain + cursor spotlight (cinematic only) */
html[data-theme="cinematic"] body::after { content: ""; position: fixed; inset: -50%; z-index: 130; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }
html[data-theme="cinematic"] .section:not(.section--light) { background-image: radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), rgba(60,203,148,0.07), transparent 60%); }

/* Inner page hero photos (cinematic) */
.page-hero__photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.38) saturate(0.8); animation: kb 20s var(--ease) both; }
.page-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,10,0.3), rgba(10,11,10,0.1) 40%, rgba(10,11,10,1)); }
html[data-theme="cinematic"] .page-hero { min-height: 88svh; display: flex; align-items: flex-end; }
html[data-theme="cinematic"] .page-hero > .wrap { width: 100%; }
html[data-theme="cinematic"] .page-hero__glow { display: none; }

/* Photo-filled giant text */
.phototext { position: relative; padding: clamp(80px, 10vw, 160px) var(--pad); overflow: hidden; border-top: 1px solid var(--line-dark); --p: 0; }
.phototext__line { margin: 0; font-weight: 700; font-size: clamp(72px, 17vw, 300px); line-height: 0.86; letter-spacing: -0.065em; white-space: nowrap;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: url("/assets/img/photos/home-terrace.webp"); background-size: 130% auto; background-position: calc(20% + var(--p) * 40%) calc(30% + var(--p) * 30%); }
.phototext__line--a { transform: translateX(calc(-6vw + var(--p) * 12vw)); }
.phototext__line--b { text-align: right; background-image: url("/assets/img/photos/home-detached.webp"); transform: translateX(calc(6vw - var(--p) * 12vw)); }

/* Horizontal "How it works" */
.hsteps { position: relative; height: 340svh; border-top: 1px solid var(--line-dark); --hx: 0px; --hp: 0; }
.hsteps__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-top: var(--header-h); }
.hsteps__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.hsteps__head .label { grid-column: 1 / span 3; align-self: start; }
.hsteps__head h2 { grid-column: 4 / span 6; font-size: clamp(36px, 4.6vw, 68px); letter-spacing: -0.045em; }
.hsteps__meter { grid-column: 10 / span 3; justify-self: end; display: flex; align-items: center; gap: 12px; color: var(--mute); }
.hsteps__meter i { width: 120px; height: 2px; background: var(--line-dark); position: relative; overflow: hidden; }
.hsteps__meter b { position: absolute; inset: 0; background: var(--green-bright); transform-origin: left; transform: scaleX(var(--hp)); }
.hsteps__track { list-style: none; margin: 0; padding: 0 var(--pad); display: flex; gap: 24px; width: max-content; transform: translate3d(var(--hx), 0, 0); will-change: transform; }
.hstep { width: max(300px, 40vw); flex: none; display: flex; flex-direction: column; gap: 22px; }
.hstep__img { position: relative; aspect-ratio: 4 / 3; max-height: 46svh; overflow: hidden; border-radius: 6px; background: #151815; }
.hstep__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(0.85); transform: scale(1.08); transition: transform 1.2s var(--ease), filter .6s; }
.hstep:hover .hstep__img img { transform: scale(1.02); filter: brightness(1) saturate(1); }
.hstep__img--doc { display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 50%, #1d4a36, #0c1f16); }
.hstep__img--doc svg { width: 80%; }
.doc-sign { stroke-dasharray: 160; stroke-dashoffset: 160; animation: sign 3.5s var(--ease) infinite; }
@keyframes sign { 0%, 15% { stroke-dashoffset: 160; } 60%, 100% { stroke-dashoffset: 0; } }
.hstep__body { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; }
.hstep__num { grid-row: span 2; font-family: var(--mono); font-size: 13px; color: var(--green-bright); padding-top: 6px; }
.hstep h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.03em; }
.hstep p { color: rgba(244,245,243,0.72); font-size: 16px; max-width: 380px; }
@media (max-width: 760px) {
  .hsteps { height: auto; }
  .hsteps__stick { position: relative; height: auto; padding: 96px 0; }
  .hsteps__head h2, .hsteps__head .label, .hsteps__meter { grid-column: 1 / -1; justify-self: start; }
  .hsteps__meter { display: none; }
  .hsteps__track { flex-direction: column; width: auto; transform: none !important; }
  .hstep { width: auto; }
}

/* Where we work map */
.areamap__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.areamap__copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 24px; }
.areamap__copy h2 { font-size: clamp(36px, 4.6vw, 68px); letter-spacing: -0.045em; }
.areamap__copy p { color: rgba(244,245,243,0.75); font-size: 18px; max-width: 460px; }
.areamap__copy .btn { align-self: flex-start; }
.areamap__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.areamap__list li { border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 12px; color: rgba(244,245,243,0.8); }
.areamap__stage { grid-column: 7 / span 6; }
.areamap__stage svg { width: 100%; height: auto; }
.map-rings circle { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ring 4.5s var(--ease) infinite; }
.map-rings circle:nth-child(2) { animation-delay: 1.5s; } .map-rings circle:nth-child(3) { animation-delay: 3s; }
@keyframes ring { 0% { transform: scale(0.2); opacity: 0.9; } 100% { transform: scale(4.2); opacity: 0; } }
.map-links line { stroke-dashoffset: 0; animation: flow 1.6s linear infinite; }
.map-towns g { opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease) var(--d), transform .7s var(--ease) var(--d); }
.areamap.is-in .map-towns g { opacity: 1; transform: none; }
@media (max-width: 900px) { .areamap__copy, .areamap__stage { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html[data-theme="cinematic"] body::after { animation: none; }
  .hsteps { height: auto; } .hsteps__stick { position: relative; height: auto; } .hsteps__track { flex-wrap: wrap; width: auto; transform: none !important; }
  .curtain { display: none; }
}
.map-zones .zone { transform-box: fill-box; transform-origin: center; animation: zone-spin 60s linear infinite; }
.map-zones .zone--uk { animation-duration: 120s; animation-direction: reverse; }
@keyframes zone-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   HEAT PUMP PAGES (samples A / B / C)
   ========================================================= */
.hp-notice { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 22px 24px; border: 1px solid rgba(242,193,78,0.45); border-radius: 10px; background: rgba(242,193,78,0.06); max-width: 860px; }
.hp-notice__icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); font-family: var(--mono); font-weight: 700; }
.hp-notice strong { display: block; font-size: 18px; margin-bottom: 6px; }
.hp-notice p { color: rgba(244,245,243,0.8); font-size: 16px; }
.section--light .hp-notice p { color: #2c2f2b; }
.hp-source { margin-top: 24px; font-size: 13px; color: var(--mute); max-width: 760px; }

/* Eligibility checker */
.checker { background: var(--ink-2); color: var(--paper); border: 1px solid var(--line-dark); border-radius: 18px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6); }
.checker__head { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: end; }
.checker__head .label { grid-column: 1 / -1; color: var(--green-bright); }
.checker__head h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; }
.checker__progress { color: var(--mute); }
.checker__qs { list-style: none; margin: 0; padding: 0; position: relative; }
.checker__q { display: none; }
.checker__q.is-active { display: block; animation: q-in .5s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.checker__q p { font-size: 19px; line-height: 1.4; margin-bottom: 18px; min-height: 2.8em; }
.checker__btns { display: flex; gap: 10px; }
.checker__btns button { flex: 1; min-height: 52px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--paper); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.checker__btns button:hover, .checker__btns button:focus-visible { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.checker__result { display: flex; flex-direction: column; gap: 12px; animation: q-in .5s var(--ease); }
.checker__result[hidden] { display: none; }
.checker__result svg { width: 48px; height: 48px; color: var(--green-bright); }
.checker__result h4 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.checker__result p { color: rgba(244,245,243,0.8); font-size: 16px; }
.checker__result--no h4 { color: var(--sun); }
.checker__result .link-arrow { background-color: transparent; border: 0; color: var(--paper); cursor: pointer; align-self: flex-start; padding: 0 0 4px; }
.checker__small { font-size: 12.5px; color: var(--mute); }
.checker.is-done .checker__qs, .checker.is-done .checker__progress { display: none; }

/* Sample A */
.hp-bignum { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hp-bignum__fig { grid-column: 1 / span 5; font-weight: 700; font-size: clamp(96px, 15vw, 240px); letter-spacing: -0.07em; line-height: 0.85; color: var(--green-bright); }
.hp-bignum__pound { font-size: 0.55em; vertical-align: 0.55em; margin-right: 0.04em; }
.hp-bignum__copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 22px; }
.hp-bignum .statement { font-size: clamp(24px, 2.6vw, 38px); }
.hp-sub { font-size: 17px; color: var(--sun); }
.hp-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.hp-rules li { background: var(--paper); padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.hp-rules .mono { color: var(--green); }
.hp-rules h3 { font-size: 23px; letter-spacing: -0.02em; }
.hp-rules p { color: var(--mute-dark); font-size: 16px; }
.hp-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.hp-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-dark); }
.hp-timeline li { position: relative; padding-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.hp-timeline__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 2px solid var(--green-bright); }
.hp-timeline .mono { color: var(--green-bright); }
.hp-timeline h3 { font-size: 21px; letter-spacing: -0.02em; }
.hp-timeline p { color: rgba(244,245,243,0.72); font-size: 15.5px; }
.hp-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hp-split > div:first-child { grid-column: 1 / span 5; }
.hp-split > .checker { grid-column: 7 / span 6; }
@media (max-width: 900px) {
  .hp-bignum__fig, .hp-bignum__copy, .hp-split > div:first-child, .hp-split > .checker { grid-column: 1 / -1; }
  .hp-rules { grid-template-columns: 1fr; }
  .hp-timeline { grid-template-columns: 1fr; } .hp-timeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .hp-timeline li { padding: 0 0 0 36px; }
}

/* Sample B */
.hpb-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 64px; overflow: hidden; isolation: isolate; }
.hpb-hero__bg { position: absolute; inset: 0; z-index: -1; }
.hpb-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.32) saturate(.8); animation: kb 22s var(--ease) both; }
.hpb-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,10,.85), rgba(10,11,10,.3) 70%), linear-gradient(180deg, transparent 60%, var(--ink)); }
.hpb-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; width: 100%; }
.hpb-hero__copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 24px; }
.hpb-hero__checker { grid-column: 8 / span 5; }
.hpb-hero__checker .checker { background: rgba(19,21,19,0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
@media (max-width: 900px) { .hpb-hero__copy, .hpb-hero__checker { grid-column: 1 / -1; } }
.hp-diagram .hp-air path { stroke-dasharray: 8 10; animation: flow 1.2s linear infinite; }
.hp-fan { transform-box: fill-box; transform-origin: center; animation: spin 1.6s linear infinite; }
.hp-warm { fill: #f2994e; opacity: 0; }
.flow.is-in .hp-warm { animation: warm 4s ease-in-out infinite; }
@keyframes warm { 0%, 100% { opacity: 0.08; } 50% { opacity: 0.35; } }
.hp-cyl { fill: #f2994e; transform-box: fill-box; transform-origin: bottom; transform: scaleY(.2); opacity: .5; }
.flow.is-in .hp-cyl { animation: cyl 5s var(--ease-in-out) infinite; }
@keyframes cyl { 0% { transform: scaleY(.2); } 60%, 100% { transform: scaleY(1); } }
.hp-table { border-top: 1px solid var(--line-light); }
.hp-table > div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.hp-table [role="rowheader"] { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); padding-top: 4px; }
.hp-table [role="cell"] { font-size: 17px; color: #2c2f2b; }
@media (max-width: 640px) { .hp-table > div { grid-template-columns: 1fr; gap: 6px; } }

/* Sample C: pinned scroll story */
.hpc { position: relative; height: 380svh; --p: 0; }
.hpc__stick { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding: var(--header-h) var(--pad) 24px; overflow: hidden; }
.hpc__copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 28px; }
.hpc__title { font-size: clamp(44px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.05em; }
.hpc__steps { list-style: none; margin: 0; padding: 0; position: relative; min-height: 210px; }
.hpc__steps li { position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.hpc__steps .mono { color: var(--green-bright); }
.hpc__steps h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.025em; }
.hpc__steps p { color: rgba(244,245,243,0.75); font-size: 17px; max-width: 460px; }
.hpc[data-stage="1"] li[data-s="1"], .hpc[data-stage="2"] li[data-s="2"], .hpc[data-stage="3"] li[data-s="3"], .hpc[data-stage="4"] li[data-s="4"] { opacity: 1; transform: none; pointer-events: auto; }
.hpc__scene { grid-column: 7 / span 6; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-dark); }
.hpc__scene svg { width: 100%; height: auto; display: block; max-height: calc(100svh - var(--header-h) - 60px); }
.hpc-loss, .hpc-cyl, .hpc-pump, .hpc-pipes { opacity: 0; transition: opacity .7s var(--ease); }
.hpc-boiler { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hpc-flame { animation: flame 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
@keyframes flame { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.8); } }
.hpc-rad { fill: #f2994e; opacity: 0.12; transition: opacity .8s; }
.hpc-cylfill { fill: #f2994e; opacity: .45; }
.hpc[data-stage="1"] .hpc-rad { opacity: .3; }
.hpc[data-stage="2"] .hpc-loss { opacity: 1; animation: flow 1.4s linear infinite; }
.hpc[data-stage="3"] .hpc-boiler, .hpc[data-stage="4"] .hpc-boiler { opacity: 0; transform: translateY(30px); }
.hpc[data-stage="3"] .hpc-pump, .hpc[data-stage="4"] .hpc-pump, .hpc[data-stage="3"] .hpc-cyl, .hpc[data-stage="4"] .hpc-cyl { opacity: 1; }
.hpc[data-stage="4"] .hpc-pipes { opacity: 1; }
.hpc[data-stage="4"] .hpc-rad { opacity: .45; animation: warm 3s ease-in-out infinite; }
@media (max-width: 900px) {
  .hpc { height: auto; }
  .hpc__stick { position: relative; height: auto; grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 32px); }
  .hpc__copy, .hpc__scene { grid-column: 1 / -1; }
  .hpc__steps { min-height: 0; display: grid; gap: 28px; }
  .hpc__steps li { position: static; opacity: 1; transform: none; }
  .hpc .hpc-pump, .hpc .hpc-cyl, .hpc .hpc-pipes { opacity: 1; } .hpc .hpc-boiler { opacity: 0; }
}
.hp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line-dark); padding-top: 32px; }
.hp-stats div { display: flex; flex-direction: column; gap: 10px; }
.hp-stats strong { font-size: clamp(40px, 4.6vw, 68px); letter-spacing: -0.05em; line-height: 1; color: var(--green-bright); }
.hp-stats span { color: rgba(244,245,243,0.75); font-size: 15.5px; max-width: 260px; }
@media (max-width: 900px) { .hp-stats { grid-template-columns: 1fr 1fr; } }
.review-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 24px 28px; border: 1px solid var(--line-light); border-radius: 14px; background: var(--white); }
.review-cta p { font-size: 18px; color: #2c2f2b; }
.footer__review { margin-top: 10px; align-self: flex-start; color: var(--green-bright) !important; border: 1px solid rgba(60,203,148,0.4); border-radius: 999px; padding: 8px 14px; font-size: 14px; transition: background-color .3s, color .3s; }
.footer__review:hover { background: var(--green-bright); color: var(--ink) !important; }
