/* =============================================================
   NIF — Nothing is Freedom
   Ghostly · Mysterious · Emo Production Studio
   ============================================================= */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  /* palette */
  --clr-void:      #060608;
  --clr-abyss:     #0c0c10;
  --clr-shadow:    #12121a;
  --clr-mist:      #1a1a24;
  --clr-ghost:     #d0ccd8;
  --clr-specter:   #a89ab8;
  --clr-wisp:      #f0eaf8;
  --clr-ember:     #8b3a62;
  --clr-crimson:   #6b1f3a;
  --clr-bone:      #e8e0ee;
  --clr-pale:      rgba(255,255,255,0.06);
  --clr-line:      rgba(255,255,255,0.08);

  /* typography */
  --font-display:  'Playfair Display', serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'DM Mono', monospace;

  /* spacing */
  --gap:           clamp(1rem, 3vw, 2rem);
  --section-pad:   clamp(5rem, 10vw, 10rem);
  --container-w:   1200px;

  /* motion */
  --ease-ghost:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-creep:    cubic-bezier(0.68, -0.55, 0.27, 1.55);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast:      180ms;
  --dur-med:       400ms;
  --dur-slow:      800ms;
  --dur-xslow:     1200ms;
}

/* ── SELECTION ─────────────────────────────────────────────── */
::selection { background: var(--clr-ember); color: var(--clr-bone); }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--clr-void); }
::-webkit-scrollbar-thumb { background: var(--clr-ember); border-radius: 2px; }

/* ── BASE ──────────────────────────────────────────────────── */
body {
  background-color: var(--clr-void);
  color: var(--clr-ghost);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) { body { cursor: auto; } }

/* ── SCROLL PROGRESS BAR ───────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-crimson), var(--clr-ember), var(--clr-specter));
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(139,58,98,0.8), 0 0 20px rgba(139,58,98,0.4);
}

/* ── PAGE TRANSITION OVERLAY ───────────────────────────────── */
#page-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-void);
  z-index: 9990;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.9s var(--ease-out-expo);
}
#page-overlay.loaded { opacity: 0; }

/* ── NOISE CANVAS ──────────────────────────────────────────── */
#noise-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  mix-blend-mode: screen;
}

/* ── PARTICLE CANVAS ───────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-fast) ease;
}
.cursor {
  width: 8px;
  height: 8px;
  background: var(--clr-ember);
  mix-blend-mode: screen;
  transition: transform var(--dur-fast) var(--ease-ghost),
              background var(--dur-fast) ease,
              width var(--dur-med) var(--ease-creep),
              height var(--dur-med) var(--ease-creep);
}
.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(139, 58, 98, 0.5);
  transition: transform 100ms var(--ease-ghost),
              border-color var(--dur-med) ease,
              width var(--dur-med) var(--ease-ghost),
              height var(--dur-med) var(--ease-ghost),
              background var(--dur-med) ease;
}

/* cursor states */
body.cursor-hover .cursor {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
body.cursor-hover .cursor-follower {
  width: 60px;
  height: 60px;
  border-color: rgba(232,224,238,0.6);
  background: rgba(139,58,98,0.08);
}
body.cursor-drag .cursor-follower {
  width: 80px;
  height: 80px;
  border-color: rgba(139,58,98,0.8);
  border-width: 2px;
}

/* cursor trail dots */
.cursor-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-ember);
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

@media (max-width: 768px) { .cursor, .cursor-follower, .cursor-trail { display: none; } }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container {
  width: min(var(--container-w), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

/* ── SECTION SHARED ────────────────────────────────────────── */
.section {
  position: relative;
  padding-block: var(--section-pad);
  z-index: 2;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-ember);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-bone);
  margin-bottom: 1.25rem;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--clr-specter);
}

.section-sub {
  font-style: italic;
  color: var(--clr-specter);
  font-size: 1rem;
  font-weight: 300;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* ── SPLIT TEXT ────────────────────────────────────────────── */
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotate(8deg);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}
.split-char.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.split-word {
  display: inline-block;
  overflow: hidden;
}
.split-word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-out-expo);
}
.split-word.is-visible .split-word-inner {
  transform: translateY(0);
}

/* ── REVEAL ANIMATIONS ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease-ghost),
              transform var(--dur-slow) var(--ease-ghost);
}
.reveal.reveal--delay-1 { transition-delay: 100ms; }
.reveal.reveal--delay-2 { transition-delay: 200ms; }
.reveal.reveal--delay-3 { transition-delay: 320ms; }

.reveal.reveal--from-left {
  transform: translateX(-50px);
}
.reveal.reveal--from-right {
  transform: translateX(50px);
}
.reveal.reveal--scale {
  transform: scale(0.9);
}
.reveal.reveal--clip {
  clip-path: inset(0 0 100% 0);
  opacity: 1;
  transform: none;
  transition: clip-path var(--dur-slow) var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
.reveal.reveal--clip.is-visible {
  clip-path: inset(0 0 0% 0);
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: color var(--dur-med) ease,
              background var(--dur-med) ease,
              box-shadow var(--dur-med) ease,
              transform var(--dur-med) var(--ease-creep);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  color: var(--clr-bone);
  border: 1px solid rgba(232,224,238,0.25);
  background: transparent;
}
.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-ghost);
  z-index: -1;
}
.btn--ghost:hover::before { transform: scaleX(1); }
.btn--ghost:hover {
  color: var(--clr-bone);
  border-color: var(--clr-ember);
  box-shadow: 0 0 40px rgba(139,58,98,0.4), 0 10px 30px rgba(139,58,98,0.2);
}

.btn--phantom {
  color: var(--clr-specter);
  border: 1px solid rgba(168,154,184,0.15);
  background: transparent;
}
.btn--phantom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(168,154,184,0.07);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-ghost);
  z-index: -1;
}
.btn--phantom:hover::before { transform: scaleX(1); }
.btn--phantom:hover {
  color: var(--clr-bone);
  border-color: rgba(168,154,184,0.4);
  box-shadow: 0 0 20px rgba(168,154,184,0.15);
}

.btn--full { width: 100%; justify-content: center; }

/* ── ░░ NAVIGATION ░░ ───────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--dur-med) ease,
              backdrop-filter var(--dur-med) ease,
              transform var(--dur-med) var(--ease-ghost);
}
#nav.scrolled {
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-line);
}
#nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 5vw, 4rem);
  width: min(var(--container-w), 100%);
  margin-inline: auto;
}

.nav-logo { text-decoration: none; }
.logo-nif {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.15em;
  color: var(--clr-bone);
  transition: color var(--dur-med) ease, text-shadow var(--dur-med) ease;
}
.nav-logo:hover .logo-nif {
  color: var(--clr-specter);
  text-shadow: 0 0 30px rgba(168,154,184,0.5);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-specter);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--dur-med) ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--clr-ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-ghost);
}
.nav-link:hover,
.nav-link.is-active { color: var(--clr-bone); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--clr-ghost);
  transition: transform var(--dur-med) ease, opacity var(--dur-med) ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6,6,8,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-ghost);
    z-index: 999;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-link { font-size: 0.8rem; letter-spacing: 0.3em; }
}

/* ── ░░ HERO ░░ ─────────────────────────────────────────────── */
.section--hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(55%) brightness(0.3) contrast(1.15);
  transform: scale(1.12);
  will-change: transform;
}

.hero-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(6,6,8,0.15) 0%,
    rgba(6,6,8,0.55) 50%,
    rgba(6,6,8,0.97) 100%);
}

.hero-bg-scanlines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  animation: scanlines-drift 8s linear infinite;
}
@keyframes scanlines-drift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* Hero ambient orbs */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(139,58,98,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(107,31,58,0.08) 0%, transparent 60%);
  animation: hero-orbs 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-orbs {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--clr-ember);
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s 0.3s var(--ease-out-expo) forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--clr-wisp);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em;
}
.hero-title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px) skewY(6deg);
  animation: word-rise 0.9s var(--ease-out-expo) forwards;
}
.hero-title-word:nth-child(1) { animation-delay: 0.5s; }
.hero-title-row .hero-title-word:nth-child(1) { animation-delay: 0.5s; }
.hero-title-row .hero-title-word:nth-child(2) { animation-delay: 0.65s; }
.hero-title-row { display: inline-flex; gap: 0.2em; white-space: nowrap; }
/* "Freedom" word — the accent */
.hero-title > .hero-title-word:last-child { animation-delay: 0.8s; }

@keyframes word-rise {
  to { opacity: 1; transform: translateY(0) skewY(0deg); }
}
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title .accent {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240,234,248,0.45);
  position: relative;
}
/* shimmer on accent */
.hero-title .accent::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  -webkit-text-stroke: 0;
  color: transparent;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(240,234,248,0.15) 40%,
    rgba(240,234,248,0.3) 50%,
    rgba(240,234,248,0.15) 60%,
    transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% 100%;
  animation: text-shimmer 4s ease-in-out 2s infinite;
}
@keyframes text-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero-quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--clr-specter);
  line-height: 1.9;
  margin-bottom: 2.75rem;
  position: relative;
  opacity: 0;
  animation: fade-up 0.8s 1.1s var(--ease-out-expo) forwards;
}
.hero-quote::before, .hero-quote::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-ember), transparent);
  margin: 1rem auto;
  animation: expand-line 1.2s 1.5s var(--ease-out-expo) forwards;
  transform: scaleX(0);
}
@keyframes expand-line {
  to { transform: scaleX(1); }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s 1.3s var(--ease-out-expo) forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  opacity: 0;
  animation: fade-up 0.8s 1.8s var(--ease-out-expo) forwards;
}
.scroll-line {
  display: block;
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--clr-ember));
  animation: scroll-line-pulse 2s ease-in-out infinite;
}
@keyframes scroll-line-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(1.3); opacity: 1; }
}
.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--clr-ember);
  writing-mode: vertical-lr;
  animation: float-hint 2.5s ease-in-out infinite;
}
@keyframes float-hint {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ── MARQUEE TICKER ────────────────────────────────────────── */
.marquee-section {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--clr-void);
  border-top: 1px solid var(--clr-line);
  border-bottom: 1px solid var(--clr-line);
  padding-block: 1.1rem;
}
.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--clr-void), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--clr-void), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 2.5rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(168,154,184,0.4);
  transition: color var(--dur-med) ease;
}
.marquee-item:hover { color: var(--clr-specter); }
.marquee-divider {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--clr-ember);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── ░░ ABOUT ░░ ───────────────────────────────────────────── */
.section--about {
  background: linear-gradient(180deg, var(--clr-void) 0%, var(--clr-abyss) 100%);
}
.section--about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-line), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
}

.about-img-wrap {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
}
.about-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(139,58,98,0.2));
  transition: filter var(--dur-slow) ease;
  will-change: transform;
}
.about-img-wrap:hover .about-img {
  filter: drop-shadow(0 0 90px rgba(139,58,98,0.55)) brightness(1.05);
}

/* Spinning frame ring */
.about-img-frame {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
  animation: frame-breathe 6s ease-in-out infinite;
}
.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(139,58,98,0.1);
  animation: frame-breathe 6s ease-in-out infinite reverse;
}
@keyframes frame-breathe {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%       { transform: scale(1.02); opacity: 0.8; }
}

/* Corner accent marks */
.about-img-wrap::before,
.about-img-wrap::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--clr-ember);
  border-style: solid;
  opacity: 0.5;
  transition: opacity var(--dur-med) ease, width var(--dur-med) ease, height var(--dur-med) ease;
}
.about-img-wrap::before {
  top: -8px; left: -8px;
  border-width: 1px 0 0 1px;
}
.about-img-wrap::after {
  bottom: -8px; right: -8px;
  border-width: 0 1px 1px 0;
}
.about-img-wrap:hover::before,
.about-img-wrap:hover::after {
  opacity: 1;
  width: 30px; height: 30px;
}

.about-lead {
  font-size: 1.1rem;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--clr-specter);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-body p {
  color: rgba(208,204,216,0.7);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 300;
}
.about-body p:last-child { margin-bottom: 0; }

/* About stats */
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-line);
  flex-wrap: wrap;
}
.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.about-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--clr-bone);
  line-height: 1;
  position: relative;
}
.about-stat-number .count-suffix {
  font-size: 0.6em;
  color: var(--clr-ember);
  vertical-align: super;
}
.about-stat-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(168,154,184,0.5);
}

/* ── ░░ ARCHIVES ░░ ────────────────────────────────────────── */
.section--archives {
  background: var(--clr-abyss);
  position: relative;
}
.section--archives::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-ember), transparent);
}

.archives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  margin-bottom: 3rem;
}

.archive-card {
  position: relative;
  background: var(--clr-shadow);
  border: 1px solid var(--clr-line);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
  transition: border-color var(--dur-med) ease,
              box-shadow var(--dur-slow) ease,
              transform var(--dur-slow) var(--ease-ghost);
}
.archive-card:hover {
  border-color: rgba(139,58,98,0.6);
  box-shadow: 0 20px 60px rgba(139,58,98,0.2), 0 0 0 1px rgba(139,58,98,0.15);
}

/* Card ambient glow that tracks mouse */
.archive-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(139,58,98,0.12) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--dur-med) ease;
  z-index: 1;
  pointer-events: none;
}
.archive-card:hover::before { opacity: 1; }

.archive-card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.archive-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(50%) brightness(0.7);
  transition: filter var(--dur-slow) ease, transform var(--dur-xslow) ease;
}
.archive-card:hover .archive-card-img {
  filter: grayscale(10%) brightness(0.9);
  transform: scale(1.06);
}
.archive-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,12,16,0.95) 0%, transparent 60%);
  transition: opacity var(--dur-med) ease;
}
/* Tag floats up on hover */
.archive-card-tag-float {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-bone);
  background: var(--clr-ember);
  padding: 0.3rem 0.7rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur-med) ease, transform var(--dur-med) var(--ease-ghost);
  z-index: 2;
}
.archive-card:hover .archive-card-tag-float {
  opacity: 1;
  transform: translateY(0);
}

.archive-card-info {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}
.archive-card-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-ember);
  display: block;
  margin-bottom: 0.5rem;
}
.archive-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-bone);
  margin-bottom: 0.35rem;
  transition: color var(--dur-med) ease;
}
.archive-card:hover .archive-card-title { color: var(--clr-wisp); }

.archive-card-sub {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--clr-specter);
  margin-bottom: 0.75rem;
}
.archive-card-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(208,204,216,0.55);
  line-height: 1.65;
  transform: translateY(6px);
  opacity: 0.7;
  transition: opacity var(--dur-med) ease, transform var(--dur-med) var(--ease-ghost);
}
.archive-card:hover .archive-card-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Card bottom line reveal */
.archive-card-line {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-ember), transparent);
  transition: width var(--dur-slow) var(--ease-out-expo);
}
.archive-card:hover .archive-card-line { width: 100%; }

/* ── ░░ SERVICES ░░ ────────────────────────────────────────── */
.section--services {
  background: linear-gradient(180deg, var(--clr-abyss) 0%, var(--clr-shadow) 100%);
  position: relative;
  overflow: hidden;
}
.section--services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-line), transparent);
}
.section--services::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,58,98,0.07) 0%, transparent 70%);
  pointer-events: none;
  animation: orb-pulse 8s ease-in-out infinite alternate;
}
@keyframes orb-pulse {
  0%   { transform: translateX(-50%) scale(1); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; }
}

/* ─── Card Shell ──────────────────────────────────────────── */
.service-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: default;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.07),
    0 20px 60px rgba(0,0,0,0.5);
  transition: box-shadow var(--dur-slow) var(--ease-ghost),
              transform var(--dur-slow) var(--ease-ghost);
  transform-style: preserve-3d;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow:
    inset 0 0 0 1px rgba(139,58,98,0.5),
    0 40px 90px rgba(139,58,98,0.25),
    0 0 60px rgba(139,58,98,0.07);
}

/* Mouse-tracking spotlight */
.service-card-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 300px at var(--sx, 50%) var(--sy, 50%),
    rgba(139,58,98,0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity var(--dur-med) ease;
}
.service-card:hover .service-card-spotlight { opacity: 1; }

.service-card-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(255,255,255,0.03) 0%,
      rgba(255,255,255,0.01) 50%,
      rgba(0,0,0,0.15) 100%
    );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 0;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(26,26,36,0.95) 0%,
    rgba(12,12,16,0.98) 100%
  );
  z-index: 0;
}

.service-card-glow {
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(139,58,98,0) 0%,
    rgba(139,58,98,0) 100%
  );
  z-index: 1;
  transition: background var(--dur-slow) ease;
  pointer-events: none;
}
.service-card:hover .service-card-glow {
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(139,58,98,0.22) 0%,
    transparent 70%
  );
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: linear-gradient(225deg, rgba(139,58,98,0.15) 0%, transparent 60%);
  z-index: 2;
  transition: width var(--dur-slow) ease, height var(--dur-slow) ease,
              background var(--dur-slow) ease;
}
.service-card:hover::after {
  width: 120px; height: 120px;
  background: linear-gradient(225deg, rgba(139,58,98,0.35) 0%, transparent 60%);
}

.service-card-inner {
  position: relative;
  z-index: 3;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.service-card-number {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(139,58,98,0.5);
  transition: color var(--dur-med) ease;
}
.service-card:hover .service-card-number { color: var(--clr-ember); }

.service-card-icon {
  width: 38px; height: 38px;
  color: rgba(168,154,184,0.35);
  transition: color var(--dur-med) ease,
              transform var(--dur-slow) var(--ease-ghost);
}
.service-card:hover .service-card-icon {
  color: rgba(168,154,184,0.9);
  transform: scale(1.15) rotate(-8deg);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-bone);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}
.service-card-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--clr-specter);
  display: block;
  transition: color var(--dur-med) ease;
}
.service-card:hover .service-card-title em { color: var(--clr-bone); }

.service-card-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--clr-ember), transparent);
  width: 40px;
  margin: 1.75rem 0;
  transition: width var(--dur-slow) var(--ease-ghost);
}
.service-card:hover .service-card-divider { width: 100%; }

.service-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.service-card-list li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(168,154,184,0.6);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: color var(--dur-med) ease, transform var(--dur-med) var(--ease-ghost);
  letter-spacing: 0.01em;
}
.service-card:hover .service-card-list li { color: rgba(208,204,216,0.85); }
.service-card-list li:hover { color: var(--clr-bone) !important; transform: translateX(6px); }

.list-dot {
  font-size: 0.35rem;
  color: var(--clr-ember);
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity var(--dur-med) ease, transform var(--dur-med) var(--ease-ghost);
}
.service-card:hover .list-dot { opacity: 1; transform: scale(1.3); }

.service-card-arrow {
  width: 20px; height: 20px;
  color: rgba(139,58,98,0.3);
  margin-top: 2rem;
  align-self: flex-end;
  transition: color var(--dur-med) ease,
              transform var(--dur-med) var(--ease-ghost),
              opacity var(--dur-med) ease;
  opacity: 0;
  transform: translateX(-10px);
}
.service-card:hover .service-card-arrow {
  color: var(--clr-ember);
  transform: translateX(0);
  opacity: 1;
}

/* ── ░░ TEAM ░░ ─────────────────────────────────────────────── */
.section--team {
  background: var(--clr-shadow);
  position: relative;
}
.section--team::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-ember), transparent);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}

.team-card {
  position: relative;
  background: var(--clr-mist);
  border: 1px solid var(--clr-line);
  overflow: hidden;
  transition: border-color var(--dur-med) ease,
              box-shadow var(--dur-slow) ease,
              transform var(--dur-slow) var(--ease-ghost);
  transform-style: preserve-3d;
}
.team-card:hover {
  border-color: rgba(139,58,98,0.5);
  box-shadow: 0 20px 50px rgba(139,58,98,0.18), 0 0 0 1px rgba(139,58,98,0.1);
  transform: translateY(-6px);
}

/* Team card mouse-glow */
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--tx, 50%) var(--ty, 50%),
    rgba(139,58,98,0.1) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity var(--dur-med) ease;
  z-index: 2;
  pointer-events: none;
}
.team-card:hover::before { opacity: 1; }

.team-card-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.team-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(70%) brightness(0.6);
  transition: filter var(--dur-slow) ease, transform var(--dur-xslow) ease;
}
.team-card:hover .team-card-img {
  filter: grayscale(20%) brightness(0.8);
  transform: scale(1.07);
}
.team-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,8,1) 0%, transparent 65%);
  transition: opacity var(--dur-med) ease;
}
.team-card:hover .team-card-shade { opacity: 0.85; }

/* Social reveal overlay */
.team-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-med) ease, transform var(--dur-med) var(--ease-ghost);
  z-index: 3;
}
.team-card:hover .team-card-overlay {
  opacity: 1;
  transform: translateY(0);
}
.team-card-role-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-bone);
  background: rgba(139,58,98,0.85);
  padding: 0.4rem 0.9rem;
  backdrop-filter: blur(10px);
}

.team-card-info {
  position: relative;
  z-index: 3;
  padding: 1.25rem;
}
.team-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-bone);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  transition: color var(--dur-med) ease;
}
.team-card:hover .team-card-name { color: var(--clr-wisp); }

.team-card-role {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--clr-specter);
  margin-bottom: 0.35rem;
  min-height: 1.4em;
}
.team-card-spec {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(208,204,216,0.35);
  text-transform: uppercase;
  transition: color var(--dur-med) ease;
}
.team-card:hover .team-card-spec { color: rgba(208,204,216,0.6); }

/* card number badge */
.team-card-number {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(139,58,98,0.6);
  z-index: 4;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-med) ease, transform var(--dur-med) var(--ease-ghost);
}
.team-card:hover .team-card-number {
  opacity: 1;
  transform: translateX(0);
}

/* ── ░░ CONTACT ░░ ──────────────────────────────────────────── */
.section--contact {
  background: linear-gradient(180deg, var(--clr-shadow) 0%, var(--clr-void) 100%);
  position: relative;
}
.section--contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-line), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info .section-title { margin-bottom: 2.5rem; }

.contact-item {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--clr-line);
  position: relative;
  overflow: hidden;
}
.contact-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--clr-ember), transparent);
  transition: width var(--dur-slow) var(--ease-out-expo);
}
.contact-item:hover::after { width: 100%; }

.contact-item:last-child { border-bottom: none; }
.contact-item:last-child::after { display: none; }

.contact-item-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-ember);
  margin-bottom: 0.4rem;
}
.contact-item-value {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--clr-ghost);
  transition: color var(--dur-med) ease;
}
a.contact-item-value:hover { color: var(--clr-bone); }

.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-specter);
  transition: color var(--dur-med) ease, transform var(--dur-med) var(--ease-ghost);
}
.social-link svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--dur-med) var(--ease-creep); }
.social-link:hover {
  color: var(--clr-bone);
  transform: translateX(6px);
}
.social-link:hover svg { transform: scale(1.2); }

/* form */
.contact-form-wrap {
  background: var(--clr-pale);
  border: 1px solid var(--clr-line);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-ember), transparent);
  transform: scaleX(0);
  transition: transform var(--dur-slow) var(--ease-out-expo);
}
.contact-form-wrap:focus-within::before { transform: scaleX(1); }

@media (max-width: 600px) {
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
}

.form-field { margin-bottom: 1.5rem; position: relative; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-specter);
  margin-bottom: 0.5rem;
  transition: color var(--dur-med) ease;
}
.form-field:focus-within .form-label { color: var(--clr-bone); }

.form-optional {
  color: rgba(168,154,184,0.45);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-body);
  font-size: 0.8em;
}

.form-input {
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--clr-line);
  color: var(--clr-ghost);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--dur-med) ease,
              background var(--dur-med) ease,
              box-shadow var(--dur-med) ease,
              color var(--dur-med) ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-input::placeholder { color: rgba(168,154,184,0.3); transition: opacity var(--dur-med) ease; }
.form-input:focus {
  border-color: var(--clr-ember);
  background: rgba(139,58,98,0.04);
  box-shadow: 0 0 0 3px rgba(139,58,98,0.1);
  color: var(--clr-bone);
}
.form-input:focus::placeholder { opacity: 0; }

/* Animated underline for inputs */
.form-field::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--clr-ember);
  transition: width var(--dur-slow) var(--ease-out-expo);
}
.form-field:focus-within::after { width: 100%; }

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-actions { margin-top: 0.5rem; }

/* ── ░░ INQUIRY SENT ░░ ──────────────────────────────────────── */
[hidden] { display: none !important; }

.section--sent {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--clr-void);
}
.sent-inner {
  max-width: 500px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.sent-icon {
  font-size: 3rem;
  color: var(--clr-ember);
  display: block;
  margin-bottom: 1.5rem;
  animation: spin-star 6s linear infinite;
}
@keyframes spin-star {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.sent-inner p {
  font-style: italic;
  color: var(--clr-specter);
  margin-bottom: 2rem;
}

/* ── ░░ FOOTER ░░ ──────────────────────────────────────────── */
#footer {
  background: var(--clr-void);
  border-top: 1px solid var(--clr-line);
  padding: 3rem clamp(1.25rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(139,58,98,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-bone);
  transition: color var(--dur-med) ease, text-shadow var(--dur-med) ease;
}
.footer-brand:hover {
  color: var(--clr-wisp);
  text-shadow: 0 0 20px rgba(168,154,184,0.3);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(168,154,184,0.3);
  text-transform: uppercase;
}

/* ── FOCUS VISIBLE ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-ember);
  outline-offset: 3px;
}

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; clip-path: none; }
  .split-char, .split-word-inner { opacity: 1; transform: none; }
  .hero-title-word, .hero-eyebrow, .hero-quote, .hero-cta, .hero-scroll-hint {
    opacity: 1; transform: none;
  }
}

/* ── FORM FIELD ERROR STATE ─────────────────────────────────── */
.form-input.field-error {
  border-color: var(--clr-ember);
  box-shadow: 0 0 0 3px rgba(139,58,98,0.2);
}

/* ── GLITCH KEYFRAMES ──────────────────────────────────────── */
@keyframes glitch-clip-1 {
  0%   { clip-path: inset(20% 0 60% 0); transform: translateX(-4px); }
  20%  { clip-path: inset(60% 0 10% 0); transform: translateX(4px); }
  40%  { clip-path: inset(30% 0 50% 0); transform: translateX(-2px); }
  60%  { clip-path: inset(5% 0 80% 0);  transform: translateX(6px); }
  80%  { clip-path: inset(70% 0 5% 0);  transform: translateX(-4px); }
  100% { clip-path: inset(0% 0 0% 0);   transform: translateX(0); }
}
@keyframes glitch-clip-2 {
  0%   { clip-path: inset(50% 0 30% 0); transform: translateX(5px) skewX(2deg); }
  25%  { clip-path: inset(10% 0 70% 0); transform: translateX(-3px) skewX(-1deg); }
  50%  { clip-path: inset(75% 0 15% 0); transform: translateX(2px) skewX(3deg); }
  75%  { clip-path: inset(35% 0 40% 0); transform: translateX(-5px) skewX(-2deg); }
  100% { clip-path: inset(0 0 0 0);     transform: translateX(0) skewX(0); }
}

/* Glitch class applied on trigger */
.glitch-active {
  position: relative;
}
.glitch-active::before,
.glitch-active::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  color: inherit;
  pointer-events: none;
}
.glitch-active::before {
  color: rgba(139,58,98,0.7);
  animation: glitch-clip-1 0.4s steps(2) forwards;
}
.glitch-active::after {
  color: rgba(168,154,184,0.4);
  animation: glitch-clip-2 0.4s steps(3) forwards;
}

/* ── FLOATING LABEL ON SECTION NUMBERS ────────────────────── */
.section-index {
  position: absolute;
  top: var(--section-pad);
  right: clamp(1.25rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: color var(--dur-slow) ease;
}
.section:hover .section-index { color: rgba(255,255,255,0.03); }
