/* ═══════════════════════════════════════════════
   EBW PRO — CLASHING PROPHETS
   Main Stylesheet
   
   Structure:
   1. Fonts & Variables
   2. Reset & Base
   3. Typography
   4. Layout & Grid
   5. Navigation
   6. Hero / Page Headers
   7. Tabs
   8. Cards & Sections
   9. Persona Components
   10. Ensemble Components
   11. Spatial Grid
   12. Tables
   13. Room Cards
   14. Bus Architecture
   15. Utilities
   16. Footer
   17. Responsive Breakpoints
   ═══════════════════════════════════════════════ */

/* ─── 1. FONTS & VARIABLES ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@300;400;500&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --void: #08070C;
  --s1: #0D0C14;
  --s2: #14131E;
  --s3: #1C1A2A;
  --border: #2A2838;
  --border-lt: #3A3850;

  --text: #D8D4CC;
  --dim: #8A8698;
  --muted: #5A5668;

  --purple-deep: #3A1535;
  --purple: #6B4A7A;
  --purple-lt: #9B7BA8;
  --lavender: #B8A0C8;
  --rose: #8B5070;
  --gold: #C4956A;
  --gold-dim: #8B6B4A;
  --cream: #E8E0D0;

  --mask: #8B9DAF;
  --core: #C4956A;
  --cptsd: #8B5B5B;
  --autism: #5B7BA0;
  --protector: #4A8B6A;
  --antagonist: #8B4A4A;
  --will: #5B7BA0;
  --wisdom: #A0895B;
  --warrior: #8B5B5B;
  --chaos: #4A3A5A;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Manrope', sans-serif;
  --f-mono: 'DM Mono', monospace;

  --r: 4px;
  --gap: 16px;
  --gap-lg: 32px;
  --gap-xl: 48px;
  --max-w: 1120px;
  --max-w-sm: 760px;
}

/* ─── 2. RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavender); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cream); }
::selection { background: var(--purple); color: var(--cream); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── 3. TYPOGRAPHY ─── */
.font-display { font-family: var(--f-display); }
.font-mono { font-family: var(--f-mono); }
.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
.label-lg {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── 4. LAYOUT & GRID ─── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: var(--max-w-sm); margin: 0 auto; padding: 0 24px; }
.wrap-grid { max-width: 680px; margin: 0 auto; padding: 0 24px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.mb-sm { margin-bottom: 12px; }
.mb { margin-bottom: var(--gap); }
.mb-lg { margin-bottom: var(--gap-lg); }
.mb-xl { margin-bottom: var(--gap-xl); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }
.text-center { text-align: center; }

/* ─── 5. NAVIGATION ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--s1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .3s;
}
.nav-logo:hover { opacity: 1; }
.nav-title {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--cream);
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: all .2s;
}
.nav-links a:hover { color: var(--dim); border-color: var(--border); }
.nav-links a.active { color: var(--cream); background: var(--s3); border-color: var(--border); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--dim); font-size: 24px; cursor: pointer; padding: 4px; }

/* ─── 6. HERO / PAGE HEADERS ─── */
.hero {
  text-align: center;
  padding: var(--gap-xl) 24px var(--gap-lg);
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}
.hero-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--muted);
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.hero-sub {
  font-family: var(--f-mono);
  font-size: clamp(10px, 1.5vw, 12px);
  color: var(--muted);
  letter-spacing: 3px;
}
.hero-motto {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(14px, 2vw, 17px);
  color: var(--gold);
  margin-top: 20px;
  line-height: 1.8;
}
.hero-logo {
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  opacity: .9;
  box-shadow: 0 0 60px rgba(107,74,122,.2);
}

/* ─── 7. TABS ─── */
.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
  margin-bottom: var(--gap-lg);
  flex-wrap: wrap;
}
.tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--r);
  transition: all .2s;
  white-space: nowrap;
}
.tabs button:hover { color: var(--dim); }
.tabs button.active { background: var(--s3); border-color: var(--border); color: var(--cream); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── 8. CARDS & SECTIONS ─── */
.card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.card:hover { border-color: var(--border-lt); }
.card.clickable { cursor: pointer; }
.card.expanded { background: var(--s3); }

.section {
  padding: 20px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.callout {
  text-align: center;
  padding: 16px 24px;
  background: var(--s3);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--dim);
  line-height: 1.8;
}
.callout em { color: var(--gold); }
.callout.gold { border-color: rgba(196,149,106,.25); color: var(--gold); }

/* Page link cards (index) */
.page-card {
  display: block;
  padding: 24px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: all .3s;
  text-decoration: none;
}
.page-card:hover { border-color: var(--border-lt); background: var(--s3); transform: translateY(-2px); }
.page-card .icon { font-size: 22px; margin-bottom: 12px; }
.page-card .title { font-family: var(--f-mono); font-size: 13px; color: var(--cream); letter-spacing: 2px; margin-bottom: 8px; }
.page-card .desc { font-size: 13px; color: var(--dim); line-height: 1.7; }
.page-card.disabled { opacity: .4; cursor: default; pointer-events: none; }

.badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 8px;
  margin-top: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 2px;
}
.badge.live { border-color: var(--protector); color: var(--protector); }
.badge.building { border-color: var(--gold-dim); color: var(--gold-dim); }

/* ─── 9. PERSONA COMPONENTS ─── */
.persona-header { display: flex; align-items: center; gap: 12px; }
.persona-symbol { font-size: 24px; flex-shrink: 0; }
.persona-name { font-family: var(--f-mono); font-size: 15px; font-weight: 500; letter-spacing: 2px; }
.persona-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.persona-details { display: none; margin-top: 16px; }
.card.expanded .persona-details { display: block; }

.detail-label { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.detail-section { margin-bottom: 16px; }
.voice-item { font-size: 14px; color: var(--dim); padding: 6px 0; border-bottom: 1px solid rgba(42,40,56,.5); line-height: 1.6; }
.voice-item:last-child { border-bottom: none; }
.proc-text { font-size: 14px; color: var(--dim); line-height: 1.8; }
.persona-note { font-size: 14px; font-style: italic; line-height: 1.7; padding-top: 12px; }

/* Transparency gradient */
.gradient-bar { padding: 20px; background: var(--s2); border: 1px solid var(--border); border-radius: var(--r); }
.gradient-items { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.gradient-item { text-align: center; }
.gradient-item .gn { font-family: var(--f-mono); font-size: 12px; letter-spacing: 1px; font-weight: 500; }
.gradient-item .gd { font-size: 11px; color: var(--muted); margin-top: 2px; }
.gradient-arrow { font-size: 14px; color: var(--border-lt); }

/* Antagonist stages */
.stage { padding: 20px; margin-bottom: 12px; border-left: 3px solid; background: var(--s2); border-radius: 0 var(--r) var(--r) 0; }
.stage .stage-title { font-family: var(--f-mono); font-size: 15px; font-weight: 500; letter-spacing: 2px; margin-bottom: 10px; }
.stage .stage-desc { font-size: 14px; color: var(--dim); line-height: 1.8; }
.stage .stage-desc strong { color: var(--text); }

/* ─── 10. ENSEMBLE COMPONENTS ─── */
.ens-card { padding: 16px; border-radius: var(--r); }
.ens-card .ens-name { font-family: var(--f-mono); font-size: 14px; letter-spacing: 2px; margin-bottom: 4px; }
.ens-card .ens-sub { font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-bottom: 8px; }
.ens-card .ens-voices { font-size: 13px; color: var(--dim); line-height: 1.6; }
.ens-card .ens-proc { font-size: 13px; color: var(--muted); margin-top: 6px; font-style: italic; }

.voice-struct { margin-top: 14px; padding: 14px; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); }
.vrow { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid rgba(42,40,56,.4); }
.vrow:last-child { border-bottom: none; }
.vrow .vl { color: var(--dim); font-family: var(--f-mono); font-size: 12px; }
.vrow .vd { color: var(--dim); }
.vrow .tag-fixed { color: var(--will); font-family: var(--f-mono); font-size: 10px; letter-spacing: 1px; }
.vrow .tag-free { color: var(--warrior); font-family: var(--f-mono); font-size: 10px; letter-spacing: 1px; }

/* ─── 11. SPATIAL GRID ─── */
.spatial-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 4px;
  aspect-ratio: 1;
  max-width: 520px;
  margin: 0 auto;
}
.g-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; min-height: 70px; border-radius: var(--r); }
.g-cell.empty { background: transparent; }
.g-cell .cl { font-family: var(--f-mono); font-size: 10px; color: var(--dim); text-align: center; letter-spacing: 1px; line-height: 1.4; }
.g-cell .co { font-size: 9px; margin-top: 4px; letter-spacing: 1px; }
.g-cell .cn { font-size: 9px; margin-top: 2px; letter-spacing: 1px; }
.listener-cell { background: radial-gradient(circle, var(--s3) 0%, var(--void) 70%); border: 1px solid var(--border); border-radius: 50%; }

.grid-legend { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 2px; opacity: .7; }
.legend-label { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; }

.grid-rules .rule { font-size: 13px; color: var(--dim); padding: 6px 0; line-height: 1.7; border-bottom: 1px solid rgba(42,40,56,.4); }
.grid-rules .rule:last-child { border-bottom: none; }

/* ─── 12. TABLES ─── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.data-table td { font-size: 13px; color: var(--dim); padding: 8px 12px; border-bottom: 1px solid rgba(42,40,56,.4); line-height: 1.5; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .pct { color: var(--cream); font-weight: 700; font-size: 15px; font-family: var(--f-mono); }
.data-table .val { color: var(--autism); font-family: var(--f-mono); }

/* ─── 13. ROOM CARDS ─── */
.room-card { background: var(--s2); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: all .3s; }
.room-card:hover { border-color: var(--border-lt); }
.room-card.expanded .room-details { display: block; }
.room-header { display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; }
.room-num { font-family: var(--f-display); font-size: 28px; font-weight: 300; text-align: center; }
.room-name { font-family: var(--f-mono); font-size: 13px; color: var(--cream); letter-spacing: 2px; }
.room-mood { font-size: 13px; color: var(--muted); margin-top: 2px; }
.room-preset { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-align: right; line-height: 1.5; }
.room-details { display: none; padding: 0 20px 20px; }
.room-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd-box { padding: 14px; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); }
.rd-label { font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.rd-text { font-size: 13px; color: var(--dim); line-height: 1.7; }
.rd-text strong { color: var(--text); }

.frrr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frrr-box { padding: 16px; text-align: center; border-radius: var(--r); }
.frrr-label { font-family: var(--f-mono); font-size: 16px; font-weight: 500; letter-spacing: 2px; margin-bottom: 8px; }
.frrr-desc { font-size: 13px; color: var(--dim); line-height: 1.7; }

/* ─── 14. BUS ARCHITECTURE ─── */
.bus-section { margin-bottom: 16px; }
.bus-header { padding: 14px 18px; background: var(--s3); border: 1px solid var(--border); border-bottom: none; border-radius: var(--r) var(--r) 0 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.bus-header:hover { background: var(--s2); }
.bus-header .bsh-title { font-family: var(--f-mono); font-size: 13px; color: var(--cream); letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.bus-header .bsh-range { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.bus-body { background: var(--s2); border: 1px solid var(--border); border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.bus-body.collapsed { display: none; }
.bus-row { display: grid; grid-template-columns: 80px 160px 100px 1fr; gap: 8px; padding: 8px 18px; border-bottom: 1px solid rgba(42,40,56,.4); align-items: center; font-size: 13px; }
.bus-row:last-child { border-bottom: none; }
.bus-row:hover { background: var(--s3); }
.bus-row-hdr { display: grid; grid-template-columns: 80px 160px 100px 1fr; gap: 8px; padding: 8px 18px; font-family: var(--f-mono); font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.bus-num { color: var(--muted); font-family: var(--f-mono); font-size: 12px; text-align: right; }
.bus-name { color: var(--text); font-weight: 500; }
.bus-out { color: var(--muted); font-family: var(--f-mono); font-size: 11px; }
.bus-notes { color: var(--dim); font-size: 12px; }
.color-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

.bus-box { padding: 16px; background: var(--s3); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; }
.bus-box .box-title { font-family: var(--f-mono); font-size: 15px; color: var(--cream); letter-spacing: 2px; margin-bottom: 6px; }
.bus-box .box-desc { font-size: 13px; color: var(--dim); line-height: 1.7; }
.bus-box .box-route { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: 1px; }

/* ─── 15. UTILITIES ─── */
.rule-list .rule { font-size: 14px; color: var(--dim); padding: 6px 0; line-height: 1.7; border-bottom: 1px solid rgba(42,40,56,.5); }
.rule-list .rule:last-child { border-bottom: none; }
.rule .num { font-family: var(--f-mono); color: var(--muted); margin-right: 10px; font-size: 12px; }
.rule strong { color: var(--text); font-weight: 500; }
.rule em { color: var(--gold); }

.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ref-box { padding: 20px; background: var(--s2); border: 1px solid var(--border); border-radius: var(--r); }
.ref-box .ref-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; }
.ref-item { font-size: 13px; color: var(--dim); padding: 5px 0; line-height: 1.6; border-bottom: 1px solid rgba(42,40,56,.4); }
.ref-item:last-child { border-bottom: none; }
.ref-item span { color: var(--text); font-weight: 500; }

.fe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.fe-item { padding: 12px; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); }
.fe-item .fe-name { font-family: var(--f-mono); font-size: 12px; color: var(--text); letter-spacing: 1px; margin-bottom: 4px; }
.fe-item .fe-detail { font-size: 12px; color: var(--muted); line-height: 1.5; }

.depth-row { display: grid; grid-template-columns: 80px 1fr 220px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(42,40,56,.4); }
.depth-row:last-child { border-bottom: none; }
.depth-pct { font-family: var(--f-mono); font-size: 16px; font-weight: 700; text-align: right; }
.depth-bar-wrap { position: relative; height: 20px; }
.depth-bar { position: absolute; top: 0; left: 0; height: 100%; border-radius: 2px; opacity: .6; }
.depth-label { font-size: 13px; color: var(--dim); line-height: 1.5; }

.layer-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(42,40,56,.4); }
.layer-row:last-child { border-bottom: none; }
.layer-name { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 1px; }
.layer-desc { font-size: 13px; color: var(--dim); line-height: 1.7; }
.layer-desc strong { color: var(--text); }

/* Narrative */
.narrative { font-size: 14px; color: var(--dim); line-height: 1.9; }
.motto { font-family: var(--f-display); font-size: 16px; color: var(--gold); font-style: italic; line-height: 1.9; margin-top: 16px; }

/* ─── 16. FOOTER ─── */
.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  margin-top: var(--gap-xl);
}
.footer-text {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

/* ─── 17. RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .bus-row { grid-template-columns: 60px 140px 90px 1fr; font-size: 12px; }
  .bus-row-hdr { grid-template-columns: 60px 140px 90px 1fr; }
  .room-header { grid-template-columns: 40px 1fr; }
  .room-preset { display: none; }
}

@media (max-width: 768px) {
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--s1); border-bottom: 1px solid var(--border); padding: 8px 16px; gap: 4px; }
  .nav-toggle { display: block; }

  .hero { padding: var(--gap-lg) 16px; }
  .wrap, .wrap-sm, .wrap-grid { padding: 0 16px; }

  .grid-3, .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .ref-grid, .frrr-grid, .room-detail-grid { grid-template-columns: 1fr; }

  .tabs { gap: 2px; }
  .tabs button { padding: 6px 10px; font-size: 10px; letter-spacing: 1px; }

  .spatial-grid { max-width: 100%; }
  .g-cell { min-height: 60px; padding: 6px 2px; }
  .g-cell .cl { font-size: 8px; }

  .bus-row { grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px 14px; }
  .bus-row-hdr { display: none; }
  .bus-num { text-align: left; }

  .depth-row { grid-template-columns: 60px 1fr; }
  .depth-row .depth-bar-wrap { display: none; }

  .layer-row { grid-template-columns: 1fr; gap: 6px; }
  .vrow { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 480px) {
  .grid-3, .grid-cards, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .nav-title { font-size: 15px; }
  .tabs button { padding: 5px 8px; font-size: 9px; }
  .room-header { padding: 14px 16px; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade { animation: fadeUp .4s ease both; }
.fade-1 { animation-delay: .05s; }
.fade-2 { animation-delay: .1s; }
.fade-3 { animation-delay: .15s; }
.fade-4 { animation-delay: .2s; }
.fade-5 { animation-delay: .25s; }
.fade-6 { animation-delay: .3s; }

/* ─── PRINT ─── */
@media print {
  body { background: #fff; color: #000; }
  .nav, .footer, .tabs { display: none; }
  .card, .section, .bus-box { border-color: #ccc; background: #fff; }
}
