/* ============================================================
   BASE.CSS — The Clearstate System
   Shared foundation: reset, variables, typography, components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Bricolage+Grotesque:opsz,wght@12..96,300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── 1. VARIABLES ─────────────────────────────────────────── */
:root {
  --bg:             #06060A;
  --bg-surface:     #0D0D12;
  --bg-overlay:     rgba(6, 6, 10, 0.92);

  --text-primary:   #EDEAE5;
  --text-secondary: #B0AFA9;
  --text-muted:     #7A7A78;   /* lifted from #5A5A58 — passes WCAG AA */

  --accent:         #7CFFA8;   /* electric green per brand spec */
  --accent-dim:     rgba(124, 255, 168, 0.14);
  --accent-cyan:    #1AFFD5;
  --color-cta:      #C4963B;

  --border:         rgba(237, 234, 229, 0.06);
  --border-accent:  rgba(124, 255, 168, 0.22);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Bricolage Grotesque', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:  cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --transition-fast: 0.2s var(--ease-out);
  --transition-mid:  0.5s var(--ease-out);
  --transition-slow: 0.9s var(--ease-out);
}

/* ── 2. RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles this */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: default;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── 3. TYPOGRAPHY SCALE ──────────────────────────────────── */
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 14rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.hero-heading .word {
  display: block;
  overflow: hidden;
}
.hero-heading .word-inner {
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  max-width: 44ch;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.01em;
  max-width: 46ch;
  margin-top: 1.5rem;
}

/* ── 4. LAYOUT ZONES ──────────────────────────────────────── */
.align-left  { padding-left: 5vw;  padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw;  }
.align-left  .section-inner,
.align-right .section-inner { max-width: 40vw; }

/* ── 5. LOADER ────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
/* Grid of tiles that wipe away on load complete */
#loader-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  pointer-events: none;
  z-index: 1;
}
.loader-tile {
  background: #161620;
  border: 1px solid rgba(237, 234, 229, 0.05);
  will-change: opacity;
}
/* Centered brand mark */
#loader-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  pointer-events: none;
}
#loader-center-brand {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  opacity: 0;
}
#loader-center-brand span {
  color: var(--color-cta);
}
/* Progress bar anchored to bottom-left */
.loader-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 5vw;
  z-index: 4;
}
.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  line-height: 1;
}
.loader-brand span {
  color: var(--text-primary);
}
#loader-bar {
  width: 100%;
  height: 1px;
  background: var(--text-muted);
  position: relative;
  margin-bottom: 0.85rem;
}
#loader-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: var(--color-cta);
  width: 0%;
  transition: width 0.08s linear;
}
#loader-percent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* ── 6. NAVIGATION ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 2rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}
.site-header::after {
  display: none;
}

.nav-logo {
  height: 112px;
  width: auto;
  opacity: 1;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}
.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 0.5rem 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--color-cta);
  padding: 0.65rem 1.4rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  border: none;
}
.nav-cta:hover {
  background: var(--text-primary) !important;
  color: var(--bg) !important;
  transform: translateY(-1px);
}

/* ── 7. FLIP LINKS ────────────────────────────────────────── */
.flip-link {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.3;
}
.flip-link-top {
  /* in normal flow — gives .flip-link its height */
  display: flex;
  white-space: nowrap;
}
.flip-link-bottom {
  /* anchored just BELOW the visible area */
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  white-space: nowrap;
}
.flip-link-top span,
.flip-link-bottom span {
  display: inline-block;
  transition: transform 0.32s var(--ease-out);
}
/* hover: top row exits upward */
.flip-link:hover .flip-link-top span {
  transform: translateY(-100%);
}
/* hover: bottom row rises into view from below */
.flip-link:hover .flip-link-bottom span {
  transform: translateY(-100%);
}

/* ── 8. CTA BUTTON ────────────────────────────────────────── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--color-cta);
  padding: 1.1rem 2.6rem;
  cursor: pointer;
  border: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  margin-top: 2.5rem;
}
.cta-button:hover {
  background: var(--text-primary);
  transform: translateY(-2px);
}
.cta-button-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--text-muted);
  clip-path: none;
  padding: 1rem 2.4rem;
}
.cta-button-outline:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── 9. CANVAS & OVERLAY ──────────────────────────────────── */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}
.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--bg-overlay);
  opacity: 0;
  pointer-events: none;
}

/* ── 10. MARQUEE ──────────────────────────────────────────── */
.marquee-wrap {
  position: fixed;
  bottom: 7vh;
  left: 0; right: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.marquee-wrap.visible { opacity: 1; }

.marquee-text {
  font-family: var(--font-display);
  font-size: clamp(7rem, 14vw, 18rem);
  font-weight: 800;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 234, 229, 0.05);
  letter-spacing: -0.04em;
  will-change: transform;
  display: block;
  line-height: 1;
}

/* ── 11. SCROLL SECTIONS ──────────────────────────────────── */
.scroll-section {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 100vh;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.scroll-section.section-inner-wrap {
  padding-top: 0;
  padding-bottom: 0;
}
.section-inner {
  pointer-events: auto;
}
/* Dark backdrop behind text overlaid on animated canvas */
.section-content .section-inner {
  background: rgba(6, 6, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 2.2rem 2.8rem;
  border-left: 1px solid rgba(237, 234, 229, 0.07);
}
.section-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 0.8rem;
}

/* ── 12. STATS SECTION ────────────────────────────────────── */
.section-stats {
  padding: 0 !important;
  align-items: stretch;
  min-height: 0 !important;
}
.stats-overlay {
  width: 100%;
  background: var(--bg-overlay);
  padding: clamp(4rem, 8vh, 8rem) 5vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-left: 0.4rem;
  vertical-align: super;
  font-size: 1.5rem;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
  font-weight: 300;
}

/* ── 13. SCROLL INDICATOR ─────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 5vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollArrow 1.8s ease-in-out infinite;
}
@keyframes scrollArrow {
  0%   { top: -100%; }
  50%  { top: 0%; }
  100% { top: 100%; }
}

/* ── 14. SERVICES PREVIEW (FAN CARD STACK) ───────────────── */
.services-preview {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10vh 5vw;
  overflow: hidden;
  gap: 4rem;
}
.services-preview-header {
  flex-shrink: 0;
  max-width: 38vw;
  z-index: 2;
}
.services-preview-header .section-heading {
  font-size: clamp(2.5rem, 4.5vw, 5rem);
}
.services-preview-cta {
  margin-top: 2rem !important;
}

/* Card stack stage */
.cardstack-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  z-index: 2;
  perspective: 1400px;
}
.cardstack-stage {
  position: relative;
  transform-style: preserve-3d;
}
.cs-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-accent);
  background: var(--bg-surface);
  will-change: transform;
  user-select: none;
  transform-style: preserve-3d;
}
.cs-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.4);
  transition: filter 0.4s ease;
  display: block;
}
.cs-card.cs-active img { filter: brightness(0.65) saturate(0.7); }
.cs-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem;
  background: linear-gradient(to top, rgba(6,6,10,0.96), transparent);
}
.cs-card-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}
.cs-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.cs-card-tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.4;
}
.cardstack-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.cardstack-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.cardstack-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.cardstack-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.cs-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.cs-dot.cs-dot-active {
  background: var(--accent);
  transform: scale(1.4);
}
@media (max-width: 768px) {
  .services-preview {
    flex-direction: column;
    padding-bottom: 60vh;
  }
  .services-preview-header { max-width: 100%; }
  .cardstack-wrap { width: 100%; }
}

/* ── 15. FAQ SECTION ──────────────────────────────────────── */
.faq-section {
  background: var(--bg);
  padding: clamp(2rem, 4vh, 4rem) 5vw;
  position: relative;
  display: flex;
  justify-content: center;
}
/* Gradient top edge instead of hard border */
.faq-section::after {
  content: '';
  position: absolute;
  top: 0; left: 5vw; right: 5vw;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  opacity: 0.5;
}
.faq-inner {
  width: 100%;
  max-width: 840px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(45, 45, 50, 0.75);
  padding: 2.2rem 2.8rem;
}
.faq-header {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 1.5rem;
}
.faq-header .section-heading {
  font-size: clamp(1.25rem, 2vw, 2rem);
}
.faq-list { }

.faq-item {
  border-top: 1px solid rgba(45, 45, 50, 0.6);
}
.faq-item:last-child {
  border-bottom: 1px solid rgba(45, 45, 50, 0.6);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1.5rem;
  color: var(--text-primary);
}
.faq-q-text {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 1.05vw, 1.02rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: 1;
}
.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent);
  transition: transform 0.4s var(--ease-out);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-q-text { color: var(--text-primary); }

.faq-answer {
  overflow: hidden;
  height: 0;
}
.faq-answer p {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 0.88vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.75;
  padding-bottom: 1rem;
  max-width: 65ch;
  font-weight: 300;
}

/* ── 16. WORK WITH US PRE-FOOTER ─────────────────────────── */
.work-with-us {
  background: var(--bg-surface);
  position: relative;
  padding: clamp(5rem, 10vh, 10rem) 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
}
.work-with-us-text .section-label {
  margin-bottom: 1rem;
  display: block;
}
.work-with-us-text .section-heading {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  max-width: 20ch;
  margin: 0 auto;
}
.work-with-us-text .section-body {
  margin-top: 1.2rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
/* Gradient top/bottom edges instead of hard borders */
.work-with-us::before {
  content: '';
  position: absolute;
  top: 0; left: 5vw; right: 5vw;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  opacity: 0.5;
}
.work-with-us::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5vw; right: 5vw;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  opacity: 0.5;
}
.work-with-us-action {
  flex-shrink: 0;
}
.work-with-us .cta-button {
  margin-top: 0;
}

/* ── 18. FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  position: relative;
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
/* Gradient top edge instead of hard border */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 5vw; right: 5vw;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  opacity: 0.5;
}
.footer-logo { height: 22px; width: auto; opacity: 0.5; }
.footer-links {
  display: flex;
  gap: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── 19. COMING SOON BADGE ────────────────────────────────── */
.coming-soon-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.2rem;
}

/* ── 20. HAMBURGER BUTTON ─────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── 20b. MOBILE NAV OVERLAY ──────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-brand {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  position: absolute;
  top: 1.5rem;
  left: 6vw;
}
.mobile-nav-brand span { color: var(--accent); }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0 6vw;
  width: 100%;
}
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 11vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(18px);
  transition: color 0.15s ease, opacity 0.3s ease, transform 0.3s ease;
}
.mobile-nav.is-open .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-nav.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.04s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.12s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.16s; }
.mobile-nav-link:hover { color: var(--text-primary); }
.mobile-nav-link.mobile-nav-active { color: var(--text-primary); }
.mobile-nav-cta {
  color: var(--accent);
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2rem;
  border: 1px solid rgba(124, 255, 168, 0.3);
  padding: 0.7rem 1.4rem;
  display: inline-block;
}

/* ── 21. TABLET ───────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .align-left  { padding-right: 42vw; }
  .align-right { padding-left:  42vw; }
  .align-left  .section-inner,
  .align-right .section-inner { max-width: 50vw; }
}

/* ── 22. MOBILE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-cta { display: none; }

  .align-left,
  .align-right {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
    background: rgba(6, 6, 10, 0.88);
    padding: 1.8rem;
  }
  .hero-heading { font-size: clamp(3.5rem, 16vw, 6rem); }
  .stats-overlay { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .section-heading { font-size: clamp(2rem, 8vw, 4rem); }
  .cta-button { font-size: 0.7rem; padding: 0.9rem 1.8rem; }
}

/* ── 23. CURSOR SPOTLIGHT ─────────────────────────────────── */
#cursor-spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(124, 255, 168, 0.045) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
body.cursor-active #cursor-spotlight { opacity: 1; }

/* ── 25. SECTION INDICATOR ────────────────────────────────── */
.section-indicator {
  position: fixed;
  bottom: 2rem;
  left: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 20;
  pointer-events: none;
}
.section-indicator.visible { opacity: 0.6; }

/* ── 26. GRADIENT ACCENT TEXT ─────────────────────────────── */
.accent-gradient {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 27. SKIP LINK (keyboard accessibility) ───────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  padding: 8px 18px;
  background: var(--accent);
  color: #06060A;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  z-index: 99999;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 24. 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;
  }
}
