/* ============================================================
   FONT LOCAL – MINECRAFT & MINECRAFTER (dari folder /fonts/)
   ============================================================ */

/* ----- Minecraft (untuk teks kecil) ----- */
@font-face {
  font-family: 'Minecraft';
  src: url('fonts/Minecraft.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ----- Minecrafter (untuk teks besar / display) ----- */
@font-face {
  font-family: 'Minecrafter';
  src: url('fonts/Minecrafter.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ----- Terapkan ke semua elemen ----- */
body {
  font-family: 'Minecraft', monospace !important;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .hero-eyebrow, .fold-head h2,
.macro-caption h2, .matrix-left h2,
.hud-brand, .slice-idle-title,
.slice-reveal h3, .matrix-tab .tab-name {
  font-family: 'Minecrafter', 'Minecraft', monospace !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Elemen kecil tetap pakai Minecraft */
.hero-sub, .hero-scroll-hint, .node-box-tag,
.node-stat, .btn, .hud-arrow, .matrix-tab,
.slice, .slice-num, .tab-num, .mono-tag,
.matrix-caption, .hud-pct, .hud-credit {
  font-family: 'Minecraft', monospace !important;
}

h2 {
  text-shadow:
    2px 2px 0px rgba(139, 92, 246, 0.85),
    4px 4px 0px rgba(0, 0, 0, 0.6) !important;
}

/* Monospace/data tetap Minecraft */
.mono, code, pre, .node-stat, .hud-pct,
.hud-credit, .matrix-caption, .hero-scroll-hint,
.slice-num, .tab-num {
  font-family: 'Minecraft', monospace !important;
}

/* ============================================================
   DARK MODE — PURPLE-BLUE ACCENT COLOR SYSTEM
   ============================================================ */

:root {
  /* ---- Deep dark backgrounds ---- */
  --void:         #08080C;
  --abyss:        #0E0F18;
  --surface:      #161828;
  --surface-2:    #1E2035;

  /* ---- Borders ---- */
  --border:       rgba(139, 92, 246, 0.12);
  --border-strong: rgba(139, 92, 246, 0.3);

  /* ---- Text ---- */
  --text:         #E2E8F0;
  --text-muted:   #94A3B8;
  --text-dim:     #64748B;

  /* ---- Purple-Blue Accent Spectrum ---- */
  --accent:       #8B5CF6;   /* vivid purple */
  --accent-2:     #6366F1;   /* indigo */
  --accent-3:     #38BDF8;   /* sky-blue pop */

  /* ---- Glow & atmosphere ---- */
  --glow:         rgba(139, 92, 246, 0.4);
  --glow-soft:    rgba(139, 92, 246, 0.15);
  --glow-blue:    rgba(56, 189, 248, 0.25);

  /* ---- Layout tokens ---- */
  --hud-h: 60px;
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: auto; }

body {
  font-family: 'Minecraft', monospace;
  background: var(--void);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- scroll spacer creates the 400vh track ---------- */
.scroll-spacer { height: 400vh; }

/* ---------- z-depth card engine ---------- */
.zcard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  transform-origin: top center;
  will-change: transform, opacity;
  overflow: hidden;
}

.zcard[data-card="1"] { z-index: 10; }
.zcard[data-card="2"] { z-index: 20; transform: translateY(100%); }
.zcard[data-card="3"] { z-index: 30; transform: translateY(100%); }
.zcard[data-card="4"] { z-index: 40; transform: translateY(100%); }

/* ============================================================
   CARD 1: HERO — VIDEO BACKGROUND + DARK ATMOSPHERE
   ============================================================ */
.card-hero {
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Fullscreen looping video ---- */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ---- Cinematic dark overlay on video ---- */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(8, 8, 12, 0.55) 0%,
      rgba(14, 15, 24, 0.25) 35%,
      rgba(14, 15, 24, 0.25) 65%,
      rgba(8, 8, 12, 0.75) 100%
    );
  pointer-events: none;
}

/* ---- Noise texture overlay for depth ---- */
.hero-video-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-stage {
  position: relative;
  text-align: center;
  z-index: 5;
  padding: 0 24px;
  width: 100%;
  max-width: 100%;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  display: inline-block;
  padding: 7px 14px 7px 18px;
  margin-bottom: 28px;
  max-width: 100%;
  word-break: break-word;
}

.hero-title {
  font-size: clamp(48px, 13vw, 180px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  color: #FFFFFF;
  text-shadow:
    3px 3px 0px rgba(139, 92, 246, 0.85),
    6px 6px 0px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.8s var(--ease-silk) both;
  animation-delay: 0.6s;
}

.hero-sub {
  margin: 32px auto 0;
  max-width: 480px;
  width: 100%;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  animation: fadeUp 0.8s var(--ease-silk) both;
  animation-delay: 0.9s;
  padding: 0 8px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: calc(var(--hud-h) + 28px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.8s var(--ease-silk) both;
  animation-delay: 1.2s;
  white-space: nowrap;
}

.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: hint-drop 2.2s var(--ease-silk) infinite;
}

@keyframes hint-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---- Floating Minecraft character images ---- */
.glass-shape {
  position: absolute;
  background: transparent;
  border: none;
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}

.glass-a {
  width: 220px;
  height: 220px;
  top: 10%;
  left: 6%;
  animation: bob-a 9s ease-in-out infinite;
}

.glass-b {
  width: 170px;
  height: 170px;
  bottom: 16%;
  right: 8%;
  animation: bob-b 7s ease-in-out infinite;
}

.glass-c {
  width: 130px;
  height: 130px;
  top: 18%;
  right: 20%;
  animation: bob-c 11s ease-in-out infinite;
}

@keyframes bob-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-26px); }
}

@keyframes bob-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(22px); }
}

@keyframes bob-c {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ---- Faint engineering grid — now purple ---- */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
  z-index: 1;
}

/* ============================================================
   CARD 2: MACRO — ENGINEERED IMAGE OVERLAY
   ============================================================ */
.card-macro { background: var(--void); }

.macro-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.macro-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 12, 0.4),
    rgba(8, 8, 12, 0.1) 40%,
    rgba(8, 8, 12, 0.55)
  );
}

.crosshair-v, .crosshair-h {
  position: absolute;
  background: rgba(139, 92, 246, 0.25);
}

.crosshair-v { top: 0; bottom: 0; left: 62%; width: 1px; }

.crosshair-h { left: 0; right: 0; top: 40%; height: 1px; }

.node-dot {
  position: absolute;
  left: 62%;
  top: 40%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 6px rgba(139, 92, 246, 0.3),
    0 0 24px 4px rgba(99, 102, 241, 0.6);
  animation: node-pulse 2.6s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(139, 92, 246, 0.3),
      0 0 24px 4px rgba(99, 102, 241, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 14px rgba(139, 92, 246, 0.1),
      0 0 44px 8px rgba(56, 189, 248, 0.4);
  }
}

.node-box {
  position: absolute;
  left: calc(62% + 28px);
  top: calc(40% + 28px);
  width: 280px;
  max-width: calc(100vw - 48px);
  background: rgba(14, 15, 24, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-soft);
}

.node-box-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 14px;
}

.node-stat {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.node-stat:last-child { border-bottom: none; }

.node-stat span:last-child { color: var(--accent-3); white-space: nowrap; }

.macro-caption {
  position: absolute;
  left: 40px;
  bottom: calc(var(--hud-h) + 36px);
  color: var(--text);
  max-width: 420px;
}

.macro-caption .mono {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.macro-caption h2 {
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   CARD 3: KINETIC ACCORDION FOLD — DARK MODE
   ============================================================ */
.card-fold {
  background: var(--abyss);
  display: flex;
  flex-direction: column;
}

.fold-head {
  padding: 28px 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-shrink: 0;
}

.fold-head h2 {
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.fold-head .mono {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  white-space: nowrap;
}

.accordion {
  flex: 1;
  display: flex;
  width: 100%;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  min-height: 0;
}

.slice {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--abyss);
  transition: flex-grow 1.2s var(--ease-silk);
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.slice:last-child { border-right: none; }

.slice.active { flex-grow: 3.7; }

.slice-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease-silk), transform 1.2s var(--ease-silk);
}

.slice.active .slice-img { opacity: 1; transform: scale(1); }

.slice-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 12, 0.8), rgba(8, 8, 12, 0) 55%);
  opacity: 0;
  transition: opacity 1.2s var(--ease-silk);
}

.slice.active .slice-shade { opacity: 1; }

.slice-idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 0 calc(var(--hud-h) + 28px);
  align-items: center;
  transition: opacity 0.6s var(--ease-silk);
}

.slice.active .slice-idle { opacity: 0; }

.slice-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
}

.slice-idle-title {
  writing-mode: vertical-rl;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slice-reveal {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: calc(var(--hud-h) + 28px);
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease-silk), transform 1.2s var(--ease-silk);
}

.slice.active .slice-reveal { opacity: 1; transform: translateY(0); }

.slice-reveal .mono {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.slice-reveal h3 {
  font-size: clamp(18px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  white-space: nowrap;
  text-shadow: 0 0 20px var(--glow-soft);
}

.slice-reveal p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 380px;
  color: rgba(226, 232, 240, 0.8);
}

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

/* Hover glow on idle slices */
.slice:not(.active):hover {
  background: var(--surface);
}

.slice:not(.active):hover .slice-idle-title {
  color: var(--accent-3);
  transition: color 0.4s var(--ease-silk);
}

/* ============================================================
   CARD 4: MATRIX TABS — DEEP DARK MODE
   ============================================================ */
.card-matrix {
  background: var(--surface);
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.matrix-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(20px, 5vw, 80px) calc(var(--hud-h) + 40px);
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.matrix-left .mono-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.matrix-left h2 {
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 40px;
}

.matrix-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  border-left: 2px solid var(--border);
  transition: border-color 0.5s var(--ease-silk), background 0.5s var(--ease-silk);
}

.matrix-tab .tab-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.matrix-tab .tab-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.5s var(--ease-silk);
}

.matrix-tab .tab-name {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.4);
  transition: color 0.5s var(--ease-silk);
}

.matrix-tab p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.55);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s var(--ease-silk), opacity 0.7s var(--ease-silk);
}

.matrix-tab.active {
  border-left-color: var(--accent);
  background: rgba(139, 92, 246, 0.06);
}

.matrix-tab.active .tab-num { color: var(--accent); }

.matrix-tab.active .tab-name { color: var(--text); }

.matrix-tab.active p { max-height: 120px; opacity: 1; }

.matrix-tab:hover:not(.active) {
  background: rgba(139, 92, 246, 0.03);
  border-left-color: rgba(139, 92, 246, 0.25);
}

.matrix-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.matrix-right { position: relative; overflow: hidden; }

.matrix-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s var(--ease-silk), transform 1.4s var(--ease-silk);
}

.matrix-img.active { opacity: 1; transform: scale(1); }

.matrix-img-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(22, 24, 40, 0.7), rgba(22, 24, 40, 0) 45%);
  pointer-events: none;
}

.matrix-caption {
  position: absolute;
  right: 28px;
  bottom: calc(var(--hud-h) + 24px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text);
  background: rgba(14, 15, 24, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   HUD / FOOTER — DARK GLASS
   ============================================================ */
.hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hud-h);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(14px, 4vw, 40px);
  background: rgba(8, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.hud-brand {
  font-weight: 300;
  letter-spacing: 0.18em;
  font-size: clamp(10px, 1.8vw, 13px);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 0;
  overflow: hidden;
}

.hud-brand .dot-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  display: inline-block;
  image-rendering: pixelated;
}

@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 8px var(--glow), 0 0 2px var(--accent); }
  50% { box-shadow: 0 0 16px var(--glow), 0 0 4px var(--accent-3); }
}

.hud-credit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  white-space: nowrap;
}

.hud-credit a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

.hud-progress {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-track {
  flex: 1;
  height: 2px;
  background: rgba(139, 92, 246, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  min-width: 40px;
}

.hud-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 12px var(--glow);
  border-radius: 1px;
  transition: width 0.1s linear;
}

.hud-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 40px;
  text-align: right;
  flex-shrink: 0;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}

.hud-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: rgba(14, 15, 24, 0.6);
  color: var(--text-muted);
  transition: background 0.4s var(--ease-silk), border-color 0.4s var(--ease-silk), color 0.4s var(--ease-silk), opacity 0.4s var(--ease-silk), box-shadow 0.4s var(--ease-silk);
}

.hud-arrow svg { width: 14px; height: 14px; display: block; }

.hud-arrow:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--glow);
}

.hud-arrow:disabled { opacity: 0.25; cursor: default; }

.hud-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Hero */
  .glass-a { width: 130px; height: 130px; left: 3%; }
  .glass-b { width: 100px; height: 100px; right: 3%; }
  .glass-c { width: 80px; height: 80px; right: 10%; }

  /* Card 2 — Macro */
  .crosshair-v { left: 50%; }
  .node-dot { left: 50%; }
  .node-box {
    left: 24px;
    right: 24px;
    width: auto;
    top: auto;
    bottom: calc(var(--hud-h) + 120px);
  }
  .macro-caption {
    left: 24px;
    right: 24px;
    max-width: none;
    bottom: calc(var(--hud-h) + 28px);
  }
  .macro-caption h2 { font-size: clamp(18px, 4vw, 32px); }

  /* Card 3 — Accordion */
  .accordion {
    flex-direction: column;
    margin-top: 16px;
  }
  .slice {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 72px;
    transition: flex-grow 0.8s var(--ease-silk);
  }
  .slice:last-child { border-bottom: none; }
  .slice.active { flex-grow: 5; }
  .slice-idle {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
  }
  .slice-idle-title {
    writing-mode: horizontal-tb;
    letter-spacing: 0.08em;
    font-size: clamp(13px, 3vw, 18px);
  }
  .slice-reveal {
    left: 24px;
    right: 24px;
    bottom: 20px;
  }
  .slice-reveal h3 { white-space: normal; }
  .slice-reveal p { max-width: 100%; }
  .fold-head {
    padding: 20px 24px 0;
    flex-direction: column;
    gap: 4px;
  }

  /* Card 4 — Matrix */
  .card-matrix {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .matrix-left {
    padding: 32px 20px 20px;
    justify-content: flex-start;
    overflow-y: visible;
  }
  .matrix-left h2 { margin-bottom: 16px; }
  .matrix-tab { padding: 12px 16px; }
  .matrix-tab.active p { max-height: 80px; }
  .matrix-right { min-height: 40vh; }
  .matrix-caption {
    right: 16px;
    bottom: calc(var(--hud-h) + 12px);
    font-size: 10px;
    padding: 8px 12px;
  }

  /* HUD */
  .hud-credit { display: none; }
  .hud-pct { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  /* Hero */
  .glass-a { width: 90px; height: 90px; top: 8%; left: 2%; }
  .glass-b { width: 70px; height: 70px; bottom: 14%; right: 2%; }
  .glass-c { display: none; }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.25em;
    padding: 6px 10px;
    margin-bottom: 20px;
  }
  .hero-sub { font-size: 13px; margin-top: 20px; }

  /* Card 2 — Macro */
  .crosshair-v { display: none; }
  .crosshair-h { display: none; }
  .node-dot { display: none; }
  .node-box {
    left: 16px;
    right: 16px;
    top: 20px;
    bottom: auto;
    padding: 14px;
  }
  .node-box-tag { font-size: 9px; margin-bottom: 10px; }
  .node-stat { font-size: 11px; padding: 6px 0; }
  .macro-caption {
    left: 16px;
    right: 16px;
    bottom: calc(var(--hud-h) + 16px);
  }
  .macro-caption .mono { font-size: 10px; letter-spacing: 0.2em; }

  /* Card 3 — Accordion */
  .fold-head { padding: 16px 16px 0; }
  .fold-head h2 { font-size: clamp(16px, 5vw, 22px); }
  .fold-head .mono { font-size: 10px; }
  .slice { min-height: 60px; }
  .slice-idle { padding: 0 16px; }
  .slice-idle-title { font-size: 13px; }
  .slice-reveal { left: 16px; right: 16px; bottom: 16px; }
  .slice-reveal h3 { font-size: 18px; }
  .slice-reveal p { font-size: 12px; }

  /* Card 4 — Matrix */
  .matrix-left { padding: 24px 16px 16px; }
  .matrix-left h2 { font-size: clamp(20px, 6vw, 30px); margin-bottom: 12px; }
  .matrix-tab { padding: 10px 14px; }
  .matrix-tab .tab-name { font-size: 14px; }
  .matrix-tab p { font-size: 12px; }
  .matrix-right { min-height: 35vh; }
  .matrix-caption { display: none; }

  /* HUD */
  .hud { gap: 8px; padding: 0 12px; }
  .hud-brand {
    font-size: 10px;
    letter-spacing: 0.1em;
    gap: 6px;
  }
  .hud-brand .dot-img { width: 22px; height: 22px; }
  .hud-nav { padding-left: 8px; gap: 6px; }
  .hud-arrow { width: 30px; height: 30px; }
  .hud-arrow svg { width: 12px; height: 12px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
  .glass-a { display: none; }
  .glass-b { display: none; }

  .hud-progress { display: none; }

  .hud-brand {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .node-box { top: 10px; padding: 10px; }
  .node-stat { font-size: 10px; }

  .matrix-left { padding: 20px 12px 12px; }
  .matrix-tab { padding: 8px 10px; }
}

/* ============================================================
   RESPONSIVE — SHORT SCREENS (landscape phones etc.)
   ============================================================ */
@media (max-height: 540px) {
  .hero-title { font-size: clamp(36px, 10vh, 90px); }
  .hero-sub { display: none; }
  .matrix-tab p { display: none; }
  .glass-a, .glass-b, .glass-c { display: none; }
  .node-box { top: 10px; }
}

@media (max-height: 420px) {
  .fold-head { padding: 10px 16px 0; }
  .fold-head .mono { display: none; }
  .slice { min-height: 48px; }
  .matrix-left { padding-top: 16px; padding-bottom: 10px; }
  .matrix-left h2 { margin-bottom: 8px; }
}

/* ============================================================
   REDUCED MOTION — COLLAPSE TO CALM STATIC DARK DOCUMENT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .scroll-spacer { display: none; }
  .zcard {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    transform: none !important;
    opacity: 1 !important;
  }
  .glass-a, .glass-b, .glass-c, .node-dot, .hero-scroll-hint::after, .hud-brand .dot { animation: none !important; }
  .hero-eyebrow, .hero-title, .hero-sub, .hero-scroll-hint { animation: none !important; opacity: 1 !important; transform: none !important; }
  .slice, .slice-img, .slice-shade, .slice-reveal, .matrix-img, .matrix-tab p { transition: none !important; }
  .card-macro, .matrix-right { min-height: 100vh; }
  .hero-video { display: none; }
}
