:root {
  --deep: #05080b; --night: #0a0f14; --night-2: #0f161d;
  --sodium: #e8953a; --sodium-dim: #8a5a2b; --cyan: #4fb6ff;
  --text: #e7ecef; --text-2: #9aa6ae; --text-3: #66727c; --rule: rgba(231,236,239,.12);
  --display: "Archivo", "Arial Narrow", sans-serif; --sans: "Archivo", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22,1,.36,1); --gutter: clamp(16px, 5vw, 72px); --bar: clamp(52px, 9vh, 96px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--deep); }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--deep); padding: 8px 12px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--text-2); }
.sodium { color: var(--sodium); }

/* ── Letterbox bars: nav (top) and footer (bottom) ───────────────────── */
.bar { background: var(--deep); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); min-height: var(--bar); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 15px/1 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 14px; }
.nav a { text-decoration: none; color: var(--text-2); white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.go { color: var(--sodium); font-weight: 600; }
@media (max-width: 640px) { .nav .wide { display: none; } .brand span { display: none; } }

.button { display: inline-flex; align-items: center; gap: 10px; background: var(--sodium); color: #1a1006; border: 0; border-radius: 0; padding: 14px 22px; font: 700 14px/1 var(--display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; cursor: pointer; min-height: 48px; }
.button:hover { background: #f3a54d; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.cta-line { position: relative; text-decoration: none; color: var(--text); font-weight: 500; }
.cta-line::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(.35); transform-origin: left; transition: transform .5s var(--ease); }
.cta-line:hover::after { transform: scaleX(1); }

.brackets { position: relative; }
.brackets::before, .brackets::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1px solid rgba(231,236,239,.35); pointer-events: none; }
.brackets::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.brackets::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* ── Scene 1: Stage (Letterbox #4) ───────────────────────────────────── */
.stage { position: relative; height: 100svh; min-height: 600px; background: var(--deep); display: grid; grid-template-rows: var(--bar) 1fr; }
.stage .frame { position: relative; overflow: hidden; background: var(--night); margin-bottom: var(--bar); animation: fromBlack 1.8s var(--ease) both; }
@keyframes fromBlack { from { opacity: 0; } to { opacity: 1; } }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(0deg, rgba(5,8,11,.92) 0%, rgba(5,8,11,.6) 55%, rgba(5,8,11,0) 100%); pointer-events: none; }
.stage .vignette { position: absolute; inset: 0; box-shadow: inset 0 0 16vw rgba(0,0,0,.8); pointer-events: none; }
.stage .noise { position: absolute; inset: 0; opacity: .06; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stage .slate { position: absolute; top: clamp(18px, 4vh, 40px); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; gap: 12px; }
.lamp { display: inline-flex; align-items: center; gap: 10px; }
.lamp::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sodium); box-shadow: 0 0 12px var(--sodium); animation: lamp 2.6s steps(2, jump-none) infinite; }
@keyframes lamp { 50% { opacity: .35; box-shadow: none; } }
.stage h1 { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 38%; margin: 0; max-width: 13ch; font: 800 clamp(2.5rem, 7.2vw, 7rem)/.92 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.015em; }
.stage .lower { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 6%, 56px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.stage .lower p { margin: 0; max-width: 44ch; color: var(--text-2); font-size: clamp(15px, 1.25vw, 18px); }
.stage .lower p strong { color: var(--text); font-weight: 600; }
.stage .actions { display: flex; align-items: center; gap: 28px; }
.stage .divider { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(38% - 28px); height: 1px; background: var(--rule); }
@media (max-width: 640px) { .stage h1 { bottom: 46%; } .stage .divider { bottom: calc(46% - 20px); } .stage .slate .mono:last-child { display: none; } }

/* ── Scene 2: Night-shift track (#29 / #32) ──────────────────────────── */
.shift { position: relative; height: 460vh; background: var(--night); }
.shift .pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.shift .track { min-width: 0; }
.shift header { padding: clamp(24px, 6vh, 56px) var(--gutter) 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.shift h2 { margin: 0; font: 700 clamp(1.1rem, 1.6vw, 1.4rem)/1.2 var(--display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .08em; }
.shift .track { display: flex; height: 100%; will-change: transform; }
.shift .scene { flex: 0 0 auto; width: min(76vw, 980px); padding: 0 var(--gutter); border-left: 1px solid var(--rule); display: flex; flex-direction: column; justify-content: center; }
.shift .scene:first-child { border-left: 0; }
.shift .scene.wide { width: min(90vw, 1160px); } .shift .scene.narrow { width: min(62vw, 760px); }
.shift .time { font: 500 clamp(3.2rem, 9vw, 8.5rem)/1 var(--mono); color: var(--sodium); letter-spacing: -.05em; margin-bottom: clamp(16px, 4vh, 36px); }
.shift .scene.morning .time { color: var(--cyan); }
.shift h3 { margin: 0 0 14px; font: 700 clamp(1.6rem, 3vw, 2.6rem)/1.05 var(--display); font-stretch: 115%; text-transform: uppercase; max-width: 18ch; }
.shift .scene p { margin: 0; max-width: 46ch; color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); }
.shift .scene .note { margin-top: 16px; }
.shift footer { padding: 0 var(--gutter) clamp(24px, 5vh, 48px); display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.shift .rail { height: 2px; background: var(--rule); --p: 0; } .shift .rail i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--sodium); }
@media (max-width: 800px) {
  .shift { height: auto; } .shift .pin { position: static; height: auto; display: block; }
  .shift .track { flex-direction: column; transform: none !important; }
  .shift .scene, .shift .scene.wide, .shift .scene.narrow { width: auto; border-left: 0; border-top: 1px solid var(--rule); padding: 48px var(--gutter); }
  .shift footer { display: none; }
  .shift .time { font-size: 3.4rem; }
}

/* ── Scene 3: Lit window (dolly-in #3) ───────────────────────────────── */
.window { position: relative; padding: 16vh var(--gutter) 12vh; background: radial-gradient(60% 45% at 50% 58%, rgba(79,182,255,.11), transparent 70%), var(--deep); }
.window .screen { max-width: 880px; margin: 0 auto; }
.window picture img { width: 100%; filter: brightness(.9); box-shadow: 0 0 0 1px rgba(79,182,255,.28), 0 30px 140px rgba(79,182,255,.18); }
.window .floor { height: 1px; max-width: 1200px; margin: 56px auto 0; background: linear-gradient(90deg, transparent, rgba(79,182,255,.5), transparent); }
.window .caption { max-width: 880px; margin: 22px auto 0; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.window .caption p { margin: 0; max-width: 56ch; color: var(--text-2); }
@media (max-width: 640px) { .window picture img { max-width: 340px; margin: 0 auto; } }

/* ── Scene 4: Why (curtain wipe #10) ─────────────────────────────────── */
.why { background: var(--night); }
.why .slab { position: relative; width: 100%; aspect-ratio: 21 / 9; min-height: 380px; overflow: hidden; }
@media (max-width: 900px) { .why .slab { aspect-ratio: auto; height: 420px; } }
.why .slab .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,11,.92) 0%, rgba(5,8,11,.2) 55%, rgba(5,8,11,0) 100%); }
.why h2 { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 7%, 64px); margin: 0; max-width: 14ch; font: 800 clamp(2.2rem, 5.6vw, 5.2rem)/.94 var(--display); font-stretch: 125%; text-transform: uppercase; }
.why .story { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 560px); justify-content: end; gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 10vh, 120px) var(--gutter) clamp(64px, 14vh, 160px); }
.why .story p { margin: 0 0 18px; color: var(--text-2); font-size: clamp(16px, 1.25vw, 19px); }
.why .story p:first-child { color: var(--text); }
.why .story .side { margin-top: -14vh; position: relative; z-index: 1; }
@media (max-width: 800px) { .why .story { grid-template-columns: 1fr; } .why .story .side { margin-top: 0; max-width: 260px; } }

.photo { position: relative; background: repeating-linear-gradient(135deg, #141c24 0 14px, #10171e 14px 28px); border: 1px solid var(--rule); display: grid; place-items: center; text-align: center; padding: 16px; height: 100%; width: 100%; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.15) saturate(.85); }
.photo span { font: 500 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); max-width: 34ch; }
.slab .photo { position: absolute; inset: 0; border: 0; }
.slab .photo span { margin-bottom: 18%; }
.side .photo { aspect-ratio: 4 / 5; height: auto; }

/* ── Scene 5: Dispatch board (#39 scramble) ──────────────────────────── */
.board { background: var(--deep); padding: clamp(64px, 14vh, 160px) var(--gutter); }
.board h2 { margin: 0 0 40px; font: 800 clamp(2rem, 4.6vw, 4.2rem)/.95 var(--display); font-stretch: 125%; text-transform: uppercase; max-width: 16ch; }
.board table { width: 100%; max-width: 980px; border-collapse: collapse; font: 500 clamp(13px, 1.3vw, 16px)/1.2 var(--mono); }
.board th { text-align: left; font-weight: 500; color: var(--text-3); letter-spacing: .12em; padding: 0 0 12px; border-bottom: 1px solid var(--rule); }
.board td { padding: 16px 0; border-bottom: 1px solid var(--rule); letter-spacing: .06em; text-transform: uppercase; }
.board td:first-child { color: var(--sodium); width: 4.5em; }
.board td:last-child { text-align: right; color: var(--text-2); }
.board td:last-child::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--cyan); vertical-align: middle; }

/* ── Scene 6: Book a demo (rack focus #6) ────────────────────────────── */
.demo { background: var(--night-2); border-top: 2px solid var(--sodium); padding: clamp(64px, 14vh, 150px) var(--gutter); }
.demo h2 { margin: 0 0 12px; font: 800 clamp(2.2rem, 6vw, 5.6rem)/.92 var(--display); font-stretch: 125%; text-transform: uppercase; }
.demo .intro { max-width: 58ch; color: var(--text-2); margin: 0 0 48px; }
form.demo-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; max-width: 1100px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.two { grid-column: span 2; } .field.full { grid-column: 1 / -1; }
@media (max-width: 860px) { form.demo-form { grid-template-columns: 1fr 1fr; } .field.two { grid-column: 1 / -1; } }
@media (max-width: 560px) { form.demo-form { grid-template-columns: 1fr; } }
label { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
label .opt { color: var(--text-3); }
input, select, textarea { font: 17px/1.4 var(--sans); color: var(--text); background: transparent; border: 0; border-bottom: 1px solid rgba(231,236,239,.3); border-radius: 0; padding: 10px 0; min-height: 46px; width: 100%; }
select option { background: var(--night-2); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--sodium); }
textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--text-3); font-size: 13px; }
.form-foot small a { color: var(--text-2); }
.status { grid-column: 1 / -1; margin: 0; font-weight: 500; min-height: 1.6em; }
.status.ok { color: #7fd6a4; } .status.bad { color: #ff9a86; }

/* ── Footer bar ──────────────────────────────────────────────────────── */
.site-footer { flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: var(--text-3); }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--text-2); text-decoration: none; } .site-footer a:hover { color: var(--text); }

/* ── Entrances ───────────────────────────────────────────────────────── */
.js .reveal-dolly { transform: scale(.86); opacity: 0; transition: transform 1.6s var(--ease), opacity 1.2s var(--ease); }
.js .reveal-wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s var(--ease); }
.js .reveal-focus { filter: blur(14px); transform: scale(1.03); opacity: .25; transition: filter 1.2s var(--ease), transform 1.2s var(--ease), opacity 1s var(--ease); }
.js .reveal-iris { clip-path: circle(0% at 50% 50%); transition: clip-path 1.6s var(--ease); }
.js .reveal-lines > * { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .reveal-lines.in > * { transform: none; }
.js .in.reveal-dolly, .js .in.reveal-focus { transform: none; opacity: 1; filter: none; }
.js .in.reveal-wipe { clip-path: inset(0 0 0 0); }
.js .in.reveal-iris { clip-path: circle(75% at 50% 50%); }
.flicker.in { animation: flicker .9s steps(2, jump-none) 1 both; }
@keyframes flicker { 0%, 18%, 36% { opacity: .1; } 9%, 27%, 60%, 100% { opacity: 1; } }

/* ── Interior scenes ─────────────────────────────────────────────────── */
.interior { min-height: 100svh; display: grid; grid-template-rows: var(--bar) 1fr auto; background: var(--deep); }
.interior main { background: var(--night); }

/* Legal: dispatch log under the lamp */
.log { position: relative; display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 10vh, 120px) var(--gutter) 120px; background: radial-gradient(42% 300px at 62% 0%, rgba(232,149,58,.13), transparent 75%); }
.log .title { grid-column: 1 / -1; overflow: hidden; }
.log .title h1 { margin: 0; font: 800 clamp(2.4rem, 6vw, 5.4rem)/.92 var(--display); font-stretch: 125%; text-transform: uppercase; }
.log .title p { margin: 14px 0 0; }
.log nav.index { position: sticky; top: 32px; align-self: start; display: flex; flex-direction: column; gap: 2px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; }
.log nav.index a { text-decoration: none; color: var(--text-3); padding: 6px 0 6px 12px; border-left: 1px solid var(--rule); }
.log nav.index a.on { color: var(--sodium); border-left-color: var(--sodium); }
.log article { border-left: 1px solid rgba(232,149,58,.35); padding-left: clamp(18px, 3vw, 40px); }
.log article h2 { font: 700 1.15rem/1.3 var(--display); font-stretch: 115%; text-transform: uppercase; letter-spacing: .03em; margin: 44px 0 10px; scroll-margin-top: 24px; }
.log article h2:first-child { margin-top: 0; }
.log article p, .log article li { color: var(--text-2); }
.log article strong { color: var(--text); }
.log article a { color: var(--sodium); }
.log article ul { padding-left: 1.1rem; }
.log .box { border: 1px solid rgba(232,149,58,.4); padding: 16px 20px; margin: 20px 0; color: var(--text-2); }
@media (max-width: 860px) { .log { grid-template-columns: 1fr; } .log nav.index { display: none; } }

/* Thanks: one lit window */
.facade { display: grid; place-items: center; padding: 12vh var(--gutter); text-align: center; }
.facade .grid { display: grid; grid-template-columns: repeat(5, 46px); gap: 18px 22px; margin-bottom: 48px; }
.facade .grid i { height: 64px; background: #0e141a; border: 1px solid #141c23; }
.facade .grid i.lit { background: linear-gradient(#f2b066, #c8762c); box-shadow: 0 0 40px rgba(232,149,58,.45); border-color: #f2b066; }
.facade h1, .street h1 { margin: 0 0 12px; font: 800 clamp(2.2rem, 6vw, 4.6rem)/.95 var(--display); font-stretch: 125%; text-transform: uppercase; }
.facade p { margin: 0 auto 10px; max-width: 46ch; color: var(--text-2); }
.street p { margin: 0 0 10px; max-width: 46ch; color: var(--text-2); }

/* 404: empty street */
.street { position: relative; min-height: 70svh; overflow: hidden; }
.street .horizon { position: absolute; left: 0; right: 0; top: 58%; height: 1px; background: var(--rule); }
.street .pole { position: absolute; left: 68%; top: 22%; width: 2px; height: 36%; background: #1b232b; }
.street .head { position: absolute; left: calc(68% - 14px); top: 22%; width: 30px; height: 6px; background: var(--sodium); box-shadow: 0 0 30px 6px rgba(232,149,58,.5); }
.street .pool { position: absolute; left: calc(68% - 26vw); top: 22%; width: 52vw; height: 50%; background: radial-gradient(50% 60% at 50% 0%, rgba(232,149,58,.16), transparent 70%); clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%); }
.street .text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 10%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal-dolly, .js .reveal-wipe, .js .reveal-focus, .js .reveal-iris, .js .reveal-lines > * { transform: none; opacity: 1; filter: none; clip-path: none; }
}

/* BulkVS / carrier compliance text */
.consent { grid-column: 1 / -1; margin: 4px 0 0; max-width: 80ch; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.consent a { color: var(--text); }
.disclaimer { margin: 0; padding: 14px var(--gutter); background: var(--deep); border-top: 1px solid var(--rule); font-size: 12px; line-height: 1.5; color: var(--text-3); }
.disclaimer a { color: var(--text-2); }
