:root {
  --bg: #03060c;
  --bg-2: #08101a;
  --panel: rgba(14, 20, 28, 0.98);
  --panel-2: rgba(20, 28, 38, 0.99);
  --gold: #d4ad2e;
  --gold-hi: #ffd76b;
  --gold-lo: #7a6018;
  --cream: #fbf6ec;
  --cream-m: rgba(251, 246, 236, 0.96);
  --cream-dim: rgba(251, 246, 236, 0.88);
  --red: #ef4444;
  --red-deep: #8a1515;
  --green: #6dd58c;
  --indigo: #1a3352;
  --ember: #ff8a3c;
  --font-d: "Cinzel", Georgia, serif;
  --font-b: "IBM Plex Sans", system-ui, sans-serif;
  --font-u: "IBM Plex Sans", system-ui, sans-serif;
  --font-m: "IBM Plex Mono", ui-monospace, monospace;
  --gap: clamp(0.45rem, 0.75vh, 0.65rem);
  --pad: clamp(0.55rem, 0.9vh, 0.75rem);
  --fs-xs: clamp(0.72rem, 1.15vh, 0.82rem);
  --fs-sm: clamp(0.8rem, 1.3vh, 0.92rem);
  --fs-md: clamp(0.88rem, 1.4vh, 1rem);
  --fs-lg: clamp(1.35rem, 3vh, 2.1rem);
  --dash-scale: 1;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-b);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--cream);
  background: var(--bg);
  cursor: default;
}

/* ====================  CINEMATIC BG  ==================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__sky {
  position: absolute;
  inset: -4% 0 0 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 18%, rgba(20, 40, 65, 0.4), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 85%, rgba(160, 30, 30, 0.1), transparent 55%),
    radial-gradient(ellipse 30% 25% at 78% 22%, rgba(255, 220, 150, 0.06), transparent 60%),
    linear-gradient(160deg, #02050a 0%, var(--bg) 45%, #060a10 100%);
}

.bg__godrays {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 80%;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: screen;
  filter: blur(2px);
  animation: godrays-drift 18s ease-in-out infinite;
}

.bg__godrays-fan {
  transform-origin: 80% 0;
  animation: godrays-sway 22s ease-in-out infinite;
}

@keyframes godrays-drift {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.7; }
}

@keyframes godrays-sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.2deg); }
}

.bg__fog {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 18%;
  height: 22%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(120, 100, 140, 0.18), transparent 70%),
    linear-gradient(180deg, transparent, rgba(20, 28, 50, 0.32) 40%, rgba(8, 12, 20, 0.5) 100%);
  filter: blur(28px);
  animation: fog-drift 28s ease-in-out infinite;
}

@keyframes fog-drift {
  0%, 100% { transform: translateX(-1.5%); }
  50% { transform: translateX(1.5%); }
}

.bg__chapel--far {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: min(180vw, 1900px);
  height: auto;
  transform: translateX(-50%);
  opacity: 0.55;
  filter: blur(2.2px);
  z-index: 1;
}

.bg__treeline {
  position: absolute;
  bottom: 1%;
  left: 50%;
  width: min(170vw, 1800px);
  height: auto;
  transform: translateX(-50%);
  opacity: 0.85;
  filter: blur(0.8px);
  z-index: 2;
}

.bg__chapel {
  position: absolute;
  bottom: -2%;
  left: 50%;
  width: min(150vw, 1600px);
  height: auto;
  transform: translateX(-50%);
  opacity: 0.32;
  filter: blur(0.4px);
  animation: chapel-breathe 14s ease-in-out infinite;
  z-index: 3;
}

.bg__chapel-rim {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: chapel-rim-draw 4.6s var(--ease-out) 0.6s forwards;
  filter: drop-shadow(0 0 4px rgba(253, 229, 138, 0.4));
}

@keyframes chapel-rim-draw {
  to { stroke-dashoffset: 0; }
}

.bg__chapel-window {
  animation: chapel-window-flicker 3.4s ease-in-out infinite;
  filter: blur(0.6px) drop-shadow(0 0 8px rgba(255, 90, 60, 0.5));
}

@keyframes chapel-window-flicker {
  0%, 100% { opacity: 0.34; }
  35% { opacity: 0.18; }
  55% { opacity: 0.5; }
  72% { opacity: 0.28; }
}

@keyframes chapel-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.012); }
}

.bg__embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg__embers::before,
.bg__embers::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 90%, rgba(243, 211, 107, 0.7), transparent 50%),
    radial-gradient(1px 1px at 28% 80%, rgba(243, 211, 107, 0.55), transparent 60%),
    radial-gradient(2px 2px at 45% 95%, rgba(243, 211, 107, 0.65), transparent 50%),
    radial-gradient(1px 1px at 62% 85%, rgba(243, 211, 107, 0.5), transparent 55%),
    radial-gradient(1.5px 1.5px at 78% 92%, rgba(243, 211, 107, 0.7), transparent 50%),
    radial-gradient(1px 1px at 90% 78%, rgba(243, 211, 107, 0.45), transparent 60%);
  animation: embers 22s linear infinite;
}

.bg__embers::after {
  animation-duration: 32s;
  animation-delay: -10s;
  opacity: 0.25;
  filter: blur(0.6px);
}

@keyframes embers {
  from { transform: translateY(0); opacity: 0.8; }
  to { transform: translateY(-110vh); opacity: 0; }
}

.bg__embers-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.95;
  mix-blend-mode: screen;
  width: 100%;
  height: 100%;
}

.bg__embers-canvas.is-active ~ .bg__embers {
  display: none;
}

.bg__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0.025;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.55) 0,
    rgba(255, 255, 255, 0.55) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  animation: scan-drift 9s linear infinite;
}

@keyframes scan-drift {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

.bg__grain {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 7;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.88  0 0 0 0 0.7  0 0 0 0.95 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  animation: grain-shift 1.6s steps(6) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, -1%); }
  80% { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

.bg__vignette {
  position: absolute;
  inset: 0;
  z-index: 8;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(ellipse 70% 100% at 50% 50%, transparent 60%, rgba(20, 8, 4, 0.18) 100%);
}

/* spotlight cursor — lag-eased bloom + anamorphic flare */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.spotlight__bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%),
    rgba(243, 211, 107, 0.055),
    rgba(243, 211, 107, 0.025) 35%,
    transparent 65%);
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
}

.spotlight__flare {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 520px 28px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 235, 180, 0.06),
    rgba(255, 235, 180, 0.02) 30%,
    transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.has-tile-hover .spotlight__flare { opacity: 1; }
.has-tile-hover .spotlight__bloom { opacity: 1.1; }

/* ====================  STAGE  ==================== */
.stage {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  height: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  overflow-y: visible;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* seize + leak ticker + nav (Apply, Command Brief, etc.) — pinned while scrolling */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
}

/* Main content area — natural document flow */
.canvas-wrap {
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.canvas-scaler {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
}

/* ====================  SEIZE BAR  ==================== */
.seize {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  padding: 0.22rem var(--pad);
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-deep));
  border-bottom: 2px solid var(--gold);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.seize::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: seize-sweep 6s ease-in-out infinite;
}

@keyframes seize-sweep {
  0%, 70% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.seize__siren {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ffd9d9;
  box-shadow: 0 0 12px #fff, 0 0 24px var(--red);
  animation: siren 1.2s ease-in-out infinite;
}

@keyframes siren {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

.seize__tag {
  font-family: var(--font-u);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.95);
}

.seize__text {
  font-family: var(--font-u);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #fff;
  max-width: 64rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.45;
}

.seize__text em {
  font-style: italic;
  font-weight: 700;
  color: #ffe88a;
}

.seize__counter {
  font-family: var(--font-m);
  font-weight: 600;
  color: #ffe88a;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.05rem 0.4rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 232, 138, 0.4);
}

/* ====================  AUTO-IMPORT LEAK STRIP  ==================== */
.leak-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem var(--pad);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(239, 68, 68, 0.35);
  font-family: var(--font-m);
  font-size: var(--fs-xs);
  color: var(--cream-m);
  overflow: hidden;
  min-height: 1.85rem;
}

.leak-strip__tag {
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
  animation: leak-blink 2.4s ease-in-out infinite;
}

@keyframes leak-blink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
}

.leak-strip__idx {
  flex-shrink: 0;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-feature-settings: "tnum" 1;
}

.leak-strip__line {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  color: var(--cream-m);
  transition: opacity 0.25s ease;
}

.leak-strip__line.is-fade {
  opacity: 0.15;
}

/* ====================  TOP BAR  ==================== */
.top {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 0.35rem var(--pad);
  background: linear-gradient(180deg, rgba(4, 7, 10, 0.98), rgba(4, 7, 10, 0.88));
  border-bottom: 1px solid rgba(212, 173, 46, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.brand__seal {
  flex-shrink: 0;
  width: clamp(2rem, 4.5vmin, 2.6rem);
  height: auto;
  filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.45));
  animation: seal-spin 60s linear infinite;
  transform-origin: center;
}

@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

.brand__name {
  display: block;
  font-family: var(--font-d);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__sub {
  display: block;
  font-family: var(--font-m);
  font-size: var(--fs-xs);
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* status pair */
.status-pair {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.5rem;
  font-family: var(--font-m);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.status__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.status--off { color: var(--red); }
.status--off .status__dot { animation: dot-pulse-slow 2s ease-in-out infinite; }

.status--on { color: var(--green); }
.status--on .status__dot { animation: dot-pulse 1.4s ease-in-out infinite; }

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); box-shadow: 0 0 12px currentColor; }
}

@keyframes dot-pulse-slow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.stamp {
  flex-shrink: 0;
  font-family: var(--font-d);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px double var(--red);
  padding: 0.18rem 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: rotate(-3deg) scale(2);
  animation: stamp-thud 0.5s var(--ease-back) 2.7s forwards;
}

@keyframes stamp-thud {
  0% { opacity: 0; transform: rotate(-3deg) scale(2.5); }
  60% { opacity: 1; transform: rotate(-3deg) scale(0.9); }
  80% { transform: rotate(-3deg) scale(1.05); }
  100% { opacity: 1; transform: rotate(-3deg) scale(1); }
}

.top__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top__menu {
  display: none;
}

.top__drawer {
  position: absolute;
  right: var(--pad);
  top: calc(100% + 0.15rem);
  z-index: 60;
  min-width: 12.5rem;
  padding: 0.35rem;
  background: rgba(8, 12, 18, 0.98);
  border: 1px solid rgba(212, 173, 46, 0.45);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.top__drawer[hidden] {
  display: none;
}

.top__drawer-link {
  font-family: var(--font-u);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

.top__drawer-link:hover {
  background: rgba(212, 173, 46, 0.12);
  color: var(--gold-hi);
}

.top {
  position: relative;
  flex-wrap: wrap;
  z-index: 1;
}

.top__brief[aria-pressed="true"] {
  color: var(--gold-hi);
  border-color: rgba(212, 173, 46, 0.65);
  background: rgba(212, 173, 46, 0.1);
}

.top__sound[aria-pressed="true"] {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.45);
}

/* ====================  BENTO CANVAS  ==================== */
.canvas {
  display: grid;
  gap: var(--gap);
  padding: var(--gap) var(--pad);
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 0.92fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "hero     facts    enroll"
    "burnrate custody  timeline"
    "dossier  versus   alumni";
  perspective: 1200px;
}

.tile {
  position: relative;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  padding: var(--pad);
  background: var(--panel);
  border: 1px solid rgba(212, 173, 46, 0.3);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 50px -20px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  transition: transform 0.25s var(--ease-out), border-color 0.2s ease, box-shadow 0.25s ease;
  animation: tile-in 0.55s var(--ease-out) forwards;
}

[data-reveal="1"] { animation-delay: 0.05s; }
[data-reveal="2"] { animation-delay: 0.12s; }
[data-reveal="3"] { animation-delay: 0.19s; }
[data-reveal="4"] { animation-delay: 0.26s; }
[data-reveal="5"] { animation-delay: 0.33s; }
[data-reveal="6"] { animation-delay: 0.4s; }
[data-reveal="7"] { animation-delay: 0.47s; }
[data-reveal="8"] { animation-delay: 0.54s; }
[data-reveal="9"] { animation-delay: 0.61s; }

@keyframes tile-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 240px at var(--tx, 50%) var(--ty, 50%), rgba(243, 211, 107, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tile:hover {
  border-color: rgba(255, 215, 107, 0.6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 60px -16px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 215, 107, 0.25);
}

.tile:hover::before {
  opacity: 1;
}

.tile--hero { grid-area: hero; border-color: rgba(212, 56, 56, 0.28); }
.tile--facts { grid-area: facts; }
.tile--custody {
  grid-area: custody;
  background: linear-gradient(135deg, var(--panel) 0%, rgba(28, 16, 24, 0.85) 100%);
}
.tile--timeline { grid-area: timeline; }
.tile--versus { grid-area: versus; }
.tile--enroll { grid-area: enroll; }

.tile--ping {
  animation: tile-ping 0.55s ease-in-out 2;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.85), 0 0 24px rgba(201, 162, 39, 0.35);
}

@keyframes tile-ping {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
.tile--alumni { grid-area: alumni; }
.tile--sources {
  grid-area: sources;
  display: none;
  background: linear-gradient(135deg, var(--panel) 0%, rgba(14, 28, 22, 0.92) 100%);
  border-color: rgba(109, 213, 140, 0.28);
}

.source-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--font-u);
  font-size: var(--fs-sm);
  color: var(--cream-m);
}

.source-list a {
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 215, 107, 0.35);
}

.source-list a:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.source-list__ai {
  font: inherit;
  font-weight: 600;
  color: #7dd3fc;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.source-list__ai:hover {
  color: #bae6fd;
}
.tile--burnrate {
  grid-area: burnrate;
  border-color: rgba(212, 56, 56, 0.32);
  background: linear-gradient(135deg, var(--panel) 0%, rgba(40, 14, 14, 0.78) 100%);
}
.tile--dossier {
  grid-area: dossier;
  background: linear-gradient(135deg, var(--panel) 0%, rgba(14, 20, 38, 0.92) 100%);
}

.tile__eyebrow {
  font-family: var(--font-m);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.tile__title {
  font-family: var(--font-d);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tile__title .accent {
  color: var(--red);
  text-shadow: 0 0 32px rgba(239, 68, 68, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* gold shimmer on .shimmer */
.shimmer {
  background: linear-gradient(
    100deg,
    #ff6464 0%,
    #ff6464 35%,
    #ffe88a 50%,
    #ff6464 65%,
    #ff6464 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

.tile__body {
  font-size: var(--fs-sm);
  color: var(--cream-m);
  flex: 0 1 auto;
  min-height: 0;
  line-height: 1.45;
}

.tile__body strong {
  color: var(--gold-hi);
  font-weight: 600;
}

.hero-statline {
  display: block;
  margin-bottom: 0.35rem;
}

.hero-statline:last-child {
  margin-bottom: 0;
}

.btn--rick {
  border-color: rgba(56, 189, 248, 0.45);
  color: #9ecbff;
}

.btn--rick:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.65);
}

.tile__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.tile__h {
  font-family: var(--font-d);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-hi);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.2rem;
  flex-shrink: 0;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.tile__h::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-hi), transparent);
}

.tile__lede {
  font-size: var(--fs-sm);
  color: var(--cream);
  line-height: 1.4;
}

.tile__lede strong {
  color: var(--gold-hi);
}

.tile__micro {
  font-family: var(--font-u);
  font-size: var(--fs-xs);
  color: var(--cream-dim);
  margin-top: 0.35rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.tile__micro strong {
  color: var(--cream);
}

.tile__micro a {
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

/* ====================  FACTS  ==================== */
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  height: 100%;
}

.fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.4rem;
  background: linear-gradient(180deg, var(--panel-2), rgba(6, 10, 16, 0.95));
  border-radius: 4px;
  border: 1px solid rgba(212, 173, 46, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.fact--dead::before { background: linear-gradient(90deg, transparent, var(--red), transparent); }
.fact--live::before { background: linear-gradient(90deg, transparent, var(--green), transparent); }

.fact__k {
  font-family: var(--font-m);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.fact__v {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vmin, 1.85rem);
  color: var(--gold-hi);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.fact--dead .fact__v {
  color: var(--red);
  text-decoration: line-through;
  text-decoration-color: rgba(240, 233, 222, 0.35);
}

.fact--live .fact__v {
  color: var(--green);
  text-shadow: 0 0 18px rgba(92, 184, 122, 0.5);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { text-shadow: 0 0 12px rgba(92, 184, 122, 0.4); }
  50% { text-shadow: 0 0 26px rgba(92, 184, 122, 0.85); }
}

.fact__n {
  font-family: var(--font-u);
  font-size: var(--fs-xs);
  color: var(--cream-dim);
}

/* ====================  CUSTODY  ==================== */
.punches {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem 0.45rem;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
}

.punches li {
  font-size: var(--fs-sm);
  color: var(--cream-m);
  padding-left: 0.45rem;
  border-left: 2px solid var(--gold);
  line-height: 1.35;
}

.punches li a {
  color: var(--gold-hi);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.punches li a:hover {
  color: var(--cream);
}

.punches strong {
  color: var(--gold-hi);
  font-weight: 600;
}

/* ====================  TIMELINE  ==================== */
.years {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.12rem;
}

.years li {
  display: grid;
  grid-template-columns: minmax(3.4rem, auto) 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: var(--fs-sm);
  position: relative;
  padding-left: 0.75rem;
}

.years li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-hi);
  box-shadow: 0 0 10px rgba(255, 215, 107, 0.8);
}

.years time {
  font-family: var(--font-m);
  font-weight: 600;
  color: var(--gold-hi);
}

.years span {
  color: var(--cream-m);
  line-height: 1.35;
}

.years__now::before {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.years__now time {
  color: var(--red);
}

.years__now span {
  color: var(--gold-hi);
  font-weight: 700;
}

/* ====================  LEDGER (burn rate tile)  ==================== */
.ledger {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-height: 0;
  gap: 0.12rem;
  font-family: var(--font-m);
  font-size: var(--fs-sm);
  margin: 0;
}

.ledger > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.22rem 0;
  border-bottom: 1px dashed rgba(212, 173, 46, 0.18);
  color: var(--cream-m);
}

.ledger > div:last-child {
  border-bottom: none;
}

.ledger dt {
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-xs);
  margin: 0;
}

.ledger dd {
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  margin: 0;
  font-feature-settings: "tnum" 1;
}

.ledger dd.bad {
  color: var(--red);
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.ledger dd.good {
  color: var(--green);
}

.facts--six {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.facts--six .fact__v {
  font-size: clamp(0.9rem, 1.6vh, 1.05rem);
}

.facts--six .fact__n {
  font-size: var(--fs-xs);
}

/* ====================  DOSSIER (on-file tile)  ==================== */
.dossier-scroll {
  flex: 1;
  min-height: 12rem;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.dossier--drift {
  animation: dossier-drift 38s linear infinite;
}

@keyframes dossier-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.dossier__tag--fin { color: #ff9a9a; }
.dossier__tag--ops { color: #ffb86b; }
.dossier__tag--sale { color: #c9a227; }
.dossier__tag--media { color: #9ecbff; }

.ledger--dense {
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.45rem;
}

.ledger--dense div {
  padding: 0.12rem 0;
}

.years--dense li {
  padding: 0.18rem 0;
}

.years--dense time {
  font-size: var(--fs-xs);
}

.versus--dense th,
.versus--dense td {
  padding: 0.28rem 0.45rem 0.28rem 0;
  font-size: var(--fs-sm);
}

/* ====================  DOSSIER (on-file tile)  ==================== */
.dossier {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-height: 0;
  margin: 0;
  gap: 0.35rem;
}

.dossier li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.55rem;
  padding: 0.42rem 0;
  border-top: 1px solid rgba(138, 165, 212, 0.18);
  align-items: start;
}

.dossier li:first-child {
  border-top: none;
  padding-top: 0.15rem;
}

.dossier__tag {
  font-family: var(--font-d);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-hi);
  padding-top: 0.08rem;
}

.dossier__body {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--cream-m);
}

.dossier__body em {
  font-style: italic;
  color: var(--cream);
}

.dossier__body a {
  color: var(--gold-hi);
  text-decoration: underline;
  text-decoration-color: rgba(255, 215, 107, 0.35);
  text-underline-offset: 2px;
}

.dossier__body a:hover {
  text-decoration-color: var(--gold-hi);
}

/* ====================  VERSUS  ==================== */
.versus {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-u);
  font-size: var(--fs-sm);
}

.versus tr {
  border-bottom: 1px solid rgba(212, 173, 46, 0.18);
}

.versus tr:last-child { border-bottom: none; }

.versus th {
  text-align: left;
  font-weight: 600;
  color: var(--cream);
  padding: 0.3rem 0.6rem 0.3rem 0;
  white-space: nowrap;
}

.versus td {
  padding: 0.3rem 0;
  font-weight: 500;
}

.versus .bad { color: var(--red); }
.versus .good { color: var(--green); }

/* ====================  ENROLL  ==================== */
.enroll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  flex: 1;
  align-content: start;
}

.enroll input,
.enroll select {
  font: inherit;
  font-family: var(--font-u);
  font-size: var(--fs-sm);
  padding: 0.5rem 0.6rem;
  color: var(--cream);
  background: rgba(4, 7, 10, 0.95);
  border: 1px solid rgba(212, 173, 46, 0.4);
  border-radius: 3px;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.enroll input:focus,
.enroll select:focus {
  outline: none;
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 2px rgba(243, 211, 107, 0.18);
}

.enroll select {
  grid-column: 1 / -1;
}

.enroll__oath {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-family: var(--font-u);
  font-size: var(--fs-xs);
  color: var(--cream-m);
  line-height: 1.35;
}

.enroll__oath input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.enroll .btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.fine {
  font-family: var(--font-u);
  font-size: var(--fs-xs);
  color: var(--gold-hi);
}

/* ====================  ALUMNI  ==================== */
.alumni-quote {
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--cream);
  border-left: 3px solid var(--red);
  padding-left: 0.7rem;
  flex: 0 1 auto;
  position: relative;
  line-height: 1.45;
  transition: opacity 0.32s ease;
  min-height: 4.5rem;
}

.alumni-quote.is-fade {
  opacity: 0.2;
}

.alumni-quote__text {
  margin: 0 0 0.45rem;
}

.alumni-quote__cite {
  margin: 0;
  font-size: var(--fs-xs);
  font-style: normal;
  font-family: var(--font-m);
  color: var(--gold-dim);
  letter-spacing: 0.02em;
}

.alumni-quote__cite a {
  color: var(--gold-hi);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.alumni-quote strong {
  color: var(--gold-hi);
  font-style: normal;
}

.alumni-quote::before {
  content: "“";
  position: absolute;
  left: -0.2rem;
  top: -0.5rem;
  font-size: 2.2rem;
  font-family: var(--font-d);
  color: rgba(212, 56, 56, 0.35);
  line-height: 1;
}

/* ====================  FOOTER  ==================== */
.foot {
  background: rgba(6, 10, 14, 0.95);
  border-top: 1px solid rgba(201, 162, 39, 0.14);
  min-height: 0;
}

.ticker {
  overflow: hidden;
  background: linear-gradient(90deg, #0d1b2e, var(--indigo), #0d1b2e);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  position: relative;
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5rem;
  z-index: 1;
  pointer-events: none;
}

.ticker::before { left: 0; background: linear-gradient(90deg, #0d1b2e, transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, #0d1b2e, transparent); }

.ticker__track {
  display: inline-block;
  padding: 0.36rem 0;
  white-space: nowrap;
  font-family: var(--font-m);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #fbf6ec;
  animation: ticker 50s linear infinite;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.foot__line {
  font-family: var(--font-m);
  font-size: var(--fs-sm);
  color: var(--cream-dim);
  text-align: center;
  padding: 0.3rem var(--pad);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foot__sister {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  padding-bottom: 1px;
  font-weight: 600;
}
.foot__sister:hover { color: var(--cream); border-bottom-color: var(--cream); }

/* ====================  BUTTONS  ==================== */
.btn {
  position: relative;
  font-family: var(--font-d);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  padding: 0.48rem 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn:hover::after { left: 150%; }

.btn:active { transform: scale(0.97); }

.btn--xs { padding: 0.36rem 0.6rem; font-size: var(--fs-xs); }
.btn--sm { padding: 0.4rem 0.7rem; }

.btn--gold {
  color: #1a1008;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  box-shadow: 0 1px 0 #4a3d10, 0 4px 14px -4px rgba(201, 162, 39, 0.55);
}

.btn--gold:hover {
  filter: brightness(1.08);
  box-shadow: 0 1px 0 #4a3d10, 0 6px 20px -4px rgba(243, 211, 107, 0.7);
}

.btn--outline {
  color: var(--gold-hi);
  background: rgba(201, 162, 39, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.5);
}

.btn--outline:hover {
  background: rgba(201, 162, 39, 0.12);
}

.btn--ghost {
  font-family: var(--font-u);
  color: var(--cream-m);
  background: transparent;
  border: 1px solid rgba(240, 233, 222, 0.18);
}

.btn--ghost:hover { color: var(--cream); border-color: rgba(240, 233, 222, 0.4); }

/* ====================  CINEMATIC LAUNCH  ==================== */
.launch {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.launch[hidden] { display: none; }

.launch__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 8, 8, 0.92) 0%, rgba(0, 0, 0, 0.98) 80%);
  animation: launch-in 0.4s var(--ease-out);
}

.launch__crt {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: launch-crt-drift 4.2s linear infinite;
}

@keyframes launch-crt-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 6px, 0 0; }
}

@keyframes launch-in { from { opacity: 0; } to { opacity: 1; } }

.launch__inner {
  position: relative;
  text-align: center;
  max-width: 28rem;
}

.launch__eyebrow {
  font-family: var(--font-m);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1rem;
  animation: glitch 0.15s steps(2) infinite;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  50% { transform: translate(0.5px, -0.5px); }
}

.launch__count {
  font-family: var(--font-d);
  font-size: clamp(5rem, 18vmin, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold-hi);
  text-shadow: 0 0 60px rgba(243, 211, 107, 0.7), 0 0 120px rgba(212, 56, 56, 0.45);
  margin: 0.5rem 0;
  min-height: 1.2em;
}

.launch__count.flash {
  animation: count-flash 0.5s var(--ease-back);
}

@keyframes count-flash {
  0% { transform: scale(2); opacity: 0; }
  60% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.launch__title {
  font-family: var(--font-d);
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.launch__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.launch__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold-hi));
  box-shadow: 0 0 12px var(--gold);
  transition: width 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.launch__status {
  font-family: var(--font-m);
  font-size: 0.78rem;
  color: var(--cream-m);
  min-height: 1.2em;
}

.launch__go { margin-top: 0.85rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ====================  SERGEANT RICK — POP-OUT CHAT  ==================== */
.sergeant-dock {
  position: fixed;
  right: max(0.5rem, env(safe-area-inset-right));
  bottom: max(0.5rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(22.5rem, calc(100vw - 1rem));
  pointer-events: none;
}

.sergeant-dock > * {
  pointer-events: auto;
}

.sergeant-dock.is-open .sergeant {
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(201, 162, 39, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sergeant {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem 0.5rem 0.65rem;
  font-family: var(--font-u);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(135deg, #1a3352 0%, #0a121c 55%, #1f2936 100%);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(201, 162, 39, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: sergeant-in 0.5s var(--ease-back) 2.6s both;
}

.sergeant__pulse {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid rgba(120, 200, 255, 0.45);
  animation: sergeant-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.sergeant__tag {
  font-family: var(--font-u);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.35rem;
  color: #0a121c;
  background: linear-gradient(90deg, #86efac, #4ade80);
  border-radius: 3px;
}

@keyframes sergeant-in {
  from { transform: translateX(120%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes sergeant-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

.sergeant__label { letter-spacing: 0.12em; }

.sgt-cmd {
  width: 100%;
  order: -1;
}

.sgt-cmd[hidden] { display: none; }

.sgt-cmd__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: min(32rem, calc(100dvh - 5.5rem));
  max-height: min(32rem, calc(100dvh - 5.5rem));
  background:
    linear-gradient(165deg, rgba(22, 32, 44, 0.94) 0%, rgba(10, 16, 24, 0.96) 45%, rgba(14, 22, 32, 0.94) 100%);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 12px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.65),
    0 0 32px rgba(56, 189, 248, 0.12),
    inset 0 0 0 1px rgba(255, 215, 107, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(1.25) blur(20px);
  -webkit-backdrop-filter: saturate(1.25) blur(20px);
  overflow: hidden;
  animation: sgt-panel-pop 0.32s var(--ease-back) both;
}

.sgt-cmd__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 215, 107, 0.14);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.05);
}

.sgt-cmd__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.5;
}

@keyframes sgt-panel-pop {
  from { transform: translateY(10px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.sgt-cmd__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  padding: 0.55rem 0.65rem 0.45rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  background: linear-gradient(180deg, rgba(26, 51, 82, 0.5), transparent);
}

.sgt-cmd__seal {
  color: var(--gold-hi);
  filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.4));
}

.sgt-cmd__title {
  font-family: var(--font-d);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
  line-height: 1.2;
}

.sgt-cmd__sub {
  font-family: var(--font-u);
  font-size: 0.5rem;
  color: rgba(245, 240, 230, 0.7);
  margin-top: 0.12rem;
  line-height: 1.35;
}

.sgt-cmd__sub a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sgt-cmd__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.sgt-cmd__toolbar {
  display: flex;
  gap: 0.25rem;
}

.sgt-cmd__tool {
  font-family: var(--font-m);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  color: var(--cream-m);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 3px;
  cursor: pointer;
}

.sgt-cmd__tool:hover {
  border-color: var(--gold);
  color: var(--gold-hi);
}

.sgt-cmd__tool--stop {
  border-color: rgba(239, 68, 68, 0.55);
  color: rgba(255, 180, 160, 0.95);
}

.sgt-cmd__tool--stop:hover {
  background: rgba(239, 68, 68, 0.2);
}

.sgt-cmd__uplink {
  font-family: var(--font-u);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 200, 140, 0.35);
  color: rgba(200, 230, 210, 0.9);
}

.sgt-cmd__uplink[data-state="live"] {
  border-color: rgba(120, 200, 140, 0.5);
  color: rgba(180, 240, 190, 0.98);
}

.sgt-cmd__uplink[data-state="live"]::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.28rem;
  border-radius: 50%;
  background: #6ee7a0;
  box-shadow: 0 0 6px rgba(110, 231, 160, 0.8);
  vertical-align: 0.05em;
}

.sgt-cmd__uplink[data-state="offline"] {
  border-color: rgba(201, 162, 39, 0.35);
  color: rgba(245, 220, 180, 0.85);
}

.sgt-cmd__uplink[data-state="checking"] {
  opacity: 0.7;
  font-style: italic;
}

.sgt-cmd__close {
  font-family: var(--font-m);
  font-size: 0.75rem;
  line-height: 1;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--cream-m);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 4px;
  cursor: pointer;
}

.sgt-cmd__close:hover {
  color: var(--gold-hi);
  border-color: var(--gold);
}

.sgt-cmd__hero {
  flex-shrink: 0;
  padding: 0.4rem 0.65rem 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sgt-cmd__hero-kicker {
  font-family: var(--font-m);
  font-size: 0.44rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.85);
  margin-bottom: 0.2rem;
}

.sgt-cmd__hero-body {
  font-family: var(--font-b);
  font-size: 0.58rem;
  line-height: 1.4;
  color: rgba(245, 240, 230, 0.82);
}

.sgt-cmd__hero.is-hidden {
  display: none;
}

.sgt-cmd__prompts {
  flex-shrink: 0;
  padding: 0.3rem 0.65rem 0.35rem;
  max-height: 6.5rem;
  overflow-y: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sgt-cmd__prompts.is-hidden {
  display: none;
}

.sgt-cmd__prompt-group {
  margin-bottom: 0.4rem;
}

.sgt-cmd__prompt-label {
  font-family: var(--font-m);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.75);
  margin-bottom: 0.2rem;
}

.sgt-cmd__prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.sergeant-chip {
  font-family: var(--font-u);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  color: var(--cream);
  background: rgba(26, 51, 82, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.sergeant-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.sgt-cmd__log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sgt-msg {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem;
  align-items: start;
  max-width: 92%;
}

.sgt-msg--you {
  margin-left: auto;
  grid-template-columns: 1fr auto;
}

.sgt-msg__avatar {
  font-family: var(--font-d);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26, 51, 82, 0.9);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-hi);
  opacity: 0.95;
}

.sgt-msg--you .sgt-msg__avatar {
  font-family: var(--font-u);
  font-size: 0.5rem;
  background: rgba(201, 162, 39, 0.2);
  color: var(--cream);
}

.sgt-msg__bubble {
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-b);
  font-size: 0.68rem;
  line-height: 1.5;
}

.sgt-msg--you .sgt-msg__bubble {
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--cream);
}

.sgt-msg--rick .sgt-msg__bubble {
  background: rgba(12, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 240, 230, 0.92);
}

.sgt-msg--ai .sgt-msg__bubble {
  border-color: rgba(201, 162, 39, 0.22);
  box-shadow: none;
  color: rgba(245, 240, 230, 0.94);
  position: relative;
}

.sgt-msg--ai .sgt-msg__bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.86  0 0 0 0 0.7  0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}

.sgt-msg--thinking .sgt-msg__bubble {
  color: rgba(245, 240, 230, 0.55);
}

.sgt-typing-dots {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  margin-right: 0.35rem;
}

.sgt-typing-dots span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.85);
  animation: sgt-dot 1.1s ease-in-out infinite;
}

.sgt-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.sgt-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes sgt-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.sgt-msg--streaming .sgt-msg__bubble {
  border-color: rgba(56, 189, 248, 0.45);
}

.sgt-stream-cursor {
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: rgba(125, 211, 252, 0.9);
  animation: sgt-cursor 0.85s step-end infinite;
}

@keyframes sgt-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.sgt-msg__meta {
  font-family: var(--font-m);
  font-size: 0.46rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.7);
  margin-bottom: 0.2rem;
}

.sgt-msg--ai .sgt-msg__meta {
  color: rgba(56, 189, 248, 0.85);
}

.sgt-msg__body p {
  margin: 0 0 0.45rem;
}

.sgt-msg__body p:last-child {
  margin-bottom: 0;
}

.sgt-msg__body strong {
  color: var(--gold-hi);
  font-weight: 600;
}

.sgt-msg__body a {
  color: #7dd3fc;
  text-decoration: underline;
}

.sgt-msg__body ul,
.sgt-msg__body ol {
  margin: 0.35rem 0 0.45rem 1rem;
  padding: 0;
}

.sgt-msg__body li {
  margin-bottom: 0.2rem;
}

.sgt-msg__body em {
  font-style: italic;
  color: rgba(245, 240, 230, 0.88);
}

.sgt-msg__actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.sgt-msg__copy {
  font-family: var(--font-m);
  font-size: 0.44rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.12rem 0.35rem;
  color: rgba(201, 162, 39, 0.85);
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 3px;
  cursor: pointer;
}

.sgt-msg__copy:hover {
  color: var(--gold-hi);
  border-color: var(--gold);
}

@keyframes rick-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.sgt-cmd__status {
  flex-shrink: 0;
  font-family: var(--font-m);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 0.65rem 0.2rem;
}

.sgt-cmd__status.is-ok { color: rgba(120, 200, 140, 0.9); }
.sgt-cmd__status.is-bad { color: rgba(230, 120, 100, 0.95); }

.sgt-cmd__form {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem 0.55rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  background: rgba(4, 8, 12, 0.6);
}

.sgt-cmd__form textarea {
  resize: none;
  min-height: 2.6rem;
  max-height: 6rem;
  font-family: var(--font-u);
  font-size: var(--fs-xs);
  line-height: 1.4;
  padding: 0.45rem 0.5rem;
  background: rgba(6, 10, 14, 0.95);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--cream);
  border-radius: 4px;
}

.sgt-cmd__form textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.sgt-cmd__send {
  align-self: end;
  font-family: var(--font-u);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #1a1008;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.sgt-cmd__send:disabled {
  opacity: 0.45;
  cursor: wait;
}

.sgt-cmd__foot {
  flex-shrink: 0;
  font-family: var(--font-m);
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(56, 189, 248, 0.65);
  padding: 0 0.65rem 0.35rem;
}

@media (max-width: 380px) {
  .sergeant-dock {
    right: max(0.35rem, env(safe-area-inset-right));
    left: max(0.35rem, env(safe-area-inset-left));
    max-width: none;
    align-items: stretch;
  }

  .sgt-cmd__panel {
    height: min(34rem, calc(100dvh - 4.5rem));
    max-height: min(34rem, calc(100dvh - 4.5rem));
  }
}

body.rickroll-mode .accent.shimmer {
  animation: rainbow 1.8s linear infinite;
  -webkit-text-fill-color: currentColor;
  background: none;
  color: var(--red);
}

@keyframes rainbow {
  0% { color: #ff6b6b; }
  33% { color: var(--gold-hi); }
  66% { color: #6fcf97; }
  100% { color: #ff6b6b; }
}

/* ====================  RESPONSIVE  ==================== */
@media (max-width: 1100px) and (min-width: 821px) {
  .canvas {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "hero hero"
      "facts facts"
      "enroll burnrate"
      "custody timeline"
      "dossier versus"
      "alumni alumni";
  }

  body.command-brief .canvas {
    grid-template-areas:
      "hero hero"
      "facts facts"
      "enroll burnrate"
      "custody timeline"
      "dossier sources"
      "versus alumni";
  }

  body.command-brief .tile--sources {
    display: flex;
  }

  .punches { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .leak-strip {
    flex-wrap: wrap;
    row-gap: 0.15rem;
  }

  .facts--six {
    grid-template-columns: 1fr 1fr;
  }

  .dossier--drift {
    animation: none;
  }

  .stage {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .canvas-wrap {
    overflow: visible;
  }

  .canvas-scaler {
    width: 100%;
  }

  .canvas {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "hero"
      "facts"
      "enroll"
      "burnrate"
      "custody"
      "timeline"
      "dossier"
      "versus"
      "sources"
      "alumni";
  }

  body.command-brief .tile--sources {
    display: flex;
  }

  .top__link,
  .top__brief,
  .top__sound {
    display: none;
  }

  .top__menu {
    display: inline-flex;
  }

  .status-pair {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .top__actions {
    margin-left: auto;
  }

  .tile {
    overflow: visible;
    min-height: auto;
  }

  .punches { grid-template-columns: 1fr; }
  .dossier li { grid-template-columns: 1fr; gap: 0.35rem; }
  .foot__line { white-space: normal; }
  .brand__sub { display: none; }
  .stamp { display: none; }
}

/* ====================  POLISH PASS · v9  ==================== */

/* paper grain over the canvas — gives tiles a "documents on a desk" feel */
.canvas {
  position: relative;
}

.canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.9  0 0 0 0 0.78  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* tile overflow so stamps and folder tabs can poke out */
.tile {
  isolation: isolate;
}

.tile::before {
  z-index: 0;
}

.tile > * {
  position: relative;
  z-index: 1;
}

/* tile-type accent stripe (left edge) — silently codes the "kind of evidence" */
.tile--hero,
.tile--burnrate {
  box-shadow:
    inset 3px 0 0 0 var(--red),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 50px -20px rgba(0, 0, 0, 0.85);
}

.tile--dossier {
  box-shadow:
    inset 3px 0 0 0 #5d7fb8,
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 50px -20px rgba(0, 0, 0, 0.85);
}

.tile--custody,
.tile--timeline {
  box-shadow:
    inset 3px 0 0 0 var(--gold),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 50px -20px rgba(0, 0, 0, 0.85);
}

.tile--facts,
.tile--versus {
  box-shadow:
    inset 3px 0 0 0 var(--cream-dim),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 50px -20px rgba(0, 0, 0, 0.85);
}

.tile--enroll,
.tile--alumni {
  box-shadow:
    inset 3px 0 0 0 var(--green),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 50px -20px rgba(0, 0, 0, 0.85);
}

/* shared hover keeps gold halo */
.tile:hover {
  box-shadow:
    inset 3px 0 0 0 var(--gold-hi),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 60px -16px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 215, 107, 0.25);
}

/* ====================  RUBBER STAMPS  ==================== */
.stamp-rubber {
  position: absolute;
  bottom: 0.45rem;
  right: 0.45rem;
  top: auto;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(0.58rem, 0.95vmin, 0.68rem);
  letter-spacing: 0.18em;
  color: #6b1212;
  border: 2px solid #6b1212;
  border-radius: 2px;
  transform: rotate(8deg);
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
  white-space: nowrap;
  background: transparent;
  filter: drop-shadow(0 0 1px rgba(139, 18, 18, 0.4)) contrast(0.95);
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 1px rgba(139, 18, 18, 0.25),
    0 0 8px rgba(139, 18, 18, 0.18);
}

.tile:has(.stamp-rubber) {
  padding-bottom: calc(var(--pad) + 0.85rem);
}

.stamp-rubber--seized {
  color: #ffb3b3;
  border-color: #ff6b6b;
  transform: rotate(-8deg);
  opacity: 0.45;
}

.stamp-rubber--paid {
  color: #2f9d6b;
  border-color: #2f9d6b;
  transform: rotate(-6deg);
  opacity: 0.4;
  box-shadow:
    inset 0 0 0 1px rgba(47, 157, 107, 0.3),
    0 0 8px rgba(47, 157, 107, 0.18);
}

.stamp-rubber--filed {
  color: #8aa5d4;
  border-color: #8aa5d4;
  transform: rotate(-4deg);
  opacity: 0.42;
  box-shadow:
    inset 0 0 0 1px rgba(138, 165, 212, 0.3),
    0 0 8px rgba(138, 165, 212, 0.18);
}

.stamp-rubber--closed {
  color: #ff8a8a;
  border-color: #ff6b6b;
  transform: rotate(-8deg);
  opacity: 0.38;
}

.stamp-rubber--null {
  color: #b8a060;
  border-color: #b8a060;
  transform: rotate(5deg);
  opacity: 0.35;
}

/* ====================  HERO TYPOGRAPHY POLISH  ==================== */
.tile--hero .tile__title {
  font-size: clamp(1.35rem, 3vh, 2.1rem);
  letter-spacing: -0.015em;
  line-height: 1.12;
  font-feature-settings: "ss01", "liga", "kern";
}

.tile--hero .tile__eyebrow {
  line-height: 1.35;
  max-width: 100%;
}

.tile--hero .tile__body {
  flex: 0 1 auto;
}

/* burning ember halo behind the hero title */
.tile--hero {
  overflow: hidden;
}

.tile--hero::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 107, 64, 0.16), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: ember-pulse 5s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes ember-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* literal red ink strike across the $22M */
.struck {
  position: relative;
  display: inline-block;
}

.struck__ink {
  display: inline-block;
  position: relative;
}

.struck::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 52%;
  height: 0.18em;
  background: linear-gradient(90deg,
    transparent 2%,
    rgba(239, 68, 68, 0.0) 4%,
    rgba(239, 68, 68, 0.85) 14%,
    rgba(239, 68, 68, 0.85) 86%,
    rgba(239, 68, 68, 0.0) 96%,
    transparent 98%);
  transform: rotate(-2deg);
  border-radius: 2px;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.55));
  animation: ink-strike 1.6s var(--ease-out) 2.6s both;
  transform-origin: left center;
}

@keyframes ink-strike {
  from { transform: rotate(-2deg) scaleX(0); }
  to { transform: rotate(-2deg) scaleX(1); }
}

/* ====================  RECEIPTS POLISH  ==================== */
.receipt {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  flex: 0 1 auto;
  min-height: 0;
  padding: 0.55rem 0.6rem 0.5rem;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(251, 246, 236, 0.02) 0px,
      rgba(251, 246, 236, 0.02) 22px,
      rgba(0, 0, 0, 0.05) 22px,
      rgba(0, 0, 0, 0.05) 23px),
    linear-gradient(180deg, rgba(20, 14, 10, 0.55), rgba(8, 5, 3, 0.55));
  border: 1px dashed rgba(212, 173, 46, 0.28);
  border-radius: 3px;
  font-family: var(--font-m);
}

.receipt__head {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-align: center;
  border-bottom: 1px dashed rgba(212, 173, 46, 0.28);
  padding-bottom: 0.32rem;
  line-height: 1.4;
}

.receipt .ledger {
  font-size: var(--fs-sm);
  gap: 0;
}

.receipt .ledger > div {
  border-bottom: none;
  padding: 0.16rem 0;
  position: relative;
  align-items: center;
}

.receipt .ledger > div::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.32rem;
  border-bottom: 1px dotted rgba(212, 173, 46, 0.22);
  z-index: 0;
}

.receipt .ledger dt,
.receipt .ledger dd {
  position: relative;
  z-index: 1;
  background: rgb(15, 13, 12);
  padding: 0 0.32rem;
}

.receipt .ledger dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.receipt .ledger dd {
  font-family: var(--font-m);
  font-weight: 600;
}

.receipt__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.18rem;
  padding-top: 0.32rem;
  border-top: 2px solid var(--red);
  font-family: var(--font-d);
}

.receipt__tot-k {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

.receipt__tot-v {
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
  font-variant-numeric: tabular-nums;
}

.receipt__foot {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-align: center;
  padding-top: 0.22rem;
  border-top: 1px dashed rgba(212, 173, 46, 0.22);
  line-height: 1.5;
}

.receipt__bad {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* ====================  DOSSIER POLISH (case-folder feel)  ==================== */
.tile--dossier .tile__h {
  position: relative;
  padding-left: 0.4rem;
}

.tile--dossier .tile__h::before {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: -0.6rem;
  width: 0.8rem;
  height: calc(100% + 0.4rem);
  background: linear-gradient(180deg, #5d7fb8, transparent);
  opacity: 0.55;
}

.dossier li {
  padding: 0.42rem 0;
  border-top: 1px solid rgba(138, 165, 212, 0.18);
}

.dossier li:first-child {
  border-top: 1px solid rgba(138, 165, 212, 0.28);
  padding-top: 0.4rem;
  margin-top: 0.15rem;
}

.dossier__tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid rgba(255, 215, 107, 0.5);
  border-radius: 2px;
  background: rgba(20, 30, 48, 0.55);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  color: var(--gold-hi);
  text-align: center;
  align-self: start;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.dossier__tag--gov {
  border-color: rgba(255, 215, 107, 0.55);
  color: #ffd76b;
}

.dossier__tag--dio {
  border-color: rgba(138, 165, 212, 0.6);
  color: #b3c7e8;
}

.dossier__tag--court {
  border-color: rgba(239, 68, 68, 0.55);
  color: #ffb3b3;
}

.dossier__tag--sale {
  border-color: rgba(109, 213, 140, 0.5);
  color: #a7e8bd;
}

.dossier__case {
  display: block;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 0.15rem;
  padding: 0.15rem 0.35rem;
  border-left: 2px solid rgba(239, 68, 68, 0.55);
  background: rgba(20, 14, 14, 0.4);
}

.dossier__case em {
  font-style: italic;
  color: #ffd76b;
}

/* ====================  TIMELINE POLISH  ==================== */
.tile--timeline .years li {
  padding: 0.18rem 0 0.18rem 0.85rem;
  border-bottom: 1px dotted rgba(212, 173, 46, 0.1);
}

.tile--timeline .years li:last-child {
  border-bottom: none;
}

.tile--timeline .years li:nth-child(odd) {
  background: rgba(255, 255, 255, 0.012);
}

.years li::before {
  width: 7px;
  height: 7px;
  top: 0.55rem;
  box-shadow:
    0 0 10px rgba(255, 215, 107, 0.85),
    0 0 0 2px rgba(0, 0, 0, 0.6);
}

.years__now::before {
  width: 9px;
  height: 9px;
  top: 0.45rem;
  box-shadow:
    0 0 14px var(--red),
    0 0 0 2px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(239, 68, 68, 0.5);
}

/* ====================  FACTS POLISH (dead state more dramatic)  ==================== */
.fact--dead {
  background: linear-gradient(180deg, rgba(34, 14, 14, 0.85), rgba(8, 4, 6, 0.95));
  border-color: rgba(239, 68, 68, 0.28);
}

.fact--dead .fact__v {
  letter-spacing: 0.02em;
}

.fact--live {
  background: linear-gradient(180deg, rgba(14, 30, 18, 0.6), rgba(6, 12, 8, 0.92));
  border-color: rgba(109, 213, 140, 0.32);
}

/* ====================  ALUMNI QUOTE POLISH  ==================== */
.tile--alumni .alumni-quote {
  padding-left: 1.1rem;
  border-left: 1px solid rgba(255, 215, 107, 0.35);
}

.tile--alumni .alumni-quote::before {
  left: -0.05rem;
  top: -0.35rem;
  font-size: 2.4rem;
  color: var(--gold-hi);
  opacity: 0.35;
}

.tile--alumni .alumni-quote::first-letter {
  font-family: var(--font-d);
  font-size: 2.6em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.18em 0 0;
  color: var(--gold-hi);
  text-shadow: 0 0 14px rgba(255, 215, 107, 0.35);
  font-style: normal;
}

/* ====================  TYPE + GRADE MICRO-PASS  ==================== */
.tile__eyebrow,
.seize__tag,
.leak-strip__tag,
.fact__k,
.dossier__tag,
.receipt__tot-k,
.receipt__head,
.receipt__foot,
.sgt-cmd__hero-kicker,
.sgt-cmd__prompt-label,
.brand__sub {
  font-variant-caps: all-small-caps;
}

.tile__eyebrow {
  letter-spacing: 0.2em;
}

.stamp,
.stamp-rubber {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.22em;
}

/* Numeric warning glyph feel */
.ledger dd.bad,
.versus .bad,
.receipt__tot-v,
.fact--dead .fact__v {
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 8px rgba(255, 138, 60, 0.25),
    0 0 18px rgba(239, 68, 68, 0.18);
}

/* Hero title — film-poster polish */
.tile--hero .tile__title {
  font-feature-settings: "ss01", "liga", "kern";
  letter-spacing: -0.012em;
  line-height: 1.1;
  text-shadow:
    0 0 1px rgba(255, 215, 107, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.85);
}

/* ====================  REDUCED MOTION  ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .tile { opacity: 1; transform: none; animation: none; }
  .struck::after { transform: rotate(-2deg) scaleX(1); }

  .bg__godrays,
  .bg__godrays-fan,
  .bg__chapel,
  .bg__chapel-rim,
  .bg__chapel-window,
  .bg__fog,
  .bg__embers::before,
  .bg__embers::after,
  .bg__scan,
  .bg__grain,
  .leak-strip__tag,
  .seize::after,
  .ticker__track,
  .dossier--drift,
  .launch__crt,
  .launch__eyebrow,
  .seize__siren,
  .status__dot,
  .sergeant__pulse,
  .brand__seal,
  .tile--hero::after {
    animation: none !important;
  }

  .bg__chapel-rim { stroke-dashoffset: 0; }

  .bg__embers-canvas { display: none; }
}

/* ====================  COMMAND BRIEF MODE  ==================== */
body.command-brief .tile {
  opacity: 1;
  transform: none;
  animation: none;
}

body.command-brief .seize {
  background: linear-gradient(90deg, #1a1210, #2a1814, #1a1210);
  border-bottom-color: rgba(201, 162, 39, 0.55);
}

body.command-brief .seize::after {
  animation: none;
  opacity: 0;
}

body.command-brief .seize__siren {
  animation: none;
  opacity: 0.55;
  box-shadow: none;
}

body.command-brief .leak-strip__tag {
  color: var(--gold);
  animation: none;
}

body.command-brief .shimmer {
  animation: none;
  background: none;
  -webkit-text-fill-color: var(--red);
  color: var(--red);
}

body.command-brief .ticker__track {
  animation-duration: 140s;
}

body.command-brief .stamp-rubber {
  opacity: 0.22;
}

body.command-brief .dossier--drift {
  animation-duration: 52s;
}

body.command-brief .canvas {
  grid-template-areas:
    "hero     facts    enroll"
    "burnrate custody  timeline"
    "dossier  sources  versus"
    "alumni   alumni   alumni";
}

body.command-brief .tile--sources {
  display: flex;
}

body.command-brief .tile--enroll .tile__h::after {
  width: 3.5rem;
}

@media (max-width: 1100px) {
  body.command-brief .canvas {
    grid-template-areas:
      "hero"
      "facts"
      "enroll"
      "burnrate"
      "custody"
      "timeline"
      "dossier"
      "sources"
      "versus"
      "alumni";
  }
}
