/* SCP: BLACKOUT — scpblackout.com, "Descent" (see ../../DESIGN.md).
   The site is a descent into Site-01: every page is a floor (G, B1, B2, B3), the header is
   the elevator's control strip, the footer is the call panel at the bottom of the shaft.
   The hero is in the dark and the pointer is a flashlight. Tokens live in :root. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, latin subsets) ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --void: #07080a;          /* page */
  --concrete: #101215;      /* raised floors */
  --concrete-2: #15181c;    /* hover on raised floors */
  --seam: #24272c;          /* every rule and border */
  --seam-hi: #3a3e45;       /* borders that need to be seen */
  --bone: #ece9e2;          /* primary text */
  --ash: #8d8f93;           /* secondary text */
  --ash-dim: #5d6066;       /* legal, captions */
  --emergency: #e15858;     /* the game's HUD red */
  --emergency-hot: #ff6b5e; /* lit LED */
  --emergency-deep: #7a1714;
  --sodium: #e2b25c;        /* HUD amber, warnings */
  --ok: #82be96;            /* HUD green */
  --info: #7fb4dc;          /* HUD blue, softened */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wide: 125%;             /* display width, like the game's wordmark */

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --lift-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* names kept for admin/admin.css */
  --white: var(--bone);
  --grey: var(--ash);
  --dim: var(--ash);
  --faint: var(--ash-dim);
  --red: var(--emergency);
  --amber: var(--sodium);
  --green: var(--ok);
  --blue: var(--info);
  --bg: var(--void);
  --panel: rgba(16, 18, 21, 0.86);
  --panel-solid: var(--concrete);
  --stroke: var(--seam);
  --stroke-hover: var(--seam-hi);
  --rule: var(--seam);
  --radius: 2px;
  --t-fast: 0.18s;
  --t-mid: 0.4s;
  --t-slow: 0.8s;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.panel-open { overflow: hidden; }
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
::selection { background: var(--emergency); color: var(--void); }
:focus-visible { outline: 2px solid var(--emergency); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--lift-h) + 24px); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; top: 8px; left: 8px; z-index: 80; padding: 0.6em 1em; background: var(--emergency); color: var(--void); font-family: var(--mono); font-size: 0.75rem; font-weight: 600; transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ---------- Type ---------- */
.display, .title {
  margin: 0;
  font-family: var(--font);
  font-stretch: var(--wide);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.08;
  text-transform: uppercase;
  text-wrap: balance;
}
.h-section { font-size: clamp(1.9rem, 4.2vw, 3.3rem); }
.h-sub { font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: 0.08em; line-height: 1.2; }
.lede { max-width: 60ch; margin: 0; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ash); text-wrap: pretty; }
.prose { max-width: 64ch; color: var(--ash); text-wrap: pretty; }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--bone); font-weight: 600; }
.readout { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--ash); font-variant-numeric: tabular-nums; }
.readout b { color: var(--bone); font-weight: 600; }
.kicker { margin: 0; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--ash); }
.hint { font-family: var(--mono); font-size: 0.72rem; color: var(--ash-dim); }
.rule { height: 1px; background: var(--seam); }
.rule--red { background: linear-gradient(90deg, var(--emergency) 0 56px, var(--seam) 56px); }

/* Status lamp: the release status, everywhere it appears */
.lamp {
  flex: none;
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emergency);
  box-shadow: 0 0 0 3px rgba(225, 88, 88, 0.16), 0 0 10px rgba(255, 107, 94, 0.7);
  animation: lamp 2.6s ease-in-out infinite;
}
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.status { display: inline-flex; align-items: center; gap: 0.7em; margin: 0; font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: var(--ash); }
.status b { color: var(--bone); font-weight: 600; }

/* ---------- Buttons: elevator keys ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  min-height: 48px;
  padding: 0 1.4em;
  font-family: var(--font);
  font-stretch: 110%;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--seam-hi);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--t-fast) linear, border-color var(--t-fast) linear, color var(--t-fast) linear, box-shadow var(--t-mid) var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn:hover, .btn:focus-visible { border-color: var(--bone); }
.btn--primary { background: var(--emergency); border-color: var(--emergency); color: #160404; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--emergency-hot); border-color: var(--emergency-hot); box-shadow: 0 0 0 4px rgba(225, 88, 88, 0.18), 0 0 26px rgba(255, 107, 94, 0.45); }
.btn--danger { background: #c40000; border-color: #ff3b3b; color: #fff; }
.btn--danger:hover, .btn--danger:focus-visible { background: #e00000; border-color: #ff6b6b; }
.btn--small { min-height: 38px; padding: 0 1em; font-size: 0.82rem; }

/* Panels: only where the content is a real object */
.panel { position: relative; background: var(--concrete); border: 1px solid var(--seam); border-radius: var(--radius); }

/* ======================================================================
   LIFT: the header is the elevator's control strip
   ====================================================================== */
.lift {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--lift-h);
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem);
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 8, 10, 0.86), rgba(7, 8, 10, 0.55));
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 62, 69, 0.55);
  transition: background-color var(--t-mid) linear, border-color var(--t-mid) linear;
}
.lift--solid { background: rgba(7, 8, 10, 0.94); border-bottom-color: var(--seam); }
.lift__brand { flex: none; display: block; padding: 8px 0; }
.lift__brand img { width: clamp(150px, 14vw, 196px); height: auto; }
.lift__floors { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.floor { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.7rem 0.45rem 0.45rem; border-radius: var(--radius); color: var(--ash); transition: color var(--t-fast) linear, background-color var(--t-fast) linear; }
.floor__key {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--seam-hi);
  border-radius: 3px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  color: var(--ash);
  background: linear-gradient(160deg, #16191d, #0b0c0f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color var(--t-fast) linear, color var(--t-fast) linear, background-color var(--t-fast) linear, box-shadow var(--t-mid) var(--ease);
}
.floor__name { font-size: 0.88rem; font-weight: 500; letter-spacing: 0.01em; }
.floor:hover, .floor:focus-visible { color: var(--bone); }
.floor:hover .floor__key, .floor:focus-visible .floor__key { border-color: var(--bone); color: var(--bone); }
.floor[aria-current] { color: var(--bone); }
.floor[aria-current] .floor__key, .floor__key--lit {
  background: var(--emergency);
  border-color: var(--emergency-hot);
  color: #1a0505;
  box-shadow: 0 0 0 3px rgba(225, 88, 88, 0.16), 0 0 16px rgba(255, 107, 94, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.lift__status { flex: none; }
.lift__cta { flex: none; }
.lift__menu {
  display: none;
  align-items: center; gap: 0.6rem;
  margin-left: auto;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border: 1px solid var(--seam-hi);
  border-radius: var(--radius);
  background: rgba(7, 8, 10, 0.6);
  cursor: pointer;
}
.lift__menu .floor__key { width: 28px; height: 28px; }
.lift__menu-label { font-size: 0.85rem; font-weight: 600; }
.lift__menu[aria-expanded="true"] { border-color: var(--bone); }

/* Phone: the floors open as an elevator panel */
.liftpanel {
  position: fixed; inset: var(--lift-h) 0 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: rgba(7, 8, 10, 0.97);
  overscroll-behavior: contain;
  overflow-y: auto;
}
.liftpanel__floors { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--seam); }
.liftpanel .floor { gap: 1rem; padding: 0.9rem 0.2rem; border-bottom: 1px solid var(--seam); border-radius: 0; }
.liftpanel .floor__key { width: 52px; height: 52px; font-size: 0.95rem; }
.liftpanel .floor__text { display: grid; gap: 0.15rem; }
.liftpanel .floor__name { font-stretch: var(--wide); font-size: 1.2rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone); }
.liftpanel .floor__desc { font-size: 0.86rem; color: var(--ash); }
.liftpanel__foot { display: grid; gap: 1rem; }

/* ======================================================================
   HERO: in the dark. The pointer is a flashlight.
   ====================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--lift-h) + 48px) 0 clamp(1.5rem, 4vh, 2.5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--void);
  --lx: 62%; --ly: 64%; --lr: 34vmax;   /* light position and radius, moved by site.js */
}
.hero__scene { position: absolute; inset: 0; z-index: -1; }
.hero__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__dark { filter: brightness(0.3) saturate(0.7); }
.hero__lit {
  filter: brightness(1.12) saturate(1.05) contrast(1.04);
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, 0.82) 30%, rgba(0, 0, 0, 0.28) 62%, transparent 100%);
          mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, 0.82) 30%, rgba(0, 0, 0, 0.28) 62%, transparent 100%);
}
.hero__beam { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(circle calc(var(--lr) * 0.55) at var(--lx) var(--ly), rgba(255, 244, 228, 0.35), transparent 70%); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.88) 0%, rgba(7, 8, 10, 0.55) 34%, rgba(7, 8, 10, 0) 62%),
    linear-gradient(to top, var(--void) 0%, rgba(7, 8, 10, 0.4) 22%, rgba(7, 8, 10, 0) 45%),
    linear-gradient(to bottom, rgba(7, 8, 10, 0.7) 0%, rgba(7, 8, 10, 0) 18%);
}
.hero__grain { position: absolute; inset: 0; opacity: 0.09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero__copy { position: relative; }
.hero__mark { margin: 0 0 clamp(1.4rem, 3vw, 2rem); }
.hero__mark img { width: min(100%, 760px); height: auto; filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.6)); }
.hero__line { margin: 0 0 1.1rem; font-stretch: var(--wide); font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 300; letter-spacing: 0.08em; line-height: 1.1; text-transform: uppercase; }
.hero__body { max-width: 40ch; margin: 0 0 2rem; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: #b9b7b1; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2.5rem, 7vh, 4.5rem); padding-top: 1.1rem; border-top: 1px solid rgba(58, 62, 69, 0.6); }
.hero__hint { display: none; align-items: center; gap: 0.6rem; transition: opacity 0.8s ease-out; }
.hero__hint svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.has-light .hero__hint { display: inline-flex; }
.hero.is-lit .hero__hint { opacity: 0; }

/* ======================================================================
   SECTIONS ("floors" of a page), separated by seams
   ====================================================================== */
.section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; border-top: 1px solid var(--seam); }
.section--flush { border-top: 0; }
.section__head { display: grid; gap: 1rem; max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__row .section__head { margin-bottom: 0; }

/* Note from the creative director + facts */
.note { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.quote { margin: 0; }
.quote p { margin: 0; font-stretch: 112%; font-size: clamp(1.5rem, 2.9vw, 2.35rem); font-weight: 300; line-height: 1.32; letter-spacing: -0.005em; color: var(--bone); text-wrap: pretty; }
.quote p + p { margin-top: 0.7em; }
.quote footer { display: flex; align-items: center; gap: 0.9rem; margin-top: 2rem; }
.quote footer::before { content: ""; width: 40px; height: 1px; background: var(--emergency); }
.quote cite { font-style: normal; font-size: 0.92rem; color: var(--ash); }
.quote cite b { color: var(--bone); font-weight: 600; }
.facts { margin: 0; border-top: 1px solid var(--seam-hi); }
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--seam); }
.facts dt { font-family: var(--mono); font-size: 0.76rem; font-weight: 500; color: var(--ash); padding-top: 0.15rem; }
.facts dd { margin: 0; font-size: 1.02rem; font-weight: 500; }
.facts dd.is-live { display: flex; align-items: center; gap: 0.7rem; color: var(--emergency); }

/* Video: a facade until play, then a privacy-friendly embed */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--seam);
  border-radius: var(--radius);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video img { transition: transform 1.2s var(--ease), filter 0.6s ease-out; filter: brightness(0.82); }
.video__play {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  width: 100%;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border: 0;
  background: linear-gradient(to top, rgba(7, 8, 10, 0.85), rgba(7, 8, 10, 0) 45%);
  text-align: left;
  cursor: pointer;
}
.video__title { display: grid; gap: 0.3rem; }
.video__title b { font-stretch: var(--wide); font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.video__title span { font-family: var(--mono); font-size: 0.75rem; color: var(--ash); }
.video__btn {
  flex: none;
  display: grid; place-items: center;
  width: clamp(56px, 6vw, 76px); height: clamp(56px, 6vw, 76px);
  border-radius: 50%;
  background: var(--emergency);
  color: #160404;
  box-shadow: 0 0 0 6px rgba(225, 88, 88, 0.16), 0 0 30px rgba(255, 107, 94, 0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.video__btn svg { width: 38%; height: 38%; margin-left: 8%; fill: currentColor; }
.video:hover img { transform: scale(1.025); filter: brightness(0.95); }
.video:hover .video__btn, .video__play:focus-visible .video__btn { transform: scale(1.06); box-shadow: 0 0 0 9px rgba(225, 88, 88, 0.2), 0 0 40px rgba(255, 107, 94, 0.6); }
.video__note { margin: 0.9rem 0 0; }

/* The two systems: plates with their logos */
.systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--seam); border: 1px solid var(--seam); border-radius: var(--radius); overflow: hidden; }
.plate { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: clamp(22rem, 36vw, 30rem); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--void); color: inherit; overflow: hidden; isolation: isolate; }
.plate__bg { position: absolute; inset: 0; z-index: -1; }
.plate__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) saturate(0.85); transition: filter 0.8s ease-out, transform 1.4s var(--ease); }
.plate__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--void) 8%, rgba(7, 8, 10, 0.2) 60%, rgba(7, 8, 10, 0.5)); }
.plate:hover .plate__bg img { filter: brightness(0.6) saturate(1); transform: scale(1.03); }
.plate__logo { width: auto; max-width: 100%; }
.plate__logo--bare { height: clamp(64px, 7vw, 96px); }
.plate__logo--s3dx { height: clamp(60px, 6.4vw, 86px); }
.plate__text { display: grid; gap: 0.9rem; max-width: 42ch; }
.plate__text p { margin: 0; color: #b4b2ad; }
.plate__more { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; font-weight: 600; }
.plate__more::after { content: ""; width: 26px; height: 1px; background: var(--emergency); transition: width 0.4s var(--ease); }
.plate:hover .plate__more::after, .plate:focus-visible .plate__more::after { width: 44px; }
.plate__wave { position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; justify-content: center; gap: 1.2%; padding: 0 8%; opacity: 0.5; transition: opacity 0.6s ease-out; }
.plate__wave i { flex: 1; max-width: 10px; border-radius: 6px; background: linear-gradient(var(--emergency), #f09a5a); height: var(--h); opacity: 0.85; }
.plate:hover .plate__wave { opacity: 0.75; }
.plate__wave::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--void) 10%, rgba(7, 8, 10, 0.3) 60%, rgba(7, 8, 10, 0.6)); }

/* Cinematic band: one still, letterboxed */
.band { position: relative; margin: 0; border-top: 1px solid var(--seam); background: #000; }
.band img { width: 100%; height: clamp(220px, 32vw, 520px); object-fit: cover; object-position: 50% 40%; }
.band figcaption { position: absolute; left: var(--gutter); bottom: 1rem; }

/* Latest log entries */
.loglist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--seam-hi); }
.loglist a { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--seam); transition: background-color var(--t-fast) linear; }
.loglist a:hover { background: linear-gradient(90deg, rgba(225, 88, 88, 0.06), transparent 60%); }
.loglist time { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; color: var(--ash); font-variant-numeric: tabular-nums; }
.loglist h3 { margin: 0 0 0.3rem; font-stretch: var(--wide); font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.loglist p { margin: 0; max-width: 64ch; font-size: 0.95rem; color: var(--ash); }
.loglist .loglist__ver { font-family: var(--mono); font-size: 0.75rem; color: var(--ash-dim); }
.loglist__empty { padding: 1.4rem 0; border-bottom: 1px solid var(--seam); }

/* Community: the red hall, with the call to action over it */
.callout { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--seam); }
.callout__bg { position: absolute; inset: 0; z-index: -1; }
.callout__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; filter: brightness(0.62); }
.callout__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.6) 45%, rgba(7, 8, 10, 0.15) 100%); }
.callout__inner { display: grid; gap: 1.5rem; max-width: 560px; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.callout__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ======================================================================
   SHAFT: the footer is the call panel at the bottom
   ====================================================================== */
.shaft { position: relative; border-top: 1px solid var(--seam); background: linear-gradient(to bottom, var(--void), #050607); }
.shaft__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }

/* The lit floor display */
.callpanel { display: grid; gap: 1.4rem; align-content: start; }
.leddisplay {
  position: relative;
  display: flex; align-items: center; gap: 1.1rem;
  width: max-content;
  padding: 1rem 1.4rem 1rem 1.1rem;
  border: 1px solid var(--seam-hi);
  border-radius: 4px;
  background:
    radial-gradient(circle, rgba(225, 88, 88, 0.09) 1px, transparent 1.5px) 0 0 / 5px 5px,
    linear-gradient(160deg, #0d0f12, #050607);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 10px 24px rgba(0, 0, 0, 0.6);
}
.leddisplay__arrow { width: 18px; height: 22px; color: var(--emergency-hot); filter: drop-shadow(0 0 6px rgba(255, 107, 94, 0.8)); }
.leddisplay__arrow svg { width: 100%; height: 100%; fill: currentColor; }
.leddisplay__floor {
  font-family: var(--font);
  font-stretch: var(--wide);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: transparent;
  background: radial-gradient(circle, var(--emergency-hot) 1.35px, transparent 1.9px) 0 0 / 5px 5px;
  -webkit-background-clip: text;
          background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 90, 80, 0.55));
}
.callpanel__where { margin: 0; color: var(--ash); font-size: 0.95rem; }
.callpanel__where b { color: var(--bone); font-weight: 600; }
.callbtn { display: inline-flex; align-items: center; gap: 0.9rem; width: max-content; padding: 0; border: 0; background: none; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--bone); }
.callbtn__ring {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--seam-hi);
  background: radial-gradient(circle at 50% 35%, #1b1e23, #08090b 70%);
  box-shadow: inset 0 0 0 4px #0b0c0f, inset 0 0 0 5px var(--seam);
  transition: box-shadow 0.4s var(--ease), border-color 0.3s linear;
}
.callbtn__ring svg { width: 16px; height: 16px; fill: var(--ash); transition: fill 0.3s linear; }
.callbtn:hover .callbtn__ring, .callbtn:focus-visible .callbtn__ring { border-color: var(--emergency); box-shadow: inset 0 0 0 4px #0b0c0f, inset 0 0 0 5px var(--emergency), 0 0 20px rgba(255, 107, 94, 0.45); }
.callbtn:hover .callbtn__ring svg, .callbtn:focus-visible .callbtn__ring svg { fill: var(--emergency-hot); }

.shaft__label { margin: 0 0 1rem; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--ash-dim); }
.shaft__floors { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--seam); }
.shaft__floors .floor { gap: 1rem; padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--seam); border-radius: 0; }
.shaft__floors .floor__text { display: grid; gap: 0.1rem; }
.shaft__floors .floor__name { font-stretch: var(--wide); font-size: 0.98rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone); }
.shaft__floors .floor__desc { font-size: 0.86rem; color: var(--ash); }
.shaft__floors .floor:hover .floor__name { color: var(--emergency-hot); }

.channels { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--seam); }
.channels a { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--seam); color: var(--bone); font-weight: 500; transition: color var(--t-fast) linear; }
.channels a svg { flex: none; width: 18px; height: 18px; fill: var(--ash); transition: fill var(--t-fast) linear; }
.channels a span { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--ash-dim); }
.channels a:hover, .channels a:focus-visible { color: var(--emergency-hot); }
.channels a:hover svg, .channels a:focus-visible svg { fill: var(--emergency-hot); }

.shaft__base { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem 2.5rem; align-items: center; padding-top: 1.6rem; padding-bottom: calc(1.8rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--seam); }
.shaft__mark img { width: 150px; height: auto; opacity: 0.85; }
.shaft__legal { margin: 0; max-width: 92ch; font-size: 0.76rem; line-height: 1.65; color: var(--ash-dim); }
.shaft__legal a { color: var(--ash); text-decoration: underline; text-underline-offset: 3px; }
.shaft__legal a:hover { color: var(--bone); }
/* The restricted file. Near-invisible on purpose, as on the original site. */
.easter { font-family: var(--mono); font-size: 0.68rem; color: #1b1d21; transition: color 0.4s ease-out, text-shadow 0.4s ease-out; }
.easter:hover, .easter:focus-visible { color: var(--emergency); text-shadow: 0 0 12px rgba(225, 88, 88, 0.5); }

/* ======================================================================
   INNER PAGES
   ====================================================================== */
.pagehead { position: relative; padding: calc(var(--lift-h) + clamp(3.5rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; isolation: isolate; }
.pagehead--image { min-height: clamp(26rem, 62vh, 40rem); display: flex; align-items: flex-end; }
.pagehead--image .wrap { position: relative; }
.pagehead__bg { position: absolute; inset: 0; z-index: -1; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.85); }
.pagehead__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--void) 2%, rgba(7, 8, 10, 0.3) 55%, rgba(7, 8, 10, 0.75)); }
.pagehead__floor { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.4rem; }
.pagehead__floor .floor__key { width: 40px; height: 40px; font-size: 0.85rem; }
.pagehead .display { font-size: clamp(2.3rem, 6vw, 4.6rem); }
.pagehead .lede { margin-top: 1.4rem; }
.pagehead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }

/* Technology */
.sys { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.sys__intro { position: sticky; top: calc(var(--lift-h) + 32px); display: grid; gap: 1.3rem; align-content: start; }
.sys__lockup { width: min(100%, 400px); height: auto; }
.sys__logo { width: auto; height: 84px; }
.sys__intro .display { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.sys__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.feats { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--seam-hi); }
.feat { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--seam); }
.feat__index { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: var(--emergency); padding-top: 0.35rem; }
.feat__title { margin: 0 0 0.45rem; font-stretch: var(--wide); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.06em; line-height: 1.3; text-transform: uppercase; }
.feat__copy { margin: 0; color: var(--ash); font-size: 0.97rem; }
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: var(--seam); border: 1px solid var(--seam); border-radius: var(--radius); overflow: hidden; }
.spec__item { display: grid; gap: 0.35rem; padding: 1.1rem 1.2rem; background: var(--concrete); }
.spec__value { font-family: var(--mono); font-size: 1.3rem; font-weight: 600; color: var(--emergency-hot); font-variant-numeric: tabular-nums; }
.spec__label { font-size: 0.82rem; color: var(--ash); line-height: 1.4; }
.sys__note { margin: 1rem 0 0; font-size: 0.82rem; color: var(--ash-dim); }
.license { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(1.5rem, 3vw, 2.4rem); }
.license p { margin: 0.6rem 0 0; max-width: 60ch; color: var(--ash); }

/* Media */
.media-videos { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.media-videos .video--square { aspect-ratio: 1 / 1; }
.stills { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1rem); }
.still { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--seam); border-radius: var(--radius); background: #000; }
.still--wide { grid-column: span 4; }
.still--half { grid-column: span 3; }
.still--third { grid-column: span 2; }
.still--strip { grid-column: 1 / -1; }
.still button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.still img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s ease-out; filter: brightness(0.9); }
.still--strip img { aspect-ratio: 1920 / 607; }
.still:hover img { transform: scale(1.02); filter: brightness(1.05); }
.still figcaption { position: absolute; left: 0.9rem; bottom: 0.7rem; pointer-events: none; text-shadow: 0 1px 10px #000; }
.press { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--seam-hi); }
.press li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.4rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--seam); }
.press__thumb { display: grid; place-items: center; width: 96px; height: 60px; padding: 8px; border: 1px solid var(--seam); border-radius: var(--radius); background: #000; }
.press__thumb--light { background: #eceae4; }
.press__thumb img { max-height: 100%; width: auto; object-fit: contain; }
.press__thumb--photo { padding: 0; overflow: hidden; }
.press__thumb--photo img { width: 100%; height: 100%; object-fit: cover; }
.press h3 { margin: 0 0 0.15rem; font-size: 1rem; font-weight: 600; }
.press p { margin: 0; font-family: var(--mono); font-size: 0.75rem; color: var(--ash); }

/* Lightbox for stills */
.lightbox { width: min(96vw, 1600px); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--seam-hi); border-radius: var(--radius); background: #000; color: var(--bone); overflow: hidden; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(3, 3, 4, 0.92); }
.lightbox img { width: 100%; max-height: calc(94vh - 64px); object-fit: contain; background: #000; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.8rem 0.6rem 1.1rem; border-top: 1px solid var(--seam); }
.lightbox__actions { display: flex; gap: 8px; }

/* ======================================================================
   UPDATES LOG (rendered by assets/js/updates.js; class names are shared with it)
   ====================================================================== */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.log__item { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); animation: logIn 0.7s var(--ease) both; }
@keyframes logIn { from { opacity: 0; transform: translateY(12px); } }
.log__meta { position: sticky; top: calc(var(--lift-h) + 28px); align-self: start; display: grid; justify-items: start; gap: 0.5rem; padding-top: 1.1rem; border-top: 1px solid var(--seam-hi); }
.log__item.is-latest .log__meta { border-top-color: var(--emergency); }
.log__date { font-family: var(--mono); font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.log__ver { font-family: var(--mono); font-size: 0.75rem; color: var(--ash); }
.log__latest { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--emergency); }
.log__latest::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emergency); box-shadow: 0 0 8px rgba(255, 107, 94, 0.7); }
.log__body { padding: clamp(1.4rem, 3vw, 2.2rem); transition: border-color 0.4s ease-out; }
.log__item:target .log__body { border-color: var(--emergency); }
.log__tag { margin: 0 0 0.7rem; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--ash); }
.log__title { margin: 0; font-stretch: var(--wide); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 400; letter-spacing: 0.06em; line-height: 1.15; text-transform: uppercase; }
.log__title a:hover { color: var(--emergency-hot); }
.log__summary { max-width: 66ch; margin: 0.9rem 0 0; color: var(--ash); }
.log__changes { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--seam); }
.chg { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--seam); }
.chg:last-child { border-bottom: 0; padding-bottom: 0; }
.chg__type { padding-top: 0.2rem; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--ash); }
.chg__text { font-size: 0.97rem; line-height: 1.6; }
.chg--new .chg__type { color: var(--ok); }
.chg--improved .chg__type { color: var(--info); }
.chg--changed .chg__type { color: var(--bone); }
.chg--fixed .chg__type { color: var(--sodium); }
.chg--removed .chg__type { color: var(--ash-dim); }
.log-empty { display: grid; gap: 0.5rem; padding: clamp(1.4rem, 3vw, 2.2rem); }
.log-empty p { margin: 0; color: var(--ash); }
.log-empty .kicker { color: var(--bone); }
.log-empty a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.updates__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--seam); }

/* ======================================================================
   404: a floor that doesn't exist
   ====================================================================== */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--lift-h) + 40px) var(--gutter) 60px; }
.lost__inner { display: grid; gap: 1.4rem; justify-items: start; width: min(100%, 620px); }
.lost .leddisplay__floor { font-size: clamp(3.4rem, 8vw, 5.4rem); }
.lost .display { font-size: clamp(2rem, 5vw, 3.2rem); }
.lost p { margin: 0; color: var(--ash); }

/* ======================================================================
   RESTRICTED ACCESS: a different document, kept black and red
   ====================================================================== */
.restricted { background: #000; }
.restricted .fx--scan { position: fixed; inset: 0; z-index: 39; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255, 40, 40, 0.035) 0, rgba(255, 40, 40, 0.035) 1px, transparent 1px, transparent 3px); }
.locpill {
  position: fixed; top: 14px; left: 14px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 28px);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid rgba(225, 88, 88, 0.7);
  box-shadow: 0 0 18px rgba(225, 0, 0, 0.18);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.locpill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emergency); box-shadow: 0 0 8px rgba(255, 107, 94, 0.7); }
.locpill__sep { color: rgba(255, 255, 255, 0.35); }
.r-back { position: fixed; top: 14px; right: 14px; z-index: 60; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.7); font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.38); transition: color 0.2s linear, border-color 0.2s linear; }
.r-back:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.r-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 96px var(--gutter) 64px; text-align: center; }
.r-seal { width: min(64vw, 400px); margin: 0 auto 44px; filter: drop-shadow(0 0 40px rgba(200, 0, 0, 0.25)); animation: flicker 6s linear infinite; }
@keyframes flicker { 0%, 18%, 22%, 61%, 63%, 100% { opacity: 1; } 20% { opacity: 0.55; } 62% { opacity: 0.75; } }
.r-kicker { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(225, 88, 88, 0.8); }
.r-classified { margin: 18px 0 0; font-family: var(--mono); font-size: clamp(14px, 2.2vw, 24px); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.r-stamp {
  display: inline-block;
  margin: 26px 0 0;
  padding: 10px 26px 8px;
  font-family: var(--font); font-stretch: var(--wide); font-size: clamp(40px, 9vw, 96px); font-weight: 800; letter-spacing: 0.06em; line-height: 1; text-transform: uppercase;
  color: #e15858;
  border: 3px solid currentColor;
  transform: rotate(-3deg);
  text-shadow: 0 0 30px rgba(225, 0, 0, 0.35);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 2.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 2.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.r-order { margin: 34px 0 0; font-size: clamp(15px, 2.2vw, 24px); font-weight: 400; letter-spacing: 0.1em; line-height: 1.4; text-transform: uppercase; color: var(--ash); }
.r-order strong { display: block; margin-top: 0.3em; font-stretch: var(--wide); font-size: 1.2em; font-weight: 600; letter-spacing: 0.06em; color: #fff; }
.r-warning { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.r-warning__box { position: relative; padding: clamp(26px, 4vw, 44px); background: rgba(40, 0, 0, 0.35); border: 1px solid rgba(225, 88, 88, 0.45); text-align: left; }
.r-warning__box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #e15858; }
.r-warning__label { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.42em; color: #e15858; }
.r-warning__text { margin: 0; font-size: clamp(15px, 1.9vw, 19px); font-weight: 600; letter-spacing: 0.04em; line-height: 1.65; text-transform: uppercase; }
.r-warning__text em { font-style: normal; color: #e15858; }
.r-warned { margin: clamp(56px, 8vw, 96px) 0 0; text-align: center; font-stretch: var(--wide); font-size: clamp(22px, 4vw, 44px); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.r-file { min-height: 90vh; display: grid; place-items: center; padding: 60px var(--gutter); }
.r-file__inner { display: grid; justify-items: center; gap: 22px; text-align: center; }
.r-file__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; }
.r-file .btn--danger { min-height: 72px; padding: 0 48px; font-size: 18px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; box-shadow: 0 0 40px rgba(220, 0, 0, 0.3); }
.r-sign { padding: 40px var(--gutter) 90px; text-align: center; }
.r-sign p { margin: 0 0 6px; font-size: 14px; color: rgb(71, 0, 0); } /* intentionally near-invisible, as on the original page */
.r-sign strong { font-weight: 700; }
.breach { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: rgba(0, 0, 0, 0.95); text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease-out; }
.breach.is-on { opacity: 1; pointer-events: auto; }
.breach__count { font-stretch: var(--wide); font-size: clamp(20px, 3.6vw, 34px); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #ff3b3b; }
.breach__count span { font-family: var(--mono); font-weight: 500; }
.breach__final { display: none; font-family: var(--mono); font-size: clamp(14px, 2.4vw, 20px); font-weight: 600; letter-spacing: 0.12em; }
.breach__final.is-on { display: block; animation: flashMsg 0.6s steps(2, end) infinite; }
@keyframes flashMsg { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.breach__exit { margin-top: 30px; opacity: 0; pointer-events: none; transition: opacity 0.8s ease-out; }
.breach__exit.is-on { opacity: 1; pointer-events: auto; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1180px) {
  .lift__status { display: none; }
}
@media (max-width: 1024px) {
  .note, .sys { grid-template-columns: minmax(0, 1fr); }
  .sys__intro { position: static; }
  .shaft__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .callpanel { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 2rem; }
  .callpanel__where, .callbtn { grid-column: 2; }
  .leddisplay { grid-row: 1 / span 2; }
  .media-videos { grid-template-columns: minmax(0, 1fr); }
  .media-videos .video--square { aspect-ratio: 16 / 9; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lift__floors, .lift__cta { display: none; }
  .lift__menu { display: inline-flex; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--lift-h) + 32px); --lr: 70vmax; }
  .hero__veil { background: linear-gradient(to top, var(--void) 0%, rgba(7, 8, 10, 0.75) 38%, rgba(7, 8, 10, 0.2) 70%, rgba(7, 8, 10, 0.6) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .systems { grid-template-columns: minmax(0, 1fr); }
  .plate { min-height: 20rem; }
  .loglist a { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .loglist .loglist__ver { display: none; }
  .facts div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .shaft__inner { grid-template-columns: minmax(0, 1fr); }
  .callpanel { grid-template-columns: minmax(0, 1fr); }
  .callpanel__where, .callbtn { grid-column: auto; }
  .leddisplay { grid-row: auto; }
  .shaft__base { grid-template-columns: minmax(0, 1fr); }
  .stills { grid-template-columns: minmax(0, 1fr); }
  .still--wide, .still--half, .still--third { grid-column: auto; }
  .press li { grid-template-columns: 72px minmax(0, 1fr); }
  .press__thumb { width: 72px; height: 48px; }
  .press li .btn { grid-column: 1 / -1; }
  .log__item { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .log__meta { position: static; grid-auto-flow: column; justify-content: start; align-items: center; gap: 1rem; padding-top: 0.9rem; }
  .chg { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .callout__bg::after { background: linear-gradient(to top, rgba(7, 8, 10, 0.95) 20%, rgba(7, 8, 10, 0.55)); }
  .r-back { top: auto; bottom: 14px; right: 14px; }
  .locpill { font-size: 10px; letter-spacing: 0.06em; gap: 8px; padding: 7px 10px; }
  .r-file .btn--danger { padding: 0 34px; font-size: 16px; }
}

/* Motion preference: no light-follow, no pulses */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Feature lists: not a sequence, so no numbers; a short red tick leads each title */
.feat { grid-template-columns: minmax(0, 1fr); }
.feat__title::before { content: ""; display: inline-block; width: 14px; height: 1px; margin: 0 0.75em 0.3em 0; vertical-align: middle; background: var(--emergency); }

/* Review fixes */
.plate__logo { align-self: flex-start; }               /* flex columns stretch images by default */
.hero__dark { filter: brightness(0.2) saturate(0.65); } /* darker, so the light reads */
.video__play { justify-content: flex-end; background: linear-gradient(to top, rgba(7, 8, 10, 0.55), rgba(7, 8, 10, 0) 40%); }
.video__cap { display: grid; gap: 0.2rem; margin-top: 1rem; }
.video__cap h3 { margin: 0; font-stretch: var(--wide); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.video__cap p { margin: 0; }
.press__thumb img { width: auto; height: auto; max-width: 100%; max-height: 44px; }
.press__thumb--photo img { max-height: none; }
.liftpanel { background: var(--void); }

/* The current-build hangar band is a 4:1 crop (above the placeholders), so its frames are shorter */
.band img[src*="hall-"] { height: clamp(180px, 25vw, 380px); object-position: 50% 30%; }
.still--band img { aspect-ratio: 1475 / 372; }
.pagehead__bg img[src*="hall-"] { object-position: 50% 20%; }
.still--strip img { aspect-ratio: 16 / 9; }
.still--band img { aspect-ratio: 1475 / 372; }

/* ======================================================================
   Buttons as elevator keys (2 Nov): the same lit-key glow as the floor buttons.
   Primary buttons are always lit. Outlined buttons light up on hover or focus,
   and every button presses in when clicked.
   ====================================================================== */
.btn {
  background: linear-gradient(160deg, #16191d, #0b0c0f);
  border-color: var(--seam-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background-color 0.18s linear, border-color 0.18s linear, color 0.18s linear, box-shadow 0.35s var(--ease), text-shadow 0.35s var(--ease), transform 0.12s ease-out;
}
.btn:hover, .btn:focus-visible {
  border-color: var(--emergency-hot);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 107, 94, 0.55);
  box-shadow: 0 0 0 3px rgba(225, 88, 88, 0.16), 0 0 18px rgba(255, 107, 94, 0.45), inset 0 0 14px rgba(225, 88, 88, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn:hover svg, .btn:focus-visible svg { filter: drop-shadow(0 0 6px rgba(255, 107, 94, 0.6)); }
.btn--primary {
  background: var(--emergency);
  border-color: var(--emergency-hot);
  color: #1a0505;
  text-shadow: none;
  box-shadow: 0 0 0 3px rgba(225, 88, 88, 0.16), 0 0 16px rgba(255, 107, 94, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--emergency-hot);
  border-color: #ff8a7f;
  color: #1a0505;
  text-shadow: none;
  box-shadow: 0 0 0 4px rgba(225, 88, 88, 0.22), 0 0 30px rgba(255, 107, 94, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--primary:hover svg, .btn--primary:focus-visible svg { filter: none; }
.btn:active { transform: translateY(1px); }
.btn:not(.btn--primary):active { background: var(--emergency); border-color: var(--emergency-hot); color: #1a0505; text-shadow: none; }
.btn--danger, .btn--danger:hover, .btn--danger:focus-visible { background: #c40000; border-color: #ff3b3b; color: #fff; text-shadow: none; box-shadow: 0 0 40px rgba(220, 0, 0, 0.3); }
.btn--danger:hover, .btn--danger:focus-visible { background: #e00000; border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(225, 0, 0, 0.2), 0 0 44px rgba(255, 40, 40, 0.5); }

/* The call button and the phone floor button follow the same rule */
.lift__menu { transition: border-color 0.18s linear, box-shadow 0.35s var(--ease); }
.lift__menu:hover, .lift__menu:focus-visible, .lift__menu[aria-expanded="true"] { border-color: var(--emergency-hot); box-shadow: 0 0 0 3px rgba(225, 88, 88, 0.14), 0 0 16px rgba(255, 107, 94, 0.35); }
.callbtn__ring { box-shadow: inset 0 0 0 4px #0b0c0f, inset 0 0 0 5px rgba(225, 88, 88, 0.45), 0 0 12px rgba(255, 107, 94, 0.18); }
.callbtn__ring svg { fill: var(--emergency); }
/* Standby backlight: outlined buttons glow faintly at rest, so the effect shows on touch screens too */
.btn:not(.btn--primary):not(.btn--danger) {
  border-color: rgba(255, 107, 94, 0.42);
  box-shadow: 0 0 10px rgba(255, 107, 94, 0.14), inset 0 0 10px rgba(225, 88, 88, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn:not(.btn--primary):not(.btn--danger):hover, .btn:not(.btn--primary):not(.btn--danger):focus-visible {
  border-color: var(--emergency-hot);
  box-shadow: 0 0 0 3px rgba(225, 88, 88, 0.16), 0 0 18px rgba(255, 107, 94, 0.45), inset 0 0 14px rgba(225, 88, 88, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
