/* ============================================================
   Nikos Tanampasidhs — Portfolio · Spatial Maze edition
   Dark neon cyber. Camera travels a 2D maze of rooms.
   Edit --accent vars to reskin instantly.
   ============================================================ */

:root {
  --bg:        #05060a;
  --bg-2:      #0a0c14;
  --ink:       #eaf0ff;
  --muted:     #8b93b0;
  --line:      rgba(140, 160, 220, 0.12);

  --accent:    #00f0ff;   /* cyan  */
  --accent-2:  #ff2e9a;   /* magenta */
  --accent-3:  #b46bff;   /* violet */

  --glow:      0 0 24px rgba(0, 240, 255, 0.45);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (pointer: coarse) { body { cursor: auto; } .cursor { display: none; } }

a { color: inherit; text-decoration: none; }
em { font-style: normal; }
::selection { background: var(--accent); color: #000; }

/* The spacer gives the document its scroll length. Travel = fake. */
#spacer { height: 650vh; pointer-events: none; }

/* ---------- Background canvas ---------- */
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }

/* ---------- Grain + scanlines ---------- */
.grain, .scan { position: fixed; inset: 0; z-index: 6; pointer-events: none; mix-blend-mode: overlay; }
.grain {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
.scan { opacity: 0.25; background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(0,0,0,0.25) 3px, transparent 4px); }
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-4%,3%)} 100%{transform:translate(3%,-2%)} }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); }
.cursor__ring { position: fixed; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.7); border-radius: 50%; transform: translate(-50%,-50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s; }
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; background: rgba(255,255,255,0.12); }

/* ---------- Boot ---------- */
.boot { position: fixed; inset: 0; z-index: 99999; background: var(--bg); display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s; }
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__inner { width: min(360px, 70vw); text-align: center; }
.boot__glyph { font-size: 40px; color: var(--accent); letter-spacing: 6px; text-shadow: var(--glow); animation: pulse 1.4s var(--ease) infinite; }
.boot__bar { margin: 22px 0 10px; height: 2px; background: var(--line); overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.boot__pct { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing: 4px; }
.boot__hint { margin-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 4px; color: var(--accent); opacity: .7; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.94); } }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 64px); }
.nav__logo { font-weight: 700; letter-spacing: 1px; }
.nav__links { display: flex; gap: clamp(16px, 2.5vw, 36px); align-items: center; font-size: 14px; }
.nav__links a { color: var(--muted); transition: color .3s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__cta { color: var(--ink) !important; border: 1px solid var(--accent); padding: 9px 18px; border-radius: 100px; transition: box-shadow .35s, background .35s; }
.nav__cta:hover { background: rgba(0,240,255,0.08); box-shadow: var(--glow); }
.nav__burger { display: none; }

/* ---------- HUD (travel direction) ---------- */
.hud { position: fixed; right: clamp(20px, 5vw, 64px); bottom: 34px; z-index: 50; display: flex; align-items: center; gap: 14px; font-family: 'JetBrains Mono', monospace; }
.hud__dir { font-size: 26px; color: var(--accent); text-shadow: var(--glow); transition: transform .5s var(--ease); }
.hud__label { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.hud__label i { color: var(--accent); font-style: normal; padding: 0 4px; }
.hud__label span { color: var(--ink); }

/* ---------- Minimap ---------- */
.map { position: fixed; left: clamp(20px, 5vw, 64px); bottom: 30px; z-index: 50; width: 92px; height: 92px; opacity: .9; }
.map svg { width: 100%; height: 100%; overflow: visible; }
.map .edge { stroke: var(--line); stroke-width: 2; fill: none; }
.map .edge.lit { stroke: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.map .node { fill: var(--bg-2); stroke: var(--muted); stroke-width: 2; }
.map .node.done { stroke: var(--accent-3); }
.map .node.here { fill: var(--accent); stroke: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }

/* ---------- Stage / world / rooms ---------- */
.stage { position: fixed; inset: 0; z-index: 2; overflow: hidden; perspective: 1600px; perspective-origin: 50% 50%; }
.world { position: absolute; top: 0; left: 0; transform-style: preserve-3d; will-change: transform; }

.room {
  position: absolute; width: 100vw; height: 100vh;
  left: calc(var(--gx) * 100vw); top: calc(var(--gy) * 100vh);
  display: grid; place-items: center; padding: clamp(70px, 9vh, 120px) clamp(24px, 6vw, 90px);
  transform-style: preserve-3d; will-change: transform, opacity; backface-visibility: hidden;
}
.room__inner { width: 100%; max-width: 1100px; }
.room__tag { position: absolute; left: clamp(24px, 6vw, 90px); top: clamp(90px, 12vh, 120px); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 3px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 10px; }

/* corner brackets to make each room feel like a "cell" */
.room::before, .room::after {
  content: ""; position: absolute; width: 46px; height: 46px; pointer-events: none; opacity: .5;
}
.room::before { top: clamp(80px, 11vh, 110px); right: clamp(24px, 6vw, 90px); border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.room::after  { bottom: clamp(70px, 9vh, 100px); left: clamp(24px, 6vw, 90px); border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }

/* ---------- Maze path (SVG inside world) ---------- */
.maze { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; transform: translateZ(-120px); }
.maze .trail { fill: none; stroke: var(--line); stroke-width: 2; }
.maze .trail-lit { fill: none; stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 0 8px var(--accent)); stroke-linecap: round; stroke-linejoin: round; }
.maze .pin { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border-radius: 100px; font-weight: 500; font-size: 15px; overflow: hidden; transition: transform .3s var(--ease); }
.btn span { position: relative; z-index: 2; }
.btn--primary { color: #03060a; background: var(--accent); box-shadow: var(--glow); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--accent), var(--accent-3)); transform: translateX(-100%); transition: transform .4s var(--ease); }
.btn--primary:hover::before { transform: translateX(0); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: var(--glow); }

/* ---------- HERO room ---------- */
.hero { text-align: center; }
.hero__eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 5px; color: var(--accent); text-transform: uppercase; margin-bottom: 24px; display: inline-flex; align-items: center; gap: 10px; }
.hero__eyebrow .tick { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: var(--glow); animation: pulse 1.4s var(--ease) infinite; }
.hero__title { font-size: clamp(44px, 9vw, 120px); line-height: 0.92; font-weight: 700; letter-spacing: -0.03em; }
.hero__title span { display: block; }
.hero__title em { color: var(--accent); text-shadow: var(--glow); }
.hero__sub { max-width: 56ch; margin: 28px auto 0; color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); }
.hero__actions { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(26px, 5vh, 54px); }
.section-head__idx { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); letter-spacing: 3px; }
.section-head__title { font-size: clamp(30px, 5vw, 64px); line-height: 1.0; font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }

/* ---------- Glitch ---------- */
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; clip-path: inset(0); }
.glitch::before { color: var(--accent-2); transform: translate(-2px,0); opacity: .8; animation: glitch1 3s steps(2) infinite; }
.glitch::after  { color: var(--accent-3); transform: translate(2px,0);  opacity: .8; animation: glitch2 2.4s steps(2) infinite; }
@keyframes glitch1 { 0%,92%,100%{clip-path:inset(0 0 100% 0)} 93%{clip-path:inset(10% 0 60% 0)} 96%{clip-path:inset(40% 0 20% 0)} }
@keyframes glitch2 { 0%,90%,100%{clip-path:inset(100% 0 0 0)} 91%{clip-path:inset(60% 0 10% 0)} 95%{clip-path:inset(20% 0 50% 0)} }

/* ---------- Projects (fit one room) ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.project {
  position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(12,15,26,0.85), rgba(8,10,18,0.7));
  padding: clamp(18px, 2.2vw, 28px); min-height: clamp(150px, 22vh, 220px);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--ease), border-color .4s; transform-style: preserve-3d; will-change: transform;
}
.project::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: radial-gradient(360px circle at var(--mx,50%) var(--my,50%), rgba(0,240,255,0.16), transparent 60%); }
.project:hover { border-color: rgba(0,240,255,0.4); }
.project:hover::after { opacity: 1; }
.project__num { position: absolute; top: 18px; left: 22px; font-family:'JetBrains Mono',monospace; font-size: 12px; color: var(--accent); letter-spacing: 2px; }
.project__tag { position: absolute; top: 16px; right: 18px; font-family:'JetBrains Mono',monospace; font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 100px; }
.project__title { font-size: clamp(20px, 2vw, 30px); font-weight: 700; letter-spacing: -0.02em; transform: translateZ(40px); }
.project__desc { color: var(--muted); margin-top: 8px; font-size: clamp(13px, 1vw, 15px); max-width: 42ch; transform: translateZ(20px); }
.project__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; transform: translateZ(20px); }
.project__meta span { font-size: 11px; font-family:'JetBrains Mono',monospace; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 100px; }
.project__link { position: absolute; inset: 0; z-index: 5; }
.project__arrow { position: absolute; bottom: 20px; right: 22px; font-size: 20px; color: var(--accent); opacity: 0; transform: translate(-8px,8px); transition: .4s var(--ease); }
.project:hover .project__arrow { opacity: 1; transform: translate(0,0); }

/* ---------- About ---------- */
.about { text-align: left; max-width: 900px; }
.about__title { font-size: clamp(26px, 3.6vw, 50px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 22px; }
.about__title em { color: var(--accent); text-shadow: var(--glow); }
.about__lead { font-size: clamp(17px, 1.8vw, 23px); color: var(--ink); max-width: 60ch; }
.about__stats { display: flex; gap: clamp(24px, 5vw, 60px); margin-top: clamp(28px, 5vh, 52px); flex-wrap: wrap; }
.stat b { display: block; font-size: clamp(34px, 4vw, 56px); font-weight: 700; color: var(--accent); text-shadow: var(--glow); }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Stack ---------- */
.stack__list { list-style: none; border-top: 1px solid var(--line); max-width: 900px; }
.stack__list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(12px, 2vh, 22px) 4px; border-bottom: 1px solid var(--line); font-size: clamp(18px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.01em; transition: padding .4s var(--ease), color .4s; color: var(--ink); position: relative; }
.stack__list li::before { content:""; position:absolute; left:0; bottom:-1px; height:1px; width:0; background: var(--accent); transition: width .5s var(--ease); }
.stack__list li:hover { padding-left: 22px; color: var(--accent); }
.stack__list li:hover::before { width: 100%; }
.stack__list li .stack__tags { font-size: 13px; font-family:'JetBrains Mono',monospace; color: var(--muted); font-weight: 400; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__title { font-size: clamp(40px, 7vw, 108px); line-height: 0.95; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 32px; }
.contact__title em { color: var(--accent); text-shadow: var(--glow); }
.contact__mail { font-size: clamp(20px, 3vw, 38px); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .3s, border-color .3s; }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__socials { display: flex; gap: 28px; justify-content: center; margin-top: 44px; flex-wrap: wrap; font-family:'JetBrains Mono',monospace; font-size: 14px; }
.contact__socials a { color: var(--muted); transition: color .3s; }
.contact__socials a:hover { color: var(--ink); }
.contact__foot { margin-top: 40px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 1px; }

/* ---------- Customs Core — case file room ---------- */
.cc-lead { max-width: 62ch; color: var(--ink); font-size: clamp(16px, 1.7vw, 21px); margin-bottom: clamp(20px, 3.6vh, 38px); }
.cc-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); margin-bottom: clamp(20px, 3.6vh, 38px); }
.cc-step { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: clamp(15px, 1.5vw, 22px); background: linear-gradient(160deg, rgba(12,15,26,0.78), rgba(8,10,18,0.55)); transition: border-color .4s, transform .4s var(--ease); transform-style: preserve-3d; }
.cc-step:hover { border-color: rgba(0,240,255,0.4); transform: translateY(-4px); }
.cc-step__n { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 2px; color: var(--accent); }
.cc-step h3 { font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; margin: 7px 0 6px; letter-spacing: -0.01em; }
.cc-step p { font-size: clamp(12.5px, 0.95vw, 14px); color: var(--muted); line-height: 1.45; }
.cc-step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -13px; transform: translateY(-50%); color: var(--accent); font-size: 14px; opacity: .6; }
.cc-metrics { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 52px); margin-bottom: clamp(20px, 3.4vh, 36px); }
.cc-metric b { display: block; font-family: 'JetBrains Mono', monospace; font-size: clamp(26px, 3vw, 40px); font-weight: 700; color: var(--accent); text-shadow: var(--glow); letter-spacing: -0.01em; }
.cc-metric span { font-size: 12px; color: var(--muted); letter-spacing: .4px; }
.cc-cta { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .cc-flow { grid-template-columns: repeat(2, 1fr); }
  .cc-step::after { display: none !important; }
}

/* ---------- Reveal animations (triggered per-room) ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.room.is-active .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav__links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px; font-size: 26px; background: rgba(5,6,10,0.96); backdrop-filter: blur(14px); transform: translateY(-100%); transition: transform .6s var(--ease); z-index: 55; }
  .nav.is-open .nav__links { transform: none; }
  .nav__burger { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; z-index: 60; }
  .nav__burger span { width: 26px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .projects { grid-template-columns: 1fr; }
  .project:nth-child(n+3) { display: none; } /* keep hero room readable on tiny screens */
  .map { display: none; }
  .room--core .section-head { margin-bottom: 16px; }
  .cc-lead { font-size: 14.5px; margin-bottom: 18px; }
  .cc-flow { gap: 10px; margin-bottom: 18px; }
  .cc-step { padding: 14px; border-radius: 12px; }
  .cc-step h3 { margin: 6px 0 0; font-size: 15px; }
  .cc-step p { display: none; }            /* keep the 4-step flow compact on phones */
  .cc-metrics { gap: 14px 24px; margin-bottom: 18px; }
  .cc-metric b { font-size: 25px; }
  .cc-cta { gap: 10px; }
  .cc-cta .btn { padding: 13px 22px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Keyboard focus (a11y) ---------- */
/* The custom cursor hides the system cursor, so a visible focus ring is the only
   wayfinding a keyboard user gets. :focus-visible keeps it off for mouse clicks. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .nav__cta:focus-visible { outline-offset: 4px; box-shadow: var(--glow); }
.project__link:focus-visible { outline-offset: -3px; }

/* ---------- No-JS fallback (paired with <noscript> in index.html) ---------- */
.nojs { position: fixed; inset: 0; z-index: 100000; background: var(--bg); color: var(--ink); display: grid; place-items: center; padding: 8vw; text-align: center; }
.nojs__inner { max-width: 640px; }
.nojs h1 { font-size: clamp(28px, 6vw, 54px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 20px; }
.nojs h1 em { color: var(--accent); text-shadow: var(--glow); font-style: normal; }
.nojs p { color: var(--muted); font-size: clamp(15px, 2vw, 19px); line-height: 1.6; margin-bottom: 22px; }
.nojs a { color: var(--accent); border-bottom: 1px solid var(--line); }
.nojs__links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 14px; margin-top: 10px; }

/* ============================================================
   v2 "alive" — labyrinth, FX, parallax, kinetic travel
   ============================================================ */
:root { --gpx: 0; --gpy: 0; }

/* Foreground FX canvas (cursor trail · ripples · warp lines) */
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 7; pointer-events: none; }

/* ---------- Labyrinth: chambers, conduits, comet ---------- */
.maze .cell { fill: none; stroke: rgba(140,160,220,0.10); stroke-width: 1.5; }
.maze .conduit { fill: none; stroke: rgba(0,240,255,0.20); stroke-width: 2; stroke-dasharray: 10 14; animation: flow 1.1s linear infinite; }
.maze .deadend { fill: var(--bg-2); stroke: rgba(0,240,255,0.40); stroke-width: 2; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.maze .pin { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); animation: pinPulse 2.4s var(--ease) infinite; }
@keyframes pinPulse { 50% { opacity: .5; } }
.maze .comet { fill: #fff; filter: drop-shadow(0 0 10px var(--accent)) drop-shadow(0 0 20px var(--accent)); transition: opacity .4s; }
.maze .comet-tail { fill: var(--accent); opacity: .5; filter: drop-shadow(0 0 6px var(--accent)); }

/* ---------- Mouse parallax on the active room ---------- */
.room.is-active .room__inner { transform: translate3d(calc(var(--gpx) * 16px), calc(var(--gpy) * 16px), 0); transition: transform .25s linear; }

/* ---------- Kinetic "warp" while travelling fast ---------- */
.is-fast .grain { opacity: .12; }
.is-fast .scan { opacity: .4; }

/* ---------- Project card: shine sweep + lift ---------- */
.project { transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.project:hover { box-shadow: 0 20px 55px -22px rgba(0,240,255,0.45); }
.project::before { content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%; z-index: 4; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(0,240,255,0.12), transparent); transform: skewX(-18deg); opacity: 0; }
.project:hover::before { opacity: 1; animation: shine 1.05s var(--ease); }
@keyframes shine { from { left: -60%; } to { left: 130%; } }

/* ---------- Stack rows: staggered entrance ---------- */
.stack__list li { transform: translateX(-14px); opacity: 0; }
.room.is-active .stack__list li { animation: rowIn .6s var(--ease) forwards; animation-delay: calc(var(--li) * .08s + .2s); }
@keyframes rowIn { to { transform: none; opacity: 1; } }

/* ---------- Minimap: interactive + tooltip ---------- */
.map { pointer-events: auto; }
.map .node { cursor: pointer; transition: r .2s var(--ease); }
.map .node:hover { r: 8; fill: var(--accent); stroke: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.map__tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--accent); background: rgba(5,6,10,0.92); border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.map__tip.show { opacity: 1; }

@media (max-width: 640px) {
  .map { display: none; }   /* keep the minimap hidden on phones (matches base rule) */
}
