/* =========================================================
   NOCATERATE — Edgerunners theme
   ========================================================= */
:root {
  --yellow: #fcee0a;
  --cyan: #00f0ff;
  --pink: #ff2a6d;
  --bg: #05060a;
  --ink: #e8f6ff;
  --dim: rgba(232, 246, 255, 0.6);
  --beat: 0; /* 0..1, driven by the music */

  --f-display: "Orbitron", sans-serif;
  --f-body: "Rajdhani", sans-serif;
  --f-mono: "Share Tech Mono", monospace;
}

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

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html.is-locked, html.is-locked body { overflow: hidden; }
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

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

/* cyber scrollbar */
html { scrollbar-width: thin; scrollbar-color: var(--yellow) #05060a; scrollbar-gutter: stable; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #05060a; }
::-webkit-scrollbar-thumb { background: var(--yellow); }
::selection { background: var(--yellow); color: #000; }

/* ---------- shared FX ---------- */
.scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.22) 3px, rgba(0,0,0,0) 4px);
}
.noise {
  position: absolute; inset: -50%; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: noise .4s steps(4) infinite;
}
@keyframes noise {
  0% { transform: translate(0,0); } 25% { transform: translate(-5%,3%); }
  50% { transform: translate(4%,-4%); } 75% { transform: translate(-3%,-2%); }
  100% { transform: translate(2%,4%); }
}
.blink { color: var(--pink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: var(--cyan); transform: translate(-3px, 0); mix-blend-mode: screen; animation: glitchA 2.6s infinite steps(1); }
.glitch::after  { color: var(--pink); transform: translate(3px, 0);  mix-blend-mode: screen; animation: glitchB 3.1s infinite steps(1); }
@keyframes glitchA {
  0%, 86%, 100% { clip-path: inset(0 0 100% 0); }
  87% { clip-path: inset(10% 0 60% 0); transform: translate(-6px, -2px); }
  90% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 1px); }
  93% { clip-path: inset(30% 0 45% 0); transform: translate(-3px, 0); }
}
@keyframes glitchB {
  0%, 80%, 100% { clip-path: inset(0 0 100% 0); }
  81% { clip-path: inset(70% 0 5% 0); transform: translate(6px, 2px); }
  84% { clip-path: inset(20% 0 65% 0); transform: translate(-5px, 0); }
  88% { clip-path: inset(45% 0 35% 0); transform: translate(4px, -1px); }
}

/* ---------- cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; }
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--yellow); box-shadow: 0 0 10px var(--yellow);
}
.cursor__ring {
  --c: rgba(0,240,255,.85);
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  background:
    linear-gradient(var(--c),var(--c)) 0 0 / 10px 1px,
    linear-gradient(var(--c),var(--c)) 0 0 / 1px 10px,
    linear-gradient(var(--c),var(--c)) 100% 0 / 10px 1px,
    linear-gradient(var(--c),var(--c)) 100% 0 / 1px 10px,
    linear-gradient(var(--c),var(--c)) 0 100% / 10px 1px,
    linear-gradient(var(--c),var(--c)) 0 100% / 1px 10px,
    linear-gradient(var(--c),var(--c)) 100% 100% / 10px 1px,
    linear-gradient(var(--c),var(--c)) 100% 100% / 1px 10px;
  background-repeat: no-repeat;
  transition: width .25s, height .25s, margin .25s, transform .25s;
}
.cursor.is-hover .cursor__ring {
  --c: var(--yellow);
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  transform: rotate(45deg);
}
.cursor.is-down .cursor__ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* =========================================================
   1. INTRO
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
}
.intro__bg {
  position: absolute; inset: -4%; width: 108%; height: 108%;
  object-fit: cover;
  opacity: 0; filter: blur(6px) saturate(1.3);
  animation: introBg 6s 1s ease-out forwards, drift 30s linear infinite alternate;
}
@keyframes introBg { to { opacity: .22; } }
@keyframes drift { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.1) translate(-1.5%, 1%); } }
.intro__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255,42,109,.22), transparent 60%),
    radial-gradient(ellipse at center, rgba(5,6,10,.35), rgba(5,6,10,.92) 75%);
}
.intro__center { text-align: center; position: relative; z-index: 2; padding: 0 16px; }
.intro__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 6.4vw, 5.6rem);
  letter-spacing: .08em;
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(252,238,10,.45), 0 0 60px rgba(252,238,10,.15);
  white-space: nowrap;
  opacity: 0;
  animation: introIn 1.4s .3s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes introIn {
  0%   { opacity: 0; letter-spacing: .6em; filter: blur(12px); }
  60%  { opacity: 1; filter: blur(0); }
  64%  { opacity: .2; }
  68%  { opacity: 1; }
  100% { opacity: 1; letter-spacing: .08em; }
}
.intro__bar {
  width: min(520px, 70vw); height: 2px; margin: 28px auto 22px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.intro__bar span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.7,0,.2,1);
}
.intro__prompt {
  font-family: var(--f-mono);
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .35em;
  color: var(--cyan);
  opacity: 0;
  transition: opacity .6s;
}
.intro.is-ready .intro__prompt { opacity: 1; animation: pulse 1.6s .6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.intro__corner {
  position: absolute; z-index: 2;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .15em;
  color: var(--dim);
  opacity: 0; animation: fadeIn .6s 1.2s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.intro__corner--tl { top: 20px; left: 20px; }
.intro__corner--tr { top: 20px; right: 20px; }
.intro__corner--bl { bottom: 20px; left: 20px; }
.intro__corner--br { bottom: 20px; right: 20px; }
.intro__boot { animation-delay: .2s; letter-spacing: .08em; line-height: 1.8; }
.intro__boot p { opacity: 0; animation: fadeIn .2s forwards; white-space: pre; }
.intro__boot p:nth-child(1) { animation-delay: .3s; }
.intro__boot p:nth-child(2) { animation-delay: .7s; }
.intro__boot p:nth-child(3) { animation-delay: 1.1s; }
.intro__boot b { color: var(--yellow); font-weight: 400; }

.intro.is-leaving { pointer-events: none; }

/* =========================================================
   2. TRANSITION
   ========================================================= */
.transition {
  position: fixed; inset: 0; z-index: 90;
  background: #000;
  visibility: hidden; /* stays laid out so the video's first frame is decoded early */
  pointer-events: none;
  cursor: pointer;
  will-change: opacity;
}
.transition.is-active { visibility: visible; pointer-events: auto; }
.transition video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.transition__skip {
  position: absolute; right: 20px; bottom: 20px; z-index: 3;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .2em;
  color: var(--dim);
  opacity: 0; animation: fadeIn .4s 1.5s forwards;
}
.transition__fallback { position: absolute; inset: 0; display: none; overflow: hidden; }
.transition.is-fallback video { display: none; }
.transition.is-fallback .transition__fallback { display: block; }
.slices { position: absolute; inset: 0; }
.slices i { position: absolute; left: 0; width: 100%; transform: translateX(-101%); }
.transition__text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2rem, 8vw, 6rem); letter-spacing: .15em;
  color: #000; white-space: nowrap;
  opacity: 0;
}


/* =========================================================
   3. SITE
   ========================================================= */
.site { visibility: hidden; position: relative; }
.site.is-on { visibility: visible; }

/* ---------- stage (background camera) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; will-change: transform; }
.stage__cam {
  position: absolute; inset: 0;
  transform-origin: 50% 55%;
  will-change: transform;
}
.stage__pan {
  position: absolute; left: 50%; top: 0;
  width: 100vw; height: 177.78vw; /* set precisely from JS */
  will-change: transform;
}
.stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
}
.stage__img--r, .stage__img--c { mix-blend-mode: screen; opacity: 0; visibility: hidden; will-change: transform, opacity; }

/* glow sitting on the earth, pulses with the bass */
.stage__earthglow {
  position: absolute; left: 50%; top: 44.5%;
  width: 80%; aspect-ratio: 1.45;
  transform: translate(-50%, -50%) scale(calc(1 + var(--beat) * .06));
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(120,220,255,.55), rgba(0,160,255,.18) 45%, transparent 70%);
  mix-blend-mode: screen;
  opacity: calc(.05 + var(--beat) * .55);
  pointer-events: none;
}
.stage__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* section background video — opens like a CRT switching on */
.stage__video {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  clip-path: inset(50% 0% 50% 0%);
  will-change: clip-path, opacity;
  background: #05060a;
}
.stage__video-el {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  will-change: transform;
}
.stage__video-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,6,10,.6), rgba(5,6,10,.35) 40%, rgba(5,6,10,.65));
}
.stage__flash {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px;
  background: #fff;
  box-shadow: 0 0 18px #fff, 0 0 50px var(--cyan), 0 0 90px var(--pink);
  transform: scaleX(0); opacity: 0;
}

/* placeholder until assets/sections-bg.mp4 exists: neon grid floor */
.stage__grid { position: absolute; inset: 0; display: none; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #2a0b3d 0%, #0b0618 45%, #05060a 75%); }
.stage__video.no-video .stage__grid { display: block; }
.stage__video.no-video .stage__video-el { display: none; }
.stage__grid::before {
  content: ""; position: absolute; left: -50%; right: -50%; top: 50%; height: 110%;
  background-image:
    linear-gradient(rgba(255,42,109,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.4) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(380px) rotateX(64deg);
  transform-origin: top center;
  animation: gridmove 1.6s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
          mask-image: linear-gradient(to bottom, transparent, #000 30%);
}
.stage__grid::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: var(--pink); box-shadow: 0 0 30px 6px rgba(255,42,109,.6);
}
@keyframes gridmove { to { background-position: 0 64px, 0 0; } }
.stage__dim { position: absolute; inset: 0; background: #05060a; opacity: 0; }
.stage__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.7) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.35), transparent 18%, transparent 82%, rgba(0,0,0,.45));
}

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud__frame { pointer-events: none !important; }
.hud__frame i {
  position: absolute; width: 22px; height: 22px;
  border-color: rgba(252,238,10,.5); border-style: solid; border-width: 0;
}
.hud__frame i:nth-child(1) { top: 62px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.hud__frame i:nth-child(2) { top: 62px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.hud__frame i:nth-child(3) { bottom: 70px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.hud__frame i:nth-child(4) { bottom: 70px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }

.hud__progress {
  position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: rgba(255,255,255,.06);
}
.hud__progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  box-shadow: 0 0 12px var(--yellow);
  transform: scaleX(0); transform-origin: left;
}
.hud__brand {
  position: absolute; top: 18px; left: 24px;
  font-family: var(--f-display); font-weight: 900; font-size: 1.25rem;
  color: var(--yellow);
  text-shadow: 0 0 calc(6px + var(--beat) * 16px) rgba(252,238,10,.6);
}
.hud__brand span { color: var(--pink); }
.hud__nav {
  position: absolute; top: 22px; right: 24px;
  display: flex; gap: 28px;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .15em;
}
.hud__nav a { position: relative; color: var(--dim); transition: color .2s; }
.hud__nav a i { font-style: normal; color: var(--pink); margin-right: 4px; }
.hud__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.hud__nav a:hover, .hud__nav a.is-active { color: var(--yellow); }
.hud__nav a:hover::after, .hud__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.hud__sound {
  position: absolute; left: 24px; bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(5,6,10,.75); border: 1px solid rgba(252,238,10,.35); color: var(--yellow);
  padding: 8px 16px 8px 12px; cursor: pointer;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 10px) 100%, 0 100%);
  text-align: left;
}
.hud__sound:hover { background: rgba(252,238,10,.08); }
.hud__sound-text { display: grid; line-height: 1.35; }
.hud__track {
  color: var(--dim); font-size: .6rem; letter-spacing: .12em;
  max-width: 170px; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
          mask-image: linear-gradient(90deg, #000 80%, transparent);
}
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; background: var(--yellow); height: 30%; animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.5s; }
.eq i:nth-child(4) { animation-delay: -.35s; } .eq i:nth-child(5) { animation-delay: -.65s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
.eq.is-live i { animation: none; transition: height .08s linear; }
.hud__sound.is-muted .eq i { animation: none; height: 20% !important; opacity: .5; }

.hud__readout {
  position: absolute; right: 24px; bottom: 24px;
  display: grid; justify-items: end; gap: 2px;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; color: var(--dim);
}
.hud__readout b { color: var(--yellow); font-weight: 400; }

/* ---------- content ---------- */
.content { position: relative; z-index: 10; }

.hero { position: relative; height: 280vh; }
.hero__sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
}
.hero__inner { padding: 0 16px; transform: translateY(-12vh); }
.hero__kicker {
  font-family: var(--f-mono); font-size: .85rem; letter-spacing: .3em; color: var(--cyan);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0,240,255,.5);
}
.hero__title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(2rem, 9.4vw, 11rem);
  line-height: .95;
  color: var(--yellow); /* read by the canvas */
  white-space: nowrap;
  position: relative;
}
/* real text keeps the layout + accessibility; the canvas draws (and dissolves) it */
.hero__title-text { color: transparent; }
.hero__title-fx { position: absolute; pointer-events: none; }
.hero__sub {
  margin-top: 14px;
  font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: .25em; text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.hero__sub i { color: var(--pink); font-style: normal; }
.hero__scroll {
  margin: 40px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .4em; color: var(--dim);
}
.hero__scroll i {
  width: 1px; height: 54px; background: linear-gradient(var(--yellow), transparent);
  animation: drip 1.8s ease-in-out infinite; transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__quote {
  position: absolute; left: 50%; top: 22vh; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  font-family: var(--f-mono); font-size: clamp(.95rem, 2.2vw, 1.4rem); letter-spacing: .12em;
  color: var(--ink); text-shadow: 0 0 14px rgba(0,240,255,.7), 0 2px 10px #000;
  opacity: 0;
}

/* scroll room for the dive onto the surface */
.dive { height: 240vh; }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  padding: 10vh 0;
  overflow: hidden;
}
.marquee__row { white-space: nowrap; overflow: hidden; }
.marquee__row--a {
  background: var(--yellow); color: #000;
  transform: rotate(-3deg) scale(1.1);
  box-shadow: 0 0 40px rgba(252,238,10,.3);
}
.marquee__row--b {
  color: transparent; -webkit-text-stroke: 1px var(--cyan);
  transform: rotate(2deg) scale(1.1);
  margin-top: 6px;
}
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 3rem);
  letter-spacing: .06em;
  padding: 6px 0;
}

/* ---------- panels ---------- */
.panel {
  position: relative;
  min-height: 100vh;
  padding: 18vh max(16px, 8vw) 14vh;
}
.panel--last { padding-bottom: 6vh; }
.wipe {
  position: absolute; left: 0; top: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--yellow) 70%, var(--pink));
  transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 20px var(--yellow);
}
.panel__head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.panel__num {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(3rem, 9vw, 7rem);
  line-height: .85;
  color: transparent; -webkit-text-stroke: 1px var(--pink);
}
.panel__kicker { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .3em; color: var(--cyan); margin-bottom: 4px; }
.panel__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 3.4rem); letter-spacing: .06em; line-height: 1.1;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(252,238,10,.3);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1000px; }

.card, .gig {
  --cut: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  position: relative;
  background: linear-gradient(160deg, rgba(10,16,30,.9), rgba(5,8,16,.82));
  border: 1px solid rgba(0, 240, 255, .25);
  padding: 38px 30px 30px;
  clip-path: var(--cut);
}
.card p + p { margin-top: 12px; }

/* ---------- glitch: entrance + bursts ---------- */
/* neon scan bar that jumps around during a glitch */
.card::before, .gig::before {
  content: ""; position: absolute; left: 0; right: 0; z-index: 3;
  top: var(--gy, 40%); height: 7px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.75) 20%, rgba(255,42,109,.75) 60%, transparent);
  mix-blend-mode: screen;
  opacity: 0; pointer-events: none;
}

/* materialize: a CRT slit opens, flickers, tears, settles */
.glitch-in { animation: glitchIn .75s steps(1, end) both; }
.glitch-in::before { animation: glitchBar .75s steps(1, end); }
@keyframes glitchIn {
  0%   { opacity: 0;  clip-path: polygon(0 47%, 100% 47%, 100% 53%, 0 53%); translate: -10px 0; }
  8%   { opacity: 1;  clip-path: polygon(0 38%, 100% 38%, 100% 60%, 0 60%); translate: 8px 0;
         text-shadow: 3px 0 rgba(255,42,109,.9), -3px 0 rgba(0,240,255,.9); }
  16%  { opacity: .25; }
  24%  { opacity: 1;  clip-path: polygon(0 6%, 100% 6%, 100% 34%, 0 34%, 0 52%, 100% 52%, 100% 94%, 0 94%); translate: -5px 0; }
  36%  { opacity: .55; clip-path: var(--cut); translate: 4px 0; }
  48%  { opacity: 1;  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 62%, 0 70%, 100% 70%, 100% 100%, 0 100%); translate: -2px 0;
         text-shadow: 2px 0 rgba(255,42,109,.8), -2px 0 rgba(0,240,255,.8); }
  60%  { clip-path: var(--cut); translate: 0 0; }
  72%  { clip-path: polygon(0 0, 100% 0, 100% 22%, 0 22%, 0 27%, 100% 27%, 100% 100%, 0 100%); translate: 3px 0; }
  84%, 100% { opacity: 1; clip-path: var(--cut); translate: 0 0; text-shadow: none; }
}

/* idle / hover burst: jitter, a band tears out, the scan bar flashes, RGB-split text */
.is-glitching { animation: boxGlitch .42s steps(1, end); }
.is-glitching::before { animation: glitchBar .42s steps(1, end); }
@keyframes boxGlitch {
  0%   { translate: 0 0; clip-path: var(--cut); }
  14%  { translate: -6px 0; clip-path: polygon(0 0, 100% 0, 100% calc(var(--gy) - 4%), 0 calc(var(--gy) - 4%), 0 calc(var(--gy) + 6%), 100% calc(var(--gy) + 6%), 100% 100%, 0 100%);
         text-shadow: 3px 0 rgba(255,42,109,.85), -3px 0 rgba(0,240,255,.85); border-color: var(--pink); }
  28%  { translate: 5px 0; clip-path: var(--cut); border-color: var(--cyan); }
  42%  { translate: -3px 1px; clip-path: polygon(0 0, 100% 0, 100% 18%, 0 18%, 0 24%, 100% 24%, 100% 100%, 0 100%);
         text-shadow: -2px 0 rgba(255,42,109,.8), 2px 0 rgba(0,240,255,.8); }
  56%  { translate: 0 0; clip-path: var(--cut); text-shadow: none; }
  70%  { translate: 4px 0; clip-path: polygon(0 0, 100% 0, 100% 71%, 0 71%, 0 76%, 100% 76%, 100% 100%, 0 100%);
         text-shadow: 2px 0 rgba(255,42,109,.7), -2px 0 rgba(0,240,255,.7); }
  84%, 100% { translate: 0 0; clip-path: var(--cut); text-shadow: none; }
}
@keyframes glitchBar {
  0%   { opacity: 0; }
  14%  { opacity: 1; top: var(--gy, 40%); }
  28%  { opacity: 0; }
  42%  { opacity: .9; top: 20%; height: 4px; }
  56%  { opacity: 0; }
  70%  { opacity: .8; top: 72%; height: 5px; }
  84%, 100% { opacity: 0; }
}
.card strong { color: var(--yellow); }
.card__tag {
  position: absolute; top: 0; left: 0;
  background: var(--cyan); color: #000;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em;
  padding: 3px 10px;
}
/* ---------- COMMS: intro box + encrypted channels ---------- */
.comms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: stretch; }
.comms__intro { display: flex; flex-direction: column; }
.comms__status { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .25em; color: var(--cyan); margin-bottom: 10px; }
.comms__head { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--yellow); margin-bottom: 10px; }
.comms__intro p:not(.comms__status):not(.comms__hint) { color: var(--dim); }
.comms__intro p + p { margin-top: 10px; }
.comms__hint { margin-top: auto !important; padding-top: 18px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; color: var(--pink); }
.comms__channels { display: grid; gap: 14px; }
button.chan { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.chan.is-copied .chan__state { color: var(--yellow); }

/* ---------- SNAKE.EXE (8-bit arcade in the comms box) ---------- */
.arcade {
  flex: 1; min-height: 240px;
  display: flex; flex-direction: column;
  margin-top: 18px;
  border: 1px solid rgba(0,240,255,.3);
  background: #04060c;
  outline: none; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.arcade:hover { border-color: rgba(0,240,255,.6); }
.arcade:focus-visible, .arcade.is-playing { border-color: var(--yellow); box-shadow: 0 0 24px rgba(252,238,10,.18); }
.arcade__bar {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 6px 10px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em; color: var(--cyan);
  border-bottom: 1px solid rgba(0,240,255,.2);
}
.arcade__bar--foot { border-bottom: 0; border-top: 1px solid rgba(0,240,255,.2); color: var(--dim); }
.arcade__bar b { color: var(--yellow); font-weight: 400; }
.arcade__mode { color: var(--pink); }
.arcade.is-playing .arcade__mode { color: var(--yellow); }
.arcade__help { color: rgba(232,246,255,.45); }
.arcade__screen { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.arcade__cv { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.arcade__screen::after { /* CRT scanlines + vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.28) 2px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.55));
}
.arcade__toast {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(.9rem, 2vw, 1.15rem); letter-spacing: .12em;
  color: var(--pink); text-shadow: 2px 0 var(--cyan), -2px 0 var(--pink);
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.arcade__toast.is-on { opacity: 1; }

.chan {
  display: block; padding: 16px 24px 14px;
  color: inherit; text-decoration: none;
  border-color: rgba(255,42,109,.35);
  transition: border-color .25s, box-shadow .25s;
}
.chan:hover, .chan:focus-visible, .chan.is-decrypted { border-color: var(--cyan); box-shadow: inset 0 0 40px rgba(0,240,255,.08); }
.chan:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.chan__top { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; }
.chan__id { color: var(--pink); }
.chan__net { color: var(--ink); }
.chan__signal { margin-left: auto; display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.chan__signal i { width: 3px; background: var(--pink); opacity: .35; animation: chanSignal 1.4s steps(1) infinite; }
.chan__signal i:nth-child(1) { height: 25%; } .chan__signal i:nth-child(2) { height: 50%; animation-delay: -.3s; }
.chan__signal i:nth-child(3) { height: 75%; animation-delay: -.7s; } .chan__signal i:nth-child(4) { height: 100%; animation-delay: -1.1s; }
@keyframes chanSignal { 0%, 60% { opacity: .35; } 61%, 80% { opacity: 1; } 81% { opacity: .35; } }
.chan.is-decrypted .chan__signal i { background: var(--cyan); opacity: 1; animation: none; }
.chan__handle {
  display: block; margin: 10px 0 6px;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem); letter-spacing: .04em;
  color: var(--yellow); white-space: nowrap; overflow: hidden;
}
.chan__handle b { font-weight: 900; color: var(--pink); opacity: .85; }
.chan__handle b.leak { color: var(--yellow); opacity: .45; }
.chan.is-decrypted .chan__handle { text-shadow: 0 0 18px rgba(252,238,10,.45); }
.chan__hex { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .3em; color: rgba(0,240,255,.55); }
.chan__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .2em; }
.chan__state { color: var(--pink); }
.chan.is-decrypted .chan__state { color: var(--cyan); }
.chan__go { color: var(--dim); transition: color .25s, letter-spacing .3s; }
.chan.is-decrypted .chan__go { color: var(--yellow); letter-spacing: .32em; }
@media (max-width: 860px) { .comms { grid-template-columns: 1fr; } }

/* ---------- BREACH PROTOCOL ---------- */
.bp-intro { max-width: 640px; color: var(--dim); margin: -26px 0 30px; }
.bp {
  --green: #19d48a;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start;
}
.bp-side { display: grid; gap: 24px; }
.bp-box {
  --cut: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  position: relative;
  background: linear-gradient(160deg, rgba(10,16,30,.92), rgba(5,8,16,.86));
  border: 1px solid rgba(252,238,10,.3);
  clip-path: var(--cut);
}
.bp-box__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--yellow); color: #000;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .18em;
  padding: 7px 36px 7px 14px; /* right side clears the 22px cut corner */
}
.bp-diff { display: inline-flex; gap: 4px; }
.bp-diff button {
  font: inherit; font-size: .66rem; letter-spacing: .15em; cursor: pointer;
  background: transparent; color: #000; border: 1px solid rgba(0,0,0,.45); padding: 2px 8px;
}
.bp-diff button[aria-pressed="true"] { background: #000; color: var(--yellow); }

/* matrix */
.bp-grid { display: grid; gap: 4px; padding: 18px; justify-content: center; }
.bp-cell {
  position: relative;
  width: clamp(44px, 9vw, 60px); aspect-ratio: 1;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: clamp(.95rem, 1.6vw, 1.15rem); letter-spacing: .05em;
  color: var(--yellow); background: transparent; border: 1px solid transparent;
  cursor: default; transition: background .15s, color .15s, border-color .15s;
}
.bp-cell.is-line { background: rgba(0,240,255,.09); }
.bp-cell.is-line:not(:disabled) { cursor: pointer; }
.bp-cell.is-line:not(:disabled):hover, .bp-cell.is-line:not(:disabled):focus-visible {
  border-color: var(--cyan); background: rgba(0,240,255,.2); color: #fff; outline: none;
}
.bp-cell.is-cross { background: rgba(252,238,10,.07); }
.bp-cell:disabled { color: rgba(252,238,10,.38); }
.bp-cell.is-used { color: rgba(232,246,255,.35); }
.bp-cell.is-pick { animation: bpPick .45s steps(1, end); }
@keyframes bpPick {
  0% { background: var(--cyan); color: #000; } 30% { background: transparent; color: var(--cyan); }
  60% { background: rgba(0,240,255,.5); color: #000; } 100% { background: transparent; }
}
.bp-turn { padding: 0 18px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .18em; color: var(--cyan); min-height: 1.2em; }
.bp-rule { padding: 6px 18px 24px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--dim); }

/* sequences */
.bp-seq-list { list-style: none; display: grid; gap: 8px; padding: 16px; }
.bp-seq {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 12px; border: 1px solid rgba(255,255,255,.08);
  font-family: var(--f-mono); font-size: .95rem; letter-spacing: .05em;
  transition: background .3s, border-color .3s;
}
.bp-seq__code { width: 34px; text-align: center; color: var(--ink); }
.bp-seq__code.is-hit { color: var(--cyan); text-shadow: 0 0 10px rgba(0,240,255,.7); }
.bp-seq__code.is-hint { color: var(--yellow); }
.bp-seq__state { margin-left: auto; font-size: .66rem; letter-spacing: .2em; color: var(--dim); }
.bp-seq.is-done { background: var(--green); border-color: var(--green); }
.bp-seq.is-done .bp-seq__code, .bp-seq.is-done .bp-seq__state { color: #021; text-shadow: none; }
.bp-seq.is-dead { border-color: rgba(255,42,109,.6); opacity: .6; }
.bp-seq.is-dead .bp-seq__state { color: var(--pink); }
.bp-tip { padding: 0 16px 24px; font-size: .82rem; color: var(--dim); }

/* buffer */
.bp-slots { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 16px 6px; }
.bp-slot {
  width: 42px; height: 42px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .92rem;
  border: 1px dashed rgba(252,238,10,.35); color: var(--ink);
}
.bp-slot.is-filled { border-style: solid; border-color: var(--yellow); }
.bp-slot.is-ghost { border-style: solid; border-color: var(--cyan); color: rgba(0,240,255,.6); }
.bp-count { font-size: .76rem; }
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px 16px; }
.bp-btn {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .2em; cursor: pointer;
  padding: 9px 16px; background: transparent; color: var(--yellow); border: 1px solid var(--yellow);
  transition: background .2s, color .2s, box-shadow .2s;
}
.bp-btn:hover, .bp-btn:focus-visible { background: var(--yellow); color: #000; box-shadow: 0 0 22px rgba(252,238,10,.45); outline: none; }

/* result overlay */
.bp-result { position: absolute; inset: -8px; z-index: 5; display: grid; place-items: center; background: rgba(3,4,8,.82); }
.bp-result[hidden] { display: none; }
.bp-result__panel {
  --cut: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  width: min(460px, 92%); padding: 26px 26px 10px; text-align: center;
  background: linear-gradient(160deg, #0b1324, #070a14); border: 1px solid var(--green);
  clip-path: var(--cut);
}
.bp-result.is-fail .bp-result__panel { border-color: var(--pink); }
.bp-result__kicker { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .3em; color: var(--green); }
.bp-result.is-fail .bp-result__kicker { color: var(--pink); }
.bp-result__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--yellow); margin: 6px 0 8px; }
.bp-result__text { color: var(--dim); }
.bp-result__items { list-style: none; display: grid; gap: 6px; margin: 16px 0 4px; text-align: left; }
.bp-result__items li {
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .08em;
  padding: 8px 12px; border: 1px solid rgba(25,212,138,.4); color: var(--ink);
}
.bp-result__items li b { color: var(--green); font-weight: 400; margin-right: 8px; }
.bp-result .bp-actions { justify-content: center; }

@media (max-width: 860px) {
  .bp { grid-template-columns: 1fr; }
  .bp-intro { margin-top: -20px; }
}

/* profile dossier */
.dossier { display: grid; gap: 7px; margin: 4px 0 18px; }
.dossier > div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; align-items: baseline; }
.dossier dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; color: var(--pink); }
.dossier dd { font-size: 1rem; line-height: 1.35; color: var(--ink); }
.dossier__hl { font-family: var(--f-display); font-weight: 900; letter-spacing: .08em; color: var(--yellow); }
.dossier__live { font-family: var(--f-mono); font-size: .8rem !important; letter-spacing: .12em; color: var(--cyan) !important; }
.dossier__redacted { font-family: var(--f-mono); font-size: .8rem !important; letter-spacing: .12em; color: var(--dim) !important; }
.dossier__redacted span { color: var(--ink); letter-spacing: 0; margin-right: 6px; }
.dossier__bio { color: var(--dim); }
.dossier__bio + .dossier__bio { margin-top: 10px; }
@media (max-width: 520px) { .dossier > div { grid-template-columns: 1fr; gap: 0; } }

/* skills: cyberware modules */
.skills { list-style: none; display: grid; gap: 16px; margin-top: 6px; }
.skills li { position: relative; padding-left: 14px; border-left: 2px solid rgba(255,42,109,.6); }
.skills__id { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .2em; color: var(--pink); }
.skills h4 { font-family: var(--f-display); font-size: 1.02rem; letter-spacing: .04em; color: var(--yellow); margin: 2px 0 4px; }
.skills p { font-size: .95rem; line-height: 1.45; color: var(--dim); }
.tools__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .3em; color: var(--cyan); margin: 22px 0 10px; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em;
  padding: 5px 10px;
  border: 1px solid rgba(0,240,255,.35); color: var(--ink);
  background: rgba(0,240,255,.06);
  transition: border-color .2s, color .2s, background .2s;
}
.tools li:hover { border-color: var(--yellow); color: var(--yellow); background: rgba(252,238,10,.08); }

/* scan sweep when a card enters */
.card::after, .gig::after {
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(0,240,255,.22), transparent);
  pointer-events: none; opacity: 0;
}
.card.is-in::after, .gig.is-in::after { animation: sweep 1.1s ease-out forwards; }
@keyframes sweep { 0% { top: -30%; opacity: 1; } 100% { top: 110%; opacity: 0; } }

.gig { border-color: rgba(252, 238, 10, .25); transition: border-color .3s; transform-style: preserve-3d; }
.gig:hover { border-color: var(--yellow); }
.gig { display: flex; flex-direction: column; }
.gig__thumb {
  margin: -38px -30px 18px;           /* bleed to the card edges */
  aspect-ratio: 16 / 9; overflow: hidden;
  border-bottom: 1px solid rgba(252,238,10,.25);
  background: #05060a;
}
.gig__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; filter: saturate(.85) brightness(.9); }
.gig:hover .gig__thumb img { transform: scale(1.06); filter: saturate(1.1) brightness(1); }
.gig { cursor: pointer; }
.gig:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.gig__open {
  margin-top: auto; padding-top: 18px;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .2em; color: var(--yellow);
  transition: letter-spacing .3s;
}
.gig:hover .gig__open { letter-spacing: .35em; }

/* lock the page behind an open gig file (Lenis adds this class when stopped) */
html.lenis-stopped { overflow: hidden; }

/* ---------- GIG FILE (project summary box) ---------- */
.brief { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px 16px; }
.brief[hidden] { display: none; }
.brief__backdrop {
  position: absolute; inset: 0;
  background: rgba(3,4,8,.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.brief.is-open .brief__backdrop { opacity: 1; }
.brief__panel {
  --cut: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  position: relative;
  width: min(760px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(160deg, #0b1324, #070a14);
  border: 1px solid rgba(252,238,10,.45);
  box-shadow: 0 0 60px rgba(252,238,10,.12);
  clip-path: var(--cut);
  scrollbar-width: thin; scrollbar-color: var(--yellow) transparent;
}
.brief__panel::before { /* scan bar used by the glitch-in */
  content: ""; position: absolute; left: 0; right: 0; z-index: 3; top: var(--gy, 40%); height: 7px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.75) 20%, rgba(255,42,109,.75) 60%, transparent);
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
}
.brief__tag {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--yellow); color: #000;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; padding: 4px 12px;
}
.brief__close {
  position: absolute; top: 10px; right: 40px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: rgba(5,6,10,.7); color: var(--ink); border: 1px solid rgba(255,255,255,.2);
  font-size: 1rem; cursor: pointer; transition: color .2s, border-color .2s;
}
.brief__close:hover { color: var(--pink); border-color: var(--pink); }
.brief__media { position: relative; aspect-ratio: 16 / 9; background: #05060a; border-bottom: 1px solid rgba(252,238,10,.3); overflow: hidden; }
.brief__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brief__img.is-swap { animation: briefSwap .32s steps(1, end); }
@keyframes briefSwap {
  0%   { clip-path: inset(0 0 60% 0); translate: -8px 0; filter: hue-rotate(80deg); }
  25%  { clip-path: inset(35% 0 20% 0); translate: 6px 0; }
  50%  { clip-path: inset(0 0 0 0); translate: -3px 0; filter: none; }
  75%  { clip-path: inset(70% 0 0 0); translate: 2px 0; }
  100% { clip-path: inset(0 0 0 0); translate: 0 0; }
}
.brief__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(5,6,10,.7); color: var(--yellow); border: 1px solid rgba(252,238,10,.4);
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.brief__nav:hover { background: rgba(252,238,10,.15); }
.brief__nav--prev { left: 12px; }
.brief__nav--next { right: 12px; }
.brief__count {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .15em;
  background: rgba(5,6,10,.75); padding: 3px 8px; color: var(--ink);
}
.brief__dots { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 6px; }
.brief__dots button { width: 18px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.brief__dots button.is-active { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.brief__body { padding: 26px 30px 32px; }
.brief__cat { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .25em; color: var(--pink); }
.brief__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--yellow); margin: 4px 0 18px; }
.brief__sec + .brief__sec { margin-top: 16px; }
.brief__sec h5 { font-family: var(--f-mono); font-weight: 400; font-size: .75rem; letter-spacing: .25em; color: var(--cyan); margin-bottom: 4px; }
.brief__sec p { color: var(--dim); line-height: 1.55; }
.brief__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.brief__links a {
  font-family: var(--f-mono); letter-spacing: .2em; font-size: .82rem;
  padding: 10px 18px; border: 1px solid var(--yellow); color: var(--yellow);
  transition: background .2s, color .2s, box-shadow .2s;
}
.brief__links a:hover { background: var(--yellow); color: #000; box-shadow: 0 0 24px rgba(252,238,10,.5); }
@media (max-width: 560px) {
  .brief__body { padding: 22px 18px 26px; }
  .brief__close { right: 14px; }
}
.gig__id {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); color: var(--pink); font-size: .8rem; letter-spacing: .2em;
}
.gig__id span { color: var(--dim); font-size: .65rem; }
.gig__id span.is-active { color: var(--yellow); animation: blink 1.4s steps(2) infinite; }
.gig h4 { font-family: var(--f-display); font-size: 1.25rem; margin: 12px 0 8px; color: var(--ink); }
.gig p { color: var(--dim); }
.gig__link {
  display: inline-block; margin-top: 18px;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .2em; color: var(--yellow);
  transition: letter-spacing .3s;
}
.gig:hover .gig__link { letter-spacing: .35em; }

.card--contact { max-width: 640px; }
.links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.links a {
  position: relative;
  font-family: var(--f-mono); letter-spacing: .2em; font-size: .85rem;
  padding: 10px 18px;
  border: 1px solid var(--yellow); color: var(--yellow);
  transition: background .2s, color .2s, box-shadow .2s;
}
.links a:hover { background: var(--yellow); color: #000; box-shadow: 0 0 24px rgba(252,238,10,.5); }
.foot {
  margin-top: 22vh;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; color: var(--dim);
  text-align: center;
}
.foot__big {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(1.6rem, 6vw, 4.5rem); letter-spacing: .08em;
  color: var(--yellow); margin-bottom: 18px;
  text-shadow: 0 0 calc(10px + var(--beat) * 30px) rgba(252,238,10,.45);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hud__nav { display: none; }
  .hud__track { display: none; }
  .hud__frame { display: none; }
  .intro__corner--br { display: none; }
  .intro__corner--tr { display: none; }
  .panel__head { gap: 12px; }
  .hero__kicker { font-size: .7rem; letter-spacing: .18em; }
  .hero__sub { letter-spacing: .12em; }
  .hud__readout .hud__alt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .noise, .glitch::before, .glitch::after, .intro__bg { animation: none; }
}
