/* ==========================================================================
   R & S Energy: public website
   "Solar Day": dawn hero, daylight story, dusk close. See docs/FRONTEND_DESIGN.md.
   Public pages only; the portal and admin keep base/components/admin/portal.css.
   ========================================================================== */

/* ---------- Fonts (self-hosted, CSP-safe) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink-950: #060c16;
  --ink-900: #0b1729;
  --ink-800: #13243b;
  --ink-700: #1c3150;
  --ink-600: #2c4262;
  --cell-500: #2d5fa8;
  --cell-900: #102648;
  --sun-500: #f59a1b;
  --sun-400: #f8ae45;
  --sun-300: #ffc56e;
  --ember-600: #d9541a;
  --stone-50: #f6f3ee;
  --stone-100: #ece6dc;
  --stone-200: #e2dacd;
  --stone-300: #cfc6b8;
  --stone-600: #6e675c;
  --graphite: #1a1c1f;
  --on-dark: #f2eee6;
  --on-dark-muted: #a9b1be;
  --line-light: #d6cdbf;
  --line-dark: rgba(236, 230, 220, 0.14);
  --danger: #b42318;
  --success: #1d7a4f;

  --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --container: 1360px;
  --section-y: clamp(88px, 11vw, 168px);
  --header-h: 76px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
  --t-ui: 180ms;
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--graphite);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-menu-open { overflow: hidden; }

img,
video,
svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p, li, dt, dd, h1, h2, h3, blockquote, figcaption { overflow-wrap: break-word; }

::selection { background: var(--sun-300); color: var(--ink-950); }

:focus-visible {
  outline: 2px solid var(--sun-500);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--sun-500);
  color: var(--ink-950);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--t-ui) var(--ease-ui);
}
.skip-link:focus { transform: none; }

main { display: block; }

.wrap {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* ---------- Type ---------- */
.h-display,
.h-section,
.h-sub,
.hero__title,
.pagehead__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(34px, 4.6vw, 68px);
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.028em;
  max-width: 16ch;
}

.h-sub {
  font-size: clamp(22px, 2.2vw, 30px);
  font-stretch: 106%;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  font-stretch: 88%;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--stone-600);
}

.label--sun { color: var(--sun-400); }

.label__index {
  display: inline-block;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid currentColor;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--stone-600);
  max-width: 54ch;
  text-wrap: pretty;
}

.sun-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sun-500);
  box-shadow: 0 0 0 4px rgba(245, 154, 27, 0.18);
  vertical-align: 1px;
}

/* ---------- Buttons & links ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
  transition:
    background-color var(--t-ui) var(--ease-ui),
    border-color var(--t-ui) var(--ease-ui),
    color var(--t-ui) var(--ease-ui),
    transform 120ms var(--ease-ui);
}

.btn .icon { flex: none; transition: transform 240ms var(--ease-out); }
.btn:active { transform: scale(0.98); }

.btn--sm { --btn-h: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --btn-h: 58px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--sun { background: var(--sun-500); color: var(--ink-950); }
.btn--line { border-color: var(--graphite); color: var(--graphite); }
.btn--line-light { border-color: rgba(242, 238, 230, 0.36); color: var(--on-dark); }

@media (hover: hover) {
  .btn:hover .icon:last-child { transform: translateX(4px); }
  .btn--sun:hover { background: var(--sun-300); }
  .btn--line:hover { background: var(--graphite); color: var(--stone-50); }
  .btn--line-light:hover { border-color: var(--on-dark); background: rgba(242, 238, 230, 0.06); }
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
}

.link .icon { transition: transform 240ms var(--ease-out); }

@media (hover: hover) {
  .link { background-image: linear-gradient(var(--sun-500), var(--sun-500)), linear-gradient(currentColor, currentColor); background-size: 0 2px, 100% 1px; background-position: 0 100%, 0 100%; transition: background-size 320ms var(--ease-out); }
  .link:hover { background-size: 100% 2px, 100% 1px; }
  .link:hover .icon { transform: translateX(3px); }
}

.link--light { color: var(--on-dark); }

/* ---------- Header ---------- */
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition: transform 280ms var(--ease-out), background-color 240ms var(--ease-ui), border-color 240ms var(--ease-ui);
  border-bottom: 1px solid transparent;
}

.masthead.is-solid {
  background: rgba(6, 12, 22, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line-dark);
}

.masthead.is-hidden { transform: translateY(-100%); }

.masthead__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 105%;
  font-size: 16px;
  letter-spacing: -0.005em;
}

.masthead__brand img {
  width: 40px; height: 40px;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--stone-50);
  object-fit: contain;
}

.masthead__brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.masthead__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.masthead__nav a {
  position: relative;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(242, 238, 230, 0.78);
  transition: color var(--t-ui) var(--ease-ui);
}

.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px;
  background: var(--sun-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}

.masthead__nav a[aria-current="page"] { color: var(--on-dark); }
.masthead__nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (hover: hover) {
  .masthead__nav a:hover { color: var(--on-dark); }
  .masthead__nav a:hover::after { transform: scaleX(1); }
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.masthead__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: rgba(242, 238, 230, 0.86);
  white-space: nowrap;
}

.masthead__toggle {
  display: none;
  width: 48px; height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
}

.masthead__toggle-lines {
  position: relative;
  display: block;
  width: 24px; height: 10px;
  margin: auto;
}

.masthead__toggle-lines span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 320ms var(--ease-out);
}
.masthead__toggle-lines span:first-child { top: 0; }
.masthead__toggle-lines span:last-child { bottom: 0; }

.masthead__toggle[aria-expanded="true"] .masthead__toggle-lines span:first-child { transform: translateY(4.25px) rotate(45deg); }
.masthead__toggle[aria-expanded="true"] .masthead__toggle-lines span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 1199px) {
  .masthead__phone { display: none; }
}

@media (max-width: 999px) {
  .masthead__nav { display: none; }
  .masthead__actions { margin-left: auto; }
  .masthead__toggle { display: block; }
}

@media (max-width: 599px) {
  .masthead__cta { display: none; }
  .masthead__brand { font-size: 15px; }
  .masthead__brand img { width: 36px; height: 36px; }
}

/* Full-screen menu (small screens) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) 0 calc(24px + env(safe-area-inset-bottom));
  background: var(--ink-950);
  color: var(--on-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 280ms var(--ease-ui);
}

.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }

.menu__nav { display: flex; flex-direction: column; }

.menu__nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 280ms var(--ease-out), transform 360ms var(--ease-out), color var(--t-ui);
}

.menu__nav a[aria-current="page"] { color: var(--sun-400); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 30ms; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 60ms; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 90ms; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: 120ms; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: 150ms; }

.menu__foot { display: grid; gap: 12px; margin-top: 40px; }

/* ---------- Flash messages ---------- */
.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: var(--gutter);
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100% - var(--gutter) * 2));
}

.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 16px 20px;
  border-left: 3px solid var(--success);
  background: var(--ink-900);
  color: var(--on-dark);
  box-shadow: 0 18px 40px rgba(6, 12, 22, 0.3);
  animation: flash-in 420ms var(--ease-out) both;
}

.flash.error { border-left-color: #f0605a; }
.flash button { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--on-dark-muted); padding: 0 4px; }
.flash-dismiss { opacity: 0; transform: translateY(-6px); transition: opacity 220ms, transform 220ms; }

@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 88px) var(--section-y); }
.section--stone { background: var(--stone-50); }
.section--sand { background: var(--stone-100); }
.section--ink { background: var(--ink-900); color: var(--on-dark); }
.section--night { background: var(--ink-950); color: var(--on-dark); }
.section--dusk { background: var(--ink-900); color: var(--on-dark); overflow: hidden; }

.section--ink .lede,
.section--night .lede,
.section--dusk .lede { color: var(--on-dark-muted); }

.section--ink .label:not(.label--sun),
.section--night .label:not(.label--sun),
.section--dusk .label:not(.label--sun) { color: var(--on-dark-muted); }

/* Two stone sections in a row read as one daylight run: a hairline, not a seam. */
.section--stone + .section--stone { padding-top: 0; }
.section--stone + .section--stone > .wrap { border-top: 1px solid var(--line-light); padding-top: calc(var(--section-y) * 0.8); }

.section__head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }

.section__head--split {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px 48px;
}

.section__head--split > div { display: grid; gap: 20px; }

@media (max-width: 799px) {
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
  .section__head--split > .btn { justify-self: start; }
}

.empty {
  padding: 32px;
  border: 1px dashed var(--line-light);
  color: var(--stone-600);
}

.empty--dark { border-color: var(--line-dark); color: var(--on-dark-muted); }

.empty--feature { display: grid; gap: 12px; max-width: 640px; padding: 40px; }

/* ---------- Media ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--ink-800);
}

.media > img,
.media > video,
.media > .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder__sky { fill: var(--ink-800); }
.placeholder__arc { fill: none; stroke: rgba(242, 238, 230, 0.22); stroke-width: 1.25; stroke-dasharray: 2 6; }
.placeholder__travel { fill: none; stroke: var(--sun-500); stroke-width: 1.5; stroke-dasharray: 180; stroke-dashoffset: 135; }
.placeholder__glow { fill: var(--sun-500); opacity: 0.16; }
.placeholder__sun { fill: var(--sun-300); }
.placeholder__ground { stroke: rgba(242, 238, 230, 0.25); stroke-width: 1; }

/* ==========================================================================
   HERO: dawn
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  background: var(--ink-950);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 60% at 12% 100%, rgba(217, 84, 26, 0.32), transparent 60%),
    radial-gradient(70% 55% at 30% 100%, rgba(245, 154, 27, 0.18), transparent 70%),
    linear-gradient(180deg, var(--ink-950) 0%, #0a1527 55%, #13213a 100%);
  animation: sky-wake 2600ms var(--ease-out) both;
}

@keyframes sky-wake {
  from { opacity: 0.35; }
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: photo-settle 2400ms var(--ease-out) both;
}

.hero--photo .hero__sky {
  background:
    linear-gradient(90deg, rgba(6, 12, 22, 0.92) 0%, rgba(6, 12, 22, 0.72) 42%, rgba(6, 12, 22, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 12, 22, 0.85) 0%, transparent 38%);
}

@keyframes photo-settle {
  from { transform: scale(1.06); opacity: 0; }
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 0 24px;
  padding-top: clamp(24px, 4vh, 56px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 7;
  grid-row: 1;
  align-self: center;
  padding-bottom: clamp(24px, 5vh, 64px);
}

.hero__kicker { margin-bottom: 28px; animation: rise 900ms var(--ease-out) 100ms both; }

.hero__title {
  font-size: clamp(38px, 5.4vw, 92px);
  font-stretch: 122%;
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}

.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; animation: line-rise 1100ms var(--ease-out) both; }
.hero__title .line:nth-child(1) > span { animation-delay: 160ms; }
.hero__title .line:nth-child(2) > span { animation-delay: 260ms; }
.hero__title .line:nth-child(3) > span { animation-delay: 360ms; }
.hero__title em { font-style: normal; color: var(--sun-500); }

@keyframes line-rise {
  from { transform: translateY(105%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

.hero__lede {
  max-width: 44ch;
  margin-bottom: 40px;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--on-dark-muted);
  animation: rise 900ms var(--ease-out) 560ms both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 900ms var(--ease-out) 700ms both;
}

.hero__actions .btn--line-light { font-variant-numeric: tabular-nums; }

.hero__scene {
  position: relative;
  z-index: 1;
  grid-column: 6 / -1;
  grid-row: 1;
  margin-right: calc(var(--gutter) * -1);
  pointer-events: none;
}

.hero--photo .hero__scene { display: none; }

.hero__caption {
  position: absolute;
  right: var(--gutter);
  top: 10%;
  color: rgba(242, 238, 230, 0.4);
  animation: rise 900ms var(--ease-out) 1600ms both;
}

.hero__stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(6, 12, 22, 0.2), rgba(6, 12, 22, 0.6));
}

.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr));
}

.stat {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 24px 24px 28px;
  border-left: 1px solid var(--line-dark);
  animation: rise 900ms var(--ease-out) both;
}

.stat:first-child { border-left: 0; padding-left: 0; }
.stat:nth-child(1) { animation-delay: 900ms; }
.stat:nth-child(2) { animation-delay: 980ms; }
.stat:nth-child(3) { animation-delay: 1060ms; }
.stat:nth-child(4) { animation-delay: 1140ms; }

.stat .label { color: var(--on-dark-muted); }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 36px);
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ----- Hero scene (inline SVG) ----- */
.scene { width: 100%; height: auto; overflow: visible; }

.scene__arc { fill: none; stroke: rgba(242, 238, 230, 0.26); stroke-width: 1; stroke-dasharray: 2 7; animation: fade-in 1400ms var(--ease-out) both; }
.scene__tick { stroke: rgba(242, 238, 230, 0.22); stroke-width: 1; }
.scene__tick.is-major { stroke: rgba(242, 238, 230, 0.45); }
.scene__hour { fill: rgba(242, 238, 230, 0.42); font-family: var(--font-display); font-size: 11px; font-stretch: 88%; font-weight: 600; letter-spacing: 0.1em; }
.scene__path { animation: fade-in 1400ms var(--ease-out) 100ms both; }

.scene__travel {
  fill: none;
  stroke: var(--sun-500);
  stroke-width: 1.5;
  stroke-dasharray: 180;
  stroke-dashoffset: 128;
  animation: travel 2600ms var(--ease-out) 200ms both;
}

.scene__sun {
  transform-box: view-box;
  transform-origin: 400px 500px;
  transform: rotate(52deg);
  animation: sunrise 2600ms var(--ease-out) 200ms both;
}

.scene__sun-disc { fill: var(--sun-300); }

@keyframes travel { from { stroke-dashoffset: 180; } }
@keyframes sunrise { from { transform: rotate(0deg); } }
@keyframes fade-in { from { opacity: 0; } }

.scene__skyline { fill: none; stroke: rgba(242, 238, 230, 0.12); stroke-width: 1; }

.scene__wall { fill: #0e1c31; }
.scene__roof { fill: #0f2140; }

.scene__house rect[fill^="url"] { animation: fade-in 1600ms var(--ease-out) 1300ms both; }

.scene__line {
  fill: none;
  stroke: rgba(242, 238, 230, 0.72);
  stroke-width: 1.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 1600ms var(--ease-out) 300ms both;
}

.scene__line--fine { stroke: rgba(242, 238, 230, 0.4); stroke-width: 1; animation-delay: 700ms; }
.scene__line--pole { stroke: rgba(242, 238, 230, 0.4); stroke-width: 1; animation-delay: 1000ms; }

@keyframes draw { from { stroke-dashoffset: 1; } }

.scene__house .scene__wall,
.scene__house .scene__roof { animation: fade-in 1200ms var(--ease-out) 500ms both; }

.scene__array { animation: fade-in 900ms var(--ease-out) 900ms both; }
.scene__panel { stroke: rgba(242, 238, 230, 0.12); stroke-width: 0.5; }

.scene__catch polygon {
  opacity: 0.85;
  animation: catch-light 1400ms var(--ease-out) both;
  animation-delay: calc(1200ms + var(--i) * 70ms);
}

@keyframes catch-light {
  0% { opacity: 0; }
  45% { opacity: 1; }
}

.scene__glint {
  transform-box: view-box;
  transform: translateX(-160px) skewX(-18deg);
  animation: glint 9s linear 3.6s infinite;
}

@keyframes glint {
  0% { transform: translateX(-160px) skewX(-18deg); }
  16%, 100% { transform: translateX(460px) skewX(-18deg); }
}

.scene__wire { fill: none; stroke: rgba(242, 238, 230, 0.2); stroke-width: 1.25; }

.scene__flow {
  fill: none;
  stroke: var(--sun-400);
  stroke-width: 1.5;
  stroke-dasharray: 3 14;
  animation: fade-in 600ms 2000ms both, flow 1.6s linear 2000ms infinite;
}

.scene__flow--late { animation-delay: 2200ms, 2200ms; }

@keyframes flow { to { stroke-dashoffset: -34; } }

.scene__inverter { fill: #13243b; stroke: rgba(242, 238, 230, 0.5); stroke-width: 1; }
.scene__led { fill: var(--sun-400); animation: fade-in 400ms 2000ms both, pulse 2.4s ease-in-out 2400ms infinite; }

@keyframes pulse { 50% { opacity: 0.3; } }

.scene__ground { stroke: rgba(242, 238, 230, 0.32); stroke-width: 1; }

/* Ambient motion rests when the hero is off-screen. */
.hero.is-offscreen .scene__glint,
.hero.is-offscreen .scene__flow,
.hero.is-offscreen .scene__led { animation-play-state: paused; }

/* Hero, smaller screens */
@media (max-width: 999px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-top: clamp(40px, 8vh, 72px); }
  .hero__copy { grid-column: 1; padding-bottom: 8px; }
  .hero__scene { grid-column: 1; grid-row: 2; margin: 0 calc(var(--gutter) * -1) 0 calc(var(--gutter) * -0.5); }
  .hero__caption { top: auto; bottom: 18%; right: var(--gutter); }
  .hero--photo { min-height: 88svh; }
  .hero--photo .hero__copy { padding-bottom: 48px; }
  .hero--photo .hero__sky { background: linear-gradient(0deg, rgba(6, 12, 22, 0.95) 10%, rgba(6, 12, 22, 0.55) 70%, rgba(6, 12, 22, 0.35) 100%); }
}

@media (max-width: 799px) {
  .hero__stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 16px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
}

@media (max-width: 599px) {
  .hero__actions .btn { width: 100%; }
  .hero__caption { display: none; }
}

/* ---------- Offers ---------- */
.offers { background: var(--stone-100); border-bottom: 1px solid var(--line-light); }

.offer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 40px;
  padding-block: 28px;
}

.offer + .offer { border-top: 1px solid var(--line-light); }

.offer__badge {
  justify-self: start;
  padding: 6px 10px;
  background: var(--ink-900);
  color: var(--sun-300);
}

.offer__copy { display: grid; gap: 4px; }
.offer__copy p { color: var(--stone-600); max-width: 70ch; }

.offer__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.offer--image { grid-template-columns: 180px minmax(0, 1fr) auto 200px; }
.offer__media { aspect-ratio: 4 / 3; }

@media (max-width: 899px) {
  .offer,
  .offer--image { grid-template-columns: 1fr; align-items: start; }
  .offer__media { grid-row: 1; max-width: 420px; }
}

/* ---------- 01 Case in numbers ---------- */
.case__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 56px 24px;
}

.case__intro { grid-column: 1 / span 6; display: grid; gap: 24px; align-content: start; }
.case__figure { grid-column: 8 / -1; grid-row: 1 / span 2; align-self: start; display: grid; gap: 8px; }
.case__loan { grid-column: 1 / span 5; display: grid; gap: 14px; align-content: start; padding-top: 28px; border-top: 1px solid var(--line-light); }

.case__amount {
  font-family: var(--font-display);
  font-size: clamp(64px, 9.5vw, 156px);
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 36px;
  white-space: nowrap;
}

.case__loan-text { font-size: 19px; line-height: 1.5; max-width: 40ch; }
.case__loan-text strong { font-weight: 600; }

.case__note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--stone-600);
  max-width: 80ch;
}

.slabs { display: grid; gap: 0; border-top: 1px solid var(--graphite); }

.slab {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr) 6.5em;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}

.slab__capacity { font-weight: 500; }

.slab__bar { height: 10px; background: var(--stone-200); }

.slab__bar span {
  display: block;
  height: 100%;
  width: calc(var(--share) * 1%);
  background: var(--graphite);
  transform-origin: left;
}

.slab:last-child .slab__bar span { background: var(--sun-500); }

.slab__amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 108%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.js .case__figure:not(.is-in) .slab__bar span { transform: scaleX(0); }
.case__figure .slab__bar span { transition: transform 1100ms var(--ease-out); transition-delay: calc(400ms + var(--i) * 140ms); }

@media (max-width: 999px) {
  .case__intro, .case__figure, .case__loan { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 599px) {
  .slab { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .slab__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- 02 Company ---------- */
.company__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.company__head .h-section { max-width: 20ch; }

.company__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
  margin-bottom: clamp(56px, 7vw, 104px);
}

.company__body .ticks { grid-column: 1 / span 4; grid-row: 1; align-self: start; padding-top: 6px; }
.company__body .lede { grid-column: 6 / -1; grid-row: 1; max-width: 40ch; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; color: var(--graphite); }

.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { flex: none; margin-top: 3px; color: var(--sun-500); stroke-width: 2; }

.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}

.reason {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--graphite);
}

.reason__index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--stone-600);
}

.reason__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.reason p { color: var(--stone-600); max-width: 36ch; }

.brands {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px 24px;
  align-items: baseline;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
}

.brands__names {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brands__sep { color: var(--sun-500); font-weight: 300; }

@media (max-width: 999px) {
  .company__body .lede, .company__body .ticks { grid-column: 1 / -1; grid-row: auto; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .reasons { grid-template-columns: 1fr; }
  .reason { padding-bottom: 28px; }
  .brands { grid-template-columns: 1fr; }
}

/* ---------- 03 Scales ---------- */
.scale-list { border-top: 1px solid var(--graphite); }

.scale {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 5fr) minmax(0, 4fr) auto;
  align-items: center;
  gap: 24px 32px;
  padding: clamp(28px, 3.4vw, 48px) 0;
  border-bottom: 1px solid var(--line-light);
}

.scale__index {
  align-self: start;
  padding-top: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--stone-600);
}

.scale__copy { display: grid; gap: 10px; }
.scale__copy > p:last-child { color: var(--stone-600); max-width: 46ch; }

.scale__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 600;
  font-stretch: 116%;
  letter-spacing: -0.035em;
  line-height: 1;
}

.scale__drawing { color: var(--graphite); }

.elevation { width: 100%; max-width: 360px; margin-inline: auto; overflow: visible; }

.elevation__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1600ms var(--ease-out);
}

.elevation__panel {
  fill: var(--cell-500);
  transition: fill 600ms var(--ease-out), opacity 600ms var(--ease-out);
  transition-delay: calc(900ms + var(--i) * 90ms);
}

.js .scale:not(.is-in) .elevation__line { stroke-dashoffset: 1; }
.js .scale:not(.is-in) .elevation__panel { opacity: 0; }

@media (hover: hover) {
  .scale:hover .elevation__panel { fill: var(--sun-500); transition-delay: calc(var(--i) * 60ms); }
}

@media (max-width: 899px) {
  .scale { grid-template-columns: 40px minmax(0, 1fr); }
  .scale__drawing { grid-column: 2; max-width: 300px; margin-inline: 0; }
  .scale__link { grid-column: 2; justify-self: start; }
}

/* ---------- 04 Process ---------- */
.process .section__head--split .lede { max-width: 38ch; }

.timeline { position: relative; }

.timeline__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.timeline__rail {
  position: absolute;
  top: 7px;
  left: 0; right: 0;
  height: 1px;
  background: var(--line-dark);
}

.timeline__fill {
  position: absolute;
  inset: 0;
  background: var(--sun-500);
  transform: scaleX(var(--progress, 1));
  transform-origin: left;
}

.js .timeline__fill { --progress: 0; }

.timeline__step { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 44px; }

.timeline__node {
  position: absolute;
  top: 0; left: 0;
  width: 15px; height: 15px;
  border: 1px solid rgba(242, 238, 230, 0.4);
  border-radius: 50%;
  background: var(--ink-900);
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

.timeline__step.is-lit .timeline__node {
  background: var(--sun-500);
  border-color: var(--sun-500);
  box-shadow: 0 0 0 6px rgba(245, 154, 27, 0.16);
}

.timeline__index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sun-400);
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.timeline__step p { color: var(--on-dark-muted); font-size: 16px; }

.process__after {
  display: flex;
  align-items: baseline;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark);
  font-size: 18px;
}

@media (max-width: 999px) {
  .timeline__steps { grid-template-columns: 1fr; gap: 0; }
  .timeline__rail { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .timeline__fill { transform: scaleY(var(--progress, 1)); transform-origin: top; }
  .timeline__step { padding: 0 0 36px 48px; }
  .timeline__step:last-child { padding-bottom: 0; }
}

/* ---------- 05 Hardware ---------- */
.rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid var(--line-light);
  background: #fbf9f6;
  cursor: pointer;
  transition: border-color 240ms var(--ease-ui), transform 160ms var(--ease-out);
}

.sheet__media { aspect-ratio: 4 / 3; }
.sheet__media > img,
.sheet__media > video { transition: transform 900ms var(--ease-out); }

.sheet__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 22px 22px 20px;
}

.sheet__body > .label:first-child { grid-row: 1; }

.sheet__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sheet__desc { color: var(--stone-600); font-size: 15.5px; overflow-wrap: anywhere; }

.sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.sheet__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 106%;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sheet__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--stone-600);
  transition: color var(--t-ui);
}

.sheet__more .icon { transition: transform 240ms var(--ease-out); }

@media (hover: hover) {
  .sheet:hover { border-color: var(--graphite); }
  .sheet:hover .sheet__media > img,
  .sheet:hover .sheet__media > video { transform: scale(1.04); }
  .sheet:hover .sheet__more { color: var(--graphite); }
  .sheet:hover .sheet__more .icon { transform: translateX(3px); }
}

.sheet:active { transform: scale(0.995); }

.spec-rows { display: grid; }

.spec-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--stone-300);
}

.spec-rows > div:first-child { border-top: 1px dotted var(--stone-300); }

.spec-rows dt { color: var(--stone-600); font-size: 15px; }
.spec-rows dt small { display: block; font-size: 13px; }

.spec-rows dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.spec-rows--compact > div { padding: 7px 0; }
.spec-rows--compact dt,
.spec-rows--compact dd { font-size: 14px; }

@media (max-width: 999px) {
  .rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 72%);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail__item { scroll-snap-align: start; }
}

@media (min-width: 600px) and (max-width: 999px) {
  .rail { grid-auto-columns: minmax(300px, 44%); }
}

/* Packages as a price table */
.packs { margin-top: clamp(64px, 8vw, 112px); }

.packs__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.pack-list { border-top: 1px solid var(--graphite); }

.pack {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 150px 150px 40px;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
  cursor: pointer;
}

.pack__media { aspect-ratio: 4 / 3; }

.pack__main { display: grid; gap: 4px; }
.pack__main p { color: var(--stone-600); font-size: 15.5px; }

.pack__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.pack__price {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  font-stretch: 108%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pack__go {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-light);
  transition: background-color var(--t-ui), border-color var(--t-ui), color var(--t-ui);
}

@media (hover: hover) {
  .pack:hover .pack__go { background: var(--sun-500); border-color: var(--sun-500); color: var(--ink-950); }
  .pack:hover .pack__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}

@media (max-width: 799px) {
  .pack { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 16px; }
  .pack__media { grid-row: 1 / span 2; align-self: start; }
  .pack__count { grid-column: 2; grid-row: 2; }
  .pack__price { grid-column: 2; grid-row: 3; text-align: left; font-size: 18px; }
  .pack__go { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
  .pack__main p { display: none; }
}

/* ---------- 06 Work ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, 26vw);
  gap: 16px;
}

.mosaic--1 .project { grid-column: 1 / -1; grid-row: span 2; }
.mosaic--2 .project { grid-column: span 6; grid-row: span 2; }
.mosaic--3 .project:first-child { grid-column: 1 / span 7; grid-row: span 2; }
.mosaic--3 .project:not(:first-child) { grid-column: 8 / -1; }
.mosaic--4 .project:first-child { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.mosaic--4 .project:nth-child(2) { grid-column: 7 / -1; grid-row: 1; }
.mosaic--4 .project:nth-child(3) { grid-column: 7 / span 3; grid-row: 2; }
.mosaic--4 .project:nth-child(4) { grid-column: 10 / -1; grid-row: 2; }

.mosaic { max-height: none; }
.mosaic--1 { grid-auto-rows: minmax(220px, 22vw); }

.project {
  position: relative;
  display: block;
  container-type: inline-size;
  min-height: 0;
  overflow: hidden;
  color: var(--on-dark);
  cursor: pointer;
  isolation: isolate;
}

.project__media { position: absolute; inset: 0; z-index: -1; }
.project__media > img,
.project__media > video { transition: transform 1200ms var(--ease-out); }

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(6, 12, 22, 0.88) 0%, rgba(6, 12, 22, 0.25) 45%, transparent 70%);
  pointer-events: none;
}

.project__caption {
  position: absolute;
  left: 0; right: 56px; bottom: 0;
  display: grid;
  gap: 6px;
  padding: clamp(16px, 2vw, 28px);
}

.project__caption .label { color: rgba(242, 238, 230, 0.75); }
.project__type { text-transform: capitalize; }

.project__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 6.4cqi, 28px);
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: -0.015em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.project__capacity {
  justify-self: start;
  padding: 3px 8px;
  background: var(--sun-500);
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.project__go {
  position: absolute;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 28px);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(242, 238, 230, 0.4);
  transition: background-color var(--t-ui), color var(--t-ui), border-color var(--t-ui);
}

@media (hover: hover) {
  .project:hover .project__media > img,
  .project:hover .project__media > video { transform: scale(1.04); }
  .project:hover .project__go { background: var(--sun-500); border-color: var(--sun-500); color: var(--ink-950); }
}

@media (min-width: 800px) and (max-width: 999px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .mosaic .project { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 3; }
  .mosaic .project:first-child,
  .mosaic .project:last-child:nth-child(even) { grid-column: 1 / -1 !important; aspect-ratio: 16 / 9; }
}

@media (max-width: 799px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mosaic .project { grid-column: 1 / -1 !important; grid-row: auto !important; aspect-ratio: 4 / 3; }
  .mosaic .project:first-child { aspect-ratio: 4 / 5; }
}

/* Portfolio page grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}

.project-grid .project { aspect-ratio: 4 / 5; }
.project-grid .project[hidden] { display: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: none;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-weight: 500;
  transition: background-color var(--t-ui), color var(--t-ui), border-color var(--t-ui);
}

.chip span { font-variant-numeric: tabular-nums; opacity: 0.6; }
.chip[aria-pressed="true"] { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink-950); }

@media (hover: hover) {
  .chip:hover:not([aria-pressed="true"]) { border-color: rgba(242, 238, 230, 0.5); color: var(--on-dark); }
}

/* ---------- 07 Voices ---------- */
.voices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-light);
}

.voices__grid:has(.rating) { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); }
.quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.quote__text { max-width: 26ch; }

.quote__text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 50px);
  font-weight: 500;
  font-stretch: 106%;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.quote__text::before {
  content: "\201C";
  position: absolute;
  left: -0.52em;
  top: -0.08em;
  color: var(--sun-500);
}

.quote__by { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.quote__by strong { font-weight: 600; }
.quote__by span { color: var(--stone-600); }

.rating { display: grid; gap: 8px; justify-items: start; }

.rating__value {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.rating__value small { margin-left: 8px; font-size: 0.32em; letter-spacing: 0; color: var(--stone-600); }

.stars { display: flex; gap: 2px; color: var(--stone-300); font-size: 16px; letter-spacing: 0; }
.stars .is-on { color: var(--sun-500); }

.voice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.voice {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-light);
}

.voice__text { font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.voice__by { color: var(--stone-600); font-size: 15px; }
.voice__by strong { color: var(--graphite); font-weight: 600; }

@media (max-width: 899px) {
  .voices__grid,
  .voices__grid:has(.rating) { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .quote__text::before { position: static; display: block; margin-bottom: -0.2em; }
  .voice-list { grid-template-columns: 1fr; }
}

/* ---------- 08 FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.faq__head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
.faq__call { color: var(--stone-600); }

.accordion { border-top: 1px solid var(--graphite); }

.qa { border-bottom: 1px solid var(--line-light); }

.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -0.008em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.qa__icon { flex: none; transition: transform 320ms var(--ease-out); }
details[open] > summary .qa__icon { transform: rotate(45deg); }

.qa__answer { padding: 0 48px 28px 0; color: var(--stone-600); }
.qa__answer p { max-width: 64ch; }

details[open] > .qa__answer,
details[open] > .role__body { animation: rise 300ms var(--ease-out); }

@media (hover: hover) {
  .qa summary:hover .qa__icon { color: var(--sun-500); }
}

@media (max-width: 899px) {
  .faq__grid { grid-template-columns: 1fr; gap: 32px; }
  .faq__head { position: static; }
  .qa__answer { padding-right: 0; }
}

/* ---------- 09 Contact (dusk) ---------- */
.contact__glow {
  position: absolute;
  inset: auto 0 0;
  height: 70%;
  background:
    radial-gradient(70% 70% at 88% 100%, rgba(217, 84, 26, 0.28), transparent 70%),
    radial-gradient(50% 55% at 70% 100%, rgba(245, 154, 27, 0.14), transparent 70%);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.contact__info { display: grid; gap: 24px; }
.contact__info .h-section { max-width: 12ch; }

.reach { display: grid; margin-top: 16px; border-top: 1px solid var(--line-dark); }

.reach > li { border-bottom: 1px solid var(--line-dark); }

.reach__phone {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-ui);
}

@media (hover: hover) {
  .reach__phone:hover { color: var(--sun-300); }
  a.reach__row:hover { color: var(--on-dark); }
}

.reach__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 56px;
  padding: 16px 0;
  color: var(--on-dark-muted);
  overflow-wrap: anywhere;
  transition: color var(--t-ui);
}

.reach__icon { flex: none; color: var(--sun-400); padding-top: 2px; }

.office {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.office__item { aspect-ratio: 4 / 3; }

.contact__map {
  width: 100%;
  height: 260px;
  border: 0;
  filter: grayscale(0.6) contrast(1.05);
}

/* The form: a daylight panel inside the dusk section. */
.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.4vw, 48px);
  background: var(--stone-50);
  color: var(--graphite);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form__interest {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: var(--stone-100);
  border-left: 3px solid var(--sun-500);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.field { display: grid; gap: 8px; }

.field__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  font-stretch: 92%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--t-ui), box-shadow var(--t-ui);
}

.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9b9387; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--graphite);
  box-shadow: 0 0 0 3px rgba(245, 154, 27, 0.35);
}

.field .is-invalid { border-color: var(--danger); }

.field-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--stone-600);
  cursor: pointer;
}

.consent input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink-900);
}

.consent .field-error { grid-column: 1 / -1; }

.cf-turnstile { min-height: 65px; }

@media (max-width: 999px) {
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .form__row { grid-template-columns: 1fr; }
  .form { margin-inline: calc(var(--gutter) * -1); }
}

/* ---------- Mobile quick actions ---------- */
.quickbar { display: none; }

@media (max-width: 799px) {
  .quickbar {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1px;
    overflow: hidden;
    background: var(--line-dark);
    box-shadow: 0 16px 40px rgba(6, 12, 22, 0.35);
    transform: translateY(calc(100% + 24px));
    transition: transform 420ms var(--ease-out);
  }

  .quickbar.is-shown { transform: none; }

  .quickbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    background: var(--ink-900);
    color: var(--on-dark);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
  }

  .quickbar .quickbar__primary { background: var(--sun-500); color: var(--ink-950); }
}

/* ---------- Footer (night) ---------- */
.colophon {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 120px);
  background: var(--ink-950);
  color: var(--on-dark);
}

.colophon__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 40px 24px;
}

.colophon__brand { display: grid; gap: 20px; justify-items: start; align-content: start; }
.colophon__tagline { color: var(--on-dark-muted); max-width: 32ch; }

.colophon .label { margin-bottom: 16px; color: var(--on-dark-muted); }

.colophon__list { display: grid; gap: 4px; list-style: none; padding: 0; }
.colophon__list a { display: inline-block; padding: 4px 0; color: rgba(242, 238, 230, 0.86); transition: color var(--t-ui); overflow-wrap: anywhere; }
.colophon__address { color: var(--on-dark-muted); padding: 4px 0; max-width: 28ch; }

@media (hover: hover) {
  .colophon__list a:hover { color: var(--sun-300); }
}

.colophon__social { display: flex; flex-wrap: wrap; gap: 8px; }

.colophon__social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  transition: border-color var(--t-ui), color var(--t-ui);
}

.colophon__social svg { width: 18px; height: 18px; fill: currentColor; }

@media (hover: hover) {
  .colophon__social a:hover { border-color: var(--sun-500); color: var(--sun-300); }
}

.colophon__mark {
  margin: clamp(56px, 7vw, 104px) 0 0;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(56px, 12.2vw, 220px);
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -0.055em;
  line-height: 0.78;
  white-space: nowrap;
  color: var(--ink-800);
  text-align: center;
  user-select: none;
}

.colophon__mark span { color: var(--ink-700); }

.colophon__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: var(--on-dark-muted);
}

@media (max-width: 899px) {
  .colophon__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon__brand { grid-column: 1 / -1; }
}

@media (max-width: 799px) {
  .colophon__base { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ---------- Inner page header ---------- */
.pagehead {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 128px)) 0 clamp(48px, 6vw, 88px);
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(217, 84, 26, 0.2), transparent 70%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
  color: var(--on-dark);
  isolation: isolate;
}

.pagehead__arc {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(48%, 680px);
  height: auto;
  overflow: visible;
}

.pagehead__path { fill: none; stroke: rgba(242, 238, 230, 0.2); stroke-width: 1; stroke-dasharray: 2 7; }

.pagehead__travel {
  fill: none;
  stroke: var(--sun-500);
  stroke-width: 1.5;
  stroke-dasharray: 180;
  stroke-dashoffset: 52;
  animation: pagehead-travel 1800ms var(--ease-out) 150ms both;
}

.pagehead__sun {
  transform-box: view-box;
  transform-origin: 400px 400px;
  transform: rotate(128deg);
  animation: pagehead-sun 1800ms var(--ease-out) 150ms both;
}

@keyframes pagehead-travel { from { stroke-dashoffset: 180; } }

@media (max-width: 799px) {
  .pagehead__arc { width: 92%; right: -20%; opacity: 0.55; }
}
@keyframes pagehead-sun { from { transform: rotate(0deg); } }

.sun-disc { fill: var(--sun-300); }

.pagehead__inner { display: grid; gap: 20px; }

.pagehead__title {
  font-size: clamp(42px, 6.4vw, 104px);
  font-stretch: 120%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
  animation: rise 1000ms var(--ease-out) 80ms both;
  overflow-wrap: anywhere;
}

.pagehead__lede {
  max-width: 52ch;
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--on-dark-muted);
  animation: rise 1000ms var(--ease-out) 200ms both;
}

.pagehead .label { animation: rise 900ms var(--ease-out) both; }

/* Product group tabs */
.tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--stone-50);
  border-bottom: 1px solid var(--line-light);
  transition: top 360ms var(--ease-out);
}

.masthead:not(.is-hidden) ~ main .tabs { top: var(--header-h); }

.tabs__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__inner::-webkit-scrollbar { display: none; }

.tabs a {
  position: relative;
  flex: none;
  padding: 20px 14px;
  font-weight: 500;
  color: var(--stone-600);
  white-space: nowrap;
  transition: color var(--t-ui);
}

.tabs a:first-child { padding-left: 0; }
.tabs a:first-child::after { left: 0; }

.tabs a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  background: var(--sun-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}

.tabs a[aria-current="page"] { color: var(--graphite); }
.tabs a[aria-current="page"]::after { transform: scaleX(1); }

@media (hover: hover) {
  .tabs a:hover { color: var(--graphite); }
}

.catalogue-group + .catalogue-group { margin-top: clamp(64px, 8vw, 112px); }

.catalogue-group__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--graphite);
}

.catalogue-group__head p { grid-column: 1; color: var(--stone-600); max-width: 60ch; }
.catalogue-group__head .label { grid-column: 2; grid-row: 1; }

/* Careers */
.roles__count { margin-bottom: 20px; }
.roles { border-top: 1px solid var(--graphite); }
.role { border-bottom: 1px solid var(--line-light); }

.role summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 8px 32px;
  min-height: 88px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}

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

.role__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: -0.015em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.role__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--stone-600); }
.role__type { text-transform: capitalize; }

.role__body { display: grid; gap: 20px; justify-items: start; padding: 0 0 36px; max-width: 72ch; }
.role__body > p { color: var(--stone-600); white-space: pre-line; }

@media (max-width: 799px) {
  .role summary { grid-template-columns: minmax(0, 1fr) 22px; }
  .role__meta { grid-column: 1; grid-row: 2; }
  .role summary .qa__icon { grid-column: 2; grid-row: 1 / span 2; }
}

/* Closing band (inner pages) */
.closer {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 144px);
  background: var(--ink-900);
  color: var(--on-dark);
}

.closer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 48px;
  align-items: end;
}

.closer__side { display: grid; gap: 28px; justify-items: start; }
.closer .lede { color: var(--on-dark-muted); }

@media (max-width: 899px) {
  .closer__inner { grid-template-columns: 1fr; }
}

/* Error page */
.fault {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 clamp(160px, 22vw, 280px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-950), var(--ink-900));
  color: var(--on-dark);
  isolation: isolate;
}

.fault__scene { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: auto; }
.fault__sun { transform-box: view-box; transform-origin: 400px 400px; transform: rotate(-14deg); }
.fault__inner { display: grid; gap: 20px; justify-items: start; }
.fault .lede { color: var(--on-dark-muted); }

.fault__code {
  font-family: var(--font-display);
  font-size: clamp(88px, 16vw, 220px);
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--sun-500);
  font-variant-numeric: tabular-nums;
}

.fault__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* ---------- Dialogs ---------- */
.sheet-dialog {
  width: min(1040px, calc(100% - 48px));
  max-height: min(860px, calc(100svh - 48px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--stone-50);
  color: var(--graphite);
  box-shadow: 0 40px 120px rgba(6, 12, 22, 0.5);
  overflow: hidden;
}

.sheet-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  animation: dialog-in 320ms var(--ease-out);
}

.sheet-dialog::backdrop {
  background: rgba(6, 12, 22, 0.72);
  animation: fade-in 240ms var(--ease-ui);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
}

.sheet-dialog__media { min-height: 100%; }

.sheet-dialog__body {
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: start;
  padding: clamp(28px, 3.6vw, 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet-dialog__body > * { max-width: 100%; }
.sheet-dialog__body .spec-rows { width: 100%; }
.sheet-dialog__body .btn { margin-top: 8px; white-space: normal; text-align: left; }

.sheet-dialog__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  line-height: 1.04;
  padding-right: 40px;
  overflow-wrap: anywhere;
}

.sheet-dialog__price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  font-stretch: 108%;
  font-variant-numeric: tabular-nums;
}

.sheet-dialog__price span { font-family: var(--font-text); font-size: 15px; font-weight: 400; color: var(--stone-600); }
.sheet-dialog__text { color: var(--stone-600); white-space: pre-line; }

.sheet-dialog__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--stone-50);
  color: var(--graphite);
  box-shadow: 0 2px 10px rgba(6, 12, 22, 0.12);
  transition: transform 240ms var(--ease-out);
}

@media (hover: hover) {
  .sheet-dialog__close:hover { transform: rotate(90deg); }
}

.spec-rows--inline { width: 100%; }

.sheet-dialog--gallery[open] { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.sheet-dialog--gallery .sheet-dialog__body { order: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  background: var(--ink-900);
}

.gallery__item { aspect-ratio: 4 / 3; }
.gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery__item:only-child { aspect-ratio: auto; min-height: 100%; }
.gallery__item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.sheet-dialog--gallery .sheet-dialog__title { font-size: clamp(26px, 2.4vw, 36px); }
.gallery__item > video { object-fit: contain; background: #000; }

@media (max-width: 799px) {
  .sheet-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92svh;
    margin: auto 0 0;
    border-radius: 12px 12px 0 0;
  }

  .sheet-dialog[open] {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: sheet-up 360ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .sheet-dialog__media { aspect-ratio: 4 / 3; min-height: 0; }
  .sheet-dialog__body { overflow: visible; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .gallery { overflow: visible; }
  .gallery__item:only-child { aspect-ratio: 4 / 3; }
}

@keyframes sheet-up {
  from { transform: translateY(40px); opacity: 0.4; }
}

/* ---------- Scroll reveals ---------- */
.js [data-reveal] {
  transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out);
}

.js [data-reveal]:not(.is-in):not([data-reveal="mask"]):not([data-reveal="draw"]) {
  opacity: 0;
  transform: translateY(24px);
}

.js [data-reveal="mask"] { transition: clip-path 1200ms var(--ease-out); }
.js [data-reveal="mask"]:not(.is-in) { clip-path: inset(100% 0 0 0); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

/* Siblings in a list arrive in a quick stagger. */
.reasons > :nth-child(3n + 2),
.voice-list > :nth-child(2n),
.rail__item:nth-child(3n + 2) .sheet,
.sheet-grid > :nth-child(3n + 2) { transition-delay: 80ms; }
.reasons > :nth-child(3n + 3),
.rail__item:nth-child(3n + 3) .sheet,
.sheet-grid > :nth-child(3n + 3) { transition-delay: 160ms; }

.timeline__step { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Reduced motion: final state, no travel ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .scene__glint,
  .scene__flow { animation: none !important; }
  .scene__flow { opacity: 0.7; }

  .js [data-reveal]:not(.is-in):not([data-reveal="mask"]):not([data-reveal="draw"]) { opacity: 1; transform: none; }
  .js [data-reveal="mask"]:not(.is-in) { clip-path: none; }
  .js .scale:not(.is-in) .elevation__line { stroke-dashoffset: 0; }
  .js .scale:not(.is-in) .elevation__panel { opacity: 1; }
  .js .case__figure:not(.is-in) .slab__bar span { transform: none; }
  .js .timeline__fill { --progress: 1; }
}
