/* ============================================================
   ABYSSAL — a vertical survey of the deep ocean
   Type: Instrument Serif / Space Grotesk / IBM Plex Mono
   Palette: abyssal ink · biolume cyan · electric violet · signal amber
   ============================================================ */

:root {
  --ink: #020408;
  --abyss: #050d18;
  --bone: #e9f2ef;
  --mist: rgba(233, 242, 239, 0.52);
  --faint: rgba(233, 242, 239, 0.28);
  --glow: #5ff2e0;
  --violet: #8b7bff;
  --amber: #ffb454;
  --line: rgba(233, 242, 239, 0.14);
  --serif: 'Instrument Serif', Georgia, serif;
  --grot: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', monospace;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--grot);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

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

.grain {
  position: fixed;
  inset: -100px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-38px, 22px); }
  50% { transform: translate(24px, -30px); }
  75% { transform: translate(-14px, -40px); }
  100% { transform: translate(0, 0); }
}

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

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

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--glow);
  box-shadow: 0 0 12px 2px rgba(95, 242, 224, 0.8);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(95, 242, 224, 0.4);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), height 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s;
}
body.cursor-hot .cursor-ring {
  width: 64px; height: 64px;
  border-color: rgba(139, 123, 255, 0.7);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- loader ---------- */

#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2.2rem;
}
.loader-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--mist);
  text-transform: uppercase;
}
.loader-count {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}
.loader-count em {
  font-style: italic;
  color: var(--glow);
  font-size: 0.35em;
}
.loader-bar {
  width: min(320px, 60vw);
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.loader-bar span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--glow), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
}
.loader-status {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--faint);
  text-transform: uppercase;
  min-height: 1em;
}

/* ---------- HUD ---------- */

#hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  font-family: var(--mono);
  opacity: 0;
}
.hud-tl {
  position: absolute;
  top: 1.4rem; left: var(--pad);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hud-tl .blip {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hud-tr {
  position: absolute;
  top: 1.4rem; right: var(--pad);
  text-align: right;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hud-tr .depth {
  font-size: 0.95rem;
  color: var(--bone);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.hud-tr .zone { color: var(--glow); }
.hud-rail {
  position: absolute;
  right: calc(var(--pad) * 0.55);
  top: 20vh;
  height: 60vh;
  width: 1px;
  background: var(--line);
}
.hud-rail .tick {
  position: absolute;
  right: 0;
  width: 7px;
  height: 1px;
  background: var(--faint);
}
.hud-rail .tick-label {
  position: absolute;
  right: 14px;
  transform: translateY(-50%);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hud-rail .fill {
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--glow), var(--violet));
  height: 0%;
}
.hud-rail .mark {
  position: absolute;
  right: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
  top: 0%;
  transform: translateY(-50%);
}
.hud-bl {
  position: absolute;
  bottom: 1.4rem; left: var(--pad);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  display: flex;
  gap: 2rem;
}
.hud-bl b { color: var(--mist); font-weight: 400; }
@media (max-width: 720px) {
  .hud-bl { display: none; }
  .hud-rail { display: none; }
  .hud-tl, .hud-tr {
    background: rgba(2, 4, 8, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(233, 242, 239, 0.08);
  }
  .hud-tr { padding: 0.55rem 0.8rem; }
}

/* ---------- shared section chrome ---------- */

section { position: relative; padding-left: var(--pad); padding-right: var(--pad); }

.chapter-tag {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--glow);
}
.chapter-tag::before {
  content: '';
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--glow), transparent);
}
.chapter-tag .dim { color: var(--mist); opacity: 0.75; }

[data-reveal] {
  opacity: 0;
  transform: translateY(46px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
}

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 9vh;
}
.hero-kicker {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 2.4rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.hero-kicker::after {
  content: '';
  flex: 0 0 6rem;
  height: 1px;
  background: var(--line);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.2rem, 17.5vw, 16rem);
  line-height: 0.88;
  letter-spacing: -0.015em;
  display: flex;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-title .lt {
  display: inline-block;
  transform: translateY(115%) rotate(6deg);
  will-change: transform;
}
.hero-title .lt.it {
  font-style: italic;
  background: linear-gradient(115deg, var(--glow) 10%, var(--violet) 45%, var(--glow) 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.04em;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.hero-sub {
  margin-top: 2.6rem;
  max-width: 34rem;
  color: var(--mist);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
}
.hero-sub em { font-family: var(--serif); font-style: italic; color: var(--bone); font-size: 1.15em; }
.hero-foot {
  margin-top: 3.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--mist);
}
.scroll-cue .cue-line {
  width: 1px;
  height: 3.2rem;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue .cue-line::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--glow);
  animation: cue 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* ---------- statement (word glow) ---------- */

.statement {
  padding-top: 26vh;
  padding-bottom: 26vh;
  max-width: 78rem;
}
.statement p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.3vw, 3.9rem);
  line-height: 1.28;
  letter-spacing: 0.002em;
  margin-top: 3.2rem;
}
.statement .w {
  opacity: 0.13;
  transition: none;
  will-change: opacity;
}
.statement .w.hl { font-style: italic; }
.statement .w.hl-c { color: var(--glow); font-style: italic; }
.statement .w.hl-v { color: var(--violet); font-style: italic; }
.statement .w.hl-a { color: var(--amber); font-style: italic; }

/* ---------- stats ---------- */

.stats {
  padding-top: 20vh;
  padding-bottom: 22vh;
}
.stats-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 5rem;
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr; } }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
}
.stat .num sup {
  font-size: 0.32em;
  font-family: var(--mono);
  color: var(--glow);
  margin-left: 0.25em;
  letter-spacing: 0.1em;
}
.stat .lbl {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
  max-width: 24ch;
  line-height: 1.9;
}
.stat:nth-child(2) .num sup { color: var(--violet); }
.stat:nth-child(3) .num sup { color: var(--amber); }

/* ---------- quote ---------- */

.quote {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 18vh;
  padding-bottom: 18vh;
}
.quote blockquote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 5rem);
  line-height: 1.18;
  max-width: 62rem;
}
.quote blockquote em {
  font-style: italic;
  background: linear-gradient(110deg, var(--glow), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quote cite {
  margin-top: 2.6rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
}

/* ---------- specimen gallery (pinned horizontal) ---------- */

.gallery { overflow: clip; }
.gallery-pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.gallery-count {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
  padding-left: 1.5rem;
}
.gallery-count b { color: var(--glow); font-weight: 500; }
.gallery-track {
  display: flex;
  gap: clamp(2rem, 4vw, 4.5rem);
  width: max-content;
  will-change: transform;
}
.plate {
  width: clamp(300px, 38vw, 560px);
  flex-shrink: 0;
}
.plate-wide {
  width: clamp(340px, 52vw, 780px);
}
.plate-frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--abyss);
}
.plate-frame.wide { aspect-ratio: 3 / 2; }
.plate-frame img {
  width: 112%;
  height: 112%;
  object-fit: cover;
  position: absolute;
  top: -6%; left: -6%;
  transform: scale(1.02);
  will-change: transform;
  filter: saturate(1.05) contrast(1.02);
  transition: filter 0.7s ease;
}
.plate-frame {
  transition: border-color 0.5s ease, box-shadow 0.7s ease;
}
@media (hover: hover) {
  .plate-frame:hover {
    border-color: rgba(95, 242, 224, 0.45);
    box-shadow: 0 0 44px rgba(95, 242, 224, 0.12), inset 0 0 44px rgba(95, 242, 224, 0.05);
  }
  .plate-frame:hover img {
    filter: saturate(1.25) contrast(1.06) brightness(1.08);
  }
}
.plate-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(2, 4, 8, 0.65);
  pointer-events: none;
}
.plate-index {
  position: absolute;
  top: 0.9rem; left: 1rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--glow);
  z-index: 2;
  text-shadow: 0 0 12px rgba(2, 4, 8, 0.9);
}
.plate-frame .scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 242, 224, 0.55), transparent);
  top: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.plate-cap { margin-top: 1.3rem; }
.plate-cap .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: var(--bone);
}
.plate-cap .common {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 0.35rem;
}
.plate-data {
  margin-top: 0.9rem;
  display: flex;
  gap: 2.2rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.plate-data b { color: var(--mist); font-weight: 400; display: block; }
.gallery-progress {
  margin-top: clamp(1.5rem, 4vh, 3rem);
  height: 1px;
  background: var(--line);
  position: relative;
}
.gallery-progress span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--glow), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
}

/* vertical fallback on small screens */
@media (max-width: 720px) {
  .gallery-pin { height: auto; padding-top: 14vh; padding-bottom: 14vh; }
  .gallery-track { flex-direction: column; width: 100%; }
  .plate { width: 100%; }
  .gallery-progress { display: none; }
}

/* ---------- abyss (pressure) ---------- */

.pressure {
  min-height: 110vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20vh;
  padding-bottom: 20vh;
  text-align: center;
  align-items: center;
}
.pressure .big {
  font-family: var(--serif);
  font-size: clamp(5rem, 16vw, 15rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 0.08em;
}
.pressure .big em {
  font-style: italic;
  font-size: 0.35em;
  color: var(--amber);
}
.pressure .cap {
  margin-top: 1.8rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
}
.pressure p.body {
  margin-top: 2.8rem;
  max-width: 36rem;
  color: var(--mist);
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
}
.pressure p.body em { font-family: var(--serif); font-style: italic; color: var(--bone); }

/* ---------- hadal ---------- */

.hadal {
  padding-top: 18vh;
  padding-bottom: 10vh;
}
.hadal-figure {
  position: relative;
  margin-top: 4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
}
.hadal-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.15);
  will-change: transform;
  filter: saturate(1.05);
}
.hadal-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 4, 8, 0.55) 0%, transparent 30%, transparent 62%, rgba(2, 4, 8, 0.82) 100%);
}
.hadal-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 3vw, 2.6rem);
  pointer-events: none;
}
.hadal-overlay .fig-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--glow);
}
.hadal-depth {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 10vw, 9rem);
  line-height: 0.95;
  color: var(--bone);
  text-shadow: 0 4px 40px rgba(2, 4, 8, 0.8);
  font-variant-numeric: tabular-nums;
}
.hadal-depth em { font-style: italic; color: var(--amber); font-size: 0.4em; }
.hadal-facts {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (max-width: 860px) { .hadal-facts { grid-template-columns: 1fr; } }
.fact {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.fact .k {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 0.8rem;
}
.fact p { color: var(--mist); font-size: 0.92rem; max-width: 34ch; }
.fact p em { font-family: var(--serif); font-style: italic; color: var(--bone); }

/* ---------- marquee ---------- */

.marquee {
  padding-top: 8vh;
  padding-bottom: 8vh;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-inner {
  display: inline-flex;
  will-change: transform;
  animation: marquee 36s linear infinite;
}
.marquee span {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  padding: 0 0.5em;
  color: var(--faint);
}
.marquee span em { font-style: italic; color: var(--glow); }
.marquee span:nth-child(even) em { color: var(--violet); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- colophon ---------- */

.colophon {
  padding-left: var(--pad);
  padding-right: var(--pad);
  padding-top: 20vh;
  padding-bottom: 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.colophon h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 1.05;
  max-width: 60rem;
}
.colophon h2 em { font-style: italic; color: var(--glow); }
.colophon-meta {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.meta-block .k {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}
.meta-block p { color: var(--mist); font-size: 0.88rem; max-width: 30ch; }
.swatches { display: flex; gap: 0.7rem; }
.swatch {
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
}
.swatch::after {
  content: attr(data-hex);
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.swatch:hover::after { opacity: 1; }
.colophon-foot {
  margin-top: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}
.resurface {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--glow);
  border: 1px solid rgba(95, 242, 224, 0.35);
  padding: 0.9rem 1.6rem;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}
.resurface:hover {
  background: var(--glow);
  color: var(--ink);
  box-shadow: 0 0 34px rgba(95, 242, 224, 0.35);
}

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

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee-inner, .scroll-cue .cue-line::after, .hud-tl .blip { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
