/* ═══════════════════════════════════════════════════════════════════
   RAU TECH SOLUTIONS v3 — "GOLDEN MILE"
   One continuous night-time main street at blue hour.
   ═══════════════════════════════════════════════════════════════════ */

/* ——————————————————— fonts ——————————————————— */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-opsz-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/fonts/dm-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('/fonts/dm-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ——————————————————— tokens ——————————————————— */
:root {
  --bg: #160C24;
  --indigo: #241041;
  --bluehr: #2E1A55;
  --pave: #1B1030;
  --panel: #1E1338;
  --vig: #140A22;

  --gold: #FFC26E;
  --goldhot: #FFE0A3;
  --cream: #FFF3DE;
  --rose: #FF7EA8;
  --mint: #54E6A0;
  --peri: #9C8CF5;
  --red: #FF5C6C;

  --text: #FBF3EA;
  --mut: #B3A6C7;
  --sand: #E9C9A0;

  --line: rgba(156, 140, 245, .14);
  --line2: rgba(156, 140, 245, .26);
  --glass: rgba(30, 19, 56, .66);

  --disp: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --pad: clamp(20px, 4vw, 40px);
}

/* ——————————————————— reset / base ——————————————————— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: normal; }
strong { font-weight: 650; color: var(--text); }

::selection { background: rgba(255, 194, 110, .32); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(255, 194, 110, .35);
}

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: var(--pad); }
.d-only { display: inline; }

/* ═══════════════════ THE IGNITION SYSTEM ═══════════════════
   Every scene/shop exposes light state as CSS custom properties
   consumed by inline styles inside the SVGs (so <use> mirrors follow).
   DEFAULT = FULLY LIT (no-JS / reduced motion see a lit street).
   JS flips to unlit, then IntersectionObserver ignites. */
[data-scene], .shop { --sign: 1; --awn: 1; --win: 1; --open: 1; --spill: 1; --lamp: 1; }

html.js [data-scene]:not(.on),
html.js .shop:not(.lit) {
  --sign: 0; --awn: .12; --win: 0; --open: 0; --spill: 0; --lamp: 0;
}

/* neon buzz-on: one authentic stutter, never a strobe */
@keyframes neonFlick {
  0% { opacity: 0; }
  7% { opacity: .85; }
  11% { opacity: .18; }
  19% { opacity: 1; }
  25% { opacity: .3; }
  34% { opacity: 1; }
  100% { opacity: 1; }
}
html.js [data-scene].on .neon-halo { animation: neonFlick 1.15s ease-out .18s both; }
html.js .shop.lit .neon-halo { animation: neonFlick 1s ease-out .1s both; }

/* ═══════════════════ FIXED BACKDROP ═══════════════════ */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.sky, .sky > div { position: absolute; inset: 0; }

.sky-dusk {
  background: linear-gradient(180deg,
    #1B0F33 0%, #241041 34%, #2E1A55 58%, #45255F 78%, #5B3164 92%, #6B3D63 100%);
}
.sky-night {
  background: linear-gradient(180deg,
    #0C0716 0%, #130B22 42%, #1B1030 72%, #241041 100%);
  opacity: 0;
}
.sky-dawn {
  background: linear-gradient(180deg,
    rgba(22, 12, 36, 0) 46%, rgba(122, 62, 92, .26) 74%,
    rgba(255, 154, 110, .18) 90%, rgba(255, 194, 110, .22) 100%);
  opacity: 0;
}

.stars {
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, rgba(212, 200, 255, .8), transparent 100%),
    radial-gradient(1px 1px at 22% 28%, rgba(212, 200, 255, .55), transparent 100%),
    radial-gradient(1.4px 1.4px at 34% 8%, rgba(255, 240, 220, .7), transparent 100%),
    radial-gradient(1px 1px at 47% 22%, rgba(212, 200, 255, .5), transparent 100%),
    radial-gradient(1.2px 1.2px at 58% 6%, rgba(212, 200, 255, .75), transparent 100%),
    radial-gradient(1px 1px at 66% 18%, rgba(255, 240, 220, .5), transparent 100%),
    radial-gradient(1.3px 1.3px at 78% 10%, rgba(212, 200, 255, .7), transparent 100%),
    radial-gradient(1px 1px at 88% 24%, rgba(212, 200, 255, .55), transparent 100%),
    radial-gradient(1.1px 1.1px at 94% 6%, rgba(255, 240, 220, .6), transparent 100%),
    radial-gradient(1px 1px at 15% 40%, rgba(212, 200, 255, .35), transparent 100%),
    radial-gradient(1px 1px at 72% 34%, rgba(212, 200, 255, .35), transparent 100%),
    radial-gradient(1px 1px at 42% 38%, rgba(212, 200, 255, .3), transparent 100%);
  opacity: .5;
  animation: twinkleAll 7s ease-in-out infinite alternate;
}
@keyframes twinkleAll { from { opacity: .35; } to { opacity: .65; } }

.skyline {
  position: absolute;
  bottom: max(20vh, 150px);
  left: -4%;
  width: 108%;
  height: auto;
  will-change: transform;
}
.skyline .sil { fill: #150C28; }
/* windows warm on in batches as you walk the mile; no per-frame paint cost */
.skyline .wins { opacity: 0; transition: opacity 2.4s ease; }
.skyline .w1 rect, .skyline .w3 rect { fill: #E8CFA0; }
.skyline .w2 rect, .skyline .w4 rect { fill: var(--peri); }
.skyline.alive-1 .w1 { opacity: .6; }
.skyline.alive-2 .w2 { opacity: .5; }
.skyline.alive-3 .w3 { opacity: .65; }
.skyline.alive-4 .w4 { opacity: .55; }

#atmo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
#atmo.live { opacity: 1; }

.street {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: max(22vh, 170px);
  background:
    linear-gradient(180deg,
      rgba(156, 140, 245, .14) 0, rgba(156, 140, 245, 0) 3px),
    linear-gradient(180deg, #221443 0%, #1B1030 38%, #120A20 100%);
  will-change: transform;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 130% 90% at 50% 38%, transparent 52%, rgba(16, 8, 28, .55) 100%),
    linear-gradient(180deg, rgba(16, 8, 28, .5) 0%, transparent 14%);
  pointer-events: none;
}

/* ——————————————————— progress filament ——————————————————— */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: rgba(156, 140, 245, .1);
}
.progress i {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #6E4478, var(--gold) 55%, var(--goldhot) 85%, var(--rose));
  box-shadow: 0 0 12px rgba(255, 194, 110, .55);
}

/* ═══════════════════ NAV ═══════════════════ */
.nav {
  position: fixed;
  top: 2px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(18, 10, 32, .78), rgba(18, 10, 32, .48));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--disp);
  font-size: 21px;
  font-weight: 560;
  letter-spacing: .01em;
}
.brand-sub { color: var(--mut); font-weight: 420; }

.pilot {
  width: 9px; height: 9px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 12px 3px rgba(255, 194, 110, .7);
  animation: pilotPulse 3.2s ease-in-out infinite;
  will-change: opacity;
  flex: none;
}
.pilot.small { width: 7px; height: 7px; }
@keyframes pilotPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

.links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mut);
  text-decoration: none;
  padding: 8px 2px;
  transition: color .2s ease, text-shadow .2s ease;
}
.links a:hover {
  color: var(--cream);
  text-shadow: 0 0 14px rgba(255, 224, 163, .6);
}

/* ——————————————————— buttons ——————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 640;
  padding: 12px 22px;
  border-radius: 99px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.btn-primary {
  color: #2A1503;
  background: linear-gradient(180deg, var(--goldhot), var(--gold) 55%, #F0A24E);
  box-shadow:
    0 0 0 1px rgba(255, 224, 163, .45) inset,
    0 4px 18px rgba(255, 178, 92, .38),
    0 0 34px rgba(255, 194, 110, .28);
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 236, 200, .6) inset,
    0 6px 26px rgba(255, 178, 92, .5),
    0 0 54px rgba(255, 194, 110, .42);
}
.btn-big { font-size: 16.5px; padding: 16px 30px; }
.btn-ghost {
  color: var(--cream);
  background: rgba(30, 19, 56, .5);
  box-shadow: 0 0 0 1px var(--line2) inset;
}
.btn-ghost:hover { box-shadow: 0 0 0 1px rgba(255, 194, 110, .5) inset, 0 0 24px rgba(255, 194, 110, .15); }

.nav-cta { font-size: 13.5px; padding: 10px 18px; }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 92px;
}

.hero-copy {
  order: 0;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 12px var(--pad) 0;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(30, 19, 56, .6);
  border: 1px solid var(--line2);
  padding: 8px 16px;
  border-radius: 99px;
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(84, 230, 160, .8);
  animation: pilotPulse 2.6s ease-in-out infinite;
  will-change: opacity;
}

.hero h1 {
  font-family: var(--disp);
  font-size: clamp(40px, 5.1vw, 67px);
  font-weight: 580;
  line-height: 1.04;
  letter-spacing: -.014em;
  margin-top: 26px;
  text-wrap: balance;
}
.hero h1 em {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 194, 110, .5);
}

.hero .sub {
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--mut);
  max-width: 620px;
  margin: 22px auto 0;
}
.hero .sub strong { color: var(--goldhot); }

.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.meter { margin-top: 30px; }
.meter-plate {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--sand);
  background: rgba(20, 11, 36, .72);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 8px 14px;
  box-shadow: 0 0 22px rgba(255, 194, 110, .12);
}

.chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin-top: 26px;
}
.chips li {
  font-size: 13px;
  color: var(--mut);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chips li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 99px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 194, 110, .7);
}

.replay-row {
  order: 2;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: -2px;
  padding-bottom: 10px;
}
.replay {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--mut);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 10px;
  transition: color .2s ease;
}
.replay:hover { color: var(--goldhot); }

/* hero load-in choreography */
html.js .hero-copy [data-hload] { opacity: 0; }
html.js .hero-copy.live [data-hload] {
  animation: rise .85s var(--ease) both;
}
html.js .hero-copy.live [data-hload="0"] { animation-delay: .35s; }
html.js .hero-copy.live [data-hload="1"] { animation-delay: .5s; }
html.js .hero-copy.live [data-hload="2"] { animation-delay: .68s; }
html.js .hero-copy.live [data-hload="3"] { animation-delay: .86s; }
html.js .hero-copy.live [data-hload="4"] { animation-delay: 1.08s; }
html.js .hero-copy.live [data-hload="5"] { animation-delay: 1.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ——— the street scene ——— */
.hero-scene {
  order: 1;
  position: relative;
  width: min(1150px, 100%);
  margin: -54px auto 0;
  z-index: 1;
  will-change: transform;
}
.scene-svg { width: 100%; height: auto; }

.mirror-clip {
  position: relative;
  height: 150px;
  overflow: hidden;
  margin-top: -6px;
  pointer-events: none;
}
.scene-mirror {
  width: 100%;
  height: auto;
  transform: scaleY(-1);
  /* mask painted pre-flip: keep the ORIGINAL bottom (= visible top once flipped) */
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .5) 65%, transparent 92%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .5) 65%, transparent 92%);
  filter: blur(3px) saturate(1.15) brightness(.8);
  opacity: .55;
}
.mirror-clip::before {
  /* ripple shimmer over the mirror */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(180deg,
    rgba(22, 12, 36, 0) 0 3px, rgba(22, 12, 36, .05) 3px 5px);
}
.mirror-clip::after {
  /* fade the mirror out toward the bottom of the clip */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 12%, rgba(22, 12, 36, .85) 88%);
}

/* ——— scene SVG shared parts ——— */
.facade { fill: #221342; stroke: rgba(156, 140, 245, .2); stroke-width: 1; }
.facade.alt { fill: #1E1140; stroke: rgba(156, 140, 245, .18); stroke-width: 1; }
.facade-dim { fill: #1A0F33; stroke: rgba(156, 140, 245, .1); stroke-width: 1; }
.cornice { fill: #362159; }
.cornice-lip { fill: rgba(12, 6, 24, .55); }
.board { fill: #120B26; stroke: rgba(156, 140, 245, .22); stroke-width: 1; }
.board-dim { fill: #150D2C; }
.door-dim { fill: #1A0F33; }
.step-dim, .step { fill: #0F081E; }
.win-frame { fill: #311D56; }
.door { fill: #2B1A4E; }
.knob { fill: var(--sand); }

.neon-text {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .16em;
  fill: var(--rose);
}
.neon-halo {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .16em;
  fill: var(--rose);
}
.neon-text.sm, .neon-halo.sm { font-size: 17px; letter-spacing: .12em; }
.neon-text.gold, .neon-halo.gold { fill: var(--gold); }

.awn-bar { fill: #3A2260; }
.awn-cloth { fill: #542E6B; }
.awn-cloth.solid { fill: #4A2A62; }
.awn-stripe { fill: #7A3E70; }

.shopfront .awn-cloth { fill: #5C3070; }
.shopfront .awn-stripe { fill: #8A4478; }

.post { fill: #241540; }
.lamp-head { fill: #3A2260; transition: fill 1s ease; }
[data-scene].on .lamp-head, .shop.lit .lamp-head { fill: var(--goldhot); }
html.no-js .lamp-head { fill: var(--goldhot); }

.win-goods rect, .win-goods circle { fill: #170D2E; }
.trade-icon rect, .trade-icon path, .trade-icon circle { fill: #2A1503; opacity: .8; }
.trade-icon .cut { fill: #6B4A20; }

.hours-plate { fill: #241540; stroke: rgba(255, 224, 163, .5); stroke-width: 1; }

.openplate rect {
  fill: #0E2A1E;
  stroke: var(--mint);
  stroke-width: 1.6;
}
.openplate text {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .22em;
  fill: var(--mint);
}

.props .hydrant rect { fill: #241540; }
.props .bench rect { fill: #1E1138; }
.props .tree rect, .props .tree circle { fill: #150C2A; }

.neighbor { opacity: .8; }

/* ═══════════════════ FESTOON TICKER ═══════════════════ */
.festoon {
  position: relative;
  padding: 34px 0 26px;
  overflow: clip;
  transform-origin: 50% 0;
  animation: sway 9s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: rotate(.35deg); }
  to { transform: rotate(-.35deg); }
}

.festoon-wire {
  position: absolute;
  top: 10px; left: 0;
  width: 100%; height: 46px;
}
.festoon-wire path { stroke: #3A2A5E; stroke-width: 2; }

.bulbs {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 56px;
  pointer-events: none;
}
.bulbs span {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 99px;
  background: var(--goldhot);
  box-shadow: 0 0 12px 4px rgba(255, 194, 110, .6);
  animation: bulbGlow 2.8s ease-in-out infinite alternate;
  will-change: opacity;
}
.bulbs span:nth-child(1)  { left: 3%;  top: 16px; animation-delay: 0s; }
.bulbs span:nth-child(2)  { left: 11%; top: 26px; animation-delay: -.4s; }
.bulbs span:nth-child(3)  { left: 19%; top: 34px; animation-delay: -.8s; }
.bulbs span:nth-child(4)  { left: 27%; top: 40px; animation-delay: -1.2s; }
.bulbs span:nth-child(5)  { left: 35%; top: 42px; animation-delay: -1.6s; }
.bulbs span:nth-child(6)  { left: 43%; top: 40px; animation-delay: -2s; }
.bulbs span:nth-child(7)  { left: 51%; top: 36px; animation-delay: -2.4s; }
.bulbs span:nth-child(8)  { left: 59%; top: 32px; animation-delay: -.2s; }
.bulbs span:nth-child(9)  { left: 67%; top: 28px; animation-delay: -.6s; }
.bulbs span:nth-child(10) { left: 75%; top: 26px; animation-delay: -1s; }
.bulbs span:nth-child(11) { left: 83%; top: 24px; animation-delay: -1.4s; }
.bulbs span:nth-child(12) { left: 91%; top: 22px; animation-delay: -1.8s; }
.bulbs span:nth-child(13) { left: 97%; top: 20px; animation-delay: -2.2s; }
@keyframes bulbGlow {
  from { opacity: .55; }
  to { opacity: 1; }
}

.tickwrap {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.seq {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--sand);
  white-space: nowrap;
  padding-right: 12px;
}
.seq i {
  color: var(--rose);
  font-style: normal;
  font-size: 10px;
  padding: 0 22px;
  text-shadow: 0 0 10px rgba(255, 126, 168, .8);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════ STATS — THREE LIT WINDOWS ═══════════════════ */
.stats { padding: clamp(50px, 8vh, 90px) 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}

.statwin { position: relative; }

.statwin-glass {
  position: relative;
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 30px 28px 26px;
  background: linear-gradient(180deg, rgba(34, 21, 65, .8), rgba(25, 16, 54, .8));
  overflow: hidden;
  transition: border-color .8s ease, box-shadow .8s ease;
}
.statwin-glass::before {
  /* warm interior light */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 130% at 50% -20%,
    rgba(255, 224, 163, .32), rgba(255, 194, 110, .1) 55%, transparent 100%);
  opacity: var(--win);
  transition: opacity 1.1s ease;
}
.shop.lit .statwin-glass, html.no-js .statwin-glass {
  border-color: rgba(255, 194, 110, .38);
  box-shadow: 0 0 34px rgba(255, 178, 92, .16), 0 0 0 1px rgba(255, 224, 163, .12) inset;
}

.statwin .n {
  position: relative;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(38px, 4.4vw, 54px);
  letter-spacing: -.01em;
  color: var(--goldhot);
  text-shadow: 0 0 26px rgba(255, 194, 110, calc(.55 * var(--win)));
  font-variant-numeric: tabular-nums;
}
.statwin .c {
  position: relative;
  font-size: 14px;
  color: var(--mut);
  margin-top: 6px;
}

.statwin-spill {
  position: absolute;
  left: 10%; right: 10%;
  bottom: -26px;
  height: 34px;
  background: radial-gradient(50% 100% at 50% 0%,
    rgba(255, 194, 110, .28), transparent 75%);
  opacity: var(--spill);
  transition: opacity 1.2s ease .2s;
  pointer-events: none;
}

/* ═══════════════════ SECTION HEADINGS ═══════════════════ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
}
.eyebrow::before {
  content: '── ';
  color: var(--gold);
}

.title {
  font-family: var(--disp);
  font-size: clamp(31px, 3.9vw, 52px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin-top: 14px;
  max-width: 760px;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(10, 5, 18, .85), 0 0 4px rgba(10, 5, 18, .5);
}

.lede {
  font-size: 17px;
  color: var(--mut);
  max-width: 600px;
  margin-top: 16px;
  text-shadow: 0 1px 16px rgba(10, 5, 18, .8);
}

/* ═══════════════════ SERVICES — BLOCK OF FOUR SHOPS ═══════════════════ */
.services { padding: clamp(70px, 11vh, 120px) 0 40px; }

.shoprow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: 52px;
}

.shopcard { position: relative; }

.shop-art { position: relative; }
.shop-art svg { width: 100%; height: auto; }

.flag {
  position: absolute;
  top: 2px;
  right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  color: #2A0E1C;
  background: linear-gradient(180deg, #FFA8C4, var(--rose));
  padding: 6px 10px;
  border-radius: 5px;
  transform: rotate(3deg);
  box-shadow: 0 0 18px rgba(255, 126, 168, calc(.65 * var(--sign)));
  transition: box-shadow 1s ease;
}

.shop-glass {
  position: relative;
  margin-top: -4px;
  border: 1px solid var(--line2);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  padding: 26px 30px 30px;
  background: linear-gradient(180deg, rgba(38, 23, 70, .9), rgba(25, 16, 54, .88));
  overflow: hidden;
  transition: border-color .8s ease, box-shadow .8s ease, transform .35s var(--ease);
}
.shop-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 90% at 50% -30%,
    rgba(255, 224, 163, .2), rgba(255, 194, 110, .05) 55%, transparent 100%);
  opacity: var(--win);
  transition: opacity 1.1s ease .1s;
  pointer-events: none;
}
.shop.lit .shop-glass, html.no-js .shop-glass {
  border-color: rgba(255, 194, 110, .3);
  box-shadow: 0 10px 40px rgba(10, 4, 20, .5), 0 0 30px rgba(255, 178, 92, .1);
}
.shopcard:hover .shop-glass { transform: translateY(-2px); }
.shopcard:hover .shop-art { filter: brightness(1.12); }
.shop-art { transition: filter .4s ease; }

.shop-glass h3 {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -.01em;
}
.shop-glass p {
  font-size: 15px;
  color: var(--mut);
  margin-top: 10px;
}
.shop-glass ul {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.shop-glass li {
  font-size: 14px;
  color: var(--mut);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.shop-glass li::before {
  content: '✦';
  font-size: 9px;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 194, 110, .7);
}

/* ═══════════════════ PROOF — THE FLAGSHIP WINDOW ═══════════════════ */
.proof { padding: clamp(70px, 11vh, 120px) 0 60px; }

.flagship {
  position: relative;
  margin-top: 54px;
}

.flag-transom {
  display: flex;
  justify-content: center;
}
.transom-sign {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--goldhot);
  background: #120B26;
  border: 1px solid rgba(255, 194, 110, .4);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 12px 26px;
  text-shadow: 0 0 16px rgba(255, 224, 163, calc(.8 * var(--sign)));
  box-shadow: 0 0 26px rgba(255, 194, 110, calc(.22 * var(--sign)));
  transition: text-shadow 1s ease, box-shadow 1s ease;
}

.flag-glass {
  position: relative;
  border: 1px solid rgba(255, 194, 110, .32);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(40, 25, 74, .92), rgba(25, 16, 54, .92));
  overflow: hidden;
}
.flag-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% -20%,
    rgba(255, 224, 163, .18), transparent 60%);
  opacity: var(--win);
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 26px);
}
.g {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.g svg { width: clamp(74px, 8vw, 96px); height: auto; }
.g-track {
  fill: none;
  stroke: rgba(156, 140, 245, .18);
  stroke-width: 6;
}
.g-arc {
  fill: none;
  stroke: var(--mint);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 226.2;
  stroke-dashoffset: var(--arc, 0);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 6px rgba(84, 230, 160, .5));
}
html.js .shop:not(.lit) .g-arc { --arc: 226.2; }
.g-n {
  position: absolute;
  top: clamp(24px, 2.6vw, 32px);
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 500;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.g-l {
  font-size: 12.5px;
  color: var(--mut);
  margin-top: 2px;
}

.verified {
  margin-top: 22px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--mut);
}
.verified span {
  color: var(--mint);
  border: 1px solid rgba(84, 230, 160, .5);
  border-radius: 4px;
  padding: 3px 8px;
  margin-right: 10px;
  text-shadow: 0 0 12px rgba(84, 230, 160, .6);
}

.weightbar {
  margin-top: 34px;
  display: grid;
  gap: 12px;
}
.wb-row {
  display: grid;
  grid-template-columns: 150px 1fr 76px;
  align-items: center;
  gap: 14px;
}
.wb-label { font-size: 13.5px; color: var(--mut); }
.wb-val {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--sand);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wb-bar {
  height: 14px;
  border-radius: 99px;
  background: rgba(12, 6, 24, .6);
  overflow: hidden;
}
.wb-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  transform-origin: 0 50%;
  transform: scaleX(var(--w, 1));
  transition: transform 1.4s var(--ease) .3s;
}
html.js .shop:not(.lit) .wb-bar i { --w: 0; }
.wb-them i { background: linear-gradient(90deg, #8A2F44, var(--red)); width: 100%; }
.wb-us i {
  background: linear-gradient(90deg, var(--mint), #8FF5C4);
  width: 2.2%;
  min-width: 8px;
  box-shadow: 0 0 12px rgba(84, 230, 160, .7);
}
.wb-note {
  font-size: 12.5px;
  color: var(--mut);
  font-family: var(--mono);
  letter-spacing: .04em;
}

.takeoff {
  margin-top: 30px;
  border-top: 1px dashed var(--line2);
  padding-top: 22px;
  display: grid;
  gap: 10px;
}
.t-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 18px;
  font-family: var(--mono);
  font-size: 13px;
}
.t-row span { color: var(--mut); }
.t-row b { color: var(--cream); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-row em.pass {
  color: var(--mint);
  font-size: 11px;
  letter-spacing: .14em;
  border: 1px solid rgba(84, 230, 160, .4);
  border-radius: 3px;
  padding: 2px 6px;
}

.audit-link {
  justify-self: start;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--goldhot);
  text-decoration: none;
  border: 1px solid rgba(255, 194, 110, .45);
  border-radius: 8px;
  padding: 11px 18px;
  transition: box-shadow .25s ease, background .25s ease;
}
.audit-link:hover {
  background: rgba(255, 194, 110, .08);
  box-shadow: 0 0 24px rgba(255, 194, 110, .25);
}

.flag-spill {
  position: absolute;
  left: 6%; right: 6%;
  bottom: -30px;
  height: 40px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 194, 110, .3), transparent 75%);
  opacity: var(--spill);
  transition: opacity 1.2s ease .3s;
  pointer-events: none;
}

/* ═══════════════════ PROCESS — WALKING THE BLOCK ═══════════════════ */
.process { padding: clamp(70px, 11vh, 120px) 0 70px; }

.walk {
  position: relative;
  list-style: none;
  margin-top: 56px;
  display: grid;
  gap: clamp(34px, 5vh, 54px);
  padding-left: 6px;
}

.sidewalk {
  position: absolute;
  left: 36px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(156, 140, 245, .18);
}
.sidewalk::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 194, 110, .55);
  transform: scaleY(var(--walk, 0));
  transform-origin: 50% 0;
}
.lantern {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%) translateY(var(--walkY, 0px));
  border-radius: 99px;
  background: var(--goldhot);
  box-shadow:
    0 0 12px 4px rgba(255, 224, 163, .8),
    0 0 44px 18px rgba(255, 194, 110, .3);
}

.station {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  align-items: start;
}

.plaque {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.lamppost { width: 62px; height: auto; }
.pl-glow {
  opacity: 0;
  transition: opacity .9s ease;
}
.station.lit .pl-glow, html.no-js .pl-glow { opacity: 1; }
.station.lit .lamp-head, html.no-js .station .lamp-head { fill: var(--goldhot); }
.addr {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--sand);
  border: 1px solid var(--line2);
  border-radius: 4px;
  padding: 3px 8px;
  background: rgba(20, 11, 36, .7);
}

.station-body {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(25, 16, 54, .62);
  padding: 24px 28px;
  transition: border-color .8s ease, background .8s ease, opacity .8s ease;
}
html.js .station:not(.lit) .station-body { opacity: .8; }
.station.lit .station-body {
  border-color: rgba(255, 194, 110, .28);
  background: linear-gradient(180deg, rgba(38, 23, 70, .75), rgba(25, 16, 54, .7));
}

.station-body h3 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 560;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.station-body p {
  font-size: 15px;
  color: var(--mut);
  margin-top: 8px;
  max-width: 640px;
}
.station-body .time {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--sand);
  margin-top: 12px;
}

.nocharge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: #2A0E1C;
  background: linear-gradient(180deg, #FFA8C4, var(--rose));
  border-radius: 5px;
  padding: 4px 9px;
  transform: rotate(-2deg);
  box-shadow: 0 0 16px rgba(255, 126, 168, .5);
}

/* ═══════════════════ CONTACT — THE RAU STOREFRONT ═══════════════════ */
.contact { padding: clamp(70px, 11vh, 130px) 0 90px; }

.raushop { position: relative; }

.rau-awning {
  position: relative;
  z-index: 1;
  margin: 0 auto -6px;
  width: min(760px, 92%);
}
.rau-awning svg { width: 100%; height: auto; }
.rau-awning .awn-cloth { fill: #5C3070; }
.rau-awning .awn-stripe { fill: #8A4478; }
.rau-sign {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 14px;
  font-family: var(--disp);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--cream);
  text-shadow: 0 0 22px rgba(255, 224, 163, calc(.55 * var(--sign)));
}

.rau-body {
  position: relative;
  border: 1px solid rgba(255, 194, 110, .26);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(40, 25, 74, .92), rgba(25, 16, 54, .94));
  padding: clamp(34px, 5vw, 60px);
  text-align: center;
  overflow: hidden;
}
.rau-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 70% at 50% -10%,
    rgba(255, 224, 163, .16), transparent 60%);
  opacity: var(--win);
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.about-line {
  position: relative;
  font-size: 17px;
  color: var(--mut);
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  position: relative;
  font-family: var(--disp);
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 570;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin-top: 30px;
  scroll-margin-top: 110px;
  text-wrap: balance;
}

.form { position: relative; margin-top: 38px; text-align: left; }

.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.fgrid .wide { grid-column: 1 / -1; }

.fgrid label { display: block; }
.flabel {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
  transition: color .25s ease, text-shadow .25s ease;
}
.flabel em { color: var(--mut); text-transform: none; letter-spacing: .06em; }

.fgrid input, .fgrid textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  background: rgba(14, 7, 26, .62);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.fgrid textarea { resize: vertical; min-height: 110px; }

.fgrid input:focus, .fgrid textarea:focus {
  outline: none;
  border-color: rgba(255, 194, 110, .65);
  background: rgba(24, 13, 40, .8);
  box-shadow: 0 0 0 1px rgba(255, 224, 163, .25), 0 0 26px rgba(255, 178, 92, .18);
}
.fgrid label:focus-within .flabel {
  color: var(--goldhot);
  text-shadow: 0 0 12px rgba(255, 224, 163, .55);
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.submit-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.form-status { font-size: 14px; color: var(--rose); min-height: 1em; }
.footnote { font-size: 13px; color: var(--mut); margin-left: auto; }
.email-link { color: var(--sand); }
.email-link:hover { color: var(--goldhot); }

.form-thanks {
  flex: 1 1 100%;
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--mint);
  border: 1px solid rgba(84, 230, 160, .5);
  border-radius: 12px;
  background: rgba(14, 42, 30, .5);
  padding: 26px 30px;
  text-align: center;
  text-shadow: 0 0 14px rgba(84, 230, 160, .4);
  animation: rise .6s var(--ease) both;
}

.rau-spill {
  position: absolute;
  left: 8%; right: 8%;
  bottom: -34px;
  height: 44px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 194, 110, .32), transparent 75%);
  opacity: var(--spill);
  transition: opacity 1.3s ease .3s;
  pointer-events: none;
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  padding: 40px 0 70px;
}
.brassplate {
  margin: 0 auto;
  width: fit-content;
  display: grid;
  gap: 8px;
  justify-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--sand);
  border: 1px solid rgba(233, 201, 160, .3);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(46, 30, 64, .6), rgba(30, 18, 48, .6));
  box-shadow: 0 0 0 3px rgba(20, 11, 36, .6), 0 0 34px rgba(255, 194, 110, .08);
  padding: 22px 34px;
  text-align: center;
}
.bp-row { display: inline-flex; align-items: center; gap: 10px; }

/* ═══════════════════ REVEALS ═══════════════════ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ═══════════════════ MOBILE ═══════════════════ */
@media (max-width: 980px) {
  .links { display: none; }
  .shoprow { grid-template-columns: 1fr; }
  .gauges { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }

  .nav { gap: 12px; padding: 11px 16px; }
  .brand { font-size: 18px; }
  .brand-sub { display: none; }
  .nav-cta { font-size: 12px; padding: 9px 14px; margin-left: auto; }

  .hero { padding-top: 84px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 44px); }
  .hero .sub { font-size: 15.5px; }
  .cta-row { flex-direction: column; gap: 12px; }
  .cta-row .btn { width: min(320px, 100%); }
  .meter-plate { font-size: 9.5px; letter-spacing: .08em; }
  .chips { gap: 6px 14px; }
  .chips li { font-size: 11.5px; }

  .hero-scene { width: 152%; margin-left: -26%; }
  .mirror-clip { height: 84px; }
  .scene-mirror { opacity: .4; }

  .d-only { display: none; }

  .stat-grid { grid-template-columns: 1fr; gap: 14px; }
  .statwin-glass { padding: 22px 22px 20px; display: flex; align-items: baseline; gap: 16px; }
  .statwin .n { font-size: 34px; }
  .statwin .c { margin-top: 0; }

  .shop-glass { padding: 22px 22px 26px; }
  .shop-glass h3 { font-size: 20px; }

  .flag-glass { padding: 24px 18px; }
  .wb-row { grid-template-columns: 92px 1fr 64px; gap: 10px; }
  .wb-label { font-size: 11.5px; }
  .wb-val { font-size: 11px; }
  .t-row { font-size: 11.5px; gap: 10px; }

  .walk { padding-left: 0; gap: 26px; }
  .sidewalk { left: 26px; }
  .station { grid-template-columns: 64px 1fr; gap: 12px; }
  .lamppost { width: 40px; }
  .addr { font-size: 9.5px; padding: 2px 6px; }
  .station-body { padding: 18px 18px; }
  .station-body h3 { font-size: 18px; gap: 10px; }
  .station-body p { font-size: 14px; }

  .fgrid { grid-template-columns: 1fr; }
  .rau-body { padding: 28px 20px; }
  .submit-row { justify-content: center; text-align: center; }
  .submit-row .btn { width: 100%; }
  .footnote { margin-left: 0; }

  .brassplate { font-size: 9.5px; letter-spacing: .1em; padding: 18px 16px; }
  .bp-row { flex-wrap: wrap; justify-content: center; row-gap: 2px; }
  .transom-sign { font-size: 10px; letter-spacing: .12em; text-align: center; max-width: 88vw; }

  /* calm the scene for legibility (v2 discipline) */
  .backdrop { opacity: .82; }
  .vignette {
    background:
      radial-gradient(ellipse 130% 90% at 50% 38%, transparent 40%, rgba(16, 8, 28, .72) 100%),
      linear-gradient(180deg, rgba(16, 8, 28, .6) 0%, transparent 14%);
  }
}

/* ═══════════════════ REDUCED MOTION ═══════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  /* the street stands fully lit — a beautiful still */
  html.js [data-scene]:not(.on),
  html.js .shop:not(.lit) {
    --sign: 1; --awn: 1; --win: 1; --open: 1; --spill: 1; --lamp: 1;
  }
  html.js .hero-copy [data-hload] { opacity: 1; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .station:not(.lit) .station-body { opacity: 1; }
  html.js .shop:not(.lit) .g-arc { --arc: 0; }
  html.js .shop:not(.lit) .wb-bar i { --w: 1; }
  .lantern, .stars { display: none; }
  .skyline .wins rect { opacity: .5; }
}
