/* Lumio — Permanent Outdoor Lighting */
:root {
  --ink: #14151a;
  --ink-2: #3f424c;
  --muted: #6d717d;
  --cream: #fff6e8;
  --cream-line: #f6e1bf;
  --amber: #f99500;
  --amber-2: #ffbe20;
  --line: #e9e7e1;
  --card: #fafaf8;
  --dark: #15161b;
  --sky: #01030d;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Page scale. 1 = normal; .85 renders like an 85% browser zoom.
     CSS zoom also shrinks vw/vh, so sizes that should track the real
     window use --vw / --vh / --svh instead of the raw units. */
  --zoom: 1;
  --vw: calc(1vw / var(--zoom));
  --vh: calc(1vh / var(--zoom));
  --svh: calc(1svh / var(--zoom));
}
/* Desktop widths are scaled down; phones and tablets keep full-size text and tap targets. */
@media (min-width: 961px) {
  :root { --zoom: .85; }
}

*, *::before, *::after { box-sizing: border-box; }
html { zoom: var(--zoom); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); }
h2 { font-size: clamp(1.8rem, 3.2 * var(--vw), 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
button { font: inherit; }
img { max-width: 100%; }
section { scroll-margin-top: 16px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.amber { background: linear-gradient(180deg, #ffb41f, #f58a00); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.975rem/1 var(--font-body);
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: linear-gradient(180deg, #ffc533, #f99500); color: #1a1205; box-shadow: 0 8px 26px -8px rgba(249, 149, 0, .6); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(249, 149, 0, .8); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.btn-ghost .icon { width: 16px; height: 16px; }
.btn-sm { padding: 11px 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- Header (transparent, on the hero) ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; color: #fff; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 16px; }
.logo { display: inline-flex; justify-self: start; color: #fff; }
.logo svg { display: block; height: 60px; width: auto; aspect-ratio: 934 / 342; overflow: visible; }
.nav { display: flex; gap: 36px; }
.nav a { position: relative; font-size: .925rem; font-weight: 500; color: rgba(255, 255, 255, .82); transition: color .2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--amber-2); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lang button { font: 600 .75rem/1 var(--font-body); letter-spacing: .05em; padding: 7px 10px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .8); cursor: pointer; transition: background .2s ease, color .2s ease; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
/* The interactive house is the hero. Wide screens: the scene fills the whole area, with the headline
   on the left, the phone that controls the lights bottom right and the scene's buttons bottom centre.
   Narrow or portrait screens ("Hero, stacked" near the end of this file): the scene becomes a card
   pinned at the top, with the headline and the phone below it. */
.hero {
  --hero-h: max(100 * var(--vh), 640px);
  --hero-pad: clamp(24px, 4 * var(--vw), 64px);
  --hero-copy-pad: clamp(24px, 2 * var(--vw), 40px);
  --hero-edge: max(30px, env(safe-area-inset-bottom));
  --hero-layout: wide;   /* script.js reads this to frame the house */
  --phone-k: 1;          /* phone scale; script.js sets it from the hero's height */
  position: relative; isolation: isolate; overflow: hidden; overflow: clip; overflow-anchor: none;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
  min-height: var(--hero-h);
  background: #07080c;
  color: #fff; text-align: left;
}
@supports (height: 100svh) {
  .hero { --hero-h: max(100 * var(--svh), 640px); }
}

/* Stars around the scene card. Only the stacked layout shows them: on wide screens the scene covers everything. */
.hero-sky, .hero-sky::after { position: absolute; inset: 0; pointer-events: none; }
.hero-sky {
  z-index: -3;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 68%); mask-image: linear-gradient(#000 35%, transparent 68%);
  background-image:
    radial-gradient(1.3px 1.3px at 4% 12%, rgba(255, 255, 255, .85) 50%, transparent 52%),
    radial-gradient(1px 1px at 9% 34%, rgba(255, 255, 255, .6) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 14% 7%, rgba(255, 255, 255, .7) 50%, transparent 52%),
    radial-gradient(1px 1px at 19% 24%, rgba(255, 255, 255, .5) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 27% 4%, rgba(255, 255, 255, .8) 50%, transparent 52%),
    radial-gradient(1px 1px at 38% 9%, rgba(255, 255, 255, .55) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 52% 3%, rgba(255, 255, 255, .7) 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 8%, rgba(255, 255, 255, .5) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 74% 5%, rgba(255, 255, 255, .8) 50%, transparent 52%),
    radial-gradient(1px 1px at 82% 22%, rgba(255, 255, 255, .55) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 88% 10%, rgba(255, 255, 255, .75) 50%, transparent 52%),
    radial-gradient(1px 1px at 93% 38%, rgba(255, 255, 255, .5) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 97% 16%, rgba(255, 255, 255, .8) 50%, transparent 52%);
}
.hero-sky::after {
  content: "";
  background-image:
    radial-gradient(1.2px 1.2px at 2% 26%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 7% 19%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 12% 44%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 23% 13%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 45% 6%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 69% 2%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 79% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 86% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 91% 21%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 96% 46%, #fff 50%, transparent 52%);
  opacity: .7;
}
.hero-sky { display: none; }

/* Two veils keep the white headline and header readable over the scene, by day and by night:
   one from the left, behind the headline, and one from the top, behind the header. */
.hero-shade, .hero-shade::before, .hero-shade::after { position: absolute; inset: 0; pointer-events: none; }
.hero-shade::before, .hero-shade::after { content: ""; background-color: #06080f; transition: background-color 1.3s ease, opacity .6s ease; }
.hero-shade::before {
  --veil: linear-gradient(90deg, rgba(0, 0, 0, .84) 0, rgba(0, 0, 0, .7) calc(var(--hero-pad) + 360px), rgba(0, 0, 0, .26) calc(var(--hero-pad) + 640px), transparent calc(var(--hero-pad) + 920px));
  -webkit-mask-image: var(--veil); mask-image: var(--veil);
}
.hero-shade::after {
  --veil: linear-gradient(180deg, rgba(0, 0, 0, .68) 0, transparent 250px);
  -webkit-mask-image: var(--veil); mask-image: var(--veil);
}
.demo[data-mode="day"] .hero-shade::before, .demo[data-mode="day"] .hero-shade::after { background-color: #0b2444; }

.hero-wrap {
  position: relative; z-index: 2; pointer-events: none;
  display: flex; align-items: center;
  width: calc(100% - 2 * var(--hero-copy-pad));
  margin-inline: auto;
  padding-top: clamp(100px, 14 * var(--vh), 150px);
  padding-bottom: clamp(152px, 18 * var(--vh), 180px);
}

.hero-content {
  position: relative; pointer-events: auto;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  max-width: min(580px, 36 * var(--vw));
  width: 100%;
  transition: opacity .5s ease .3s, visibility 0s;
}
/* Up close, the headline and its veil step aside so the whole close-up is in view. */
.demo[data-view="close"] .hero-content { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.demo[data-view="close"] .hero-shade::before { opacity: 0; }
.hero h1 {
  font-size: clamp(2.35rem, 4.4 * var(--vw), 3.85rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.035em; text-align: left;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .85);
}
:lang(fr) .hero h1 { font-size: clamp(2.15rem, 4.1 * var(--vw), 3.5rem); }
.glow-text {
  display: inline-block; text-shadow: none;
  background: linear-gradient(180deg, #ffe07a 0%, #ffb41f 55%, #f99500 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 180, 31, .45));
  padding-bottom: .08em;
}
.hero-sub {
  margin-top: 18px; max-width: 34rem;
  font-size: clamp(1.05rem, 1.4 * var(--vw), 1.25rem);
  line-height: 1.55; color: rgba(255, 255, 255, .9);
  text-align: left;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .75);
}
.hero-cta {
  display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center;
  gap: 14px; margin-top: 28px;
}
.pills {
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  width: 100%; max-width: 100%; min-width: 0;
  gap: 10px; margin: 28px 0 0; padding: 0; list-style: none;
}
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: .84rem; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pills li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* One line about what the scene is showing, just above the scene's buttons */
.demo-caption {
  position: absolute; z-index: 2; left: 50%; bottom: calc(var(--hero-edge) + 56px); transform: translateX(-50%);
  /* As wide as its text, but never under the phone (nor the same distance in from the left) */
  width: max-content; max-width: min(680px, 100% - 2 * (var(--hero-pad) + 290px * var(--phone-k)) - 48px);
  margin: 0; padding: 7px 15px; border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 12, 20, .58);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, .8); font-size: .84rem; line-height: 1.4; text-align: center; text-wrap: balance;
}
.demo-caption b { color: #fff; font-weight: 600; }
.demo[data-mode="day"] .cap-night, .demo[data-mode="night"] .cap-day { display: none; }
.cap-close-day, .cap-close-night, .demo[data-view="close"] .cap-day, .demo[data-view="close"] .cap-night { display: none; }
.demo[data-view="close"][data-mode="day"] .cap-close-day, .demo[data-view="close"][data-mode="night"] .cap-close-night { display: inline; }

/* The phone sits bottom right; script.js scales it to the height of the hero */
.hero-phone {
  position: absolute; z-index: 3; right: var(--hero-pad); bottom: var(--hero-edge);
  width: 290px; transform: scale(var(--phone-k)); transform-origin: 100% 100%;
}
.phone-hint {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  width: max-content; max-width: 300px; margin: 0; padding: 6px 13px; border-radius: 15px;
  border: 1px solid rgba(255, 190, 32, .32); background: rgba(10, 12, 20, .58);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #ffd98a; font-size: .78rem; font-weight: 500; line-height: 1.35; text-align: center; text-wrap: balance;
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 9 * var(--vw), 124px); }
.section.cream { background: var(--cream); }
.section.tight { padding-block: 0; }
.section.tight-top { padding-top: 0; }
.lead { margin-top: 18px; font-size: clamp(1.05rem, 1.35 * var(--vw), 1.2rem); line-height: 1.65; color: var(--ink-2); }
.lead + .lead { margin-top: 12px; }
.intro { max-width: 800px; }
.eyebrow { margin-bottom: 14px; color: #9e650b; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

/* Soft drifting glows */
.glow-bg { overflow: hidden; overflow: clip; }
.glow-bg::before, .glow-bg::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.glow-bg::before { width: 720px; height: 720px; top: -260px; right: -220px; background: radial-gradient(closest-side, rgba(255, 190, 32, .34), rgba(255, 190, 32, 0)); }
.glow-bg::after { width: 620px; height: 620px; bottom: -260px; left: -220px; background: radial-gradient(closest-side, rgba(249, 149, 0, .2), rgba(249, 149, 0, 0)); }
.glow-bg > .wrap { position: relative; z-index: 1; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6 * var(--vw), 88px); align-items: center; }
.split-book { align-items: start; }

/* ---------- Interactive house + iPhone (the hero's scene) ---------- */
/* The stage colour follows the sky, so nothing flashes while one view fades into the other. */
.stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #07080c; transition: background-color 1.3s ease; }
.js .stage { background: #cde1f5; }
.js .demo[data-mode="night"] .stage { background: #0a1324; }
.scene { position: absolute; inset: 0; }
/* Each scene is three stacked layers: sky (stars and clouds move), the house itself, then the lights.
   The house gets its own layer so the moving sky and the changing lights never make it redraw. */
.scene svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.scene .base { will-change: transform; }
/* Whichever scene is fully covered stops being drawn. */
.scene-day { transition: visibility 0s; }
.demo[data-mode="night"] .scene-day { visibility: hidden; transition: visibility 0s linear 1.3s; }
.scene-night { opacity: 0; visibility: hidden; transition: opacity 1.3s ease, visibility 0s linear 1.3s; }
.demo[data-mode="night"] .scene-night { opacity: 1; visibility: visible; transition: opacity 1.3s ease, visibility 0s; }
/* The lights sit on their own layer, so changing them never repaints the house underneath.
   No per-light transitions: chases step like real LEDs, and the page stays smooth on phones. */
.scene .lights { position: absolute; inset: 0; opacity: var(--b, 1); transition: opacity .4s ease; will-change: opacity; }

/* December weather: snow settles on the illustration, while two dense flake layers drift
   over the house view. They pause off screen and do not intercept the scene controls. */
.snow-cover, .hero-snowfall { opacity: 0; transition: opacity 2.4s ease; pointer-events: none; }
.demo[data-weather="snow"] .snow-cover, .demo[data-weather="snow"] .hero-snowfall { opacity: 1; }
.hero-snowfall { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, rgba(152, 190, 224, .05), transparent 45%, rgba(203, 224, 240, .09)); }
.hero-snowfall::before, .hero-snowfall::after {
  content: ""; position: absolute; inset: -420px -80px 0; pointer-events: none;
  background-repeat: repeat;
}
.hero-snowfall::before {
  background-image:
    radial-gradient(circle at 24px 32px, rgba(235, 245, 255, .8) 0 1.3px, transparent 2.1px),
    radial-gradient(circle at 133px 81px, rgba(235, 245, 255, .68) 0 1.6px, transparent 2.5px),
    radial-gradient(circle at 252px 19px, rgba(235, 245, 255, .8) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 307px 128px, rgba(235, 245, 255, .65) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 61px 193px, rgba(235, 245, 255, .75) 0 1.3px, transparent 2.2px),
    radial-gradient(circle at 203px 176px, rgba(235, 245, 255, .7) 0 1.7px, transparent 2.6px),
    radial-gradient(circle at 286px 241px, rgba(235, 245, 255, .8) 0 1.2px, transparent 2px),
    radial-gradient(circle at 104px 254px, rgba(235, 245, 255, .6) 0 1.1px, transparent 2px),
    radial-gradient(circle at 179px 32px, rgba(235, 245, 255, .72) 0 1.4px, transparent 2.3px),
    radial-gradient(circle at 40px 116px, rgba(235, 245, 255, .68) 0 1.8px, transparent 2.7px),
    radial-gradient(circle at 253px 109px, rgba(235, 245, 255, .6) 0 1px, transparent 1.9px),
    radial-gradient(circle at 150px 210px, rgba(235, 245, 255, .7) 0 1.3px, transparent 2.2px);
  background-size: 340px 280px;
}
.hero-snowfall::after {
  background-image:
    radial-gradient(circle at 82px 68px, rgba(250, 253, 255, .95) 0 2.2px, transparent 3.7px),
    radial-gradient(circle at 251px 163px, rgba(250, 253, 255, .8) 0 2.6px, transparent 4.2px),
    radial-gradient(circle at 405px 32px, rgba(250, 253, 255, .88) 0 1.9px, transparent 3.4px),
    radial-gradient(circle at 347px 302px, rgba(250, 253, 255, .9) 0 2.3px, transparent 3.8px),
    radial-gradient(circle at 36px 249px, rgba(250, 253, 255, .82) 0 2px, transparent 3.5px),
    radial-gradient(circle at 173px 324px, rgba(250, 253, 255, .72) 0 2.7px, transparent 4.4px),
    radial-gradient(circle at 185px 26px, rgba(250, 253, 255, .85) 0 1.8px, transparent 3.3px);
  background-size: 460px 360px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-snowfall::before { animation: hero-snow-far 14s linear infinite paused; }
  .hero-snowfall::after { animation: hero-snow-near 11s linear infinite paused; }
  .demo[data-weather="snow"][data-demo-active="true"]:not([data-view="close"]) .hero-snowfall::before,
  .demo[data-weather="snow"][data-demo-active="true"]:not([data-view="close"]) .hero-snowfall::after { animation-play-state: running; }
}
@keyframes hero-snow-far { 50% { transform: translate3d(14px, 140px, 0); } to { transform: translate3d(0, 280px, 0); } }
@keyframes hero-snow-near { 50% { transform: translate3d(-18px, 180px, 0); } to { transform: translate3d(0, 360px, 0); } }
@media (prefers-reduced-motion: reduce) {
  .snow-cover, .hero-snowfall { transition: none; }
  .hero-snowfall::after { opacity: .4; }
}

/* House view ↔ up-close view: the house zooms into the roof edge, then the close-up settles in. */
.view { position: absolute; inset: 0; }
.view-house { transform-origin: 66% 45%; transition: transform .9s cubic-bezier(.65, 0, .35, 1), opacity .5s ease .1s, visibility 0s; }
.view-close { visibility: hidden; opacity: 0; transform: scale(1.14); transition: opacity .45s ease, transform .6s ease, visibility 0s linear .6s; }
.demo[data-view="close"] .view-house { visibility: hidden; opacity: 0; transform: scale(3.2); transition: transform 1s cubic-bezier(.65, 0, .35, 1), opacity .45s ease .45s, visibility 0s linear 1s; }
.demo[data-view="close"] .view-close { visibility: visible; opacity: 1; transform: none; transition: opacity .6s ease .45s, transform 1.2s cubic-bezier(.2, .75, .25, 1) .4s, visibility 0s; }
.cu-cam { position: absolute; inset: 0; }

/* Labels on the close-up: a dot on the part, a thin line, a small tag */
.cu-tags { position: absolute; inset: 0; pointer-events: none; }
.cu-tag { --len: 30px; position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; opacity: 0; transition: opacity .4s ease; }
.demo[data-view="close"] .cu-tag { opacity: 1; transition: opacity .6s ease 1.5s; }
.demo[data-mode="day"] .cu-tag[data-when="night"] { display: none; }
.cu-tag::before { content: ""; position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .28), 0 1px 5px rgba(0, 0, 0, .45); }
.cu-tag::after { content: ""; position: absolute; left: -.5px; bottom: 5px; width: 1px; height: var(--len); background: rgba(255, 255, 255, .85); box-shadow: 0 0 3px rgba(0, 0, 0, .35); }
.cu-tag b { position: absolute; left: 0; bottom: calc(var(--len) + 5px); transform: translateX(-50%); padding: 6px 11px; border-radius: 999px; background: rgba(12, 14, 20, .74); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: .76rem; font-weight: 600; line-height: 1.2; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cu-tag[data-dir="down"]::after { top: 5px; bottom: auto; }
.cu-tag[data-dir="down"] b { top: calc(var(--len) + 5px); bottom: auto; }

/* The scene's own buttons, bottom centre: Day / Night, then "See up close" / "Back to house" */
.stage-tools { position: absolute; z-index: 3; left: 50%; bottom: var(--hero-edge); transform: translateX(-50%); display: flex; align-items: stretch; gap: 10px; }
.zoom-toggle { display: inline-flex; align-items: center; white-space: nowrap; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--ink); font: 600 .82rem/1 var(--font-body); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: background .6s ease, color .6s ease, transform .15s ease; }
.zoom-toggle:hover { transform: translateY(-1px); }
.zoom-toggle > span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px 9px 12px; }
.zoom-toggle .icon { width: 16px; height: 16px; }
.zoom-toggle .z-back, .demo[data-view="close"] .zoom-toggle .z-in { display: none; }
.demo[data-view="close"] .zoom-toggle .z-back { display: inline-flex; }
.demo[data-mode="night"] .zoom-toggle { background: rgba(255, 255, 255, .14); color: #fff; }

.mode { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .72); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .6s ease; }
.mode button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 13px 7px 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .3s ease, color .3s ease; }
.mode .icon { width: 15px; height: 15px; }
.mode button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.demo[data-mode="night"] .mode { background: rgba(255, 255, 255, .14); }
.demo[data-mode="night"] .mode button { color: rgba(255, 255, 255, .82); }
.demo[data-mode="night"] .mode button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* iPhone: a dark app with the site's amber accents */
.iphone {
  position: relative; width: 290px; max-width: 100%;
  padding: 10px; border-radius: 52px;
  background: linear-gradient(145deg, #4a4b52 0%, #1a1b1f 38%, #2b2c31 100%);
  box-shadow: inset 0 0 0 1.5px #5d5e66, inset 0 0 0 4px #0b0b0d, 0 50px 80px -34px rgba(0, 0, 0, .75), 0 24px 40px -24px rgba(0, 0, 0, .6);
}
.iphone::before, .iphone::after { content: ""; position: absolute; width: 3px; background: #33343a; }
.iphone::before { left: -3px; top: 118px; height: 24px; border-radius: 2px 0 0 2px; box-shadow: 0 46px 0 0 #33343a, 0 50px 0 0 #33343a, 0 96px 0 0 #33343a, 0 100px 0 0 #33343a; }
.iphone::after { right: -3px; top: 176px; height: 72px; border-radius: 0 2px 2px 0; }
.iphone-screen { --phone-bg: #15161b; --phone-surface: #22242b; --phone-line: #383b45; position: relative; display: flex; flex-direction: column; min-height: 572px; padding: 0 14px 30px; border-radius: 42px; overflow: hidden; color: #f6f5f2; background: radial-gradient(110% 46% at 96% 0%, rgba(255, 190, 32, .1), rgba(255, 190, 32, 0) 72%), var(--phone-bg); }
.island { position: absolute; top: 11px; left: 50%; width: 88px; height: 26px; margin-left: -44px; border-radius: 20px; background: #000; }
.statusbar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 2px 12px 0 16px; font: 600 .84rem/1 var(--font-body); }
.statusbar svg { fill: currentColor; }
.home-bar { position: absolute; left: 50%; bottom: 9px; width: 104px; height: 4px; margin-left: -52px; border-radius: 4px; background: rgba(255, 255, 255, .55); }
.app { display: flex; flex-direction: column; flex: 1; padding-top: 4px; }
.app-head { display: flex; align-items: center; justify-content: space-between; }
.app-logo { display: block; height: 27px; width: auto; aspect-ratio: 934 / 342; margin: 0 0 2px -3px; overflow: visible; color: #f6f5f2; }
.app-head strong { display: block; font: 700 1.15rem/1.2 var(--font-head); letter-spacing: -.02em; }
.power { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--phone-surface); color: #c5c7d0; box-shadow: inset 0 0 0 1px var(--phone-line); cursor: pointer; transition: color .2s ease, background .2s ease, box-shadow .2s ease; }
.power .icon { width: 17px; height: 17px; }
.power[aria-pressed="true"] { color: #1a1205; background: linear-gradient(180deg, #ffc533, #f99500); box-shadow: 0 8px 18px -6px rgba(249, 149, 0, .75); }
.app-label { margin: 15px 0 8px; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d6b77d; }
.swatches { display: flex; justify-content: space-between; }
.swatches button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 2px var(--phone-bg), 0 0 0 3px transparent; transition: box-shadow .2s ease, transform .15s ease; }
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 2px var(--phone-bg), 0 0 0 4px #f6f5f2; }
.slider { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--amber) var(--p, 100%), #444750 var(--p, 100%)); }
.slider::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--amber) var(--p, 100%), #444750 var(--p, 100%)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: #f6f5f2; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.slider::-moz-range-thumb { width: 20px; height: 20px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: #f6f5f2; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 11px; background: var(--phone-surface); box-shadow: inset 0 0 0 1px var(--phone-line); }
.seg button { padding: 8px 2px; border: 0; border-radius: 8px; background: none; color: #c5c7d0; font-size: .72rem; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease; }
.seg button[aria-pressed="true"] { background: #454852; color: #fff; }
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.looks button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px 11px 10px; border-radius: 14px; border: 1px solid var(--phone-line); background: var(--phone-surface); color: #f6f5f2; font-size: .74rem; font-weight: 600; line-height: 1.15; text-align: left; cursor: pointer; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.looks button:hover { border-color: #b79558; transform: translateY(-1px); }
.looks button[aria-pressed="true"] { border-color: var(--amber); background: #382d1b; box-shadow: 0 10px 18px -14px rgba(249, 149, 0, .6); }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 9px 10px 9px 12px; border-radius: 14px; background: var(--phone-surface); box-shadow: inset 0 0 0 1px var(--phone-line); font-size: .76rem; font-weight: 600; cursor: pointer; }
.timer > span { display: inline-flex; align-items: center; gap: 8px; }
.timer .icon { width: 15px; height: 15px; color: var(--amber); }
.switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 42px; height: 25px; margin: 0; border-radius: 99px; background: #444750; cursor: pointer; transition: background .25s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s ease; }
.switch:checked { background: var(--amber); }
.switch:checked::after { transform: translateX(17px); }
.dots { display: inline-flex; gap: 4px; }
.dots b { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(20, 21, 26, .16); }

/* ---------- What it is ---------- */
/* One section in five parts: the idea (text on the left, the photo on the right), what makes it permanent,
   light by light, track vs. stick-on, and what you get. Every part after the first is a .block. */
/* The photo is the star: the text keeps a set width on the left and the photo takes the rest, reaching past
   the right edge of the page column (by up to 240px, always leaving a margin before the window edge). */
.what-split {
  --bleed: clamp(0px, (100 * var(--vw) - 100%) / 2 - 48px, 240px);
  display: grid; grid-template-columns: minmax(0, clamp(340px, 28 * var(--vw), 400px)) minmax(0, 1fr); gap: clamp(36px, 5 * var(--vw), 72px); align-items: center;
  margin-right: calc(-1 * var(--bleed));
}
.what-text .lead { margin-top: 20px; }
.what-text .lead + .lead { margin-top: 14px; }
.block { margin-top: clamp(72px, 9 * var(--vw), 120px); }
.block-head h3, .lbl-head h3, .get h3 { font-size: clamp(1.5rem, 2.6 * var(--vw), 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }

/* A real home, lit: the photo with its mood buttons underneath, together in one dark card.
   (The card is the timeline for the slow zoom further down, in Motion.) */
.photo { position: relative; width: 100%; margin: 0; padding: 10px; border-radius: 30px; background: #15161b; box-shadow: 0 60px 100px -60px rgba(120, 80, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .05); view-timeline: --photo block; }
.js .photo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.photo-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 21px; overflow: hidden; background: #07080c; }
/* Still frames of the same home, changed only by the visitor (or by the short show when it scrolls into view). */
.photo-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; display: block; opacity: 0; transition: opacity .7s ease; }
.photo-frame.is-active { opacity: 1; }
.photo-controls { display: none; }
.js .photo-controls { display: block; }
/* "Set the mood" sits on the photo's top-left corner, like a live badge */
.photo-controls-heading { position: absolute; z-index: 1; top: 24px; left: 24px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(21, 22, 27, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #e6c98f; font-size: .64rem; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .14em; }
.photo-live-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.photo-looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.photo-looks button {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 7px; border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: #c5c7d0; font-size: .8rem; font-weight: 500; line-height: 1.2; text-align: left; white-space: nowrap; cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.photo-looks button:hover { color: #f6f5f2; background: #22242b; }
.photo-looks button[aria-pressed="true"] { color: #f6f5f2; font-weight: 600; border-color: #b79558; background: #382d1b; }
.photo-looks .icon { width: 14px; height: 14px; stroke-width: 1.6; }
.photo-swatch { width: 14px; height: 14px; flex: none; border-radius: 50%; background: linear-gradient(90deg, var(--swatch-a) 50%, var(--swatch-b) 50%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.photo-status.is-error { position: static; clip-path: none; width: auto; height: auto; margin: 0; overflow: visible; white-space: normal; color: #b42318; font-size: .8rem; }

/* What makes it permanent: the title, a line of text and the track colour picker stay in view on the left
   while the six reasons scroll by on the right, two by two */
.perm { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(36px, 5 * var(--vw), 72px); align-items: start; }
.perm-side { position: sticky; top: calc(10 * var(--vh)); container-type: inline-size; }
.perm-lead { margin-top: 18px; max-width: 30em; color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; }
/* The small label runs into one big word, underlined by a row of lights. The word is sized to its column
   (cqi), so the longer French word still fits on one line. */
.why-title { display: grid; justify-items: start; }
.why-title .eyebrow { margin-bottom: 6px; font-family: var(--font-body); line-height: 1.6; }
.why-word { position: relative; padding-bottom: .24em; font-size: clamp(2.4rem, 4.2 * var(--vw), 3.6rem); font-size: clamp(2.4rem, 14cqi, 3.8rem); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.why-word::after {
  content: ""; position: absolute; left: .05em; right: .1em; bottom: 0; height: 10px;
  background: radial-gradient(circle at 50% 50%, #ffa50a 0 3px, rgba(255, 165, 10, 0) 3.8px) 0 0 / 18px 10px space no-repeat;
  filter: drop-shadow(0 0 5px rgba(249, 149, 0, .8));
}
/* Those lights switch on from left to right when the title scrolls into view */
.js .why-word::after { clip-path: inset(-12px 100% -12px -12px); transition: clip-path 1.2s ease .3s; }
.js .why-title.in .why-word::after { clip-path: inset(-12px); }

/* Six reasons, two across. The glow follows the cursor (script.js sets --mx / --my). */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feat {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr;
  grid-template-areas: "icon . num" "title title title" "text text text";
  padding: 24px 24px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--cream-line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feat > * { position: relative; }
.feat::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 190, 32, .26), transparent 70%); transition: opacity .3s ease; }
.feat:hover { transform: translateY(-4px); border-color: #f5c777; box-shadow: 0 22px 44px -26px rgba(160, 100, 0, .5); }
.feat:hover::before { opacity: 1; }
.feat-icon { grid-area: icon; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background-color: var(--cream); color: #d27a00; transition: background-color .25s ease, color .25s ease, transform .3s ease; }
.feat:hover .feat-icon { background-color: var(--amber-2); color: #1a1205; transform: scale(1.06) rotate(-5deg); }
.feat-num { grid-area: num; align-self: start; color: #c79a4d; font: 600 .72rem/1 var(--font-body); letter-spacing: .1em; }
.feat h4 { grid-area: title; margin: 18px 0 8px; font: 600 1.1rem/1.3 var(--font-head); letter-spacing: -.01em; }
.feat p { grid-area: text; align-self: start; font-size: .96rem; line-height: 1.65; color: var(--ink-2); }

/* Track colour picker (under the title): a little piece of track that takes the colour picked.
   The choice is kept on #what, so the run of lights further down wears the same track. */
.fit { margin-top: 28px; padding: 20px 20px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--cream-line); box-shadow: 0 30px 60px -46px rgba(140, 90, 0, .55); }
.fit-view { position: relative; height: 24px; border-radius: 7px; background-color: #f4f2ec; box-shadow: inset 0 0 0 1px rgba(60, 50, 30, .16), inset 0 -7px 8px -6px rgba(60, 50, 30, .22), 0 8px 14px -10px rgba(60, 40, 0, .5); transition: background-color .35s ease; }
.fit-view::before { content: ""; position: absolute; inset: 0 10px; background: radial-gradient(circle at 50% 50%, #fff 0 2.2px, #ffd27d 2.8px 4.4px, rgba(40, 30, 10, .32) 4.9px 5.7px, rgba(40, 30, 10, 0) 6.2px) 0 50% / 40px 100% space no-repeat; }
#what[data-track="black"] .fit-view { background-color: #2a2b2f; }
/* Its lights switch on from left to right when the picker scrolls into view */
.js .fit .fit-view::before { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s ease .45s; }
.js .fit.in .fit-view::before { clip-path: inset(0); }
.fit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin-top: 14px; }
.fit-label { color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.fit-opts { display: flex; gap: 6px; }
.fit-opts button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background-color: var(--card); color: var(--ink-2); font-size: .8rem; font-weight: 500; line-height: 1.2; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.fit-opts button:hover { border-color: #e2c078; }
.fit-opts button[aria-pressed="true"] { border-color: #e8a52f; background-color: #fff3dc; color: var(--ink); font-weight: 600; }
.fit-opts i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }

/* Light by light: a night panel with a run of lights across it. script.js adds the lights and sets --n,
   the number of lights that fit, so the spacing, the glows and the "8 in" mark all follow the width. */
.lbl {
  --pad: clamp(24px, 4.4 * var(--vw), 56px);
  position: relative; overflow: hidden; padding: var(--pad); border-radius: 28px; color: #fff;
  background: radial-gradient(60% 55% at 100% 0%, rgba(249, 149, 0, .18), transparent 62%), radial-gradient(55% 60% at 0% 100%, rgba(86, 128, 255, .14), transparent 60%), var(--dark);
}
.lbl .eyebrow { color: #e3b866; }
.lbl-head { max-width: 700px; }
.lbl-sub { margin-top: 12px; color: rgba(255, 255, 255, .76); font-size: 1.05rem; line-height: 1.65; }
.lbl-stage, .lbl-tools { display: none; }
/* The stage fades out toward the bottom, so the washes melt into the panel instead of ending in an edge. */
.js .lbl-stage { display: block; position: relative; height: 164px; margin: 30px calc(-1 * var(--pad)) 0; -webkit-mask-image: linear-gradient(#000 56%, transparent 96%); mask-image: linear-gradient(#000 56%, transparent 96%); }
/* The roof edge, with the track screwed under it */
.lbl-stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 20px; background: linear-gradient(180deg, #2c303b, #1c1f27); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.lbl-run { position: absolute; inset: 20px 0 auto; height: 14px; display: flex; align-items: center; justify-content: space-around; container-type: inline-size; background: linear-gradient(180deg, #f3f0e9, #c8c3b8); box-shadow: 0 3px 8px rgba(0, 0, 0, .55); }
#what[data-track="black"] .lbl-run { background: linear-gradient(180deg, #3b3d44, #232429); }
/* Each light takes its colour from `color`, so the lens, its halo and its wash change together. */
.lbl-light {
  position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; color: #ffdca3;
  background: radial-gradient(circle at 50% 42%, #fff 0 24%, currentColor 64%);
  box-shadow: 0 0 0 1.5px rgba(24, 24, 30, .55), 0 0 12px 3px currentColor;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .3s linear, opacity .22s linear;
}
.lbl-light[hidden] { display: none; }
/* A finger-sized target around each light */
.lbl-light::before { content: ""; position: absolute; left: 50%; top: -20px; width: 44px; width: calc(100cqw / var(--n, 20)); height: 76px; transform: translateX(-50%); }
/* The wash each light casts down the wall */
.lbl-light::after { content: ""; position: absolute; left: 50%; top: 10px; width: 140px; width: calc(300cqw / var(--n, 20)); height: 150px; transform: translateX(-50%); background: radial-gradient(50% 100% at 50% 0, currentColor, transparent 72%); opacity: .5; pointer-events: none; }
.lbl[data-fx="fade"] .lbl-light { transition: color 1.6s linear, opacity .4s linear; }
.lbl .lbl-light.is-picked { transition-duration: .12s; animation: lbl-pick .4s ease; }
@keyframes lbl-pick { 35% { transform: scale(1.7); } }
/* One light every 8 inches: a small measure between two lights */
.lbl-gap { position: absolute; top: 50px; left: calc(150% / var(--n, 20)); width: calc(100% / var(--n, 20)); height: 9px; border: solid rgba(255, 255, 255, .75); border-width: 0 1px; pointer-events: none; }
.lbl-gap::before { content: ""; position: absolute; inset: 4px 0 auto; border-top: 1px solid rgba(255, 255, 255, .75); }
.lbl-gap b { position: absolute; left: 50%; top: 15px; transform: translateX(-50%); padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(12, 14, 20, .74); color: #fff; font-size: .72rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.js .lbl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.lbl-fx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; min-width: min(430px, 100%); padding: 5px; border: 1px solid #383b45; border-radius: 16px; background: #15161b; box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .55); }
.lbl-fx button { min-height: 40px; padding: 8px 6px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #c5c7d0; font-size: .84rem; font-weight: 500; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.lbl-fx button:hover { color: #f6f5f2; background: #22242b; }
.lbl-fx button[aria-pressed="true"] { color: #f6f5f2; font-weight: 600; border-color: #b79558; background: #382d1b; }
.lbl-hint { display: inline-flex; align-items: center; gap: 8px; color: #ffd98a; font-size: .86rem; font-weight: 500; line-height: 1.35; }
.lbl-hint .icon { width: 17px; height: 17px; }
/* What the app does */
.lbl-app { margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .1); }
.lbl-app h4 { margin: 0; font: 600 1.15rem/1.3 var(--font-head); letter-spacing: -.01em; }
.lbl-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lbl-points li { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background-color: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .9); font-size: .95rem; line-height: 1.45; transition: transform .25s ease, border-color .25s ease, background-color .25s ease; }
.lbl-points li:hover { transform: translateY(-3px); border-color: rgba(255, 190, 32, .5); background-color: rgba(255, 255, 255, .08); }
.lbl-points .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: rgba(255, 190, 32, .13); color: var(--amber-2); transition: transform .3s ease; }
.lbl-points li:hover .icon { transform: scale(1.08) rotate(-5deg); }
.lbl-power { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: #ffd98a; font-size: .95rem; line-height: 1.45; }
.lbl-power .icon { width: 18px; height: 18px; }

/* Track vs. stick-on: a table whose Lumio column stands out */
.block-head { max-width: 760px; }
.cmp-card { margin-top: 28px; padding: clamp(8px, 1.6 * var(--vw), 18px); border-radius: 26px; background: #fff; border: 1px solid var(--cream-line); box-shadow: 0 40px 80px -60px rgba(140, 90, 0, .45); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp th, .cmp td { padding: 16px 22px; text-align: left; vertical-align: middle; font-size: .98rem; line-height: 1.4; transition: background-color .2s ease; }
.cmp thead > tr > :first-child { width: 23%; }
.cmp thead .us { width: 41%; }
.cmp thead th { padding-block: 18px; font: 600 1.02rem/1.3 var(--font-head); letter-spacing: -.01em; }
.cmp tbody th { color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.cmp tbody tr > * { border-top: 1px solid var(--line); }
.cmp .us { --edge: #f2b84e; background-color: #fff6e2; color: var(--ink); font-weight: 600; border-color: #f6dfb1; box-shadow: inset 1.5px 0 0 var(--edge), inset -1.5px 0 0 var(--edge); }
.cmp thead .us { border-radius: 18px 18px 0 0; box-shadow: inset 1.5px 0 0 var(--edge), inset -1.5px 0 0 var(--edge), inset 0 1.5px 0 var(--edge); }
.cmp tbody tr:last-child .us { border-radius: 0 0 18px 18px; box-shadow: inset 1.5px 0 0 var(--edge), inset -1.5px 0 0 var(--edge), inset 0 -1.5px 0 var(--edge); }
.cmp .them { color: var(--muted); }
.cmp thead .them { color: var(--ink-2); }
.cmp-brand { display: inline-flex; align-items: center; gap: 9px; }
.cmp-brand::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.cmp-cell { display: flex; align-items: flex-start; gap: 11px; }
.cmp-cell .icon { padding: 5px; border-radius: 50%; stroke-width: 3.2; }
.cmp .us .icon { background: var(--amber); color: #fff; }
.cmp .them .icon { background: #efede7; color: #a3a6ae; }
.cmp tbody tr:hover > * { background-color: #fbfaf6; }
.cmp tbody tr:hover > .us { background-color: #ffedc4; }

/* What you get, with the way to ask for it */
.get { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4 * var(--vw), 56px); padding: clamp(22px, 3.4 * var(--vw), 40px); border-radius: 28px; background: #fff; border: 1px solid var(--cream-line); box-shadow: 0 40px 80px -60px rgba(140, 90, 0, .45); }
.get-list { padding-left: clamp(0px, 1 * var(--vw), 12px); }
.get-cta { align-self: stretch; display: grid; justify-items: center; align-content: center; gap: 16px; padding: clamp(26px, 3.4 * var(--vw), 40px) clamp(20px, 3 * var(--vw), 36px); border-radius: 20px; color: #fff; text-align: center; background: radial-gradient(90% 80% at 100% 0%, rgba(249, 149, 0, .3), transparent 62%), var(--dark); }
.get-cta .btn { width: 100%; max-width: 340px; padding-block: 18px; font-size: 1.04rem; }
.get-call { color: rgba(255, 255, 255, .78); font-size: .98rem; line-height: 1.5; }
.get-call a { color: #fff; font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(255, 190, 32, .7); text-underline-offset: 4px; transition: color .2s ease; }
.get-call a:hover { color: var(--amber-2); }

/* Check lists */
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 15px; }
.checks li { position: relative; padding-left: 38px; font-size: 1.06rem; line-height: 1.45; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23f99500'/%3E%3Cpath d='M7 12.4l3.3 3.3L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Lighting inspiration gallery ---------- */
.gallery-eyebrow { margin-bottom: 14px; color: #9e650b; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.gallery-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 24px; margin-top: 38px; }
.gallery-card { grid-column: span 2; min-width: 0; margin: 0; }
.gallery-featured { grid-column: span 3; }
.gallery-image { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 20px; background: var(--dark); }
.gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-card figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; padding: 15px 2px 0; }
.gallery-card h3 { font-size: .98rem; }
.gallery-card figcaption > span { color: var(--muted); font-size: .8rem; }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-card, .gallery-featured { grid-column: auto; }
  .gallery-image { border-radius: 16px; }
}

/* ---------- Before / after ---------- */
.ba {
  --pos: 50%; --p: 50;
  position: relative; width: 100%; height: 100%; aspect-ratio: 3 / 2; border-radius: inherit; overflow: hidden;
  background: var(--sky);
  cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag { position: absolute; bottom: 12px; padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: #fff; background: rgba(10, 12, 20, .55); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.ba-tag-before { left: 12px; opacity: calc((var(--p) - 14) / 10); }
.ba-tag-after { right: 12px; color: #1a1205; background: linear-gradient(180deg, #ffc533, #f99500); border-color: transparent; opacity: calc((86 - var(--p)) / 10); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, .5); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, .4), 0 0 0 5px rgba(255, 255, 255, .18); transition: transform .2s ease; }
.ba:hover .ba-handle span, .ba.dragging .ba-handle span { transform: scale(1.1); }
.ba-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ba:has(.ba-range:focus-visible) .ba-handle span { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- Weather panel ---------- */
.panel {
  position: relative; overflow: hidden; padding: clamp(28px, 5 * var(--vw), 60px); border-radius: 28px; color: #fff;
  background: radial-gradient(60% 90% at 92% -10%, rgba(249, 149, 0, .24), transparent 60%), radial-gradient(55% 80% at 0% 110%, rgba(86, 128, 255, .2), transparent 60%), var(--dark);
}
.panel > * { position: relative; z-index: 1; }
.panel::before, .panel::after {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: -260px; bottom: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 24px 30px, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 118px 96px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 196px 44px, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 70px 180px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 230px 214px, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 150px 240px, #fff 50%, transparent 52%);
  background-size: 260px 260px; opacity: .2;
}
.panel::after { background-size: 180px 180px; background-position: 60px 0; top: -180px; opacity: .12; }
.panel-sub { margin-top: 10px; font-size: 1.08rem; color: rgba(255, 255, 255, .7); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.grid-4 .icon { width: 30px; height: 30px; color: var(--amber-2); transition: transform .3s ease; }
.grid-4 > div:hover .icon { transform: translateY(-3px) scale(1.1); }
.grid-4 h3 { margin: 14px 0 6px; }
.grid-4 p { font-size: .95rem; line-height: 1.55; color: rgba(255, 255, 255, .72); }

/* ---------- Product diagram ---------- */
.lights-heading { max-width: 700px; }
.lights-eyebrow { margin-bottom: 14px; color: #9e650b; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.lights-heading .lead { margin-top: 14px; }
.track-figure { margin: 38px 0 0; }
.track-diagram {
  position: relative; isolation: isolate; height: 700px; overflow: hidden;
  border: 1px solid #e8e6df; border-radius: 28px; background: #f3f1ed;
}
.track-visual { position: absolute; inset: 0; pointer-events: none; }
.track-visual > img { position: absolute; width: 56%; height: auto; left: 22%; top: 20%; }
.track-leaders { position: absolute; inset: 0; width: 100%; height: 100%; color: #a9a28f; overflow: visible; }
.track-pin circle { fill: #fffaf0; stroke: #d5a04d; stroke-width: 1.2; }
.track-pin text { fill: #8b5b0b; font: 600 11px var(--font-body); text-anchor: middle; }
.track-callout {
  position: absolute; z-index: 1; width: 23%; max-width: 256px; padding: 17px 19px 18px;
  border: 1px solid rgba(203, 196, 181, .6); border-radius: 13px; background: rgba(255, 255, 255, .93);
  box-shadow: 0 7px 22px -14px rgba(38, 32, 17, .2);
}
.track-callout-1, .track-callout-2, .track-callout-3 { left: 28px; }
.track-callout-4, .track-callout-5, .track-callout-6 { right: 28px; }
.track-callout-1, .track-callout-4 { top: 40px; }
.track-callout-2, .track-callout-5 { top: 264px; }
.track-callout-3, .track-callout-6 { top: 488px; }
.track-callout-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.track-number { font: 600 .7rem/1 var(--font-body); color: #a86a0c; letter-spacing: .08em; }
.track-callout-top .icon { width: 18px; height: 18px; color: #a86a0c; stroke-width: 1.5; }
.track-callout h3 { font-size: .96rem; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; }
.track-callout p { margin-top: 7px; font-size: .83rem; line-height: 1.6; color: #676760; }
.track-finish-swatches, .track-colour-dots { display: flex; gap: 6px; margin-top: 12px; }
.track-finish-swatches i { display: block; width: 27px; height: 12px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 3px; background: #f2f0e9; }
.track-finish-swatches i:nth-child(2) { background: #c7c5be; }
.track-finish-swatches i:nth-child(3) { background: #71665b; }
.track-finish-swatches i:nth-child(4) { background: #37383a; }
.track-colour-dots i { width: 9px; height: 9px; border-radius: 50%; background: #efba57; }
.track-colour-dots i:nth-child(2) { background: #e47970; }
.track-colour-dots i:nth-child(3) { background: #64aa8c; }
.track-colour-dots i:nth-child(4) { background: #7a9ed0; }
.track-colour-dots i:nth-child(5) { background: #fff9e5; border: 1px solid #ddd4bf; }
.track-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 6px 0; }
.track-warranty { display: inline-flex; align-items: center; gap: 9px; font-size: .85rem; font-weight: 500; color: #5c4e36; }
.track-warranty .icon { width: 20px; height: 20px; color: #b77b15; stroke-width: 1.6; }
.track-illustration-note { font-size: .73rem; color: var(--muted); }

/* Above 960px the page is scaled to 85%, so the full diagram always has the 1100px+ it needs. */
@media (max-width: 960px) {
  .track-diagram { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 24px 24px; }
  .track-visual { position: relative; grid-column: 1 / -1; aspect-ratio: 1160 / 700; margin: 0 -24px; }
  .track-visual > img { width: 90%; left: 5%; top: 0; }
  .track-leaders { transform: scale(1.607); transform-origin: 50% 53%; }
  .track-connector-lines { display: none; }
  .track-pin circle { r: 16px; }
  .track-pin text { font-size: 15px; }
  .track-callout { position: relative; inset: auto; width: auto; max-width: none; }
  .track-callout p { font-size: .9rem; }
}
@media (max-width: 540px) {
  .track-diagram { grid-template-columns: 1fr; gap: 12px; padding: 0 16px 16px; border-radius: 20px; }
  .track-visual { margin: 0 -16px; }
  .track-pin circle { r: 24px; }
  .track-pin text { font-size: 23px; }
  .track-callout { padding: 17px 18px; }
  .track-callout h3 { font-size: 1rem; }
  .track-callout-top { margin-bottom: 8px; }
  .track-caption { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 18px; }
}

/* ---------- Steps ---------- */
.steps { position: relative; list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 20px; left: 20px; right: calc(25% - 41px); height: 2px; background: linear-gradient(90deg, #f99500, #ffd45e); transform-origin: left center; }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%;
  background: linear-gradient(180deg, #ffc533, #f99500); color: #1a1205;
  font: 700 1rem/1 var(--font-head); box-shadow: 0 0 0 7px #fff, 0 0 22px 6px rgba(249, 149, 0, .35);
  transition: transform .25s ease;
}
.steps li:hover::before { transform: scale(1.12); }
.steps p { margin-top: 6px; font-size: .97rem; line-height: 1.55; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--card); border-top: 1px solid var(--line); }
.faq-wrap { max-width: 860px; }
.faq-wrap h2 { margin-bottom: 36px; text-align: center; }
.faq-list { display: grid; gap: 10px; }
.faq-item { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.faq-item[open] { border-color: var(--cream-line); background: var(--cream); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px clamp(18px, 3 * var(--vw), 26px); border-radius: 18px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; line-height: 1.5;
  list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--cream); }
.faq-item summary:focus-visible { outline-color: #b46b00; outline-offset: 3px; }
.faq-toggle { position: relative; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: #965900; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 14px; left: 9px; width: 12px; height: 2px; border-radius: 1px; background: currentColor; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle { background: var(--amber-2); color: var(--ink); }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }
.faq-answer { padding: 0 clamp(18px, 3 * var(--vw), 26px) 24px; color: var(--ink-2); font-size: .96rem; line-height: 1.75; }
.faq-answer p { max-width: 72ch; }

/* ---------- Book ---------- */
h2.big { font-size: clamp(2.1rem, 4.2 * var(--vw), 3.3rem); }
.contact { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.contact a { display: inline-flex; align-items: center; gap: 12px; font-size: 1.08rem; font-weight: 500; }
.contact a:hover { color: var(--amber); }
.contact .icon { width: 20px; height: 20px; color: var(--amber); }
.area { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: .98rem; color: var(--ink-2); }
.area .icon { width: 20px; height: 20px; color: var(--amber); }
.contact:not([hidden]) + .area { margin-top: 12px; }

.form { display: grid; gap: 16px; padding: clamp(22px, 3 * var(--vw), 36px); border-radius: 24px; background: #fff; border: 1px solid var(--cream-line); box-shadow: 0 40px 80px -48px rgba(140, 90, 0, .45); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.form input, .form textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.form textarea { resize: vertical; min-height: 92px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(249, 149, 0, .16); }
.form-status { min-height: 1.4em; font-size: .92rem; text-align: center; color: var(--muted); }
.form-status.ok { color: #18794e; }
.form-status.err { color: #b42318; }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.footer { padding: 26px 0 34px; background: var(--cream); border-top: 1px solid var(--cream-line); font-size: .875rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.footer .logo { color: var(--ink); }
.footer .logo svg { height: 58px; }

/* ---------- Scroll reveal ---------- */
/* script.js adds .in as each one scrolls into view. .reveal slides up, .reveal-l comes in from the left,
   .reveal-r from the right, .reveal-zoom grows into place. */
.js .reveal, .js .reveal-l, .js .reveal-r, .js .reveal-zoom { opacity: 0; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal { transform: translateY(28px); }
.js .reveal-l { transform: translateX(-48px); }
.js .reveal-r { transform: translateX(64px); }
.js .reveal-zoom { transform: scale(.94); }
.js :is(.reveal, .reveal-l, .reveal-r, .reveal-zoom).in { opacity: 1; transform: none; }
/* A .stagger list plays its items one after another (.stagger-l: each one from the left) */
.js .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .stagger.stagger-l > * { transform: translateX(-40px); }
.js .stagger.in > * { opacity: 1; transform: none; }
/* A .stagger-each list shows each item as it reaches the screen; script.js sets --d so a row goes one by one */
.js .stagger-each > :not(.shown) { opacity: 0; transform: translateY(44px) scale(.97); }
.js .stagger-each > .in { transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .9s var(--ease-out) var(--d, 0ms); }
.js .steps::before { transform: scaleX(0); transition: transform 1.5s ease .2s; }
.js .steps.shown::before { transform: scaleX(1); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-sky::after { animation: twinkle 5s ease-in-out infinite alternate; }
  .btn-glow { animation: cta-glow 3.2s ease-in-out infinite; }
  .glow-bg::before { animation: drift 18s ease-in-out infinite alternate; }
  .glow-bg::after { animation: drift 23s ease-in-out infinite alternate-reverse; }
  .panel::before { animation: snow 16s linear infinite; }
  .panel::after { animation: snow-2 26s linear infinite; }
  /* Whole layers move, so nothing gets redrawn: three star layers fade at different speeds, clouds slide. */
  .scene .stars { will-change: opacity; animation: stars 3.4s ease-in-out infinite alternate; }
  .scene .stars-2 { animation-duration: 4.7s; animation-delay: -1.6s; }
  .scene .stars-3 { animation-duration: 6.2s; animation-delay: -3.1s; }
  .scene .clouds { will-change: transform; animation: sky-drift 30s ease-in-out infinite alternate; }
  .ba-handle span { animation: nudge 2.6s ease-in-out infinite; }
  .ba:hover .ba-handle span, .ba.dragging .ba-handle span, .ba.touched .ba-handle span { animation: none; }
  .demo[data-view="close"] .cu-cam { animation: cu-drift 16s ease-in-out 1.2s infinite alternate; }
  .zoom-toggle.hint { animation: zoom-hint 1.6s ease-out 2; }
  .photo-live-dot { animation: live-dot 2.2s ease-out infinite; }
}
/* As the photo card scrolls up into view, the home settles from a slight zoom (in browsers that can tie
   an animation to scrolling; the others simply show the photo). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .photo-frame { animation: photo-settle linear both; animation-timeline: --photo; animation-range: entry 0% cover 50%; }
  }
}
@keyframes photo-settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes live-dot { from { box-shadow: 0 0 10px var(--amber), 0 0 0 0 rgba(249, 149, 0, .6); } to { box-shadow: 0 0 10px var(--amber), 0 0 0 8px rgba(249, 149, 0, 0); } }
@keyframes cu-drift { to { transform: scale(1.05) translate(-1.2%, .8%); } }
@keyframes zoom-hint { 0% { box-shadow: 0 0 0 0 rgba(255, 190, 32, .7); } 100% { box-shadow: 0 0 0 16px rgba(255, 190, 32, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes twinkle { from { opacity: .15; } to { opacity: .9; } }
@keyframes cta-glow { 50% { box-shadow: 0 8px 40px -4px rgba(249, 149, 0, .95); } }
@keyframes drift { to { transform: translate3d(-70px, 60px, 0) scale(1.18); } }
@keyframes snow { to { transform: translateY(260px); } }
@keyframes snow-2 { to { transform: translateY(180px); } }
@keyframes stars { from { opacity: .3; } to { opacity: 1; } }
@keyframes sky-drift { to { transform: translateX(3%); } }
@keyframes nudge { 50% { box-shadow: 0 6px 20px rgba(0, 0, 0, .4), 0 0 0 12px rgba(255, 255, 255, .1); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-row { grid-template-columns: 1fr auto; }
  .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .steps::before { display: none; }
  .feats, .lbl-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .get { grid-template-columns: minmax(0, 1fr); }
  .get-list { padding-left: 0; }
  /* What it is: the text, then the photo under it; the "Permanent." title and picker sit above the reasons */
  .what-split, .perm { grid-template-columns: minmax(0, 1fr); }
  .what-split { margin-right: 0; }
  .what-text { max-width: 680px; }
  .perm-side { position: static; }
  .fit { max-width: 440px; }
  .js .reveal-r { transform: translateX(40px); }
}

/* Track vs. stick-on on a phone: each row is its label, then the two answers side by side */
@media (max-width: 700px) {
  .cmp-card { padding: 14px; border-radius: 22px; }
  .cmp, .cmp thead, .cmp tbody { display: block; }
  .cmp tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
  .cmp thead > tr > :first-child { display: none; }
  .cmp thead th, .cmp thead .us { width: auto; padding: 11px 12px; border-radius: 12px; font-size: .88rem; }
  .cmp thead .us { box-shadow: inset 0 0 0 1.5px var(--edge); }
  .cmp thead .them, .cmp tbody .them { background-color: #f6f5f1; }
  .cmp tbody tr > * { border-top: 0; }
  .cmp tbody th { grid-column: 1 / -1; padding: 16px 2px 7px; }
  .cmp tbody td { padding: 11px 12px; border-radius: 12px; font-size: .9rem; }
  .cmp tbody .us, .cmp tbody tr:last-child .us { border-radius: 12px; box-shadow: inset 0 0 0 1px #f3d08e; }
  .cmp tbody tr:hover > th { background-color: transparent; }
  .cmp-brand { gap: 7px; }
  .cmp-cell { gap: 8px; }
  .cmp-cell .icon { width: 18px; height: 18px; padding: 4px; margin-top: 1px; }
}

/* On very short wide screens the phone reaches up to the header, so its "Try it" note is dropped */
@media (max-height: 580px) {
  .phone-hint { display: none; }
}

/* Hero, stacked: on narrow or portrait screens the scene is a card on top, then the headline, then the phone */
@media (max-width: 1000px), (max-aspect-ratio: 1/1) {
  .hero { --hero-layout: stacked; justify-content: flex-start; min-height: 0; padding: 96px 0 56px; }
  .hero-sky { display: block; }
  /* The house stays pinned at the top while you tap through the phone */
  .stage {
    order: -1; flex: none; position: sticky; inset: auto; top: 10px; z-index: 4;
    width: min(1160px, 100% - 40px); margin-inline: auto;
    aspect-ratio: 400 / 250; max-height: calc(64 * var(--svh)); border-radius: 22px;
    box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
  }
  .hero-shade { display: none; }
  .stage-tools { display: contents; }
  .mode, .zoom-toggle { position: absolute; z-index: 3; top: 16px; }
  .mode { left: 16px; }
  .zoom-toggle { right: 16px; }
  .hero-wrap { width: min(1160px, 100% - 40px); padding: 30px 0 0; pointer-events: auto; }
  .hero-content { max-width: 610px; }
  .demo[data-view="close"] .hero-content { opacity: 1; visibility: visible; }
  .hero .pills { display: none; }
  /* The four captions share one spot and only the current one shows, so the phone below never
     jumps when the caption changes between a short line and a long one. */
  .demo-caption {
    position: static; transform: none; display: grid; align-items: end;
    width: min(1160px, 100% - 40px); max-width: none;
    margin: 30px auto 0; padding: 0; border: 0; border-radius: 0; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; font-size: .95rem;
  }
  .demo[data-mode][data-view] .demo-caption > span { grid-area: 1 / 1; display: block; visibility: hidden; }
  .demo[data-view="house"][data-mode="day"] .demo-caption > .cap-day,
  .demo[data-view="house"][data-mode="night"] .demo-caption > .cap-night,
  .demo[data-view="close"][data-mode="day"] .demo-caption > .cap-close-day,
  .demo[data-view="close"][data-mode="night"] .demo-caption > .cap-close-night { visibility: visible; }
  .hero-phone { position: relative; right: auto; bottom: auto; transform: none; max-width: calc(100% - 40px); margin: 12px auto 0; }
  .phone-hint {
    display: block; position: static; transform: none; width: auto; max-width: none; margin: 0 0 20px; padding: 0;
    border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: #ffc85c; font-size: .9rem;
  }
}
/* Short screens held sideways: the scene scrolls away with the page instead of covering the phone */
@media (max-width: 1000px) and (max-height: 620px) {
  .stage { position: relative; top: auto; }
}

@media (max-width: 640px) {
  .wrap { width: min(1160px, 100% - 40px); }
  .logo svg { height: 50px; }
  .site-header .btn { display: none; }
  .cards { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero { padding-top: 86px; }
  .photo { padding: 8px; border-radius: 24px; }
  .js .photo { gap: 8px; }
  .photo-stage { border-radius: 17px; }
  .photo-controls-heading { top: 18px; left: 18px; padding: 4px 10px; }
  .photo-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-looks button { min-width: 0; min-height: 44px; padding: 8px; font-size: .78rem; }
  .mode { top: 10px; left: 10px; }
  .zoom-toggle { top: 10px; right: 10px; font-size: .8rem; }
  .zoom-toggle > span { gap: 6px; padding: 9px 12px 9px 10px; }
  .zoom-toggle .long { display: none; }
  .cu-tag { --len: 20px; }
  .cu-tag b { padding: 5px 9px; font-size: .7rem; }
  .cu-tag[data-tag="glow"] { display: none; }
  /* The Day/Night switch covers the top-left corner, so this label hangs below its light instead. */
  .cu-tag[data-tag="led"]::after { top: 5px; bottom: auto; }
  .cu-tag[data-tag="led"] b { top: calc(var(--len) + 5px); bottom: auto; }
  /* What makes it permanent: one card per row; icon and title share a line, the text gets the full width */
  .feats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feat { grid-template-rows: auto 1fr; grid-template-areas: "icon title num" "text text text"; column-gap: 14px; padding: 18px 18px 20px; border-radius: 18px; }
  .feat-icon { width: 42px; height: 42px; border-radius: 12px; }
  .feat-icon .icon { width: 20px; height: 20px; }
  .feat h4 { align-self: center; margin: 0; }
  .feat p { margin-top: 12px; }
  /* Light by light: the effect buttons take the full width, the app points become a list */
  .lbl { border-radius: 22px; }
  .js .lbl-stage { height: 150px; margin-top: 24px; }
  .js .lbl-tools { flex-direction: column; align-items: stretch; }
  .lbl-fx { min-width: 0; }
  .lbl-fx button { padding-inline: 2px; font-size: .8rem; }
  .lbl-hint { justify-content: center; }
  .lbl-points { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lbl-points li { flex-direction: row; align-items: center; padding: 12px 14px; border-radius: 16px; }
  .lbl-power { align-items: flex-start; }
  .lbl-power .icon { margin-top: 2px; }
  .get { border-radius: 22px; }
  .get-cta { border-radius: 16px; }
  .ba { border-radius: inherit; aspect-ratio: 3 / 2; }
  .ba-handle span { width: 38px; height: 38px; margin: -19px 0 0 -19px; }

  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { display: block; top: 20px; bottom: 50px; left: 20px; right: auto; width: 2px; height: auto; transform-origin: center top; background: linear-gradient(180deg, #f99500, #ffd45e); }
  .js .steps::before { transform: scaleY(0); }
  .js .steps.shown::before { transform: scaleY(1); }
  .steps li { padding-left: 62px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* Short landscape screens (720px of page height; 612px of window once the 85% scale applies) */
@media (max-height: 720px) and (max-width: 960px) and (min-aspect-ratio: 1/1),
       (max-height: 612px) and (min-width: 961px) and (min-aspect-ratio: 1/1) {
  .pills { display: none; }
  .hero-content { padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-l, .js .reveal-r, .js .reveal-zoom, .js .stagger > *, .js .stagger.stagger-l > * { opacity: 1; transform: none; transition: none; }
  .js .stagger-each > :not(.shown) { opacity: 1; transform: none; }
  .js .stagger-each > .in { transition: none; }
  .js .fit .fit-view::before { clip-path: none; transition: none; }
  .js .steps::before { transform: none; transition: none; }
  .btn, .scene-night, .demo[data-mode="night"] .scene-day, .demo[data-mode="night"] .scene-night, .scene .lights { transition: none; }
  .view-house, .view-close, .demo[data-view="close"] .view-house, .demo[data-view="close"] .view-close { transform: none; transition: opacity .2s ease, visibility 0s; }
  .cu-tag, .demo[data-view="close"] .cu-tag { transition: none; }
  .stage, .hero-shade::before, .hero-shade::after, .hero-content, .hero-sky, .photo-frame, .photo-looks button, .site-header { transition: none; }
  .js .why-word::after { clip-path: none; transition: none; }
  .lbl .lbl-light, .lbl[data-fx="fade"] .lbl-light, .lbl .lbl-light.is-picked { transition: none; animation: none; }
}
