/* Hallmark · genre: atmospheric · macrostructure: Marquee Hero · design-system: design.md · designed-as-app
 * theme: studied-DNA (source: design.md.md "Zenith - The Quiet Expanse") · paper: #0A0A0A · accent: #FFFFFF · surface: #F2EAD3
 * display: Inter 500 · body: Playfair Display 400 · labels: JetBrains Mono 600 · axes: dark / geometric-sans / neutral
 * enrichment: E5 hand-built SVG roofline, Tier B, interactive scenes · nav: N5 · footer: Ft5
 * structure, layout and motion carried over unchanged from the previous build · studied: yes · context: user-supplied spec
 */
@import url("tokens.css");

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  color: var(--color-ink);
  letter-spacing: 0;
  line-height: 1.04;
  overflow-wrap: anywhere;
  min-width: 0;
}
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-xl); line-height: 1.1; }
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--color-ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

.skip {
  position: absolute; left: var(--space-md); top: -100px;
  background: var(--color-ink); color: var(--color-paper);
  padding: var(--space-xs) var(--space-md); border-radius: var(--radius-input);
  z-index: var(--z-sticky);
}
.skip:focus-visible { top: var(--space-md); }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--page-gutter); }
.prose { max-width: var(--measure); }
.lede { font-size: var(--text-md); line-height: 1.55; color: var(--color-ink-2); max-width: 46ch; }
.muted { color: var(--color-muted); }

/* ---------- Nav · N5 floating pill ---------- */
.nav-pill {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-sticky);
  width: max-content;
  max-width: calc(100% - 2 * var(--space-md));
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md);
  background: color-mix(in oklch, var(--color-paper-2) 82%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
}
.wordmark {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  text-decoration: none; color: var(--color-ink);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap;
}
/* The logo already reads "Z Lighting", so it stands alone. The PNG carries a wide black glow
 * margin (dropped by the screen blend), so it is drawn larger than its box and pulled back in. */
.wordmark img { height: 64px; width: auto; margin: -12px -10px; mix-blend-mode: screen; }
.foot .wordmark img { height: 96px; margin: -18px -14px; }
.nav-pill__links { display: none; list-style: none; margin: 0; padding: 0; gap: var(--space-lg); }
.nav-pill__links a {
  font-family: var(--font-display);
  text-decoration: none; font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap;
  padding-block: var(--space-2xs);
  background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 0 1px no-repeat;
}
.nav-pill__links a:hover { color: var(--color-ink); background-size: 100% 1px; }
.nav-pill__links a[aria-current="page"] { color: var(--color-ink); background-size: 100% 1px; }
.nav-pill__links a:active { color: var(--color-accent); }

.nav-pill__toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  cursor: pointer;
}
.nav-pill__toggle:hover { border-color: var(--color-muted); }
.nav-pill__toggle:active { transform: scale(0.96); }

.nav-sheet {
  position: fixed;
  top: calc(var(--space-md) + var(--space-2xl));
  left: var(--space-md); right: var(--space-md);
  z-index: var(--z-sticky);
  padding: var(--space-xs) var(--space-lg) var(--space-lg);
  background: var(--color-paper-3);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a {
  font-family: var(--font-display);
  display: block; padding: var(--space-sm) 0; text-decoration: none;
  color: var(--color-ink-2); font-size: var(--text-md);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}
.nav-sheet a:last-child { border-bottom: 0; }
.nav-sheet a:hover, .nav-sheet a[aria-current="page"] { color: var(--color-ink); }

@media (min-width: 46rem) {
  .nav-pill__links { display: flex; }
  .nav-pill__toggle, .nav-sheet { display: none; }
}

/* ---------- Buttons — 8 states ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out);
}
.btn--fill { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--fill:hover { transform: translateY(-1px); }
.btn--line { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--line:hover { border-color: var(--color-muted); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn[data-state="loading"] { opacity: 0.7; cursor: progress; }
.btn[data-state="error"] { outline: 1px solid var(--color-error); outline-offset: 2px; }
.btn[data-state="success"] { background: var(--color-paper-3); color: var(--color-ink); }
.btn--sm { min-height: 40px; padding: var(--space-xs) var(--space-md); }

.link-arrow {
  font-family: var(--font-display);
  display: inline-flex; gap: var(--space-xs); align-items: baseline;
  color: var(--color-ink); text-decoration: none; white-space: nowrap;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  padding-bottom: var(--space-3xs);
}
.link-arrow:hover { border-bottom-color: var(--color-accent); }
.link-arrow:active { color: var(--color-accent); }

/* ---------- Hero · Marquee over a film of real installs ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-block: calc(var(--space-3xl) + var(--space-md)) var(--space-3xl);
  background: var(--color-paper);
  overflow: clip;
}
.hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Scrim keeps the copy readable where the footage is bright. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, color-mix(in oklch, var(--color-paper) 88%, transparent) 0%, color-mix(in oklch, var(--color-paper) 35%, transparent) 45%, transparent 75%),
    linear-gradient(to right, color-mix(in oklch, var(--color-paper) 55%, transparent) 0%, transparent 60%);
}
.hero__title { max-width: 18ch; }
.hero__copy { position: relative; display: grid; gap: var(--space-lg); justify-items: start; }
.hero__copy .lede { color: var(--color-ink); }
/* Portrait phones: the film is landscape, so show it whole as a band above the copy instead of cropping it. */
@media (max-width: 46rem) and (orientation: portrait) {
  .hero { min-height: 0; display: block; padding-block: calc(var(--space-2xl) + var(--space-lg)) var(--space-2xl); }
  .hero__film { position: static; display: block; height: auto; aspect-ratio: 1920 / 1108; }
  .hero__scrim { display: none; }
  .hero__copy { padding-top: var(--space-xl); }
  .hero__copy .lede { color: var(--color-ink-2); }
}

/* ---------- Try the lights · interactive roofline ---------- */
.try { overflow: clip; }
.try__head {
  display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-xl);
  align-items: flex-end; justify-content: space-between;
}

.scenes { border: 0; margin: 0; padding: 0; min-width: 0; }
.scenes legend { padding: 0; margin-bottom: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.scenes__row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.scene {
  position: relative;
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 40px; padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-ink-2);
  white-space: nowrap; cursor: pointer;
}
.scene input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.scene__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-led-off); }
.scene__dot--warm { background: var(--color-led-warm); }
.scene__dot--cool { background: var(--color-led-cool); }
.scene__dot--holiday { background: linear-gradient(90deg, var(--color-led-red) 50%, var(--color-led-green) 50%); }
.scene__dot--halloween { background: linear-gradient(90deg, var(--color-led-orange) 50%, var(--color-led-violet) 50%); }
.scene__dot--canada { background: linear-gradient(90deg, var(--color-led-red) 50%, var(--color-led-cool) 50%); }
.scene__dot--game { background: linear-gradient(90deg, var(--color-led-blue) 50%, var(--color-led-warm) 50%); }
.scene:hover { border-color: var(--color-muted); color: var(--color-ink); }
.scene:has(input:checked) { border-color: var(--color-accent); color: var(--color-ink); background: var(--color-paper-2); }
.scene:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.scene:active { transform: scale(0.98); }

.roof { width: 100%; margin-top: var(--space-lg); }
.roof__ground { stroke: var(--color-rule); stroke-width: 1; }
.roof__body { fill: var(--color-paper-2); stroke: var(--color-structure); stroke-width: 1; }
.roof__line { fill: none; stroke: var(--color-structure); stroke-width: 2; stroke-linecap: round; }
.roof__win { fill: var(--color-window); }
.roof__trim { stroke: var(--color-rule); stroke-width: 1; }
.roof__leds circle {
  fill: var(--color-led-warm);
  animation: led-on-warm 520ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 9ms);
}
.try:has(#scene-cool:checked) .roof__leds circle { animation-name: led-on-cool; fill: var(--color-led-cool); }
.try:has(#scene-holiday:checked) .roof__leds circle { animation-name: led-on-holiday; fill: var(--color-led-red); }
.try:has(#scene-holiday:checked) .roof__leds circle:nth-child(even) { fill: var(--color-led-green); }
.try:has(#scene-halloween:checked) .roof__leds circle { animation-name: led-on-halloween; fill: var(--color-led-orange); }
.try:has(#scene-halloween:checked) .roof__leds circle:nth-child(even) { fill: var(--color-led-violet); }
.try:has(#scene-canada:checked) .roof__leds circle { animation-name: led-on-canada; fill: var(--color-led-red); }
.try:has(#scene-canada:checked) .roof__leds circle:nth-child(even) { fill: var(--color-led-cool); }
.try:has(#scene-game:checked) .roof__leds circle { animation-name: led-on-game; fill: var(--color-led-blue); }
.try:has(#scene-game:checked) .roof__leds circle:nth-child(3n) { fill: var(--color-led-warm); }
.try:has(#scene-off:checked) .roof__leds circle { animation-name: led-off; fill: var(--color-led-off); }
.try:has(#scene-off:checked) .roof__win { opacity: 0.6; }

/* One keyframe name per scene: switching names is what restarts the switch-on chase. */
@keyframes led-on-warm      { from { opacity: 0.1; } to { opacity: 1; } }
@keyframes led-on-cool      { from { opacity: 0.1; } to { opacity: 1; } }
@keyframes led-on-holiday   { from { opacity: 0.1; } to { opacity: 1; } }
@keyframes led-on-halloween { from { opacity: 0.1; } to { opacity: 1; } }
@keyframes led-on-canada    { from { opacity: 0.1; } to { opacity: 1; } }
@keyframes led-on-game      { from { opacity: 0.1; } to { opacity: 1; } }
@keyframes led-off          { from { opacity: 1; }   to { opacity: 0.55; } }

.hero__foot {
  border-top: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper-2);
}
.hero__foot-row {
  padding-block: var(--space-md);
  display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl);
  align-items: center; justify-content: space-between;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-lg); align-items: center; }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-top: calc(var(--space-3xl) + var(--space-xl)); padding-bottom: var(--space-2xl); }
.page-head h1 { font-size: var(--text-display); max-width: 22ch; }
.page-head .lede { margin-top: var(--space-lg); }

/* ---------- Sections ---------- */
.band { background: var(--color-paper-2); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-2xl) var(--space-section); }
.section--loose-top { padding-top: var(--space-4xl); padding-bottom: var(--space-2xl); }
.section h2 { max-width: 20ch; }
.section__lead { margin-top: var(--space-md); max-width: 52ch; color: var(--color-ink-2); }

/* Two services — asymmetric pair, not cards */
.pair { display: grid; gap: var(--space-2xl); margin-top: var(--space-2xl); }
.pair__item { display: grid; gap: var(--space-md); align-content: start; }
.pair__item ul { margin: var(--space-xs) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.pair__item li { padding-left: var(--space-lg); position: relative; }
.pair__item li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 10px; height: 1px; background: var(--color-accent);
}
.pair__link { margin-top: var(--space-sm); }
.pair__item--secondary { padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
@media (min-width: 56rem) {
  .pair { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-3xl); }
  .pair__item--secondary { padding-top: var(--space-3xl); padding-left: var(--space-2xl); border-top: 0; border-left: var(--rule-hair) solid var(--color-rule); }
}

/* Reasons — definition list, offset rhythm */
.reasons { margin: var(--space-2xl) 0 0; display: grid; gap: var(--space-xl); }
.reasons div { display: grid; gap: var(--space-xs); max-width: 40rem; }
.reasons dt { overflow-wrap: anywhere; min-width: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }
.reasons dd { margin: 0; color: var(--color-ink-2); }
@media (min-width: 56rem) {
  .reasons div:nth-child(2) { margin-left: 18%; }
  .reasons div:nth-child(3) { margin-left: 36%; }
}

/* Before / after — one range input drives the reveal */
.ba { margin: var(--space-2xl) 0 0; display: grid; gap: var(--space-sm); --pos: 50%; }
.ba__stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px; background: var(--color-accent); pointer-events: none;
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 6px solid var(--color-paper-3);
  box-shadow: var(--shadow-card);
}
.ba__tag {
  position: absolute; top: var(--space-md);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  background: color-mix(in oklch, var(--color-paper) 72%, transparent);
  color: var(--color-ink); pointer-events: none;
}
.ba__tag--before { left: var(--space-md); }
.ba__tag--after { right: var(--space-md); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.ba__stage:has(.ba__range:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.ba__stage:has(.ba__range:hover) .ba__handle::after { transform: scale(1.06); }
.ba__stage:has(.ba__range:active) .ba__handle::after { transform: scale(0.96); }
.ba__handle::after { transition: transform var(--dur-micro) var(--ease-out); }
.ba figcaption { color: var(--color-muted); }

/* Comparison — a real table on wide screens, stacked rows on narrow ones */
.compare { width: 100%; margin-top: var(--space-2xl); border-collapse: collapse; text-align: left; table-layout: fixed; }
.compare th, .compare td { padding: var(--space-md) var(--space-md) var(--space-md) 0; vertical-align: top; }
.compare thead th {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); color: var(--color-ink);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.compare thead td { width: 9.5rem; border-bottom: var(--rule-hair) solid var(--color-rule); }
.compare tbody th { color: var(--color-muted); }
.compare tbody tr + tr > * { border-top: var(--rule-hair) solid var(--color-rule-2); }
.compare td { color: var(--color-ink-2); }
.compare .compare__ours { color: var(--color-ink); }
@media (max-width: 55.99rem) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tr { padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
  .compare tbody tr + tr > * { border-top: 0; }
  .compare th, .compare td { padding: 0; }
  .compare tbody th { margin-bottom: var(--space-sm); }
  .compare td + td { margin-top: var(--space-sm); }
  .compare td::before {
    content: attr(data-col); display: block;
    font-family: var(--font-display); font-weight: 500; font-size: var(--text-sm); color: var(--color-ink);
  }
}

/* Reviews — a rolling row. Real reviews only; sample cards stay tagged until replaced.
 * home.js clones the cards and adds .is-rolling; without JS or with reduced motion the row
 * is a plain horizontal scroller. */
.rolling {
  margin-top: var(--space-2xl);
  overflow-x: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, var(--color-paper) 6%, var(--color-paper) 94%, transparent);
  mask-image: linear-gradient(to right, transparent, var(--color-paper) 6%, var(--color-paper) 94%, transparent);
}
.rolling__track { display: flex; width: max-content; margin: 0; padding: 0 0 0 var(--page-gutter); list-style: none; }
.rolling__track > li { flex: 0 0 auto; width: min(22rem, 78vw); margin-right: var(--space-md); }
.rolling.is-rolling { overflow: hidden; }
.rolling.is-rolling .rolling__track { padding-left: 0; animation: rolling 70s linear infinite; }
.rolling.is-rolling:hover .rolling__track,
.rolling.is-rolling:focus-within .rolling__track { animation-play-state: paused; }
@keyframes rolling { to { transform: translateX(-50%); } }
.review {
  display: grid; gap: var(--space-md); align-content: start;
  padding: var(--space-card);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
}
.review blockquote { margin: 0; color: var(--color-ink); }
.review__by { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-ink-2); }
.review__tag {
  justify-self: start;
  padding: var(--space-2xs) var(--space-sm);
  border: var(--rule-hair) dashed var(--color-rule);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
}

/* What we install — single prose block */
.what { margin-top: var(--space-xl); max-width: 44rem; }

/* Split studio rows (services) */
.split { display: grid; gap: var(--space-xl); align-items: start; }
.split + .split { margin-top: var(--space-3xl); }
.split__text { display: grid; gap: var(--space-md); }
.split__aside {
  padding: var(--space-card);
}
.split__aside h3 { font-size: var(--text-base); margin-bottom: var(--space-sm); }
.split__aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-3xl); }
  .split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .split--flip .split__aside { order: -1; }
}

/* Steps — genuinely ordinal */
.steps { counter-reset: step; list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; gap: var(--space-lg); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-label); font-weight: 600; font-size: var(--text-label); color: var(--color-accent);
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums; line-height: 1.2; padding-top: var(--space-2xs);
}
.steps p { margin-top: var(--space-2xs); color: var(--color-ink-2); }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-2xl); } }

/* FAQ — native disclosure */
.faq { margin-top: var(--space-xl); max-width: 48rem; }
.faq details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary {
  display: flex; justify-content: space-between; gap: var(--space-md); align-items: baseline;
  padding: var(--space-md) 0; cursor: pointer; list-style: none;
  color: var(--color-ink); font-family: var(--font-display); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--color-accent); }
.faq details p { padding-bottom: var(--space-lg); max-width: var(--measure); }

/* Area list */
.areas { margin: var(--space-lg) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.areas li { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }

/* Closing CTA — inline form */
.close { display: grid; gap: var(--space-xl); align-items: end; }
.inline-form { display: flex; flex-wrap: wrap; gap: var(--space-xs); max-width: 30rem; }
.inline-form .field { flex: 1 1 14rem; }
.inline-form__btn { align-self: end; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
@media (min-width: 56rem) { .close { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-3xl); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--space-2xs); }
.field label { font-size: var(--text-sm); color: var(--color-ink-2); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px;
  outline: 2px solid transparent; outline-offset: 1px;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-paper);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-input);
  font: inherit;
  font-family: var(--font-display);
  line-height: 1.25;
}
.field input, .field select { height: 44px; padding-block: var(--space-xs); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-muted); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--color-muted); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; border-color: transparent; }
.field input:disabled, .field textarea:disabled, .field select:disabled { opacity: 0.55; cursor: not-allowed; }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field__error { min-height: 1lh; margin: 0; font-size: var(--text-sm); color: var(--color-error); }
.form-grid { display: grid; gap: var(--space-md); }
@media (min-width: 40rem) { .form-grid--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form-note { font-size: var(--text-sm); color: var(--color-muted); }
.form-done { padding: var(--space-xl) 0; }
.form-done[hidden] { display: none; }
.form-done h2 { margin-bottom: var(--space-sm); }

/* Contact layout */
.contact { display: grid; gap: var(--space-2xl); }
.contact__direct { display: grid; gap: var(--space-lg); align-content: start; }
.contact__direct dt { font-size: var(--text-sm); color: var(--color-muted); }
.contact__direct dd { margin: var(--space-3xs) 0 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }
.contact__direct dd a { text-decoration: none; background: linear-gradient(var(--color-accent), var(--color-accent)) 0 100% / 0 1px no-repeat; }
.contact__direct dd a:hover { background-size: 100% 1px; }
.contact__form { padding: var(--space-card); }
@media (min-width: 56rem) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--space-3xl); }
}

/* ---------- Gallery · honest shot list ---------- */
.filter { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xl); }
.filter button {
  min-height: 40px; padding: var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
  background: transparent; color: var(--color-ink-2);
  font: inherit; font-family: var(--font-display); font-size: var(--text-sm); white-space: nowrap; cursor: pointer;
}
.filter button:hover { border-color: var(--color-muted); color: var(--color-ink); }
.filter button[aria-pressed="true"] { border-color: var(--color-accent); color: var(--color-ink); background: var(--color-paper-2); }
.filter button:active { transform: scale(0.98); }

.shots { display: grid; gap: var(--space-md); margin-top: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .shots { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } .shot--wide { grid-column: span 2; } }
.shot { margin: 0; display: grid; gap: var(--space-xs); min-width: 0; align-content: start; }
.shot[hidden] { display: none; }
.shot__frame {
  aspect-ratio: 4 / 3; width: 100%; min-width: 0;
  display: grid; place-items: center;
  padding: var(--space-lg);
  background:
    repeating-linear-gradient(135deg, var(--color-paper-2) 0 14px, var(--color-paper) 14px 15px);
  border: var(--rule-hair) dashed var(--color-rule);
  border-radius: var(--radius-card);
  color: var(--color-muted); font-size: var(--text-sm); text-align: center;
}
.shot--wide .shot__frame { aspect-ratio: 16 / 9; }
.shot figcaption { font-size: var(--text-sm); color: var(--color-ink-2); }
.shot figcaption b { color: var(--color-ink); font-weight: 500; }

/* ---------- Footer · Ft5 statement ---------- */
.foot { padding-block: var(--space-section) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__line { overflow-wrap: anywhere; min-width: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: 0; color: var(--color-ink); max-width: 18ch; }
.foot__meta {
  margin-top: var(--space-2xl); padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule-2);
  display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-xl); align-items: center; justify-content: space-between;
  font-size: var(--text-sm); color: var(--color-muted);
}
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); list-style: none; margin: 0; padding: 0; }
.foot__links a { font-family: var(--font-display); text-decoration: none; white-space: nowrap; color: var(--color-ink-2); }
.foot__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 4px; }

/* ---------- One orchestrated entrance ---------- */
.reveal { animation: reveal var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 150ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; }
  .reveal { animation: reveal-reduced 150ms linear both; }
  .roof__leds circle { animation: none !important; }
  .rolling.is-rolling { overflow-x: auto; }
  .rolling.is-rolling .rolling__track { animation: none !important; padding-left: var(--page-gutter); }
  .rolling__track > li[aria-hidden="true"] { display: none; }
  @keyframes reveal-reduced { from { opacity: 0; } to { opacity: 1; } }
}

.page-head + .section--tight { padding-top: 0; }

/* ---------- Labels — spec label-md: JetBrains Mono 600 / 12px ---------- */
.scenes legend, .field label, .contact__direct dt, .form-note, .foot__meta > span,
.hero__foot-row p, .shot__frame, .ba__tag, .ba figcaption, .compare tbody th, .review__tag {
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field label .muted { text-transform: none; letter-spacing: 0; }

/* ---------- Cream surface cards — spec: surface + subtle border + shadow depth ----------
 * Tokens are re-scoped inside the card so every child (text, inputs, buttons, focus,
 * errors) flips to on-surface values without per-component overrides. */
.split__aside, .contact__form {
  --color-paper: var(--color-surface);
  --color-paper-2: var(--color-surface);
  --color-paper-3: var(--color-surface);
  --color-ink: var(--color-on-surface);
  --color-ink-2: var(--color-on-surface-2);
  --color-muted: var(--color-on-surface-2);
  --color-rule: var(--color-surface-rule);
  --color-accent: var(--color-on-surface);
  --color-accent-ink: var(--color-surface);
  --color-focus: var(--color-on-surface);
  --color-error: var(--color-surface-error);
  background: var(--color-surface);
  color: var(--color-ink-2);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
