/* ==========================================================================
   Home — "the ride": arrive at the lobby, read the directory,
   look at the facade, ride up to the roof.
   ========================================================================== */

.p-home { background: #f2f5fb; }
.hm {
  --night: #060c1d;
  --night-2: #0b1530;
  --steel-1: #e9eef7;
  --steel-2: #a9b6cf;
  --steel-3: #6e7d9c;
  --glow: #8aa4ff;
  --warm: #ffcf7a;
  --dline: rgba(255,255,255,.09);
  overflow-x: clip;
}
.hm .mono { font-family: var(--mono); letter-spacing: .04em; }
.hm .wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.hm em { font-style: normal; }

/* reveal on view */
[data-inview] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
[data-inview].is-in { opacity: 1; transform: none; }

/* ==================== HERO ==================== */
.hx {
  position: relative; isolation: isolate; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--night); color: #e9eefc;
  padding: 18px var(--gutter) 28px;
}
.hx-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hx-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--dline) 1px, transparent 1px),
    linear-gradient(90deg, var(--dline) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: .55;
}
.hx-halo { position: absolute; left: 50%; top: 52%; width: 900px; height: 900px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(47,91,234,.42), rgba(47,91,234,.1) 40%, transparent 65%); }
.hx-spot { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(138,164,255,.13), transparent 70%); transition: background .2s; }

/* nav */
.hx-nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 18px; height: 58px; animation: hxFade 1s var(--ease) .2s both; }
.hx-nav .brand { color: #fff; }
.hx-time { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--dline); background: rgba(255,255,255,.04); font-size: 12.5px; font-weight: 600; color: #b8c4e2; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hx-links { display: flex; gap: 4px; margin-inline-start: auto; }
.hx-links a { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #b8c4e2; transition: color .2s, background .2s; }
.hx-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.hx-login { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; transition: transform .25s var(--ease), box-shadow .3s; }
.hx-login:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(138,164,255,.7); }
.hx-login .i { transition: transform .3s var(--ease); }
.hx-login:hover .i { transform: translateX(-3px); }

/* stage: words around the elevator */
.hx-stage {
  flex: 1; position: relative;
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) clamp(270px, 27vw, 400px) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "kick lift ."
    "w1   lift w2"
    "copy lift stats";
  column-gap: clamp(20px, 3vw, 48px);
  padding-top: 18px;
}
.hx-kicker { grid-area: kick; align-self: start; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--glow); letter-spacing: 0; animation: hxFade 1s var(--ease) .4s both; }
.hx-kicker i { width: 34px; height: 1px; background: currentColor; }

.hx-title { display: contents; }
.hx-title span {
  position: relative; z-index: 3;
  font-size: clamp(66px, 10.4vw, 188px); font-weight: 900; line-height: .95; letter-spacing: -.01em;
  white-space: nowrap;
}
.w1 { grid-area: w1; justify-self: end; margin-inline-end: -.2em; color: #fff;
  text-shadow: 0 20px 60px rgba(6,12,29,.65);
  animation: wordIn 1.3s var(--ease) .5s both; }
.w2 { grid-area: w2; justify-self: start; margin-inline-start: -.22em; padding-top: .28em; margin-top: -.28em;
  background: linear-gradient(176deg, #ffffff 8%, #c9d4ec 38%, #7f8fb3 62%, #dfe6f5 78%, #8d9cbd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 20px 40px rgba(6,12,29,.6));
  animation: wordIn2 1.3s var(--ease) .65s both; }
@keyframes wordIn { from { opacity: 0; transform: translateX(-60px); } }
@keyframes wordIn2 { from { opacity: 0; transform: translateX(60px); } }
@keyframes hxFade { from { opacity: 0; transform: translateY(-10px); } }

/* ---- the elevator ---- */
.lift { grid-area: lift; position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: liftIn 1.2s var(--ease) both; }
@keyframes liftIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.lift-display {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  background: #02050d; border: 1px solid #1c2846;
  box-shadow: inset 0 0 18px rgba(0,0,0,.9), 0 0 0 4px rgba(255,255,255,.03);
}
.lift-arrow { color: #ff9e4a; font-size: 12px; text-shadow: 0 0 10px #ff8a2a; animation: blinkA 1s steps(2) infinite; }
.lift-num { font-family: var(--mono); font-weight: 500; font-size: 24px; color: #ffb066; direction: ltr; min-width: 2ch; text-align: center; text-shadow: 0 0 8px rgba(255,140,50,.9), 0 0 22px rgba(255,140,50,.5); }
.lift.arrived .lift-arrow { animation: none; color: #4ade80; text-shadow: 0 0 10px #22c55e; }
.lift.arrived .lift-num { color: #86efac; text-shadow: 0 0 8px rgba(74,222,128,.9), 0 0 22px rgba(74,222,128,.45); }
@keyframes blinkA { 50% { opacity: .25; } }

.lift-frame {
  position: relative; width: 100%; height: min(64svh, 620px); min-height: 380px;
  border-radius: 22px; overflow: hidden; isolation: isolate;
  padding: 0;
  background: #0b1430;
  box-shadow:
    0 0 0 10px #1a2547,
    0 0 0 11px #2b3a66,
    0 50px 100px -30px rgba(0,0,0,.9),
    0 0 120px -10px rgba(47,91,234,.45);
}
.lift-shaft { position: absolute; inset: 0; }
.lift-shaft img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); animation: shaftIn 3s var(--ease) 3s forwards; }
@keyframes shaftIn { to { transform: scale(1.02); } }
.lift-shaft::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,12,29,.55), transparent 40%), linear-gradient(180deg, rgba(6,12,29,.35), transparent 25%); }

.lift-door {
  position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    linear-gradient(100deg, #5d6b8a 0%, #c5cfe3 22%, #8391b0 40%, #dbe3f2 58%, #7a88a8 78%, #a7b3cc 100%);
  box-shadow: inset 0 0 40px rgba(6,12,29,.45);
  animation: 1.5s var(--ease-io) 3s forwards;
}
.lift-door.l { left: 0; border-right: 1px solid rgba(6,12,29,.55); }
.lift-door.r { right: 0; border-left: 1px solid rgba(255,255,255,.35); }
.lift-door s { position: absolute; top: 50%; width: 3px; height: 70px; margin-top: -35px; border-radius: 3px; background: rgba(6,12,29,.35); box-shadow: 1px 0 0 rgba(255,255,255,.4); }
.lift-door.l s { right: 14px; } .lift-door.r s { left: 14px; }
.lift-door.l { animation-name: doorL; } .lift-door.r { animation-name: doorR; }
@keyframes doorL { to { transform: translateX(-101%); } }
@keyframes doorR { to { transform: translateX(101%); } }
.lift-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 52%); mix-blend-mode: screen;
  transform: translateX(-120%); animation: glare 1.6s var(--ease) 3.9s; }
@keyframes glare { to { transform: translateX(120%); } }
.lift-sill { width: calc(100% + 40px); height: 10px; margin-top: 14px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, #2b3a66 0 2px, #16213f 2px 8px); opacity: .9; }

/* copy + call panel */
.hx-copy { grid-area: copy; align-self: end; justify-self: start; max-width: 380px; animation: hxUp 1.1s var(--ease) 1.1s both; }
.hx-lead { color: #a9b6d6; font-size: 15px; line-height: 2; margin-bottom: 22px; }
.callpad { display: grid; gap: 10px; padding: 10px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--dline); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.call { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 16px; transition: background .3s; }
.call:hover { background: rgba(255,255,255,.06); }
.call-btn {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: #cfd8ee;
  background: radial-gradient(circle at 35% 30%, #44527a, #18223f 70%);
  box-shadow: 0 0 0 3px #2a3760, 0 0 0 4px #49598a, inset 0 2px 3px rgba(255,255,255,.15), 0 8px 18px -6px rgba(0,0,0,.8);
  transition: all .35s var(--ease);
}
.call-btn .i { width: 20px; height: 20px; }
.call.up .call-btn { color: #fff; box-shadow: 0 0 0 3px #2f5bea, 0 0 0 4px #8aa4ff, inset 0 2px 3px rgba(255,255,255,.2), 0 0 26px rgba(47,91,234,.75); background: radial-gradient(circle at 35% 30%, #5b80ff, #2448c9 70%); }
.call:hover .call-btn { transform: scale(.94); box-shadow: 0 0 0 3px #2f5bea, 0 0 0 4px #b9c8ff, 0 0 34px rgba(138,164,255,.95); color: #fff; background: radial-gradient(circle at 35% 30%, #6d8dff, #2f5bea 70%); }
.call-t { display: grid; }
.call-t b { font-size: 17px; font-weight: 900; color: #fff; }
.call-t small { font-size: 12.5px; color: #8796bb; }

.hx-stats { grid-area: stats; align-self: end; justify-self: end; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 18px 36px; animation: hxUp 1.1s var(--ease) 1.25s both; }
.hx-stats li { display: grid; gap: 2px; padding-inline-start: 14px; border-inline-start: 1px solid rgba(138,164,255,.35); }
.hx-stats b { font-size: 34px; font-weight: 900; line-height: 1.1; color: #fff; }
.hx-stats span { font-size: 12.5px; color: #8796bb; font-weight: 600; }
@keyframes hxUp { from { opacity: 0; transform: translateY(24px); } }

.hx-down { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4; width: 26px; height: 42px; border-radius: 99px; border: 1.5px solid rgba(255,255,255,.25); display: none; }
.hx-down span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ==================== marquee ==================== */
.mq { position: relative; z-index: 2; overflow: hidden; background: var(--night); padding: 8px 0 34px; direction: ltr; }
.mq::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--dline); }
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq-set { display: flex; align-items: center; gap: 34px; padding-right: 34px; direction: rtl; }
.mq-set span { font-size: clamp(34px, 5vw, 64px); font-weight: 900; color: rgba(255,255,255,.1); white-space: nowrap; transition: color .3s; }
.mq-set span:nth-child(4n+1) { color: rgba(138,164,255,.55); }
.mq-set i { font-style: normal; color: #2f5bea; font-size: 22px; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ==================== section heads ==================== */
.s-head { max-width: 640px; margin-bottom: 48px; }
.s-head h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 900; line-height: 1.2; margin: 14px 0 12px; }
.s-head h2 em { padding: .3em 0 .1em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-head p { color: var(--ink-2); font-size: 15.5px; }
.floor-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--copper); }
.floor-tag::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.floor-tag.light { color: var(--glow); }

/* ==================== lobby directory ==================== */
.lobby { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: #f2f5fb; border-radius: 40px 40px 0 0; margin-top: -26px; z-index: 3; }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

.board {
  position: relative; overflow: hidden; padding: 10px; border-radius: 30px;
  background: linear-gradient(160deg, #15224a, #0a1430 70%);
  box-shadow: 0 40px 80px -40px rgba(10,20,48,.8), inset 0 1px 0 rgba(255,255,255,.08);
  color: #e9eefc;
}
.board::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 2px, transparent 2px 4px); }
.board-top { display: flex; justify-content: space-between; padding: 14px 18px 16px; font-size: 12.5px; font-weight: 700; color: #7f8db3; border-bottom: 1px dashed rgba(255,255,255,.1); margin-bottom: 6px; }
.board-top .mono { font-size: 11px; }
.board-row {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px;
  transition: background .35s var(--ease);
}
.board-row::before { content: ''; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--glow); transform: scaleY(0); transition: transform .35s var(--ease); }
.board-n { font-size: 13px; color: #5d6c95; width: 22px; transition: color .3s; }
.board-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.06); color: #a9b8e0; transition: all .35s var(--ease); }
.board-ic .i { width: 21px; height: 21px; }
.board-t { display: grid; min-width: 0; }
.board-t b { font-size: 18px; font-weight: 800; }
.board-t small { display: none; font-size: 13px; color: #7f8db3; margin-top: 2px; line-height: 1.8; }
.board-lead { flex: 1; align-self: center; height: 0; border-bottom: 2px dotted rgba(255,255,255,.12); min-width: 20px; }
.board-go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); color: #a9b8e0; transition: all .35s var(--ease); }
.board-row.is-on { background: rgba(138,164,255,.1); }
.board-row.is-on::before { transform: scaleY(1); }
.board-row.is-on .board-n { color: var(--glow); }
.board-row.is-on .board-ic { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(47,91,234,.9); }
.board-row.is-on .board-t small { display: block; animation: fadeUp .45s var(--ease) both; }
.board-row.is-on .board-lead { opacity: 0; }
.board-lead { transition: opacity .3s; }
.board-row.is-on .board-go { background: #fff; color: var(--ink); border-color: #fff; transform: rotate(0deg); }
.board-row:focus-visible { outline: 2px solid var(--glow); outline-offset: -2px; }

/* device preview */
.device { position: sticky; top: 90px; perspective: 1400px; isolation: isolate; }
.device > * { position: relative; }
.device-in {
  position: relative; min-height: 400px; padding: 16px; border-radius: 30px;
  background: #fff; box-shadow: 0 50px 90px -40px rgba(20,33,61,.5), 0 0 0 1px rgba(20,33,61,.04);
  transform: rotateY(-9deg) rotateX(4deg); transform-origin: left center;
  transition: transform .8s var(--ease);
}
.device:hover .device-in { transform: none; }
.device::before { content: ''; position: absolute; inset: 40px -16px -16px 40px; border-radius: 40px; background: linear-gradient(135deg, #c9d6ff, #e8eeff 50%, #d4f1ff); transform: rotate(-4deg); }
.device-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; margin-bottom: 16px; border-radius: 12px; background: var(--paper-2); font-size: 12px; font-weight: 700; color: var(--mute); }
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.device-bar i:first-child { background: #ff8a7a; } .device-bar i:nth-child(2) { background: #ffd36b; } .device-bar i:nth-child(3) { background: #6ee7a8; }
.device-bar span { margin-inline-start: auto; }

.pv { position: absolute; inset: 70px 16px 16px; opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.pv.is-on { opacity: 1; transform: none; }
.pv-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pv-h b { font-size: 17px; font-weight: 900; }
.pchip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; font-style: normal; background: var(--copper-soft); color: var(--copper); }
.pchip.ok { background: var(--ok-bg); color: var(--ok); }
.pchip.bad { background: var(--bad-bg); color: var(--bad); }
.pchip.wait { background: var(--wait-bg); color: var(--wait); }

.pv-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.pv-months span { display: grid; place-items: center; height: 46px; border-radius: 12px; background: var(--paper-2); font-size: 11.5px; font-weight: 700; color: var(--mute); }
.pv-months .ok { background: var(--ok-bg); color: var(--ok); }
.pv-months .bad { background: var(--bad-bg); color: var(--bad); }
.pv-months .sel { background: var(--brand-grad); color: #fff; box-shadow: var(--sh-brand); }
.pv-drop { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--copper-2); background: #f7f9ff; color: var(--copper); font-size: 13px; font-weight: 700; }
.pv-drop .i { width: 20px; height: 20px; }
.pv-drop em { margin-inline-start: auto; }

.pv-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv-hist li { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: var(--paper-2); font-size: 14px; font-weight: 700; border-inline-start: 4px solid var(--mute-2); }
.pv-hist li.ok { border-color: var(--ok); } .pv-hist li.bad { border-color: var(--bad); } .pv-hist li.wait { border-color: var(--wait); }

.pv-chat { display: grid; gap: 10px; }
.pv-chat p { max-width: 82%; padding: 12px 14px; border-radius: 18px; font-size: 13.5px; line-height: 1.9; }
.pv-chat .me { justify-self: start; background: var(--brand-grad); color: #fff; border-start-start-radius: 6px; }
.pv-chat .them { justify-self: end; background: var(--paper-2); border-start-end-radius: 6px; }

.pv-table { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); font-size: 13px; }
.pv-table div { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line-2); }
.pv-table div span:first-child { color: var(--mute); }
.pv-table div span:last-child { font-weight: 800; }
.pv-table .sum { background: var(--ink); color: #fff; border: 0; }
.pv-table .sum span:last-child { color: #b9c8ff; }

.pv-news { position: relative; display: grid; gap: 2px; padding: 16px 18px; margin-bottom: 10px; border-radius: 16px; background: var(--paper-2); }
.pv-news b { font-size: 14.5px; } .pv-news span { font-size: 12.5px; color: var(--mute); }
.pv-news.pin { background: linear-gradient(135deg, #e8eeff, #f5f7ff); box-shadow: inset 0 0 0 1px #d5deff; }
.pv-news.pin .i { position: absolute; top: 16px; inset-inline-end: 16px; color: var(--copper); }

.pv-letter { position: relative; padding: 26px 22px 22px; border-radius: 16px; background: #fffdf8; box-shadow: 0 12px 30px -16px rgba(20,33,61,.35), 0 0 0 1px #efe9dc; overflow: hidden; }
.pv-letter::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand-grad); }
.pv-lh { display: block; font-size: 11.5px; color: var(--mute); margin-bottom: 10px; }
.pv-letter b { display: block; font-size: 15px; margin-bottom: 16px; }
.pv-letter i { display: block; height: 8px; margin-bottom: 10px; border-radius: 6px; background: #ece8df; }
.pv-letter i.s { width: 60%; }
.pv-reply { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 800; }

/* ==================== live facade ==================== */
.facade { position: relative; isolation: isolate; overflow: hidden; padding: clamp(90px, 11vw, 150px) 0 0; color: #e9eefc; background: var(--night); }
.sky { position: absolute; inset: 0; z-index: -1; }
.facade[data-phase="night"] .sky { background: linear-gradient(180deg, #050a18 0%, #0b1838 60%, #142554 100%); }
.facade[data-phase="dusk"] .sky { background: linear-gradient(180deg, #131a3d 0%, #3b2f6b 45%, #c06a5a 85%, #f0a96b 100%); }
.facade[data-phase="day"] .sky { background: linear-gradient(180deg, #4d7df0 0%, #8fb2ff 55%, #d9e6ff 100%); }
.facade[data-phase="day"] { color: #0c1838; }
.orb { position: absolute; top: 7%; left: 52%; width: 110px; height: 110px; border-radius: 50%; }
.facade[data-phase="night"] .orb { background: radial-gradient(circle at 35% 35%, #fffbe8, #e3e6f5 60%); box-shadow: 0 0 80px 20px rgba(220,228,255,.25); width: 80px; height: 80px; }
.facade[data-phase="dusk"] .orb { top: auto; bottom: 18%; background: radial-gradient(circle, #ffe0a8, #ff9a5a); box-shadow: 0 0 120px 40px rgba(255,150,90,.45); }
.facade[data-phase="day"] .orb { background: radial-gradient(circle, #fffef5, #fff3c4); box-shadow: 0 0 140px 50px rgba(255,248,210,.7); }
.stars { position: absolute; inset: 0 0 40%; opacity: 0;
  background-image: radial-gradient(1.3px 1.3px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.2px 1.2px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 55%, #fff, transparent), radial-gradient(1px 1px at 10% 80%, #fff, transparent), radial-gradient(1.4px 1.4px at 55% 45%, #fff, transparent);
  background-size: 260px 220px; }
.facade[data-phase="night"] .stars { opacity: .75; animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .35; } }

.facade-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(30px, 6vw, 90px); align-items: end; }
.facade-copy { align-self: center; padding-bottom: 80px; max-width: 520px; }
.facade-copy h2 { font-size: clamp(42px, 5.6vw, 80px); font-weight: 900; line-height: 1.12; margin: 16px 0 18px; }
.facade-copy h2 em { color: var(--warm); text-shadow: 0 0 40px rgba(255,207,122,.35); }
.facade[data-phase="day"] .facade-copy h2 em { color: #1d3fc2; text-shadow: none; }
.facade-copy p { font-size: 15.5px; line-height: 2.05; opacity: .78; }
.facade[data-phase="day"] .floor-tag.light { color: #1d3fc2; }
.facade-read { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; padding: 14px 14px 14px 14px; padding-inline-start: 22px; border-radius: 20px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.facade[data-phase="day"] .facade-read { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.8); }
.facade-read b { display: block; font-size: 30px; font-weight: 500; line-height: 1.2; color: var(--warm); direction: ltr; text-align: start; }
.facade[data-phase="day"] .facade-read b { color: #1d3fc2; }
.facade-read span { font-size: 12.5px; opacity: .7; }

/* building */
.bld { --w: 30px; position: relative; width: max-content; margin-inline-end: 4vw; filter: drop-shadow(0 -20px 60px rgba(0,0,0,.35)); }
.bld-crown { position: relative; height: 70px; margin: 0 26% 0; border-radius: 10px 10px 0 0; background: linear-gradient(90deg, #1b2a55, #33457c 50%, #1b2a55); }
.bld-crown i { position: absolute; left: 50%; bottom: 100%; width: 4px; height: 70px; margin-left: -2px; background: linear-gradient(#6f80b0, #33457c); }
.bld-crown i::after { content: ''; position: absolute; top: -4px; left: -3px; width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 14px 4px rgba(255,77,77,.7); animation: beacon 1.6s infinite; }
@keyframes beacon { 50% { opacity: .2; box-shadow: none; } }
.bld-body {
  position: relative; padding: 18px 16px 10px; border-radius: 14px 14px 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, #142350 0%, #22366e 45%, #2b4182 55%, #142350 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.facade[data-phase="day"] .bld-body { background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 18px), linear-gradient(90deg, #4c5f93 0%, #7286bb 45%, #8b9dcc 55%, #4c5f93 100%); }
.bld-floor { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 3px solid rgba(255,255,255,.06); }
.bld-floor:last-child { margin-bottom: 0; }
.bld-fl { width: 18px; font-size: 9.5px; color: rgba(255,255,255,.35); text-align: center; }
.bld-wins { display: flex; gap: 5px; flex: 1; }
.win {
  position: relative; width: var(--w); height: 44px; border-radius: 4px;
  background: linear-gradient(160deg, #1d2d5c, #0d1736);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  transition: background .6s, box-shadow .4s, transform .25s var(--ease);
}
.facade[data-phase="day"] .win { background: linear-gradient(150deg, #cfe0ff 0%, #8eaaf0 45%, #5d79c4 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.win.lit { background: linear-gradient(180deg, #ffe7b0, #ffc46a); box-shadow: 0 0 14px rgba(255,196,106,.55), inset 0 -6px 8px rgba(214,140,40,.4); }
.win:hover, .win:focus-visible, .win.pick {
  background: linear-gradient(180deg, #b9c8ff, #4f74ff) !important;
  box-shadow: 0 0 0 2px #fff, 0 0 24px rgba(138,164,255,.95) !important;
  transform: scale(1.12); z-index: 2; outline: 0;
}
.win::after {
  content: attr(data-unit); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translate(-50%, 6px); padding: 3px 9px; border-radius: 8px; background: #fff; color: var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: all .2s var(--ease); box-shadow: 0 8px 20px -6px rgba(0,0,0,.5);
}
.win:hover::after, .win:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.bld-lobby { display: grid; place-items: end center; height: 64px; padding-bottom: 0; background: linear-gradient(90deg, #0e1a3d, #1a2b5c 50%, #0e1a3d); }
.bld-lobby span { display: grid; place-items: center; width: 34%; height: 48px; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #ffe7b0, #ffbf5c); color: #5b3a06; font-size: 11px; font-weight: 800; box-shadow: 0 0 40px rgba(255,191,92,.5); }
.bld-ground { height: 14px; margin: 0 -60px; background: #050a18; border-radius: 4px 4px 0 0; }
.facade[data-phase="day"] .bld-ground { background: #2b3a66; }

/* ==================== the ride ==================== */
.ride { padding: clamp(90px, 11vw, 150px) 0; background: #f2f5fb; }
.ride-grid { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); position: relative; }
.shaft { position: relative; border-radius: 99px; background: #e2e8f4; box-shadow: inset 0 2px 6px rgba(20,33,61,.08); width: 14px; justify-self: center; }
.shaft-fill { position: absolute; inset: 0 0 auto; height: calc(var(--p, 0) * 100%); border-radius: 99px; background: var(--brand-grad); }
.cab { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 54px; height: 64px; margin: -32px 0 0 -27px; border-radius: 14px; background: linear-gradient(160deg, #fff, #e8eeff); box-shadow: 0 16px 30px -12px rgba(20,33,61,.45), 0 0 0 1px #d5deff; display: grid; place-items: center; }
.cab span { width: 24px; height: 34px; border-radius: 5px; background: linear-gradient(90deg, #8391b0 0 49%, #3a4a72 49% 51%, #a7b3cc 51%); }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vw, 90px); }
.stops li {
  position: relative; overflow: hidden;
  display: flex; gap: 24px; align-items: flex-start;
  padding: 30px; border-radius: 28px; background: #fff; box-shadow: var(--sh-1);
  opacity: .45; transform: translateX(-14px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .6s;
}
.stops li.is-on { opacity: 1; transform: none; box-shadow: var(--sh-2); }
.stop-fl { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #02050d; color: #ffb066; font-size: 24px; text-shadow: 0 0 10px rgba(255,140,50,.8); }
.stops li.is-on .stop-fl { color: #86efac; text-shadow: 0 0 10px rgba(74,222,128,.8); }
.stop-ghost { position: absolute; inset-inline-end: 24px; top: 50%; transform: translateY(-50%); font-size: clamp(80px, 10vw, 150px); font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #dfe5f2; pointer-events: none; }
.stops li.is-on .stop-ghost { -webkit-text-stroke-color: #cdd8f5; }
.stops li > div { position: relative; }
.stops h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; margin-bottom: 6px; }
.stops p { color: var(--ink-2); max-width: 36em; }

/* ==================== roof ==================== */
.roof { position: relative; isolation: isolate; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0 0; background: var(--night); color: #e9eefc; border-radius: 40px 40px 0 0; }
.roof-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.roof-bg i:nth-child(1) { position: absolute; inset: 0; background-image: linear-gradient(var(--dline) 1px, transparent 1px), linear-gradient(90deg, var(--dline) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); opacity: .5; }
.roof-bg i:nth-child(2) { position: absolute; right: -10%; top: 10%; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, rgba(47,91,234,.4), transparent 60%); }
.roof-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 22px 0 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.roof-t {
  font-size: clamp(60px, 11vw, 190px); font-weight: 900; line-height: 1; padding-top: .25em; margin-top: -.25em;
  background: linear-gradient(90deg, #fff 0 50%, #8aa4ff 50% 100%); background-size: 200% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .9s var(--ease);
}
.roof-cta:hover .roof-t { background-position: 100% 0; }
.roof-arrow { flex: none; display: grid; place-items: center; width: clamp(70px, 9vw, 140px); aspect-ratio: 1; border-radius: 50%; background: var(--brand-grad); color: #fff; box-shadow: 0 0 60px rgba(47,91,234,.6); transition: transform .6s var(--ease); }
.roof-arrow .i { width: 40%; height: 40%; }
.roof-cta:hover .roof-arrow { transform: rotate(-45deg) scale(1.06); }
.roof-links { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 15px; color: #8796bb; }
.roof-links b { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .2s; }
.roof-links a:hover b { border-color: var(--glow); }
.roof-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(60px, 9vw, 120px); padding: 26px 0 32px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #6f7ea6; }
.roof-foot .brand { color: #fff; }

/* ==================== responsive ==================== */
@media (min-height: 760px) and (min-width: 1001px) { .hx-down { display: block; } }

@media (max-width: 1100px) {
  .hx-stats { gap: 14px 22px; }
  .hx-stats b { font-size: 28px; }
}

@media (max-width: 1000px) {
  .hx-links { display: none; }
  .hx-time { margin-inline-start: auto; }
  .hx-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "kick kick"
      "w1 w2"
      "lift lift"
      "copy stats";
    row-gap: 20px; align-items: start;
  }
  .hx-kicker { justify-self: center; }
  .w1 { margin: 0; justify-self: end; } .w2 { margin: 0; justify-self: start; }
  .hx-title span { font-size: clamp(64px, 15vw, 130px); }
  .lift { max-width: 460px; width: 100%; justify-self: center; }
  .lift-frame { height: 52svh; min-height: 340px; }
  .lobby-grid { grid-template-columns: 1fr; }
  .device { display: none; }
  .board-t small { display: block; }
  .facade-grid { grid-template-columns: 1fr; justify-items: center; }
  .facade-copy { padding-bottom: 0; text-align: center; }
  .facade-read { text-align: start; }
  .bld { margin: 0; }
  .facade[data-phase] .orb { top: 34px; left: 6%; width: 56px; height: 56px; bottom: auto; }
}

@media (max-width: 640px) {
  .hx { padding: 12px 16px 24px; }
  .hx-nav { height: 50px; gap: 10px; }
  .hx-time { display: none; }
  .hx-login { margin-inline-start: auto; height: 40px; padding: 0 14px; }
  .hx-stage { grid-template-columns: 1fr 1fr; grid-template-areas: "kick kick" "w1 w2" "lift lift" "copy copy" "stats stats"; column-gap: 14px; padding-top: 10px; }
  .hx-title span { font-size: clamp(58px, 17vw, 96px); }
  .lift-frame { height: 50svh; min-height: 320px; box-shadow: 0 0 0 7px #1a2547, 0 0 0 8px #2b3a66, 0 30px 60px -20px rgba(0,0,0,.9), 0 0 80px -10px rgba(47,91,234,.45); }
  .lift-sill { width: calc(100% + 24px); }
  .hx-copy { max-width: none; justify-self: stretch; }
  .hx-lead { font-size: 14px; text-align: center; margin-bottom: 16px; }
  .hx-stats { justify-self: stretch; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px; }
  .hx-stats li { padding-inline-start: 10px; }
  .hx-stats b { font-size: 22px; }
  .hx-stats span { font-size: 11px; }
  .lobby, .roof { border-radius: 28px 28px 0 0; }
  .board { border-radius: 24px; padding: 6px; }
  .board-row { padding: 14px 10px; gap: 12px; }
  .board-n, .board-lead { display: none; }
  .board-t { flex: 1; }
  .board-t b { font-size: 16px; }
  .board-go { width: 32px; height: 32px; }
  .bld { margin-top: 70px; width: 100%; }
  .bld-wins { gap: 3px; }
  .win { flex: 1; min-width: 0; width: auto; height: 36px; border-radius: 3px; }
  .bld-body { padding: 14px 10px 10px; }
  .bld-fl { width: 14px; }
  .facade-read b { font-size: 24px; }
  .ride-grid { grid-template-columns: 30px minmax(0, 1fr); gap: 16px; }
  .shaft { width: 8px; }
  .cab { width: 30px; height: 38px; margin: -19px 0 0 -15px; border-radius: 9px; }
  .cab span { width: 14px; height: 20px; }
  .stops li { flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; }
  .stop-ghost { font-size: 84px; top: 22px; transform: none; }
  .stop-fl { width: 50px; height: 50px; font-size: 19px; border-radius: 14px; }
  .roof-cta { flex-direction: column-reverse; align-items: flex-start; }
  .roof-links { flex-direction: column; }
  .roof-arrow { width: 72px; height: 72px; }
  .roof-foot { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before, .hm *::after { animation: none !important; transition-duration: .01ms !important; }
  .mq-track { animation: none; }
  .lift-door { display: none; }
  .lift-shaft img { transform: scale(1.02); }
}
