/* Premium Swiss-Museum / Cyberpunk-Telemetry Design System */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&family=VT323&family=Caveat:wght@400;700&display=swap');

:root {
  --bg-color: #0B0B0A;
  --panel-bg: #121211;
  --card-bg: #1A1A18;
  --card-bg-light: #262622;
  --border-color: #3C3C36;  /* Brighter Bauhaus drafting line border */
  --border-focus: #55554B;
  --text-main: #E9E7E2;
  --text-muted: #8A8880;
  --text-dark: #6E6E66;
  --accent-yellow: #D9A036; /* Bauhaus Yellow */
  --accent-coral: #C83E2D;  /* Bauhaus Red */
  --accent-cyan: #2B4C7E;   /* Bauhaus Blue */
  --accent-lime: #C83E2D;   /* Bauhaus Red */
  --accent-purple: #2B4C7E; /* Bauhaus Blue */
  --accent-teal: #D9A036;   /* Bauhaus Yellow */
  --accent-green: #2B4C7E;  /* Bauhaus Blue */
  --font-display: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Selection */
::selection {
  background: var(--accent-yellow);
  color: #141410;
}

/* Animations */
@keyframes eb-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

@keyframes eb-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes eb-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in-out {
  0% { transform: translate(-50%, 20px) scale(0.95); opacity: 0; }
  10% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  90% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, 20px) scale(0.95); opacity: 0; }
}

/* Utilities */
.text-yellow { color: var(--accent-yellow); }
.text-coral { color: var(--accent-coral); }
.text-cyan { color: var(--accent-cyan); }
.text-lime { color: var(--accent-lime); }
.text-purple { color: var(--accent-purple); }
.text-teal { color: var(--accent-teal); }
.text-green { color: var(--accent-green); }

.bg-yellow { background-color: var(--accent-yellow); }
.bg-coral { background-color: var(--accent-coral); }
.bg-cyan { background-color: var(--accent-cyan); }
.bg-lime { background-color: var(--accent-lime); }
.bg-purple { background-color: var(--accent-purple); }
.bg-teal { background-color: var(--accent-teal); }
.bg-green { background-color: var(--accent-green); }

/* Layout Elements */
.portfolio-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  box-sizing: border-box;
}

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 36px;
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.top-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 3px;
  cursor: pointer;
}

.top-telemetry {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main); /* Off-white metadata label text */
}

#telemetry-time {
  color: #799787; /* Desaturated military-green */
  font-weight: 500;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8CE99A;
  animation: eb-pulse 2.4s ease-in-out infinite;
}

.eb-signature {
  color: var(--accent-yellow);
  font-weight: 600;
}

.cmd-palette-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  background: none;
  border: 1px solid var(--border-focus);
  border-radius: 5px;
  padding: 4px 9px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cmd-palette-btn:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

/* Hero Section */
.hero-section {
  display: flex;
  gap: 40px;
  padding: 24px 36px 18px 36px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.hero-main {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero-readout {
  width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border-focus);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  animation: eb-fade .6s ease both;
}

.readout-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.readout-split-grid {
  display: flex;
  gap: 22px;
}

.readout-list {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.readout-hud-status {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  border-left: 1px solid var(--border-color);
  padding-left: 18px;
  justify-content: center;
}

.hud-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.hud-label {
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hud-val {
  font-weight: 500;
}

.readout-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.readout-label {
  width: 70px;
  color: var(--text-muted);
}

.readout-bar-container {
  flex: 1;
  height: 7px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.readout-bar {
  height: 7px;
  border-radius: 3px;
  transform-origin: left;
  animation: eb-grow .9s cubic-bezier(.2,.8,.2,1) both;
}

/* Color schemes for readout values */
.readout-val {
  min-width: 42px;
  text-align: right;
}

/* Ticker Bar */
.ticker-tape {
  border-top: 1px solid rgba(220, 218, 212, 0.18); /* Muted off-white border */
  border-bottom: 1px solid rgba(220, 218, 212, 0.18);
  padding: 4px 0;
  overflow: hidden;
  user-select: none;
  background: #0E0E0D; /* Warm dark grey LED board casing - soft contrast */
  position: relative;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Green LED board transition */
.ticker-tape.ticker-green {
  border-top-color: rgba(43, 224, 21, 0.28);
  border-bottom-color: rgba(43, 224, 21, 0.28);
}

.ticker-inner {
  display: flex;
  width: max-content;
  animation: eb-marquee 48s linear infinite; /* Brisker pace for matrix readouts */
}

.ticker-inner:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-family: 'VT323', monospace; /* Classic DEC hardware terminal dot-matrix look */
  font-size: 16.5px;
  letter-spacing: 2px; /* LED grid dot spacing */
  color: #DCDAD4; /* Soft off-white LED character color */
  text-shadow: 0 0 2px rgba(220, 218, 212, 0.25); /* Diffused LED pixel glow */
  white-space: nowrap;
  padding-right: 56px;
  text-transform: uppercase; /* Stock ticker layout format */
  transition: color 0.4s, text-shadow 0.4s;
}

/* Green LED text transition */
.ticker-tape.ticker-green .ticker-item {
  color: #2BE015 !important;
  text-shadow: 0 0 3px rgba(43, 224, 21, 0.35);
}

.ticker-item b {
  color: #799787; /* Desaturated military green timestamp */
  text-shadow: 0 0 3px rgba(121, 151, 135, 0.35);
  transition: color 0.4s, text-shadow 0.4s;
}

.ticker-tape.ticker-green .ticker-item b {
  color: #00D152 !important;
  text-shadow: 0 0 3px rgba(0, 209, 82, 0.35);
}

/* Interactive Doors Grid */
.doors-section {
  flex: 1;
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--bg-color);
  min-height: 440px;
  overflow-x: hidden;
  box-sizing: border-box;
}

.door-wrapper {
  min-width: 58px;
  background: #191918;
  border: none;
  border-radius: 6px;
  display: flex;
  flex: 1; /* Evenly spaces and widths all cards in closed state */
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  position: relative;
  outline: none;
  color: var(--text-muted);
  transition: flex-grow 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s, box-shadow 0.45s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Motion with Purpose: Paper Flex Tilt on hover */
.door-wrapper:not(.door-active):hover {
  transform: perspective(800px) rotateY(-5deg) translateZ(8px);
  box-shadow: -8px 10px 24px rgba(0, 0, 0, 0.6);
  background: #20201e;
  color: var(--text-main);
}

.door-wrapper:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: -2px;
}

.door-wrapper.door-active {
  flex: 4.5 !important;
  min-width: 300px;
  color: var(--text-main);
  cursor: pointer;
  align-items: flex-start;
  padding: 0;
}

.door-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 10, 0.95) 0%, rgba(11, 11, 10, 0.3) 65%, transparent 100%);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.door-wrapper.door-active::before,
.door-wrapper:hover::before {
  opacity: 1;
}

.door-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.65; /* Slightly brighter base to feed saturation */
  filter: grayscale(1) contrast(1.15) brightness(0.48) saturate(1.0); /* Rich monochromatic depth */
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* Hover or active expands fully alive colors, kept darkened for text contrast */
.door-wrapper:hover .door-bg-image,
.door-wrapper.door-active .door-bg-image {
  opacity: 0.75;
  filter: grayscale(0) contrast(1.05) brightness(0.55) saturate(1.1);
  transform: scale(1.03);
}

.door-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: multiply; /* Color identity blend overlay */
  opacity: 0.88; /* Highly saturated color layer in closed mode */
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fades color overlays completely on hover */
.door-wrapper:hover .door-overlay,
.door-wrapper.door-active .door-overlay {
  opacity: 0;
}

/* Rhythmic color overlays for cabinet directories - Bauhaus 4-Color Repeat Deck */
.door-wrapper[data-room="engineering"] .door-overlay { background-color: #C83E2D; } /* Red */
.door-wrapper[data-room="artwork"] .door-overlay { background-color: #2B4C7E; }     /* Blue */
.door-wrapper[data-room="photography"] .door-overlay { background-color: #D9A036; } /* Yellow */
.door-wrapper[data-room="music"] .door-overlay { background-color: #1C1B1A; }       /* Charcoal */
.door-wrapper[data-room="writing"] .door-overlay { background-color: #C83E2D; }     /* Red */
.door-wrapper[data-room="experiments"] .door-overlay { background-color: #2B4C7E; } /* Blue */
.door-wrapper[data-room="contact"] .door-overlay { background-color: #D9A036; }     /* Yellow */
.door-wrapper[data-room="desk"] .door-overlay { background-color: #1C1B1A; }        /* Charcoal */

/* Physical folder card lip shadow lines */
.door-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.05); /* highlight lip */
  z-index: 4;
}

.door-wrapper:hover::after,
.door-wrapper.door-active::after {
  background: rgba(255, 255, 255, 0.15);
}

.door-num {
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.55); /* High-contrast white in default closed state */
  transition: color 0.3s;
}

.door-wrapper:hover .door-num,
.door-wrapper.door-active .door-num {
  color: var(--text-main);
}

.door-label-vertical {
  writing-mode: vertical-rl;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 3px; /* Generous letter spacing for Swiss typography alignment */
  font-family: var(--font-display);
  z-index: 3;
  color: rgba(255, 255, 255, 0.65); /* High-contrast white in default closed state */
  transition: color 0.3s;
  transition: color 0.3s;
}

.door-wrapper:hover .door-label-vertical {
  color: var(--text-main);
}

.door-indicator-bar {
  width: 12px;
  height: 12px; /* Bauhaus Square Indicator Flag */
  background: #33332A;
  z-index: 3;
  transition: background 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.door-wrapper:hover .door-indicator-bar,
.door-wrapper.door-active .door-indicator-bar {
  transform: rotate(45deg); /* Playful geometric rotation into diamonds */
}

/* Open room content details inside the door */
.door-content-open {
  position: absolute;
  left: 26px;
  top: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.35s ease;
  color: var(--text-main);
}

.door-active .door-content-open {
  opacity: 1;
  pointer-events: auto;
}

.door-status-badge {
  font-family: var(--font-mono);
  font-size: 12px;
}

.door-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 3.8vw, 50px);
  letter-spacing: -2px;
  line-height: 0.98;
}

.door-description {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.7;
}

.door-cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  width: fit-content;
}

/* Footer styling */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
}

.footer-keyhint {
  user-select: none;
}

.footer-keyhint span {
  border: 1px solid var(--border-focus);
  border-radius: 4px;
  padding: 2px 7px;
}

/* Fullscreen Room Detail Dialog */
.room-overlay-dialog {
  position: fixed;
  inset: 0;
  background: rgba(11,11,10,0.98);
  z-index: 90;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.room-overlay-dialog.active {
  opacity: 1;
  pointer-events: auto;
}

.room-overlay-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 36px 80px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-sizing: border-box;
}

.room-overlay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.room-header-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-num-badge {
  font-family: var(--font-mono);
  font-size: 12px;
}

.room-large-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 5.5vw, 80px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}

.room-large-blurb {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.8;
}

.room-close-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-focus);
  border-radius: 5px;
  padding: 6px 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.room-close-btn:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
}

/* .posters-grid and .poster-item replaced by Exhibition styles below */

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.photo-item {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #191918;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  cursor: zoom-in;
}

.photo-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #D8D6D0;
  border: 1px solid var(--border-focus);
  border-radius: 5px;
  padding: 7px 12px;
  cursor: default;
  transition: var(--transition-smooth);
}

.tech-chip:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  background: rgba(232, 255, 71, 0.03);
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 640px;
}

.contact-row-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.contact-row-link:hover {
  border-bottom-color: var(--accent-yellow);
  padding-left: 10px;
  padding-right: 10px;
  background: rgba(232, 255, 71, 0.02);
}

/* Non-clickable row (e.g. a channel not set up yet) */
.contact-row-link.is-inactive {
  cursor: default;
  opacity: 0.5;
}
.contact-row-link.is-inactive:hover {
  border-bottom-color: var(--border-color);
  padding-left: 4px;
  padding-right: 4px;
  background: transparent;
}
.contact-row-link.is-inactive:hover .link-label {
  color: var(--text-main);
}

.link-label {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  transition: var(--transition-smooth);
}

.contact-row-link:hover .link-label {
  color: var(--accent-yellow);
}

.link-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.room-footnote {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
  margin-top: 10px;
}

/* Command Palette Overlay */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,11,10,0.7);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 18vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.cmd-palette-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-dialog {
  width: 540px;
  max-width: 90vw;
  background: #151513;
  border: 1px solid var(--border-focus);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  overflow: hidden;
  box-sizing: border-box;
  animation: eb-fade .22s ease both;
}

.cmd-input {
  width: 100%;
  box-sizing: border-box;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  outline: none;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-main);
}

.cmd-results-list {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  box-sizing: border-box;
}

.cmd-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: none;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.cmd-row.selected {
  background: var(--accent-yellow);
  color: #141410;
  font-weight: 600;
}

.cmd-row-hint {
  opacity: 0.55;
  font-size: 11px;
}

.cmd-empty-state {
  padding: 16px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dark);
}

.cmd-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dark);
  display: flex;
  gap: 16px;
}

/* Toast System */
.toast-msg-container {
  position: fixed;
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  z-index: 120;
  pointer-events: none;
}

.toast-msg {
  background: var(--accent-yellow);
  color: #141410;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 7px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.55);
  margin-bottom: 34px;
  transform: translate(-50%, 20px);
  opacity: 0;
}

.toast-msg.animate {
  animation: toast-in-out 3s ease forwards;
}

/* Lightbox overlay for sizing up photos & posters */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,11,10,0.95);
  z-index: 105;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  border: 1px solid var(--border-focus);
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 30px 20px 20px 20px;
    gap: 30px;
  }
  
  .hero-heading {
    font-size: clamp(38px, 9vw, 56px);
  }
  
  .hero-readout {
    width: 100%;
  }

  .top-bar {
    padding: 14px 20px;
  }

  .footer-bar {
    padding: 14px 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-keyhint {
    display: none;
  }

  /* Structural transformation from horizontal doors to vertical stacked rooms */
  .doors-section {
    flex-direction: column;
    height: auto;
    min-height: auto;
    gap: 4px;
    padding: 4px;
  }

  .door-wrapper {
    flex: none;
    width: 100%;
    height: 60px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-width: unset;
  }

  .door-label-vertical {
    writing-mode: horizontal-tb;
    font-size: 16px;
  }

  .door-indicator-bar {
    width: 4px;
    height: 18px;
  }

  .door-wrapper.door-active {
    flex: none;
    height: 280px;
    width: 100%;
    min-width: unset;
    padding: 20px;
  }

  .door-content-open {
    left: 20px;
    top: 20px;
    bottom: 20px;
  }

  .door-title {
    font-size: 28px;
  }

  .door-description {
    font-size: 11px;
    max-width: 100%;
  }
  
  .room-overlay-container {
    padding: 30px 20px;
  }
}

/* ========================================================
   CRT RETRO TERMINAL SCANLINES & OVERLAY EFFECTS
   ======================================================== */
#crt-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.85;
}

body.crt-active #crt-overlay {
  display: block;
}

/* Ambient tube glow filter */
body.crt-active {
  animation: crt-flicker 0.15s infinite;
}

body.crt-active * {
  text-shadow: 0 0 2px rgba(110, 231, 220, 0.3) !important;
}

@keyframes crt-flicker {
  0% { opacity: 0.992; }
  50% { opacity: 1; }
  100% { opacity: 0.995; }
}

/* ========================================================
   INTERACTIVE GUITAR FRETS BOARD & SYNTHESIZER
   ======================================================== */
.guitar-board-wrapper {
  background: #111110;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.guitar-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chord-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--card-bg-light);
  color: var(--text-main);
  border: 1px solid var(--border-focus);
  border-radius: 5px;
  padding: 10px 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chord-btn:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

.chord-btn.active {
  background: var(--accent-lime);
  color: #141410;
  font-weight: 600;
  border-color: var(--accent-lime);
  box-shadow: 0 4px 14px rgba(180, 244, 97, 0.25);
}

.guitar-fretboard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #1e1b18;
  border: 2px solid #2e2620;
  border-left: 8px solid #000; /* Nut */
  border-radius: 4px;
  padding: 0;
  height: 120px;
  overflow: hidden;
  box-sizing: border-box;
}

.fretboard-string {
  flex: 1;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
}

.fretboard-string::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #5c5c56, #a8a8a2, #5c5c56);
  pointer-events: none;
}

/* String thicknesses */
.fretboard-string:nth-child(1)::before { height: 2px; }
.fretboard-string:nth-child(2)::before { height: 1.8px; }
.fretboard-string:nth-child(3)::before { height: 1.5px; }
.fretboard-string:nth-child(4)::before { height: 1.2px; }
.fretboard-string:nth-child(5)::before { height: 1px; }
.fretboard-string:nth-child(6)::before { height: 0.8px; }

/* Frets dividers */
.guitar-fretboard .fret-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #555;
  box-shadow: inset 1px 0 0 #000;
  pointer-events: none;
}

/* Guitar finger marker */
.finger-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-lime);
  color: #111;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -2px);
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  animation: eb-fade 0.25s ease both;
}

.fretboard-legend {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dark);
}

/* ========================================================
   INTERACTIVE RESUME TIMELINE Chronology
   ======================================================== */
.resume-timeline {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-top: 10px;
  position: relative;
  padding-left: 20px;
}

.resume-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
  padding-left: 20px;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--panel-bg);
  border: 2px solid var(--border-focus);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent-green);
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(130, 208, 111, 0.4);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  cursor: pointer;
}

.timeline-role {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-role {
  color: var(--accent-green);
}

.timeline-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-details {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 8px;
  max-width: 760px;
}

.timeline-details ul {
  padding-left: 18px;
  margin: 6px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ========================================================
   ENGINEERING DETAILED PROJECTS CARDS
   ======================================================== */
.project-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.proj-card {
  background: #111110;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.proj-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.proj-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.proj-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-main);
}

.proj-card-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 6px;
  background: rgba(110, 231, 220, 0.08);
  border: 1px solid rgba(110, 231, 220, 0.2);
  color: var(--accent-cyan);
  border-radius: 3px;
}

.proj-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.proj-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proj-tech-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-focus);
  color: var(--text-dark);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Architecture ASCII Flowchart inside detail */
.arch-diagram {
  background: #000;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #5effbc;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid rgba(110, 231, 220, 0.15);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.4;
  margin: 10px 0;
}

/* ========================================================
   MUSEUM EXHIBIT DETAIL PANEL & POSTER STORIES
   ======================================================== */
.exhibit-modal-layout {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 14px;
}

.exhibit-image-panel {
  flex: 1.1;
  min-width: 320px;
  background: #111110;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}

.exhibit-main-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.exhibit-main-img:hover {
  transform: scale(1.01);
}

.exhibit-detail-panel {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exhibit-meta-card {
  background: #111110;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exhibit-print-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-coral);
  letter-spacing: 1px;
}

.exhibit-story-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  margin: 0;
  color: var(--text-main);
}

.exhibit-story-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.exhibit-specs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border-top: 1px solid var(--border-focus);
  padding-top: 14px;
  color: var(--text-dark);
}

.exhibit-spec-row {
  display: flex;
  justify-content: space-between;
}

/* ========================================================
   LATENCY HEATMAP GRID & KAFKA TOPOLOGY EXHIBITS
   ======================================================== */
.eng-exhibit-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.eng-telemetry-box {
  flex: 1;
  min-width: 300px;
  background: #111110;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exhibit-box-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Heatmap Grid */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #1C1C1A;
  transition: background-color 0.5s ease;
}

/* Heatmap States */
.heatmap-cell.lat-low { background-color: #1b4b22; }  /* Deep green (0-5ms) */
.heatmap-cell.lat-ok { background-color: #2f853c; }   /* Light green (5-15ms) */
.heatmap-cell.lat-warn { background-color: #d97706; } /* Orange (15-50ms) */
.heatmap-cell.lat-crit { background-color: #b91c1c; } /* Red (>50ms) */

/* Kafka Topology */
.topology-map {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
}

.topo-node {
  border: 1px solid var(--border-focus);
  border-radius: 4px;
  padding: 8px 12px;
  background: var(--card-bg);
  text-align: center;
  min-width: 78px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.topo-node.active {
  border-color: var(--accent-cyan);
  color: var(--text-main);
  box-shadow: 0 0 8px rgba(110, 231, 220, 0.15);
}

.topo-arrow {
  flex: 1;
  height: 2px;
  background: var(--border-focus);
  position: relative;
  margin: 0 8px;
}

.topo-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--border-focus);
}

.topo-arrow.active::after {
  border-left-color: var(--accent-cyan);
}

.topo-pulse {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  top: -2px;
  left: 0;
  opacity: 0;
}

.topo-arrow.active .topo-pulse {
  animation: topo-pulse-flow 2s infinite linear;
}

@keyframes topo-pulse-flow {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ========================================================
   WORKBENCH DESK GRID & NOW WORKSTATION
   ======================================================== */
.desk-split-layout {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.desk-col {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desk-widget-card {
  background: #111110;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.desk-widget-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dark);
  letter-spacing: 1px;
}

.desk-obsessions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.obsession-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-focus);
  padding-bottom: 8px;
}

.obsession-header {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.obsession-detail {
  font-weight: 500;
  font-size: 14px;
  text-align: right;
}

.desk-songs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.desk-song-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-focus);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.desk-song-row:hover {
  border-color: var(--accent-yellow);
}

.song-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-title {
  font-weight: 700;
  font-size: 13.5px;
}

.song-artist {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.song-status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 6px;
  background: rgba(232, 255, 71, 0.08);
  border: 1px solid rgba(232, 255, 71, 0.2);
  color: var(--accent-yellow);
  border-radius: 3px;
}

/* Sound bars visualizer */
.now-playing-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  width: 18px;
}

.now-playing-bar {
  width: 3px;
  height: 100%;
  background: var(--accent-yellow);
  animation: audio-bounce 0.8s infinite alternate ease-in-out;
  transform-origin: bottom;
}

.now-playing-bar:nth-child(2) { animation-delay: 0.25s; }
.now-playing-bar:nth-child(3) { animation-delay: 0.1s; }

@keyframes audio-bounce {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

/* ========================================================
   GLOBAL BAUHAUS STYLE OVERRIDES (FORM FOLLOWS FUNCTION)
   ======================================================== */
/* Strip rounded corners from boxy blocks (keep circles/pills for icons) */
.hero-readout, .proj-card, .essay, .widget-card, .cmd-palette, .cmd-row,
.tech-chip, .proj-tech-tag, .door-status-badge, .door-wrapper, .door-indicator-bar,
.toast-msg, #lightbox-img, .guitar-board-wrapper, .guitar-fretboard, .guitar-controls button,
.contact-row-link, .resume-timeline::before, .timeline-item, .exhibit-meta-card, .heatmap-cell,
.exhibit-specs-list, .now-playing-visualizer, .song-status-badge, .obsession-row,
input, textarea, button, select {
  border-radius: 0 !important;
}

/* Thicker blueprint drafting borders for layout containers */
.hero-readout, .proj-card, .essay, .widget-card, .cmd-palette, .contact-row-link, .exhibit-meta-card,
.guitar-board-wrapper, .guitar-fretboard, .exhibit-specs-list {
  border-width: 2px !important;
}

.top-bar {
  border-bottom-width: 2px !important;
}
.chord-btn {
  border-width: 2px !important;
  border-radius: 0 !important;
}

/* ========================================================
   MUSIC SECTION REDESIGN: PRACTICE NOTEBOOK
   ======================================================== */
.music-notebook-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  width: 100%;
  margin-top: 15px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .music-notebook-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Left Column: Cozy Workspace Frame */
.music-workspace-visual {
  position: relative;
  border: 2px solid var(--border-color);
  background: #090909;
  overflow: hidden;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-workspace-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: sepia(0.08) contrast(1.05) brightness(0.92);
  transition: var(--transition-smooth);
}

.music-workspace-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 11, 10, 0.75) 100%),
              radial-gradient(circle at center, rgba(200, 90, 23, 0.08) 0%, transparent 80%);
  z-index: 2;
  pointer-events: none;
}

/* Subtle Animated Canvas Overlays (Dust and Waveforms) */
.dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.music-visual-overlay-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}

.music-visual-tag {
  color: #C85A17; /* Burnt Orange */
  font-weight: 600;
}

/* Right Column: Notebook Dashboard */
.music-dashboard {
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
}

.notebook-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notebook-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #C85A17; /* Burnt Orange */
  text-transform: uppercase;
  border-bottom: 1px solid rgba(200, 90, 23, 0.15);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

/* Focus Chips Row */
.focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-chip {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 6px 14px;
  background: #151514;
  border: 1px solid rgba(200, 90, 23, 0.25);
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.focus-chip:hover {
  border-color: #D9A036; /* Amber */
  background: #1A1A18;
}

/* Songs in Progress Grid */
.songs-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.song-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-smooth);
}

.song-row:hover .song-title {
  color: #D9A036; /* Amber */
}

.song-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-main);
}

.song-title {
  font-weight: 500;
  transition: color 0.3s;
}

.song-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.song-bar-container {
  width: 100%;
  height: 4px;
  background: #1A1A18;
  position: relative;
  overflow: hidden;
}

.song-bar-fill {
  height: 100%;
  background: #C85A17; /* Burnt Orange */
  width: 0; /* Animate on load */
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.song-bar-fill.completed {
  background: #799787; /* Desaturated Green */
}

/* Minimal Stats Grid */
.music-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.music-stat-card {
  background: #111110;
  border: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.music-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.music-stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

/* Learning Timeline */
.music-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}

.music-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(200, 90, 23, 0.2);
}

.music-timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.music-timeline-step::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: #121211;
  border: 1px solid #C85A17;
  transition: var(--transition-smooth);
}

.music-timeline-step:hover::before {
  background: #C85A17;
  transform: rotate(45deg);
}

.music-timeline-period {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #C85A17; /* Burnt Orange */
}

.music-timeline-details {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Practice Journal Card */
.journal-notebook-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.journal-paper-card {
  position: relative;
  background: #141413;
  border-left: 3px solid #C85A17; /* Copper spine indicator */
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  padding: 24px 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Lined notebook paper simulation */
.journal-paper-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(200, 90, 23, 0.04) 1px, transparent 1px);
  background-size: 100% 26px;
  pointer-events: none;
  z-index: 1;
}

.journal-entry-block {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.journal-entry-block:last-child {
  margin-bottom: 0;
}

.journal-entry-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.journal-entry-text {
  font-family: 'Caveat', cursive; /* Warm handwritten notes */
  font-size: 20px;
  line-height: 1.35;
  color: #E2DFD9;
  letter-spacing: 0.5px;
}

.journal-entry-cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: #D9A036; /* Amber cursor */
  margin-left: 4px;
  animation: cursor-blink 1s steps(2, start) infinite;
  vertical-align: middle;
}

@keyframes cursor-blink {
  to { visibility: hidden; }
}

/* Gear Section */
.gear-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gear-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #111110;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.gear-row:hover {
  border-color: rgba(200, 90, 23, 0.4);
}

.gear-name {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
}

.gear-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}



/* =====================================================================
   THE POSTER PROJECT — EXHIBITION REDESIGN
   Phase 1 Intro · Phase 2 Gallery+Sidebar · Phase 3 Poster Detail
   ===================================================================== */

/* --- Immersive mode: hide the standard room header text + footnote,
       keep the close button reachable top-right --- */
.room-overlay-dialog.artwork-mode .room-header-left,
.room-overlay-dialog.artwork-mode .room-footnote {
  display: none;
}
.room-overlay-dialog.artwork-mode .room-overlay-header {
  justify-content: flex-end;
  min-height: 0;
}
.room-overlay-dialog.artwork-mode .room-overlay-container {
  padding-top: 22px;
  gap: 0;
}

/* Shared paper-grain noise, self-contained data-URI (no external assets) */
.exhibition-intro::before,
.exhibition-poster::after,
.poster-detail-image::after {
  content: "";
  position: absolute;
  inset: 0;
  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.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.06;
  z-index: 2;
}

/* ============ PHASE 1 — Exhibition Intro ============ */
.exhibition-intro {
  position: relative;
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, #161513 0%, var(--bg-color) 70%);
  overflow: hidden;
}
.exhibition-intro.is-leaving {
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.exhibition-intro-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 24px;
}
.intro-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dark);
}
.intro-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.02;
  margin: 0;
}
.intro-progress {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--accent-yellow);
  letter-spacing: 0.14em;
}
.intro-years {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.intro-manifesto {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  font-style: italic;
  line-height: 1.85;
  color: var(--text-muted);
}
.intro-enter-btn {
  margin-top: 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 8px 20px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.intro-enter-btn span:last-child {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-focus);
  transition: border-color 0.25s ease;
}
.intro-enter-arrow {
  font-size: 18px;
  color: var(--accent-coral);
  animation: intro-bounce 1.8s ease-in-out infinite;
}
.intro-enter-btn:hover { color: var(--accent-yellow); transform: translateY(-2px); }
.intro-enter-btn:hover span:last-child { border-color: var(--accent-yellow); }
@keyframes intro-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Staggered fade-in of each intro line */
.exhibition-intro .fade-line {
  opacity: 0;
  transform: translateY(14px);
  animation: intro-fade 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.exhibition-intro .fade-line:nth-child(1) { animation-delay: 0.10s; }
.exhibition-intro .fade-line:nth-child(2) { animation-delay: 0.24s; }
.exhibition-intro .fade-line:nth-child(3) { animation-delay: 0.38s; }
.exhibition-intro .fade-line:nth-child(4) { animation-delay: 0.50s; }
.exhibition-intro .fade-line:nth-child(5) { animation-delay: 0.64s; }
.exhibition-intro .fade-line:nth-child(6) { animation-delay: 0.86s; }
@keyframes intro-fade {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ PHASE 2 — Gallery + Sidebar ============ */
.exhibition-body {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  animation: intro-fade 0.5s ease forwards;
}

/* Sidebar: sticky column that does NOT scroll with the gallery */
.exhibition-sidebar {
  position: sticky;
  top: 24px;
  flex: 0 0 236px;
  width: 236px;
  align-self: flex-start;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-right: 6px;
}
.sidebar-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-main);
  font-variant: small-caps;
}
.sidebar-progress-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.sidebar-progress-track {
  height: 4px;
  background: var(--card-bg-light);
  border-radius: 2px;
  overflow: hidden;
}
.sidebar-progress-bar {
  height: 100%;
  background: #C0592B; /* burnt orange */
  border-radius: 2px;
}
.sidebar-philosophy {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}
.sidebar-filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.sidebar-years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar-year-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 3px;
  transition: color 0.2s ease, background 0.2s ease;
}
.sidebar-year-btn:hover { color: var(--text-main); }
.sidebar-year-btn.active {
  color: var(--bg-color);
  background: var(--accent-yellow);
  font-weight: 600;
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sidebar-tag-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}
.sidebar-tag-chip:hover { border-color: var(--border-focus); color: var(--text-main); }
.sidebar-tag-chip.active {
  border-color: #C0592B;
  color: #E9B08A;
  background: rgba(192, 89, 43, 0.14);
}

/* Asymmetric 12-column gallery */
.exhibition-gallery {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 108px;
  grid-auto-flow: dense;
  gap: 20px;
}
.exhibition-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #191817;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(120, 80, 40, 0.08);
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease, opacity 0.5s ease;
}
.exhibition-poster.in-view { opacity: 1; transform: translateY(0); }
.exhibition-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.exhibition-poster:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(200, 120, 60, 0.14);
}
.exhibition-poster.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}
.poster-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(8,8,7,0.88), rgba(8,8,7,0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.exhibition-poster:hover .poster-caption { opacity: 1; transform: translateY(0); }
.poster-caption-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
}
.poster-caption-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-yellow);
}

/* Size classes on the 12-col grid */
.exhibition-poster.size-featured { grid-column: span 8; grid-row: span 4; }
.exhibition-poster.size-large    { grid-column: span 6; grid-row: span 3; }
.exhibition-poster.size-medium   { grid-column: span 4; grid-row: span 3; }
.exhibition-poster.size-small    { grid-column: span 3; grid-row: span 2; }

/* ============ PHASE 3 — Poster Detail / Notebook ============ */
.poster-detail {
  animation: intro-fade 0.45s ease forwards;
}
.poster-detail-back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 16px;
  margin-bottom: 28px;
  border-radius: 3px;
  transition: var(--transition-smooth);
}
.poster-detail-back:hover {
  color: var(--accent-coral);
  border-color: var(--accent-coral);
}
.poster-detail-layout {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 44px;
  align-items: start;
}
.poster-detail-image {
  position: relative;
  overflow: hidden;
  background: #141312;
}
.poster-detail-image img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.6));
}
.poster-notebook {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}
.notebook-id {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-yellow);
}
.notebook-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 4px 0 22px;
  line-height: 1.05;
}
.notebook-fields {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}
.notebook-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.notebook-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  flex: 0 0 auto;
}
.notebook-val {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-main);
  text-align: right;
}
.notebook-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 26px 0 12px;
}
.poster-artist-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}
.poster-creative-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.015);
  border-left: 2px solid #C0592B;
}
.creative-note {
  font-family: 'Segoe Script', 'Bradley Hand', 'Snell Roundhand', cursive;
  font-size: 16px;
  color: #C7B89A;
  line-height: 1.4;
}
.creative-note::before { content: "“"; }
.creative-note::after { content: "”"; }

/* Process timeline (only rendered when process data exists) */
.poster-process-timeline { margin-top: 44px; }
.process-track {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.process-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 140px;
}
.process-step img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  background: #191817;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.process-step-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.process-arrow { color: var(--text-dark); flex: 0 0 auto; }

/* Continue Exploring */
.continue-exploring {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}
.continue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.continue-poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  background: #191817;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.continue-poster img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.continue-poster:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55); }
.continue-poster figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
}
.continue-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
}
.continue-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-yellow);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .exhibition-poster.size-featured { grid-column: span 12; grid-row: span 4; }
  .exhibition-poster.size-large    { grid-column: span 7; grid-row: span 3; }
  .exhibition-poster.size-medium   { grid-column: span 5; grid-row: span 3; }
  .exhibition-poster.size-small    { grid-column: span 5; grid-row: span 2; }
  .poster-detail-layout { grid-template-columns: 1fr; gap: 28px; }
  .poster-detail-image img { max-height: 60vh; }
}

@media (max-width: 768px) {
  /* Sidebar collapses into a horizontal filter bar at the top */
  .exhibition-body { flex-direction: column; gap: 22px; }
  .exhibition-sidebar {
    position: static;
    width: 100%;
    flex: 1 1 auto;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
  }
  .sidebar-philosophy { display: none; }
  .sidebar-filter-label { margin-bottom: 6px; }
  .exhibition-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 132px;
    gap: 12px;
  }
  .exhibition-poster.size-featured { grid-column: span 2; grid-row: span 2; }
  .exhibition-poster.size-large    { grid-column: span 2; grid-row: span 2; }
  .exhibition-poster.size-medium   { grid-column: span 1; grid-row: span 2; }
  .exhibition-poster.size-small    { grid-column: span 1; grid-row: span 1; }
  .poster-caption { opacity: 1; transform: none; }
  .continue-grid { grid-template-columns: 1fr; }
  .intro-manifesto { line-height: 1.7; }
}
