/* ─────────────────────────────────────────────────────────────
   Ember — emberhome.lighting
   Tokens mirror mobile/src/v2/theme.css so the site and the app
   read as one product.
   ───────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  --bg: #0a0d13;
  --bg-deep: #05070b;
  --card: #141924;
  --card-2: #1c2331;
  --well: #070a0f;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);

  --text: #f2f4f8;
  --muted: #98a1b3;
  --faint: #6b7386;

  --ember: #ff7a22;
  --ember-hot: #ff5d2b;
  --ember-warm: #ff9a50;
  --green: #45c98b;
  --red: #ff5d5d;

  --r-card: 20px;
  --r-ctl: 13px;

  --wrap: 1180px;
  --ease: cubic-bezier(.22, .8, .3, 1);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Inter, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.06; font-weight: 760; text-wrap: balance; }
p { margin: 0; }
em { font-style: normal; color: var(--text); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ember); color: #1d0c00; padding: 10px 16px; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

/* ───────────────────────── shared bits ───────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ember); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ember);
  box-shadow: 0 0 0 0 rgba(255, 122, 34, .55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 34, .5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(255, 122, 34, 0); }
}

.lede { color: var(--muted); font-size: 16.5px; line-height: 1.62; max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: var(--r-ctl); cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 660; letter-spacing: -.005em;
  padding: 11px 18px; text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .18s var(--ease), filter .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .1); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 15px; }

.btn-primary {
  color: #2d1205; box-shadow: 0 14px 34px -14px rgba(255, 101, 37, .72), inset 0 1px 0 rgba(255, 255, 255, .3);
  background: linear-gradient(135deg, var(--ember-warm) 0%, var(--ember) 48%, var(--ember-hot) 100%);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 18px 42px -14px rgba(255, 101, 37, .8), inset 0 1px 0 rgba(255, 255, 255, .34); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────────────────────── nav ───────────────────────── */

.nav {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 20px;
  padding: 14px max(20px, calc((100vw - var(--wrap)) / 2 + 24px));
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 11, 17, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text);
  font-size: 12.5px; font-weight: 740; letter-spacing: .24em;
}
.nav-brand img { filter: drop-shadow(0 0 10px rgba(255, 122, 34, .3)); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 560;
  padding: 7px 12px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav .btn { flex: none; }

@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ───────────────────────── hero ───────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid;
  /* copy · house · console. The house gets the slack so it grows with the
     viewport, and the console sits below it rather than on top of it. */
  grid-template-rows: auto minmax(190px, 1fr) auto;
  padding: clamp(74px, 8.5vh, 108px) 0 max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(78% 46% at 50% 6%, rgba(255, 119, 33, .1), transparent 70%),
    linear-gradient(180deg, #010206 0%, #03050a 52%, var(--bg) 100%);
}

/* Deliberately NOT `z-index: 0`. A z-index makes this a stacking context and
   traps the moon's z-index inside it, so the moon could never paint above any
   sibling of .sky. With `auto` the sky's children join the hero's stacking
   context and the moon can interleave with the copy — see .hero-copy below. */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.stars { position: absolute; inset: 0; }
.star {
  position: absolute; border-radius: 50%; background: rgba(239, 246, 255, .98);
  width: var(--sz); height: var(--sz); opacity: var(--op);
  box-shadow: 0 0 calc(var(--sz) * 2.8) rgba(184, 214, 255, .7);
  animation: twinkle var(--dur) ease-in-out var(--del) infinite alternate;
}
.star:nth-child(5n + 2) { background: #ffe5c2; box-shadow: 0 0 6px rgba(255, 188, 119, .55); }
.star:nth-child(7n + 1) { background: #c9dcff; }
@keyframes twinkle {
  from { opacity: calc(var(--op) * .28); transform: translate3d(0, 2px, 0) scale(.72); }
  to   { opacity: var(--op); transform: translate3d(var(--drift), -4px, 0) scale(1.12); }
}

/* Kept to the right of the headline column — the moon drifting across live
   type reads as a bug, not a night sky. Hidden where the copy goes full width. */
.moon {
  /* Everything below scales off this, so the glow, crater detail and
     terminator shading stay in proportion at any size. */
  --moon: clamp(52px, 4vw, 78px);
  position: absolute; z-index: 2; left: 72%; top: 13%;
  width: var(--moon); height: var(--moon);
  transform: translate(-50%, -50%); opacity: .8;
  animation: moon-orbit 110s linear -14s infinite;
}
@media (max-width: 900px) { .moon { display: none; } }
.moon::before {
  content: ''; position: absolute; inset: calc(var(--moon) * -.45); border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 229, 244, .16), transparent 67%); filter: blur(4px);
}
.moon > i {
  position: absolute; inset: 0; display: block; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at 29% 35%, rgba(149, 151, 150, .28) 0 6%, transparent 7%),
    radial-gradient(circle at 65% 27%, rgba(155, 157, 154, .2) 0 8%, transparent 9%),
    radial-gradient(circle at 61% 66%, rgba(142, 145, 145, .24) 0 10%, transparent 11%),
    radial-gradient(circle at 35% 74%, rgba(161, 162, 157, .18) 0 5%, transparent 6%),
    radial-gradient(circle at 36% 30%, #fffdf0 0%, #eae9df 60%, #bfc3c6 100%);
  box-shadow:
    inset calc(var(--moon) * -.16) calc(var(--moon) * -.13) calc(var(--moon) * .25) rgba(50, 58, 72, .28),
    0 0 calc(var(--moon) * .34) rgba(217, 229, 249, .28);
  /* Separation for the eclipse: crossing the headline is white-on-white, so
     without a dark edge the moon melts into the letters instead of floating
     over them. Invisible against the sky, which is where it spends most of
     its arc. */
  filter: drop-shadow(0 1px calc(var(--moon) * .09) rgba(2, 4, 8, .75));
}
/* A full arc, rising out of the lower left and setting into the lower right.
   The moon sits at z-index 2 and the copy at 4, so it passes behind the
   headline rather than through it. */
@keyframes moon-orbit {
  0%   { left: -4%;  top: 70%; opacity: 0;   transform: translate(-50%, -50%) scale(.8); }
  9%   { opacity: .72; }
  25%  { left: 20%;  top: 40%; transform: translate(-50%, -50%) scale(.9); }
  38%  { left: 33%;  top: 22%; transform: translate(-50%, -50%) scale(.96); }
  50%  { left: 50%;  top: 13%; opacity: .84; transform: translate(-50%, -50%) scale(1); }
  62%  { left: 67%;  top: 22%; transform: translate(-50%, -50%) scale(.96); }
  75%  { left: 80%;  top: 40%; transform: translate(-50%, -50%) scale(.9); }
  91%  { opacity: .7; }
  100% { left: 104%; top: 70%; opacity: 0;   transform: translate(-50%, -50%) scale(.8); }
}

.dusk, .dawn { position: absolute; inset: 0; opacity: 0; }
.dusk {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(202, 77, 48, .2), transparent 56%),
    linear-gradient(180deg, rgba(18, 27, 52, .24), rgba(62, 29, 27, .12));
  animation: dusk 96s linear -12s infinite;
}
.dawn {
  background:
    radial-gradient(ellipse at 100% 100%, rgba(244, 126, 75, .19), transparent 57%),
    linear-gradient(180deg, rgba(20, 35, 61, .22), rgba(77, 41, 30, .11));
  animation: dawn 96s linear -12s infinite;
}
@keyframes dusk { 0%, 100% { opacity: 0; } 6% { opacity: .5; } 23% { opacity: .23; } 38% { opacity: 0; } }
@keyframes dawn { 0%, 62% { opacity: 0; } 79% { opacity: .2; } 94% { opacity: .48; } 100% { opacity: 0; } }

.aurora {
  position: absolute; width: 74%; aspect-ratio: 2 / 1; left: 13%; bottom: -18%;
  border-radius: 50%; background: rgba(255, 119, 33, .09); filter: blur(70px); opacity: .3;
  animation: aurora 22s ease-in-out infinite;
}
@keyframes aurora {
  0%, 25%, 100% { background: rgba(255, 119, 33, .09); opacity: .26; transform: scale(.96); }
  34%, 58%      { background: rgba(255, 75, 105, .08); opacity: .32; transform: translateX(2%) scale(1.05); }
  67%, 91%      { background: rgba(85, 145, 255, .085); opacity: .28; transform: translateX(-2%) scale(1); }
}

/* No z-index here on purpose: it would create a stacking context and flatten
   the children into one layer, which is exactly what we're trying to avoid.
   The children carry their own depths instead. */
.hero-copy {
  position: relative; grid-row: 1;
  max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 13px;
}
/*
 * The moon (z 2) threads between two layers of copy.
 *
 * The headline sits back in the scene at z 1, so the moon passes IN FRONT of
 * it — a slow eclipse across letters big enough that nothing becomes
 * unreadable. Everything a visitor has to read or click floats at z 3, so the
 * moon passes BEHIND the pitch and the button and never obscures either.
 *
 * That ordering is also why the arc matters: it rises through the lede and the
 * CTA (hidden behind them), then emerges over the headline. You get one
 * transition each way, at the only place it costs nothing.
 */
.hero-copy > * { position: relative; z-index: 3; }
.hero-copy h1 { z-index: 1; }
.hero-copy h1 { font-size: clamp(38px, 7.2vw, 78px); letter-spacing: -.045em; line-height: .98; }
/* Wider measure buys a line back, which the house gets instead. */
.hero-copy .lede { font-size: clamp(15px, 1.45vw, 17px); max-width: 66ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 2px; }
.hero-fine {
  display: flex; align-items: flex-start; gap: 7px;
  color: var(--faint); font-size: 12px; line-height: 1.4;
}
.hero-fine svg { flex: none; margin-top: 2px; }

/* In flow, not overlaid: the console used to float on top of the house and
   swallow the whole facade — entry, garage, windows — which is most of what
   "bespoke" is composing onto. The house now owns its own band and is
   bottom-aligned within it, so it always stands on the ground line. */
.stage {
  grid-row: 2; position: relative; z-index: 2; min-height: 0;
  pointer-events: none;
}
/* Absolute on purpose. In flow, `height: 100%` has no definite row height to
   resolve against, so the SVG falls back to its aspect ratio and inflates the
   very track it is supposed to be filling — a 620px house inside a row that
   should have been 260px. Out of flow, the row sizes itself and the house
   fills it, bottom-anchored so it always stands on the ground line. */
.house {
  display: block; position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%; max-height: 620px;
}
/* Softens the ground line into the page instead of ending on a hard edge. */
.stage::after {
  content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: 42px;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.stage-glow {
  position: absolute; left: 50%; bottom: -8%; transform: translateX(-50%);
  width: min(1100px, 96vw); height: 220px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 122, 34, .11), transparent 68%);
  filter: blur(34px);
}

.ground { fill: rgba(2, 4, 7, .9); }
.chimneys path { fill: url(#g-roof); stroke: rgba(255, 255, 255, .055); stroke-width: .7; }
.house-fill { fill: url(#g-house); }
.roofs .slope { fill: none; stroke: url(#g-roof); stroke-width: 8.5; stroke-linecap: square; stroke-linejoin: miter; }
.roofs .ridge { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1.2; }
.window rect { fill: url(#g-glass); stroke: rgba(255, 220, 169, .13); stroke-width: .75; }
.window path { fill: none; stroke: rgba(255, 221, 171, .11); stroke-width: .65; }
.window-tall rect { fill: rgba(107, 86, 59, .28); }
.garage rect { fill: rgba(8, 11, 17, .58); stroke: rgba(255, 255, 255, .07); stroke-width: .75; }
.garage path { fill: none; stroke: rgba(255, 255, 255, .038); stroke-width: .6; }
.garage circle { fill: rgba(219, 180, 122, .22); }
.entry rect { fill: rgba(7, 9, 14, .68); stroke: rgba(255, 220, 170, .09); stroke-width: .7; }
.entry rect:nth-of-type(2), .entry rect:nth-of-type(3), .entry rect:nth-of-type(4) { fill: rgba(139, 102, 59, .14); }
.entry path { fill: none; stroke: rgba(255, 255, 255, .055); stroke-width: .55; }
.entry circle { fill: rgba(255, 198, 112, .46); }
.balcony { fill: none; stroke: rgba(255, 255, 255, .11); stroke-width: .7; }
.lanterns circle {
  fill: var(--entry-glow, #ffd195);
  filter: drop-shadow(0 0 3px var(--entry-glow, rgba(255, 156, 72, .85)));
  transition: fill .5s var(--ease), filter .5s var(--ease);
}
/* Front-door emphasis — only when the house is actually being composed. */
.house.is-bespoke .lanterns circle {
  filter: drop-shadow(0 0 5px var(--entry-glow)) drop-shadow(0 0 13px var(--entry-glow));
}
.house.is-bespoke .entry circle { fill: var(--entry-glow); }
.facade-lines { fill: none; stroke: rgba(255, 255, 255, .025); stroke-width: .65; }
.landscape path { fill: #05080c; stroke: rgba(255, 255, 255, .025); stroke-width: .5; }
.landscape .tree { fill: #030509; }

/* ── the fixtures ── */

.fx {
  color: var(--c1);
  animation: march var(--cycle, 3.2s) steps(1, end) infinite;
}
.fx.is-pinned { animation: none; color: var(--pin); }
.fx.no-march { animation: none; }

@keyframes march {
  0%      { color: var(--c1); }
  16.66%  { color: var(--c2); }
  33.33%  { color: var(--c3); }
  50%     { color: var(--c4); }
  66.66%  { color: var(--c5); }
  83.33%  { color: var(--c6); }
  100%    { color: var(--c1); }
}

.fx-halo, .fx-core {
  fill: currentColor; transform-box: fill-box; transform-origin: center;
  transition: opacity .5s var(--ease);
  animation-delay: var(--del); animation-duration: var(--dur);
  animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
.fx-halo { opacity: calc(var(--lvl) * .1); animation-name: halo; }
.fx-core { opacity: var(--lvl); filter: drop-shadow(0 0 1.6px currentColor); animation-name: core; }
@keyframes core { from { opacity: calc(var(--lvl) * .58); transform: scale(.88); } to { opacity: var(--lvl); transform: scale(1.03); } }
@keyframes halo { from { opacity: calc(var(--lvl) * .035); transform: scale(.82); } to { opacity: calc(var(--lvl) * .13); transform: scale(1.05); } }

.lights.is-still .fx-halo, .lights.is-still .fx-core { animation: none; }
.lights.is-still .fx-halo { opacity: calc(var(--lvl) * .1); }
.lights.is-still .fx-core { opacity: var(--lvl); }

/* Twinkle is a sharper, faster swing than breathe — the per-fixture --dur and
   --del are already staggered, so shortening both is enough to scatter it. */
.lights.is-twinkle .fx-core,
.lights.is-twinkle .fx-halo { animation-duration: calc(var(--dur) * .3); }
.lights.is-twinkle .fx-core { animation-name: sparkle; }
@keyframes sparkle {
  from { opacity: calc(var(--lvl) * .1); transform: scale(.66); }
  to   { opacity: var(--lvl); transform: scale(1.12); }
}

/* Peak crown. The accent has to be visible from across a room or the whole
   "peaks get accents" claim is a footnote — hence the size jump and the
   double drop-shadow rather than a slightly different hue. */
.fx.is-accent .fx-core {
  transform: scale(1.9);
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 9px currentColor);
}
.fx.is-accent .fx-halo { opacity: calc(var(--lvl) * .34); transform: scale(1.5); }

/* ── console ── */

.console {
  position: relative; z-index: 5; grid-row: 3;
  width: min(940px, calc(100% - 32px)); margin: 14px auto 0;
  display: flex; flex-direction: column; gap: 10px;
  padding: 13px 15px;
  border-radius: 22px; border: 1px solid var(--line);
  background: rgba(14, 18, 26, .68);
  backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
  box-shadow: 0 26px 70px -34px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.console-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.console-row-split { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.console-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.console-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; flex: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 7px 13px 7px 9px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s, transform .18s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.chip .swatch {
  display: block; width: 26px; height: 9px; border-radius: 999px; flex: none;
  background: linear-gradient(90deg, var(--a) 0 33%, var(--b) 33% 66%, var(--c) 66%);
  box-shadow: 0 0 9px -1px var(--b);
}
.chip.is-on { color: #2d1205; border-color: transparent; background: linear-gradient(135deg, var(--ember-warm), var(--ember)); }
.chip.is-on .swatch { box-shadow: 0 0 0 1px rgba(45, 18, 5, .18); }
.chips-sm .chip { padding: 6px 13px; font-size: 12.5px; }

.switch { display: flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 44px; height: 25px; border-radius: 999px; flex: none; position: relative;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: #cbd2de; transition: transform .25s var(--ease), background .25s var(--ease);
}
.switch input:checked + .switch-track { background: linear-gradient(135deg, var(--ember-warm), var(--ember)); box-shadow: none; }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(19px); background: #2d1205; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--ember); outline-offset: 3px; }
.switch-text { display: flex; flex-direction: column; line-height: 1.3; }
.switch-text strong { font-size: 13px; font-weight: 650; }
.switch-text small { font-size: 11px; color: var(--faint); }

@media (max-width: 760px) {
  /* On a phone the console is too tall to float over the house, so the hero
     becomes a plain stack: headline, then the house, then the controls. */
  .hero {
    min-height: 0; display: flex; flex-direction: column; gap: 16px;
    padding-top: 92px; padding-bottom: 18px;
  }
  .hero-copy { gap: 12px; }
  .hero-copy h1 { font-size: clamp(34px, 10.5vw, 44px); }
  .hero-copy .lede { font-size: 14.5px; }
  /* Two clauses that the fine print and the Principles band already carry are
     dropped here, so the house still lands in the first screenful. */
  .wide-only { display: none; }

  .stage { height: clamp(155px, 23vh, 205px); }
  .house { width: 112%; margin-left: -6%; max-height: none; }
  .stage-glow { height: 120px; }

  .console { width: calc(100% - 24px); padding: 13px 0 13px 14px; gap: 11px; }
  .console-row { flex-wrap: nowrap; gap: 10px; }
  .console-row-split { flex-direction: column; align-items: stretch; gap: 12px; padding-right: 14px; }
  .console-sub { flex-wrap: nowrap; gap: 10px; }
  /* One scrolling row beats three wrapped ones — the chips stay thumb-reachable. */
  .console .chips {
    flex-wrap: nowrap; overflow-x: auto; padding-right: 14px;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .console .chips::-webkit-scrollbar { display: none; }
  .switch { padding-right: 14px; }
}

/* ───────────────────────── marquee ───────────────────────── */

.marquee {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015); padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  animation: slide 46s linear infinite;
}
.marquee-track span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; white-space: nowrap;
}
.marquee-track i { color: var(--ember); font-style: normal; opacity: .7; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ───────────────────────── bands ───────────────────────── */

.band { padding: clamp(72px, 11vh, 130px) 0; position: relative; }
.band-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .016) 22%, rgba(255, 255, 255, .016) 78%, transparent); }
.band-head { display: flex; flex-direction: column; gap: 14px; max-width: 800px; margin-bottom: 46px; }
.band-head h2 { font-size: clamp(28px, 4.6vw, 50px); }

/* ── bespoke comparison ── */

.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.compare-card {
  margin: 0; border-radius: var(--r-card); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(10, 13, 19, .6));
  overflow: hidden;
}
.compare-card-on { border-color: rgba(255, 122, 34, .38); box-shadow: 0 0 0 1px rgba(255, 122, 34, .12), 0 30px 70px -46px rgba(255, 101, 37, .5); }
.compare-frame {
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 122, 34, .05), transparent 52%), linear-gradient(180deg, #010206, #05070c);
  border-bottom: 1px solid var(--line);
}
.compare-frame svg { display: block; width: 100%; height: clamp(150px, 20vw, 210px); }
.compare-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 15px 18px 17px; }
.compare-card figcaption strong { font-size: 14.5px; font-weight: 680; }
.compare-card-on figcaption strong { color: var(--ember); }
.compare-card figcaption span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.compare-vs { color: var(--faint); display: grid; place-items: center; }

@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; gap: 16px; }
  .compare-vs { transform: rotate(90deg); }
}

.mini-fx { fill: currentColor; transition: color .45s var(--ease); }

.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.tri-item { display: flex; flex-direction: column; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.tri-num { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ember); font-weight: 600; }
.tri-item h3 { font-size: 17.5px; letter-spacing: -.02em; }
.tri-item p { color: var(--muted); font-size: 14.5px; line-height: 1.62; }
@media (max-width: 900px) { .tri { grid-template-columns: 1fr; gap: 26px; } }

/* ── app showcase ── */

.showcase { display: grid; grid-template-columns: minmax(320px, 388px) 1fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
@media (max-width: 940px) { .showcase { grid-template-columns: 1fr; justify-items: center; } .showcase-notes { max-width: 640px; } }

.phone-col { position: relative; }
.phone-col::before {
  content: ''; position: absolute; inset: -12% -18%; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 122, 34, .13), transparent 66%); filter: blur(36px);
}
.phone {
  position: relative; z-index: 1;
  width: 100%; max-width: 388px; border-radius: 44px; border: 7px solid #05070b;
  background: var(--bg); overflow: hidden; color: var(--text);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone-status { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; font-size: 12px; font-weight: 620; color: var(--muted); }
.phone-status .sig { letter-spacing: 2px; font-size: 10px; }
.phone-dim { height: 46px; background: var(--well); position: relative; }
.phone-dim::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(10, 13, 19, .2), rgba(10, 13, 19, .78)); }

.sheet {
  background: var(--card); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line-2);
  padding: 11px 18px 17px; display: flex; flex-direction: column; min-height: 560px;
}
.handle { width: 44px; height: 4.5px; border-radius: 999px; background: var(--line-2); margin: 0 auto 12px; }
.dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 16px; }
.dots button {
  width: 7px; height: 7px; border-radius: 999px; background: var(--line-2); border: none; padding: 0;
  cursor: pointer; transition: background .3s, box-shadow .3s, width .3s var(--ease);
}
.dots button.done { background: rgba(255, 122, 34, .45); }
.dots button.on { width: 18px; background: var(--ember); box-shadow: 0 0 9px rgba(255, 122, 34, .6); }

.screens { position: relative; flex: 1; }
.screen {
  position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.99);
  pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.screen.is-on { opacity: 1; transform: none; }

.wh { font-size: 20px; font-weight: 690; letter-spacing: -.02em; margin: 0 0 5px; }
.ws { font-size: 13px; color: var(--muted); margin: 0 0 16px; }

.cc {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; margin-bottom: 9px; color: inherit; font-family: inherit;
}
.cc.is-sel { border-color: var(--ember); background: rgba(255, 122, 34, .08); box-shadow: 0 0 0 1px rgba(255, 122, 34, .35); }
.cc .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc .tt { font-size: 14.5px; font-weight: 640; }
.cc .dd { font-size: 12px; color: var(--muted); margin-top: 1px; }
.cc .strip { width: 46px; height: 22px; border-radius: 7px; flex: none; }
.cc .radio { width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid var(--line-2); flex: none; }
.cc.is-sel .radio { border-color: var(--ember); background: radial-gradient(circle at center, var(--ember) 0 5px, transparent 6px); }

.swatches { display: flex; gap: 8px; margin-bottom: 15px; }
.swatches span { flex: 1; height: 54px; border-radius: 12px; background: var(--s); box-shadow: 0 8px 22px -12px var(--s), inset 0 1px 0 rgba(255, 255, 255, .3); }

.pillrow { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 6.5px 13px; font-size: 12.5px; font-weight: 560; color: var(--muted); }
.pill.is-on { border-color: transparent; background: rgba(255, 122, 34, .14); color: #ffb27a; }

.tip { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, .028); display: flex; flex-direction: column; gap: 4px; }
.tip b { font-size: 12.5px; font-weight: 640; color: var(--text); }
.tip small { font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.tip-ok { border-color: rgba(69, 201, 139, .3); background: rgba(69, 201, 139, .07); }
.tip-ok b { color: var(--green); }

.parts { display: flex; flex-direction: column; gap: 8px; }
.part { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: var(--card-2); }
.part i { width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .1); position: relative; flex: none; }
.part i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #7e8598; transition: transform .3s var(--ease), background .3s; }
.part.is-on { color: var(--text); border-color: rgba(255, 122, 34, .3); background: rgba(255, 122, 34, .07); }
.part.is-on i { background: var(--ember); }
.part.is-on i::after { transform: translateX(14px); background: #2d1205; }

.field { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ember); border-radius: 13px; padding: 13px 14px; font-size: 14.5px; font-weight: 600; background: rgba(255, 122, 34, .06); margin-bottom: 12px; }
.field i { width: 1.5px; height: 17px; background: var(--ember); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.savecard { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--card-2); }
.savecard-strip { width: 58px; height: 46px; border-radius: 11px; flex: none; background: linear-gradient(135deg, #ffdca0, #ffb45c 45%, #ff8e67); box-shadow: 0 10px 26px -14px #ffb45c; }
.savecard-meta { display: flex; flex-direction: column; }
.savecard-meta strong { font-size: 14px; font-weight: 660; }
.savecard-meta small { font-size: 11.5px; color: var(--muted); }

.wfoot { display: flex; gap: 10px; padding-top: 16px; margin-top: auto; }
.btn2 { flex: 1; border-radius: 13px; padding: 13px 0; text-align: center; font-size: 14.5px; font-weight: 650; }
.btn2.sec { border: 1px solid var(--line-2); color: var(--muted); }
.btn2.pri { background: var(--ember); color: #1d0c00; box-shadow: 0 4px 22px rgba(255, 122, 34, .32); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  padding: 15px 18px 15px 52px; border-radius: 15px;
  color: var(--faint); font-size: 14.5px; line-height: 1.6;
  transition: color .4s var(--ease), background .4s var(--ease);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 18px; top: 15px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 650; color: var(--faint);
  transition: color .4s var(--ease);
}
.steps li strong { color: var(--muted); font-weight: 660; transition: color .4s var(--ease); }
.steps li.is-on { color: var(--muted); background: rgba(255, 255, 255, .04); }
.steps li.is-on::before { color: var(--ember); }
.steps li.is-on strong { color: var(--text); }
.showcase-fine { margin-top: 18px; padding-left: 18px; font-size: 12px; color: var(--faint); }

/* ── principles grid ── */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.cell { background: var(--bg); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 11px; transition: background .3s var(--ease); }
.cell:hover { background: var(--card); }
.cell-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--ember); background: rgba(255, 122, 34, .1); }
.cell-ico svg { width: 19px; height: 19px; }
.cell h3 { font-size: 17px; letter-spacing: -.02em; }
.cell p { color: var(--muted); font-size: 14px; line-height: 1.62; }
@media (max-width: 940px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ── doors ── */

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.door {
  display: flex; flex-direction: column; align-items: flex-start; gap: 11px; text-align: left;
  padding: 26px 24px 24px; cursor: pointer; font-family: inherit; color: var(--text);
  border-radius: var(--r-card); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(10, 13, 19, .5));
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.door:hover { transform: translateY(-4px); border-color: rgba(255, 122, 34, .4); box-shadow: 0 30px 60px -40px rgba(255, 101, 37, .7); }
.door-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ember); background: rgba(255, 122, 34, .1); }
.door-ico svg { width: 21px; height: 21px; }
.door h3 { font-size: 19px; }
.door p { color: var(--muted); font-size: 14px; line-height: 1.62; }
.door-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 6px; color: var(--ember); font-size: 13.5px; font-weight: 660; }
.door:hover .door-cta svg { transform: translateX(3px); }
.door-cta svg { transition: transform .25s var(--ease); }
@media (max-width: 940px) { .doors { grid-template-columns: 1fr; } }

/* ── closer ── */

.closer { position: relative; overflow: hidden; padding: clamp(80px, 13vh, 150px) 0; text-align: center; border-top: 1px solid var(--line); }
.closer-glow { position: absolute; left: 50%; top: -30%; transform: translateX(-50%); width: min(900px, 120vw); aspect-ratio: 1.6; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 122, 34, .14), transparent 62%); filter: blur(50px); }
.closer .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closer-mark { filter: drop-shadow(0 0 22px rgba(255, 122, 34, .45)); animation: breathe 3.4s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .8; transform: scale(.97); } to { opacity: 1; transform: scale(1.04); } }
.closer h2 { font-size: clamp(30px, 5.4vw, 56px); }
.closer p { color: var(--muted); font-size: 16px; max-width: 46ch; }

/* ── footer ── */

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; }
.foot-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 740; letter-spacing: .24em; color: var(--muted); }
.foot-line { color: var(--faint); font-size: 12.5px; }
.foot-mail { margin-left: auto; }
.foot-mail a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot-mail a:hover { color: var(--ember); border-color: var(--ember); }
@media (max-width: 620px) { .foot-mail { margin-left: 0; } }

/* ───────────────────────── modal wizard ───────────────────────── */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(3, 5, 9, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative; width: min(520px, 100%); max-height: min(88vh, 780px); overflow: auto;
  border-radius: 26px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--card), #0d111a);
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 122, 34, .08);
  animation: rise .38s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }

.modal-x {
  position: absolute; z-index: 2; top: 16px; right: 16px; width: 32px; height: 32px;
  display: grid; place-items: center; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .06); color: var(--muted);
}
.modal-x:hover { background: rgba(255, 255, 255, .12); color: var(--text); }

.modal-rail { height: 2px; background: var(--line); border-radius: 999px; overflow: hidden; }
.modal-rail-fill { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, var(--ember-warm), var(--ember-hot)); transition: width .45s var(--ease); }

.modal form { padding: 30px 30px 24px; }
.mstep { display: none; flex-direction: column; gap: 12px; animation: step-in .4s var(--ease); }
.mstep.is-on { display: flex; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.mstep h2 { font-size: 27px; }
.msub { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.roles { display: grid; gap: 9px; margin-top: 6px; }
.role {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 14px 16px; cursor: pointer; font-family: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 15px; background: var(--card-2);
  transition: border-color .2s, background .2s, transform .18s var(--ease);
}
.role:hover { border-color: var(--line-2); transform: translateY(-1px); }
.role.is-on { border-color: var(--ember); background: rgba(255, 122, 34, .09); box-shadow: 0 0 0 1px rgba(255, 122, 34, .35); }
.role strong { font-size: 15px; font-weight: 660; }
.role small { font-size: 12.5px; color: var(--muted); }

.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 12.5px; font-weight: 620; color: var(--muted); display: flex; gap: 7px; align-items: baseline; }
.fld > span i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fld input, .fld select, .fld textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--well); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.fld input::placeholder, .fld textarea::placeholder { color: var(--faint); }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 122, 34, .16);
}
.fld input[aria-invalid="true"] { border-color: var(--red); }
.role-fields { display: flex; flex-direction: column; gap: 12px; }
.role-fields[hidden] { display: none; }

.merr { color: #ff8b82; font-size: 13px; font-weight: 580; }
.merr[hidden] { display: none; }
.mfine { color: var(--faint); font-size: 11.5px; line-height: 1.45; margin-top: 2px; }

.mstep-done { align-items: center; text-align: center; gap: 14px; padding: 18px 0 10px; }
.done-mark {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  color: #1d0c00; background: linear-gradient(135deg, var(--ember-warm), var(--ember-hot));
  box-shadow: 0 20px 50px -20px rgba(255, 101, 37, .9);
  animation: pop .5s var(--ease) backwards;
}
.done-mark svg { width: 30px; height: 30px; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }

.mfoot { display: flex; gap: 10px; margin-top: 22px; }
.mfoot[hidden] { display: none; }
.mfoot .btn { flex: 1; padding: 13px 18px; }
.mfoot .btn[hidden] { display: none; }

@media (max-width: 520px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-card { max-height: 94vh; border-radius: 24px 24px 0 0; }
  .modal form { padding: 26px 20px 20px; }
}

/* ───────────────────────── reduced motion ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .fx-core { opacity: var(--lvl); }
  .fx-halo { opacity: calc(var(--lvl) * .1); }
}
