/* ═════════════════════════════════════════════════════════════
   VIGDER · SPECTRE · tech couture
   אתר קונספט מאת Elevate Creative
   ═════════════════════════════════════════════════════════════ */

/* brand face: Stardom, reserved for large display moments only */
@font-face {
  font-family: 'Stardom';
  src: url('../assets/fonts/Stardom-Regular.woff2') format('woff2'),
       url('../assets/fonts/Stardom-Regular.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --void: #050508;
  --void-2: #08080e;
  --paper: #eef1f6;
  --ice: #9fc7ff;
  --volt: #4d9fff;
  --dim: rgba(238, 241, 246, 0.55);
  --faint: rgba(238, 241, 246, 0.35);
  --line: rgba(159, 199, 255, 0.16);
  --f-disp: 'Heebo', Arial, sans-serif;
  --f-body: 'IBM Plex Sans Hebrew', 'Heebo', Arial, sans-serif;
  --f-tech: 'Space Grotesk', 'Heebo', sans-serif;
  --f-brand: 'Stardom', 'Space Grotesk', serif;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: clip;
  min-height: 100vh;
}
body.is-locked { overflow: hidden; }

::selection { background: var(--volt); color: #04101f; }

html { scrollbar-width: thin; scrollbar-color: var(--volt) #020308; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #020308; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ice), var(--volt) 45%, #123a6e);
  border-radius: 99px;
  border: 2px solid #020308;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: var(--f-tech); }

/* ─── grain / scanline ─── */
.grain {
  position: fixed; inset: -60%;
  width: 220%; height: 220%;
  pointer-events: none; z-index: 96;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.1s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(0, 0); }
}

.scanline {
  position: fixed; left: 0; right: 0; top: -2%;
  height: 1px; z-index: 95; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(120, 180, 255, 0.55), transparent);
  animation: scanMove 8.5s linear infinite;
  opacity: 0;
}
@keyframes scanMove {
  0% { top: -2%; opacity: 0; }
  3% { opacity: 0.4; }
  13% { top: 102%; opacity: 0.28; }
  14% { opacity: 0; }
  100% { top: 102%; opacity: 0; }
}

/* ─── cursor ─── */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 220; }
  .cursor-dot {
    position: absolute; top: 0; left: 0;
    width: 5px; height: 5px; border-radius: 50%;
    margin: -2.5px 0 0 -2.5px;
    background: var(--volt);
    box-shadow: 0 0 10px rgba(77, 159, 255, 0.9);
    transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, box-shadow 0.3s ease;
  }
  .cursor-box {
    position: absolute; top: 0; left: 0;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(238, 241, 246, 0.45);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, opacity 0.3s ease;
  }
  body.cursor-hot .cursor-box {
    transform: rotate(45deg) scale(1.2);
    border-color: var(--volt);
  }
  body.cursor-torch .cursor-box { opacity: 0; }
  body.cursor-torch .cursor-dot {
    width: 16px; height: 16px; margin: -8px 0 0 -8px;
    background: #eef4ff;
    box-shadow: 0 0 34px 10px rgba(220, 236, 255, 0.5);
  }
}

/* ─── HUD ─── */
.hud { position: fixed; inset: 0; z-index: 140; pointer-events: none; }
.hud > * { pointer-events: auto; }

.hud-tick {
  position: absolute; width: 16px; height: 16px;
  border: 0 solid rgba(159, 199, 255, 0.5);
  pointer-events: none;
}
.hud-tick-tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.hud-tick-tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.hud-tick-bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.hud-tick-br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }

/* physical sides on purpose: the .ltr logo flips its own inline axis */
.hud-logo {
  position: absolute; top: 1.1rem; left: clamp(1.4rem, 3.5vw, 2.6rem);
  font-family: var(--f-brand); font-weight: 400; font-size: 1.4rem;
  letter-spacing: 0.4em;
  color: var(--paper);
  text-shadow: 0 0 18px rgba(120, 175, 255, 0.35);
  z-index: 2;
}
.hud-tools {
  position: absolute; top: 1.05rem; right: clamp(1.4rem, 3.5vw, 2.6rem);
  display: flex; gap: 0.6rem;
}
.hud-btn {
  padding: 0.5rem 1.1rem;
  font-family: var(--f-body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  border: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.hud-btn:hover { border-color: var(--volt); color: var(--ice); }
.hud-buy { background: rgba(77, 159, 255, 0.14); border-color: rgba(77, 159, 255, 0.4); }

.hud-sound {
  display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px;
  padding: 0 0.85rem 9px;
  min-height: 34px; min-width: 42px;
}
.hud-sound i {
  width: 2px; height: 5px;
  background: var(--faint);
  transition: background-color 0.3s ease;
}
.hud-sound.is-on i { background: var(--volt); animation: eqBar 0.9s ease-in-out infinite; }
.hud-sound.is-on i:nth-child(2) { animation-delay: 0.18s; }
.hud-sound.is-on i:nth-child(3) { animation-delay: 0.36s; }
@keyframes eqBar {
  0%, 100% { height: 5px; }
  50% { height: 14px; }
}

.hud-tele {
  position: absolute; bottom: 1.15rem; inset-inline-end: clamp(1.4rem, 3.5vw, 2.6rem);
  display: flex; align-items: baseline; gap: 0.9rem;
  font-size: 0.7rem; letter-spacing: 0.22em;
  color: var(--faint);
}
.hud-tele .ltr { font-weight: 500; }
.hud-tele b { color: var(--ice); font-weight: 500; }
#teleName { color: var(--dim); }

.hud-credit {
  position: absolute; bottom: 1.05rem; inset-inline-start: clamp(1.4rem, 3.5vw, 2.6rem);
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--paper);
  border: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}
.hud-credit:hover { border-color: var(--volt); }
.hud-credit i { color: var(--volt); font-style: normal; }

/* ─── buttons ─── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.9rem;
  font-family: var(--f-body); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--paper);
  border: 1px solid rgba(159, 199, 255, 0.3);
  background: rgba(159, 199, 255, 0.04);
  white-space: nowrap;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn::before, .btn::after {
  content: "";
  position: absolute; width: 9px; height: 9px;
  border: 0 solid var(--volt);
  opacity: 0;
  transition: all 0.3s ease;
}
.btn::before { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.btn::after { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.btn:hover { border-color: rgba(77, 159, 255, 0.75); background: rgba(77, 159, 255, 0.1); }
.btn:hover::before { opacity: 1; top: -5px; right: -5px; }
.btn:hover::after { opacity: 1; bottom: -5px; left: -5px; }
.btn-volt {
  border: 0;
  background: linear-gradient(120deg, var(--ice), var(--volt));
  color: #04101f;
}
.btn-volt:hover { filter: brightness(1.1); background: linear-gradient(120deg, var(--ice), var(--volt)); }
.btn-big { padding: 1.15rem 2.5rem; font-size: 1rem; }

/* ─── scene tags ─── */
.sig-tag, .ch-tag, .noir-tag {
  font-family: var(--f-tech); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: rgba(159, 199, 255, 0.55);
}

/* ═══ BOOT ═══ */
.boot {
  position: fixed; inset: 0; z-index: 400;
  background: #000;
  display: grid; place-items: center;
}
.boot-core {
  width: min(30rem, 82vw);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.boot-word {
  align-self: center;
  font-family: var(--f-brand); font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--paper);
}
.boot-bar { height: 1px; background: rgba(159, 199, 255, 0.18); overflow: hidden; }
.boot-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ice), var(--volt));
  transform: scaleX(0); transform-origin: right center;
}
.boot-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.72rem; letter-spacing: 0.26em;
  color: var(--dim);
}
.boot-meta b { color: var(--volt); font-weight: 500; }
.boot-flash { position: absolute; inset: 0; background: #eef4ff; opacity: 0; pointer-events: none; }

/* ═══ INDEX overlay ═══ */
.idx {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(2, 3, 8, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.2rem;
  padding: 1.4rem;
  visibility: hidden; opacity: 0;
}
.idx-head {
  font-family: var(--f-tech); font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--dim);
  direction: ltr;
}
.idx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  width: min(58rem, 94vw);
}
.idx-tile {
  background: var(--void);
  padding: clamp(1.4rem, 3.5vh, 2.4rem) 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.idx-tile b {
  font-family: var(--f-tech); font-weight: 700; font-size: 2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 199, 255, 0.5);
  transition: color 0.3s ease;
}
.idx-tile span { font-size: 0.92rem; font-weight: 600; color: var(--dim); transition: color 0.3s ease, text-shadow 0.3s ease; }
.idx-tile:hover { background: #0a1220; transform: translateY(-4px); }
.idx-tile:hover b { color: var(--volt); -webkit-text-stroke-color: transparent; }
.idx-tile:hover span { color: var(--paper); text-shadow: -2px 0 rgba(255, 89, 100, 0.7), 2px 0 rgba(87, 200, 255, 0.7); }
.idx-close {
  padding: 0.7rem 1.6rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--dim);
  border: 1px solid var(--line);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.idx-close:hover { color: var(--paper); border-color: var(--volt); }

/* ═══ 01 · ECLIPSE ═══ */
.eclipse {
  position: relative;
  height: 100svh;
  overflow: clip;
  background: var(--void);
}
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.horizon {
  position: absolute; left: 50%; bottom: -30vh; z-index: 0;
  width: 140vmin; height: 62vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(238, 244, 255, 0.34), rgba(120, 170, 255, 0.12) 45%, transparent 72%);
  filter: blur(26px);
  pointer-events: none;
}

.ring-wrap {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  will-change: transform;
}
.ring {
  position: relative;
  width: min(58vmin, 34rem);
  aspect-ratio: 1;
  border-radius: 50%;
}
.ring::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(223, 236, 255, 0.7);
  box-shadow:
    0 0 26px rgba(120, 175, 255, 0.3),
    0 0 90px rgba(77, 159, 255, 0.16),
    inset 0 0 44px rgba(77, 159, 255, 0.12);
}
.ring-glare {
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 7%, rgba(240, 246, 255, 0.95) 12%, transparent 19% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 5px));
  animation: glareSpin 12s linear infinite;
}
@keyframes glareSpin { to { transform: rotate(360deg); } }
.ring-disc {
  position: absolute; inset: 2px;
  border-radius: 50%;
  background: radial-gradient(100% 100% at 50% 26%, #000 58%, #01030b 84%, #041028);
}

.orbit {
  position: absolute; left: 50%; top: 50%;
  width: min(70vmin, 41rem);
  height: min(70vmin, 41rem);
  transform: translate(-50%, -50%);
  direction: ltr;
}
.orbit-text {
  font-family: var(--f-tech); font-weight: 500;
  font-size: 3.6px; letter-spacing: 0.6px;
  fill: rgba(200, 222, 255, 0.6);
}

.ec-center {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 1.4rem;
}
.ec-eyebrow {
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.22em;
  color: var(--dim);
}
.ec-eyebrow .ltr { font-size: 0.72rem; letter-spacing: 0.26em; color: rgba(159, 199, 255, 0.6); }
.ec-brand {
  margin-top: 1.3rem;
  font-family: var(--f-brand); font-weight: 400;
  font-size: clamp(2.7rem, 10vw, 8rem);
  line-height: 1;
  letter-spacing: 0.32em; text-indent: 0.32em;
  color: var(--paper);
  text-shadow:
    0 0 24px rgba(130, 180, 255, 0.5),
    0 0 80px rgba(77, 159, 255, 0.28);
  white-space: nowrap;
}
.ec-title {
  margin: 1.1rem 0 0.9rem;
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--paper);
}
.ec-sub { font-size: clamp(0.92rem, 1.6vw, 1.05rem); color: var(--dim); }
.ec-sub .ltr { color: var(--ice); letter-spacing: 0.22em; font-weight: 500; }

.ec-hint {
  position: absolute; bottom: 4.6rem; left: 0; right: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; letter-spacing: 0.26em;
  color: var(--faint);
}
.ec-hint i {
  width: 1px; height: 3rem;
  background: linear-gradient(180deg, var(--volt), transparent);
  animation: hintPulse 2.1s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hintPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ═══ 02 · SIGNAL ═══ */
.signal { background: #000; }
.signal-pin {
  position: relative;
  height: 100svh;
  display: grid; place-items: center;
  overflow: clip;
}
.signal-pin .sig-tag {
  position: absolute; top: 16%; left: 0; right: 0;
  text-align: center;
  direction: ltr;
}
.sig-stack {
  display: grid; place-items: center;
  width: min(64rem, 94vw);
}
.sig-line {
  grid-area: 1 / 1;
  position: relative;
  text-align: center;
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(2.1rem, 6.4vw, 5.4rem);
  line-height: 1.3;
  color: var(--paper);
  opacity: 0;
}
.sig-ghost {
  position: absolute; inset: 0;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.sig-ghost-r { color: #ff5964; }
.sig-ghost-c { color: #57c8ff; }
.sig-brand { color: var(--paper); }
.sig-vig {
  display: block;
  font-family: var(--f-brand); font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 1.05;
  letter-spacing: 0.3em; text-indent: 0.3em;
  text-shadow: 0 0 30px rgba(120, 175, 255, 0.4);
}
.sig-acro {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--f-tech); font-weight: 300;
  font-size: clamp(0.7rem, 2vw, 1.05rem);
  letter-spacing: 0.26em; text-indent: 0.26em;
  color: var(--ice);
}
.sig-ghost .sig-acro { color: inherit; }
.sig-ghost .sig-vig { text-shadow: none; }

/* ═══ 03 · LOOKS · channel theater ═══ */
.looks { background: var(--void); }
.looks-pin {
  position: relative;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 44rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 4vw, 4rem);
  padding: clamp(4.6rem, 9vh, 6rem) clamp(1.2rem, 5vw, 5rem);
  overflow: clip;
}
.ch-side { position: relative; z-index: 2; max-width: 30rem; justify-self: start; }
.ch-frame { position: relative; z-index: 1; height: min(74vh, 50rem); }

.ch-bignum {
  position: absolute; z-index: 0;
  bottom: -4%; inset-inline-end: -1.5%;
  font-family: var(--f-tech); font-weight: 700;
  font-size: clamp(11rem, 36vh, 24rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 199, 255, 0.14);
  user-select: none;
}

.ch-frame {
  border: 1px solid rgba(159, 199, 255, 0.09);
  box-shadow:
    0 30px 90px -30px rgba(77, 159, 255, 0.2),
    0 60px 160px -50px rgba(0, 0, 0, 0.85);
}
.ch-frame::before, .ch-frame::after {
  content: "";
  position: absolute; width: 15px; height: 15px; z-index: 3;
  border: 0 solid rgba(159, 199, 255, 0.65);
  pointer-events: none;
}
.ch-frame::before { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.ch-frame::after { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.ch-stage {
  position: absolute; inset: 0; overflow: hidden;
  filter: saturate(0.97) contrast(1.03);
}
.ch-stage::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(130% 130% at 50% 40%, transparent 55%, rgba(5, 5, 8, 0.62) 100%),
    linear-gradient(to top, rgba(5, 5, 8, 0.5), transparent 22%);
}
.ch-look {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
}
.ch-look.is-on { opacity: 1; visibility: visible; }
.ch-var {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; visibility: hidden;
  will-change: transform, filter;
}
.ch-var.is-active { opacity: 1; visibility: visible; }
.ch-ghost {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.ch-ghost-r { filter: url(#chanR); }
.ch-ghost-c { filter: url(#chanC); }
.ch-mesh {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(238, 244, 255, 0.13) 1px, transparent 1.6px);
  background-size: 22px 22px;
  mix-blend-mode: overlay;
  opacity: 0.45;
  pointer-events: none;
}
.ch-flash {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #eef4ff, #b9d6ff);
  opacity: 0;
  pointer-events: none;
}

.ch-count {
  display: inline-block; margin-top: 1.6rem;
  font-family: var(--f-tech); font-size: 0.85rem; letter-spacing: 0.2em;
  color: var(--faint);
}
.ch-count b { color: var(--ice); font-weight: 700; font-size: 1.15rem; }
.ch-name {
  margin-top: 0.5rem;
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(3rem, 6.4vw, 5.2rem);
  line-height: 1.06;
  color: var(--paper);
}
.ch-latin {
  margin-top: 0.2rem;
  font-family: var(--f-tech); font-weight: 500;
  font-size: 0.85rem; letter-spacing: 0.5em;
  color: var(--volt);
}
.ch-desc { margin-top: 1.1rem; color: var(--dim); font-weight: 300; max-width: 24rem; }

/* colorway picker */
.ch-colors {
  margin-top: 1.3rem;
  display: flex; align-items: center; gap: 1.1rem;
}
.ch-colors-label { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--faint); }
.ch-colors-label b { color: var(--ice); font-weight: 600; }
.ch-swatches { display: flex; gap: 0.7rem; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sw, #888);
  border: 1px solid rgba(238, 241, 246, 0.3);
  position: relative;
  transition: transform 0.25s ease, border-color 0.3s ease;
}
.swatch::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.swatch:hover { transform: scale(1.15); }
.swatch.is-active::after { border-color: var(--volt); }

.ch-row {
  margin-top: 1.5rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.ch-foot { margin-top: 1.2rem; font-size: 0.76rem; letter-spacing: 0.1em; color: var(--faint); }

/* ═══ marquee ═══ */
.marquee {
  position: relative; z-index: 5;
  transform: rotate(-2.2deg);
  margin: -2.6rem -2vw;
  width: 104vw;
  border-block: 1px solid var(--line);
  background: #02030a;
  padding: 0.85rem 0;
  overflow: clip;
}
.marquee-track { direction: ltr; display: flex; white-space: nowrap; will-change: transform; }
.marquee-track span {
  font-family: var(--f-tech); font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 2.4rem);
  letter-spacing: 0.3em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 199, 255, 0.45);
}

/* ═══ 04 · DARKROOM ═══ */
.darkroom {
  position: relative;
  height: 300vh;
  background: #000;
}
.dark-sticky {
  position: sticky; top: 0;
  height: 100svh;
  overflow: clip;
}
.dark-scene { position: absolute; inset: 0; z-index: 0; }
.dark-media {
  position: absolute; inset: 0;
}
.dark-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.88) contrast(1.03);
}

.dark-info { position: absolute; bottom: 13%; inset-inline-start: 9%; max-width: 24rem; }
.dark-info p { color: var(--dim); font-weight: 300; font-size: 0.95rem; }
.dark-lk {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.34em;
  color: var(--volt);
}
.dark-info h2 {
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
}
.dark-info p { color: var(--dim); font-size: 0.95rem; }
.dark-veil {
  position: absolute; inset: 0; z-index: 1;
  background: #000;
  opacity: 0.975;
  -webkit-mask-image: radial-gradient(circle 310px at var(--x, 50%) var(--y, 45%), transparent 0 46%, #000 76%);
  mask-image: radial-gradient(circle 310px at var(--x, 50%) var(--y, 45%), transparent 0 46%, #000 76%);
}

.dark-head {
  position: absolute; top: 7%; left: 0; right: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  text-align: center;
  padding: 0 1.2rem;
  pointer-events: none;
}
.dark-title {
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  color: var(--paper);
}
.dark-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem); font-weight: 300;
  color: var(--dim);
}
.dark-sub b { color: var(--ice); font-weight: 600; }
.dark-fr {
  font-family: var(--f-tech); font-weight: 300;
  font-size: 0.72rem; letter-spacing: 0.3em;
  color: rgba(159, 199, 255, 0.5);
}
.dark-hint {
  position: absolute; bottom: 6.5%; left: 0; right: 0; z-index: 2;
  text-align: center;
  font-size: 0.82rem; letter-spacing: 0.1em;
  color: var(--faint);
  padding: 0 1.2rem;
}

/* ═══ 05 · NOIR ═══ */
.noir {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(4.5rem, 9vh, 7rem) clamp(1.2rem, 6vw, 6rem);
  background:
    radial-gradient(58% 66% at 30% 55%, rgba(38, 76, 140, 0.24), transparent 66%),
    linear-gradient(180deg, #000, #04050d 55%, var(--void));
  overflow: clip;
}
.noir-ghost {
  position: absolute; top: 50%; inset-inline-end: -3%;
  transform: translateY(-50%);
  font-family: var(--f-tech); font-weight: 700;
  font-size: clamp(8rem, 24vw, 21rem);
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(159, 199, 255, 0.09);
  z-index: 0; user-select: none;
}
.noir-glow {
  position: absolute; z-index: 0;
  width: 48vmin; height: 48vmin; border-radius: 50%;
  right: 22%; top: 50%;
  transform: translate(50%, -50%);
  background: radial-gradient(circle, rgba(77, 159, 255, 0.17), transparent 66%);
  filter: blur(14px);
  pointer-events: none;
}
.noir-stage {
  position: relative; z-index: 1;
  height: min(74vh, 42rem);
  cursor: grab;
  touch-action: pan-y;
}
.noir-stage:active { cursor: grabbing; }
.noir-stage canvas { width: 100% !important; height: 100% !important; display: block; }
.noir-fallback { position: absolute; inset: 0; display: none; place-items: center; }
.noir.no-webgl .noir-fallback { display: grid; }
.noir.no-webgl canvas { display: none; }
.noir-fallback .ltr {
  font-family: var(--f-tech); font-weight: 700;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.2em;
  color: transparent;
  -webkit-text-stroke: 1px var(--volt);
}
.noir-hint {
  position: absolute; bottom: 0; right: 50%;
  transform: translateX(50%);
  font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--faint);
}
.noir-copy { position: relative; z-index: 1; max-width: 30rem; }
.noir-title {
  margin: 1.6rem 0 1.3rem;
  font-family: var(--f-brand); font-weight: 400;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 0.98; letter-spacing: 0.12em;
  color: var(--paper);
}
.noir-text { color: var(--dim); font-weight: 300; font-size: 1.02rem; line-height: 2; }
.noir-specs { margin-top: 1.7rem; }
.noir-specs li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  font-weight: 300; font-size: 0.9rem;
}
.noir-specs li:last-child { border-bottom: 1px solid var(--line); }
.noir-row { margin-top: 1.7rem; display: flex; align-items: center; gap: 1.5rem; }

/* ═══ 06 · FINALE ═══ */
.finale {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  text-align: center;
  background:
    radial-gradient(68% 52% at 50% 106%, rgba(52, 102, 175, 0.18), transparent 62%),
    var(--void);
  overflow: clip;
}
.fin-media {
  position: absolute; inset: 0; z-index: 0;
  overflow: clip;
}
.fin-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, #000 30%, transparent 78%);
  mask-image: radial-gradient(75% 65% at 50% 45%, #000 30%, transparent 78%);
  will-change: transform;
}

.fin-ring {
  position: absolute; left: 50%; top: 42%; z-index: 0;
  width: min(44vmin, 25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 232, 255, 0.65);
  box-shadow:
    0 0 36px rgba(90, 150, 255, 0.3),
    inset 0 0 30px rgba(90, 150, 255, 0.14);
  transform: translate(-50%, -50%);
  will-change: transform;
}
.fin-inner {
  position: relative; z-index: 1;
  max-width: 52rem;
  padding: clamp(5rem, 11vh, 8rem) 1.4rem 4.5rem;
}
.fin-kicker {
  font-family: var(--f-tech); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--volt);
}
.fin-title {
  margin: 1.3rem 0 1.4rem;
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  line-height: 1.14;
}
.fin-text { color: var(--dim); font-weight: 300; font-size: 1.08rem; line-height: 2.1; }
.fin-text b { color: var(--paper); font-weight: 600; }
.fin-inner .btn-big { margin-top: 2.4rem; }
.fin-footer {
  margin-top: 4.2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.8rem;
  font-size: 0.76rem; letter-spacing: 0.06em;
  color: var(--faint);
}
.fin-footer a { color: var(--ice); }
.fin-footer a:hover { color: var(--volt); }

/* ═══ modal ═══ */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(1, 2, 6, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
}
.modal-panel {
  position: relative;
  width: min(34rem, calc(100vw - 2.2rem));
  max-height: calc(100svh - 3rem);
  overflow: auto;
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(77, 159, 255, 0.1), transparent 55%),
    #060810;
  border: 1px solid rgba(77, 159, 255, 0.4);
  padding: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
  transform: translateY(42px);
  opacity: 0;
}
.modal-panel::before, .modal-panel::after {
  content: "";
  position: absolute; width: 14px; height: 14px;
  border: 0 solid var(--volt);
}
.modal-panel::before { top: 6px; right: 6px; border-top-width: 1px; border-right-width: 1px; }
.modal-panel::after { bottom: 6px; left: 6px; border-bottom-width: 1px; border-left-width: 1px; }
.modal-close {
  position: absolute; top: 0.95rem; inset-inline-end: 0.95rem;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  color: var(--dim);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.modal-close:hover { color: var(--volt); border-color: var(--volt); transform: rotate(90deg); }
.modal-tag {
  font-family: var(--f-tech); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--volt);
}
.modal-title {
  margin: 1.1rem 0 1rem;
  font-family: var(--f-disp); font-weight: 900;
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  line-height: 1.32;
}
.modal-text { color: var(--dim); font-weight: 300; line-height: 2; font-size: 0.97rem; }
.modal-text b { color: var(--paper); font-weight: 600; }
.modal-actions {
  margin-top: 1.8rem;
  display: flex; flex-direction: column; gap: 0.8rem; align-items: stretch;
}
.modal-foot {
  margin-top: 1.6rem;
  font-size: 0.66rem; letter-spacing: 0.3em;
  color: var(--faint);
}

/* ═══ responsive ═══ */
@media (max-width: 900px) {
  .hud-logo { font-size: 1rem; top: 1.15rem; letter-spacing: 0.28em; }
  .hud-btn { padding: 0.45rem 0.85rem; font-size: 0.72rem; }
  .hud-tele #teleName { display: none; }
  .hud-credit { font-size: 0.62rem; padding: 0.4rem 0.75rem; }

  .ring { width: min(76vmin, 22rem); }
  .ec-brand { font-size: clamp(2.5rem, 12vw, 4.4rem); letter-spacing: 0.24em; text-indent: 0.24em; }
  .ec-hint { bottom: 4.2rem; }

  .looks-pin {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.2rem;
    padding: 4.4rem clamp(1.1rem, 4vw, 2rem) 5.2rem;
  }
  .ch-frame { order: 1; height: 48vh; }
  .ch-side { order: 2; max-width: none; }
  .ch-count { margin-top: 0.4rem; }
  .ch-name { font-size: clamp(2.3rem, 9vw, 3.2rem); }
  .ch-desc { margin-top: 0.5rem; font-size: 0.92rem; }
  .ch-bignum { font-size: clamp(9rem, 24vh, 14rem); bottom: 0; }

  .darkroom { height: 260vh; }
  .dark-info { bottom: 15%; inset-inline-start: 7%; max-width: 20rem; }
  .dark-veil {
    -webkit-mask-image: radial-gradient(circle 200px at var(--x, 50%) var(--y, 45%), transparent 0 46%, #000 76%);
    mask-image: radial-gradient(circle 200px at var(--x, 50%) var(--y, 45%), transparent 0 46%, #000 76%);
  }

  .noir { grid-template-columns: 1fr; padding-top: 5.2rem; }
  .noir-stage { height: min(48vh, 24rem); order: -1; }
  .noir-glow { right: 50%; top: 24%; }
  .noir-copy { max-width: none; }

  .marquee { margin: -1.8rem -2vw; }
  .idx-grid { grid-template-columns: repeat(2, 1fr); }

  /* finale, rebuilt for small screens */
  .fin-media img { opacity: 0.12; object-position: center 16%; }
  .fin-ring { width: min(56vmin, 15rem); top: 34%; }
  .fin-inner { padding: 4.2rem 1.2rem 2.4rem; }
  .fin-kicker { font-size: 0.68rem; }
  .fin-title { font-size: clamp(2rem, 8.6vw, 2.9rem); line-height: 1.2; }
  .fin-text { font-size: 0.95rem; line-height: 1.95; }
  .fin-inner .btn-big {
    width: 100%;
    white-space: normal;
    line-height: 1.7;
    padding: 0.95rem 1.1rem;
    font-size: 0.92rem;
  }
  .fin-footer { flex-direction: column; gap: 0.45rem; margin-top: 3rem; }

  .ec-title { letter-spacing: 0.08em; }
  .sig-line { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}

/* ═══ reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .boot { display: none; }
  .grain, .scanline, .ring-glare { animation: none; }
  .sig-stack { display: flex; flex-direction: column; gap: 2.4rem; }
  .sig-line { opacity: 1; position: static; }
  .dark-veil { display: none; }
  .darkroom { height: auto; }
  .dark-sticky { position: relative; height: 100vh; }
  .ch-look { transition: none; }
}
