/* MAB Tower — site styles. Two modes: html.cine (elevator engine) and html.static (native scroll). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #05070b; color: var(--text); font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0 0 0.8em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
kbd { font-family: var(--font-mono); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 0.85em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.lucide { width: 1.05em; height: 1.05em; vertical-align: -0.15em; stroke-width: 1.8; }

/* ---------- Typography pieces ---------- */
.kicker { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; display: flex; gap: 0.5em; align-items: center; }
.kicker.mt { margin-top: 1.2rem; }
.floor-title { font-family: var(--display); font-size: var(--fs-h2); margin-bottom: 1.1rem; text-wrap: balance; }
.floor-title em, .hero-title em { font-style: italic; color: var(--accent); }
[data-floor="2"] .floor-title em, [data-floor="3"] .floor-title em, [data-floor="4"] .floor-title em, [data-floor="5"] .floor-title em { font-style: normal; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, white)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1rem, 1.2vw, 1.18rem); color: var(--muted); max-width: 56ch; }
.fine { font-size: var(--fs-small); color: var(--muted); }
.card h3 { font-family: var(--display); font-size: var(--fs-h3); margin-bottom: 0.7rem; }
[data-floor="1"] .card h3 { font-size: calc(var(--fs-h3) * 1.25); }
.card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.card p { color: color-mix(in srgb, var(--text) 82%, transparent); }

/* ---------- Buttons ---------- */
.btn { --b: var(--accent); display: inline-flex; align-items: center; gap: 0.5em; padding: 0.78em 1.25em; border-radius: 999px; font-weight: 600; font-size: 0.92rem; text-decoration: none; border: 1px solid transparent; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-med), box-shadow var(--dur-med), color var(--dur-med); white-space: nowrap; will-change: transform; }
.btn-accent { background: var(--b); color: #0a0a0a; box-shadow: 0 0 0 0 color-mix(in srgb, var(--b) 50%, transparent), 0 10px 30px -10px var(--b); }
.btn-accent:hover { box-shadow: 0 0 0 6px color-mix(in srgb, var(--b) 18%, transparent), 0 16px 40px -10px var(--b); }
.btn-ghost { border-color: color-mix(in srgb, var(--text) 26%, transparent); background: color-mix(in srgb, var(--surface) 40%, transparent); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.55em 1em; font-size: 0.82rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.02rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 60; display: flex; align-items: center; gap: 1.5rem; padding: 0 var(--gutter); background: linear-gradient(180deg, rgba(3, 5, 9, 0.82), rgba(3, 5, 9, 0)); color: var(--text); }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-display-modern); font-weight: 700; letter-spacing: 0.02em; }
.brand b { color: var(--accent); }
.brand em { font-style: normal; font-weight: 400; opacity: 0.7; }
.locator { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.14em; text-transform: uppercase; margin-right: auto; padding-left: 1.2rem; border-left: 1px solid var(--line); }
.locator-num { color: var(--accent); font-size: 0.95rem; min-width: 1.2em; }
.locator-bar { width: 90px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.locator-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 120ms linear; }
.topnav { display: flex; gap: 1.4rem; font-size: 0.86rem; }
.topnav a { text-decoration: none; opacity: 0.78; transition: opacity var(--dur-fast), color var(--dur-fast); }
.topnav a:hover, .topnav a[aria-current="true"] { opacity: 1; color: var(--accent); }

/* ---------- Elevator HUD ---------- */
.hud { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 60; width: 58px; padding: 10px 7px; border-radius: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, #0b0d12), #07090d 60%); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 50px -20px #000; }
.hud-display { width: 44px; height: 36px; border-radius: 8px; background: #020304; display: grid; place-items: center; font-family: var(--font-mono); color: var(--accent); text-shadow: 0 0 10px var(--accent); font-size: 0.95rem; position: relative; overflow: hidden; }
.hud-arrow { position: absolute; top: 1px; font-size: 0.55rem; opacity: 0.8; }
.hud-buttons { display: flex; flex-direction: column; gap: 6px; }
.hud-buttons button, .hud-motion { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.18), rgba(255,255,255,.02) 60%), #10131a; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); transition: box-shadow var(--dur-med), color var(--dur-med), transform var(--dur-fast); }
.hud-buttons button:hover { transform: scale(1.08); }
.hud-buttons button.on { color: #000; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.hud-motion { margin-top: 4px; border-style: dashed; }
.hud-buttons button[data-go="0"] { font-family: var(--font-sans); font-weight: 700; }
.hud-motion[aria-pressed="true"] { color: var(--accent); }

/* ---------- Floors: shared ---------- */
.floor { position: relative; isolation: isolate; color: var(--text); background: var(--surface); }
.plate { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.plate-img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; will-change: transform; }
.plate-shade { position: absolute; inset: 0; }
.floor-0 .plate-shade { background: linear-gradient(90deg, rgba(5,8,13,.92) 0%, rgba(5,8,13,.6) 40%, rgba(5,8,13,.05) 75%), linear-gradient(0deg, rgba(5,8,13,.75), transparent 40%); }
.floor .plate-shade { background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 88%, transparent) 0%, color-mix(in srgb, var(--surface) 55%, transparent) 45%, color-mix(in srgb, var(--surface) 30%, transparent) 100%), linear-gradient(0deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent 45%); }
.floor-0 .plate-shade { background: linear-gradient(90deg, rgba(5,8,13,.9) 0%, rgba(5,8,13,.55) 42%, rgba(5,8,13,.05) 78%), linear-gradient(0deg, rgba(5,8,13,.7), transparent 45%); }
.plate-industry { opacity: 0; transition: opacity 900ms var(--ease-out); }
.plate-industry.show { opacity: 1; }

.track { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.bay { flex: none; }
.bay-intro { width: min(640px, 84vw); padding-right: 2vw; }
.bay-divider { width: min(340px, 78vw); padding: 0 1rem; border-left: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.divider-title { font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2.3rem); margin-bottom: 0.8rem; }

.card { position: relative; flex: none; width: var(--card-w); max-height: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; padding: clamp(20px, 2vw, 30px); border-radius: var(--radius);
  background: linear-gradient(155deg, color-mix(in srgb, var(--glass) 92%, rgba(255,255,255,.06)), var(--glass)); border: 1px solid color-mix(in srgb, var(--text) 13%, transparent);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 500ms var(--ease-out), border-color var(--dur-med); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 45%); opacity: var(--go, 0); transition: opacity var(--dur-med); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card-wide { width: var(--card-w-wide); }

/* Lists & content atoms */
.specs { margin: 0.4rem 0 0; display: grid; gap: 0.45rem; font-size: 0.86rem; }
.specs li { padding-left: 1.1rem; position: relative; color: var(--muted); }
.specs li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 1.4rem 2rem; margin-top: 1.6rem; }
.stats b { display: block; font-family: var(--font-mono); font-size: clamp(1.5rem, 2.3vw, 2.2rem); font-weight: 500; color: var(--accent); }
.stats span { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.stats-col { grid-template-columns: 1fr 1fr; margin: 0.5rem 0 1.2rem; }
.plaques { display: grid; gap: 0.7rem; }
.plaques li { padding: 0.65rem 0.9rem; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent); }
.plaques b { display: block; font-family: var(--font-display-classic); font-size: 1.12rem; color: var(--accent); }
.plaques span { font-size: 0.84rem; color: var(--muted); }
.phases { display: grid; gap: 1rem; }
.phases li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; }
.phases li > b { font-family: var(--font-mono); color: var(--accent); font-weight: 500; padding-top: 2px; }
.phases p { font-size: 0.88rem; margin: 0; }
.card-plaque { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.card-directory { width: clamp(300px, 28vw, 380px); background: linear-gradient(180deg, #120f0c, #0b0908); border: 6px double color-mix(in srgb, var(--accent) 60%, transparent); }
.directory { display: grid; gap: 0.25rem; margin-bottom: 1.2rem; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.directory a, .directory li.here { display: flex; gap: 0.8rem; padding: 0.55rem 0.4rem; text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--accent) 30%, transparent); }
.directory a:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.directory span { color: var(--accent); }
.directory li.here { color: var(--accent); }
.ladder { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.ladder li { display: grid; grid-template-columns: 2.2rem 9rem 1fr; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: color-mix(in srgb, var(--glass) 70%, transparent); border: 1px solid var(--line); }
.ladder li:nth-child(2) { margin-left: 1.5rem; } .ladder li:nth-child(3) { margin-left: 3rem; border-color: var(--accent); }
.ladder .lucide { color: var(--accent); width: 1.3em; height: 1.3em; }
.ladder span { font-size: 0.84rem; color: var(--muted); }

.tier .price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.2rem 0 0.6rem; }
.tier .price b { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 500; color: var(--accent); }
.tier .price span { color: var(--muted); }
.tier .btn { margin-top: 1.2rem; align-self: flex-start; }
.tier-hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px -30px var(--accent); }
.standalone { display: grid; gap: 0.9rem; }
.standalone li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.standalone b { display: block; font-size: 0.95rem; }
.standalone span { font-size: 0.78rem; color: var(--muted); }
.standalone a { color: var(--accent); font-family: var(--font-mono); text-decoration: none; white-space: nowrap; font-size: 0.9rem; }

.industry-grid { flex: none; display: grid; grid-template-columns: repeat(4, clamp(200px, 17vw, 250px)); grid-auto-rows: clamp(150px, 26vh, 210px); gap: 14px; }
.ind { position: relative; overflow: hidden; border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; border: 1px solid var(--line); isolation: isolate; }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 900ms var(--ease-out), filter 600ms; filter: saturate(.7) brightness(.75); }
.ind::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,8,13,.92), rgba(5,8,13,.1) 70%); }
.ind:hover img { transform: scale(1.08); filter: saturate(1) brightness(.9); }
.ind:hover { border-color: var(--accent); }
.ind b { font-family: var(--display); font-size: 1.08rem; }
.ind span { font-size: 0.76rem; color: var(--muted); }

/* Floor 3 */
.telemetry { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: var(--fs-micro); letter-spacing: 0.1em; margin-top: 1.2rem; color: var(--muted); }
.telemetry b { color: var(--accent); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 0.7rem 0; font-weight: 600; font-size: 0.9rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); transition: transform var(--dur-med); }
details[open] summary::after { transform: rotate(45deg); }
details p { font-size: 0.86rem; color: var(--muted); padding-bottom: 0.4rem; }
.seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0.8rem 0; }
.seo-grid p { font-size: 0.82rem; color: var(--muted); }
.badge { display: inline-block; padding: 0.2em 0.6em; border-radius: 5px; font-size: 0.7rem; letter-spacing: 0.12em; border: 1px solid var(--accent); color: var(--accent); margin-bottom: 0.5rem; box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent); }
.card-quote blockquote { margin: 0 0 1rem; font-family: var(--display); font-size: 1.22rem; line-height: 1.4; }
.cite { font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent) !important; }

/* Floor 4 */
.card-calc { gap: 1rem; }
.field { display: grid; gap: 0.4rem; font-size: 0.84rem; color: var(--muted); }
.field.range { grid-template-columns: 1fr auto; }
.field.range input { grid-column: 1 / -1; }
.field output { font-family: var(--font-mono); color: var(--accent); }
select { font: inherit; color: var(--text); background: color-mix(in srgb, var(--surface) 80%, black); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 30%), var(--line) var(--fill, 30%)); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 18px var(--accent); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--accent); cursor: grab; }
.readout { display: grid; gap: 0.2rem; }
.readout div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.8rem; }
.readout span { color: var(--muted); }
.readout b { color: var(--accent); font-weight: 500; text-align: right; }
.readout .total b { font-size: 1.5rem; text-shadow: 0 0 20px var(--accent); }
.intensity { height: 6px; border-radius: 6px; background: var(--line); margin: 1rem 0 0.8rem; overflow: hidden; }
.intensity i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--accent), #a7f3d0); box-shadow: 0 0 14px var(--accent); transition: width 500ms var(--ease-out); }
.sug-rail { display: flex; gap: clamp(16px, 2vw, 28px); flex: none; }
.sug { width: clamp(260px, 22vw, 320px); }
.sug .rank { font-family: var(--font-mono); font-size: 2.4rem; color: color-mix(in srgb, var(--accent) 50%, transparent); line-height: 1; margin-bottom: 0.6rem; }
.sug .impact { margin-top: auto; padding-top: 0.8rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.card-meet .btn { margin-top: 0.6rem; align-self: flex-start; }

/* Floor 5 */
.social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.timeline { display: grid; gap: 0.9rem; }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.6rem; font-size: 0.86rem; }
.timeline b { font-family: var(--font-mono); color: var(--accent); font-weight: 500; }
.timeline span { color: var(--muted); }
.venture .outcome { font-size: 0.76rem; color: var(--accent) !important; letter-spacing: 0.04em; margin-top: 0.4rem; }
.venture .btn { margin-top: auto; align-self: flex-start; }
.venture { min-height: min(360px, 100%); }

/* Floor 6 */
.vault { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--topbar-h) + 2rem) var(--gutter) 1.5rem; gap: 0.5rem; }
.vault-doors { display: flex; gap: clamp(16px, 4vw, 60px); margin: 1rem 0 2rem; flex-wrap: wrap; justify-content: center; }
.vdoor { position: relative; width: clamp(200px, 20vw, 260px); height: clamp(260px, 42vh, 380px); border-radius: 14px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 60%, transparent), #000 70%); box-shadow: 0 0 60px -20px var(--accent); }
.vdoor-panels { position: absolute; inset: 0; display: flex; }
.vdoor-panels i { flex: 1; background: linear-gradient(90deg, #1b1d22, #2a2d33 40%, #121418); border-right: 1px solid #000; transition: transform 900ms var(--ease-lift); }
.vdoor-panels i:last-child { background: linear-gradient(270deg, #1b1d22, #2a2d33 40%, #121418); border: 0; border-left: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.vdoor:hover .vdoor-panels i:first-child { transform: translateX(-10%); } .vdoor:hover .vdoor-panels i:last-child { transform: translateX(10%); }
.vdoor.open .vdoor-panels i:first-child { transform: translateX(-100%); } .vdoor.open .vdoor-panels i:last-child { transform: translateX(100%); }
.vdoor-label { position: absolute; inset: auto 0 0 0; padding: 1rem; display: grid; gap: 0.2rem; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.vdoor-label .lucide { width: 2rem; height: 2rem; margin: 0 auto 0.3rem; color: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); }
.vdoor-label small { color: var(--muted); font-size: 0.74rem; }
.site-foot { margin-top: auto; font-size: 0.82rem; color: var(--muted); display: grid; gap: 0.4rem; justify-items: center; }
.site-foot nav { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
.site-foot a { color: var(--text); text-decoration: none; opacity: .8; } .site-foot a:hover { color: var(--accent); opacity: 1; }
.site-foot .foot-brand span { opacity: .7; }
.foot-support { font-style: normal; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: center; font-family: var(--font-mono); font-size: .76rem; }
.foot-support a, .foot-support span { display: inline-flex; align-items: center; gap: .4em; }
.foot-support .lucide { color: var(--accent); }
.foot-hours { font-size: .72rem; opacity: .75; margin: 0; }
.legal-note { margin: .9rem 0 0; font-size: .74rem; } .legal-note a, .cond { color: var(--accent); }
.cond { font-family: var(--font-mono); font-size: .68rem; margin-left: .3em; }

/* Exterior */
.exterior { position: relative; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--topbar-h) + 2rem) calc(var(--hud-w) + var(--gutter)) clamp(2.5rem, 9vh, 6rem) clamp(1.2rem, 6vw, 6rem); max-width: 980px; }
.hero-title { font-family: var(--font-display-classic); font-size: var(--fs-hero); font-weight: 500; line-height: 0.98; margin-bottom: 1.4rem; }
.hero-title .line { display: block; }
.hero-sub { max-width: 54ch; font-size: clamp(1rem, 1.25vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; }
.hero-foot { font-size: var(--fs-micro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Modal */
.modal { width: min(640px, 92vw); max-height: 86vh; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 20px; padding: 2rem; color: var(--text); background: color-mix(in srgb, var(--surface) 92%, black); box-shadow: 0 40px 120px -20px #000, 0 0 60px -30px var(--accent); }
.modal::backdrop { background: rgba(2,3,6,.6); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn 420ms var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal h3 { font-family: var(--display); font-size: 1.9rem; margin-bottom: 1rem; }
.modal h4 { font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 1.2rem 0 0.4rem; }
.modal p, .modal li { color: color-mix(in srgb, var(--text) 85%, transparent); }
.modal ul { display: grid; gap: .3rem; } .modal ul li { padding-left: 1rem; position: relative; } .modal ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-size: .8em; top: .2em; }
.modal-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.modal-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.modal .field { margin-top: .8rem; text-align: left; }
.modal input[type="email"], .modal input[type="password"], .modal input[type="text"] { font: inherit; color: var(--text); background: #000; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; }

/* Effects layers */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; mix-blend-mode: screen; }
.shaft { position: fixed; inset: 0; pointer-events: none; z-index: 6; opacity: 0; transition: opacity 300ms; }
.shaft .rail { position: absolute; top: 0; bottom: 0; width: 14px; background: repeating-linear-gradient(0deg, transparent 0 40px, color-mix(in srgb, var(--accent) 70%, transparent) 40px 42px), linear-gradient(90deg, #0b0d11, #20242b, #0b0d11); background-size: 100% 42px, 100%; animation: rail 0.35s linear infinite; }
.shaft .rail.l { left: 0; } .shaft .rail.r { right: 0; }
.shaft .cable { position: absolute; left: 50%; top: 0; height: 100%; width: 2px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.25), transparent); }
.shaft-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-mono); font-size: clamp(6rem, 22vw, 18rem); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 60%, transparent); opacity: .35; }
@keyframes rail { to { background-position: 0 42px, 0 0; } }
html.lifting .shaft { opacity: 1; }
.track-hint { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: .8rem; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); pointer-events: none; transition: opacity var(--dur-med); }
.track-hint i { width: 60px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); animation: hint 1.6s var(--ease-out) infinite; }
@keyframes hint { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); display: grid; place-items: center; transition: width 300ms var(--ease-out), height 300ms var(--ease-out), margin 300ms var(--ease-out), background 300ms; }
.cursor-ring b { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: .12em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity 200ms; font-weight: 600; }
.cursor.hot .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.cursor.label .cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--accent); }
.cursor.label .cursor-ring b { opacity: 1; }
.cursor.down .cursor-ring { transform: scale(.85); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ================= CINEMATIC MODE ================= */
html.cine, html.cine body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.cine body.has-cursor, html.cine body.has-cursor a, html.cine body.has-cursor button, html.cine body.has-cursor summary { cursor: none; }
html.cine #tower { position: fixed; inset: 0; overflow: hidden; }
html.cine .floor { position: absolute; inset: 0; will-change: transform; --slab: 18vh; }
html.cine .floor::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--slab); z-index: 2;
  background: linear-gradient(180deg, #050608 0%, #16181d 30%, #0b0c0f 70%, color-mix(in srgb, var(--accent) 50%, #000) 98%, var(--accent) 100%); box-shadow: 0 6px 40px color-mix(in srgb, var(--accent) 40%, transparent); }
html.cine .track-wrap { position: absolute; top: calc(var(--topbar-h) + 2vh); bottom: 7vh; left: 0; right: calc(var(--hud-w) + 8px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 93%, transparent 100%); }
html.cine .track { height: 100%; width: max-content; padding: 0 7vw 0 clamp(1.2rem, 6vw, 6rem); will-change: transform; }
html.cine .floor-0 .plate-img { transform-origin: 50% 73%; }
html.cine .floor-0 .exterior { min-height: 100vh; }
html.cine .vault { min-height: 100vh; }
html.cine .floor:not(.active) .track-wrap, html.cine .floor:not(.active) .exterior, html.cine .floor:not(.active) .vault { pointer-events: none; }
html.cine.static-ui .hud { display: none; }

/* ================= STATIC MODE ================= */
html.static .cursor, html.static #fx, html.static .shaft, html.static .track-hint { display: none; }
html.static .floor { min-height: 100vh; padding: calc(var(--topbar-h) + 3rem) 0 3rem; scroll-margin-top: 0; }
html.static .floor-0, html.static .floor-6 { padding: 0; }
html.static .track-wrap { position: relative; }
html.static .track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem calc(var(--hud-w) + var(--gutter)) 1.5rem clamp(1.2rem, 6vw, 6rem); align-items: stretch; scrollbar-width: thin; }
html.static .track > * { scroll-snap-align: start; }
html.static .card { max-height: none; }
html.static .bay-intro, html.static .bay-divider { align-self: center; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .topnav { display: none; }
  .locator-bar { display: none; }
  .stats { grid-template-columns: repeat(2, auto); }
  .seo-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(4, 62vw); grid-auto-rows: 22vh; }
  :root { --card-w: 82vw; --card-w-wide: 86vw; --hud-w: 0px; }
  .hud { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); width: auto; flex-direction: row; padding: 5px 8px; gap: 6px; }
  .hud-display { width: 34px; height: 30px; font-size: .8rem; }
  .hud-buttons { flex-direction: row-reverse; gap: 4px; }
  .hud-buttons button, .hud-motion { width: 32px; height: 32px; font-size: .72rem; margin: 0; }
  html.cine .track-wrap { right: 0; bottom: 76px; -webkit-mask-image: none; mask-image: none; }
  html.cine .track { padding-right: 9vw; padding-left: 9vw; }
  .track-hint { bottom: 64px; white-space: nowrap; }
  .exterior { padding-right: var(--gutter); padding-bottom: 96px; }
  .vault { padding-bottom: 80px; }
  html.static .track { padding-right: var(--gutter); }
  .ladder li { grid-template-columns: 2rem 1fr; } .ladder li span { grid-column: 2; }
  .ladder li:nth-child(2), .ladder li:nth-child(3) { margin-left: 0; }
  .topbar .btn-sm { padding: .5em .8em; font-size: .74rem; }
  .locator { padding-left: .6rem; }
  .locator-name { display: none; }
  .vdoor { width: 40vw; height: 34vh; }
}
@media (max-height: 700px) and (min-width: 901px) { html.cine .track-wrap { bottom: 5vh; } }
@media (max-height: 700px) { .card { padding: 18px; } }

/* ================= FIT GUARANTEES (all viewports) ================= */
/* Bays and the vault never clip: they scroll internally if a viewport is too short. */
html.cine .bay { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
html.cine .bay::-webkit-scrollbar { display: none; }
html.cine .vault { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; }
html.cine .vault > .kicker { margin-top: auto; } /* centers when it fits, never clips the top when it overflows */
html.cine .floor-0 .exterior { min-height: 0; height: 100%; }
.hero-title { font-size: min(var(--fs-hero), 11.5vh); }
.floor-title { font-size: min(var(--fs-h2), 7.2vh); }
.vdoor { height: clamp(170px, 38vh, 380px); }

/* Short screens: phone landscape, small laptops with zoom, split-screen */
@media (max-height: 520px) {
  :root { --topbar-h: 46px; --hud-w: 50px; --card-w: clamp(260px, 38vw, 360px); --card-w-wide: clamp(300px, 54vw, 520px); }
  .topbar { gap: .8rem; }
  .topbar .btn-sm { padding: .4em .8em; font-size: .72rem; }
  .brand img { width: 24px; height: 24px; }
  .locator-name, .locator-bar, .topnav { display: none; }
  /* Elevator returns to a slim right rail (bottom dock would eat half the height) */
  .hud { top: calc(var(--topbar-h) + 4px); bottom: 6px; right: 6px; left: auto; transform: none; width: 40px; flex-direction: column; justify-content: center; padding: 4px; gap: 3px; border-radius: 22px; }
  .hud-display { display: none; }
  .hud-buttons { flex-direction: column; gap: 2px; }
  .hud-buttons button, .hud-motion { width: 30px; height: 30px; font-size: .68rem; margin: 0; }
  html.cine .track-wrap { top: calc(var(--topbar-h) + 4px); bottom: 6px; right: calc(var(--hud-w) + 4px); }
  html.cine .track { padding-left: 1rem; padding-right: 1rem; }
  .track-hint { display: none; }
  .card { padding: 14px 16px; }
  .card h3 { font-size: 1.05rem; }
  .kicker { margin-bottom: .45rem; }
  .lede { font-size: .9rem; }
  .stats { margin-top: .8rem; gap: .6rem 1.2rem; }
  .stats b { font-size: 1.25rem; }
  .ladder { margin-top: .7rem; gap: .35rem; } .ladder li { padding: .4rem .6rem; }
  .industry-grid { grid-template-columns: repeat(4, 30vw); grid-auto-rows: calc((100vh - var(--topbar-h) - 24px) / 2); }
  .exterior { padding: calc(var(--topbar-h) + .5rem) calc(var(--hud-w) + 1rem) 1rem 1.2rem; }
  .hero-sub { font-size: .88rem; max-width: 60ch; }
  .hero-actions { margin: .8rem 0 0; }
  .hero-foot { display: none; }
  .vault { padding: calc(var(--topbar-h) + .5rem) calc(var(--hud-w) + 1rem) .8rem 1rem; }
  .vault-doors { margin: .4rem 0 .8rem; gap: 14px; }
  .vdoor { width: 28vw; height: 52vh; }
  .modal { padding: 1.2rem; max-height: 92vh; }
}
/* Very small phones (iPhone SE class) */
@media (max-width: 400px) and (max-height: 700px) {
  .bay-intro .lede { font-size: .9rem; }
  .ladder span { display: none; }
  .vdoor { height: 30vh; }
  .site-foot > p:first-child { display: none; }
  .vault .floor-title { margin-bottom: .4rem; }
}
@media (max-height: 520px) { .foot-brand, .foot-hours { display: none; } .foot-support { font-size: .68rem; gap: .2rem .9rem; } }

/* Phone vault: keep every support detail, compress the stage */
@media (max-width: 900px) and (min-height: 521px) {
  html.cine .vault { padding-top: calc(var(--topbar-h) + .6rem); padding-bottom: 72px; gap: .3rem; }
  .vault .floor-title { font-size: 1.55rem; margin-bottom: .2rem; }
  .vault-doors { margin: .3rem 0 .6rem; gap: 10px; }
  .vdoor { width: 42vw; height: clamp(140px, 24vh, 220px); }
  .vdoor-label { padding: .6rem; } .vdoor-label small { display: none; }
  .vdoor-label .lucide { width: 1.5rem; height: 1.5rem; }
  .foot-brand { display: none; }
  .site-foot { gap: .3rem; font-size: .72rem; }
  .foot-support { font-size: .68rem; gap: .15rem .8rem; }
  .foot-hours { display: block !important; font-size: .64rem; }
  .site-foot nav { gap: .2rem .9rem; font-size: .72rem; }
}

/* Street-level promo pill */
.promo { align-self: flex-start; display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; padding: .45rem .55rem .45rem .5rem; border-radius: 999px; font-size: .8rem; text-decoration: none; color: var(--text);
  background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); backdrop-filter: blur(10px); box-shadow: 0 0 30px -10px var(--accent); transition: border-color var(--dur-med), transform var(--dur-fast); }
.promo b { background: var(--accent); color: #0a0a0a; border-radius: 999px; padding: .15rem .55rem; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.promo span { color: var(--accent); font-weight: 600; padding-right: .3rem; }
.promo:hover { border-color: var(--accent); }
@media (max-width: 600px) { .promo { font-size: .72rem; flex-wrap: wrap; border-radius: 14px; } }
@media (max-height: 520px) { .promo { margin-bottom: .4rem; font-size: .7rem; } }

/* ROI lead capture dialog */
.modal.lead { width: min(520px, 92vw); }
.lead-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1rem 0 .4rem; }
.lead-sum div { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.lead-sum span { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lead-sum b { font-size: 1.35rem; font-weight: 500; color: var(--accent); }
#leadForm { display: grid; gap: .2rem; }
#leadForm .btn { justify-self: start; margin-top: .9rem; }
#leadForm .fine { margin-top: .8rem; }
.modal input[type="email"]:focus, .modal input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-err { color: #fca5a5; font-size: .84rem; min-height: 1.2em; margin: .5rem 0 0; }
.lead-scan { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 1.2rem 0; }
.lead-scan i { display: block; height: 100%; width: 35%; border-radius: 6px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: scan 1.3s var(--ease-out) infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
