/* ============================================================
   REHAN ALI — cinematic scroll portfolio
   ink black · cream type · red accent · Anton / Playfair / Grotesk
   ============================================================ */

:root {
  --ink: #0b0a08;
  --ink-2: #12100d;
  --cream: #f4ecdd;
  --cream-dim: rgba(244, 236, 221, 0.55);
  --red: #e8102e;
  --red-deep: #8f0a1d;
  --display: "Anton", impact, sans-serif;
  --serif: "Playfair Display", georgia, serif;
  --grotesk: "Space Grotesk", system-ui, sans-serif;
}

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

html { background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--grotesk);
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--cream); }

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

/* ---------- scroll progress ---------- */
#scrollProgress {
  position: fixed; z-index: 96; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

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

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 95; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.pre-inner { width: min(420px, 80vw); text-align: left; }
.pre-mark {
  font-family: var(--display); font-size: 2rem; letter-spacing: 0.04em;
  color: var(--cream);
}
.pre-mark span { color: var(--red); }
.pre-count {
  font-family: var(--display); font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1; margin: 1.2rem 0 1rem; color: var(--cream);
}
.pre-bar {
  height: 2px; background: rgba(244, 236, 221, 0.15); overflow: hidden;
}
.pre-bar i { display: block; height: 100%; width: 0%; background: var(--red); }
.pre-note {
  margin-top: 0.8rem; font-size: 0.65rem; letter-spacing: 0.35em;
  color: var(--cream-dim);
}
#preloader.done { pointer-events: none; }

/* ---------- nav ---------- */
#nav {
  position: fixed; z-index: 80; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 2rem; mix-blend-mode: difference;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
body.ready #nav { opacity: 1; transform: none; }
.nav-mark { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.06em; }
.nav-mark span { color: var(--red); }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-size: 0.68rem; letter-spacing: 0.28em; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 640px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { letter-spacing: 0.14em; font-size: 0.62rem; }
  .nav-links a[href="#numbers"] { display: none; }
  .nav-mark { font-size: 0.95rem; }
  #nav { padding: 1.2rem 1.2rem; }
}

/* ---------- shared ---------- */
.section-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.4em; color: var(--cream-dim);
  display: flex; align-items: center; gap: 0.9rem;
}
.section-eyebrow span { color: var(--red); font-weight: 600; }
.section-eyebrow::after {
  content: ""; height: 1px; width: 72px; background: rgba(244, 236, 221, 0.25);
}

.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(0.95) contrast(1.04) brightness(1.08);
}
.video-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 8, 0.72) 0%, rgba(11, 10, 8, 0.26) 30%, rgba(11, 10, 8, 0.26) 70%, rgba(11, 10, 8, 0.82) 100%);
}
.video-shade.heavy {
  background:
    linear-gradient(180deg, rgba(11, 10, 8, 0.35) 0%, rgba(11, 10, 8, 0.32) 45%, rgba(11, 10, 8, 0.78) 100%);
}

/* ============================================================
   01 · HERO
   ============================================================ */
#hero { height: 460vh; position: relative; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
#orbit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(11, 10, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 10, 8, 0.4) 0%, transparent 20%, transparent 76%, rgba(11, 10, 8, 0.65) 100%);
}

.hero-title {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 400;
  color: var(--cream);
  text-shadow: 0 2px 70px rgba(11, 10, 8, 0.55);
  pointer-events: none; user-select: none;
}
.hero-title .line {
  display: block; line-height: 0.84; letter-spacing: 0.01em;
  font-size: clamp(5rem, 21vw, 24rem);
  white-space: nowrap;
}
.hero-title .char {
  display: inline-block; will-change: transform, opacity;
}
.hero-title .char.red { color: var(--red); }

.hero-sub {
  position: absolute; z-index: 4; left: 50%; bottom: 18vh; transform: translateX(-50%);
  font-size: clamp(0.7rem, 1.4vw, 0.95rem); letter-spacing: 0.42em; text-align: center;
  color: var(--cream); white-space: nowrap;
}
.hero-sub em {
  font-family: var(--serif); font-style: italic; text-transform: none;
  letter-spacing: 0.02em; color: var(--red); font-size: 1.25em;
}

.hero-hud {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 1.6rem 2rem;
  font-size: 0.62rem; letter-spacing: 0.3em; color: var(--cream-dim);
}
.hud-scroll { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.scroll-line { width: 1px; height: 44px; background: rgba(244, 236, 221, 0.2); overflow: hidden; }
.scroll-line i {
  display: block; width: 100%; height: 100%; background: var(--red);
  animation: scrollDrip 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scrollDrip {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
.hud-deg {
  font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.08em;
  color: var(--cream);
}
.hud-deg span { color: #2de282; text-shadow: 0 0 10px rgba(45, 226, 130, 0.4); }

/* ---------- dossier HUD ---------- */
.hud-frame {
  position: absolute; z-index: 2; inset: 16vh 22vw 12vh; pointer-events: none;
}
.hud-frame i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(45, 226, 130, 0.55); }
.hud-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hud-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hud-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hud-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

.hud-scan {
  position: absolute; z-index: 2; left: 0; right: 0; top: -140px; height: 130px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(232, 16, 46, 0.05) 35%, rgba(232, 16, 46, 0.13) 55%, transparent);
  animation: hudScan 7s linear infinite;
}
@keyframes hudScan { to { transform: translateY(125vh); } }

.hud-dossier {
  position: absolute; z-index: 4; left: 2rem; top: 50%; transform: translateY(-50%);
  font-size: 0.6rem; letter-spacing: 0.24em; line-height: 2.3; color: var(--cream-dim);
  text-transform: uppercase;
}
.d-line { opacity: 0; transition: opacity 0.3s ease; }
.d-line.on { opacity: 1; }
.d-k { color: var(--red); font-weight: 600; }
.d-v { color: var(--cream); }
.d-cursor {
  display: inline-block; width: 7px; height: 0.9em; margin-left: 7px;
  background: var(--red); vertical-align: -0.1em;
  animation: dBlink 1s steps(1) infinite;
}
@keyframes dBlink { 50% { opacity: 0; } }

/* ---------- split-flap board ---------- */
#flapBoard { display: inline-flex; gap: 3px; }
.flap-cell {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(9px, 1.35vw, 17px); height: clamp(16px, 2.1vw, 27px);
  background: rgba(45, 226, 130, 0.08);
  border: 1px solid rgba(45, 226, 130, 0.18);
  border-radius: 2px;
  font-family: var(--grotesk); font-weight: 600;
  font-size: clamp(8px, 1vw, 13px); letter-spacing: 0;
  color: #2de282; position: relative;
  text-shadow: 0 0 8px rgba(45, 226, 130, 0.45);
  transition: transform 0.08s ease;
}
.flap-cell::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: rgba(11, 10, 8, 0.55);
}
.flap-cell.flip { transform: scaleY(0.55); filter: brightness(1.6); }

@media (max-width: 760px) {
  .hud-dossier { display: none; }
  .hud-frame { inset: 13vh 7vw 11vh; }
  #flapBoard { gap: 2px; }
  .flap-cell { width: 8px; height: 14px; font-size: 7px; border-radius: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-scan { animation: none; opacity: 0; }
  .d-cursor { animation: none; }
}

/* ============================================================
   02 · NUMBERS
   ============================================================ */
#numbers { position: relative; background: var(--ink); padding: 0 0 16vh; }

.marquee { overflow: hidden; border-top: 1px solid rgba(244, 236, 221, 0.1); border-bottom: 1px solid rgba(244, 236, 221, 0.1); padding: 1.1rem 0; }
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--display); font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.06em; color: transparent;
  -webkit-text-stroke: 1px rgba(244, 236, 221, 0.55);
}
.marquee-track em { font-family: var(--serif); font-style: italic; color: var(--red); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats-wrap { padding: 14vh 6vw 0; }
.stats-grid {
  margin-top: 8vh; display: grid; gap: 4rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.stat { border-left: 1px solid rgba(244, 236, 221, 0.14); padding-left: 1.6rem; }
.stat-num {
  font-family: var(--display); font-size: clamp(4.5rem, 9vw, 8.5rem);
  line-height: 0.9; color: var(--cream);
}
.stat-num sup { font-size: 0.35em; color: var(--red); top: -1.2em; position: relative; }
.stat-label {
  margin-top: 1.1rem; font-size: 0.66rem; letter-spacing: 0.3em; color: var(--cream-dim);
}

/* ============================================================
   03 · PILLARS
   ============================================================ */
#pillars { height: 420vh; position: relative; }
.pillars-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--ink-2); }
.pillars-eyebrow { position: absolute; z-index: 5; top: 7rem; left: 6vw; }

.pillar {
  position: absolute; z-index: 4; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 6vw; opacity: 0; visibility: hidden;
}
.pillar-idx {
  font-family: var(--display); font-size: clamp(7rem, 22vw, 20rem);
  position: absolute; right: 4vw; top: 50%; transform: translateY(-50%);
  color: transparent; -webkit-text-stroke: 1px rgba(244, 236, 221, 0.14);
  pointer-events: none;
}
.pillar-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.2rem, 9.5vw, 9.5rem); line-height: 0.88; letter-spacing: 0.01em;
}
.pillar-pitch {
  margin-top: 2rem; max-width: 34rem;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem); line-height: 1.65; color: var(--cream-dim);
  letter-spacing: 0.02em;
}
.pillar-pitch em { font-family: var(--serif); font-style: italic; color: var(--red); font-size: 1.15em; }
.pillar-rule { margin-top: 2.4rem; height: 2px; width: 120px; background: var(--red); transform-origin: left; }
.pillar-link {
  margin-top: 1.8rem; display: inline-flex; align-items: center; gap: 0.6rem;
  width: fit-content; font-size: 0.68rem; letter-spacing: 0.32em; font-weight: 600;
  color: var(--cream); border-bottom: 1px solid rgba(232, 16, 46, 0.6);
  padding-bottom: 0.5rem; transition: color 0.3s ease;
}
.pillar-link span { color: var(--red); transition: transform 0.3s ease; }
.pillar-link:hover { color: var(--red); }
.pillar-link:hover span { transform: translateX(6px); }

.pillar-progress {
  position: absolute; z-index: 5; bottom: 2rem; right: 2rem;
  font-family: var(--display); font-size: 1rem; letter-spacing: 0.15em;
  color: var(--cream-dim);
}
.pillar-progress span { color: var(--red); font-size: 1.6em; }

/* ============================================================
   04 · WORK
   ============================================================ */
#work { position: relative; padding: 18vh 6vw; overflow: hidden; }
.work-inner { position: relative; z-index: 3; }
.work-heading {
  margin: 3rem 0 7vh; font-family: var(--display); font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 11rem); line-height: 0.86;
}
.work-heading em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--red); font-size: 0.85em;
}

.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  position: relative; padding: 2rem 1.8rem 2.2rem;
  background: rgba(11, 10, 8, 0.62); border: 1px solid rgba(244, 236, 221, 0.14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.4s ease, background 0.4s ease;
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 16, 46, 0.13), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover { border-color: rgba(232, 16, 46, 0.65); background: rgba(18, 16, 13, 0.8); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; }
.card-no { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--cream-dim); }
.card-arrow {
  font-size: 1.3rem; color: var(--red);
  transform: translate(-8px, 8px); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}
.card:hover .card-arrow { transform: translate(0, 0); opacity: 1; }
.card-title {
  margin-top: 4.5rem; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: 0.02em;
}
.card-pitch { margin-top: 1rem; font-size: 0.9rem; line-height: 1.6; color: var(--cream-dim); }
.card-tag {
  display: inline-block; margin-top: 1.8rem; padding: 0.45rem 0.9rem;
  font-size: 0.58rem; letter-spacing: 0.32em; color: var(--red);
  border: 1px solid rgba(232, 16, 46, 0.5);
}

/* ============================================================
   05 · SOCIALS
   ============================================================ */
#socials { position: relative; padding: 18vh 6vw 14vh; background: var(--ink); }
.soc-heading {
  margin: 3rem 0 7vh; font-family: var(--display); font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 11rem); line-height: 0.86;
}
.soc-heading em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--red); font-size: 0.85em;
}
/* two-column face-off: business | personal, split by a hairline */
.soc-split {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; align-items: start;
}
.soc-side { position: relative; padding: 0 3.4vw; }
.soc-side:first-child { padding-left: 0; }
.soc-side:last-child { padding-right: 0; }
/* the dividing hairline */
.soc-side + .soc-side::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg,
    transparent, rgba(244, 236, 221, 0.16) 12%,
    rgba(232, 16, 46, 0.45) 50%,
    rgba(244, 236, 221, 0.16) 88%, transparent);
}
.soc-side-inner { position: relative; }

.soc-group-label {
  font-size: 0.66rem; letter-spacing: 0.4em; color: var(--cream-dim);
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.9rem;
}
.soc-group-label span { color: var(--red); font-weight: 600; }
.soc-side-sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--cream-dim);
  margin-bottom: 3rem;
}
.soc-list { border-top: 1px solid rgba(244, 236, 221, 0.1); }

@media (max-width: 640px) {
  .soc-split { grid-template-columns: 1fr; gap: 7vh; }
  .soc-side { padding: 0; }
  .soc-side + .soc-side::before {
    left: 0; right: 0; top: -3.5vh; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 16, 46, 0.45), transparent);
  }
}
.soc-row {
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 1.4rem;
  padding: 1.5rem 0.5rem; position: relative;
  border-bottom: 1px solid rgba(244, 236, 221, 0.1);
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}
.soc-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.soc-row:hover { padding-left: 1.6rem; background: rgba(232, 16, 46, 0.05); }
.soc-row:hover::before { transform: scaleY(1); }
.soc-idx {
  font-size: 0.66rem; letter-spacing: 0.3em; color: var(--cream-dim);
}
.soc-name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem); line-height: 0.95; letter-spacing: 0.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 236, 221, 0.55);
  transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease;
}
.soc-row:hover .soc-name { color: var(--cream); -webkit-text-stroke-color: transparent; }
.soc-handle {
  font-size: 0.64rem; letter-spacing: 0.3em; color: var(--cream-dim); white-space: nowrap;
}
.soc-arrow {
  font-size: 1.6rem; color: var(--red);
  opacity: 0; transform: translate(-10px, 10px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.soc-row:hover .soc-arrow { opacity: 1; transform: translate(0, 0); }

/* auto-spotlight: same look as hover, driven by JS */
.soc-row { overflow: hidden; }
.soc-row > span { position: relative; z-index: 1; }
.soc-row.lit { padding-left: 1.6rem; background: rgba(232, 16, 46, 0.05); }
.soc-row.lit::before { transform: scaleY(1); }
.soc-row.lit .soc-name { color: var(--cream); -webkit-text-stroke-color: transparent; }
.soc-row.lit .soc-arrow { opacity: 1; transform: translate(0, 0); }

/* glitch flicker: signal tear when a row lights or is hovered */
.soc-name { position: relative; }
.soc-name::before, .soc-name::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  opacity: 0; pointer-events: none; -webkit-text-stroke: 0;
}
.soc-row.lit .soc-name, .soc-row:hover .soc-name {
  animation: glitchShake 0.45s steps(2) both;
}
.soc-row.lit .soc-name::before, .soc-row:hover .soc-name::before {
  color: var(--red);
  animation: glitchSliceA 0.55s steps(3) both;
}
.soc-row.lit .soc-name::after, .soc-row:hover .soc-name::after {
  color: rgba(244, 236, 221, 0.9);
  animation: glitchSliceB 0.55s steps(3) both;
}
@keyframes glitchShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}
@keyframes glitchSliceA {
  0% { opacity: 0.85; clip-path: inset(5% 0 70% 0); transform: translate(-6px, -2px); }
  33% { opacity: 0.85; clip-path: inset(40% 0 30% 0); transform: translate(5px, 1px); }
  66% { opacity: 0.85; clip-path: inset(70% 0 5% 0); transform: translate(-4px, 2px); }
  100% { opacity: 0; clip-path: inset(70% 0 5% 0); transform: translate(0, 0); }
}
@keyframes glitchSliceB {
  0% { opacity: 0.7; clip-path: inset(60% 0 10% 0); transform: translate(6px, 2px); }
  33% { opacity: 0.7; clip-path: inset(10% 0 60% 0); transform: translate(-5px, -1px); }
  66% { opacity: 0.7; clip-path: inset(35% 0 35% 0); transform: translate(4px, -2px); }
  100% { opacity: 0; clip-path: inset(35% 0 35% 0); transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .soc-row.lit .soc-name, .soc-row:hover .soc-name,
  .soc-row.lit .soc-name::before, .soc-row:hover .soc-name::before,
  .soc-row.lit .soc-name::after, .soc-row:hover .soc-name::after { animation: none; }
}
@media (max-width: 640px) {
  .soc-handle { display: none; }
  .soc-row { gap: 1.2rem; }
}

/* ============================================================
   06 · FINALE + FOOTER
   ============================================================ */
.finale {
  position: relative; padding: 24vh 6vw 14vh; text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 62%, rgba(143, 10, 29, 0.24), transparent 70%),
    var(--ink);
}
.finale-title {
  margin-top: 4vh; font-family: var(--display); font-weight: 400;
  line-height: 0.86; letter-spacing: 0.01em;
}
.finale-title .line { display: block; font-size: clamp(3.6rem, 13.5vw, 15rem); }
.finale-title .red { color: var(--red); }
.finale .section-eyebrow { justify-content: center; }
.finale-sub {
  margin-top: 3.5vh; font-family: var(--serif); font-style: italic;
  font-size: clamp(1rem, 2vw, 1.4rem); color: var(--cream-dim);
}
.finale-cta {
  margin-top: 7vh; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
}
.btn {
  font-family: var(--grotesk); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.3em;
  padding: 1.25rem 2.6rem; position: relative; overflow: hidden;
  transition: color 0.35s ease;
}
.btn-red { background: var(--red); color: var(--cream); }
.btn-ghost { border: 1px solid rgba(244, 236, 221, 0.4); color: var(--cream); }
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--cream);
  transform: translateY(101%); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.btn { z-index: 1; }
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--ink); }

footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.4rem;
  padding: 2.2rem 2rem; border-top: 1px solid rgba(244, 236, 221, 0.1);
}
.foot-socials { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot-socials a {
  font-size: 0.62rem; letter-spacing: 0.28em; color: var(--cream-dim);
  transition: color 0.3s ease;
}
.foot-socials a:hover { color: var(--red); }
.foot-credit { font-size: 0.62rem; letter-spacing: 0.28em; color: var(--cream-dim); }

/* ---------- custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor .vault-head, body.has-cursor input { cursor: none; }
}
#cursorDot {
  position: fixed; z-index: 990; top: 0; left: 0; width: 6px; height: 6px;
  margin: -3px 0 0 -3px; border-radius: 50%; background: var(--red);
  pointer-events: none; opacity: 0; transition: opacity 0.25s ease;
}
#cursorRing {
  position: fixed; z-index: 989; top: 0; left: 0;
  min-width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(244, 236, 221, 0.4); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease,
    min-width 0.3s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#cursorRing span {
  font-family: var(--grotesk); font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.22em; color: var(--cream); white-space: nowrap;
  padding: 0 0.9rem; opacity: 0; transition: opacity 0.2s ease;
}
body.cursor-on #cursorDot, body.cursor-on #cursorRing { opacity: 1; }
#cursorRing.is-pill {
  background: var(--red); border-color: var(--red);
  min-width: 74px; height: 30px; margin-top: -15px;
}
#cursorRing.is-pill span { opacity: 1; }
#cursorRing.is-grow { min-width: 52px; height: 52px; margin-top: -26px; border-color: rgba(232, 16, 46, 0.7); }

/* ---------- reveal helper ---------- */
.reveal-y { opacity: 0; transform: translateY(60px); }

@media (max-width: 640px) {
  .hero-sub { white-space: normal; width: 86vw; letter-spacing: 0.3em; }
  .pillar-idx { display: none; }
  .hud-left { display: none; }
}
