/* ============================================================
   BlackBook Customs — style.css
   ============================================================ */

/* ── 0. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --void:            #020408;
  --void-2:          #050c14;
  --text:            #e2e8f0;
  --text-muted:      rgba(226,232,240,0.65);
  --text-faint:      rgba(226,232,240,0.28);
  --glow-primary:    #c026d3;
  --glow-secondary:  #06b6d4;
  --glow-tertiary:   #7c3aed;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Outfit', sans-serif;

  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --ease-in:  cubic-bezier(0.4,0,1,1);
}

/* ── 1. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Custom cursor is only hidden once JS confirms the cursor system is live.
   If app.js fails to load or errors before init, the system cursor remains
   visible so the site stays usable. */
html.cursor-active,
html.cursor-active body,
html.cursor-active a,
html.cursor-active button,
html.cursor-active input,
html.cursor-active textarea,
html.cursor-active select,
html.cursor-active [role="button"] {
  cursor: none;
}

img, video {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
}

::selection {
  background: var(--glow-primary);
  color: #fff;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #b8860b;
  border-radius: 9999px;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #b8860b transparent;
}

/* ── 2. WATER CANVAS ─────────────────────────────────────── */
#water-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: screen;
}

/* ── 3. CURSOR ───────────────────────────────────────────── */
#cursor-core {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glow-primary);
  mix-blend-mode: screen;
  z-index: 9999;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.08s var(--ease-out);
}

#cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: screen;
}

@media (pointer: coarse) {
  #cursor-core,
  #cursor-trail {
    display: none;
  }
}

/* ── 3.5 PLANET PORTAL ────────────────────────────────── */
#planet-link {
  position: fixed;
  top: 12px;
  left: 16px;
  width: 160px;
  height: 160px;
  z-index: 1001;
  /* cursor handled by .cursor-active override */
  display: block;
  text-decoration: none;
  border-radius: 50%;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.6s ease;
  filter: drop-shadow(0 0 20px rgba(192,38,211,0.3)) drop-shadow(0 0 60px rgba(124,58,237,0.15));
}
#planet-link:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 30px rgba(192,38,211,0.5)) drop-shadow(0 0 80px rgba(124,58,237,0.25)) drop-shadow(0 0 120px rgba(6,182,212,0.15));
}

#planet-canvas {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: block;
}

#planet-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(192,38,211,0.2) 0%,
    rgba(124,58,237,0.12) 30%,
    rgba(6,182,212,0.06) 50%,
    rgba(124,58,237,0.03) 70%,
    transparent 85%
  );
  pointer-events: none;
  animation: planet-pulse 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes planet-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ── 4. SIGIL NAV ────────────────────────────────────────── */
#sigil {
  position: fixed;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  z-index: 1000;
  color: var(--text-muted);
  /* cursor handled by .cursor-active override */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: rotate 0.4s var(--ease-out);
}

#sigil.open {
  rotate: 45deg;
}

#radial-nav {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  inset: 0;
}

#radial-nav.open {
  pointer-events: all;
}

.nav-node {
  position: fixed;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10,22,40,0.95);
  border: 1px solid rgba(192,38,211,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s ease-out;
  /* cursor handled by .cursor-active override */
}

.nav-node:nth-child(1) { transition-delay: 0.05s; }
.nav-node:nth-child(2) { transition-delay: 0.10s; }
.nav-node:nth-child(3) { transition-delay: 0.15s; }
.nav-node:nth-child(4) { transition-delay: 0.20s; }
.nav-node:nth-child(5) { transition-delay: 0.25s; }
.nav-node:nth-child(6) { transition-delay: 0.30s; }

#radial-nav.open .nav-node {
  opacity: 1;
  transform: scale(1);
}

.nav-node:hover {
  color: var(--glow-secondary);
  border-color: var(--glow-secondary);
  box-shadow: 0 0 20px rgba(6,182,212,0.3);
}

.nav-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── 5. HERO ─────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(2,4,8,0.45) 0%,
    rgba(2,4,8,0.72) 100%
  );
  z-index: 2;
  pointer-events: none;
}

#three-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#logo-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#logo-backdrop-img {
  width: min(90vw, 900px);
  filter: invert(1) brightness(0.18);
  opacity: 0.07;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 72%);
  will-change: opacity, transform;
}

#hero-overlay {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
  padding: 2rem;
}

#hero-eyebrow {
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.35);
}

#hero-tagline {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  font-weight: inherit;
}

.tag-word {
  font-size: clamp(3.5rem, 8.5vw, 10rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: rgba(226,232,240,0.92);
}

.tag-word.accent {
  font-weight: 100;
  color: rgba(226,232,240,0.3);
  letter-spacing: 0.12em;
}

#hero-sub {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--text);
  max-width: 48ch;
  line-height: 1.5;
}

#hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border: 1px solid rgba(192,38,211,0.4);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(192,38,211,0.05);
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
  /* cursor handled by .cursor-active override */
}

#hero-cta:hover {
  border-color: var(--glow-primary);
  box-shadow: 0 0 30px rgba(192,38,211,0.3);
  color: #fff;
}

#scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

#scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--glow-primary));
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ── 6. WORK SECTION — IMMERSIVE TERMINAL CAROUSEL ────────── */
#work {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  overflow: hidden;
  /* Opaque black — kills the blue water bleed */
  background: #020408;
  isolation: isolate;
}

/* Constellation canvas */
#work-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Scan lines overlay */
#work-scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(192,38,211,0.015) 2px,
    rgba(192,38,211,0.015) 4px
  );
  animation: scanline-scroll 8s linear infinite;
}
@keyframes scanline-scroll {
  to { background-position: 0 100%; }
}

/* Grid overlay */
#work-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

/* Terminal frame */
#work-terminal {
  position: relative;
  z-index: 5;
  width: min(1200px, 92vw);
  background: rgba(8,12,20,0.85);
  border: 1px solid rgba(192,38,211,0.2);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 80px rgba(192,38,211,0.08),
    0 0 200px rgba(124,58,237,0.05),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

/* Terminal header bar */
#work-terminal-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(192,38,211,0.12);
  background: rgba(5,8,16,0.6);
}

.term-dots {
  display: flex;
  gap: 7px;
}
.term-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(226,232,240,0.12);
  transition: background 0.3s;
}
.term-dots span:nth-child(1) { background: rgba(255,95,87,0.7); }
.term-dots span:nth-child(2) { background: rgba(255,189,46,0.7); }
.term-dots span:nth-child(3) { background: rgba(39,201,63,0.7); }

.term-title {
  flex: 1;
  text-align: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: rgba(226,232,240,0.35);
  text-transform: uppercase;
}

.term-status {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--glow-primary);
}
.term-sep {
  opacity: 0.3;
  margin: 0 2px;
}

/* Viewport — the card stage */
#work-viewport {
  position: relative;
  width: 100%;
  height: min(560px, 65vh);
  overflow: hidden;
  perspective: 1200px;
}

/* Carousel container */
#work-carousel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual cards */
.wk-card {
  position: absolute;
  width: min(1000px, 86%);
  height: 88%;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform, opacity, filter;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8) translateX(120%) rotateY(-15deg);
  filter: blur(4px) brightness(0.5);
}

.wk-card.active {
  opacity: 1;
  transform: scale(1) translateX(0) rotateY(0deg);
  filter: blur(0) brightness(1);
  pointer-events: auto;
  z-index: 3;
}

.wk-card.prev {
  opacity: 0.4;
  transform: scale(0.82) translateX(-85%) rotateY(8deg);
  filter: blur(3px) brightness(0.6);
  z-index: 1;
}

.wk-card.next {
  opacity: 0.4;
  transform: scale(0.82) translateX(85%) rotateY(-8deg);
  filter: blur(3px) brightness(0.6);
  z-index: 1;
}

.wk-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.wk-card.active .wk-card-glow {
  opacity: 1;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--glow-primary) 90deg,
    transparent 180deg,
    var(--glow-secondary) 270deg,
    transparent 360deg
  );
  animation: glow-spin 4s linear infinite;
  filter: blur(8px);
}
@keyframes glow-spin {
  to { transform: rotate(360deg); }
}

.wk-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgba(5,8,16,0.95);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* Visual half */
.wk-card-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.wk-plasma {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.8s ease;
}
.wk-card.active .wk-plasma { opacity: 0.7; }

.wk-emblem {
  position: relative;
  z-index: 2;
  width: clamp(70px, 10vw, 110px);
  height: clamp(70px, 10vw, 110px);
  animation: emblem-float 6s ease-in-out infinite;
}
@keyframes emblem-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}
.wk-card.active .wk-emblem {
  animation: emblem-float 4s ease-in-out infinite, emblem-pulse 2s ease-in-out infinite;
}
@keyframes emblem-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px transparent); }
  50% { filter: drop-shadow(0 0 16px rgba(192,38,211,0.3)); }
}

.wk-domain {
  position: relative;
  z-index: 2;
  font-family: 'Space Grotesk', monospace;
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text);
  opacity: 0.75;
}
.wk-card.active .wk-domain {
  opacity: 1;
}

.wk-category {
  position: relative;
  z-index: 2;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.25);
}

/* Info half */
.wk-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.wk-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  position: relative;
}

/* Glitch effect on active card title */
.wk-card.active .wk-title {
  animation: title-glitch-in 0.6s ease-out;
}
@keyframes title-glitch-in {
  0% { opacity: 0; transform: translateX(-10px); filter: blur(4px); }
  20% { opacity: 1; transform: translateX(3px) skewX(-2deg); filter: blur(0); }
  30% { transform: translateX(-2px) skewX(1deg); }
  40% { transform: translateX(1px) skewX(0); }
  100% { transform: translateX(0) skewX(0); }
}

.wk-desc {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 38ch;
}

.wk-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.wk-tags span {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(192,38,211,0.25);
  color: rgba(226,232,240,0.55);
  background: rgba(192,38,211,0.04);
  transition: border-color 0.3s, color 0.3s;
}
.wk-card.active .wk-tags span:hover {
  border-color: var(--glow-primary);
  color: var(--text);
}

.wk-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  /* cursor handled by .cursor-active override */
  text-decoration: none;
}
.wk-link-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--glow-primary);
  position: relative;
  transition: color 0.3s;
}
.wk-link-text::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--glow-primary);
  transition: width 0.3s ease;
}
.wk-link:hover .wk-link-text::after {
  width: 100%;
}
.wk-link:hover .wk-link-text {
  color: #fff;
}
.wk-link svg {
  color: var(--glow-primary);
  transition: transform 0.3s, color 0.3s;
}
.wk-link:hover svg {
  transform: translate(3px, -3px);
  color: #fff;
}

/* Navigation bar */
#work-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 16px 20px;
  border-top: 1px solid rgba(192,38,211,0.08);
  background: rgba(5,8,16,0.4);
}

#work-prev, #work-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(226,232,240,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226,232,240,0.4);
  /* cursor handled by .cursor-active override */
  transition: all 0.3s ease;
  background: transparent;
}
#work-prev:hover, #work-next:hover {
  border-color: var(--glow-primary);
  color: var(--glow-primary);
  box-shadow: 0 0 20px rgba(192,38,211,0.15);
  background: rgba(192,38,211,0.05);
}

#work-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(226,232,240,0.15);
  border: 1px solid rgba(226,232,240,0.1);
  /* cursor handled by .cursor-active override */
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
}
.wk-dot.active {
  width: 32px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--glow-primary), var(--glow-secondary));
  border-color: transparent;
  box-shadow: 0 0 12px rgba(192,38,211,0.4);
}

/* Progress bar */
#work-progress {
  height: 2px;
  background: rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
#work-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--glow-tertiary), var(--glow-primary), var(--glow-secondary));
  width: 33.33%;
  transition: width 0.7s cubic-bezier(0.23,1,0.32,1);
  box-shadow: 0 0 8px rgba(192,38,211,0.5);
}

/* Section label */
#work-section-label {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}
.wsl-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,38,211,0.4));
}
.wsl-line:last-child {
  background: linear-gradient(90deg, rgba(192,38,211,0.4), transparent);
}
.wsl-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .wk-card-inner {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .wk-card-visual {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  #work-viewport {
    height: min(680px, 75vh);
  }
  .wk-card {
    height: 92%;
  }
  .wk-card.prev { transform: scale(0.85) translateX(-100%); }
  .wk-card.next { transform: scale(0.85) translateX(100%); }
  .wk-card-info {
    padding: 1.2rem;
  }
}

/* ── 6.8 REVIEWS ─────────────────────────────────────────── */
#reviews {
  padding: clamp(5rem,10vw,10rem) clamp(2rem,8vw,10rem);
  position: relative;
  background: rgba(2,4,8,0.88);
  border-top: 1px solid rgba(124,58,237,0.12);
  overflow: hidden;
}

#reviews-inner {
  max-width: 1300px;
  margin: 0 auto;
}

#reviews-header {
  text-align: center;
  margin-bottom: 4rem;
}

#reviews-heading {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--text);
}

#reviews-heading em {
  font-style: normal;
  font-weight: 200;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--glow-primary);
}

#reviews-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: rgba(10,16,28,0.7);
  border: 1px solid rgba(192,38,211,0.12);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  border-color: rgba(192,38,211,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(192,38,211,0.08);
}

.review-stars {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #f9d06e;
}

.review-quote {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
  border: none;
  margin: 0;
  padding: 0;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(226,232,240,0.06);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--glow-primary), var(--glow-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-name {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.review-role {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── 7. SERVICES ─────────────────────────────────────────── */
#services {
  padding: clamp(5rem,10vw,10rem) clamp(2rem,8vw,10rem);
  position: relative;
  background: rgba(2,4,8,0.78);
  border-top: 1px solid rgba(192,38,211,0.12);
}

#services-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

#services-header {
  position: sticky;
  top: 30vh;
  align-self: start;
}

.section-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--glow-primary);
  margin-bottom: 1.2rem;
}

#services-heading {
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--text);
}

#services-heading em {
  font-style: normal;
  font-weight: 200;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--glow-primary);
}

#services-list {
  display: flex;
  flex-direction: column;
}

.svc {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--text-faint);
  transition: border-color 0.3s;
  overflow: hidden;
}

.svc:hover {
  border-color: rgba(192,38,211,0.3);
}

.svc-num {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--glow-primary);
  opacity: 0.7;
  padding-top: 0.3rem;
}

.svc-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.svc:hover .svc-body h3 {
  color: #fff;
}

.svc-body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.svc-bar {
  width: 1px;
  height: 0;
  background: var(--glow-primary);
  margin-top: 0.3rem;
  transition: height 0.4s var(--ease-out);
  justify-self: center;
}

.svc:hover .svc-bar {
  height: 100%;
}

/* ── 7.5 SERVICES DETAIL ────────────────────────────────── */
#services-detail {
  padding: clamp(5rem,10vw,10rem) clamp(2rem,8vw,10rem);
  position: relative;
  background: rgba(2,4,8,0.82);
  border-top: 1px solid rgba(6,182,212,0.1);
}

#svcdet-inner {
  max-width: 1300px;
  margin: 0 auto;
}

#svcdet-header {
  text-align: center;
  margin-bottom: 4rem;
}

#svcdet-heading {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--text);
}

#svcdet-heading em {
  font-style: normal;
  font-weight: 200;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--glow-secondary);
}

#svcdet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.svcdet-card {
  background: rgba(8,14,26,0.7);
  border: 1px solid rgba(226,232,240,0.06);
  border-radius: 16px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

.svcdet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glow-primary), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.svcdet-card:hover::before {
  opacity: 1;
}

.svcdet-card:hover {
  border-color: rgba(192,38,211,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.svcdet-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(192,38,211,0.08);
  border: 1px solid rgba(192,38,211,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glow-primary);
  transition: background 0.3s, border-color 0.3s;
}

.svcdet-card:hover .svcdet-icon {
  background: rgba(192,38,211,0.15);
  border-color: rgba(192,38,211,0.3);
}

.svcdet-icon svg {
  width: 22px;
  height: 22px;
}

.svcdet-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.svcdet-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.svcdet-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(226,232,240,0.06);
}

.svcdet-card ul li {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-left: 1.2rem;
  position: relative;
}

.svcdet-card ul li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--glow-primary);
  font-size: 0.75rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  #svcdet-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 8. ABOUT ─────────────────────────────────────────────── */
#about {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(5rem,10vw,10rem) clamp(2rem,8vw,10rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,4,8,0.75);
}

#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 55% at 50% 50%,
    rgba(14,55,65,0.25) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

#about-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: transparent;
}

#about-backdrop-img {
  width: min(92vw, 980px);
  filter: brightness(0.18) contrast(1.2);
  opacity: 0.6;
  mask-image: radial-gradient(
    ellipse 75% 75% at 50% 50%,
    black 15%,
    black 40%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 75% 75% at 50% 50%,
    black 15%,
    black 40%,
    transparent 78%
  );
}

#about-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

#about-inner {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

#about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#about-heading {
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

#about-heading em {
  font-style: normal;
  font-weight: 200;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--glow-secondary);
}

#about-text p {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.75;
}

#about-facts {
  display: flex;
  gap: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--text-faint);
  flex-wrap: wrap;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fact-val {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--glow-primary);
  line-height: 1;
}

.fact-key {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── 9. CONTACT ──────────────────────────────────────────── */
#contact {
  position: relative;
  padding: clamp(5rem,10vw,10rem) clamp(2rem,8vw,10rem);
  overflow: hidden;
  background: rgba(2,4,8,0.88);
}

#contact-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
}

#contact-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#contact-heading {
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

#contact-heading em {
  font-style: normal;
  font-weight: 200;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--glow-primary);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.field {
  position: relative;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-faint);
  padding: 1.4rem 0 0.6rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--glow-primary);
}

.field label {
  position: absolute;
  top: 1.4rem;
  left: 0;
  font-size: 0.85rem;
  color: var(--text-faint);
  pointer-events: none;
  transition: top 0.25s, font-size 0.25s, color 0.25s;
}

.field input:not(:placeholder-shown) ~ label,
.field input:focus ~ label,
.field select:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label {
  top: 0.1rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--glow-primary);
  text-transform: uppercase;
}

.field-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--glow-primary);
  transition: width 0.4s;
  box-shadow: 0 0 8px rgba(192,38,211,0.5);
}

.field input:focus ~ .field-line,
.field select:focus ~ .field-line,
.field textarea:focus ~ .field-line {
  width: 100%;
}

#submit-btn {
  align-self: flex-start;
  position: relative;
  padding: 1rem 2.8rem;
  border: 1px solid var(--glow-primary);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  overflow: hidden;
  transition: box-shadow 0.3s, color 0.3s;
  background: rgba(192,38,211,0.05);
  /* cursor handled by .cursor-active override */
}

#submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow-primary);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
  z-index: 0;
}

#submit-btn:hover::before {
  transform: translateX(0);
}

#submit-btn:hover {
  box-shadow: 0 0 30px rgba(192,38,211,0.4);
  color: #fff;
}

#submit-btn span {
  position: relative;
  z-index: 1;
}

#contact-direct {
  font-size: 0.95rem;
  color: var(--text-faint);
}

#contact-direct a {
  color: var(--glow-secondary);
  transition: opacity 0.2s;
}

#contact-direct a:hover {
  opacity: 0.8;
}

/* ── 10. FOOTER ──────────────────────────────────────────── */
#footer {
  border-top: 1px solid rgba(226,232,240,0.06);
  padding: 2rem clamp(2rem,8vw,10rem);
  background: rgba(2,4,8,0.95);
}

#footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

#footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#footer-logo {
  height: 28px;
  width: auto;
  filter: invert(1) brightness(0.4);
}

#footer-left p,
#footer-inner p {
  font-size: 0.75rem;
  color: var(--text-faint);
}

#footer-links {
  display: flex;
  gap: 2rem;
}

#footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s;
}

#footer-links a:hover {
  color: var(--text);
}

#footer-tagline {
  font-style: italic;
  opacity: 0.5;
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ── 11. BACK TO TOP ─────────────────────────────────────── */
#back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(192,38,211,0.1);
  border: 1px solid rgba(192,38,211,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glow-primary);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  /* cursor handled by .cursor-active override */
}

#back-top svg {
  width: 18px;
  height: 18px;
}

#back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#back-top:hover {
  background: rgba(192,38,211,0.2);
}

/* ── 12. REVEAL ANIMATIONS ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── 13. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  #services-inner {
    grid-template-columns: 1fr;
  }

  #services-header {
    position: static;
    top: auto;
  }

  #about-inner {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  #footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .tag-word {
    font-size: clamp(2.5rem, 14vw, 3.5rem);
  }

  #about-facts {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ── 14. REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* (old work-card and escape styles removed — replaced by terminal carousel above) */
