/* ============================================================
   THE PITT — shift.css
   Mobile-first. The page behaves like a piece of the series:
   monitor green, key-art yellow, pulse rhythm, chart paper.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-it.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plexmono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../assets/fonts/plexmono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #070a09;
  --bg-2: #0b100e;
  --panel: #101714;
  --panel-2: #131c18;
  --line: #223029;
  --line-soft: #1a2420;
  --ink: #eaf0ec;
  --muted: #8fa39a;
  --dim: #5f7269;
  --yellow: #ffd500;
  --yellow-soft: rgba(255, 213, 0, 0.14);
  --green: #2ee57f;
  --green-dim: rgba(46, 229, 127, 0.16);
  --red: #ff453a;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Plex Mono", "SF Mono", Menlo, monospace;
  --hud-h: 92px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-tense: cubic-bezier(0.7, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--hud-h);
}

.mono { font-family: var(--font-mono); }
.accent { color: var(--yellow); }

::selection { background: var(--yellow); color: #000; }

img { display: block; max-width: 100%; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 300;
  background: var(--yellow); color: #000; font-family: var(--font-mono);
  padding: 10px 16px; font-size: 13px; text-decoration: none; border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus-visible { top: 12px; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

/* ============ BOOT / SHIFT-START SEQUENCE ============ */
#boot { display: none; }
html.js #boot {
  display: flex; position: fixed; inset: 0; z-index: 250;
  background: var(--bg); align-items: center; justify-content: center;
  text-align: center; cursor: pointer;
  transition: opacity 0.45s var(--ease-tense), visibility 0.45s;
}
html.js #boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { width: min(640px, 88vw); }
#boot-ecg { width: 100%; height: 90px; display: block; }
.boot-line { font-size: 12px; letter-spacing: 0.28em; margin-top: 14px; color: var(--ink); }
.boot-line.dim { color: var(--dim); letter-spacing: 0.2em; font-size: 10px; }
.boot-clock { font-size: 44px; font-weight: 700; color: var(--green); margin-top: 8px; letter-spacing: 0.08em; }
.boot-skip { margin-top: 26px; font-size: 10px; letter-spacing: 0.3em; color: var(--dim); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ============ HUD ============ */
#hud {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  background: rgba(7, 10, 9, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.progress { height: 2px; background: var(--line-soft); }
.progress span { display: block; height: 100%; width: 0%; background: var(--yellow); box-shadow: 0 0 8px rgba(255, 213, 0, 0.7); }

.hud-row {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 12px; max-width: 1400px; margin: 0 auto;
}

.hud-badge { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 44px; }
.badge-cross { width: 20px; height: 20px; fill: var(--red); flex: none; }
.hud-badge-text { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; line-height: 1.1; }
.hud-badge-text em { display: block; font-style: normal; font-weight: 400; font-size: 8px; letter-spacing: 0.22em; color: var(--dim); }

.hud-monitor { display: none; align-items: center; gap: 8px; flex: 1; min-width: 0; }
#hud-ecg { width: 130px; height: 30px; display: block; }
.hud-hr { font-size: 10px; color: var(--dim); letter-spacing: 0.1em; white-space: nowrap; }
.hud-hr b { color: var(--green); font-weight: 700; font-size: 13px; }

.hud-clock { margin-left: auto; text-align: right; line-height: 1.05; }
.hud-clock-label { display: block; font-size: 8px; letter-spacing: 0.26em; color: var(--dim); }
#shift-clock { font-size: 16px; font-weight: 700; color: var(--green); letter-spacing: 0.06em; text-shadow: 0 0 12px rgba(46, 229, 127, 0.35); }

.hud-controls { display: flex; gap: 6px; }
.hud-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px;
  justify-content: center; background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  font-size: 9px; letter-spacing: 0.14em; padding: 0 10px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hud-btn svg { width: 16px; height: 16px; }
.hud-btn:hover, .hud-btn:focus-visible { color: var(--ink); border-color: var(--yellow); }
.hud-btn[aria-pressed="true"] { color: var(--green); border-color: var(--green); background: var(--green-dim); }
.hud-btn-label { display: none; }

.ticker {
  display: flex; align-items: center; gap: 10px; height: 30px;
  border-top: 1px solid var(--line-soft); padding: 0 12px;
  overflow: hidden; white-space: nowrap;
}
.ticker-tag {
  flex: none; font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  color: #000; background: var(--red); padding: 2px 8px; border-radius: 2px;
  animation: ticker-pulse 2.4s ease-in-out infinite;
}
@keyframes ticker-pulse { 50% { opacity: 0.55; } }
#ticker-text { font-size: 10px; letter-spacing: 0.12em; color: var(--muted); transition: opacity 0.3s; }
#ticker-text.fading { opacity: 0; }

/* Dept menu */
#dept-menu {
  position: absolute; top: 100%; right: 0; left: 0;
  background: rgba(9, 13, 11, 0.97); border-bottom: 1px solid var(--line);
  padding: 18px 16px 22px; max-height: calc(100dvh - var(--hud-h)); overflow-y: auto;
  animation: menu-in 0.28s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu-head { font-size: 10px; letter-spacing: 0.24em; color: var(--yellow); margin-bottom: 12px; }
.menu-head span { display: block; color: var(--dim); letter-spacing: 0.14em; margin-top: 2px; }
#dept-menu ul { list-style: none; display: grid; gap: 4px; }
#dept-menu a {
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: baseline;
  padding: 12px 10px; border: 1px solid var(--line-soft); border-radius: 6px;
  text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: 0.06em;
  min-height: 44px; transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
#dept-menu a span { color: var(--green); font-size: 12px; }
#dept-menu a em { grid-column: 2; font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
#dept-menu a:hover, #dept-menu a:focus-visible { border-color: var(--yellow); background: var(--yellow-soft); transform: translateX(4px); }

/* ============ HERO ============ */
#hero {
  position: relative; min-height: calc(100svh - var(--hud-h));
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow: hidden; isolation: isolate;
}
@media (min-width: 880px) {
  #hero { justify-content: center; }
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-grade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,10,9,0.62) 0%, rgba(7,10,9,0.35) 38%, rgba(7,10,9,0.9) 88%),
    radial-gradient(120% 90% at 50% 10%, transparent 40%, rgba(7,10,9,0.75) 100%);
}
.grain {
  position: absolute; inset: -60px; opacity: 0.09; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}
@keyframes grain-shift { 33% { transform: translate(-18px, 10px); } 66% { transform: translate(12px, -14px); } }

.hero-content { padding: 56px 20px 130px; max-width: 1200px; margin: 0 auto; width: 100%; }
.eyebrow { font-size: 10px; letter-spacing: 0.26em; color: var(--yellow); margin-bottom: 14px; }

.hero-title { line-height: 0.86; user-select: none; }
.hero-the { display: block; font-size: clamp(20px, 5vw, 44px); font-weight: 800; letter-spacing: 0.42em; color: var(--ink); margin-left: 6px; }
.hero-pitt {
  display: block; font-size: clamp(84px, 24vw, 240px); font-weight: 900;
  letter-spacing: -0.015em; color: var(--yellow);
  text-shadow: 0 0 60px rgba(255, 213, 0, 0.25), 0 4px 0 rgba(0,0,0,0.35);
}
.hero-pitt.beat { animation: title-beat 0.32s var(--ease-tense); }
@keyframes title-beat { 30% { transform: scale(1.012); text-shadow: 0 0 90px rgba(255, 213, 0, 0.45), 0 4px 0 rgba(0,0,0,0.35); } }

.hero-tag { margin-top: 22px; font-size: clamp(17px, 2.4vw, 23px); font-weight: 600; max-width: 34ch; }
.hero-tag em { display: inline-block; margin-top: 8px; font-style: italic; font-weight: 400; font-size: 0.72em; color: var(--muted); max-width: 44ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 13px 22px; border-radius: 6px; border: 1px solid transparent;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.12em;
  text-decoration: none; cursor: pointer; color: var(--ink);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--yellow); color: #0a0a00; box-shadow: 0 0 0 rgba(255,213,0,0); }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 213, 0, 0.35); }
.btn-ghost { background: rgba(16, 23, 20, 0.6); border-color: var(--line); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.btn-lg { min-height: 56px; font-size: 14px; padding: 16px 26px; }
.max-mark { font-weight: 700; letter-spacing: 0.08em; border: 1.5px solid currentColor; border-radius: 4px; padding: 3px 7px; font-size: 11px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 38px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: rgba(9, 13, 11, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  max-width: 640px;
}
.hero-stats > div { padding: 12px 18px; border-right: 1px solid var(--line); flex: 1 1 auto; }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats dt { font-size: 9px; letter-spacing: 0.22em; color: var(--dim); }
.hero-stats dd { font-size: 26px; font-weight: 900; line-height: 1.1; color: var(--ink); }
.hero-stat-wide dd { font-size: 12px; letter-spacing: 0.06em; color: var(--yellow); padding-top: 6px; }
.live-dot::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); margin-right: 7px; vertical-align: 1px;
  animation: blink 1.6s steps(2) infinite;
}

.hero-ecg { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; pointer-events: none; }
#hero-ecg-canvas { width: 100%; height: 100%; display: block; }
.hero-ecg-label { position: absolute; right: 16px; bottom: 10px; font-size: 9px; letter-spacing: 0.22em; color: var(--green); opacity: 0.75; }

.scroll-cue {
  position: absolute; left: 20px; bottom: 104px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: 0.26em; color: var(--muted); text-decoration: none; min-height: 44px;
}
.scroll-cue svg { width: 14px; height: 14px; animation: cue-drop 1.8s var(--ease-tense) infinite; }
@keyframes cue-drop { 60% { transform: translateY(6px); } }
.scroll-cue:hover { color: var(--yellow); }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--yellow); overflow: hidden; padding: 10px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track span {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.2em;
  color: #0c0c00; white-space: nowrap; padding-right: 12px;
}
.marquee-track i { font-style: normal; margin: 0 12px; color: rgba(0,0,0,0.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { position: relative; padding: 84px 20px; max-width: 1200px; margin: 0 auto; }
section[id], footer[id] { scroll-margin-top: calc(var(--hud-h) + 8px); }
.section-dark { background: var(--bg-2); max-width: none; }
.section-dark > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.sec-head { margin-bottom: 44px; }
.sec-index { font-size: 10px; letter-spacing: 0.3em; color: var(--green); margin-bottom: 10px; }
.sec-title { font-size: clamp(38px, 7.5vw, 76px); font-weight: 900; letter-spacing: -0.01em; line-height: 0.95; }
.sec-rule { margin-top: 14px; font-size: 10px; letter-spacing: 0.22em; color: var(--dim); }

.lede { font-size: clamp(18px, 2.3vw, 22px); font-weight: 500; line-height: 1.5; }
.lede strong { color: var(--yellow); font-weight: 800; }

/* ============ PREMISE ============ */
.premise-grid { display: grid; gap: 40px; }
.premise-clock-block {
  border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(46,229,127,0.05) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(46,229,127,0.05) 27px 28px),
    var(--panel);
}
.premise-clock-label { font-size: 9px; letter-spacing: 0.28em; color: var(--dim); }
.premise-clock { font-size: clamp(72px, 17vw, 132px); font-weight: 700; color: var(--green); line-height: 1; letter-spacing: 0.02em; text-shadow: 0 0 26px rgba(46, 229, 127, 0.3); font-variant-numeric: tabular-nums; }
.premise-clock-sub { font-size: 11px; letter-spacing: 0.3em; color: var(--muted); margin-top: 4px; }
.premise-clock-track { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 10px; color: var(--dim); }
.premise-clock-track-bar { flex: 1; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.premise-clock-track-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), var(--yellow)); transition: width 0.2s linear; }

.premise-copy > p + p { margin-top: 18px; color: var(--muted); }
.premise-copy strong { color: var(--ink); }

.pillars { list-style: none; margin-top: 34px; display: grid; gap: 14px; }
.pillar {
  border: 1px solid var(--line); border-left: 3px solid var(--yellow);
  border-radius: 8px; padding: 18px 20px; background: var(--panel);
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.pillar:hover { transform: translateX(6px); border-left-color: var(--green); }
.pillar-num { font-size: 11px; color: var(--yellow); letter-spacing: 0.2em; }
.pillar h3 { font-size: 19px; font-weight: 800; letter-spacing: 0.04em; margin: 6px 0 6px; }
.pillar p { font-size: 14.5px; color: var(--muted); }

/* ============ SEASON 2 ============ */
#season2 { overflow: hidden; }
.s2-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.14; }
.s2-bg img { width: 100%; height: 100%; object-fit: cover; }
.s2-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-2), transparent 40%, var(--bg-2)); }
#season2 .sec-head, #season2 .s2-grid { position: relative; z-index: 1; }

.s2-grid { display: grid; gap: 34px; }
.s2-poster { position: relative; max-width: 380px; }
.s2-poster img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
.s2-poster figcaption { position: absolute; bottom: 10px; left: 10px; font-size: 9px; letter-spacing: 0.2em; background: rgba(7,10,9,0.85); padding: 4px 8px; border-radius: 3px; color: var(--yellow); }

.s2-beats { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.s2-beats li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(16, 23, 20, 0.7); transition: border-color 0.25s, transform 0.25s var(--ease-out); }
.s2-beats li:hover { border-color: var(--yellow); transform: translateX(4px); }
.beat-time { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding-top: 3px; }
.s2-beats h3 { font-size: 16px; font-weight: 800; letter-spacing: 0.03em; }
.s2-beats p { font-size: 14px; color: var(--muted); margin-top: 3px; }

.s2-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { font-size: 10px; letter-spacing: 0.18em; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: var(--yellow); color: #0c0c00; }
.chip-outline { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* ============ CAST / ROSTER ============ */
.roster { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; }
.chart { perspective: 1200px; }
.chart-btn {
  position: relative; display: block; width: 100%; min-height: 380px;
  background: none; border: 0; cursor: pointer; padding: 0; text-align: left;
  transform-style: preserve-3d; transition: transform 0.6s var(--ease-tense);
  border-radius: 12px; color: var(--ink); font-family: inherit;
}
.chart-btn[aria-pressed="true"] { transform: rotateY(180deg); }
.chart-face {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.chart-front img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.5s var(--ease-out), filter 0.5s; z-index: 0;
  filter: saturate(0.85) contrast(1.05);
}
.chart-btn:hover .chart-front img, .chart-btn:focus-visible .chart-front img { transform: scale(1.045); filter: saturate(1.05) contrast(1.08); }
.chart-front::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,10,9,0.15) 30%, rgba(7,10,9,0.92) 82%);
}
.chart-id, .chart-name, .chart-actor, .chart-vitals { position: relative; z-index: 2; }
.chart-id { font-size: 8px; letter-spacing: 0.24em; color: var(--yellow); }
.chart-name { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; margin-top: 5px; line-height: 1.15; }
.chart-actor { font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 2px; }
.chart-vitals { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.chart-vitals b { font-weight: 600; font-size: 9.5px; letter-spacing: 0.08em; color: var(--green); border: 1px solid var(--line); background: rgba(7,10,9,0.7); padding: 3px 7px; border-radius: 3px; }

.chart-back { transform: rotateY(180deg); justify-content: space-between; gap: 12px; background: var(--panel-2); border-color: var(--yellow); }
.chart-back-tag { font-size: 9px; letter-spacing: 0.24em; color: var(--yellow); }
.chart-back p { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.chart-back-foot { font-size: 8.5px; letter-spacing: 0.14em; color: var(--dim); }

.roster-note { margin-top: 26px; font-size: 9.5px; letter-spacing: 0.18em; color: var(--dim); text-align: center; }

/* ============ EPISODES / SHIFT LOG ============ */
.season-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.season-tab {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 14px 16px; min-height: 56px; border-radius: 8px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.12em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.season-tab em { font-style: normal; font-weight: 400; font-size: 9px; letter-spacing: 0.14em; color: var(--dim); }
.season-tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: #0c0c00; }
.season-tab[aria-selected="true"] em { color: rgba(0,0,0,0.55); }
.season-tab:not([aria-selected="true"]):hover { border-color: var(--yellow); color: var(--ink); }

.shift-log { list-style: none; display: grid; gap: 8px; counter-reset: hour; }
.log-row {
  border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel);
  overflow: hidden; transition: border-color 0.25s, background 0.25s;
}
.log-row:hover, .log-row:focus-within { border-color: var(--green); background: var(--panel-2); }
.log-btn {
  display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px; min-height: 56px; background: none; border: 0;
  cursor: pointer; color: var(--ink); font-family: inherit; text-align: left;
}
.log-hour { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--yellow); letter-spacing: 0.04em; }
.log-hour em { display: block; font-style: normal; font-weight: 400; font-size: 9px; color: var(--dim); letter-spacing: 0.14em; }
.log-title { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.log-title em { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 1px; }
.log-caret { width: 18px; height: 18px; color: var(--dim); transition: transform 0.3s var(--ease-tense); }
.log-row.open .log-caret { transform: rotate(180deg); color: var(--green); }
.log-detail { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-tense); }
.log-row.open .log-detail { max-height: 460px; }
.log-detail-inner { display: grid; gap: 12px; padding: 0 14px 14px; }
.log-still { border-radius: 6px; border: 1px solid var(--line); width: 100%; aspect-ratio: 454/254; object-fit: cover; }
.log-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--green); border-left: 2px solid var(--green); padding-left: 10px; line-height: 1.6; }
.log-note b { color: var(--ink); font-weight: 600; }

/* ============ MEDIA ============ */
.media-grid { display: grid; gap: 30px; }
.trailer-frame { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.trailer-frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.6s var(--ease-out), filter 0.6s; filter: brightness(0.72) saturate(0.9); }
.trailer-frame:hover img { transform: scale(1.03); filter: brightness(0.85) saturate(1.05); }
.trailer-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--yellow);
  background: rgba(7, 10, 9, 0.72); color: var(--yellow); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s;
}
.trailer-play svg { width: 30px; height: 30px; margin-left: 4px; }
.trailer-play:hover, .trailer-play:focus-visible { transform: translate(-50%, -50%) scale(1.1); background: var(--yellow); color: #0c0c00; box-shadow: 0 0 40px rgba(255, 213, 0, 0.4); }
.trailer-tag { position: absolute; left: 12px; bottom: 12px; font-size: 9px; letter-spacing: 0.2em; background: rgba(7,10,9,0.85); padding: 5px 9px; border-radius: 3px; color: var(--ink); }

.gallery-label { font-size: 9px; letter-spacing: 0.26em; color: var(--dim); margin-bottom: 10px; }
.gallery-strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery-strip figure { flex: 0 0 78%; scroll-snap-align: start; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery-strip img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-strip figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 9px; letter-spacing: 0.2em; background: rgba(7,10,9,0.85); color: var(--yellow); padding: 4px 8px; border-radius: 3px; }
.gallery-nav { display: flex; gap: 8px; margin-top: 10px; }
.gal-btn {
  width: 48px; height: 48px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font-size: 17px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.gal-btn:hover, .gal-btn:focus-visible { border-color: var(--yellow); color: var(--yellow); }
.gal-btn:active { transform: scale(0.94); }

/* ============ AWARDS ============ */
.awards-list { list-style: none; display: grid; gap: 14px; }
.award {
  position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px;
  background: linear-gradient(135deg, var(--panel) 60%, rgba(255, 213, 0, 0.05));
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.award:hover { transform: translateY(-3px); border-color: var(--yellow); }
.award-org { font-size: 9px; letter-spacing: 0.26em; color: var(--yellow); }
.award h3 { font-size: clamp(21px, 3.4vw, 30px); font-weight: 900; margin-top: 8px; letter-spacing: -0.01em; }
.award-detail { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 56ch; }
.award-detail strong { color: var(--ink); }
.award-year { position: absolute; top: 20px; right: 18px; font-size: 12px; font-weight: 700; color: var(--dim); }

.quotes { margin-top: 44px; display: grid; gap: 18px; }
.quotes blockquote { border-left: 3px solid var(--green); padding: 4px 0 4px 18px; }
.quotes p { font-size: clamp(17px, 2.4vw, 21px); font-weight: 600; font-style: italic; line-height: 1.45; }
.quotes cite { display: block; margin-top: 8px; font-size: 9.5px; letter-spacing: 0.22em; color: var(--dim); font-style: normal; }

/* ============ WATCH ============ */
#watch { padding-bottom: 100px; }
.watch-grid { display: grid; gap: 34px; }
.watch-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.watch-facts { list-style: none; margin-top: 30px; display: grid; gap: 8px; }
.watch-facts li { font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted); padding-left: 18px; position: relative; }
.watch-facts li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; background: var(--green); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.watch-poster { position: relative; max-width: 340px; }
.watch-poster img { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.watch-poster figcaption { position: absolute; bottom: 10px; left: 10px; font-size: 9px; letter-spacing: 0.2em; background: rgba(7,10,9,0.85); padding: 4px 8px; border-radius: 3px; color: var(--yellow); }

/* ============ FOOTER ============ */
#footer { border-top: 1px solid var(--line); background: var(--bg-2); position: relative; padding: 60px 20px 50px; }
.footer-ecg { height: 64px; margin-bottom: 30px; opacity: 0.8; }
.footer-ecg canvas { width: 100%; height: 100%; display: block; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-clock { font-size: 11px; letter-spacing: 0.24em; color: var(--green); }
.footer-brand { font-size: clamp(40px, 9vw, 88px); font-weight: 900; letter-spacing: 0.02em; margin-top: 12px; }
.footer-brand span { color: var(--yellow); }
.footer-note { max-width: 60ch; margin: 22px auto 0; font-size: 12px; color: var(--dim); }
.footer-dedication { margin-top: 18px; font-size: 9px; letter-spacing: 0.24em; color: var(--muted); }

/* ============ TRAILER MODAL ============ */
#trailer-modal { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; padding: 16px; }
#trailer-modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 5, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in 0.25s; }
@keyframes fade-in { from { opacity: 0; } }
.modal-shell {
  position: relative; width: min(960px, 100%); background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  animation: menu-in 0.3s var(--ease-out);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 10px; letter-spacing: 0.2em; color: var(--yellow); border-bottom: 1px solid var(--line); }
.modal-close { width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font-size: 15px; cursor: pointer; }
.modal-close:hover, .modal-close:focus-visible { border-color: var(--red); color: var(--red); }
.modal-body { aspect-ratio: 16/9; background: #000; }
.modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-offline { display: none; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-align: center; padding: 20px; }
.modal-offline a { color: var(--yellow); text-decoration: none; border: 1px solid var(--yellow); padding: 12px 18px; border-radius: 6px; }
.modal-foot { padding: 10px 14px; font-size: 9px; letter-spacing: 0.22em; color: var(--dim); border-top: 1px solid var(--line); }
.modal-foot a { color: var(--yellow); text-decoration: none; }
.modal-foot a:hover, .modal-foot a:focus-visible { text-decoration: underline; }

/* ============ REVEALS ============ */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (min-width: 560px) {
  .hud-btn-label { display: inline; }
  .hud-monitor { display: flex; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip figure { flex-basis: 46%; }
}

@media (min-width: 880px) {
  :root { --hud-h: 98px; }
  .hud-row { height: 62px; padding: 0 24px; }
  .ticker { padding: 0 24px; }
  #hud-ecg { width: 200px; height: 36px; }
  #shift-clock { font-size: 19px; }
  .hero-content { padding: 70px 32px 140px; }
  .section { padding: 120px 32px; }
  .premise-grid { grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
  .premise-clock-block { position: sticky; top: calc(var(--hud-h) + 20px); }
  .s2-grid { grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
  .roster { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .media-grid { grid-template-columns: 1.25fr 1fr; align-items: start; }
  .gallery-strip figure { flex-basis: 72%; }
  .watch-grid { grid-template-columns: 1fr 340px; gap: 60px; align-items: center; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .log-detail-inner { grid-template-columns: 320px 1fr; align-items: center; }
  #dept-menu { left: auto; width: 430px; border-left: 1px solid var(--line); border-bottom-left-radius: 12px; }
}

@media (min-width: 1200px) {
  .roster { grid-template-columns: repeat(5, 1fr); }
  .roster .chart:nth-child(1), .roster .chart:nth-child(2) { grid-column: span 1; }
  .chart-btn { min-height: 420px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .grain { animation: none; }
  .scroll-cue svg { animation: none; }
}
