/* Smart Locker — Smart Parcel Lockers
   Style: "Midnight terminal with orange beacons" (see DESIGN.md) */

:root {
  --near-black: #090909;
  --almost-white: #f7f9fa;
  --soft-white: #f0f0f0;
  --steel: #828384;
  --graphite: #474747;
  --iron: #423738;
  --ash: #6b6b6b;
  --violet: #af50ff;
  --orange: #f47321;
  --orange-soft: #f8a468;
  --orange-rgb: 244, 115, 33;
  --lavender: #ffd2b0;

  --hair: rgba(247, 249, 250, .16);
  --hair-soft: rgba(247, 249, 250, .09);
  --wash: rgba(237, 195, 196, .05);

  --sans: 'Inter', 'Whyte Inktrap', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Whyte Inktrap Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Instrument Serif', 'GrandSlang', 'Lora', Georgia, serif;

  --r-card: 19.2px;
  --r-btn: 8px;
  --r-pill: 1584px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--near-black); color: var(--almost-white);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.wrap.wide { width: min(100% - 24px, 1320px); }
.muted { color: var(--steel); }
.eyebrow { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--steel); font-weight: 400; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; max-width: 640px; color: rgba(247, 249, 250, .78); letter-spacing: -.01em; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }

/* ---------- Reveal motion ---------- */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(32px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: var(--r-btn); font-weight: 400; font-size: 16px; line-height: 1; border: 1px solid transparent; transition: background .25s, transform .25s var(--ease), border-color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1px solid var(--almost-white); outline-offset: 3px; }
.btn-line { background: var(--near-black); border-color: var(--almost-white); }
.btn-line:hover { background: var(--almost-white); color: var(--near-black); }
.btn-ghost-line { background: transparent; border-color: transparent; color: rgba(247, 249, 250, .8); }
.btn-ghost-line:hover { border-color: var(--hair); }
.btn-pill { background: var(--wash); border-radius: var(--r-pill); padding: 20px 32px; color: var(--almost-white); }
.btn-pill:hover { background: rgba(237, 195, 196, .12); }
.btn-orange { background: var(--orange-soft); color: #1a0d05; padding: 18px; font-weight: 500; }
.btn-orange:hover { background: #fbb78a; }
.link-arrow { font-size: 16px; display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid transparent; transition: gap .25s var(--ease), border-color .25s; }
.link-arrow:hover { gap: 16px; border-color: var(--almost-white); }

/* ---------- Frosted nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; background: rgba(48, 42, 38, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ash); transition: transform .5s var(--ease); }
.nav.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 18px; letter-spacing: -.01em; justify-self: start; }
.mark { display: block; height: 26px; width: auto; }
.mark.foot-mark { height: 16px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: rgba(247, 249, 250, .75); font-weight: 400; padding: 10px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--almost-white); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 8px; justify-self: end; }
.nav-cta .btn { padding: 11px 16px; font-size: 14px; }

/* ---------- Stamped section headings ---------- */
.stamp { font-family: var(--mono); font-weight: 400; text-transform: uppercase; color: var(--soft-white); font-size: clamp(17px, 5.1vw, 74px); line-height: .9; letter-spacing: .2em; white-space: nowrap; transition: letter-spacing 1.6s var(--ease), opacity 1s ease; margin-bottom: 40px; }
.js .stamp:not(.in) { letter-spacing: .5em; opacity: 0; }

/* ---------- Sections ---------- */
.sec { padding: 120px 0; border-top: 1px solid var(--hair-soft); position: relative; }
.sec-intro { margin-bottom: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 120px 0 140px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 55% at 78% 22%, rgba(244, 115, 33, .36), transparent 70%),
  radial-gradient(50% 40% at 12% 8%, rgba(248, 164, 104, .2), transparent 70%),
  radial-gradient(60% 40% at 50% 70%, rgba(150, 62, 18, .32), transparent 75%),
  linear-gradient(180deg, #2b150a 0%, #1a0d06 45%, #090909 100%); }
.cloud { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.c1 { width: 46vw; height: 14vw; left: -6vw; top: 14%; background: rgba(248, 164, 104, .26); }
.c2 { width: 52vw; height: 16vw; right: -10vw; top: 6%; background: rgba(244, 115, 33, .32); animation-duration: 32s; animation-direction: alternate-reverse; }
.c3 { width: 60vw; height: 12vw; left: 22vw; top: 46%; background: rgba(170, 70, 20, .28); animation-duration: 38s; }
@keyframes drift { from { transform: translateX(-4vw); } to { transform: translateX(5vw); } }
.streak { position: absolute; top: 24%; left: -20%; width: 140px; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 14px 2px rgba(255, 210, 170, .7); animation: streak 14s linear infinite; opacity: 0; }
@keyframes streak { 0% { transform: translate(0, 0); opacity: 0; } 4% { opacity: .9; } 30% { opacity: .9; } 36% { transform: translate(130vw, -14vh); opacity: 0; } 100% { transform: translate(130vw, -14vh); opacity: 0; } }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; min-height: 200px; }
.skyline .b { fill: #0c0a14; }
.skyline .w { fill: #f2d9ff; opacity: .0; animation: win 6s ease-in-out infinite; }
@keyframes win { 0%, 100% { opacity: .05; } 50% { opacity: .85; } }

.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.hero h1 { font-weight: 400; line-height: .92; margin: 20px 0 28px; }
.hero h1 span { display: block; }
.d1 { font-size: clamp(56px, 9.6vw, 128px); }
.d2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -.04em; margin: 12px 0 4px; line-height: 1.05; }
.d3 { font-size: clamp(30px, 4.4vw, 60px); color: var(--lavender); letter-spacing: -.02em; line-height: 1.1; }
.lede { font-size: 20px; line-height: 1.5; max-width: 520px; color: rgba(247, 249, 250, .72); letter-spacing: -.01em; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }

.pass { border-radius: var(--r-card); background: var(--wash); border: 1px solid rgba(247, 249, 250, .2); padding: 40px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); position: relative; overflow: hidden; }
.pass-top { display: flex; justify-content: space-between; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 400; display: inline-flex; gap: 8px; align-items: center; }
.label.dim { color: var(--steel); font-family: var(--mono); }
.route { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 28px 0; }
.route small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }
.route b { font-size: 14px; font-weight: 400; letter-spacing: .04em; }
.route .r { text-align: right; }
.route-line { position: relative; height: 1px; background: var(--hair); }
.route-line i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--almost-white); animation: travel 3.6s var(--ease) infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
.pass h2 { font-weight: 300; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 12px; }
.pass .muted { font-size: 14px; }
.pass-bottom { display: flex; gap: 20px; justify-content: space-between; align-items: stretch; margin-top: 32px; }
.pills { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pills .btn { justify-content: flex-start; padding: 18px 28px; }
.barcode { width: 54px; border-radius: 6px; background: repeating-linear-gradient(0deg, var(--almost-white) 0 2px, transparent 2px 5px, var(--almost-white) 5px 6px, transparent 6px 11px, var(--almost-white) 11px 15px, transparent 15px 17px); opacity: .85; position: relative; overflow: hidden; }
.barcode::after { content: ""; position: absolute; left: 0; right: 0; height: 24px; top: -24px; background: linear-gradient(180deg, transparent, rgba(var(--orange-rgb), .9), transparent); animation: scan 3.2s linear infinite; }
@keyframes scan { to { top: 100%; } }
.scroll-cue { position: absolute; left: 50%; bottom: 36px; width: 22px; height: 36px; border: 1px solid var(--hair); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; border-radius: 2px; background: var(--almost-white); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Facts ---------- */
.facts { border-block: 1px solid var(--hair-soft); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 48px 24px 48px 0; display: flex; flex-direction: column; gap: 8px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--hair-soft); }
.fact b { font-size: clamp(30px, 3.6vw, 48px); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.fact span { font-size: 14px; color: var(--steel); }

/* ---------- Locker bank (everything sized in cqw so it scales as one object) ---------- */
.bank-host { width: 100%; }
.bank { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 2.55 / 1; }
.bank-body { position: absolute; inset: 0 0 3.4cqw 0; display: flex; padding: .5cqw; gap: .4cqw; border-radius: .7cqw; background: linear-gradient(180deg, #b4b6ba, #8f9195); box-shadow: inset 0 0 0 .12cqw rgba(255, 255, 255, .35); }
.bank::before { content: ""; position: absolute; left: 1.4cqw; right: 1.4cqw; bottom: 2.7cqw; height: .8cqw; background: #6e7074; border-radius: .2cqw; }
.feet { position: absolute; left: 1.4cqw; right: 1.4cqw; bottom: 0; height: 2.8cqw; pointer-events: none; }
.feet i { position: absolute; bottom: .3cqw; width: 1.3cqw; height: 2.4cqw; background: linear-gradient(90deg, #2a2b2d, #5a5c5f, #2a2b2d); border-radius: .3cqw; }
.mod { display: flex; flex-direction: column; gap: .35cqw; }
.term { width: 14.5cqw; flex: none; padding: .5cqw; align-items: center; background: linear-gradient(180deg, #b9bbbf, #a1a3a7); border-radius: .4cqw; }
.mini-mark { display: block; height: 3cqw; width: auto; margin: .6cqw 0 1cqw; }
.mini-screen { width: 11cqw; height: 17.2cqw; background: #050506; border-radius: .6cqw; border: .38cqw solid #15161a; box-shadow: 0 0 0 .1cqw rgba(255, 255, 255, .25), inset 0 0 2cqw rgba(var(--orange-rgb), .16); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1cqw; }
.mini-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 38%); pointer-events: none; }
.mini-screen b { font-size: .95cqw; font-weight: 400; color: #f7f9fa; }
.mini-screen small { font-size: .58cqw; color: #9a9ca0; margin-top: -.9cqw; }
.mini-screen em { font-style: normal; font-size: .72cqw; width: 8.2cqw; text-align: left; padding: .75cqw .9cqw; border-radius: .5cqw; background: #2a2c33; color: #f7f9fa; display: block; }
.mini-screen em.s2 { animation: pulseBtn 4s ease-in-out infinite; }
@keyframes pulseBtn { 0%, 70%, 100% { background: #2a2c33; } 80%, 90% { background: var(--orange-soft); color: #1a0d05; } }
.reader-row { display: flex; gap: 1.6cqw; align-items: center; margin-top: 1.1cqw; }
.reader-row .nfc { width: 1.5cqw; height: 1.5cqw; background: #0b0b0c; border-radius: .25cqw; }
.reader-row .slot { width: 2.8cqw; height: 2.2cqw; background: #cfd1d4; border-radius: .3cqw; border: .2cqw solid #101113; position: relative; }
.reader-row .slot::after { content: ""; position: absolute; left: .4cqw; right: .4cqw; top: .5cqw; height: .8cqw; background: #101113; border-radius: .15cqw; }
.term-low { flex: 1; width: 100%; margin-top: 1cqw; border-top: .12cqw solid rgba(0, 0, 0, .12); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .06)); border-radius: .3cqw; }

.col { flex: 1; display: flex; flex-direction: column; gap: .35cqw; }
.col.grey { flex: none; width: 8.6cqw; }
.door { position: relative; display: block; border-radius: .25cqw; background: linear-gradient(180deg, #f6f7f8 0%, #e4e6e9 100%); box-shadow: inset 0 0 0 .1cqw rgba(0, 0, 0, .12), inset 0 .12cqw 0 rgba(255, 255, 255, .9); }
.col.grey .door { background: linear-gradient(180deg, #c3c5c8, #adafb3); box-shadow: inset 0 0 0 .1cqw rgba(0, 0, 0, .18), inset 0 .12cqw 0 rgba(255, 255, 255, .35); }
.door::after { content: ""; position: absolute; right: .55cqw; top: 50%; width: .16cqw; height: 1.1cqw; transform: translateY(-50%); background: rgba(0, 0, 0, .25); border-radius: .1cqw; }
.door i { position: absolute; left: .55cqw; top: .55cqw; width: .45cqw; height: .45cqw; border-radius: 50%; background: rgba(0, 0, 0, .12); transition: background .5s, box-shadow .5s; }
.door.on i { background: var(--orange); box-shadow: 0 0 .9cqw .15cqw rgba(var(--orange-rgb), .85); }

/* draw-in on reveal */
.js .bank.draw:not(.in) .door { opacity: 0; transform: scale(.85); }
.bank.draw.in .door { animation: doorIn .7s var(--ease) forwards; animation-delay: var(--dl, 0ms); }
@keyframes doorIn { to { opacity: 1; transform: none; } }
.js .bank.draw:not(.in) .term, .js .bank.draw:not(.in) .col { opacity: 0; }
.bank.draw.in .term, .bank.draw.in .col { animation: fadeUp .9s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* night variant (hero shot) */
.bank.night .bank-body { background: linear-gradient(180deg, #4d5766, #2f3744); box-shadow: inset 0 0 0 .12cqw rgba(255, 200, 160, .22), 0 0 6cqw rgba(var(--orange-rgb), .22); }
.bank.night .term { background: linear-gradient(180deg, #566074, #384151); }
.bank.night .door { background: linear-gradient(180deg, #667386, #4a5566); box-shadow: inset 0 0 0 .1cqw rgba(0, 0, 0, .35), inset 0 .12cqw 0 rgba(255, 255, 255, .18); }
.bank.night .col.grey .door { background: linear-gradient(180deg, #566074, #404958); }
.bank.night .door::after { background: rgba(255, 255, 255, .25); }
.bank.night .mini-screen { box-shadow: 0 0 0 .1cqw rgba(255, 255, 255, .3), 0 0 2.4cqw rgba(var(--orange-rgb), .5), inset 0 0 2cqw rgba(var(--orange-rgb), .25); }
.sweep { position: absolute; inset: .5cqw 0 3.4cqw 0; pointer-events: none; overflow: hidden; border-radius: .7cqw; mix-blend-mode: screen; }
.sweep::after { content: ""; position: absolute; top: 0; bottom: 0; width: 32%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255, 210, 170, .55), rgba(255, 255, 255, .5), rgba(255, 210, 170, .45), transparent); filter: blur(.4cqw); animation: sweep 7s ease-in-out infinite; }
@keyframes sweep { 0% { left: -40%; } 55%, 100% { left: 120%; } }

.stage-wide { position: relative; margin-top: 40px; padding: 32px 4% 20px; }
.glow { position: absolute; left: 10%; right: 10%; bottom: 3%; height: 40%; background: radial-gradient(50% 50% at 50% 60%, rgba(247, 249, 250, .13), transparent 70%); filter: blur(18px); z-index: 0; }
.glow.violet { background: radial-gradient(50% 55% at 50% 60%, rgba(var(--orange-rgb), .45), transparent 72%); }
.bank-host { position: relative; z-index: 1; }
.floor { position: absolute; left: 6%; right: 6%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hair), transparent); }

/* rows */
.rows { margin-top: 64px; border-top: 1px solid var(--hair-soft); }
.row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--hair-soft); align-items: start; }
.row a { font-size: 20px; letter-spacing: -.01em; display: inline-flex; width: fit-content; border-bottom: 1px solid transparent; }
.row a::after { content: "→"; margin-left: 12px; transition: transform .3s var(--ease); }
.row a:hover::after { transform: translateX(6px); }
.row p { font-size: 18px; color: rgba(247, 249, 250, .75); }

/* ---------- Push-in ---------- */
.push { height: 280vh; position: relative; border-top: 1px solid var(--hair-soft); }
.push-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-top: 104px; }
.push-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.push-bank { width: min(1180px, 94vw); }
.push-caption { position: absolute; right: max(24px, 6vw); bottom: 12vh; width: min(380px, 80vw); padding: 28px; border-radius: var(--r-card); background: rgba(9, 9, 9, .72); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s var(--ease); }
.push-caption.on { opacity: 1; transform: none; }
.push-caption h3 { font-weight: 300; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; margin: 10px 0; }
.push-caption .muted { font-size: 14px; }
.push-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--steel); transition: opacity .4s; }
.push-sticky .wrap.push-head { position: relative; z-index: 3; }

/* ---------- Interface ---------- */
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.steps { margin: 40px 0 28px; border-top: 1px solid var(--hair-soft); }
.steps li { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--hair-soft); color: var(--steel); transition: color .4s, padding-left .4s var(--ease); }
.steps li b { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .2em; }
.steps li span { font-size: 20px; letter-spacing: -.01em; }
.steps li em { font-style: normal; color: inherit; }
.steps li.on { color: var(--almost-white); padding-left: 12px; }
.hint { color: var(--steel); font-size: 14px; }
.code-chip { margin-left: 6px; font-family: var(--mono); background: var(--wash); border: 1px solid var(--hair); border-radius: 6px; padding: 5px 10px; color: var(--almost-white); font-size: 13px; letter-spacing: .1em; }
.code-chip:hover { border-color: var(--almost-white); }

.device { position: relative; }
.device-frame { background: linear-gradient(180deg, #b4b6ba, #9ea0a4); border-radius: 22px; padding: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.screen-ui { background: #050506; border-radius: 12px; border: 6px solid #121316; min-height: 440px; padding: 28px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; box-shadow: inset 0 0 60px rgba(var(--orange-rgb), .1); }
.screen-ui::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 40%); }
.device-foot { display: flex; justify-content: center; align-items: center; gap: 36px; margin-top: 16px; }
.reader-dot { width: 22px; height: 22px; border-radius: 5px; background: #0b0b0c; display: block; }
.slot { width: 44px; height: 34px; background: #cfd1d4; border: 3px solid #101113; border-radius: 6px; display: block; }
.map { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 24px; }
.map i { aspect-ratio: 1.5 / 1; border-radius: 3px; background: rgba(247, 249, 250, .08); transition: background .4s, box-shadow .4s; }
.map i.act { background: var(--orange); box-shadow: 0 0 16px rgba(var(--orange-rgb), .8); }

.s-view { animation: sIn .5s var(--ease); display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; }
@keyframes sIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.s-view h4 { margin: 0; font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.s-view p { margin: 0; font-size: 14px; color: #9a9ca0; }
.s-btns { display: flex; flex-direction: column; gap: 12px; width: min(100%, 320px); margin-top: 10px; }
.s-btn { display: flex; gap: 14px; align-items: center; background: #25272e; border: 0; border-radius: 12px; padding: 18px 20px; font-size: 18px; text-align: left; transition: background .25s, transform .25s var(--ease); }
.s-btn:hover { background: var(--orange-soft); color: #1a0d05; transform: scale(1.02); }
.s-btn svg { width: 22px; height: 22px; flex: none; }
.s-btn.sm { justify-content: center; padding: 14px; font-size: 16px; }
.dots { display: flex; gap: 12px; margin: 6px 0 4px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #6b6b6b; transition: background .2s, border-color .2s; }
.dots i.f { background: var(--almost-white); border-color: var(--almost-white); }
.dots.err { animation: shake .4s; }
.dots.err i { border-color: #ff6b6b; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; }
.pad button { height: 46px; border: 0; border-radius: 10px; background: #25272e; font-size: 18px; transition: background .2s; }
.pad button:hover { background: var(--orange-soft); color: #1a0d05; }
.pad button.mute { font-size: 12px; color: #9a9ca0; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.size { background: #25272e; border: 1px solid transparent; border-radius: 12px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .2s, background .2s; }
.size:hover, .size.sel { border-color: var(--orange-soft); background: #2d2f38; }
.size u { display: block; border: 1px solid #9a9ca0; border-radius: 3px; text-decoration: none; }
.size small { font-size: 11px; color: #9a9ca0; }
.tick { width: 64px; height: 64px; }
.tick circle { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 176; stroke-dashoffset: 176; animation: draw .8s .1s forwards; }
.tick path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.big-n { font-family: var(--mono); font-size: 44px; letter-spacing: .1em; }
.s-back { position: absolute; top: 20px; left: 22px; background: none; border: 0; color: #9a9ca0; font-size: 13px; }
.s-back:hover { color: #fff; }

/* ---------- Compartment ---------- */
.door-sec { height: 260vh; position: relative; border-top: 1px solid var(--hair-soft); --o: 0; }
.door-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; }
.door-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.door-copy h3 { font-weight: 300; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -.03em; margin: 12px 0 18px; }
.door-copy .muted { max-width: 380px; margin-bottom: 28px; }
.wall-wrap { perspective: 1500px; }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; max-width: 640px; margin-left: auto; border-radius: 14px; background: linear-gradient(180deg, #b4b6ba, #8f9195); aspect-ratio: 1.25 / 1; }
.cell { position: relative; display: block; border-radius: 6px; background: linear-gradient(180deg, #f6f7f8, #e0e2e5); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 1px 0 #fff; }
.cell.open { background: #17181b; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.cavity { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; background: linear-gradient(180deg, #232529, #34363b 70%, #17181b); box-shadow: inset 0 10px 24px rgba(0, 0, 0, .7); }
.shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(180deg, #a9abae, #6e7074); }
.box { position: absolute; left: 14%; right: 14%; bottom: 14%; height: 62%; background: linear-gradient(180deg, #d8b078, #c09558); border-radius: 3px; box-shadow: 0 10px 18px rgba(0, 0, 0, .55), inset -10px 0 14px rgba(0, 0, 0, .12); }
.box i { position: absolute; left: 44%; width: 12%; top: 0; bottom: 0; background: rgba(240, 225, 190, .55); }
.box::after { content: ""; position: absolute; right: 12%; bottom: 18%; width: 22%; height: 14%; background: rgba(255, 255, 255, .8); border-radius: 2px; }
.flap { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(180deg, #f6f7f8, #e0e2e5); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 26px rgba(0, 0, 0, calc(.35 * var(--o))); transform-origin: left center; transform: rotateY(calc(var(--o) * -108deg)); transition: transform .12s linear; }
.flap::after { content: ""; position: absolute; right: 7%; top: 50%; width: 3px; height: 22%; transform: translateY(-50%); background: rgba(0, 0, 0, .25); border-radius: 2px; }
.status { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px 2px var(--orange); opacity: var(--o); transform: translateZ(1px); }
.door-sec.manual .flap { transition: transform .9s var(--ease); }

/* ---------- Perspective ---------- */
.persp { position: relative; margin-top: 40px; padding: 56px 6% 36px; perspective: 1900px; }
.bank3d { transform-style: preserve-3d; transform: rotateY(var(--ry, -26deg)) rotateX(var(--rx, 4deg)); transition: transform .25s ease-out; will-change: transform; position: relative; z-index: 1; }
.bank3d .bank-host { transform-style: preserve-3d; }
.bank3d .bank { transform-style: preserve-3d; }
.bank3d .bank::after { content: ""; position: absolute; top: 0; bottom: 3.4cqw; right: 0; width: 4cqw; background: linear-gradient(90deg, #8a8c90, #5f6165); transform-origin: right center; transform: rotateY(90deg); backface-visibility: hidden; }
.bank3d .bank .bank-body { box-shadow: inset 0 0 0 .12cqw rgba(255, 255, 255, .35), 0 3cqw 5cqw rgba(0, 0, 0, .6); }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--hair-soft); }
.spec > div { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.spec > div + div { padding-left: 24px; border-left: 1px solid var(--hair-soft); }
.spec small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); }
.spec b { font-weight: 300; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.15; }
.spec span { font-size: 14px; color: var(--steel); }

/* ---------- Comparison / route cards ---------- */
.route-cards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; padding-top: 44px; }
.route-rail { position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: var(--hair); display: grid; grid-template-columns: repeat(4, 1fr); }
.route-rail::after { content: ""; position: absolute; inset: 0; background: var(--almost-white); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease); }
.route-cards.in .route-rail::after { transform: scaleX(1); }
.route-rail i { position: relative; }
.route-rail i::before { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--near-black); border: 1px solid var(--almost-white); }
.rcard { position: relative; border-radius: var(--r-card); padding: 40px 28px; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background:
  radial-gradient(120% 90% at 100% 0%, rgba(var(--orange-rgb), .2), transparent 60%),
  linear-gradient(180deg, #17130f, #0d0d10); }
.rcard:nth-of-type(3) { background: radial-gradient(120% 90% at 0% 0%, rgba(248, 164, 104, .16), transparent 60%), linear-gradient(180deg, #17120e, #0d0d10); }
.rcard:nth-of-type(5) { background: radial-gradient(120% 90% at 100% 100%, rgba(200, 90, 25, .2), transparent 60%), linear-gradient(180deg, #14110e, #0d0d10); }
.rcard.bloom { background: radial-gradient(90% 70% at 50% 20%, #ffc29a, var(--orange-soft) 55%, #f08a48); color: #1a0d05; box-shadow: 0 0 80px rgba(var(--orange-rgb), .28); }`n.rcard.bloom small { color: rgba(26, 13, 5, .7); }`n.rcard.bloom .num { color: rgba(26, 13, 5, .1); }`n.rcard.bloom a { border-color: rgba(26, 13, 5, .4); }`n.rcard.bloom a:hover { border-color: #1a0d05; }
.rcard .num { position: absolute; right: 18px; top: 4px; font-size: 130px; font-weight: 300; letter-spacing: -.06em; line-height: 1; color: rgba(255, 255, 255, .06); transition: transform .8s var(--ease), color .4s; }
.rcard:hover .num { transform: translateY(8px) scale(1.04); color: rgba(255, 255, 255, .12); }
.rcard small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(247, 249, 250, .65); position: relative; }
.rcard h3 { font-weight: 300; font-size: 26px; line-height: 1.18; letter-spacing: -.02em; margin: 12px 0 28px; position: relative; }
.rcard a { font-size: 14px; position: relative; width: fit-content; border-bottom: 1px solid rgba(247, 249, 250, .3); padding-bottom: 2px; }
.rcard a:hover { border-color: #fff; }

/* ---------- Placement ---------- */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--hair-soft); border-left: 1px solid var(--hair-soft); }
.site { padding: 32px 28px 36px; border-right: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); display: flex; flex-direction: column; gap: 10px; transition: background .4s; }
.site:hover { background: var(--wash); }
.site b { font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
.site span { font-size: 15px; color: var(--steel); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 88px; }
.p-step span { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--steel); }
.p-step { padding-top: 20px; border-top: 1px solid var(--hair); }
.p-step h3 { font-weight: 300; font-size: 32px; letter-spacing: -.01em; margin: 14px 0 8px; }
.p-step p { font-size: 15px; color: rgba(247, 249, 250, .65); }

/* ---------- Finale ---------- */
.finale { position: relative; padding: 120px 0 80px; border-top: 1px solid var(--hair-soft); overflow: hidden; background:
  radial-gradient(70% 60% at 50% 100%, rgba(150, 70, 25, .45), transparent 70%),
  radial-gradient(50% 40% at 50% 40%, rgba(var(--orange-rgb), .12), transparent 70%),
  linear-gradient(180deg, #090909, #130b06 60%, #0b0705); }
.rim { position: absolute; bottom: 8%; width: 4px; height: 56%; border-radius: 4px; background: linear-gradient(180deg, transparent, #ffd9a0 15%, #fff1d6 50%, #ffd9a0 85%, transparent); box-shadow: 0 0 40px 6px rgba(255, 190, 110, .5), 0 0 140px 30px rgba(255, 170, 90, .18); animation: flicker 6s ease-in-out infinite; z-index: 0; }
.rim.l { left: 6%; } .rim.r { right: 6%; animation-delay: -3s; }
@keyframes flicker { 0%, 100% { opacity: .95; } 50% { opacity: .65; } }
.finale .wrap { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; margin-top: 8px; }
.bloom-card { border-radius: var(--r-card); padding: 40px; background: radial-gradient(90% 70% at 30% 0%, #ffc29a, var(--orange-soft) 55%, #f08a48); color: #1a0d05; box-shadow: 0 0 90px rgba(var(--orange-rgb), .28); }
.bloom-card small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.bloom-card h3 { font-weight: 400; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; margin: 12px 0 14px; }
.bloom-card p { font-size: 15px; opacity: .92; margin-bottom: 22px; }
.bloom-card li { padding: 12px 0; border-top: 1px solid rgba(26, 13, 5, .22); font-size: 15px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--steel); font-weight: 400; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { background: var(--wash); border: 1px solid var(--hair); border-radius: var(--r-btn); padding: 14px 16px; color: var(--almost-white); font-size: 16px; font-weight: 300; text-transform: none; letter-spacing: 0; transition: border-color .25s; width: 100%; }
.form select option { background: #14151a; }
.form input::placeholder, .form textarea::placeholder { color: var(--ash); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--almost-white); outline: none; }
.form input.bad { border-color: #ff6b6b; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--lavender); min-height: 20px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--hair-soft); padding: 28px 0; font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-l, .foot-r { display: flex; gap: 20px; align-items: center; color: rgba(247, 249, 250, .8); }
.foot-r span:first-child { font-family: var(--mono); font-size: 13px; }
.foot-l span + span, .foot-r span + span { color: var(--steel); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ui-grid, .door-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .wall { margin: 0 auto; }
  .route-cards { grid-template-columns: repeat(2, 1fr); }
  .route-rail { display: none; }
  .route-cards { padding-top: 0; }
  .sites { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .nav { padding: 0 16px; }
  .nav-cta .btn-ghost-line { display: none; }
  .sec { padding: 80px 0; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 32px 12px 32px 0 !important; border-left: 0 !important; }
  .fact:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--hair-soft) !important; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .pass { padding: 28px; }
  .pass h2 { font-size: 26px; }
  .spec, .route-cards, .sites, .process, .form { grid-template-columns: 1fr; }
  .spec > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair-soft); padding-top: 20px; margin-top: 20px; }
  .push-caption { right: 16px; left: 16px; width: auto; bottom: 6vh; }
  .screen-ui { min-height: 400px; padding: 20px 14px; }
  .lede { font-size: 18px; }
  .foot-row { flex-direction: column; }
  .stamp { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .stamp { opacity: 1 !important; transform: none !important; letter-spacing: .2em !important; }
  .js .bank.draw .door, .js .bank.draw .term, .js .bank.draw .col { opacity: 1 !important; transform: none !important; }
}
