/* Home page: cinematic opening, the photo → model band and the light and climate story.
   Motion uses the site tokens (--ease-*, --dur-*, --stagger): reveals ≤ 24 px, ease-out; no scroll hijacking.
   Reduced motion: final states, no autoplay. */

/* ---------- Hero: full-bleed film/still, headline in the quiet left third ---------- */
.hero { --hero-h: max(560px, min(calc(100svh - var(--header-h)), 940px)); position: relative; isolation: isolate; overflow: hidden; display: grid; min-height: var(--hero-h); background: var(--ink-0); color: var(--fg); }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #0c1714; }
.hero-media picture, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero-media video { opacity: 0; transition: opacity var(--dur-4) var(--ease-out); }
.hero-media video.is-playing { opacity: 1; }
/* scrim: dark where the type sits, open over the lit rows, a soft floor into the next band */
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(7, 18, 15, 0.9) 0%, rgba(7, 18, 15, 0.78) 24%, rgba(7, 18, 15, 0.4) 44%, rgba(7, 18, 15, 0) 62%),
  linear-gradient(0deg, #07120f 0%, rgba(7, 18, 15, 0.55) 14%, rgba(7, 18, 15, 0) 34%),
  linear-gradient(180deg, rgba(7, 18, 15, 0.5) 0%, rgba(7, 18, 15, 0) 16%); }
.hero-inner { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 28px; min-height: var(--hero-h); padding-top: clamp(36px, 7vh, 88px); padding-bottom: clamp(20px, 3.4vh, 34px); }
.hero-copy { align-self: center; max-width: min(700px, 52vw); }
.hero .eyebrow { color: var(--brand-mint); }
.hero h1 { font-size: clamp(2.6rem, 4.15vw, 4.2rem); margin-bottom: 22px; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35); }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--brand-mint); }
.hero .lead { max-width: 46ch; margin-bottom: 32px; color: #d4e1da; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4); }
.hero .btn-ghost { background: rgba(7, 18, 15, 0.35); border-color: rgba(255, 255, 255, 0.4); color: #fff; backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(7, 18, 15, 0.55); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }

.film-toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(7, 18, 15, 0.5); color: #fff; font-size: 0.78rem; font-weight: 700; cursor: pointer; white-space: nowrap; backdrop-filter: blur(8px); transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.film-toggle:hover { border-color: #fff; background: rgba(7, 18, 15, 0.7); }
.film-toggle svg { width: 12px; height: 12px; }
.film-toggle .i-play, .film-toggle.is-paused .i-pause { display: none; }
.film-toggle.is-paused .i-play { display: block; }

/* the model's cover-independent values on the photograph */
.hero-model { margin-left: auto; width: min(560px, 100%); padding: 14px 18px 12px; border-radius: 14px; background: rgba(8, 20, 16, 0.6); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7); backdrop-filter: blur(14px) saturate(120%); color: #eef4f0; }
.hm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: 0.76rem; font-weight: 700; color: #cfdcd5; }
.hm-chip, .mb-chip { flex: none; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.hm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.hm-kpis > div { padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hm-kpis > div:first-child { padding-left: 0; border-left: 0; }
.hm-kpis dt { font-size: 0.72rem; line-height: 1.3; color: #a9bbb3; min-height: 2.6em; }
.hm-kpis dd { margin: 4px 0 0; font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }
.hm-kpis small, .mb-kpis small, .mb-day-val small { margin-left: 5px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0; color: #a9bbb3; }
.hm-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.8rem; font-weight: 700; color: var(--brand-mint); text-decoration: none; }
.hm-link svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--dur-1) var(--ease-out); }
.hm-link:hover { color: #fff; }
.hm-link:hover svg { transform: rotate(90deg) translateX(2px); }

@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: hero-rise var(--dur-3) var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: var(--stagger); }
  .hero-copy > :nth-child(3) { animation-delay: calc(var(--stagger) * 2); }
  .hero-copy > :nth-child(4) { animation-delay: calc(var(--stagger) * 3); }
  .hero-model { animation: hero-rise var(--dur-3) var(--ease-out) calc(var(--stagger) * 6) both; }
}

/* phone: its own composition. The picture fills the first screen behind the type, which sits low on a dark floor;
   the model values follow as a compact row below. */
@media (max-width: 760px) {
  .hero { --hero-h: auto; display: block; min-height: 0; }
  .hero-media { bottom: auto; height: max(560px, calc(100svh - var(--header-h))); }
  .hero-media img, .hero-media video { object-position: 66% 24%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(7, 18, 15, 0.35) 0%, rgba(7, 18, 15, 0) 16%, rgba(7, 18, 15, 0.12) 30%, rgba(7, 18, 15, 0.8) 48%, rgba(7, 18, 15, 0.96) 62%, #07120f 100%); }
  .hero-inner { display: block; min-height: 0; padding-top: 0; padding-bottom: 28px; }
  .hero-copy { max-width: none; min-height: max(560px, calc(100svh - var(--header-h))); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 20px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); margin-bottom: 14px; }
  .hero .lead { font-size: 1rem; line-height: 1.5; margin-bottom: 20px; }
  .hero .btn-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero .btn-row .btn { width: 100%; min-height: 48px; }
  .hero-foot { display: block; }
  .film-toggle { position: absolute; top: 14px; right: var(--gutter); height: 32px; font-size: 0.72rem; }
  .hero-model { width: auto; margin: 0; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); backdrop-filter: none; box-shadow: none; }
  .hm-kpis > div { padding: 0 10px; }
  .hm-kpis dt { font-size: 0.68rem; min-height: 3.9em; }
  .hm-kpis dd { font-size: 1.28rem; }
  .hm-kpis small { display: block; margin: 2px 0 0; }
}

/* ---------- Photo → model band ---------- */
.model-band { padding-top: clamp(48px, 6vw, 96px); background: radial-gradient(70% 55% at 75% 0%, rgba(66, 211, 156, 0.08), rgba(66, 211, 156, 0) 60%), #07120f; }
.mb-head { max-width: 900px; margin-bottom: clamp(28px, 4vw, 48px); }
.mb-head .lead { margin: 16px 0 0; max-width: 72ch; }
.mb { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(290px, 1fr); gap: clamp(22px, 3vw, 44px); align-items: start; }
.mb-figure { margin: 0; min-width: 0; }
.mb-plan { position: relative; padding: 24px 0 0 28px; }
.mb-svg { display: block; width: 100%; height: auto; overflow: visible; border-radius: 6px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(66, 211, 156, 0.16); }
.mb-floor { fill: #0b1613; }
.mb-dim { fill: rgba(5, 12, 10, 0.4); }
.mb-metre line { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.mb-row { fill: none; stroke: rgba(240, 248, 236, 0.42); stroke-width: 1.1; }
.mb-lum { fill: #ff6f9c; stroke: rgba(18, 6, 10, 0.55); stroke-width: 0.8; }
.mb-frame { fill: none; stroke: rgba(66, 211, 156, 0.3); stroke-width: 1; }
.mb-dim-x, .mb-dim-y { position: absolute; display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; color: #8fa59c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-dim-x { top: 0; left: 28px; right: 0; height: 18px; }
.mb-dim-y { left: 0; top: 24px; bottom: 0; width: 18px; flex-direction: column; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); }
.mb-dim-x::before, .mb-dim-x::after, .mb-dim-y::before, .mb-dim-y::after { content: ''; flex: 1; border-top: 1px solid rgba(143, 165, 156, 0.4); }
.mb-dim-y::before, .mb-dim-y::after { border-top: 0; border-left: 1px solid rgba(143, 165, 156, 0.4); }
.mb-legend { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 22px; align-items: center; margin-top: 18px; padding-left: 28px; font-size: 0.78rem; color: #b3c3bb; }
.mb-lt { font-weight: 700; color: #dfe9e4; }
.mb-lt .u { display: block; font-weight: 500; color: #8fa59c; }
.mb-scale { position: relative; height: 48px; min-width: 0; }
.mb-ramp { position: absolute; left: 0; right: 0; top: 18px; height: 10px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.mb-mk { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.68rem; font-weight: 700; color: #cfdcd5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mb-mk::after { content: ''; position: absolute; left: 50%; top: 15px; height: 14px; border-left: 1.5px solid #fff; }
.mb-mk.is-avg { color: var(--accent); }
.mb-mk.is-avg::after { border-color: var(--accent); }
.mb-ticks span { position: absolute; top: 32px; transform: translateX(-50%); font-size: 0.7rem; color: #8fa59c; font-variant-numeric: tabular-nums; }
.mb-ticks span:first-child { transform: none; }
.mb-ticks span:last-child { transform: translateX(-100%); }
.mb-keys { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mb-keys .k::before { content: ''; display: inline-block; vertical-align: -2px; margin-right: 8px; }
.mb-keys .k-row::before { width: 20px; height: 10px; border: 1.3px solid rgba(240, 248, 236, 0.7); border-radius: 2px; }
.mb-keys .k-lum::before { width: 20px; height: 5px; vertical-align: 1px; border-radius: 2px; background: #ff6f9c; }
.mb-keys .k-path::before { width: 20px; height: 10px; border-radius: 2px; background: rgba(5, 12, 10, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

.mb-side { display: grid; gap: 14px; min-width: 0; }
.mb-side-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: 0.76rem; font-weight: 700; color: #cfdcd5; }
.mb-side-top .win-brand + span { margin-right: auto; }
.mb-kpis { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.035); }
.mb-kpis > div { padding: 12px 14px; min-width: 0; }
.mb-kpis > div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.mb-kpis dt { font-size: 0.7rem; line-height: 1.3; color: #a9bbb3; min-height: 2.6em; }
.mb-kpis dd { margin: 6px 0 0; font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.mb-kpis small { display: block; margin: 3px 0 0; }
.mb-day { padding: 16px 16px 14px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.1); }
.mb-day-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; font-size: 0.8rem; font-weight: 700; color: #e4ede8; }
.mb-cover { margin: 6px 0 12px; font-size: 0.72rem; line-height: 1.35; color: #d9cf9f; }
.mb-cover::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; background: #e0b84a; }
.mb-day-val { margin: 0; font-size: 2.1rem; font-weight: 750; letter-spacing: -0.025em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.mb-day-sub { margin: 4px 0 0; font-size: 0.78rem; color: #a9bbb3; }
.mb-bars { margin: 14px 0 12px; }
.mb-bars figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; font-size: 0.7rem; color: #a9bbb3; }
.mb-bars figcaption > span:first-child { font-weight: 700; color: #cfdcd5; margin-right: auto; }
.mb-bars .k::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; vertical-align: 0; }
.mb-bars .nat::before { background: #5f8a7a; }
.mb-bars .led::before { background: #ff5a8e; }
.mb-bars .tgt::before { height: 0; border-top: 1.5px dashed #d8f36a; vertical-align: 3px; }
.mb-bars svg { width: 100%; height: auto; }
.mb-mo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin: 4px 0 0; font-size: 0.62rem; color: #8fa59c; text-align: center; }
.mb-day .link-arrow { font-size: 0.84rem; color: var(--brand-mint); }
.mb-note { margin: clamp(20px, 3vw, 32px) 0 0; max-width: 100ch; font-size: 0.78rem; color: #8fa59c; }

/* one arrival, explained in order: geometry, toplights, the calculated map, then the values count up once.
   Armed by script only (no script or reduced motion: the final state). */
@media (prefers-reduced-motion: no-preference) {
  .mb .mb-plan { transition: transform var(--dur-4) var(--ease-emph), opacity var(--dur-3) var(--ease-out); transform-origin: 50% 85%; }
  .mb.is-armed:not(.is-in) .mb-plan { transform: perspective(1500px) rotateX(36deg) scale(0.95); opacity: 0.35; }
  .mb .mb-row { transition: stroke-dashoffset var(--dur-4) var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
  .mb.is-armed:not(.is-in) .mb-row { stroke-dasharray: 100; stroke-dashoffset: 100; }
  .mb.is-armed.is-in .mb-row { stroke-dasharray: 100; stroke-dashoffset: 0; }
  .mb .mb-lum { transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); transition-delay: calc(320ms + var(--j) * var(--stagger)); transform-box: fill-box; }
  .mb.is-armed:not(.is-in) .mb-lum { opacity: 0; transform: translateY(-8px); }
  .mb .mb-mapg { transition: opacity var(--dur-4) var(--ease-out) 640ms; }
  .mb.is-armed:not(.is-in) .mb-mapg { opacity: 0; }
  .mb .mb-legend, .mb .mb-side { transition: opacity var(--dur-3) var(--ease-out) 760ms, transform var(--dur-3) var(--ease-out) 760ms; }
  .mb.is-armed:not(.is-in) .mb-legend, .mb.is-armed:not(.is-in) .mb-side { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 980px) {
  .mb { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mb-plan { padding: 22px 0 0 22px; }
  .mb-dim-x { left: 22px; }
  .mb-legend { grid-template-columns: 1fr; padding-left: 0; gap: 8px; }
  .mb-lt .u { display: inline; }
  .mb-kpis > div { padding: 10px 10px; }
  .mb-kpis dt { font-size: 0.66rem; min-height: 3.9em; }
  .mb-kpis dd { font-size: 1.2rem; }
}

/* ---------- Light and climate story ---------- */
.ls .ls-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 14px 0 2px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); counter-reset: ch; }
.ls-tabs button { counter-increment: ch; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: #b3c3bb; font-size: 0.84rem; font-weight: 650; line-height: 1.2; text-align: left; cursor: pointer; transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.ls-tabs button:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.ls-tabs button:focus-visible { outline: 2px solid var(--brand-mint); outline-offset: 1px; }
.ls-tn { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #13302a; color: #8fd9b9; font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(66, 211, 156, 0.22); transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.ls-tn::before { content: counter(ch, decimal-leading-zero); }
.ls-tabs button[aria-selected='true'] { color: #fff; background: rgba(216, 243, 106, 0.1); box-shadow: inset 0 0 0 1px rgba(216, 243, 106, 0.32); }
.ls-tabs button[aria-selected='true'] .ls-tn { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

.ls-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 340px); gap: 24px; padding: 16px 0 8px; align-items: start; }
.ls-stage { min-width: 0; }
.ls-fig + .ls-fig { margin-top: 22px; }
.ls .day-cases { margin-top: 12px; }
.ls-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* chapters (script only; without script every chapter is shown in order) */
.ls[data-ch] .ls-fig { display: none; margin: 0; }
.ls[data-ch='1'] .ls-fig-day, .ls[data-ch='2'] .ls-fig-day, .ls[data-ch='3'] .ls-fig-day, .ls[data-ch='4'] .ls-fig-dec, .ls[data-ch='5'] .ls-fig-clim { display: block; }
.ls[data-ch]:not([data-ch='3']) .day-cases, .ls[data-ch]:not([data-ch='3']) .day-stations, .ls[data-ch]:not([data-ch='3']) .day-say { display: none; }
.ls[data-ch='4'] .day-clock, .ls[data-ch='5'] .day-clock { display: none; }
.ls[data-ch] .ls-fig-day, .ls[data-ch] .ls-fig-dec, .ls[data-ch] .ls-fig-clim, .ls[data-ch] .ls-pbody { animation: ls-in var(--dur-3) var(--ease-out) both; }
@keyframes ls-in { from { opacity: 0; transform: translateY(8px); } }

/* 24-hour chart layers per chapter: 1 sunlight above the greenhouse, 2 the share at the crop with the
   transmission range and the outside curve, 3 daylight + toplights with the dark-to-bright band */
.ls .day-svg .band, .ls .day-svg .edge, .ls .day-svg .trb, .ls .day-svg .outl, .ls .day-svg .led { transition: opacity var(--dur-3) var(--ease-out); }
.ls .day-svg .trb, .ls .day-svg .outl { opacity: 0; }
.ls .day-svg .outl { fill: none; stroke: #f6e7a8; stroke-width: 1.6; stroke-dasharray: 5 4; }
.ls[data-ch='2'] .day-svg .trb, .ls[data-ch='2'] .day-svg .outl { opacity: 1; }
.ls[data-ch='2'] .day-svg .band, .ls[data-ch='2'] .day-svg .edge { opacity: 0; }
.ls[data-ch='1'] .day-svg .nat { fill: url(#ls-outg); }
.ls[data-ch='1'] .day-svg .band { fill: rgba(251, 241, 198, 0.12); }
.ls .day-svg .band { fill: rgba(255, 255, 255, 0.07); }
.ls .day-svg .shade { fill: rgba(10, 24, 19, 0.42); }
.ls .day-svg .edge { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; stroke-dasharray: 3 3; }
.ls-legend .k[data-show] { display: none; }
.ls:not([data-ch]) .ls-legend [data-show~='3'], .ls[data-ch='1'] .ls-legend [data-show~='1'], .ls[data-ch='2'] .ls-legend [data-show~='2'], .ls[data-ch='3'] .ls-legend [data-show~='3'] { display: inline; }
.ls-legend .outk::before { background: linear-gradient(#fbf1c6, #f1dc8e); }
.ls-legend .band::before { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.ls-legend .outl::before { height: 0; border-radius: 0; border-top: 2px dashed #f6e7a8; vertical-align: 3px; }
.ls-legend .trk::before { background: repeating-linear-gradient(135deg, rgba(246, 221, 114, 0.6) 0 2px, rgba(246, 221, 114, 0.12) 2px 5px); }

/* panels */
.ls-panel { min-width: 0; color: #dbe9e2; }
.ls-panel:focus { outline: none; }
.ls-panel:focus-visible { outline: 2px solid var(--brand-mint); outline-offset: 6px; border-radius: 6px; }
.ls:not([data-ch]) .ls-panel + .ls-panel { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.ls-h { margin: 0 0 8px; font-size: 1.12rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; color: #fff; }
.ls-text { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.55; color: #cfdcd5; }
.ls-kv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ls-kv > div { min-width: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.ls-kv dt { font-size: 0.72rem; line-height: 1.3; color: #a9bbb3; }
.ls-kv dd { margin: 2px 0 0; }
.ls-kv b { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; }
.ls-kv small { margin: 0 4px; font-size: 0.72rem; font-weight: 600; color: #a9bbb3; }
.ls-kv dd > small:last-child { margin-right: 0; }
.ls-kv .sub { font-size: 0.7rem; color: #8fa59c; }
.ls-kv .is-now b { color: var(--accent); }
.ls-kv .is-wide { grid-column: 1 / -1; }
.ls-panel .day-counts { margin-top: 2px; }
.ls-lines p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.5; color: #dbe9e2; }
.ls-lines p:first-child { color: #fff; font-weight: 600; }
.ls-dec-wrap { margin-top: 16px; }
.ls-dec { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ls-dec th, .ls-dec td { position: static; padding: 9px 8px; text-align: left; vertical-align: top; background: transparent; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.ls-dec th:first-child { width: 24%; padding-left: 10px; }
.ls-dec thead th { padding-top: 0; padding-bottom: 8px; border-top: 0; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8fa59c; }
.ls-dec tbody th { font-size: 0.8rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #dbe9e2; }
.ls-dec td b { display: block; font-size: 1rem; font-weight: 800; color: #fff; }
.ls-dec td b small { font-size: 0.72rem; font-weight: 600; color: #a9bbb3; }
.ls-dec td span { display: block; color: #a9bbb3; font-size: 0.72rem; }
.ls-dec td.d b { color: var(--accent); }
.ls-dec .is-avg th, .ls-dec .is-avg td { background: rgba(216, 243, 106, 0.05); }
.ls-dec .is-avg th { color: var(--accent); }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.sw-fixed { border: 1.5px dashed #ff5a8e; }
.sw-target { background: #ff5a8e; }
.ls-basis { margin: 10px 0 0; font-size: 0.72rem; line-height: 1.45; color: #8fa59c; }
.ls-src { margin: 12px 0 0; font-size: 0.74rem; line-height: 1.45; color: #a9bbb3; }
.ls-sim { display: inline-block; margin-right: 4px; padding: 2px 8px; border-radius: 999px; font-weight: 700; color: #e7f1ec; background: rgba(255, 255, 255, 0.08); }
.ls-links { display: grid; gap: 6px; margin: 12px 0 0; }
.ls .link-arrow { color: var(--brand-mint); font-size: 0.86rem; }
.ls .link-arrow:hover { color: #fff; }
.ls-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ls-nav button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #e7f1ec; font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out); }
.ls-nav button:hover { border-color: var(--accent); }
.ls-nav .ls-next { background: rgba(216, 243, 106, 0.1); border-color: rgba(216, 243, 106, 0.4); }
.ls-nav svg { width: 14px; height: 14px; }
.ls-nav .ls-prev svg { transform: rotate(180deg); }

/* chapter 4 and 5 charts (wide and phone geometry) */
.ls-svg.is-m { display: none; }
.ls-fig-clim .day-legend .thi::before { height: 0; border-radius: 0; border-top: 2px solid #f0a46a; vertical-align: 3px; }
.ls-fig-clim .day-legend .tlo::before { height: 0; border-radius: 0; border-top: 2px solid #7fb6e6; vertical-align: 3px; }
.ls-fig-clim .day-legend .kfr::before { background: #7fb6e6; }
.ls-fig-clim .day-legend .kht::before { background: #f0a46a; }
.ls-svg .g { stroke: rgba(255, 255, 255, 0.07); }
.ls-svg .ax { fill: #8a9b93; font-size: 11px; font-family: var(--font); }
.ls-svg .ax.is-sel { fill: var(--accent); font-weight: 800; }
.ls-svg .lab { fill: #a9bbb3; font-size: 10.5px; font-family: var(--font); font-weight: 600; }
.ls-svg .cap-t { fill: var(--accent); }
.ls-dec-svg .dl { fill: rgba(240, 214, 96, 0.09); }
.ls-dec-svg .cap { stroke: rgba(216, 243, 106, 0.65); stroke-width: 1.2; stroke-dasharray: 3 4; }
.ls-dec-svg .off { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; }
.ls-dec-svg .fx { fill: rgba(255, 90, 142, 0.1); stroke: #ff5a8e; stroke-width: 1.4; stroke-dasharray: 4 3; }
.ls-dec-svg .tg { fill: #ff5a8e; }
.ls-dec-svg .val { fill: #e7f1ec; font-size: 11px; font-weight: 700; font-family: var(--font); font-variant-numeric: tabular-nums; }
.ls-dec-svg .rl { fill: #dbe9e2; font-size: 12.5px; font-weight: 700; font-family: var(--font); }
.ls-dec-svg .is-avg .rl { fill: var(--accent); }
.ls-fig-dec .day-legend .fx::before { background: rgba(255, 90, 142, 0.1); box-shadow: inset 0 0 0 1.5px #ff5a8e; }
.ls-fig-dec .day-legend .tg::before { background: #ff5a8e; }
.ls-fig-dec .day-legend .dlk::before { background: rgba(240, 214, 96, 0.3); }
.ls-clim-svg .sel { fill: rgba(216, 243, 106, 0.06); stroke: rgba(216, 243, 106, 0.28); stroke-width: 1; }
.ls-clim-svg .tband { fill: rgba(240, 164, 106, 0.16); }
.ls-clim-svg .tline { fill: none; stroke-width: 2; stroke-linejoin: round; }
.ls-clim-svg .tline.hi { stroke: #f0a46a; }
.ls-clim-svg .tline.lo { stroke: #7fb6e6; }
.ls-clim-svg .fr { fill: #7fb6e6; opacity: 0.5; }
.ls-clim-svg .ht { fill: #f0a46a; opacity: 0.5; }
.ls-clim-svg .fr.is-sel, .ls-clim-svg .ht.is-sel { opacity: 1; }
.ls-clim-svg .base { stroke: rgba(255, 255, 255, 0.14); }
.ls-clim-svg .dot { stroke: #0a1813; stroke-width: 2; }
.ls-clim-svg .dot.hi { fill: #f0a46a; }
.ls-clim-svg .dot.lo { fill: #7fb6e6; }
.ls-clim-svg .v { fill: #fff; font-size: 12.5px; font-weight: 800; font-family: var(--font); font-variant-numeric: tabular-nums; }
.ls-clim-svg .v.sm { font-size: 11.5px; }
.ls-clim-svg .fr-t { fill: #a9d0f0; }
.ls-clim-svg .ht-t { fill: #f6c39a; }
.ls-clim-svg .rlab { fill: #a9bbb3; font-size: 11px; font-weight: 700; font-family: var(--font); }

/* table equivalents (on the paper section) */
.ls-tables { margin-top: 14px; font-size: 0.84rem; }
.ls-tables summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); font-weight: 700; color: var(--fg); cursor: pointer; list-style: none; }
.ls-tables summary::-webkit-details-marker { display: none; }
.ls-tables summary::before { content: '+'; font-weight: 800; color: var(--brand); }
.ls-tables[open] summary::before { content: '−'; }
.ls-tw { overflow-x: auto; margin-top: 14px; }
.ls-t { min-width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ls-t caption { text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--fg); }
.ls-t th, .ls-t td { padding: 5px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ls-t th:first-child { text-align: left; }
.ls-t thead th { font-size: 0.74rem; color: var(--fg-2); }

@media (max-width: 980px) {
  .ls-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ls .ls-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -4px; }
  .ls .ls-tabs::-webkit-scrollbar { display: none; }
  .ls-tabs button { flex: none; scroll-snap-align: start; padding: 6px 12px 6px 8px; font-size: 0.8rem; }
  .ls-kv b { font-size: 1.2rem; }
  .ls-svg.is-d { display: none; }
  .ls-svg.is-m { display: block; }
  .ls-svg.is-m .ax { font-size: 12.5px; }
  .ls-svg.is-m .lab { font-size: 11.5px; }
  .ls-dec-svg.is-m .val { font-size: 12.5px; }
  .ls-dec-svg.is-m .rl { font-size: 13.5px; }
  .ls-clim-svg.is-m .v { font-size: 13.5px; }
  .ls-clim-svg.is-m .v.sm { font-size: 12.5px; }
  .ls-dec th, .ls-dec td { padding: 8px 5px; }
  .ls-dec th:first-child { width: 22%; padding-left: 6px; }
  .ls-dec td b { font-size: 0.95rem; }
  .day-svg .outl { stroke-width: 2.4; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media video { transition: none; }
  .ls *, .mb * { transition: none !important; animation: none !important; }
}
