/* ==========================================================================
   SKRIIPT // Encrypted Identity — redesign
   ========================================================================== */

:root {
  --ink: #050505;
  --ink-2: #0b0c0a;
  --paper: #e9f3e6;
  --paper-rgb: 233, 243, 230;
  --muted: rgba(233, 243, 230, 0.56);
  --faint: rgba(233, 243, 230, 0.12);
  --signal: #b7ff2a;
  --signal-rgb: 183, 255, 42;
  --violet: #8b5cff;
  --violet-rgb: 139, 92, 255;
  --line: rgba(var(--signal-rgb), 0.2);

  --display: "Archivo Black", "Arial Black", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);

  --audio-low: 0;
  --audio-mid: 0;
  --audio-high: 0;
  --audio-energy: 0;

  color-scheme: dark;
  scroll-behavior: smooth;
}

/* hidden frequency theme */
body[data-easter] {
  --signal: #d279ff;
  --signal-rgb: 210, 121, 255;
  --violet: #ff5eac;
  --violet-rgb: 255, 94, 172;
  --line: rgba(var(--signal-rgb), 0.2);
}

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

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-booting {
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

svg {
  display: block;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ type */

.label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}

.label__dot {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: blink 1.6s steps(2, jump-none) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.15;
  }
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.4vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- ambient */

.void {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0, 0, 0, 0.75) 100%),
    radial-gradient(60% 50% at 85% 100%, rgba(var(--violet-rgb), 0.12), transparent 70%),
    radial-gradient(50% 40% at 10% 10%, rgba(var(--signal-rgb), 0.06), transparent 70%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-1%, -2%); }
}

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

.cursor {
  display: none;
}

html.has-cursor .cursor {
  display: block;
}

html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

html.has-cursor input[type="range"] {
  cursor: grab !important;
}

.cursor i,
.cursor b {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9500;
  pointer-events: none;
  border-radius: 50%;
}

.cursor i {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}

.cursor b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(var(--signal-rgb), 0.5);
  transition:
    width 0.35s var(--ease-out),
    height 0.35s var(--ease-out),
    margin 0.35s var(--ease-out),
    background 0.35s,
    border-color 0.35s;
}

.cursor b span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor[data-hover] b {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-color: var(--signal);
  background: rgba(var(--signal-rgb), 0.12);
}

.cursor[data-label] b {
  background: var(--signal);
}

.cursor[data-label] b span {
  opacity: 1;
}

.cursor[data-label] i {
  opacity: 0;
}

.cursor[data-down] b {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
}

/* ------------------------------------------------------------------ boot */

.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
}

.boot__shutter {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: var(--ink);
  transition: transform 1.1s var(--ease-io);
}

.boot__shutter--top {
  top: 0;
  border-bottom: 1px solid rgba(var(--signal-rgb), 0.5);
}

.boot__shutter--bottom {
  bottom: 0;
  border-top: 1px solid rgba(var(--signal-rgb), 0.5);
}

.boot__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  width: min(34rem, 86vw);
  transition:
    opacity 0.45s,
    transform 0.6s var(--ease-io),
    filter 0.6s;
}

.boot__code {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.boot__word {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 13vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-shadow:
    -3px 0 rgba(var(--violet-rgb), 0.7),
    3px 0 rgba(var(--signal-rgb), 0.5);
}

.boot__bar {
  width: 100%;
  height: 2px;
  background: var(--faint);
  overflow: hidden;
}

.boot__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--signal);
  box-shadow: 0 0 14px var(--signal);
  transform: scaleX(0);
  transform-origin: left;
}

.boot__row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--signal);
}

.boot__skip {
  margin-top: 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.boot__skip:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.boot.is-done {
  pointer-events: none;
}

.boot.is-done .boot__inner {
  opacity: 0;
  transform: scale(1.35);
  filter: blur(8px);
}

.boot.is-done .boot__shutter--top {
  transform: translateY(-101%);
}

.boot.is-done .boot__shutter--bottom {
  transform: translateY(101%);
}

.boot.is-gone {
  display: none;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.35rem var(--gutter);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0));
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand svg {
  width: 26px;
  height: 26px;
  color: var(--signal);
  transition: transform 0.6s var(--ease-out);
}

.brand:hover svg {
  transform: rotate(-12deg) scale(1.1);
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
}

.topbar__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(var(--signal-rgb), 0.6);
  animation: ping 2s infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(var(--signal-rgb), 0.7); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(var(--signal-rgb), 0); }
}

.topbar__clock {
  justify-self: end;
  color: var(--muted);
}

.topbar__clock time {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- chapters */

.chapters {
  position: fixed;
  top: 50%;
  right: var(--gutter);
  z-index: 700;
  display: flex;
  gap: 1rem;
  transform: translateY(-50%);
}

.chapters__rail {
  order: 2;
  width: 1px;
  background: var(--faint);
}

.chapters__rail i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  transform: scaleY(0);
  transform-origin: top;
}

.chapters ol {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapters a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.chapters a strong {
  order: -1;
  position: absolute;
  right: calc(100% + 0.75rem);
  font-weight: 500;
  white-space: nowrap;
  padding: 0.2rem 0.45rem;
  background: var(--signal);
  color: var(--ink);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
  pointer-events: none;
}

.chapters a span {
  font-variant-numeric: tabular-nums;
}

.chapters a span::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  margin-right: 0;
  vertical-align: middle;
  background: currentColor;
  transition: width 0.4s var(--ease-out), margin 0.4s var(--ease-out);
}

.chapters a[aria-current] span::before {
  width: 14px;
  margin-right: 0.5rem;
}

.chapters a:hover strong {
  opacity: 1;
  transform: none;
}

.chapters a:hover,
.chapters a[aria-current] {
  color: var(--signal);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  height: 230vh;
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  perspective: 900px;
  perspective-origin: 50% 45%;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 80vmax;
  height: 50vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--signal-rgb), 0.16), rgba(var(--violet-rgb), 0.07) 55%, transparent);
  transform: translate(-50%, -50%) scale(calc(1 + var(--audio-low) * 0.5));
  filter: blur(20px);
  pointer-events: none;
}

.hero__sun {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 46vmin;
  height: 46vmin;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe17a 0%, #ff8a5c 35%, #ff5eac 60%, #8b5cff 100%);
  box-shadow: 0 0 120px rgba(255, 94, 172, 0.5);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 50%), repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 22px);
  -webkit-mask-composite: source-over;
  mask-image: linear-gradient(to bottom, #000 50%, transparent 50%), repeating-linear-gradient(to bottom, #000 0 14px, transparent 14px 22px);
  transform: translate(-50%, -100%) translateY(60%) scale(calc(0.9 + var(--audio-low) * 0.25));
  opacity: 0;
  transition: opacity 1.2s, transform 1.6s var(--ease-out);
  pointer-events: none;
}

body[data-easter] .hero__sun {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(8%) scale(calc(0.95 + var(--audio-low) * 0.2));
}

.hero__floor {
  position: absolute;
  left: -50%;
  width: 200%;
  top: 62%;
  bottom: 0;
  perspective: 360px;
  perspective-origin: 50% 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%);
  mask-image: linear-gradient(to bottom, transparent, #000 30%);
  pointer-events: none;
}

.hero__floor::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal) 30%, var(--signal) 70%, transparent);
  box-shadow: 0 0 24px 2px rgba(var(--signal-rgb), 0.5);
  z-index: 2;
}

.hero__floor div {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 400%;
  transform-origin: 50% 0;
  transform: rotateX(78deg);
  background-image:
    linear-gradient(rgba(var(--signal-rgb), calc(0.3 + var(--audio-energy) * 0.7)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--signal-rgb), calc(0.22 + var(--audio-energy) * 0.6)) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: floor-run 1.6s linear infinite;
}

body[data-easter] .hero__floor div {
  animation-duration: 0.7s;
}

@keyframes floor-run {
  to {
    background-position: 0 72px;
  }
}

.hero__glyph {
  position: absolute;
  top: 50%;
  right: -6vw;
  margin-top: -48vh;
  font-family: var(--display);
  font-size: 96vh;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--signal-rgb), 0.16);
  pointer-events: none;
  user-select: none;
}

.hero__reticle {
  position: absolute;
  fill: none;
  stroke: rgba(var(--signal-rgb), 0.28);
  stroke-width: 0.8;
  pointer-events: none;
}

.hero__reticle circle[stroke-dasharray] {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 24s linear infinite;
}

.hero__reticle--a {
  width: clamp(110px, 14vw, 220px);
  left: 7vw;
  top: 18vh;
}

.hero__reticle--b {
  width: clamp(80px, 9vw, 140px);
  right: 14vw;
  bottom: 14vh;
  stroke: rgba(var(--violet-rgb), 0.4);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  transform-style: preserve-3d;
}

.hero__label {
  margin-bottom: clamp(1rem, 3vh, 2.5rem);
  margin-left: 0.6vw;
}

.hero__label-sub {
  margin-left: auto;
  color: var(--muted);
}

.hero__label-sub b {
  color: var(--paper);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.hero__label::after {
  content: "";
  flex: 1;
  order: 2;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.hero__label-sub {
  order: 3;
}

.hero__title {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.4rem, 17.2vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--paper);
  transform-style: preserve-3d;
}

.hero__char {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__char > span {
  display: inline-block;
  text-shadow: 0 0 calc(var(--audio-energy) * 60px) rgba(var(--signal-rgb), 0.8);
  transform: translateY(70%) rotateX(-80deg);
  opacity: 0;
  transform-origin: 50% 100%;
  transition:
    transform 1.3s var(--ease-out),
    opacity 0.9s;
  transition-delay: calc(var(--i, 0) * 70ms + 150ms);
}

body.is-ready .hero__char > span {
  transform: none;
  opacity: 1;
}

.hero__char::before,
.hero__char::after {
  content: attr(data-char);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.hero__char::before {
  color: var(--signal);
}

.hero__char::after {
  color: var(--violet);
}

.hero__title.is-glitching .hero__char::before {
  opacity: 0.85;
  transform: translate(-0.04em, 0.01em);
  clip-path: inset(var(--g1, 20%) 0 var(--g2, 50%) 0);
}

.hero__title.is-glitching .hero__char::after {
  opacity: 0.85;
  transform: translate(0.05em, -0.01em);
  clip-path: inset(var(--g3, 60%) 0 var(--g4, 10%) 0);
}

.hero__title.is-glitching .hero__char > span {
  opacity: 0.85;
}

.hero__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(1.5rem, 4vh, 3rem);
}

.hero__tagline {
  max-width: 36ch;
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--muted);
}

.hero__tagline em {
  font-style: normal;
  color: var(--paper);
}

.hero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.4rem 1.05rem 1.6rem;
  border: 1px solid rgba(var(--signal-rgb), 0.55);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease-out);
}

.hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
}

.hero__cta:hover {
  color: var(--ink);
}

.hero__cta:hover::before {
  transform: none;
}

.hero__cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  animation: nudge 1.8s var(--ease-out) infinite;
}

@keyframes nudge {
  0%, 100% { transform: none; }
  50% { transform: translateY(4px); }
}

/* intro uses a backwards-filled animation so JS can own opacity/translate afterwards */
body:not(.is-ready) :is(.hero__footer, .hero__label, .hero__coords, .hero__scroll) {
  opacity: 0;
}

body.is-ready :is(.hero__footer, .hero__label, .hero__coords, .hero__scroll) {
  animation: rise 1.2s 0.85s var(--ease-out) backwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.sc {
  color: var(--signal);
}

.hero__coords {
  position: absolute;
  left: var(--gutter);
  bottom: 1.6rem;
  display: flex;
  gap: 1.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero__coords b {
  font-weight: 500;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  margin-left: -6rem;
  width: 12rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.hero__scroll i {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--faint);
  overflow: hidden;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  background: var(--signal);
  animation: drip 1.8s var(--ease-io) infinite;
}

@keyframes drip {
  from { transform: translateY(-100%); }
  to { transform: translateY(260%); }
}

/* transmission notice */
.hero__notice {
  position: absolute;
  top: 5.2rem;
  right: var(--gutter);
  z-index: 3;
  max-width: min(24rem, calc(100% - 2 * var(--gutter)));
}

.notice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(10px);
  animation: notice-in 0.9s 1.4s var(--ease-out) both;
}

@keyframes notice-in {
  from { opacity: 0; transform: translateX(30px); }
}

.notice span {
  grid-column: 1 / -1;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--signal);
}

.notice[data-new] span::before {
  content: "● ";
  animation: blink 1s steps(2, jump-none) infinite;
}

.notice strong {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice__actions {
  display: flex;
  align-items: start;
  gap: 0.4rem;
}

.notice button {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--faint);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.notice button:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* ---------------------------------------------------------------- ticker */

.ticker {
  position: relative;
  z-index: 2;
  margin: -6vh 0 0;
  padding: 6vh 0;
  overflow: hidden;
  pointer-events: none;
}

.ticker__band {
  width: 110vw;
  margin-left: -5vw;
  overflow: hidden;
  white-space: nowrap;
}

.ticker__band--a {
  position: relative;
  z-index: 2;
  padding: 1rem 0;
  background: var(--signal);
  color: var(--ink);
  transform: rotate(-3deg);
  box-shadow: 0 0 60px rgba(var(--signal-rgb), 0.25);
}

.ticker__band--b {
  padding: 0.9rem 0;
  margin-top: -1.2rem;
  border-block: 1px solid rgba(var(--violet-rgb), 0.5);
  background: rgba(var(--violet-rgb), 0.08);
  backdrop-filter: blur(4px);
  transform: rotate(2deg);
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.6vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  will-change: transform;
}

.ticker__track i {
  font-style: normal;
  font-size: 0.6em;
}

.ticker__band--b .ticker__track {
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--paper-rgb), 0.7);
}

.ticker__band--b .ticker__track i {
  color: var(--violet);
  -webkit-text-stroke: 0;
}

/* ---------------------------------------------------------------- access */

.access {
  position: relative;
  z-index: 1;
}

.access__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.access__track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 2rem);
  width: max-content;
  padding: 0 var(--gutter);
  will-change: transform;
}

.access__intro {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.6rem;
  width: min(46rem, 85vw);
  padding-right: clamp(1rem, 6vw, 6rem);
}

.access__intro .display {
  font-size: clamp(2.6rem, 5.4vw, 6.2rem);
}

.access__hint {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
}

.access__hint-arrow {
  display: inline-block;
  color: var(--signal);
  animation: slide-x 1.6s var(--ease-out) infinite;
}

@keyframes slide-x {
  50% { transform: translateX(8px); }
}

.node {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  width: clamp(17rem, 25vw, 23rem);
  height: min(34rem, 64vh);
  padding: 1.6rem;
  text-align: left;
  border: 1px solid rgba(var(--paper-rgb), 0.12);
  background:
    linear-gradient(160deg, rgba(var(--paper-rgb), 0.05), rgba(var(--paper-rgb), 0.01) 60%),
    rgba(8, 9, 8, 0.6);
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  overflow: hidden;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition:
    border-color 0.4s,
    transform 0.6s var(--ease-out);
}

.node:hover,
.node:focus-visible {
  border-color: var(--accent);
  transition:
    border-color 0.4s,
    transform 0.12s linear;
}

.node__spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(28rem circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.node:hover .node__spot {
  opacity: 1;
}

.node::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.node__index {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  z-index: -1;
  font-family: var(--display);
  font-size: clamp(6rem, 10vw, 9.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--paper-rgb), 0.14);
  transition: color 0.5s, -webkit-text-stroke-color 0.5s, transform 0.8s var(--ease-out);
}

.node:hover .node__index {
  color: color-mix(in srgb, var(--accent) 22%, transparent);
  -webkit-text-stroke-color: var(--accent);
  transform: translateY(0.4rem) scale(1.05);
}

.node__icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transition: transform 0.6s var(--ease-out), background 0.4s, color 0.4s;
}

.node__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.node:hover .node__icon {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-8deg) scale(1.08);
}

.node__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 4.5rem;
  margin: auto 0 0;
  opacity: 0.35;
  transition: opacity 0.4s;
}

.node__wave i {
  flex: 1;
  height: calc(var(--h) * 100%);
  min-height: 2px;
  background: var(--accent);
  transform-origin: center;
  transition: transform 0.5s var(--ease-out);
}

.node:hover .node__wave {
  opacity: 1;
}

.node:hover .node__wave i {
  animation: wave 0.9s var(--ease-io) infinite alternate;
  animation-delay: calc(var(--n) * -73ms);
}

@keyframes wave {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

.node__body {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.node__label {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.node__desc {
  font-size: 0.86rem;
  color: var(--muted);
}

.node__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--paper-rgb), 0.1);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.node__handle {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node__go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  color: var(--accent);
}

.node__go svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.4s var(--ease-out);
}

.node:hover .node__go svg {
  transform: translate(3px, -3px);
}

.node--copy .node__go svg {
  transform: none !important;
}

.node[data-copied] .node__go {
  color: var(--signal);
}

.access__progress {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: clamp(1.5rem, 5vh, 3rem) var(--gutter) 0;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.access__progress div {
  flex: 1;
  height: 1px;
  background: var(--faint);
}

.access__progress i {
  display: block;
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
}

.access__progress span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}

/* -------------------------------------------------------------- fragment */

.fragment {
  position: relative;
  z-index: 1;
  min-height: 150vh;
  display: flex;
  align-items: center;
  padding: 24vh var(--gutter);
  overflow: hidden;
}

.fragment__layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fragment__layers span {
  position: absolute;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 16rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--paper-rgb), 0.07);
  will-change: transform;
}

.fragment__layers span:nth-child(1) {
  top: 6%;
  left: -4vw;
}

.fragment__layers span:nth-child(2) {
  top: 42%;
  right: -30vw;
  -webkit-text-stroke-color: rgba(var(--violet-rgb), 0.16);
}

.fragment__layers span:nth-child(3) {
  bottom: 4%;
  left: 12vw;
  -webkit-text-stroke-color: rgba(var(--signal-rgb), 0.12);
}

.fragment__inner {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vh, 2.8rem);
  max-width: 76rem;
  margin: 0 auto;
}

.fragment__heading {
  font-size: clamp(3rem, 8.4vw, 9rem);
}

.fragment__copy {
  max-width: 34ch;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.7vw, 2.6rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.fragment__copy .w {
  color: rgba(var(--paper-rgb), 0.14);
  transition: color 0.35s;
}

.fragment__copy .w.is-lit {
  color: var(--paper);
}

.fragment__copy .w.is-head {
  color: var(--signal);
}

.fragment__file {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(1rem, 4vh, 3rem) 0 0;
  border-top: 1px solid var(--line);
}

.fragment__file > div {
  padding: 1.2rem 1.2rem 0 0;
  border-right: 1px solid rgba(var(--paper-rgb), 0.06);
}

.fragment__file > div + div {
  padding-left: 1.2rem;
}

.fragment__file > div:last-child {
  border-right: 0;
}

.fragment__file dt {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}

.fragment__file dd {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  text-transform: uppercase;
}

/* --------------------------------------------------------- transmissions */

.transmissions {
  position: relative;
  z-index: 1;
  padding: 14vh var(--gutter) 10vh;
}

.transmissions__head {
  display: grid;
  gap: 1.4rem;
  max-width: 1500px;
  margin: 0 auto clamp(3rem, 9vh, 6rem);
}

.transmissions__source {
  margin-left: 0.5rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.62rem;
  color: var(--paper);
}

.transmissions__source[data-live]::before {
  content: "● ";
  color: #ff3946;
  animation: blink 1s steps(2, jump-none) infinite;
}

.tx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2.6rem);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}

.tx {
  --mx: 50%;
  --my: 50%;
  position: relative;
  will-change: transform;
}

.tx:nth-child(2) {
  margin-top: clamp(0rem, 12vh, 9rem);
}

.tx:nth-child(3) {
  margin-top: clamp(0rem, 5vh, 4rem);
}

.tx__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(var(--paper-rgb), 0.1);
  background: var(--ink-2);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.tx__thumb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  overflow: hidden;
}

.tx__thumb img {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  object-fit: cover;
  filter: grayscale(0.65) contrast(1.1) brightness(0.8);
  transform: translate3d(0, var(--iy, 0px), 0) scale(1.06);
  transition: filter 0.6s, scale 0.8s var(--ease-out);
}

.tx:hover .tx__thumb img {
  filter: none;
  scale: 1.06;
}

.tx__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
    linear-gradient(to top, rgba(5, 5, 5, 0.75), transparent 55%);
  pointer-events: none;
}

.tx__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  margin: -2.3rem 0 0 -2.3rem;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(var(--signal-rgb), 0.5);
  transform: scale(0.85);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}

.tx__play svg {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.2rem;
}

.tx:hover .tx__play {
  transform: scale(1);
  box-shadow: 0 0 0 14px rgba(var(--signal-rgb), 0.15);
}

.tx__tag {
  position: absolute;
  z-index: 2;
  bottom: 0.8rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  background: rgba(5, 5, 5, 0.75);
  border: 1px solid var(--faint);
}

.tx__tag--rec {
  left: 0.8rem;
  color: var(--paper);
}

.tx__tag--rec::before {
  content: "● ";
  color: #ff3946;
}

.tx__tag--dur {
  right: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.tx__player,
.tx__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tx__body {
  display: grid;
  gap: 0.7rem;
  padding-top: 1.2rem;
}

.tx__eyebrow {
  display: flex;
  gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}

.tx__eyebrow span:last-child {
  color: var(--muted);
}

.tx__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  line-height: 1.15;
}

.tx__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tx__actions button,
.tx__actions a {
  position: relative;
  padding: 0.2rem 0;
  color: var(--muted);
  transition: color 0.3s;
}

.tx__actions button::after,
.tx__actions a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.tx__actions button:hover,
.tx__actions a:hover {
  color: var(--signal);
}

.tx__actions button:hover::after,
.tx__actions a:hover::after {
  transform: none;
}

.tx-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: max-content;
  margin: clamp(3rem, 10vh, 7rem) auto 0;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.tx-more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.tx-more:hover {
  border-color: var(--signal);
  color: var(--ink);
  background: var(--signal);
}

/* ------------------------------------------------------------------ exit */

.exit {
  position: relative;
  z-index: 1;
  height: 190vh;
}

.exit__pin {
  --p: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vh, 3.5rem);
  padding: 6rem var(--gutter) 1.5rem;
  overflow: hidden;
}

.exit__label {
  opacity: calc(0.2 + var(--p));
}

.exit__word {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 17.5vw;
  line-height: 0.82;
  letter-spacing: calc((1 - var(--p)) * 0.35em - 0.02em);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--paper-rgb), 0.4);
  background-image: linear-gradient(0deg, var(--signal) 0 50%, transparent 50% 100%);
  background-size: 100% 200%;
  background-position: 0 calc(var(--p) * 100%);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transform: scale(calc(0.7 + var(--p) * 0.3));
  filter: drop-shadow(0 0 calc(var(--p) * 40px) rgba(var(--signal-rgb), 0.35));
}

.exit__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 40px));
}

.exit__nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  text-transform: uppercase;
  transition: color 0.3s;
}

.exit__nav a span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--signal);
}

.exit__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.exit__nav a:hover {
  color: var(--signal);
}

.exit__nav a:hover::after {
  transform: none;
  transform-origin: left;
}

.exit__base {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.4rem;
  display: flex;
  justify-content: flex-start;
  gap: 1rem 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--faint);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.exit__base a:hover {
  color: var(--signal);
}

/* ------------------------------------------------------- hidden frequency */

.freq {
  position: fixed;
  right: var(--gutter);
  bottom: 1.4rem;
  z-index: 850;
  display: grid;
  justify-items: end;
  gap: 0.6rem;
}

.freq__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--faint);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(8px);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.freq__toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.freq__toggle:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.freq__toggle[aria-pressed="true"] {
  color: var(--ink);
  background: var(--signal);
  border-color: var(--signal);
}

.freq__toggle[aria-pressed="true"] svg {
  animation: blink 0.9s steps(2, jump-none) infinite;
}

.freq__panel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(8px);
  animation: notice-in 0.5s var(--ease-out);
}

.freq__panel[hidden] {
  display: none;
}

.freq__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.freq__bars i {
  width: 3px;
  height: 100%;
  background: var(--signal);
  transform-origin: bottom;
  transform: scaleY(0.12);
}

.freq__mute svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.freq__mute .freq__icon-off,
.freq__mute[aria-pressed="true"] .freq__icon-on {
  display: none;
}

.freq__mute[aria-pressed="true"] .freq__icon-off {
  display: block;
}

.freq__vol {
  display: grid;
  gap: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.freq__vol input {
  width: 7.5rem;
  accent-color: var(--signal);
}

.reign {
  position: fixed;
  inset: 0;
  z-index: 820;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.reign span {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--signal);
}

.reign strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 7rem);
  line-height: 0.95;
  background: linear-gradient(180deg, #ffe17a, #ff5eac 55%, #8b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 94, 172, 0.45));
}

.reign.is-playing {
  visibility: visible;
  animation: reign 4.6s var(--ease-out) forwards;
}

@keyframes reign {
  0% { opacity: 0; transform: scale(1.4); filter: blur(14px); letter-spacing: 0.2em; }
  14% { opacity: 1; transform: scale(1); filter: blur(0); letter-spacing: 0; }
  78% { opacity: 1; transform: scale(0.97); }
  100% { opacity: 0; transform: scale(0.92); filter: blur(8px); }
}

/* ----------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 900;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--signal);
  background: rgba(5, 5, 5, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------- reveal */

html.js:not(.reduced) [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--d, 0s),
    transform 1.1s var(--d, 0s) var(--ease-out);
}

html.js:not(.reduced) [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------- static (mobile/reduced) */

html.static .hero {
  height: 150vh;
}

html.reduced .hero {
  height: auto;
}

html.reduced .hero__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
}

html.static .access {
  height: auto !important;
}

html.static .access__pin {
  position: relative;
  height: auto;
  padding: 16vh 0 6vh;
}

html.static .access__track {
  flex-direction: column;
  width: auto;
  transform: none !important;
}

html.static .access__intro {
  width: auto;
  padding: 0 0 1rem;
}

html.static .node {
  width: 100%;
  height: auto;
  min-height: 15rem;
}

html.static .access__progress {
  display: none;
}

html.reduced .exit {
  height: auto;
}

html.reduced .exit__pin {
  --p: 1 !important;
  position: relative;
  min-height: 100vh;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 64rem) {
  .chapters {
    display: none;
  }

  .tx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tx:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-top: 0;
  }

  .fragment__file {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fragment__file > div:nth-child(3) {
    padding-left: 0;
  }
}

@media (min-width: 48.01rem) {
  .hero__content {
    padding-right: calc(var(--gutter) + 3.5rem);
  }
}

@media (max-width: 48rem) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar__status {
    display: none;
  }

  .chapters {
    display: none;
  }

  .hero__label-sub,
  .hero__coords {
    display: none;
  }

  .hero__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__glyph {
    font-size: 70vh;
    margin-top: -35vh;
    right: -20vw;
  }

  .hero__reticle--a {
    top: 12vh;
    left: auto;
    right: 6vw;
  }

  .hero__notice {
    top: auto;
    bottom: 5.4rem;
    left: var(--gutter);
    right: var(--gutter);
  }

  .hero__scroll {
    display: none;
  }

  .tx-grid {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .tx:nth-child(n) {
    margin-top: 0;
    max-width: none;
  }

  .fragment {
    min-height: auto;
    padding: 16vh var(--gutter);
  }

  .exit__base {
    flex-direction: column;
    padding-bottom: 3.6rem;
  }

  .freq__toggle span {
    display: none;
  }

  .freq__vol input {
    width: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }

  .grain {
    display: none;
  }
}
