/* ══ GENESIS — Experience-Schicht ══
   Sea-Cat-inspirierte Techniken, eigenständig neu komponiert:
   Front-Staub (Typo-Verschränkung) · warmes Licht · Hotspots ·
   Progress-Ring + Rail · Experience-Gate im Loader. */

/* ── Tiefen-Ebene VOR der Typo: Bokeh-Staub ── */
.field--front { z-index: 3; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ── Warme Lichtquelle (wandert mit den Stationen) ── */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(
    46vw 38vh at var(--gx, 72%) var(--gy, 30%),
    color-mix(in srgb, var(--brass-srf) 52%, transparent),
    transparent 72%);
  opacity: var(--ga, .3);
}

/* ── Hotspots: Raute + Plus, Daten aus dem Strom ── */
.hotspots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hs { position: absolute; left: var(--hx); top: var(--hy); pointer-events: auto; }
.hs--a { --hx: 74%; --hy: 15%; }
.hs--b { --hx: 88%; --hy: 44%; }
.hs--c { --hx: 40%; --hy: 11%; }
.hs__pin {
  position: relative; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--brass);
}
.hs__diamond {
  position: absolute; width: 15px; height: 15px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out), background .3s;
}
.hs__ping {
  position: absolute; width: 15px; height: 15px;
  border: 1px solid currentColor; opacity: .6;
  transform: rotate(45deg);
  animation: hsPing 2.6s var(--ease-out) infinite;
}
.hs__plus { font-family: var(--f-mono); font-size: .85rem; line-height: 1; transform: translateY(-1px); }
.hs__pin:hover .hs__diamond,
.hs__pin[aria-expanded="true"] .hs__diamond { transform: rotate(45deg) scale(1.25); background: color-mix(in srgb, var(--brass-srf) 22%, transparent); }
@keyframes hsPing { to { transform: rotate(45deg) scale(2.3); opacity: 0; } }

.hs__panel {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translate(-50%, 6px);
  min-width: 15.5rem; max-width: min(74vw, 18rem);
  padding: .85rem 1rem;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-top: 2px solid var(--brass-srf);
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(27, 24, 19, .16);
  font-size: var(--fs-micro); letter-spacing: .07em; line-height: 1.9;
  text-align: left; text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
}
.hs__panel b { color: var(--fg); font-weight: 500; display: block; }
.hs__panel .ok  { color: var(--clear); }
.hs__panel .hum { color: var(--hil); }
.hs:hover .hs__panel,
.hs:focus-within .hs__panel,
.hs.open .hs__panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.hs--left .hs__panel { left: auto; right: -.4rem; transform: translate(0, 6px); }
.hs--left:hover .hs__panel, .hs--left:focus-within .hs__panel, .hs--left.open .hs__panel { transform: translate(0, 0); }

/* ── Scroll-Progress: Ring (Nav) + Rail (rechte Kante) ── */
.nav__prog { flex-shrink: 0; display: block; }
.nav__prog circle { transition: stroke-dashoffset .15s linear; }
.rail {
  position: fixed; right: clamp(.7rem, 1.5vw, 1.5rem); top: 16vh; bottom: 16vh;
  width: 1px; background: var(--line-soft); z-index: 40;
  pointer-events: none;
}
.rail i {
  display: block; width: 1px; height: 100%;
  background: var(--brass-srf);
  box-shadow: 0 0 9px color-mix(in srgb, var(--brass-srf) 70%, transparent);
  transform-origin: top; transform: scaleY(0);
}

/* ── Experience-Gate im Loader ── */
.loader__enter {
  margin-top: .4rem;
  padding: .8rem 1.6rem; min-height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 2rem;
  font-family: var(--f-mono); font-size: var(--fs-micro); letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg);
  cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), border-color .25s, color .25s;
}
.loader__enter.show { opacity: 1; transform: none; }
.loader__enter:hover { border-color: var(--brass); color: var(--brass); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .rail { display: none; }
}
@media (max-width: 560px) {
  .nav__prog { display: none; }             /* Nav-Platz: Marke + CTA zuerst */
  .hs--c { display: none; }                 /* dritter Hotspot: zu eng */
  .hs--a { --hx: 78%; --hy: 24%; }          /* auf der Display-Typo, nicht im Mono-Text */
  .hs--b { --hx: 76%; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .hs__ping { animation: none; opacity: 0; }
  .hs__panel { transition: none; }
  .loader__enter { transition: opacity .01ms; }
}
