/* ==========================================================================
   YASH NAIK // DUAL-REALITY PORTFOLIO ENGINE
   NO AI PURPLE/PINK GRADIENTS. PURE PRIMARY BAUHAUS & TACTICAL TELEMETRY.
   Palette: Signal Vermilion (#FF2A00), Klein Cobalt (#0038FF),
            Industrial Yellow (#FFD600), Archival Bone (#F4F0EA),
            Carbon Obsidian (#090A0F)
   ========================================================================== */

:root {
  /* Core Primary Accents */
  --red: #FF2A00;
  --red-bright: #FF3B14;
  --blue: #0038FF;
  --blue-bright: #295BFF;
  --yellow: #FFD600;
  --yellow-warm: #FFCC00;
  --green-signal: #00E676;
  --white-pure: #FFFFFF;
  --black-pure: #090A0F;

  /* Default: LIGHT MODE — "01 // SWISS BAUHAUS ATELIER" */
  --bg: #F4F0EA;
  --bg-elevated: #FFFFFF;
  --bg-secondary: #EAE4DC;
  --bg-panel: #FFFFFF;
  --text: #0B0C10;
  --text-muted: #4A4D57;
  --border: #0B0C10;
  --border-subtle: rgba(11, 12, 16, 0.16);
  --shadow-hard: 6px 6px 0px #0B0C10;
  --shadow-hard-sm: 4px 4px 0px #0B0C10;
  --shadow-hard-red: 6px 6px 0px #FF2A00;
  --shadow-hard-blue: 6px 6px 0px #0038FF;
  --accent-primary: #FF2A00;
  --accent-secondary: #0038FF;
  --accent-tertiary: #FFD600;
  --grid-color: rgba(11, 12, 16, 0.07);
  --card-radius: 0px;
  --pill-radius: 0px;

  --font-display: 'Syne', 'Space Grotesk', sans-serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* DARK MODE — "02 // BLACKBOX TELEMETRY OS" */
body[data-mode="dark"] {
  --bg: #08090D;
  --bg-elevated: #10131C;
  --bg-secondary: #0D1017;
  --bg-panel: rgba(16, 19, 28, 0.92);
  --text: #F2F5FA;
  --text-muted: #8A94A6;
  --border: #262D40;
  --border-subtle: rgba(242, 245, 250, 0.1);
  --shadow-hard: 0 0 0 1px #262D40, 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-hard-sm: 0 0 0 1px #262D40, 0 8px 20px rgba(0, 0, 0, 0.5);
  --shadow-hard-red: 0 0 0 1px #FF2A00, 0 0 28px rgba(255, 42, 0, 0.25);
  --shadow-hard-blue: 0 0 0 1px #295BFF, 0 0 28px rgba(41, 91, 255, 0.28);
  --accent-primary: #FFD600;
  --accent-secondary: #295BFF;
  --accent-tertiary: #FF2A00;
  --grid-color: rgba(41, 91, 255, 0.09);
  --card-radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* --header-h is measured from the live header in app.js */
  scroll-padding-top: calc(var(--header-h, 186px) + 12px);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.5;
  transition: background-color 0.45s var(--ease-out-expo), color 0.35s ease;
  position: relative;
}

/* ==========================================================================
   BACKGROUND ARCHITECTURAL GRID & INTERACTIVE CANVAS
   ========================================================================== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
}

body.blueprint-active .bg-grid {
  background-image:
    linear-gradient(to right, rgba(0, 56, 255, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 56, 255, 0.18) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 42, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 42, 0, 0.08) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
}

#reality-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Stamps sit above page content (below the header) so they stay visible on cards and panels. */
#stamp-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 400;
  pointer-events: none;
}

body.stamp-mode-active main,
body.stamp-mode-active main * {
  cursor: crosshair;
}

/* Scanline overlay only in Dark Mode */
.telemetry-scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  transition: opacity 0.4s ease;
}

body[data-mode="dark"] .telemetry-scanlines {
  opacity: 0.45;
}

/* ==========================================================================
   CUSTOM TACTICAL CURSOR & BLUEPRINT LOUPE
   ========================================================================== */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out-expo), height 0.2s var(--ease-out-expo);
}

.cursor-reticle {
  width: 28px;
  height: 28px;
  border: 2px solid var(--red);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-out-expo), border-color 0.2s, background-color 0.2s;
}

body[data-mode="dark"] .cursor-reticle {
  border-color: var(--yellow);
  border-radius: 50%;
}

.cursor-reticle::before,
.cursor-reticle::after {
  content: '';
  position: absolute;
  background: var(--red);
}

body[data-mode="dark"] .cursor-reticle::before,
body[data-mode="dark"] .cursor-reticle::after {
  background: var(--yellow);
}

.cursor-reticle::before {
  width: 10px;
  height: 2px;
}

.cursor-reticle::after {
  width: 2px;
  height: 10px;
}

body.cursor-hover .cursor-reticle {
  transform: scale(1.65) rotate(45deg);
  background: rgba(255, 42, 0, 0.12);
  border-color: var(--blue);
}

body[data-mode="dark"].cursor-hover .cursor-reticle {
  background: rgba(255, 214, 0, 0.14);
  border-color: var(--red);
}

.cursor-coords {
  position: absolute;
  left: 34px;
  top: -4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--text);
  color: var(--bg);
  padding: 2px 6px;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

/* Blueprint Redline Inspector Overlay (Light Mode Exclusive Feature) */
#blueprint-inspector-box {
  position: fixed;
  z-index: 9990;
  pointer-events: none;
  border: 1.5px dashed var(--blue);
  background: rgba(0, 56, 255, 0.04);
  display: none;
  transition: all 0.08s linear;
}

body.blueprint-active #blueprint-inspector-box {
  display: block;
}

.inspector-tag {
  position: absolute;
  top: -22px;
  left: -1px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  white-space: nowrap;
}

/* ==========================================================================
   REALITY SHIFT SHUTTER TRANSITION OVERLAY
   ========================================================================== */
.reality-shutter {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.shutter-panel {
  background: var(--text);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.42s cubic-bezier(0.77, 0, 0.18, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shutter-panel:nth-child(1) { background: var(--red); transition-delay: 0s; }
.shutter-panel:nth-child(2) { background: var(--blue); transition-delay: 0.04s; }
.shutter-panel:nth-child(3) { background: var(--yellow); transition-delay: 0.08s; }
.shutter-panel:nth-child(4) { background: #090A0F; transition-delay: 0.12s; }

.reality-shutter.active .shutter-panel {
  transform: scaleY(1);
}

.shutter-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  transform: rotate(-90deg);
  white-space: nowrap;
}

.shutter-panel:nth-child(3) .shutter-label {
  color: #090A0F;
}

/* ==========================================================================
   TOP TACTICAL HUD & REALITY SWITCHER BAR
   ========================================================================== */
.hud-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.hud-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(16px, 3vw, 40px);
  gap: 16px;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  border: 2px solid var(--border);
  background: var(--yellow);
  color: #090A0F;
  padding: 4px 12px;
  box-shadow: 3px 3px 0px var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-mark:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--blue);
}

.brand-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green-signal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.25);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

/* CENTERPIECE: DUAL-REALITY SWITCHER */
.reality-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  padding: 3px;
  gap: 4px;
  box-shadow: var(--shadow-hard-sm);
}

.mode-pill {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.22s ease;
}

.mode-pill .mode-label-short {
  display: none;
}

.mode-pill .mode-swatch {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 1.5px solid currentColor;
}

.mode-pill[data-target-mode="light"] .mode-swatch {
  background: var(--red);
}

.mode-pill[data-target-mode="dark"] .mode-swatch {
  background: var(--blue-bright);
}

body[data-mode="light"] .mode-pill[data-target-mode="light"] {
  background: var(--red);
  color: #FFFFFF;
}

body[data-mode="dark"] .mode-pill[data-target-mode="dark"] {
  background: var(--blue-bright);
  color: #FFFFFF;
}

/* Navigation & Sound/Terminal Controls */
.hud-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: 6px 11px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.hud-link:hover, .hud-link.active {
  border-color: var(--border);
  background: var(--yellow);
  color: #090A0F;
}

.hud-action-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, background-color 0.15s;
}

.hud-action-btn:hover {
  transform: translate(-2px, -2px);
  background: var(--yellow);
  color: #090A0F;
}

/* EXCLUSIVE MODE FEATURE SUB-BAR */
.mode-feature-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-badge-tag {
  padding: 2px 8px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
}

body[data-mode="dark"] .mode-badge-tag {
  background: var(--blue-bright);
  color: #fff;
}

.exclusive-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  transition: all 0.18s;
}

.tool-chip:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}

.tool-chip.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

body[data-mode="dark"] .tool-chip.active {
  background: var(--yellow);
  color: #090A0F;
  border-color: var(--yellow);
}

/* Hide dark tools in light mode & vice versa */
body[data-mode="light"] .dark-only-tool {
  display: none !important;
}
body[data-mode="dark"] .light-only-tool {
  display: none !important;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT & HERO STAGE
   ========================================================================== */
main {
  position: relative;
  z-index: 5;
  padding-top: var(--header-h, 186px);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.hero-section {
  min-height: calc(100vh - var(--header-h, 186px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vh, 56px) 0 48px;
  position: relative;
}

.hero-bento {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

/* Left Hero Column: Kinetic Poster Typography */
.hero-poster {
  border: 2px solid var(--border);
  background: var(--bg-panel);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-hard);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Corner registration marks */
.reg-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--red);
  border-style: solid;
  pointer-events: none;
}
.reg-mark.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.reg-mark.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.reg-mark.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.reg-mark.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.poster-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.color-bars {
  display: flex;
  gap: 4px;
}
.color-bars span {
  width: 18px;
  height: 10px;
  border: 1px solid var(--border);
}
.color-bars .cb-red { background: var(--red); }
.color-bars .cb-blue { background: var(--blue); }
.color-bars .cb-yellow { background: var(--yellow); }
.color-bars .cb-white { background: #FFFFFF; }

.hero-kicker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.kicker-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1.5px solid var(--border);
}

.kicker-pill.red { background: var(--red); color: #fff; }
.kicker-pill.blue { background: var(--blue); color: #fff; }
.kicker-pill.yellow { background: var(--yellow); color: #090A0F; }

.hero-display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7.8vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 6px 0 20px;
  position: relative;
  user-select: none;
}

.hero-display-title .word-yash {
  display: block;
  color: var(--text);
  text-shadow: 4px 4px 0px var(--red);
  transition: transform 0.2s ease;
}

.hero-display-title .word-naik {
  display: block;
  color: var(--blue);
  -webkit-text-stroke: 2px var(--border);
  text-shadow: 5px 5px 0px var(--yellow);
  margin-left: 0.08em;
}

body[data-mode="dark"] .hero-display-title .word-naik {
  color: var(--yellow);
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: 5px 5px 0px var(--blue-bright);
}

.hero-manifesto-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  padding: 10px 18px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  box-shadow: 5px 5px 0px var(--red);
}

.hero-lead-copy {
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  color: var(--text);
  max-width: 58ch;
  margin-bottom: 14px;
  font-weight: 500;
}

.hero-sub-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.brutal-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border: 2px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.18s var(--ease-out-expo), box-shadow 0.18s var(--ease-out-expo), background-color 0.18s;
}

.brutal-btn.primary {
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 5px 5px 0px var(--border);
}

body[data-mode="dark"] .brutal-btn.primary {
  background: var(--yellow);
  color: #090A0F;
  border-color: var(--yellow);
  box-shadow: 5px 5px 0px var(--red);
}

.brutal-btn.primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--blue);
}

.brutal-btn.secondary {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 5px 5px 0px var(--border);
}

.brutal-btn.secondary:hover {
  background: var(--blue);
  color: #FFFFFF;
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--yellow);
}

/* ==========================================================================
   RIGHT HERO COLUMN: DUAL-REALITY INTERACTIVE DECK
   (Morphs completely between Light Atelier Board & Dark Telemetry Deck)
   ========================================================================== */
.hero-interactive-deck {
  border: 2px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 2px solid var(--border);
  background: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

body[data-mode="dark"] .deck-header {
  background: #131826;
  border-bottom-color: var(--blue-bright);
  color: var(--yellow);
}

.deck-window-dots {
  display: flex;
  gap: 6px;
}
.deck-window-dots span {
  width: 11px;
  height: 11px;
  border: 1.5px solid #fff;
}
.deck-window-dots span:nth-child(1) { background: var(--red); }
.deck-window-dots span:nth-child(2) { background: var(--yellow); }
.deck-window-dots span:nth-child(3) { background: var(--green-signal); }

/* LIGHT MODE HERO WIDGET: TACTILE STUDIO SYNTHESIZER & FIELD KIT */
.light-deck-view {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

body[data-mode="dark"] .light-deck-view {
  display: none;
}

/* The stat grid absorbs spare height so the deck matches the poster without empty gaps. */
.field-kit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
  flex: 1;
}

.kit-stat-card {
  border: 2px solid var(--border);
  padding: 14px;
  position: relative;
  background: var(--bg);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.kit-stat-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0px var(--border);
}

.kit-stat-card.accent-red { background: var(--red); color: #fff; }
.kit-stat-card.accent-yellow { background: var(--yellow); color: #090A0F; }
.kit-stat-card.accent-blue { background: var(--blue); color: #fff; }
.kit-stat-card.accent-white { background: #FFFFFF; color: #090A0F; }

.kit-stat-num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.kit-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

/* Interactive Color & Vibe Mixer inside Light Hero */
.studio-mixer-box {
  border: 2px solid var(--border);
  background: #FFFFFF;
  color: #090A0F;
  padding: 16px;
}

.mixer-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stamp-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stamp-select-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 6px 10px;
  border: 2px solid #090A0F;
  background: var(--bg);
  color: #090A0F;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
}

.stamp-select-btn:hover,
.stamp-select-btn.selected {
  background: var(--red);
  color: #fff;
  box-shadow: 3px 3px 0px #090A0F;
}

/* Interactive Domain Rotary / Focus Selector */
.domain-selector-box {
  border: 2px solid var(--border);
  background: var(--bg);
  padding: 14px;
}

.domain-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.domain-tab {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 4px 9px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: #090A0F;
  cursor: pointer;
  text-transform: uppercase;
}

.domain-tab.active {
  background: var(--blue);
  color: #fff;
}

.domain-readout {
  font-size: 0.82rem;
  color: var(--text);
  min-height: 3.1em;
}

/* DARK MODE HERO WIDGET: TACTICAL ORBITAL RADAR & NODE TELEMETRY */
.dark-deck-view {
  display: none;
  padding: 18px;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

body[data-mode="dark"] .dark-deck-view {
  display: flex;
}

.radar-screen-wrap {
  position: relative;
  border: 1px solid var(--blue-bright);
  background: radial-gradient(circle at center, rgba(0, 56, 255, 0.18), #05070B 75%);
  flex: 1;
  min-height: 240px;
  overflow: hidden;
}

#hero-radar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.radar-hud-overlay {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--yellow);
  text-transform: uppercase;
  z-index: 1;
}

.telemetry-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.telemetry-cell {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
}

.telemetry-cell .t-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--yellow);
}

.telemetry-cell .t-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.live-log-box {
  border: 1px solid var(--border);
  background: #050608;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #98A6BD;
  max-height: 92px;
  overflow: hidden;
}

.live-log-line {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-log-line b {
  color: var(--red);
}

/* ==========================================================================
   KINETIC MARQUEE TAPE
   ========================================================================== */
.kinetic-tape {
  margin-top: 32px;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  background: var(--yellow);
  color: #090A0F;
  padding: 10px 0;
  overflow: hidden;
  box-shadow: var(--shadow-hard-sm);
}

body[data-mode="dark"] .kinetic-tape {
  background: var(--red);
  color: #FFFFFF;
}

.tape-track {
  display: flex;
  width: max-content;
  animation: tapeScroll 26s linear infinite;
}

.tape-track:hover {
  animation-play-state: paused;
}

.tape-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tape-sep {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #090A0F;
  transform: rotate(45deg);
}

body[data-mode="dark"] .tape-sep {
  background: var(--yellow);
}

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

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-block {
  padding: clamp(36px, 4vw, 56px) 0;
  position: relative;
}

.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--border);
}

.section-index-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  background: var(--red);
  color: #FFFFFF;
  border: 2px solid var(--border);
  margin-bottom: 12px;
  box-shadow: 3px 3px 0px var(--border);
}

.section-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.section-main-title .highlight-blue {
  background: var(--blue);
  color: #FFFFFF;
  padding: 0 10px;
  display: inline-block;
}

.section-main-title .highlight-yellow {
  background: var(--yellow);
  color: #090A0F;
  padding: 0 10px;
  display: inline-block;
}

/* ==========================================================================
   MODE-EXCLUSIVE INTERACTIVE EXPERIENCE SECTION
   (Light: Architectural Blueprint & Sticker Studio | Dark: Live AI Simulators)
   ========================================================================== */
.mode-exclusive-showcase {
  border: 3px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.showcase-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}

/* LIGHT MODE EXCLUSIVE: BAUHAUS DESIGN & ARCHITECTURE STUDIO BOARD */
.light-exclusive-panel {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
}

body[data-mode="dark"] .light-exclusive-panel {
  display: none;
}

.atelier-copy h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.atelier-copy p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.atelier-canvas-wrap {
  border: 2px solid var(--border);
  background: #FFFFFF;
  position: relative;
  box-shadow: 6px 6px 0px var(--blue);
  overflow: hidden;
}

#atelier-sketchpad {
  width: 100%;
  height: 290px;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.sketchpad-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #F4F0EA;
  color: #090A0F;
  border-top: 2px solid #090A0F;
  padding: 8px 12px;
  flex-wrap: wrap;
}

.swatch-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ink-swatch {
  width: 24px;
  height: 24px;
  border: 2px solid #090A0F;
  cursor: pointer;
  transition: transform 0.15s;
}
.ink-swatch.active {
  transform: scale(1.2);
  outline: 2px solid #090A0F;
  outline-offset: 2px;
}

/* DARK MODE EXCLUSIVE: LIVE PROJECT TELEMETRY SIMULATOR DECK */
.dark-exclusive-panel {
  display: none;
  padding: 28px;
}

body[data-mode="dark"] .dark-exclusive-panel {
  display: block;
}

.sim-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.sim-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  background: #0B0E17;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.sim-tab-btn.active {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255, 42, 0, 0.35);
}

.sim-stage {
  display: none;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  border: 1px solid var(--border);
  background: #07090E;
  padding: 24px;
}

.sim-stage.active {
  display: grid;
}

.sim-controls h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--yellow);
  margin-bottom: 8px;
}

.sim-controls p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.control-group {
  margin-bottom: 16px;
}

.control-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text);
}

.sim-slider {
  width: 100%;
  accent-color: var(--red);
  cursor: pointer;
}

.sim-output-screen {
  border: 1px solid var(--blue-bright);
  background: #04060A;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
}

/* ==========================================================================
   THE 08 ARTIFACTS — PROJECTS EXHIBITION
   ========================================================================== */
.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}

.filter-btn.active {
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 3px 3px 0px var(--border);
}

body[data-mode="dark"] .filter-btn.active {
  background: var(--yellow);
  color: #090A0F;
  border-color: var(--yellow);
}

.view-layout-switch {
  display: flex;
  gap: 6px;
}

.layout-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 12px;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  text-transform: uppercase;
}

.layout-btn.active {
  background: var(--blue);
  color: #FFFFFF;
}

/* Projects Grid: Supports Bento Grid & Editorial Stack */
.artifacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.artifacts-grid.layout-list {
  grid-template-columns: 1fr;
}

.artifact-card {
  border: 2px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.artifacts-grid.layout-list .artifact-card {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
}

.artifact-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hard-red);
}

body[data-mode="dark"] .artifact-card:hover {
  box-shadow: var(--shadow-hard-blue);
}

.artifact-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 2px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.artifact-card[data-accent="red"] .artifact-top-strip { background: var(--red); color: #fff; }
.artifact-card[data-accent="blue"] .artifact-top-strip { background: var(--blue); color: #fff; }
.artifact-card[data-accent="yellow"] .artifact-top-strip { background: var(--yellow); color: #090A0F; }
.artifact-card[data-accent="ink"] .artifact-top-strip { background: #090A0F; color: #fff; }

.artifact-visual-frame {
  position: relative;
  height: 245px;
  border-bottom: 2px solid var(--border);
  background: #12141C;
  overflow: hidden;
  cursor: pointer;
}

.artifacts-grid.layout-list .artifact-visual-frame {
  height: 100%;
  min-height: 290px;
  border-bottom: none;
  border-right: 2px solid var(--border);
}

.artifact-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-out-expo), filter 0.35s ease;
}

.artifact-card:hover .artifact-shot {
  transform: scale(1.05);
}

.artifact-Inspect-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--yellow);
  color: #090A0F;
  border: 2px solid #090A0F;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 10px;
  text-transform: uppercase;
  box-shadow: 3px 3px 0px #090A0F;
}

.artifact-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.artifact-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.artifact-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.artifact-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.artifact-bullets {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.artifact-bullets li {
  font-size: 0.82rem;
  padding-left: 16px;
  position: relative;
  color: var(--text);
}

.artifact-bullets li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-size: 0.7rem;
}

body[data-mode="dark"] .artifact-bullets li::before {
  color: var(--yellow);
}

.artifact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
  flex-wrap: wrap;
}

.artifact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  text-transform: uppercase;
}

.artifact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.card-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ==========================================================================
   ABOUT & ARCHITECTURE MATRIX SECTION
   ========================================================================== */
.identity-matrix {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.manifesto-dossier {
  border: 2px solid var(--border);
  background: var(--bg-panel);
  padding: clamp(24px, 3.5vw, 42px);
  box-shadow: var(--shadow-hard);
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  padding-left: 18px;
  border-left: 6px solid var(--red);
}

.manifesto-dossier p {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.principle-box {
  border: 2px solid var(--border);
  padding: 16px;
  background: var(--bg-secondary);
}

.principle-box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

body[data-mode="dark"] .principle-box strong {
  color: var(--yellow);
}

.skill-radar-panel {
  border: 2px solid var(--border);
  background: var(--bg-panel);
  padding: 24px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-clusters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-cluster-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-cluster-title span:first-child {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  display: inline-block;
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: all 0.15s;
}

.skill-badge:hover {
  background: var(--yellow);
  color: #090A0F;
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0px var(--red);
}

/* ==========================================================================
   CONTACT SIGNAL TRANSMITTER
   ========================================================================== */
.transmitter-box {
  border: 3px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-hard);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  overflow: hidden;
}

.transmitter-left {
  padding: clamp(22px, 4vw, 52px);
  border-right: 2px solid var(--border);
  min-width: 0;
}

.transmitter-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 3.4rem);
  overflow-wrap: break-word;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.channel-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  transition: all 0.18s;
}

.channel-link:hover {
  background: var(--blue);
  color: #FFFFFF;
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0px var(--red);
}

.transmitter-right {
  padding: clamp(22px, 4vw, 52px);
  min-width: 0;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dispatch-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==========================================================================
   PROJECT CASE STUDY DOSSIER MODAL
   ========================================================================== */
.dossier-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 10, 15, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dossier-modal.open {
  opacity: 1;
  visibility: visible;
}

.dossier-dialog {
  width: min(940px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 3px solid var(--border);
  background: var(--bg-panel);
  box-shadow: 12px 12px 0px var(--red);
  position: relative;
}

.dossier-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--red);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 3;
}

.dossier-close-btn {
  border: 2px solid #FFFFFF;
  background: #090A0F;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
}

.dossier-content {
  padding: clamp(22px, 4vw, 40px);
}

.dossier-shot-wrap {
  border: 2px solid var(--border);
  margin: 18px 0 24px;
  max-height: 360px;
  overflow: hidden;
  background: #090A0F;
}

.dossier-shot-wrap img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.dossier-cell {
  border: 2px solid var(--border);
  padding: 18px;
  background: var(--bg-secondary);
}

.dossier-cell h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

body[data-mode="dark"] .dossier-cell h4 {
  color: var(--yellow);
}

/* ==========================================================================
   DARK MODE FLOATING YN//OS TERMINAL DRAWER
   ========================================================================== */
.terminal-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: min(540px, calc(100vw - 32px));
  z-index: 1500;
  border: 2px solid var(--yellow);
  background: #06080E;
  color: #E4ECF7;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 214, 0, 0.3);
  font-family: var(--font-mono);
  display: none;
}

.terminal-drawer.open {
  display: block;
}

.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--yellow);
  color: #090A0F;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.term-close {
  background: #090A0F;
  color: #fff;
  border: none;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
}

.term-body {
  height: 230px;
  overflow-y: auto;
  padding: 14px;
  font-size: 0.76rem;
  line-height: 1.55;
}

.term-line {
  margin-bottom: 6px;
}
.term-line.cmd { color: var(--yellow); }
.term-line.accent { color: var(--red-bright); }

.term-input-row {
  display: flex;
  align-items: center;
  border-top: 1px solid #1E2638;
  padding: 8px 14px;
  background: #0A0D16;
}

.term-prompt {
  color: var(--red);
  font-weight: 700;
  margin-right: 8px;
  font-size: 0.78rem;
}

#term-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  outline: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 3px solid var(--border);
  background: var(--bg-panel);
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-bento,
  .light-exclusive-panel,
  .sim-stage.active,
  .identity-matrix,
  .transmitter-box {
    grid-template-columns: 1fr;
  }
  .transmitter-left {
    border-right: none;
    border-bottom: 2px solid var(--border);
  }
}

@media (max-width: 768px) {
  #custom-cursor {
    display: none;
  }

  /* Compact header: brand + mode switch on one row, nav and tools as swipeable rows */
  .hud-top-strip {
    padding: 8px 14px;
    gap: 8px;
  }
  .brand-status,
  .feature-bar-left,
  .mode-pill .mode-label-full {
    display: none;
  }
  .mode-pill .mode-label-short {
    display: inline;
  }
  .brand-mark {
    font-size: 1.1rem;
    padding: 3px 10px;
  }
  .mode-pill {
    padding: 6px 10px;
  }
  .hud-nav,
  .exclusive-controls {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 6px;
  }
  .hud-nav::-webkit-scrollbar,
  .exclusive-controls::-webkit-scrollbar {
    display: none;
  }
  .hud-link,
  .hud-action-btn,
  .tool-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .hud-link {
    padding: 5px 8px;
  }
  .mode-feature-bar {
    padding: 6px 14px;
  }

  .artifacts-grid,
  .artifacts-grid.layout-list .artifact-card,
  .dossier-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-metrics-row {
    grid-template-columns: 1fr 1fr;
  }
}


/* ==========================================================================
   UPGRADE PACK: BOOT SEQUENCE, X-RAY PORTAL, 3D TILT, HACKATHON CARTRIDGE
   DECK, AND "ASK YASH'S AI TWIN" INTERACTIVE CONSOLE
   ========================================================================== */

/* 1. Top Scroll Telemetry Progress Bar */
#scroll-telemetry-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  z-index: 10001;
  background: linear-gradient(90deg, var(--red) 0%, var(--blue) 50%, var(--yellow) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* 2. Mechanical Split-Flap Boot Sequence (Fast & Skippable) */
.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: #090A0F;
  color: #F4F0EA;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 48px);
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.45s ease;
}

.boot-overlay.boot-complete {
  transform: translateY(-102%);
  pointer-events: none;
}

.boot-top-row,
.boot-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.boot-center {
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.boot-flap-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.boot-counter {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--yellow);
  text-shadow: 6px 6px 0px var(--red);
}

.boot-status-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.35rem);
  font-weight: 700;
  padding: 10px 18px;
  background: var(--blue);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 5px 5px 0px var(--red);
}

.boot-bar-track {
  width: min(560px, 100%);
  height: 12px;
  border: 2px solid #FFFFFF;
  background: #141722;
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.08s linear;
}

/* 3. Interactive X-Ray Reality Lens (Hold SPACE or Toggle in HUD) */
#xray-portal-lens {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9980;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.28s var(--ease-spring);
  border: 3px solid var(--red);
  box-shadow: 0 0 0 4px var(--yellow), 0 20px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: invert(1) hue-rotate(180deg) contrast(1.08);
  -webkit-backdrop-filter: invert(1) hue-rotate(180deg) contrast(1.08);
  overflow: hidden;
}

body.xray-active #xray-portal-lens {
  transform: translate(-50%, -50%) scale(1);
}

.xray-lens-hud {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #090A0F;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
  padding: 3px 8px;
  white-space: nowrap;
  letter-spacing: 0.08em;
  border: 1px solid var(--yellow);
}

/* 4. 3D Tactile Card Glare & Tilt Physics */
.artifact-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.artifact-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 214, 0, 0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.artifact-card:hover .artifact-glare {
  opacity: 1;
}

/* 5. Hackathon Cartridge Rack & 36-Hour Sprint Deck */
.cartridge-deck-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.cartridge-slots {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cartridge-item {
  border: 2px solid var(--border);
  background: var(--bg-panel);
  padding: 16px 20px;
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.18s var(--ease-out-expo), box-shadow 0.18s, background-color 0.18s;
  text-align: left;
  width: 100%;
  color: var(--text);
}

.cartridge-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0px var(--blue);
}

.cartridge-item.active {
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 6px 6px 0px var(--border);
}

body[data-mode="dark"] .cartridge-item.active {
  background: var(--blue-bright);
  color: #FFFFFF;
  border-color: var(--yellow);
  box-shadow: 6px 6px 0px var(--yellow);
}

.cartridge-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border: 1.5px solid currentColor;
  text-transform: uppercase;
}

.cartridge-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  display: block;
}

.cartridge-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.85;
}

.sprint-reader-screen {
  border: 3px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.sprint-reader-top {
  padding: 12px 20px;
  background: var(--yellow);
  color: #090A0F;
  border-bottom: 2px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.sprint-reader-heading {
  padding: 20px 24px 0;
}

.sprint-reader-heading h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
}

.sprint-reader-footer {
  padding: 16px 24px;
  border-top: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-secondary);
}

.sprint-reader-footer > span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.sprint-timeline {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sprint-step {
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  padding: 14px;
  position: relative;
}

.sprint-hour {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--text);
  color: var(--bg);
  padding: 2px 7px;
  display: inline-block;
  margin-bottom: 8px;
}

.sprint-step h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.sprint-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 6. "ASK YASH'S AI TWIN" Interactive Interrogator Console */
.ai-twin-console {
  margin-top: 32px;
  border: 3px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.ai-twin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-twin-body {
  padding: 22px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.ai-prompt-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-prompt-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.16s;
}

.ai-prompt-btn:hover,
.ai-prompt-btn.active {
  background: var(--yellow);
  color: #090A0F;
  transform: translateX(4px);
  box-shadow: 3px 3px 0px var(--red);
}

.ai-response-screen {
  border: 2px solid var(--border);
  background: #090A0F;
  color: #F4F0EA;
  padding: 18px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
}

.ai-stream-text {
  font-size: 0.84rem;
  line-height: 1.65;
  color: #E5ECF6;
  margin-bottom: 16px;
}

.ai-custom-input-row {
  display: flex;
  gap: 8px;
  border-top: 1px solid #262F45;
  padding-top: 12px;
}

.ai-custom-input-row input {
  flex: 1;
  background: #121622;
  border: 1.5px solid #323D59;
  color: #FFFFFF;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.ai-custom-input-row button {
  background: var(--red);
  color: #FFFFFF;
  border: none;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

/* 7. Bottom-Left Telemetry Status Pill */
.floating-telemetry-dock {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 2px solid var(--border);
  padding: 6px 12px;
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.floating-telemetry-dock.dock-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.dock-xray-btn {
  background: var(--red);
  color: #FFFFFF;
  border: 1.5px solid var(--border);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

.dock-xray-btn.active {
  background: var(--yellow);
  color: #090A0F;
}

@media (max-width: 960px) {
  .cartridge-deck-grid,
  .sprint-timeline,
  .ai-twin-body {
    grid-template-columns: 1fr;
  }
  .floating-telemetry-dock {
    display: none;
  }
}


/* ==========================================================================
   V5.0 HYPER-CRAFT UPGRADES:
   - Ctrl+K / Cmd+K Command Palette
   - Light Mode Print Edition Switcher (Vermilion / Klein / Chrome / Mono)
   - Interactive SVG Architecture Pipeline inside Dossier Modal
   - 5th Live Simulator: DID Vault Zero-Knowledge Proof (zk-SNARK) Verifier
   - Tactile Toast Notifications & @media print Spec Sheet
   ========================================================================== */

/* Light Mode Curated Print Editions */
body[data-mode="light"][data-edition="klein"] {
  --bg: #EEF2FF;
  --bg-secondary: #DCE4FF;
  --shadow-hard: 6px 6px 0px #0038FF;
  --shadow-hard-sm: 4px 4px 0px #0038FF;
}

body[data-mode="light"][data-edition="chrome"] {
  --bg: #FFFBEB;
  --bg-secondary: #FEF08A;
  --shadow-hard: 6px 6px 0px #090A0F;
}

body[data-mode="light"][data-edition="risograph"] {
  --bg: #F7EAE4;
  --bg-secondary: #EDD5CA;
  --shadow-hard: 6px 6px 0px #FF2A00;
  --shadow-hard-sm: 4px 4px 0px #0038FF;
}

/* 1. Ctrl+K / Cmd+K Command Palette Modal */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(9, 10, 15, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cmdk-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cmdk-dialog {
  width: min(640px, 100%);
  border: 3px solid var(--border);
  background: var(--bg-panel);
  box-shadow: 10px 10px 0px var(--red);
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.22s var(--ease-out-expo);
}

.cmdk-backdrop.open .cmdk-dialog {
  transform: translateY(0) scale(1);
}

.cmdk-search-bar {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border);
  background: var(--bg-secondary);
  gap: 12px;
}

.cmdk-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  background: var(--red);
  color: #FFFFFF;
  text-transform: uppercase;
}

#cmdk-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
}

.cmdk-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmdk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.12s;
}

.cmdk-item:hover,
.cmdk-item.active {
  background: var(--yellow);
  color: #090A0F;
  border-color: #090A0F;
}

.cmdk-item-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border: 1px solid currentColor;
  text-transform: uppercase;
}

.cmdk-footer {
  padding: 8px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

/* 2. Interactive Architecture Pipeline Diagram Inside Dossier Modal */
.arch-pipeline-box {
  border: 2px solid var(--border);
  background: #090A0F;
  color: #F4F0EA;
  padding: 18px;
  margin-bottom: 22px;
}

.arch-pipeline-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}

.arch-nodes-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
}

.arch-node {
  border: 1.5px solid #2E3852;
  background: #111522;
  padding: 12px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}

.arch-node:hover,
.arch-node.active {
  border-color: var(--red);
  background: #1C1218;
  transform: translateY(-2px);
}

.arch-node-step {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 4px;
}

.arch-node-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  display: block;
}

.arch-node-detail {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--blue-bright);
  background: rgba(41, 91, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #D6E2F5;
}

/* 3. Tactile Toast Notification */
#tactile-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  z-index: 13000;
  background: var(--yellow);
  color: #090A0F;
  border: 2px solid #090A0F;
  box-shadow: 5px 5px 0px var(--red);
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-spring), visibility 0s linear 0.3s;
  pointer-events: none;
}

#tactile-toast.show {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.3s var(--ease-spring), visibility 0s;
}

/* 4. Clean Architectural Spec Sheet when Printed (Ctrl+P) */
@media print {
  .hud-header,
  .boot-overlay,
  #custom-cursor,
  #xray-portal-lens,
  .floating-telemetry-dock,
  .terminal-drawer,
  .cmdk-backdrop,
  #interactive-lab {
    display: none !important;
  }
  main {
    padding-top: 0 !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}

@media (max-width: 768px) {
  .arch-nodes-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Keyboard access and user motion preferences */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20000;
  padding: 10px 14px;
  color: #090A0F;
  background: var(--yellow);
  border: 2px solid currentColor;
  font: 700 0.85rem var(--font-mono);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

body[data-mode="dark"] :focus-visible {
  outline-color: var(--yellow);
}

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

  #custom-cursor,
  #reality-canvas,
  .telemetry-scanlines {
    display: none !important;
  }
}

/* Disable fancy cursor and 3D tilt on touch devices (phones/tablets) */
@media (pointer: coarse) {
  #custom-cursor,
  #blueprint-inspector-box {
    display: none !important;
  }
  .cursor-coords {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}

/* Toast success variant */
#tactile-toast.success {
  background: var(--green-signal);
  color: #090A0F;
}

/* Form submission states */
.dispatch-form .form-success-msg {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 32px 20px;
  color: var(--green-signal);
}

/* Guided entry points help visitors reach the work most relevant to them. */
.portfolio-guide {
  padding: clamp(42px, 6vw, 76px) 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  background: var(--bg-secondary);
}

.guide-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.guide-eyebrow {
  grid-column: 1 / -1;
  color: var(--red);
  font: 700 0.72rem var(--font-mono);
  letter-spacing: 0.08em;
}

.guide-heading h2 {
  font: 800 clamp(1.45rem, 3vw, 2.25rem)/1.05 var(--font-display);
  letter-spacing: -0.03em;
}

.guide-heading p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.guide-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-route {
  position: relative;
  display: flex;
  min-height: 164px;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px 48px 20px 20px;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.guide-route:hover {
  transform: translate(-3px, -3px);
  border-color: var(--red);
  box-shadow: var(--shadow-hard-red);
}

.guide-route-index {
  color: var(--text-muted);
  font: 700 0.64rem var(--font-mono);
}

.guide-route strong {
  font: 800 clamp(1.08rem, 1.7vw, 1.35rem)/1.15 var(--font-display);
}

.guide-route > span:nth-last-child(2) {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.guide-route-arrow {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--red);
  font-size: 1.6rem;
}

body[data-mode="dark"] .guide-eyebrow,
body[data-mode="dark"] .guide-route-arrow {
  color: var(--yellow);
}

.project-results {
  margin: -22px 0 18px;
  color: var(--text-muted);
  font: 600 0.75rem var(--font-mono);
}

@media (max-width: 760px) {
  .guide-heading {
    grid-template-columns: 1fr;
  }

  .guide-routes {
    grid-template-columns: 1fr;
  }

  .guide-route {
    min-height: 134px;
  }
}

/* "Now" strip: a quick, easy-to-edit status line under the hero. */
.now-strip {
  border-top: 2px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.now-strip-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.now-tag {
  flex-shrink: 0;
  padding: 3px 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.now-tag::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--green-signal);
}

.now-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}

.now-list b {
  color: var(--red);
  text-transform: uppercase;
  margin-right: 4px;
}

body[data-mode="dark"] .now-list b {
  color: var(--yellow);
}

.now-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.now-list a:hover {
  color: var(--blue);
}

body[data-mode="dark"] .now-list a:hover {
  color: var(--yellow);
}

/* Writing section */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.writing-card {
  border: 2px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-hard-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s var(--ease-out-expo), box-shadow 0.18s var(--ease-out-expo);
}

.writing-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hard-red);
}

body[data-mode="dark"] .writing-card:hover {
  box-shadow: var(--shadow-hard-blue);
}

.writing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.writing-topic {
  padding: 2px 8px;
  border: 1.5px solid var(--border);
  background: var(--yellow);
  color: #090A0F;
}

.writing-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.writing-title a {
  color: var(--text);
  text-decoration: none;
}

.writing-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}

.writing-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.writing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 768px) {
  .writing-grid {
    grid-template-columns: 1fr;
  }

  .now-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .now-list {
    flex-direction: column;
  }
}

/* Hackathon wins & recognition row */
.recognition-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.recognition-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  border: 2px solid var(--border);
  background: var(--bg-panel);
  box-shadow: var(--shadow-hard-sm);
}

.recognition-item strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
}

.recognition-item > span:last-child {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.recognition-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
}

.recognition-badge.gold {
  background: var(--yellow);
  color: #090A0F;
}

/* Education & certifications list in the About panel */
.credential-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credential-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-left: 3px solid var(--red);
  background: var(--bg-secondary);
}

body[data-mode="dark"] .credential-list li {
  border-left-color: var(--yellow);
}

.credential-list strong {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.credential-list span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Desktop: both columns stretch to the taller one so they always end level.
   Spare height is shared between the cartridge buttons; the reader keeps its
   footer pinned to the bottom. The 6px bottom gap leaves room for the hard
   shadows while keeping the two bottom borders on the same line. */
@media (min-width: 961px) {
  .cartridge-slots {
    padding-bottom: 6px;
  }

  .cartridge-slots .cartridge-item {
    flex: 1 0 auto;
  }

  .sprint-reader-screen {
    margin-bottom: 6px;
  }
}

@media (max-width: 1200px) {
  .recognition-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .recognition-row {
    grid-template-columns: 1fr;
  }
}

/* Long cartridge titles must wrap instead of widening the grid on phones */
.cartridge-deck-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.cartridge-item > div {
  min-width: 0;
}

.cartridge-title {
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: break-word;
}

@media (max-width: 960px) {
  .cartridge-deck-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .cartridge-title {
    font-size: 0.88rem;
  }
  .cartridge-item {
    padding: 12px 14px;
  }
}


/* Sketchpad shape buttons and hint */
.shape-add-btn {
  width: 28px;
  height: 26px;
  border: 2px solid #090A0F;
  background: #FFFFFF;
  color: #090A0F;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}

.shape-add-btn:hover {
  transform: translate(-1px, -1px);
  background: var(--yellow);
}

.sketchpad-help {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.atelier-hint {
  font-family: var(--font-mono);
  font-size: 0.74rem !important;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Easter egg: full-page canvas */
/* Above the fixed header (z 500) so the whole viewport is drawable; below the
   toolbar, terminal, modals and popups. Clicks pass through when not drawing. */
#page-ink-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 600;
  pointer-events: none;
}

body.page-ink-active #page-ink-layer {
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}

#page-ink-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1700;
  display: none;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 2px solid #090A0F;
  background: #FFFFFF;
  color: #090A0F;
  box-shadow: 5px 5px 0 var(--red);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.page-ink-unlocked #page-ink-bar {
  display: flex;
}

/* Keep the bottom-left dock clear of the canvas toolbar */
body.page-ink-unlocked .floating-telemetry-dock {
  display: none;
}

.page-ink-swatches {
  display: inline-flex;
  gap: 6px;
}

.page-ink-swatch {
  width: 22px;
  height: 22px;
  border: 2px solid #090A0F;
  cursor: pointer;
}

.page-ink-swatch[data-page-ink="contrast"] {
  background: linear-gradient(135deg, #090A0F 50%, #FFFFFF 50%);
}

.page-ink-swatch.active {
  outline: 2px solid #090A0F;
  outline-offset: 2px;
}

.page-ink-btn {
  padding: 5px 10px;
  border: 2px solid #090A0F;
  background: #F4F0EA;
  color: #090A0F;
  font: inherit;
  cursor: pointer;
}

.page-ink-btn.primary {
  background: var(--red);
  color: #FFFFFF;
}

body:not(.page-ink-active) #page-ink-bar .page-ink-btn.primary {
  background: var(--blue);
}

#egg-popup {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 10, 15, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#egg-popup.open {
  opacity: 1;
  visibility: visible;
}

.egg-card {
  width: min(460px, 100%);
  padding: 26px 26px 22px;
  border: 3px solid #090A0F;
  background: #FFFFFF;
  color: #090A0F;
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px #090A0F;
  transform: scale(0.9) rotate(-2deg);
  transition: transform 0.35s var(--ease-spring);
}

#egg-popup.open .egg-card {
  transform: scale(1) rotate(0deg);
}

.egg-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: var(--yellow);
  border: 2px solid #090A0F;
  font: 800 0.8rem var(--font-mono);
}

.egg-card h3 {
  font: 800 1.6rem/1.1 var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.egg-card p {
  font-size: 0.92rem;
  color: #4A4D57;
  margin-bottom: 12px;
}

.egg-card ul {
  margin: 0 0 18px 18px;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.egg-card kbd {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 1px 5px;
  border: 1.5px solid #090A0F;
  background: #F4F0EA;
}

/* A closing popup must not swallow the first stroke; drawing shouldn't select text. */
#egg-popup:not(.open) {
  pointer-events: none;
}

#page-ink-bar,
body.page-ink-active {
  user-select: none;
  -webkit-user-select: none;
}

/* Sketchpad shapes lifted onto the page. Above content, below the header. */
#loose-shape-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 420;
  pointer-events: none;
}

.loose-shape {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  line-height: 0;
  transition: filter 0.12s ease;
}

.loose-shape svg {
  display: block;
  overflow: visible;
}

.loose-shape:hover {
  filter: drop-shadow(3px 3px 0 rgba(9, 10, 15, 0.85));
}

.loose-shape.dragging {
  cursor: grabbing;
  filter: drop-shadow(6px 6px 0 rgba(9, 10, 15, 0.9));
}

@media print {
  #loose-shape-layer,
  #page-ink-layer,
  #page-ink-bar,
  #stamp-layer {
    display: none !important;
  }
}

.page-ink-close {
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border: 2px solid #090A0F;
  background: #090A0F;
  color: #FFFFFF;
  font: 800 0.85rem/1 var(--font-mono);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.page-ink-close:hover {
  background: var(--red);
  transform: rotate(90deg);
}

/* Laptops: drop the long tool description so the tool chips share one row
   with the mode badge, keeping the fixed header compact. */
@media (max-width: 1600px) {
  #active-mode-desc {
    display: none;
  }
}
