/* ==========================================================================
   About page — "Take the lift"
   The page is a building: lift doors open onto the lobby, every section is a
   floor with its real level, and a lift panel tracks where you are.
   Floors alternate ink and paper, like passing slab after slab.
   Scroll states (.is-in, lit dots, panel floor) come from js/about-page.js.
   ========================================================================== */

:root {
  --paper: #f3f5f8;
  --paper-ink: #0e1b2e;
  --paper-muted: #56657a;
  --paper-line: rgba(15, 42, 77, 0.14);
  --steel: #8fa6c4;
  --floor-pad: clamp(4.5rem, 9vw, 8rem);
  --inner-x: calc(var(--gutter) + clamp(0rem, 4vw, 5rem));
}

body.page-about { background: var(--ink); }
body.is-boarding { overflow: hidden; }
/* keep pop-ups (schedule notes) from widening the page */
.building { overflow-x: clip; }

/* Current page in the nav */
.nav-link.is-current::after { transform: scaleX(1); }

/* ==========================================================================
   Lift doors
   ========================================================================== */
.doors {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}
.doors.is-gone { display: none; }
.doors__leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, rgba(255, 255, 255, 0) 2px 7px),
    linear-gradient(180deg, #13335c 0%, var(--navy-deep) 55%, #0b2140 100%);
  transition: transform 1.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.doors__leaf--left { left: 0; border-right: 1px solid rgba(255, 255, 255, 0.16); }
.doors__leaf--right { right: 0; border-left: 1px solid rgba(0, 0, 0, 0.4); }
.doors.is-open .doors__leaf--left { transform: translateX(-101%); }
.doors.is-open .doors__leaf--right { transform: translateX(101%); }

/* the A mark sits across the seam; each leaf carries half of it */
.doors__mark {
  position: absolute;
  top: 50%;
  width: clamp(110px, 14vw, 170px);
  color: var(--white);
  transform: translateY(-50%);
}
.doors__leaf--left .doors__mark { right: calc(clamp(110px, 14vw, 170px) / -2); }
.doors__leaf--right .doors__mark { left: calc(clamp(110px, 14vw, 170px) / -2); }
.doors__mark svg { width: 100%; height: auto; }

.doors__call {
  position: absolute;
  left: 50%;
  bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
  margin: 0;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
  transition: opacity 0.5s ease;
}
.doors__arrow { display: inline-block; margin-right: 0.5em; color: #ffd27a; animation: call-blink 1s steps(2) infinite; }
@keyframes call-blink { 50% { opacity: 0.25; } }
.doors.is-open .doors__call { opacity: 0; }

/* ==========================================================================
   Shared floor scaffolding
   ========================================================================== */
.floor {
  position: relative;
  padding-bottom: var(--floor-pad);
}
.floor--dark {
  background: linear-gradient(180deg, var(--ink) 0%, #0c1830 100%);
  color: var(--white);
  --muted: var(--silver-dim);
  --rule: var(--line);
  --accent: var(--silver);
}
.floor--paper {
  background: var(--paper);
  color: var(--paper-ink);
  --muted: var(--paper-muted);
  --rule: var(--paper-line);
  --accent: var(--navy);
}

/* slab: the floor line with its level, drawn as you arrive */
.slab {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--inner-x) 0;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.slab::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background:
    linear-gradient(var(--accent), var(--accent)) top / 100% 1px no-repeat,
    repeating-linear-gradient(-45deg, var(--rule) 0 1px, transparent 1px 6px);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-out);
}
.floor.is-in .slab::before { transform: scaleX(1); }
.slab__name { color: var(--accent); }

.floor__inner { padding-inline: var(--inner-x); }
.floor__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.floor__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.floor--dark .floor__title em { color: var(--silver); }

.kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.kicker__rule { width: 48px; height: 1px; background: currentColor; }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
/* the lobby plays in as the doors open, not on scroll */
.is-ready .lobby [data-reveal] { opacity: 1; transform: none; }
.is-ready .lobby .kicker { transition-delay: 0.2s; }
.is-ready .lobby__lead { transition-delay: 0.85s; }
.is-ready .lobby__board { transition-delay: 1.05s; }

.page-about .text-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.page-about .text-link span {
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}
.page-about .text-link svg { transition: transform 0.6s var(--ease-out); }
.page-about .text-link:hover span { background-size: 100% 1px; }
.page-about .text-link:hover svg { transform: translateX(8px); }

/* ==========================================================================
   G · Lobby
   ========================================================================== */
.lobby {
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.lobby__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  background: url("../assets/img/about-lobby.jpg") 40% center / cover no-repeat;
  filter: grayscale(1) contrast(1.05) brightness(0.8);
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  transform: scale(1.08);
  transition: transform 3s var(--ease-out);
}
.is-ready .lobby__image { transform: none; }
.lobby::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.55) 0%, rgba(10, 18, 32, 0) 35%, rgba(10, 18, 32, 0.75) 100%);
  pointer-events: none;
}
.lobby__inner {
  position: relative;
  z-index: 1;
  padding: calc(160px + 2rem) var(--inner-x) 0;
}
.lobby__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 10vw, 10.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.lobby__title em { font-style: italic; font-weight: 500; color: #e9d7a8; }
.lobby__lead {
  max-width: 44ch;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--silver);
}
.lobby__board {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lobby__board-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 0.7rem;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.lobby__board:hover .lobby__board-btn {
  background: var(--white);
  color: var(--navy-deep);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   01 · Foundation — borehole log
   ========================================================================== */
.foundation {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.foundation__statement {
  max-width: 30ch;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
}
.borehole { margin: 0; }
.borehole__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--paper-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.borehole__strata { margin: 0; padding: 0; list-style: none; }
.stratum {
  display: grid;
  grid-template-columns: 3.25rem 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  border-bottom: 1px solid var(--paper-line);
}
.stratum__depth {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--paper-muted);
  font-variant-numeric: tabular-nums;
}
.stratum__depth::after { content: " m"; }
.stratum__band {
  align-self: stretch;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d) * 0.14s);
}
.borehole.is-in .stratum__band { transform: none; }
.stratum:nth-child(1) .stratum__band { background: repeating-linear-gradient(0deg, #c9d4e3 0 2px, #e4eaf2 2px 6px); }
.stratum:nth-child(2) .stratum__band { background: radial-gradient(circle at 30% 40%, #8fa6c4 1.5px, transparent 2px) 0 0 / 9px 9px, #d7e0ec; }
.stratum:nth-child(3) .stratum__band { background: repeating-linear-gradient(45deg, #6f8db4 0 2px, #c2d0e2 2px 8px); }
.stratum:nth-child(4) .stratum__band { background: repeating-linear-gradient(-45deg, #4f72a0 0 2px, #a9bcd5 2px 7px); }
.stratum:nth-child(5) .stratum__band { background: repeating-linear-gradient(90deg, #0f2a4d 0 3px, #194376 3px 6px); }
.stratum__text {
  font-size: 0.9375rem;
  color: var(--paper-muted);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
  transition-delay: calc(0.2s + var(--d) * 0.14s);
}
.stratum__text b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--paper-ink);
}
.borehole.is-in .stratum__text { opacity: 1; transform: none; }

/* ==========================================================================
   02 · Vision & Mission — two large statements, then the four pillars rise
   as columns under a beam
   ========================================================================== */
.vm__statements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 7rem);
}
.vm__item { padding-top: 1.5rem; border-top: 2px solid var(--silver); }
.vm__item:nth-child(2) { transition-delay: 0.15s; }
.vm__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #e9d7a8;
}
.vm__text {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.vm__text em { font-style: italic; font-weight: 500; color: var(--silver); }

.frame { margin-top: clamp(4rem, 8vw, 6rem); }
.frame__beam {
  padding: 0.9rem 0;
  border-top: 2px solid var(--silver);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.frame__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.frame__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: clamp(170px, 26vh, 250px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.column {
  position: relative;
  display: flex;
  justify-content: center;
}
.column__shaft {
  width: clamp(24px, 2.6vw, 36px);
  height: 100%;
  border-left: 1px solid var(--silver);
  border-right: 1px solid var(--silver);
  background: repeating-linear-gradient(-45deg, rgba(227, 231, 237, 0.16) 0 1px, transparent 1px 7px);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: calc(var(--c) * 0.18s);
}
.column__name {
  position: absolute;
  bottom: 0.75rem;
  left: calc(50% + clamp(24px, 2.6vw, 36px) / 2 + 0.75rem);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.8s ease;
  transition-delay: calc(0.6s + var(--c) * 0.18s);
}
.frame.is-in .column__shaft { transform: none; }
.frame.is-in .column__name { opacity: 1; }
.frame__footing {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--silver-dim) 0 1px, transparent 1px 6px);
  opacity: 0.6;
}

/* ==========================================================================
   03 · Workforce — headcount grid
   ========================================================================== */
.workforce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.workforce__count { font-variant-numeric: tabular-nums; }
.workforce__note { margin: 1.5rem 0 0; color: var(--muted); }
.network {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 2.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--paper-line);
}
.network dt {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
}
.network dd {
  margin: 0.4rem 0 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.headcount {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: clamp(4px, 0.55vw, 7px);
  max-width: 620px;
  justify-self: end;
  width: 100%;
}
.headcount i {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper-line);
  transform: scale(0.55);
  transition: transform 0.45s var(--ease-out), background-color 0.45s ease;
}
.headcount i.is-labour.on { background: #8fa6c4; transform: none; }
.headcount i.is-tech.on { background: var(--navy); transform: none; }

/* ==========================================================================
   04 · Character — specification schedule
   ========================================================================== */
.spec {
  width: 100%;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.spec thead th {
  padding: 0 1rem 1rem 0;
  border-bottom: 2px solid var(--silver);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: left;
  color: var(--silver-dim);
}
.spec tbody tr {
  position: relative;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out), background-color 0.4s ease;
  transition-delay: calc(var(--r) * 0.1s);
}
.spec.is-in tbody tr { opacity: 1; transform: none; }
.spec tbody tr:hover { background: rgba(255, 255, 255, 0.04); transition-delay: 0s; }
.spec td,
.spec tbody th { padding: clamp(1rem, 2vw, 1.5rem) 1rem clamp(1rem, 2vw, 1.5rem) 0; text-align: left; vertical-align: baseline; }
.spec td:first-child {
  width: 6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--silver-dim);
}
.spec tbody th {
  width: 34%;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.4s ease, letter-spacing 0.5s var(--ease-out);
}
.spec tbody tr:hover th { color: #e9d7a8; letter-spacing: 0.01em; }
.spec td:last-child { color: var(--silver); font-size: 1rem; }

/* ==========================================================================
   05 · Method — project schedule
   ========================================================================== */
.gantt {
  --name-w: clamp(11rem, 24vw, 19rem);
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.gantt__axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-left: var(--name-w);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--paper-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-muted);
}
.gantt__rows { margin: 0; padding: 0; list-style: none; }
.task {
  display: grid;
  grid-template-columns: var(--name-w) minmax(0, 1fr);
  align-items: center;
  min-height: 3.6rem;
  border-bottom: 1px solid var(--paper-line);
}
.task__name {
  padding-right: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--paper-ink);
}
.task__track {
  position: relative;
  height: 100%;
  min-height: 3.6rem;
  background: repeating-linear-gradient(90deg, var(--paper-line) 0 1px, transparent 1px 10%);
}
.task__bar {
  position: absolute;
  top: 50%;
  left: calc(var(--s) * 1%);
  width: calc((var(--e) - var(--s)) * 1%);
  height: 14px;
  margin-top: -7px;
  background: linear-gradient(90deg, var(--navy) 0%, #2f5f99 100%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1), height 0.3s ease, margin 0.3s ease;
  transition-delay: calc(var(--t) * 0.16s);
  cursor: help;
  outline: none;
}
.gantt.is-in .task__bar { transform: none; }
.task__bar:hover,
.task__bar:focus-visible { height: 20px; margin-top: -10px; transition-delay: 0s; }
.task__tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  z-index: 3;
  width: min(340px, 80vw);
  padding: 0.9rem 1rem;
  background: var(--paper-ink);
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.55;
  box-shadow: 0 16px 40px -18px rgba(14, 27, 46, 0.6);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.task__bar:hover .task__tip,
.task__bar:focus-visible .task__tip { opacity: 1; transform: none; }
.gantt__today {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 0;
  border-right: 1px dashed var(--navy);
}
.gantt__today span {
  position: absolute;
  top: -1.9rem;
  right: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

/* ==========================================================================
   R · Roof
   ========================================================================== */
.roof { padding-bottom: 0; }
.roof__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}
.plaque {
  margin: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.8);
}
.plaque img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 1197;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.plaque figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--paper-line);
}
.plaque figcaption b { font-family: var(--font-display); font-size: 1.25rem; }
.plaque figcaption span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  align-self: center;
}
.roof__bio { max-width: 52ch; margin-top: 1.75rem; color: var(--silver); font-size: 1.0625rem; line-height: 1.75; }
.roof__bio p { margin: 0 0 1rem; }

.roof__exit {
  display: grid;
  justify-items: center;
  gap: 2rem;
  margin-top: var(--floor-pad);
  padding: clamp(4rem, 9vw, 7rem) var(--inner-x) clamp(5rem, 10vw, 8rem);
  border-top: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(60% 80% at 50% 100%, rgba(25, 67, 118, 0.45), rgba(25, 67, 118, 0) 70%);
}
.roof__exit-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.roof__exit-text em { font-style: italic; font-weight: 500; color: #e9d7a8; }
.roof__exit-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; }

/* ==========================================================================
   Lift panel
   ========================================================================== */
.lift {
  position: fixed;
  right: clamp(0.75rem, 1.6vw, 1.75rem);
  top: 50%;
  z-index: 45;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 44, 66, 0.82), rgba(10, 18, 32, 0.88));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.6);
  transform: translate(140%, -50%);
  transition: transform 1s var(--ease-out) 0.6s;
}
.is-ready .lift { transform: translate(0, -50%); }

.lift__display {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  width: 2.75rem;
  padding: 0.5rem 0 0.6rem;
  border-radius: 999px;
  background: #050a12;
  color: #ffd27a;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.12);
}
.lift__dir { height: 0.7rem; font-size: 0.55rem; line-height: 0.7rem; }
.lift__floor {
  height: 1.25rem;
  overflow: hidden;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(255, 210, 122, 0.6);
}
.lift__floor-roll { display: block; }
.lift__floor-roll.roll-up { animation: roll-up 0.45s var(--ease-out); }
.lift__floor-roll.roll-down { animation: roll-down 0.45s var(--ease-out); }
@keyframes roll-up { from { transform: translateY(100%); } }
@keyframes roll-down { from { transform: translateY(-100%); } }
.lift__name {
  position: absolute;
  right: calc(100% + 0.9rem);
  top: 1.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.85);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lift.is-moving .lift__name,
.lift:hover .lift__name { opacity: 1; transform: none; }

.lift__buttons {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lift__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 60%);
  color: var(--silver);
  font: 700 0.625rem/1 var(--font-ui);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.lift__btn:hover { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.lift__btn.is-current {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy-deep);
  box-shadow: 0 0 0 4px rgba(255, 210, 122, 0.22), 0 0 14px rgba(255, 210, 122, 0.55);
}
.lift__btn.is-called { border-color: #ffd27a; color: #ffd27a; }
.lift__btn-label {
  position: absolute;
  right: calc(100% + 0.9rem);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.9);
  color: var(--white);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lift__btn:hover .lift__btn-label,
.lift__btn:focus-visible .lift__btn-label { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  :root { --inner-x: 1.25rem; }
  .slab { padding-inline: 1.25rem; }
  .lobby__inner { padding-top: calc(76px + 3rem); }
  .lobby__image { width: 100%; opacity: 0.35; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
  .foundation,
  .workforce,
  .roof__inner { grid-template-columns: 1fr; }
  .vm__statements { grid-template-columns: 1fr; }
  .plaque { max-width: 420px; }

  /* Lift panel becomes a compact floor display */
  .lift {
    top: auto;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    grid-auto-flow: column;
    padding: 0.35rem;
    transform: translateY(160%);
  }
  .is-ready .lift { transform: none; }
  .lift__buttons { display: none; }
  .lift__display { grid-auto-flow: column; align-items: center; width: auto; gap: 0.5rem; padding: 0.4rem 0.9rem; }
  .lift__name { position: static; padding: 0; background: none; opacity: 1; transform: none; color: var(--silver); font-size: 0.625rem; }
}

@media (max-width: 640px) {
  .headcount { grid-template-columns: repeat(15, 1fr); }
  .gantt { --name-w: 8.5rem; }
  .task__tip { width: 64vw; }
  .column__name { font-size: 0.625rem; letter-spacing: 0.14em; }
  .task__name { font-size: 0.8125rem; padding-right: 0.75rem; }
  .spec td:first-child { display: none; }
  .spec thead th:first-child { display: none; }
  .spec tbody th { width: auto; font-size: 1.4rem; }
  .spec td:last-child { font-size: 0.9375rem; }
  .network dt { font-size: 1.7rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .doors { display: none; }
  [data-reveal],
  .spec tbody tr,
  .stratum__text { opacity: 1; transform: none; }
  .slab::before,
  .stratum__band,
  .column__shaft,
  .task__bar { transform: none; }
  .column__name { opacity: 1; }
  .headcount i { transform: none; }
}
