/* ============================================================
   VERITAS AI — cinematic interface layer
   ============================================================ */

:root {
  --bg: #030509;
  --ink: #eaf0f8;
  --dim: #97a2b8;
  --faint: #5b667c;

  --cyan: #6fe0ff;
  --cyan-deep: #2b9fe8;
  --gold: #ffc987;
  --violet: #b9a0ff;
  --green: #7cf0c3;

  --glass-bg: rgba(255, 255, 255, 0.035);
  --glass-line: rgba(255, 255, 255, 0.09);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { 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(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-halo { display: none; }
}

::selection { background: rgba(111, 224, 255, 0.25); color: #fff; }

/* ---------- fixed layers ---------- */

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(1, 2, 6, 0.55) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- cursor ---------- */

.cursor-dot,
.cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(111, 224, 255, 0.9);
}
.cursor-halo {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(111, 224, 255, 0.35);
  background: radial-gradient(circle, rgba(111, 224, 255, 0.07), transparent 70%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out);
}
.cursor-halo.is-hover {
  width: 72px;
  height: 72px;
  border-color: rgba(111, 224, 255, 0.65);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 4vw, 3.5rem);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  pointer-events: none;
}
.nav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(3, 5, 9, 0.55), rgba(3, 5, 9, 0));
  mask-image: linear-gradient(to bottom, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
  z-index: -1;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.nav__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--glass-line);
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
  background: var(--glass-bg);
  box-shadow: 0 0 18px rgba(111, 224, 255, 0.12) inset;
}
.nav__name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.34em;
}
.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}
.nav__links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--ink); }

/* ---------- progress ---------- */

.progress {
  position: fixed;
  top: 50%;
  right: clamp(0.9rem, 2vw, 1.8rem);
  transform: translateY(-50%);
  z-index: 100;
  width: 1px;
  height: 130px;
  background: rgba(255, 255, 255, 0.12);
}
.progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--cyan), rgba(111, 224, 255, 0.2));
  box-shadow: 0 0 8px rgba(111, 224, 255, 0.6);
}

/* ---------- scenes / beats ---------- */

main { position: relative; z-index: 10; }

.scene { position: relative; }

.beat {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14vh clamp(1.4rem, 6vw, 6rem);
  position: relative;
}
.beat--tall { min-height: 130vh; }
.beat--panel { align-items: center; }

/* cinematic scrim — keeps type readable when the universe flares up */
.beat::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90rem, 120vw);
  height: 78%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(2, 4, 9, 0.8),
    rgba(2, 4, 9, 0.45) 55%,
    transparent 100%
  );
}

/* editorial, left-aligned section intros */
.beat--intro {
  align-items: flex-start;
  text-align: left;
}
.beat--intro > * {
  width: min(58rem, 100%);
  margin-left: auto;
  margin-right: auto;
}
.beat--intro .sub { margin-left: auto; margin-right: auto; }

/* ---------- typography ---------- */

.whisper {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  letter-spacing: 0.06em;
  color: #c3cdde;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(2, 4, 9, 0.9), 0 6px 28px rgba(2, 4, 9, 0.7);
}

.colossal {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #f4f7fc;
  text-shadow:
    0 2px 4px rgba(2, 4, 9, 0.85),
    0 12px 44px rgba(2, 4, 9, 0.6);
}
.colossal--glow {
  color: #e6f7ff;
  text-shadow:
    0 2px 4px rgba(2, 4, 9, 0.85),
    0 12px 44px rgba(2, 4, 9, 0.6),
    0 0 42px rgba(111, 224, 255, 0.35);
}

.sub {
  margin-top: 1.8rem;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  color: #aab5ca;
  text-shadow: 0 1px 3px rgba(2, 4, 9, 0.9), 0 4px 22px rgba(2, 4, 9, 0.7);
}
.sub--wide { max-width: 44rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 3px rgba(2, 4, 9, 0.95), 0 3px 16px rgba(2, 4, 9, 0.8);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--violet { color: var(--violet); }
.eyebrow--green { color: var(--green); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 9rem);
  letter-spacing: 0.14em;
  color: #f2f7fd;
  text-shadow:
    0 3px 6px rgba(2, 4, 9, 0.85),
    0 16px 60px rgba(2, 4, 9, 0.55),
    0 0 70px rgba(111, 224, 255, 0.28);
}
.tagline {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  color: var(--dim);
  text-shadow: 0 1px 3px rgba(2, 4, 9, 0.95), 0 3px 16px rgba(2, 4, 9, 0.8);
}

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(46px);
  filter: blur(8px);
  transition:
    opacity 1.2s var(--ease-out),
    transform 1.2s var(--ease-out),
    filter 1.2s var(--ease-out);
}
.reveal[data-delay="1"] { transition-delay: 0.18s; }
.reveal[data-delay="2"] { transition-delay: 0.36s; }
.reveal[data-delay="3"] { transition-delay: 0.54s; }
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- scroll hint ---------- */

.scroll-hint {
  position: absolute;
  bottom: 9vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.reveal.scroll-hint { transform: translateX(-50%) translateY(46px); }
.reveal.scroll-hint.is-in { transform: translateX(-50%) translateY(0); }
.scroll-hint__line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: hint-pulse 2.4s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes hint-pulse {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}
.scroll-hint__label {
  font-size: 0.66rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- floating fragments ---------- */

.frag-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.frag {
  position: absolute;
  left: var(--fx);
  top: var(--fy);
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 1px 3px rgba(2, 4, 9, 0.95), 0 3px 14px rgba(2, 4, 9, 0.8);
  transition: opacity 1.6s ease;
  animation: frag-drift 9s ease-in-out infinite alternate;
  animation-delay: var(--fd);
}
.frag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.7em;
  border-radius: 50%;
  background: rgba(151, 162, 184, 0.6);
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(151, 162, 184, 0.5);
}
.beat--frags.is-in .frag { opacity: 0.75; }
@keyframes frag-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(14px, -22px); }
}

/* ---------- glass ---------- */

.glass {
  position: relative;
  background: linear-gradient(165deg, rgba(11, 16, 27, 0.78), rgba(5, 8, 15, 0.68));
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, var(--node-glow, rgba(111, 224, 255, 0.08)), transparent 70%);
}

.twin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  width: min(60rem, 100%);
}
.glass--sliver {
  padding: 2.2rem 2.4rem;
  text-align: left;
}
.glass__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.glass__text {
  color: var(--dim);
  font-size: 0.95rem;
}

/* ---------- product nodes ---------- */

.node {
  width: min(64rem, 100%);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  text-align: left;
}
.node--gold   { --node-glow: rgba(255, 201, 135, 0.10); --node-accent: var(--gold); }
.node--violet { --node-glow: rgba(185, 160, 255, 0.10); --node-accent: var(--violet); }
.node--green  { --node-glow: rgba(124, 240, 195, 0.10); --node-accent: var(--green); }

.node__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.node__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--node-accent);
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
}
.node__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
}
.node__desc {
  color: var(--dim);
  max-width: 46rem;
  font-size: clamp(0.94rem, 1.25vw, 1.05rem);
  margin-bottom: 2rem;
}
.node__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 1.8rem 0 0.9rem;
}
.node__foot {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--dim);
  font-style: italic;
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 1em;
  border-radius: 100px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.badge--live { color: var(--green); }
.badge--live i {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: badge-pulse 2s ease-in-out infinite;
}
.badge--dev { color: var(--gold); }
.badge--dev i {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 201, 135, 0.7);
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.node__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.subnode {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.6rem 1.7rem;
  background: rgba(255, 255, 255, 0.02);
}
.subnode__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--node-accent);
}
.subnode__tag {
  font-size: 0.82rem;
  color: var(--faint);
  margin: 0.35rem 0 1.1rem;
}

/* capability lists */

.caps {
  list-style: none;
  display: grid;
  gap: 0.55rem 1.4rem;
}
.caps li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--dim);
}
.caps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--node-accent, var(--cyan));
  opacity: 0.75;
  box-shadow: 0 0 7px var(--node-accent, var(--cyan));
}
.caps--flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.caps--flow li {
  padding: 0.45em 1em;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, color 0.3s;
}
.caps--flow li::before { display: none; }
.caps--flow li:hover {
  border-color: var(--node-accent);
  color: var(--ink);
}

/* borsel queries */

.queries {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}
.query {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--ink);
  padding: 0.9rem 1.3rem;
  border-left: 2px solid var(--node-accent);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 70%);
  border-radius: 0 12px 12px 0;
  transition: background 0.4s, transform 0.4s var(--ease-out);
}
.query:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 80%);
  transform: translateX(6px);
}

/* neuro pilot steps */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 1.15em;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, color 0.3s;
}
.step:hover { border-color: var(--node-accent); color: var(--ink); }
.step span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: var(--node-accent);
  letter-spacing: 0.1em;
}

/* ---------- infra orbits ---------- */

.orbits {
  display: flex;
  gap: clamp(0.8rem, 3vw, 2rem);
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.orbit {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding: 0.9em 1.8em;
  border-radius: 100px;
  border: 1px solid var(--glass-line);
  background: rgba(6, 9, 16, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 3px rgba(2, 4, 9, 0.9);
}
.orbit--gold   { color: var(--gold);   box-shadow: 0 0 26px rgba(255, 201, 135, 0.12); }
.orbit--violet { color: var(--violet); box-shadow: 0 0 26px rgba(185, 160, 255, 0.12); }
.orbit--green  { color: var(--green);  box-shadow: 0 0 26px rgba(124, 240, 195, 0.12); }

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2.2rem clamp(1.5rem, 4vw, 3.5rem);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- focus chips & value orbits ---------- */

.glass--full { grid-column: 1 / -1; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chips li {
  padding: 0.45em 1em;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, color 0.3s;
}
.chips li:hover {
  border-color: var(--cyan);
  color: var(--ink);
}

.orbit--cyan { color: var(--cyan); box-shadow: 0 0 26px rgba(111, 224, 255, 0.1); }

/* ---------- living node link (SpikeBulls → spikebulls.site) ---------- */

.node-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: inherit;
  text-decoration: none;
}
.node-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.14em;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--node-accent, var(--cyan)), transparent);
  box-shadow: 0 0 14px var(--node-accent, var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.node-link:hover::after { transform: scaleX(1); }

.node-link__text {
  background: linear-gradient(
    100deg,
    currentColor 40%,
    var(--node-accent, var(--cyan)) 50%,
    currentColor 60%
  );
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
}
.node-link:hover .node-link__text {
  -webkit-text-fill-color: transparent;
  animation: link-shine 1.4s var(--ease-out) infinite;
}
@keyframes link-shine {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

.node-link__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.34em 0.62em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  font-size: 0.36em;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--node-accent, var(--cyan));
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.node-link__pill em {
  font-style: normal;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.65s var(--ease-out), opacity 0.45s;
}
.node-link__pill i {
  font-style: normal;
  transition: transform 0.4s var(--ease-out);
}
.node-link:hover .node-link__pill {
  border-color: var(--node-accent, var(--cyan));
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 22px rgba(255, 201, 135, 0.22);
}
.node-link:hover .node-link__pill em {
  max-width: 14em;
  opacity: 1;
}
.node-link:hover .node-link__pill i {
  transform: translate(0.18em, -0.18em);
}

/* click → energy burst before warp to the site */
.link-burst {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 24px var(--gold), inset 0 0 14px var(--gold);
  animation: burst-out 0.9s var(--ease-out) forwards;
}
.link-burst::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 201, 135, 0.55);
  animation: burst-out 1.1s var(--ease-out) forwards;
}
@keyframes burst-out {
  0% { opacity: 1; scale: 0.4; }
  100% { opacity: 0; scale: 14; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint__line { animation: none; }
  .frag { animation: none; }
  .reveal {
    transition-duration: 0.01s;
    filter: none;
    transform: none;
  }
}

@media (max-width: 640px) {
  .nav__links a:not(:last-child) { display: none; }
  .progress { display: none; }
  .beat { padding-left: 1.2rem; padding-right: 1.2rem; }
  .node { padding: 1.6rem 1.3rem; }
}
