/* =========================================================
   CODECRYPT 3.0 — Dhishna '27 · ACES CUSAT
   ========================================================= */
:root {
  --cell: 144px; /* grid cell — set precisely by main.js, shared by the hero and the next section */
  --void: #050404;
  --ink: #0d0504;
  --bone: #f4eee6;
  --mute: rgba(244, 238, 230, .56);
  --faint: rgba(244, 238, 230, .14);
  --yellow: #f7c548;
  --amber: #f39a2c;
  --orange: #e9531f;
  --red: #e2401f;
  --crimson: #8e1616;

  --f-display: 'Chakra Petch', system-ui, sans-serif;
  --f-mark: 'Dela Gothic One', 'Chakra Petch', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --gutter: clamp(16px, 3.2vw, 52px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--void); }
body { background: var(--void); color: var(--bone); font-family: var(--f-display); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.is-intro { overflow: hidden; height: 100svh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: #120604; }
:focus-visible { outline: 1px solid var(--orange); outline-offset: 4px; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity 1s var(--ease-out) calc(var(--d, 0) * 1ms), transform 1.3s var(--ease-out) calc(var(--d, 0) * 1ms);
}
.is-revealed .reveal { opacity: 1; transform: none; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -10%; z-index: 90; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(5) infinite; will-change: transform;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}


/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--gutter); transition: background-color .5s, padding .5s var(--ease-out);
}
.nav.is-scrolled { background-color: rgba(5, 4, 4, .82); padding-top: 14px; padding-bottom: 14px; }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.logo-glyph { width: 30px; height: 30px; color: var(--bone); transition: transform .6s var(--ease-out); }
.nav__logo:hover .logo-glyph { transform: rotate(60deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--f-mark); font-weight: 400; font-size: 17px; letter-spacing: .06em; }
.logo-text i { font-family: var(--f-mono); font-style: normal; font-size: 9px; letter-spacing: .42em; color: var(--mute); margin-top: 4px; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 42px); }
.nav__links a { position: relative; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); padding: 6px 0; transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.badge-mark { font-family: var(--f-mark); font-size: clamp(16px, 1.55vw, 24px); letter-spacing: .01em; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.badge-mark.is-on { opacity: 1; }
.sound { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); transition: color .3s; }
.sound:hover { color: var(--bone); }
.sound__bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; }
.sound[aria-pressed="true"] { color: var(--orange); }
.sound[aria-pressed="true"] .sound__bars i { animation: bars 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; position: relative; z-index: 2; }
.burger i { display: block; width: 22px; height: 1.5px; background: var(--bone); transition: transform .4s var(--ease-out); }
.nav.is-open .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.is-open .burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* =========================================================
   HERO — cinematic: CODECRYPT 3.0
   chrome + pixel title, neon 3.0 in a HUD frame, a sparking coin in warm smoke
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: #0a0504; --mx: -999px; --my: -999px; --neon: #ff7434; }
/* the hero's foot melts into the page below — no seam, one continuous space */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: min(26vh, 240px); z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 4, 3, 0) 0%, rgba(8, 4, 3, .55) 45%, #080403 100%);
}

.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(38vmax 32vmax at 50% 72%, rgba(220, 80, 28, .2), transparent 70%),
    radial-gradient(50vmax 30vmax at 50% 18%, rgba(110, 40, 18, .22), transparent 70%),
    linear-gradient(180deg, #130906 0%, #0d0605 55%, #070303 100%);
}
.hero__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 85% 80% at 50% 48%, transparent 50%, rgba(0, 0, 0, .65) 100%); }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 200, 170, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 200, 170, .05) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: var(--gx, 0) var(--gy, 0);
}
.hero__grid--lit {
  background-image:
    linear-gradient(rgba(255, 150, 95, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 150, 95, .5) 1px, transparent 1px),
    radial-gradient(260px circle at var(--mx) var(--my), rgba(240, 105, 45, .1), transparent 70%);
  background-size: var(--cell) var(--cell), var(--cell) var(--cell), 100% 100%;
  background-position: var(--gx, 0) var(--gy, 0), var(--gx, 0) var(--gy, 0), 0 0;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
          mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
}
.hero__pixels, .hero__trail { position: absolute; inset: 0; }
.pxl {
  position: absolute; width: var(--cell); height: var(--cell);
  background: linear-gradient(160deg, rgba(110, 40, 20, calc(var(--o) * .7)), rgba(40, 14, 8, calc(var(--o) * .45)));
  box-shadow: inset 0 0 0 1px rgba(255, 170, 120, .04);
  opacity: 0; transition: opacity 1.6s var(--ease-out) var(--pd);
  animation: pxl var(--pt) ease-in-out infinite var(--pd);
}
.is-revealed .pxl { opacity: 1; }
@keyframes pxl { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }
.hot {
  position: absolute; width: var(--cell); height: var(--cell); pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(240, 100, 40, .2), rgba(200, 60, 25, .07) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 150, 95, .3);
  opacity: 0; transition: opacity 1.4s var(--ease-out);
}
.hot.is-on { opacity: 1; transition: opacity .12s linear; }

/* faint live code, drifting upward */
.ct-code {
  position: absolute; overflow: hidden; height: 46vh;
  font-family: var(--f-mono); font-size: clamp(9px, .78vw, 11.5px); line-height: 1.75; color: rgba(244, 228, 214, .17); white-space: pre;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent);
  opacity: 0; transition: opacity 2s var(--ease-out) .6s;
}
.is-revealed .ct-code { opacity: 1; }
.ct-code pre { margin: 0; padding-bottom: 2.6em; font: inherit; }
/* a live terminal without scrolling the whole panel: one line at a time lights up */
.ct-code .ln { transition: color 1.2s var(--ease-out), text-shadow 1.2s var(--ease-out); }
.ct-code .ln.is-live { color: rgba(255, 150, 90, .75); text-shadow: 0 0 10px rgba(255, 110, 50, .5); transition-duration: .15s; }
.ct-code--l { left: 9%; top: 14%; width: 26%; }
.ct-code--r { right: 5%; top: 17%; width: 26%; }


/* the light leak, top-left */
.hero__flare {
  /* static on purpose: a blended, pulsing full-screen layer over the live canvas costs ~4fps */
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(14vmax 10vmax at -2% 22%, rgba(255, 200, 140, .42), rgba(255, 120, 50, .14) 45%, transparent 75%),
    radial-gradient(60vmax 3vmax at 8% 22%, rgba(255, 150, 80, .14), transparent 70%),
    radial-gradient(30vmax 22vmax at 0% 10%, rgba(255, 90, 30, .1), transparent 70%);
}

.hero__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sun-wrap { position: absolute; left: 39%; top: 50%; width: min(100vh, 64vw); aspect-ratio: 1; translate: -50% -50%; visibility: hidden; }
canvas.coins { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

canvas#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; display: block; pointer-events: none; }
.is-intro canvas#fx { z-index: 30; }

/* --- the title --- */
.hero__content { position: absolute; z-index: 3; inset: 0; pointer-events: none; will-change: transform; }
.hero__content a, .hero__content button { pointer-events: auto; }

.ct-title {
  --px: clamp(46px, min(7.4vw, 13vh), 146px);
  position: absolute; left: 50%; top: 10.5%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center;
  font-size: var(--px); line-height: 1; white-space: nowrap; margin: 0; padding-top: .5em;
}
.ct-row { display: flex; align-items: baseline; gap: .5em; }
.ct-word { display: inline-flex; align-items: baseline; }
/* chrome script capitals with a warm halo */
.ct-cap {
  position: relative; z-index: 1;
  font-family: 'Pinyon Script', cursive; font-weight: 400; font-size: 1.95em; line-height: .5;
  /* the chrome gradient only paints inside the box: pad it to cover the whole tall glyph, and
     cancel the padding with negative margins so the layout is unchanged */
  display: inline-block; padding: .55em .3em .35em .25em; margin: -.55em calc(-.2em - .3em) -.35em -.25em;
  background: linear-gradient(175deg, #ffffff 0%, #f1e9e2 30%, #9c928b 52%, #f6efe8 70%, #b6aca5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 2px rgba(255, 230, 210, .5)) drop-shadow(0 0 14px rgba(255, 130, 60, .45));
  clip-path: inset(-60% 100% -60% -30%);
  transition: clip-path 1.7s var(--ease-io) .25s;
}
.ct-word--crypt .ct-cap { transition-delay: .55s; }
.is-revealed .ct-cap { clip-path: inset(-60% -30% -60% -30%); }
/* glowing pixel letters */
.ct-pix {
  font-family: 'Pixelify Sans', monospace; font-weight: 500; letter-spacing: .015em; color: #fbf3ea;
  text-shadow: 0 0 1px #fff, 0 0 8px rgba(255, 170, 110, .85), 0 0 26px rgba(255, 100, 40, .5);
  opacity: 0; transform: translate3d(0, .18em, 0);
  transition: opacity .9s var(--ease-out) .7s, transform 1.2s var(--ease-out) .7s;
}
.ct-word--crypt .ct-pix { transition-delay: 1s; color: #e3d9d1; }
.is-revealed .ct-pix { opacity: 1; transform: none; }

/* neon 3.0 in its HUD frame */
.ct-hud {
  position: relative; display: inline-block; margin-top: .3em; padding: .08em .34em .02em;
  opacity: 0; transform: scale(.94);
  transition: opacity 1s var(--ease-out) 1.3s, transform 1.4s var(--ease-out) 1.3s;
}
.is-revealed .ct-hud { opacity: 1; transform: none; }
.hc { position: absolute; width: .16em; height: .16em; border: 0 solid var(--neon); filter: drop-shadow(0 0 4px rgba(255, 110, 50, .9)); }
.hc--tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.hc--tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.hc--bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.hc--br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.hud-tick { position: absolute; top: 50%; width: .7em; height: 1px; }
.hud-tick--l { right: 100%; background: linear-gradient(90deg, transparent, rgba(255, 140, 80, .7)); }
.hud-tick--r { left: 100%; background: linear-gradient(270deg, transparent, rgba(255, 140, 80, .7)); }
.hud-tick::after { content: ''; position: absolute; top: -.05em; width: 1px; height: .1em; background: rgba(255, 140, 80, .8); }
.hud-tick--l::after { right: 0; }
.hud-tick--r::after { left: 0; }
.hud-bars { position: absolute; top: .16em; display: flex; flex-direction: column; gap: .06em; }
.hud-bars--l { right: calc(100% + .2em); align-items: flex-end; }
.hud-bars--r { left: calc(100% + .2em); }
.hud-bars i { display: block; height: 2px; background: rgba(255, 140, 80, .45); }
.hud-bars i:nth-child(1) { width: .42em; } .hud-bars i:nth-child(2) { width: .26em; } .hud-bars i:nth-child(3) { width: .5em; } .hud-bars i:nth-child(4) { width: .18em; }
.ct-ver {
  display: inline-block; font-family: 'Inter', system-ui, sans-serif; font-weight: 300; font-size: .92em; line-height: 1;
  color: rgba(255, 110, 50, .14);
  -webkit-text-stroke: .016em var(--neon);
  text-shadow: 0 0 4px rgba(255, 140, 80, .95), 0 0 16px rgba(255, 100, 40, .7), 0 0 44px rgba(240, 70, 30, .5);
  animation: neon 6s steps(1) infinite 2.6s;
  will-change: opacity; /* flicker on its own layer: no repaint of the glow */
}
@keyframes neon { 0%, 100% { opacity: 1; } 41% { opacity: .55; } 42% { opacity: 1; } 44% { opacity: .7; } 45% { opacity: 1; } }
.slashed { position: relative; display: inline-block; }
.slashed::after {
  content: ''; position: absolute; left: 50%; top: 52%; width: .028em; height: .78em;
  background: var(--neon); box-shadow: 0 0 8px rgba(255, 110, 50, .9); translate: -50% -50%; rotate: 30deg;
}

/* --- side copy --- */
.ct-left { position: absolute; left: 7.5%; top: 55%; }
.ct-right { position: absolute; right: 7.5%; top: 59%; text-align: right; }
.ct-copy {
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(22px, min(2.35vw, 4.2vh), 42px); line-height: 1.16; color: #f4eee6;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}
.neon-box {
  display: inline-block; padding: .02em .3em .06em; margin-bottom: .12em;
  border: 1.5px solid var(--neon); border-radius: 3px; background: rgba(255, 90, 40, .1); color: #ffe2cc;
  box-shadow: 0 0 14px rgba(255, 110, 50, .5), inset 0 0 14px rgba(255, 110, 50, .3);
  text-shadow: 0 0 10px rgba(255, 140, 80, .8);
}

/* the HUD button: neon pane inside bracket corners */
.hud-btn {
  position: relative; display: inline-flex; align-items: center; gap: .6em; margin-top: clamp(22px, 3.4vh, 36px);
  padding: .62em 1.15em; font-size: clamp(17px, 1.35vw, 22px);
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; color: #fff1e6;
  border: 1.5px solid var(--neon); border-radius: 3px; background: rgba(255, 90, 40, .12);
  box-shadow: 0 0 18px rgba(255, 100, 45, .45), inset 0 0 16px rgba(255, 100, 45, .25);
  text-shadow: 0 0 10px rgba(255, 140, 80, .7);
  transition: transform .5s var(--ease-out), background-color .3s, box-shadow .3s; will-change: transform;
}
.hud-btn .hc { width: 12px; height: 12px; filter: none; border-color: rgba(255, 140, 90, .7); }
.hud-btn .hc--tl { left: -9px; top: -9px; } .hud-btn .hc--tr { right: -9px; top: -9px; }
.hud-btn .hc--bl { left: -9px; bottom: -9px; } .hud-btn .hc--br { right: -9px; bottom: -9px; }
.hud-btn__arrow { font-style: normal; color: var(--neon); transition: transform .5s var(--ease-out); }
.hud-btn:hover { background: rgba(255, 90, 40, .22); box-shadow: 0 0 28px rgba(255, 100, 45, .65), inset 0 0 20px rgba(255, 100, 45, .35); }
.hud-btn:hover .hud-btn__arrow { transform: translateX(5px); }

/* --- bottom bar --- */
.hero__bottom {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 22px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(244, 238, 230, .5);
  pointer-events: none;
}
.hero__bottom > * { pointer-events: auto; }
.scroll-cue { display: flex; align-items: center; gap: 14px; transition: color .3s; }
.scroll-cue:hover { color: var(--bone); }
.scroll-cue__line { position: relative; width: 1px; height: 40px; background: var(--faint); overflow: hidden; }
.scroll-cue__line::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--orange); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
/* replay as a little HUD dial */
.replay {
  position: relative; width: 54px; height: 54px; border-radius: 50%; color: #ffd3b5; font-size: 15px;
  border: 1px solid rgba(255, 140, 80, .35); box-shadow: 0 0 18px rgba(255, 100, 45, .22), inset 0 0 12px rgba(255, 100, 45, .15);
  transition: color .3s, box-shadow .3s;
}
.replay::before {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 160, 110, .45) 0 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 72%, transparent 74%);
          mask: radial-gradient(circle, transparent 62%, #000 64%, #000 72%, transparent 74%);
  animation: spin 24s linear infinite;
}
.replay span { position: relative; display: inline-block; transition: transform .6s var(--ease-out); }
.replay:hover { color: #fff; box-shadow: 0 0 26px rgba(255, 100, 45, .45), inset 0 0 14px rgba(255, 100, 45, .3); }
.replay:hover span { transform: rotate(-180deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   NEXT SECTION
   ========================================================= */
.next { position: relative; min-height: 80vh; display: flex; align-items: center; padding: 16vh var(--gutter); background: linear-gradient(180deg, #080403 0%, #070403 40%, var(--void) 100%); overflow: hidden; }
.next::before { /* the coin's warm light, spilling over the boundary */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46vmax 30vmax at 50% 18%, rgba(200, 62, 24, .08), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
.next::after { /* the hero's grid, continuing (aligned by main.js) and fading out down the section */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 200, 170, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 200, 170, .05) 1px, transparent 1px);
  background-size: var(--cell, 144px) var(--cell, 144px);
  background-position: var(--gx, 0) var(--gy-next, 0);
  /* rises out of the dark the hero melted into, then fades again: no edge at the boundary */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.7) 22%, rgba(0,0,0,.45) 50%, transparent 85%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.7) 22%, rgba(0,0,0,.45) 50%, transparent 85%);
}
.next__inner { position: relative; z-index: 1; max-width: 1100px; }
.next__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--orange); }
.next__title { margin-top: 26px; font-weight: 600; font-size: clamp(34px, 5.4vw, 92px); line-height: 1; letter-spacing: -.02em; }
.next__title em { font-style: italic; color: var(--orange); }
.next__body { margin-top: 30px; max-width: 560px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--mute); }
.next [data-io] { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.next [data-io].is-in { opacity: 1; transform: none; }

/* =========================================================
   INTRO OVERLAY
   ========================================================= */
.intro-mark {
  position: fixed; left: 50%; top: 50%; z-index: 60; translate: -50% -50%;
  font-family: var(--f-mark); font-size: clamp(44px, 9.4vw, 170px); line-height: 1; color: #fff;
  white-space: nowrap; letter-spacing: .01em; pointer-events: none; opacity: 0; text-shadow: 0 8px 50px rgba(90, 12, 0, .35);
}
.intro-mark .ch { display: inline-block; text-align: center; }
.intro-mark.is-on { opacity: 1; }
.intro-mark.is-gone { opacity: 0; }
.intro-sub {
  position: fixed; left: 50%; top: calc(50% + clamp(40px, 6.4vw, 118px)); z-index: 60; translate: -50% 0;
  font-family: var(--f-mono); font-size: clamp(10px, .9vw, 13px); letter-spacing: .42em; color: rgba(255, 255, 255, .9);
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out), letter-spacing 1.4s var(--ease-out);
}
.intro-sub.is-on { opacity: 1; letter-spacing: .5em; }
.skip {
  position: fixed; right: var(--gutter); bottom: 26px; z-index: 70;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); padding: 11px 16px; border: 1px solid rgba(255, 255, 255, .16);
  opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .6s, visibility 0s .6s, color .3s, border-color .3s;
}
.skip.is-on { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .6s, visibility 0s, color .3s, border-color .3s; }
.skip:hover { color: #fff; border-color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: rgba(5, 4, 4, .97); opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav__links a { font-size: 18px; }
  .is-revealed .nav__links { opacity: 0; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .burger { display: flex; }
  .sound__label { display: none; }
  .nav__right { gap: 14px; }

  .sun-wrap { left: 54%; top: 31%; width: min(94vw, 50vh); }
  .ct-title { --px: 12vw; top: 12%; }
  .ct-row { gap: .38em; }
  .ct-left { left: 7%; top: 47%; }
  .ct-right { right: 7%; top: 55%; }
  .ct-copy { font-size: 6.4vw; }
  .hud-btn { font-size: 16px; }
  .ct-code--l { left: 4%; width: 60%; top: 40%; color: rgba(244, 228, 214, .09); }
  .ct-code--r { display: none; }
  .hero__bottom { bottom: 20px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .3s !important; }
}
