/* ═══════════════════════════════════════════════════════════════════
   LEGACY NATION CONTRACTING — ELEVATOR CONCEPT SITE
   Design system: deep-night steel + hoist-cyan + hazard amber
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg-deep: #020617;
  --bg-0: #04070f;
  --steel-900: #0b1322;
  --steel-800: #101c33;
  --steel-700: #16243e;
  --steel-600: #1e2f4e;
  --steel-500: #2c405f;
  --steel-400: #54708f;
  --steel-300: #8ba3c7;
  --steel-200: #b9c9e2;
  --ice: #e6eefb;
  --text: #dbe7fa;
  --muted: #9db1d3;
  --dim: #7d93b8;
  --cyan: #38b6e8;
  --cyan-soft: #7dd3fc;
  --cyan-deep: #1c6ea4;
  --cyan-dark: #155a88;
  --amber: #f5a524;
  --green: #34d17c;
  --font-display: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .75, .22, 1);
  --sidebar-w: 322px;
  --shaft-w: 96px;
  --footer-h: 116px;
  --ticker-h: 64px;
  --clip-oct: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  --clip-oct-sm: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  --clip-hex: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
::selection { background: rgba(56,182,232,.35); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* film grain */
.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.2s steps(3) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ── APP GRID ──────────────────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) var(--shaft-w) 1fr;
  grid-template-rows: 1fr var(--footer-h);
  grid-template-areas:
    "side shaft main"
    "foot foot foot";
  width: 100vw; height: 100vh; height: 100dvh;
  overflow: hidden;
}
/* grid items must never inflate the 1fr track with their content minimum
   (nowrap marquee / long words were blowing the column out to ~4500px) */
.app > * { min-width: 0; }

/* ═══════════════════════ PRELOADER ═════════════════════════════ */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(28,110,164,.14), transparent 70%),
    linear-gradient(180deg, #060b18, #03060e 70%);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #101625 14px 28px);
  opacity: .6;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 26px; }
.pre-plate {
  width: min(420px, calc(100vw - 48px));
  position: relative;
  background: linear-gradient(180deg, #101c33, #0a1223 70%, #070d1a);
  border: 1px solid rgba(125,211,252,.22);
  clip-path: var(--clip-oct);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.07);
  padding: 34px 34px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.pre-plate::before, .pre-plate::after {
  content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #eef4fc, #33517a);
  box-shadow: 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.25);
}
.pre-plate::before { top: 14px; left: 14px; }
.pre-plate::after { top: 14px; right: 14px; }
.pre-logo { width: 150px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.pre-brand { font-family: var(--font-display); font-weight: 800; font-size: .92rem; letter-spacing: .18em; color: var(--ice); text-align: center; }
.pre-sub { font-family: var(--font-display); font-weight: 600; font-size: .6rem; letter-spacing: .3em; color: var(--cyan); text-align: center; text-shadow: 0 0 14px rgba(56,182,232,.4); }
.pre-checks { width: 100%; list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.pc {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: .62rem; font-weight: 600; letter-spacing: .18em;
  color: #6c82a6;
  padding: 6px 12px;
  border: 1px solid rgba(139,163,199,.12);
  background: rgba(7,13,26,.55);
  clip-path: var(--clip-oct-sm);
  transition: .3s;
}
.pc-val { color: #44598a; transition: .3s; }
.pc.ok { color: #b7cde8; border-color: rgba(56,182,232,.28); }
.pc.ok .pc-val { color: var(--cyan); text-shadow: 0 0 10px rgba(56,182,232,.65); }
.pre-bar { position: relative; width: 100%; height: 12px; margin-top: 8px; background: #060c18; border: 1px solid rgba(139,163,199,.2); box-shadow: inset 0 2px 6px rgba(0,0,0,.7); }
.pre-fill { position: absolute; inset: 1px auto 1px 1px; width: 0%; background: linear-gradient(90deg, var(--cyan-dark), var(--cyan) 70%, #9be2ff); box-shadow: 0 0 14px rgba(56,182,232,.55); transition: width .18s linear; }
.pre-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 19%, rgba(2,6,23,.85) 19% 20%); pointer-events: none; }
.pre-row { width: 100%; display: flex; justify-content: space-between; font-family: var(--font-display); font-size: .6rem; font-weight: 700; letter-spacing: .2em; color: #7d93b8; }
#prePct { color: var(--cyan); }
.pre-note { font-family: var(--font-display); font-size: .55rem; font-weight: 600; letter-spacing: .3em; color: #44598a; animation: preNote 1.8s ease-in-out infinite; }
@keyframes preNote { 0%, 100% { opacity: .35 } 50% { opacity: .9 } }

/* ═══════════════════════ SIDEBAR ════════════════════════════════ */
.sidebar {
  grid-area: side;
  position: relative; z-index: 30;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.022) 0 1px, transparent 1px 6px),
    linear-gradient(180deg, #0a1120 0%, #070d1a 55%, #04070f 100%);
  border-right: 1px solid rgba(56,182,232,.32);
  box-shadow: 12px 0 44px rgba(0,0,0,.6);
  overflow: hidden;
}
.sidebar-inner {
  height: 100%;
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px 18px 16px;
}
.sidebar::after {
  content: '';
  position: absolute; top: 0; bottom: 0; right: -1px; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(56,182,232,.5) 30%, rgba(56,182,232,.5) 70%, transparent);
  pointer-events: none;
}

/* logo plate */
.logo-block { flex: 0 0 auto; }
.logo-plate {
  position: relative;
  background: linear-gradient(180deg, #dfe7f4 0%, #b4c5dd 40%, #8ba0bf 75%, #71889f 100%);
  border-radius: 14px;
  padding: 16px 14px 13px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.75),
    inset 0 -3px 8px rgba(0,0,0,.4),
    0 8px 22px rgba(0,0,0,.5);
}
.logo-plate::before {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.4);
  border-bottom: none;
  pointer-events: none;
}
.screw {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f6f9fd, #47597a);
  box-shadow: 0 1px 2px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.3);
  top: 9px; z-index: 2;
}
.screw::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 7px; height: 1.6px; background: #33415f;
  transform: translate(-50%, -50%) rotate(45deg); border-radius: 1px;
}
.screw-tl { left: 11px; }
.screw-tr { right: 11px; }
.logo-img { display: block; width: 100%; max-width: 230px; margin: 0 auto; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.logo-rule { width: 68%; height: 3px; margin: 9px auto 0; background: linear-gradient(90deg, transparent, #5b7291, transparent); border-radius: 2px; }
.logo-tagline {
  margin-top: 9px; text-align: center;
  font-family: var(--font-display);
  font-size: .58rem; font-weight: 700; letter-spacing: .22em;
  color: #7ea8c4;
  text-shadow: 0 0 12px rgba(56,182,232,.25);
}

/* floor directory nav */
.floor-nav { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 2px; }
.floor-nav::-webkit-scrollbar { display: none; }
.nav-plate-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .6rem; font-weight: 700;
  letter-spacing: .3em; color: #5f7ca3;
  margin: 2px 0 2px;
}
.npt-rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(139,163,199,.35), transparent); }
.fnav {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 14px;
  background: linear-gradient(180deg, #17253f 0%, #0e1a30 65%, #0a1428 100%);
  border: 1px solid rgba(139,163,199,.15);
  clip-path: var(--clip-oct-sm);
  cursor: pointer; text-align: left;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s, background .22s;
}
.fnav:hover { border-color: rgba(56,182,232,.45); transform: translateX(3px); background: linear-gradient(180deg, #1b2c4a 0%, #10203a 65%, #0c1730 100%); }
.fnav::after {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity .3s;
  box-shadow: 0 0 10px var(--cyan);
}
.fnav.active { background: linear-gradient(180deg, #1e3355 0%, #132542 65%, #0e1d38 100%); border-color: rgba(56,182,232,.55); box-shadow: inset 0 0 24px rgba(56,182,232,.1), 0 6px 18px rgba(0,0,0,.35); }
.fnav.active::after { opacity: 1; }
.fnum {
  flex: 0 0 auto;
  width: 33px; height: 33px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .88rem;
  color: #0d1830;
  background: linear-gradient(145deg, #dfe9f8 0%, #a9bed9 55%, #7e97ba 100%);
  clip-path: var(--clip-hex);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), inset 0 -2px 4px rgba(0,0,0,.3);
  transition: .3s;
}
.fnav.active .fnum {
  color: #04121f;
  background: linear-gradient(145deg, #9be2ff 0%, #38b6e8 55%, #1c6ea4 100%);
  box-shadow: 0 0 16px rgba(56,182,232,.6), inset 0 1px 1px rgba(255,255,255,.5);
}
.fmeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fname { font-family: var(--font-display); font-weight: 700; font-size: .84rem; letter-spacing: .08em; color: var(--text); white-space: nowrap; }
.fdesc { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fchev { width: 20px; height: 20px; flex: none; color: var(--steel-300); opacity: .45; transition: .25s; }
.fchev svg { width: 100%; height: 100%; display: block; }
.fnav.active .fchev { color: var(--cyan-soft); opacity: 1; filter: drop-shadow(0 0 6px rgba(56,182,232,.8)); }

/* LED floor display module */
.led-module {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #0d1829, #070d1a);
  border: 1px solid rgba(56,182,232,.25);
  clip-path: var(--clip-oct-sm);
  padding: 12px 13px 10px;
  box-shadow: inset 0 0 22px rgba(0,0,0,.55), inset 0 0 40px rgba(56,182,232,.04), 0 8px 20px rgba(0,0,0,.35);
}
.led-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.led-title { font-family: var(--font-display); font-size: .58rem; font-weight: 700; letter-spacing: .3em; color: var(--dim); }
.led-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: .56rem; font-weight: 700; letter-spacing: .14em; color: var(--green); transition: color .3s; }
.led-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: dotPulse 2.4s ease-in-out infinite; }
.led-module.is-moving .led-status { color: var(--amber); }
.led-module.is-moving .led-status .dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation-duration: .8s; }
@keyframes dotPulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.led-display {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #010812;
  border: 1px solid rgba(56,182,232,.28);
  border-radius: 6px;
  padding: 9px 10px;
  box-shadow: inset 0 0 18px rgba(0,0,0,.75), inset 0 0 30px rgba(14,116,190,.13);
  overflow: hidden;
}
.led-display::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(182,225,255,.05) 0 1px, transparent 1px 3px);
}
.led-readout { display: flex; flex-direction: column; align-items: center; min-width: 74px; }
.led-level {
  font-family: var(--font-display); font-weight: 900; font-size: 2.35rem; line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(56,182,232,.8), 0 0 32px rgba(56,182,232,.4);
  transition: opacity .12s;
}
.led-level.tick { animation: ledTick .16s; }
@keyframes ledTick { 0% { opacity: .25 } 100% { opacity: 1 } }
.led-name { font-family: var(--font-display); font-size: .58rem; font-weight: 700; letter-spacing: .26em; color: #8fb8d9; margin-top: 4px; text-align: center; }
.dir { width: 26px; height: 26px; display: grid; place-items: center; color: #2c4468; transition: color .2s; }
.dir svg { width: 17px; height: 17px; }
.dir.on { color: var(--cyan); animation: blink .8s steps(2) infinite; filter: drop-shadow(0 0 6px rgba(56,182,232,.9)); }
@keyframes blink { 50% { opacity: .25 } }
.led-foot { margin-top: 9px; text-align: center; font-family: var(--font-display); font-size: .52rem; font-weight: 600; letter-spacing: .18em; color: #647a9e; }

/* sound toggle + land recognition plate */
.side-foot { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; }
.sound-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 9px;
  background: linear-gradient(180deg, #17253f, #0c1729);
  border: 1px solid rgba(139,163,199,.18);
  clip-path: var(--clip-oct-sm);
  color: var(--steel-200); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: .62rem; letter-spacing: .26em;
  transition: .25s;
}
.sound-btn:hover { border-color: rgba(56,182,232,.5); color: var(--cyan-soft); }
.sound-btn .sb-icon { width: 17px; height: 17px; display: none; place-items: center; }
.sound-btn .sb-icon svg { width: 100%; height: 100%; }
.sound-btn[aria-pressed="true"] .sb-icon.sb-on { display: grid; color: var(--cyan); filter: drop-shadow(0 0 6px rgba(56,182,232,.6)); }
.sound-btn[aria-pressed="false"] .sb-icon.sb-off { display: grid; }
.cert-plate {
  text-align: center;
  font-size: .62rem; font-weight: 600; letter-spacing: .16em; line-height: 1.5;
  color: #5f7ca3;
  border-top: 1px dashed rgba(139,163,199,.22);
  padding-top: 9px;
}

/* ═══════════════════════ FOOTER ═════════════════════════════════ */
.site-footer { grid-area: foot; position: relative; z-index: 40; display: flex; flex-direction: column; }
.ticker {
  position: relative;
  height: var(--ticker-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, #101a2e, #0a1120);
  border-top: 1px solid rgba(56,182,232,.32);
  overflow: hidden;
}
.ticker::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 13px, #131a2c 13px 26px);
  opacity: .5;
}
.ticker-label {
  display: flex; align-items: center; gap: 9px;
  height: 100%; padding: 0 30px 0 20px;
  background: linear-gradient(180deg, #1e7ab3 0%, #2277ab 45%, #155a88 100%);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  color: #f2fafe;
  font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .1em;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  box-shadow: 4px 0 14px rgba(0,0,0,.35);
  white-space: nowrap;
}
.ticker-label svg { width: 13px; height: 13px; }
.ticker-viewport {
  flex: 1; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}
.ticker-items {
  display: inline-flex; align-items: center; gap: 54px;
  padding-left: 54px; white-space: nowrap;
  animation: tickerScroll 38s linear infinite;
  will-change: transform;
}
.ticker-items span {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .06em; color: #d7e4f7; text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.ticker-items span::after {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 54px;
  background: var(--cyan-deep); transform: rotate(45deg) translateY(-1px);
  box-shadow: 0 0 8px rgba(56,182,232,.4);
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }
.ticker:hover .ticker-items { animation-play-state: paused; }
.footer-bottom {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 24px;
  background: linear-gradient(180deg, #141f37, #0c1526);
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .8rem; font-weight: 600; letter-spacing: .05em; color: #b7c7e2;
}
.fb-left { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-mid { font-family: var(--font-display); font-size: .62rem; font-weight: 700; letter-spacing: .22em; color: var(--dim); white-space: nowrap; }
.fb-clock { color: var(--cyan-soft); text-shadow: 0 0 10px rgba(56,182,232,.45); letter-spacing: .12em; }
.fb-right { display: flex; align-items: center; gap: 20px; white-space: nowrap; }
.fb-right a { color: #cbd9ef; text-decoration: none; font-weight: 700; letter-spacing: .08em; transition: .2s; }
.fb-right a:hover { color: var(--cyan-soft); text-shadow: 0 0 10px rgba(56,182,232,.5); }
/* ═══════════════════════ ELEVATOR SHAFT ═════════════════════════ */
.elevator-shaft {
  grid-area: shaft;
  position: relative; z-index: 20;
  background: linear-gradient(180deg, #050b18 0%, #081226 45%, #0b162e 100%);
  border-left: 2px solid var(--cyan-deep);
  border-right: 2px solid var(--cyan-deep);
  box-shadow:
    inset 0 0 44px rgba(0,0,0,.8),
    inset 4px 0 8px rgba(56,182,232,.16),
    inset -4px 0 8px rgba(56,182,232,.16);
  overflow: hidden;
}
.shaft-inner { position: absolute; inset: 0; }
.shaft-inner::before, .shaft-inner::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 5px; z-index: 12;
  background: linear-gradient(90deg, #16243e, #4d6890 40%, #8ba3c7 50%, #4d6890 60%, #16243e);
  box-shadow: 0 0 8px rgba(0,0,0,.55);
}
.shaft-inner::before { left: 1px; }
.shaft-inner::after { right: 1px; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 86px; z-index: 0; opacity: .85; }
.shaft-scan {
  position: absolute; inset: 0; z-index: 12; pointer-events: none;
  background:
    radial-gradient(130% 55% at 50% 0%, rgba(56,182,232,.08), transparent 62%),
    linear-gradient(180deg, rgba(56,182,232,.05), transparent 22%);
}

/* mast (lattice tower) */
.mast {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 66px; bottom: 54px; width: 44px; z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(139,163,199,.28) 0 3px, transparent 3px 44px),
    repeating-linear-gradient(63deg, rgba(139,163,199,.16) 0 2.5px, transparent 2.5px 19px),
    repeating-linear-gradient(-63deg, rgba(139,163,199,.16) 0 2.5px, transparent 2.5px 19px),
    linear-gradient(90deg, #0a1120, #12203c 50%, #0a1120);
  box-shadow: inset 0 0 14px rgba(0,0,0,.7);
}
.mast::before, .mast::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 7px;
  background: linear-gradient(90deg, #22344f, #54708f 45%, #93a9c4 55%, #2c405f);
  box-shadow: 0 0 6px rgba(56,182,232,.14), inset 0 0 3px rgba(0,0,0,.6);
}
.mast::before { left: 0; }
.mast::after { right: 0; }

/* headworks */
.headworks { position: absolute; top: 0; left: 0; right: 0; height: 74px; z-index: 6; }
.beacon {
  position: absolute; top: 7px; left: 50%; margin-left: -3.5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 10px #ff4d4d, 0 0 24px rgba(255,77,77,.55);
  animation: beacon 3s infinite;
}
@keyframes beacon {
  0%, 100% { opacity: .25 } 7% { opacity: 1 } 11% { opacity: .3 }
  15% { opacity: 1 } 19% { opacity: .25 }
}
.motor-box {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 24px;
  background: linear-gradient(180deg, #3f5473, #22354f 60%, #16243a);
  border: 1px solid rgba(255,255,255,.2); border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.motor-tag {
  font-family: var(--font-display); font-size: .46rem; font-weight: 700;
  letter-spacing: .1em; color: #cfe0f5; white-space: nowrap;
}
.vent {
  width: 3px; height: 11px; background: rgba(0,0,0,.42);
  box-shadow: inset 0 0 2px #000, 0 1px 0 rgba(255,255,255,.14);
}
.flagpole { position: absolute; top: 13px; left: 15px; width: 2px; height: 26px; background: #54708f; }
.flag {
  position: absolute; top: 2px; left: 17px; width: 15px; height: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-deep));
  clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
  transform-origin: left center;
  animation: flagWave 2.3s ease-in-out infinite;
}
@keyframes flagWave { 0%, 100% { transform: skewY(0deg) scaleX(1) } 50% { transform: skewY(4deg) scaleX(.9) } }
.pulley {
  position: absolute; top: 44px; left: calc(50% - 12px);
  width: 24px; height: 24px; color: #9db4d2; z-index: 7;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.6));
}
.pulley svg { width: 100%; height: 100%; display: block; }

/* cables */
.cable {
  position: absolute; top: 0; width: 2px; z-index: 5;
  background: linear-gradient(90deg, #43587a, #aebfd8 50%, #43587a);
  box-shadow: 0 0 3px rgba(0,0,0,.5);
}
.cable-main { }
.cable-cw { }

/* counterweight */
.counterweight { position: absolute; width: 14px; z-index: 8; will-change: transform; }
.cw-wheels { display: flex; justify-content: space-between; padding: 0 1px; }
.cw-wheel {
  width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dfe9f8, #43587a 70%);
  box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.cw-plates {
  position: relative; width: 100%; height: 64px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 15px, rgba(0,0,0,.18) 15px 16px),
    linear-gradient(90deg, #223350, #3a5075);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 4px 10px rgba(0,0,0,.55);
}
.cw-tag {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: .46rem; font-weight: 700;
  letter-spacing: .14em; color: #a9c1e0; white-space: nowrap;
}

/* landings */
.landing { position: absolute; left: 0; right: 0; height: 0; z-index: 3; }
.landing-num {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 15px; z-index: 4;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: .54rem; font-weight: 800;
  color: #8fb8d9;
  background: #0c1728;
  border: 1px solid rgba(56,182,232,.38);
}
.platform { position: absolute; left: 2px; right: 2px; top: 0; height: 14px; }
.slab {
  position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(180deg, #5d7694, #2b3f5e 55%, #152238);
  box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.35);
}
.hazard-strip {
  position: absolute; left: 0; right: 0; top: 6px; height: 4px;
  background: repeating-linear-gradient(-45deg, #d99a1f 0 9px, #141b2c 9px 18px);
  opacity: .85; box-shadow: 0 2px 4px rgba(0,0,0,.4);
}
.gate-led {
  position: absolute; left: 0; right: 0; top: 10.5px; height: 2.5px;
  background: rgba(56,182,232,.12);
  transition: background .35s, box-shadow .35s;
}
.landing.active .gate-led {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(56,182,232,.6);
}
.railing {
  position: absolute; left: 3px; right: 3px; top: -20px; height: 20px;
  background: repeating-linear-gradient(90deg, rgba(139,163,199,.5) 0 2px, transparent 2px 10px);
  border-top: 2px solid rgba(139,163,199,.6);
}

/* workers */
.worker {
  position: absolute; bottom: 5px; width: 26px; height: 41px;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(56,182,232,.55));
  overflow: visible;
}
.w-left { left: 4px; }
.w-right { right: 4px; }
.w-wave {
  transform-box: fill-box; transform-origin: 15% 90%;
  animation: wave 2.6s ease-in-out infinite;
}
@keyframes wave { 0%, 100% { transform: rotate(-8deg) } 50% { transform: rotate(16deg) } }
.rider {
  position: absolute; left: 50%; bottom: 3px;
  transform: translateX(-50%) scale(.8);
  transform-origin: bottom center;
  color: #8fdcff; animation: riderBob 3.4s ease-in-out infinite;
}
@keyframes riderBob {
  0%, 100% { transform: translateX(-50%) scale(.8) translateY(0) }
  50% { transform: translateX(-50%) scale(.8) translateY(1.2px) }
}
.rider .w-wave { animation: none; transform: rotate(6deg); }

/* elevator car */
.car {
  position: absolute; left: 0; top: 0; width: 58px; z-index: 10;
  will-change: transform;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.65));
}
.car::before {
  content: '';
  position: absolute; inset: -3px -4px;
  background: linear-gradient(180deg, rgba(56,182,232,.75), rgba(28,110,164,.35));
  border-radius: 7px;
  box-shadow: 0 0 18px rgba(56,182,232,.35);
  z-index: -1;
}
/* car (continued) */
.car-roof {
  position: relative; height: 9px;
  background: linear-gradient(180deg, #e8eef8, #b9c9e2 55%, #8ba3c7);
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 3px rgba(0,0,0,.25);
}
.roof-rail { position: absolute; top: -7px; left: 6px; right: 6px; height: 2px; background: #7e97ba; box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.roof-rail::before, .roof-rail::after {
  content: ''; position: absolute; top: 2px; width: 2px; height: 7px; background: #7e97ba;
}
.roof-rail::before { left: 0; }
.roof-rail::after { right: 0; }
.car-cage {
  position: relative; height: 88px;
  background: linear-gradient(180deg, #1d2c48, #12203c 55%, #0d1830);
  border-left: 3px solid #93a9c4;
  border-right: 3px solid #93a9c4;
  box-shadow: inset 0 0 12px rgba(0,0,0,.55);
}
.cage-mesh {
  position: absolute; inset: 5px 5px 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(56,182,232,.32), rgba(10,20,40,.25) 70%),
    repeating-linear-gradient(90deg, rgba(125,211,252,.3) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(125,211,252,.22) 0 1px, transparent 1px 7px);
}
.cage-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(125,211,252,.28), transparent 65%);
  mix-blend-mode: screen;
}
.car-doors { position: absolute; inset: 5px 5px 0; display: flex; z-index: 3; }
.door {
  width: 50%; height: 100%;
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(148,190,230,.34) 0 1.5px, rgba(8,16,32,.66) 1.5px 5px);
  border: 1px solid rgba(125,211,252,.3);
  box-shadow: 0 0 0 .5px rgba(125,211,252,.35);
  transition: transform .55s var(--ease);
}
.door-mesh {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(148,190,230,.22) 0 1.5px, transparent 1.5px 6px);
}
.d-l { transform-origin: left center; }
.d-r { transform-origin: right center; }
.car.doors-open .d-l { transform: translateX(-101%); }
.car.doors-open .d-r { transform: translateX(101%); }
.car-sign {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-display); font-size: .46rem; font-weight: 700;
  letter-spacing: .22em; color: #9fcbe8; opacity: .85; z-index: 4;
}
.car-sill {
  position: relative; height: 12px;
  background: repeating-linear-gradient(-45deg, #d99a1f 0 8px, #1a2439 8px 16px);
  border: 1px solid rgba(0,0,0,.4); border-top: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.roller {
  position: absolute; bottom: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #cfdcef, #43587a 60%, #1b2a44);
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.roller.r1 { left: 10px; }
.roller.r2 { right: 10px; }

/* floor lights column */
.floor-lights {
  position: absolute; right: 2px; top: 26%; bottom: 7.5%; width: 7px;
  display: flex; flex-direction: column-reverse;
  justify-content: space-between; align-items: center;
  z-index: 13;
}
.floor-light {
  width: 6px; height: 17px; border-radius: 3px;
  background: #1b2a44;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.6);
  transition: background .3s, box-shadow .3s;
}
.floor-light.active {
  background: var(--cyan);
  box-shadow: 0 0 10px #2b8fc7, 0 0 24px rgba(43,143,199,.5);
}

/* call panel */
.call-panel {
  position: absolute; bottom: 8px; right: 7px;
  display: flex; flex-direction: column; gap: 5px; z-index: 14;
}
.call-btn {
  width: 20px; height: 18px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #20304d, #0d1830);
  border: 1px solid rgba(139,163,199,.3);
  border-radius: 3px;
  color: #5f7ca3; cursor: pointer; padding: 0;
  transition: .2s;
}
.call-btn svg { width: 11px; height: 11px; }
.call-btn:hover { color: var(--cyan-soft); border-color: rgba(56,182,232,.5); }
.call-btn:active { transform: scale(.9); }
.call-btn.lit {
  color: var(--cyan);
  border-color: rgba(56,182,232,.7);
  box-shadow: 0 0 10px rgba(56,182,232,.45), inset 0 0 6px rgba(56,182,232,.25);
  animation: blink .8s steps(2) infinite;
}

/* pit */
.pit { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; z-index: 11; }
.pit-tape {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: repeating-linear-gradient(-45deg, #d99a1f 0 10px, #131a2c 10px 20px);
  opacity: .8;
}
.buffer {
  position: absolute; top: 10px; width: 12px; height: 16px;
  background: repeating-linear-gradient(0deg, #6f8299 0 2px, #2b3f5e 2px 4px);
  border-radius: 2px;
}
.b1 { left: 27px; }
.b2 { right: 27px; }
.pit-stencil {
  position: absolute; bottom: 11px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: .52rem; font-weight: 600;
  letter-spacing: .38em; color: #44598a; white-space: nowrap;
}

/* dust motes */
.motes { position: absolute; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; }
.motes i {
  position: absolute; bottom: 8%; left: 20%;
  width: 2px; height: 2px; border-radius: 50%;
  background: rgba(180,215,255,.55);
  opacity: 0;
  animation: mote 9s linear infinite;
}
@keyframes mote {
  0% { transform: translateY(0) scale(1); opacity: 0 }
  10% { opacity: .7 }
  85% { opacity: .3 }
  100% { transform: translateY(-64vh) scale(.6); opacity: 0 }
}
.motes i:nth-child(1) { left: 18%; animation-duration: 8.4s; animation-delay: 0s; }
.motes i:nth-child(2) { left: 32%; animation-duration: 10.2s; animation-delay: 1.3s; width: 3px; height: 3px; }
.motes i:nth-child(3) { left: 47%; animation-duration: 9.1s; animation-delay: 2.8s; }
.motes i:nth-child(4) { left: 61%; animation-duration: 11.4s; animation-delay: 4.1s; }
.motes i:nth-child(5) { left: 74%; animation-duration: 8.8s; animation-delay: 5.5s; width: 3px; height: 3px; }
.motes i:nth-child(6) { left: 86%; animation-duration: 10.8s; animation-delay: .7s; }
.motes i:nth-child(7) { left: 12%; animation-duration: 12.2s; animation-delay: 3.6s; }
.motes i:nth-child(8) { left: 54%; animation-duration: 9.6s; animation-delay: 6.2s; width: 1px; height: 1px; }
.motes i:nth-child(9) { left: 68%; animation-duration: 11.9s; animation-delay: 2.2s; }
.motes i:nth-child(10) { left: 40%; animation-duration: 8.1s; animation-delay: 7.4s; width: 1px; height: 1px; }

/* welding sparks (created by JS) */
.sparks { position: absolute; inset: 0; z-index: 15; pointer-events: none; }
.spark {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px #bde9ff, 0 0 14px 4px rgba(125,211,252,.5);
  animation: sparkFlash .55s ease-out forwards;
}
@keyframes sparkFlash {
  0% { opacity: 0; transform: scale(.4) }
  12% { opacity: 1; transform: scale(1.3) }
  30% { opacity: .9; transform: scale(1) }
  45% { opacity: .15; transform: scale(1.1) }
  60% { opacity: .85; transform: scale(.9) }
  100% { opacity: 0; transform: scale(.3) }
}/* ═══════════════════════ MAIN STAGE ═════════════════════════════ */
.main-stage { grid-area: main; position: relative; overflow: hidden; background: var(--bg-0); }
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: .58;
  filter: saturate(1.05) contrast(1.06);
  z-index: 1; will-change: transform;
}
.bg-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(56,182,232,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,182,232,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 100% at 72% 40%, rgba(0,0,0,.9), transparent 75%);
  mask-image: radial-gradient(120% 100% at 72% 40%, rgba(0,0,0,.9), transparent 75%);
}
.bg-shade {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(3,7,17,.92) 0%, rgba(3,7,17,.58) 26%, rgba(3,7,17,.26) 55%, rgba(3,7,17,.5) 100%),
    linear-gradient(180deg, rgba(3,7,17,.6), transparent 30%, rgba(3,7,17,.66));
}
.vignette {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(130% 100% at 60% 40%, transparent 55%, rgba(2,6,23,.5) 100%);
}

/* ride rail (floor progress, right edge) */
.ride-rail {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  height: 44vh; z-index: 20;
  display: flex; flex-direction: column-reverse;
  justify-content: space-between; align-items: center;
}
.rail-line {
  position: absolute; left: 50%; top: -16px; bottom: -16px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(125,211,252,.35), transparent);
}
.rail-dot {
  position: relative; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(7,13,26,.85);
  border: 1px solid rgba(125,211,252,.3);
  display: grid; place-items: center;
  cursor: pointer; padding: 0;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.rd-num { font-family: var(--font-display); font-size: .66rem; font-weight: 800; color: #9db1d3; transition: .2s; }
.rd-name {
  position: absolute; right: 42px; top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-family: var(--font-display); font-size: .56rem; font-weight: 700;
  letter-spacing: .24em; color: #cfe4f8;
  opacity: 0; transition: opacity .25s, transform .25s;
  white-space: nowrap; pointer-events: none;
  text-shadow: 0 0 8px rgba(0,0,0,.85);
}
.rail-dot:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(56,182,232,.4); }
.rail-dot:hover .rd-name { opacity: 1; transform: translateY(-50%) translateX(0); }
.rail-dot.active {
  border-color: var(--cyan);
  background: rgba(14,60,92,.92);
  box-shadow: 0 0 14px rgba(56,182,232,.55);
}
.rail-dot.active .rd-num { color: #fff; }
.rail-carriage {
  position: absolute; left: 50%; top: 100%; z-index: 3;
  width: 18px; height: 18px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #7dd3fc, #1c6ea4);
  box-shadow: 0 0 14px rgba(56,182,232,.6);
  display: grid; place-items: center;
}
.rc-level { font-family: var(--font-display); font-size: .52rem; font-weight: 900; color: #04121f; }

/* stage viewport + pages */
.stage-viewport { position: absolute; inset: 0; overflow: hidden; z-index: 5; }
.stage-track { will-change: transform; }
.page { position: relative; height: calc(100dvh - var(--footer-h)); }
.floor-mark {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(150px, 26vh, 300px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(139,163,199,.14);
  z-index: 0; pointer-events: none; user-select: none;
  line-height: 1;
}
.page-inner {
  position: absolute; inset: 0; z-index: 1;
  overflow-y: auto; overflow-x: hidden;
  padding: clamp(22px, 4.5vh, 48px) clamp(22px, 4vw, 68px) clamp(22px, 5vh, 56px);
  scrollbar-width: none;
}
.page-inner::-webkit-scrollbar { display: none; }
.floor-head { max-width: 900px; }

/* entrance stagger */
.fx {
  opacity: 0; transform: translateY(26px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  transition-delay: calc(var(--i, 0) * 75ms);
}
.page.active .fx { opacity: 1; transform: none; }

/* page header */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.e-plate {
  font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  color: #06121f;
  width: 34px; height: 30px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #7dd3fc, #38b6e8 55%, #1c6ea4);
  clip-path: var(--clip-oct-sm);
  box-shadow: 0 0 14px rgba(56,182,232,.4);
}
.e-text {
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .32em; color: #8fc4e8;
  text-shadow: 0 0 12px rgba(56,182,232,.35);
  white-space: nowrap;
}
.e-rule {
  flex: none; width: clamp(60px, 10vw, 200px); height: 2px;
  background: linear-gradient(90deg, rgba(56,182,232,.5), transparent);
}
.page-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 4.4vw, 4.4rem);
  line-height: 1.06; letter-spacing: .02em;
  margin: 2px 0 18px;
}
.t-line {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #dbe7fa 38%, #7e9cc9 62%, #c7d8f2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(10,18,34,.9)) drop-shadow(0 0 26px rgba(56,182,232,.14));
}
.t-accent {
  background: linear-gradient(180deg, #9ee2ff 0%, #38b6e8 45%, #1c6ea4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(9,20,38,.85)) drop-shadow(0 0 30px rgba(56,182,232,.4));
}
.page-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.28rem); font-weight: 600;
  color: #e2ecfd; max-width: 660px; line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.page-lead strong { color: var(--cyan-soft); font-weight: 700; }
.page-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; align-items: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: .76rem;
  letter-spacing: .16em;
  color: #dbe7fa; text-decoration: none;
  background: linear-gradient(180deg, #1d2f4f, #0e1b33 75%);
  border: 1px solid rgba(125,211,252,.35);
  clip-path: var(--clip-oct-sm);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  position: relative; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .25s; }
.btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(56,182,232,.35), inset 0 0 14px rgba(56,182,232,.12);
  transform: translateY(-2px);
}
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(180deg, #5bc4ef, #2696c8 60%, #1c6ea4);
  color: #04121f;
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 6px 18px rgba(28,110,164,.4), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(56,182,232,.55), inset 0 1px 0 rgba(255,255,255,.4); }

/* card grids */
.cards { display: grid; gap: 18px; margin-top: 26px; }
.cards-2 { grid-template-columns: 1fr 1fr; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(16,28,51,.88), rgba(7,13,26,.94));
  border: 1px solid rgba(125,211,252,.14);
  border-radius: 12px;
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: 0 18px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card::before, .card::after {
  content: ''; position: absolute; top: 9px; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dfe9f8, #33476b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  opacity: .65;
}
.card::before { left: 9px; }
.card::after { right: 9px; }
.card:hover { border-color: rgba(125,211,252,.38); transform: translateY(-3px); box-shadow: 0 24px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05); }
.card-kicker { display: block; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .22em; color: var(--cyan-soft); margin-bottom: 10px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; color: #eaf2ff; margin-bottom: 10px; }
.card p { color: #c3d2ec; line-height: 1.62; font-size: 1rem; font-weight: 500; }
.card p + p { margin-top: 10px; }
.card-wide { grid-column: 1 / -1; }
.card-wide p { max-width: 920px; }

/* value cards */
.vcard { text-align: left; }
.vicon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(56,182,232,.14), rgba(28,110,164,.08));
  border: 1px solid rgba(56,182,232,.3);
  clip-path: var(--clip-oct-sm);
  margin-bottom: 14px;
  box-shadow: inset 0 0 14px rgba(56,182,232,.12);
}
.vicon svg { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(56,182,232,.5)); }
.vcard h4 { font-family: var(--font-display); font-size: .94rem; letter-spacing: .1em; color: #eaf2ff; margin-bottom: 8px; }
.vcard p { font-size: .92rem; }

/* service cards */
.scard .scard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.snum { font-family: var(--font-display); font-weight: 900; font-size: 1.55rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(125,211,252,.5); }
.scard h4 { font-family: var(--font-display); font-size: 1rem; letter-spacing: .08em; color: #eaf2ff; margin: 10px 0; }
.scard p { font-size: .94rem; }
.scard .sp2 { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(125,211,252,.18); }

/* stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.stat {
  text-align: center; padding: 18px 12px;
  background: linear-gradient(180deg, rgba(16,28,51,.85), rgba(7,13,26,.9));
  border: 1px solid rgba(56,182,232,.22);
  clip-path: var(--clip-oct);
  box-shadow: inset 0 0 20px rgba(28,110,164,.08);
  position: relative; overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .6;
}
.stat-num { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--cyan); text-shadow: 0 0 16px rgba(56,182,232,.45); line-height: 1.25; }
.stat-label { display: block; margin-top: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: #8ea6c9; text-transform: uppercase; }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; margin-top: 26px; }
.ccard { display: flex; flex-direction: column; gap: 7px; }
.ccard h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .04em; color: #eaf2ff; }
.cc-role { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8ea6c9; margin-bottom: 3px; }
.cc-line {
  display: flex; align-items: center; gap: 9px;
  color: #c9d8f0; text-decoration: none; font-weight: 600; font-size: .97rem;
  transition: color .2s, transform .2s;
  width: fit-content;
}
.cc-line svg { width: 15px; height: 15px; color: var(--cyan); flex: none; filter: drop-shadow(0 0 5px rgba(56,182,232,.5)); }
a.cc-line:hover { color: var(--cyan-soft); transform: translateX(2px); }
.cc-plain { cursor: default; }
.office-card { border-color: rgba(56,182,232,.4); box-shadow: inset 0 0 26px rgba(28,110,164,.14), 0 18px 40px rgba(0,0,0,.4); }
.ccard:hover { border-color: rgba(125,211,252,.4); }

/* wide CTA */
.cta-wide { margin-top: 26px; border-color: rgba(56,182,232,.3); background: linear-gradient(180deg, rgba(22,42,74,.9), rgba(9,17,34,.95)); box-shadow: inset 0 0 34px rgba(28,110,164,.12), 0 18px 40px rgba(0,0,0,.4); }
.cta-wide:hover { transform: none; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-inline {
  color: var(--cyan-soft); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgba(125,211,252,.4);
  transition: color .2s, text-shadow .2s;
}
.cta-inline:hover { color: #bae6fd; text-shadow: 0 0 10px rgba(56,182,232,.6); }

/* scroll hint */
.scroll-hint {
  margin-top: 34px;
  display: flex; align-items: center; gap: 16px;
  color: #7d95bd;
  font-family: var(--font-display); font-size: .62rem; font-weight: 700; letter-spacing: .26em;
}
.sh-chev { display: flex; flex-direction: column; gap: 3px; }
.sh-chev i {
  width: 9px; height: 9px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  animation: chevPulse 1.6s infinite;
}
.sh-chev i:nth-child(2) { animation-delay: .2s; }
.sh-chev i:nth-child(3) { animation-delay: .4s; }
@keyframes chevPulse { 0%, 100% { opacity: .15 } 50% { opacity: .9 } }/* ═══════════════════════ RESPONSIVE ══════════════════════════════ */
@media (max-width: 1180px) {
  :root { --sidebar-w: 286px; --shaft-w: 86px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .ride-rail { display: none; }
}

/* compact desktop heights */
@media (max-height: 780px) and (min-width: 941px) {
  .sidebar-inner { padding: 12px 14px 12px; gap: 10px; }
  .led-module { padding: 9px 11px 8px; }
  .led-level { font-size: 1.9rem; }
  .logo-plate { padding: 11px 12px 9px; }
  .logo-tagline { margin-top: 6px; }
  .page-title { font-size: clamp(1.7rem, 3.8vw, 3.2rem); }
  .card { padding: 16px; }
  .cards { gap: 13px; margin-top: 18px; }
  .stat { padding: 12px 10px; }
  .scroll-hint { margin-top: 20px; }
}

/* mobile: sidebar becomes top bar, stage scrolls natively */
@media (max-width: 940px) {
  :root { --footer-h: 96px; --ticker-h: 52px; }
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr var(--footer-h);
    grid-template-areas: "side" "main" "foot";
  }
  .sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(56,182,232,.32);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  .sidebar-inner { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px; }
  .logo-block { flex: none; }
  .logo-plate {
    padding: 7px 12px; display: flex; align-items: center;
    border-radius: 10px; clip-path: none; box-shadow: 0 4px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.7);
  }
  .logo-plate::before, .screw { display: none; }
  .logo-img { width: 112px; margin: 0; }
  .logo-rule, .logo-tagline { display: none; }
  .floor-nav { flex: 1; flex-direction: row; align-items: center; overflow-x: auto; gap: 8px; padding: 3px 2px; scrollbar-width: none; }
  .nav-plate-title { display: none; }
  .fnav { flex: none; padding: 6px 10px; gap: 8px; }
  .fnav::after { display: none; }
  .fnav:hover { transform: none; }
  .fnum { width: 28px; height: 28px; font-size: .74rem; }
  .fname { font-size: .66rem; }
  .fdesc, .fchev { display: none; }
  .led-module, .side-foot { display: none; }
  .elevator-shaft { display: none; }
  .stage-viewport { overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; }
  .stage-track { transform: none !important; }
  .page { height: auto; min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .page.active .fx { transition-delay: 0ms; }
  .page-inner { position: static; overflow: visible; padding: 26px 18px 44px; }
  .floor-mark { font-size: 34vw; top: 10px; right: -2%; transform: none; -webkit-text-stroke-width: 1px; }
  .cards-2, .cards-3, .stats-row { grid-template-columns: 1fr; }
  .stats-row { gap: 10px; }
  .page-cta .btn { width: 100%; justify-content: center; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .ticker-label { padding: 0 24px 0 16px; font-size: .68rem; }
  .ticker-items { gap: 40px; padding-left: 40px; animation-duration: 30s; }
  .ticker-items span { font-size: .72rem; }
  .ticker-items span::after { margin-left: 40px; width: 6px; height: 6px; }
  .footer-bottom { flex-wrap: wrap; gap: 6px 14px; padding: 8px 16px; font-size: .72rem; }
  .fb-mid { display: none; }
  .fb-right { gap: 12px; }
  /* decorative rule flexes to nothing so the level label always fits */
  .e-rule { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 400px) {
  .logo-img { width: 88px; }
  .e-text { font-size: .56rem; letter-spacing: .18em; }
}

@media (max-width: 360px) {
  .page-title { font-size: 1.45rem; }
  .e-text { letter-spacing: .15em; }
}

/* ═══════════════════════ REDUCED MOTION ═════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .ticker-items { animation-duration: 90s; }
  .worker .w-wave, .rider, .flag, .beacon, .motes i,
  .sh-chev i, .led-status .dot, .pre-note { animation: none; }
  .door { transition: none; }
  .fx { transition: none; transition-delay: 0ms; opacity: 1; transform: none; }
  .rail-carriage { transition: none; }
}
/* counterweight lane rail */
.cw-lane { position: absolute; left: calc(50% + 26px); top: 72px; bottom: 60px; width: 14px; z-index: 1; }
.cw-track { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(90deg, #1b2c49, #4d6890 50%, #1b2c49); box-shadow: 0 0 4px rgba(0,0,0,.5); }
