/* ===================================================================
 * Gilded Editorial Portfolio — Complete Stylesheet
 * Design System: Dark Charcoal + Gold (#eabe7c) + Teal (#23967f)
 * Fonts: Mission Control (display) + Syne (headings) + Inter (body)
 * Author: Ted Simwa
 * =================================================================== */

/* # FONTS
 * =================================================================== */
@font-face {
  font-family: 'Mission Control';
  src: url('../fonts/mission-control.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* # DESIGN TOKENS (CSS Custom Properties)
 * =================================================================== */
:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-bg-elevated: #1a1a1a;
  --color-gold: #eabe7c;
  --color-gold-dim: rgba(234, 190, 124, 0.12);
  --color-gold-glow: rgba(234, 190, 124, 0.25);
  --color-teal: #23967f;
  --color-teal-dim: rgba(35, 150, 127, 0.08);
  --color-text: #f0ece4;
  --color-text-muted: #a09884;
  --color-text-dim: #6b6354;
  --color-border: rgba(240, 236, 228, 0.08);
  --color-border-strong: rgba(240, 236, 228, 0.18);
  --color-border-gold: rgba(234, 190, 124, 0.3);
  --font-display: 'Mission Control', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.3s;
  --duration-med: 0.6s;
  --duration-slow: 1.2s;
  --section-padding: clamp(80px, 12vh, 160px) 5%;
  --content-max: 1280px;
  --grid-columns: 12;
}

/* # LIGHT MODE OVERRIDES
 * =================================================================== */
body.light {
  --color-bg: #f5f3ef;
  --color-bg-alt: #eceae4;
  --color-bg-elevated: #e3e0d8;
  --color-text: #1a1814;
  --color-text-muted: #6b6354;
  --color-text-dim: #a09884;
  --color-border: rgba(26, 24, 20, 0.08);
  --color-border-strong: rgba(26, 24, 20, 0.15);
}

/* # GLOBAL RESET
 * =================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* # NOISE TEXTURE
 * =================================================================== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* # BASE TYPOGRAPHY
 * =================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { margin-bottom: 1rem; }

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* # UTILITY
 * =================================================================== */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 5%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* block toggles for preloader/scroll states */
body:not(.loaded) .reveal-on-load {
  opacity: 0;
  visibility: hidden;
}

body.loaded .reveal-on-load {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* # PRELOADER
 * =================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.preloader__text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--color-gold);
  letter-spacing: 8px;
  animation: preloader-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes preloader-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.preloader.exit-active .preloader__text {
  animation: none;
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.preloader.exit-done {
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

body.loaded .preloader {
  pointer-events: none;
}

/* # CUSTOM CURSOR
 * =================================================================== */
.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
  }

  .cursor__dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
    will-change: left, top;
  }

  .cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(234, 190, 124, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                border-color 0.3s var(--ease-out-expo),
                background 0.3s var(--ease-out-expo);
    will-change: left, top;
    box-shadow: 0 0 12px rgba(234, 190, 124, 0.08);
  }

  .cursor__ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--color-gold);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo),
                transform 0.3s var(--ease-out-expo);
    pointer-events: none;
  }

  .cursor__ring.is-hovering {
    width: 56px;
    height: 56px;
    border-color: var(--color-gold);
    background: rgba(234, 190, 124, 0.06);
    box-shadow: 0 0 20px rgba(234, 190, 124, 0.12);
  }

  .cursor__ring.is-project {
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 10, 0.85);
    border-color: var(--color-gold);
    box-shadow: 0 0 30px rgba(234, 190, 124, 0.1), inset 0 0 30px rgba(234, 190, 124, 0.03);
    backdrop-filter: blur(4px);
  }

  .cursor__ring.is-project .cursor__ring-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .cursor__ring.is-magnetic {
    background: rgba(234, 190, 124, 0.1);
    border-color: var(--color-gold);
    box-shadow: 0 0 20px rgba(234, 190, 124, 0.15);
  }

  .cursor__trail {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
  }

  .cursor__trail-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .cursor__trail-dot.is-visible {
    opacity: 0.25;
  }
}

/* # NAVIGATION — Floating Glassmorphic Pill Dock
 * =================================================================== */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav[data-at-top="true"] {
  opacity: 0.92;
  transform: translateY(-4px);
}

.nav[data-at-top="false"] {
  opacity: 1;
  transform: translateY(0);
}

.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 20px;
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(240, 236, 228, 0.08);
  border-radius: 100px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25),
              0 1px 8px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background var(--duration-med) var(--ease-out-expo),
              border-color var(--duration-med) var(--ease-out-expo),
              box-shadow var(--duration-med) var(--ease-out-expo);
  max-width: 720px;
  width: fit-content;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

body.light .nav__pill {
  background: rgba(236, 234, 228, 0.88);
  border-color: rgba(26, 24, 20, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1),
              0 1px 8px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Brand */
.nav__brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 1.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
  display: flex;
  align-items: center;
  line-height: 1;
  align-self: center;
  height: 100%;
}

.nav__brand:hover {
  color: var(--color-text);
}

.nav__divider {
  width: 1px;
  height: 18px;
  background: var(--color-border-strong);
  flex-shrink: 0;
  align-self: center;
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 100px;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-spring);
  white-space: nowrap;
  display: flex;
  align-items: center;
  line-height: 1;
}

body.light .nav__link {
  color: var(--color-text);
}

.nav__link:hover {
  color: var(--color-gold);
  transform: translateY(-1px);
}

.nav__link.active {
  color: var(--color-gold);
}

/* Clock in nav */
.nav__clock {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.nav__clock-flag {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
}

.nav__clock-colon {
  animation: colon-blink 1s step-end infinite;
  display: inline-block;
}

@keyframes colon-blink {
  50% { opacity: 0; }
}

.nav__clock-sec {
  display: inline;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  flex-shrink: 0;
}

.nav__availability {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  position: relative;
  align-self: center;
  line-height: 1;
  padding: 4px;
}

.nav__availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: nav-status-pulse 2s ease-in-out infinite;
}

@keyframes nav-status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.nav__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-text);
  border-radius: 8px;
  transition: color var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.nav__toggle:hover {
  color: var(--color-gold);
  background: var(--color-gold-dim);
  transform: translateY(-1px);
}

.nav__toggle svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--duration-fast) var(--ease-out-expo);
  line-height: 0;
}

.nav__hamburger:hover {
  background: var(--color-gold-dim);
}

.nav__hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  border-radius: 2px;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              opacity var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo);
}

.nav__hamburger:hover span {
  background: var(--color-gold);
}

.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile overlay (independent stacking context — sibling of .nav) */
.nav__overlay {
  display: none;
}

/* Responsive: Mobile */
@media (max-width: 1023px) {
  .nav {
    top: 12px;
  }

  .nav__pill {
    padding: 6px 10px 6px 16px;
    max-width: calc(100% - 24px);
    gap: 4px;
    border-radius: 60px;
  }

  .nav__links {
    display: none;
  }

  .nav__divider {
    display: none;
  }

  .nav__brand {
    font-size: 0.75rem;
    margin-right: auto;
  }



  .nav__clock .nav__clock-sec {
    display: none;
  }

  .nav__hamburger {
    display: block;
  }

  /* Keep hamburger visible when overlay is open so users can close */

  .nav__actions {
    gap: 2px;
  }

  .nav__toggle svg {
    width: 13px;
    height: 13px;
  }

  /* Overlay: fullscreen, independent z-index, glassmorphism bg matching nav pill */
  .nav__overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 28vh;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  body.light .nav__overlay {
    background: rgba(236, 234, 228, 0.92);
  }

  .nav__overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__overlay-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav__overlay.is-open .nav__overlay-link {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .nav__overlay.is-open .nav__overlay-link:nth-child(2) { transition-delay: 0.08s; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(3) { transition-delay: 0.16s; }
  .nav__overlay.is-open .nav__overlay-link:nth-child(4) { transition-delay: 0.24s; }

  .nav__overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    padding: 8px;
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
    line-height: 0;
  }

  .nav__overlay-close:hover {
    color: var(--color-gold);
    background: var(--color-gold-dim);
  }

  .nav__overlay-close svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .nav__overlay-index {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--color-gold);
    opacity: 0.6;
    margin-top: 8px;
    min-width: 28px;
    text-align: right;
    transition: opacity 0.3s ease;
  }

  .nav__overlay-link:hover .nav__overlay-index {
    opacity: 1;
  }

  .nav__overlay-text {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 10vw, 5rem);
    letter-spacing: 6px;
    color: var(--color-text);
    transition: color 0.3s ease;
    line-height: 1.15;
  }

  .nav__overlay-link:hover .nav__overlay-text {
    color: var(--color-gold);
  }
}

/* Tablet adjustments for overlay */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__overlay {
    padding-top: 22vh;
  }
  .nav__overlay-text {
    font-size: clamp(3.5rem, 8vw, 6rem);
    letter-spacing: 8px;
  }
  .nav__overlay-index {
    font-size: 0.75rem;
    min-width: 32px;
  }
}

/* Small mobile tweaks */
@media (max-width: 400px) {
  .nav__pill {
    padding: 5px 8px 5px 12px;
    gap: 2px;
  }

  .nav__brand {
    font-size: 0.7rem;
  }

  .nav__toggle {
    padding: 4px;
  }

  .nav__toggle svg {
    width: 12px;
    height: 12px;
  }

  .nav__overlay-link {
    font-size: clamp(2rem, 10vw, 3rem);
    padding: 12px 0;
  }
}

@media (max-width: 400px) {
  .nav__overlay {
    padding-top: 20vh;
  }
}

/* # HERO SECTION
 * =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding);
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 44px,
      var(--color-teal-dim) 44px,
      var(--color-teal-dim) 45px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 44px,
      var(--color-teal-dim) 44px,
      var(--color-teal-dim) 45px
    );
}

.hero__grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 179px,
      rgba(35, 150, 127, 0.15) 179px,
      rgba(35, 150, 127, 0.15) 180px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 179px,
      rgba(35, 150, 127, 0.15) 179px,
      rgba(35, 150, 127, 0.15) 180px
    );
}

/* Corner brackets */
.hero__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--color-gold);
  opacity: 0.6;
}

.hero__corner--tl {
  top: 40px;
  left: 40px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero__corner--tr {
  top: 40px;
  right: 40px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.hero__corner--bl {
  bottom: 40px;
  left: 40px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.hero__corner--br {
  bottom: 40px;
  right: 40px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--color-gold-glow) 0%, transparent 70%);
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  letter-spacing: -4px;
  line-height: 0.85;
  color: var(--color-gold);
}

.hero__name--outlined {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-gold);
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  letter-spacing: -4px;
  line-height: 0.85;
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--color-gold-dim);
  margin-bottom: 20px;
}

.hero__info {
  margin-top: 20px;
}

.hero__info-role {
  margin-bottom: 16px;
}

.hero__role-line {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1.5;
}

.hero__role-line--sub {
  font-weight: 600;
  letter-spacing: 4px;
}

.hero__role-amp {
  font-family: var(--font-heading);
  font-weight: 400;
  margin-right: 4px;
}

body.light .hero__role-line,
body.light .hero__role-line--sub,
body.light .hero__role-amp {
  color: #b8942e;
}

.hero__info-tagline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 540px;
  letter-spacing: 0.2px;
}

.hero__info-tagline em {
  font-style: italic;
  color: var(--color-gold);
}


.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  text-decoration: none;
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--color-gold);
  color: #0a0a0a;
}

.btn--primary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--secondary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn--secondary:hover {
  background: var(--color-gold);
  color: #0a0a0a;
}

body.light .btn--secondary {
  border-color: #b8942e;
  color: #b8942e;
}

body.light .btn--secondary:hover {
  background: #b8942e;
  color: #f5f3ef;
}



/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  animation: scroll-bounce 2s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: hero-scroll-in 1s var(--ease-out-expo) 1.6s forwards, scroll-bounce 2s ease-in-out 2.6s infinite;
  white-space: nowrap;
}

.hero__scroll.is-hidden {
  opacity: 0;
  animation: none;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes hero-scroll-in {
  to {
    opacity: 0.6;
  }
}

/* # HERO ANIMATIONS
 * =================================================================== */

/* Fade in background layers */
.hero__grid,
.hero__glow {
  animation: hero-fade-in 0.8s var(--ease-out-expo) forwards;
}

.hero__glow {
  animation-delay: 0.15s;
}

.hero__corner {
  animation: hero-fade-in 0.6s var(--ease-out-expo) forwards;
  animation-delay: 0.3s;
}

/* Grid subtle pulse */
.hero__grid::before {
  animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Staggered entrance for hero content */
.hero [data-entrance-stagger] {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade-up 0.6s var(--ease-out-expo) forwards;
}

.hero [data-entrance-stagger="1"] { animation-delay: 0.4s; }
.hero [data-entrance-stagger="2"] { animation-delay: 0.6s; }
.hero [data-entrance-stagger="3"] { animation-delay: 0.8s; }
.hero [data-entrance-stagger="4"] { animation-delay: 1.0s; }

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-fade-in {
  to { opacity: 1; }
}
.hero__grid,
.hero__glow,
.hero__corner {
  opacity: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero [data-entrance-stagger],
  .hero__grid,
  .hero__glow,
  .hero__corner {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__grid::before {
    animation: none;
  }

  .nav__availability-dot {
    animation: none;
  }

  .marquee__track {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .marquee__card {
    transition: none !important;
  }

  .about__photo-frame::after,
  .about__manifesto-text {
    clip-path: none !important;
    transition: none !important;
  }

  .about__photo-frame::after {
    display: none !important;
  }

  .about__photo-frame img {
    filter: saturate(1) !important;
    transform: none !important;
  }

  .about__stat-accent,
  .about__stat-number {
    transition: none !important;
  }

  .about__stat-accent {
    height: 100% !important;
  }

}

/* Section badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  margin-bottom: 40px;
}

.section-badge__number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-gold);
}

.section-badge__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-dim);
  letter-spacing: 2px;
}

/* # ABOUT SECTION — Editorial Spread
 * =================================================================== */

/* -- Section header (aerocycling style) -- */
.about__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 48px;
}

.about__header-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-dim);
  transition: color 0.4s ease;
}

.about:hover .about__header-num {
  color: var(--color-gold);
  -webkit-text-stroke: 0;
}

.about__header-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 3px;
}

/* -- Grid -- */
.about__grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 64px;
  align-items: center;
}

.about__body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* -- Stats row — editorial cards -- */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 40px 0 32px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.about__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 28px;
  background: var(--color-bg);
  overflow: hidden;
}

/* Gold left accent bar — animates in on scroll */
.about__stat-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-gold);
  transition: height 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.about__stat.is-visible .about__stat-accent {
  height: 100%;
}

body.light .about__stat-accent {
  background: #b8942e;
}

/* Value container (number + suffix) */
.about__stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 10px;
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}

.about__stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
  color: var(--color-gold);
}

body.light .about__stat-number,
body.light .about__stat-suffix {
  color: #b8942e;
}

/* Decorative gold line under value */
.about__stat::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-gold-dim);
  margin-bottom: 10px;
  transition: width 0.4s ease, background 0.4s ease;
}

body.light .about__stat::after {
  background: rgba(184, 148, 46, 0.4);
}

.about__stat:hover::after {
  width: 48px;
  background: var(--color-gold);
}

body.light .about__stat:hover::after {
  background: #b8942e;
}

.about__stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* Hover lift effect */
.about__stat {
  transition: background 0.3s ease, transform 0.3s ease;
}

.about__stat:hover {
  background: var(--color-bg-alt);
  transform: translateY(-1px);
}

body.light .about__stat:hover {
  background: rgba(184, 148, 46, 0.04);
}

/* -- Resume link -- */
.about__resume-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  background: var(--color-gold);
  color: #0a0a0a;
  border-radius: 0;
  transition: background var(--duration-fast) var(--ease-out-expo),
              color var(--duration-fast) var(--ease-out-expo);
}

.about__resume-link:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

body.light .about__resume-link {
  background: #b8942e;
  color: #f5f3ef;
}

body.light .about__resume-link:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* -- Visual column (photo + location) -- */
.about__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* -- Photo frame with diagonal sweep reveal -- */
.about__photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--color-border-gold);
}

.about__photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
  z-index: 1;
}

.about__photo-frame.is-revealed::after {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7);
  transition: filter 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.about__photo-frame.is-revealed img {
  filter: saturate(1);
}

.about__photo-frame:hover img {
  filter: saturate(1);
  transform: scale(1.03);
}

/* -- Manifesto strip (full width below grid) -- */
.about__manifesto {
  margin-top: 64px;
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  overflow: hidden;
}

.about__manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1.2;
  color: var(--color-gold);
  letter-spacing: -1px;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 1.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.about__manifesto.is-revealed .about__manifesto-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* # SERVICES SECTION — Focus Depth List
 * =================================================================== */

.section.about {
  padding-bottom: 4px;
}

.section.services {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* -- Section header (aerocycling style) -- */
.services__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.services__header-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-dim);
  transition: color 0.4s ease;
}

.services:hover .services__header-num {
  color: var(--color-gold);
  -webkit-text-stroke: 0;
}

.services__header-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 3px;
}

/* -- Intro paragraph -- */
.services__intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 650px;
  margin-bottom: 48px;
}

/* -- Vertical list -- */
.services__list {
  display: flex;
  flex-direction: column;
}

/* -- Service row -- */
.service-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(20px, 2.8vh, 32px) clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--color-border);
  cursor: default;
  position: relative;
  transition: padding-left 0.4s var(--ease-out-expo),
              border-color 0.4s var(--ease-out-expo),
              opacity 0.5s var(--ease-out-expo),
              filter 0.5s var(--ease-out-expo);
}

.service-row:first-child {
  border-top: 1px solid var(--color-border);
}

/* -- Icon -- */
.service-row__icon {
  width: clamp(28px, 3vw, 36px);
  height: clamp(28px, 3vw, 36px);
  flex-shrink: 0;
  color: var(--color-text-dim);
  transition: color 0.4s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo);
  user-select: none;
  display: block;
}

/* -- Content area -- */
.service-row__content {
  flex: 1;
  min-width: 0;
}

.service-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.4s var(--ease-out-expo);
  line-height: 1.3;
}

.service-row__desc {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.88rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out-expo),
              opacity 0.4s var(--ease-out-expo);
  opacity: 0.6;
}

.service-row__desc > * {
  overflow: hidden;
}

/* -- Arrow indicator -- */
.service-row__arrow {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: var(--color-gold);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo);
  flex-shrink: 0;
}

/* === HOVER: Focus Depth effect === */

.service-row:hover {
  padding-left: clamp(28px, 3vw, 40px);
  border-color: var(--color-border-gold);
}

.service-row:hover .service-row__icon {
  color: var(--color-gold);
  transform: scale(1.08);
}

.service-row:hover .service-row__title {
  color: var(--color-gold);
}

.service-row:hover .service-row__desc {
  grid-template-rows: 1fr;
  opacity: 1;
}

.service-row:hover .service-row__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Focus depth: non-hovered siblings fade and blur */
.services__list:has(.service-row:hover) .service-row:not(:hover) {
  opacity: 0.2;
  filter: blur(1.5px);
}

body.light .services__list:has(.service-row:hover) .service-row:not(:hover) {
  opacity: 0.25;
  filter: blur(1px);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .service-row,
  .service-row__icon,
  .service-row__title,
  .service-row__desc,
  .service-row__arrow {
    transition: none;
  }

  .service-row:hover .service-row__desc {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .services__list:has(.service-row:hover) .service-row:not(:hover) {
    opacity: 1;
    filter: none;
  }
}

/* ---- Responsive (max 767px) ---- */
@media (max-width: 767px) {
  .service-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 0;
    cursor: default;
  }

  .service-row:first-child {
    border-top: none;
  }

  .service-row:hover {
    padding-left: 0;
    border-color: var(--color-border);
  }

  .service-row__icon {
    width: 22px;
    height: 22px;
  }

  .service-row__title {
    font-size: 1.1rem;
  }

  .service-row__desc {
    grid-template-rows: 1fr;
    opacity: 1;
    font-size: 0.82rem;
  }

  .service-row__arrow {
    display: none;
  }

  .services__list:has(.service-row:hover) .service-row:not(:hover) {
    opacity: 1;
    filter: none;
  }

  .service-row:hover .service-row__title {
    color: var(--color-text);
  }

  .service-row:hover .service-row__icon {
    color: var(--color-text-dim);
    transform: none;
  }

  .services__intro {
    margin-bottom: 32px;
  }
}

/* # FEATURED WORK — Editorial Gallery Wall
 * =================================================================== */

/* -- Section header (aerocycling style) -- */
.projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 48px;
}

.projects__header-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-dim);
  transition: color 0.4s ease;
}

.projects:hover .projects__header-num {
  color: var(--color-gold);
  -webkit-text-stroke: 0;
}

.projects__header-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 3px;
}

/* -- Intro paragraph -- */
.projects__intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 650px;
  margin-bottom: 48px;
}

/* -- Gallery grid -- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* -- Frame base -- */
.project-frame {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease,
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project-frame.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- Visual container (image + overlay + frame) -- */
.project-frame__visual {
  position: relative;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  overflow: hidden;
  transition: border-color 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo),
              background 0.5s var(--ease-out-expo);
  aspect-ratio: 4 / 5;
}

.project-frame:hover .project-frame__visual {
  border-color: var(--color-border-gold);
  box-shadow: 0 0 0 1px rgba(234, 190, 124, 0.15),
              0 12px 40px rgba(234, 190, 124, 0.06);
  background: rgba(17, 17, 17, 0.95);
}

body.light .project-frame:hover .project-frame__visual {
  box-shadow: 0 0 0 1px rgba(184, 148, 46, 0.2),
              0 12px 40px rgba(184, 148, 46, 0.08);
  background: rgba(236, 234, 228, 0.95);
}

.project-frame__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo),
              opacity 0.5s var(--ease-out-expo);
  will-change: transform;
}

.project-frame:hover .project-frame__visual img {
  transform: scale(1.04);
  opacity: 0;
}

/* -- Image shade (dark gradient at bottom for text readability) -- */
.project-frame__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.55) 70%,
    rgba(10, 10, 10, 0.85) 100%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s var(--ease-out-expo);
}

body.light .project-frame__shade {
  background: linear-gradient(
    180deg,
    rgba(245, 243, 239, 0.5) 0%,
    rgba(245, 243, 239, 0.5) 70%,
    rgba(245, 243, 239, 0.85) 100%
  );
}

.project-frame:hover .project-frame__shade {
  opacity: 0;
}

/* -- Project number (outlined, top-left) -- */
.project-frame__number {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.4s var(--ease-out-expo);
}

body.light .project-frame__number {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.35);
}

.project-frame:hover .project-frame__number {
  -webkit-text-stroke-color: var(--color-gold);
}

/* -- Category tag (gold border pill, top-right) -- */
.project-frame__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(234, 190, 124, 0.4);
  padding: 4px 10px;
  z-index: 2;
  pointer-events: none;
  transition: background 0.4s var(--ease-out-expo),
              color 0.4s var(--ease-out-expo),
              border-color 0.4s var(--ease-out-expo);
}

body.light .project-frame__tag {
  border-color: rgba(184, 148, 46, 0.4);
  color: #b8942e;
}

.project-frame:hover .project-frame__tag {
  background: var(--color-gold);
  color: #0a0a0a;
  border-color: var(--color-gold);
}

body.light .project-frame:hover .project-frame__tag {
  color: #f5f3ef;
}

/* -- Info panel (slides up on hover) -- */
.project-frame__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  z-index: 2;
  pointer-events: none;
}

.project-frame__panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0;
  transition: margin-bottom 0.4s var(--ease-out-expo);
}

.project-frame:hover .project-frame__panel-head {
  margin-bottom: 10px;
}

.project-frame__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.4s var(--ease-out-expo);
}

body.light .project-frame__title {
  color: #0a0a0a;
}

.project-frame:hover .project-frame__title {
  color: var(--color-gold);
}

.project-frame__year {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  flex-shrink: 0;
}

body.light .project-frame__year {
  color: rgba(0, 0, 0, 0.4);
}

/* -- Panel body (hidden, expands on hover) -- */
.project-frame__panel-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo),
              opacity 0.4s var(--ease-out-expo) 0.05s;
}

.project-frame:hover .project-frame__panel-body {
  max-height: 300px;
  opacity: 1;
}

.project-frame__desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

body.light .project-frame__desc {
  color: rgba(0, 0, 0, 0.65);
}

/* -- Dual CTA row -- */
.project-frame__cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.project-frame__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s var(--ease-out-expo);
  pointer-events: auto;
  line-height: 1;
}

.project-frame__cta-btn--primary {
  background: var(--color-gold);
  color: #0a0a0a;
  border: 1px solid var(--color-gold);
}

.project-frame__cta-btn--primary:hover {
  background: transparent;
  color: var(--color-gold);
}

.project-frame__cta-btn--secondary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.project-frame__cta-btn--secondary:hover {
  background: var(--color-gold);
  color: #0a0a0a;
}

body.light .project-frame__cta-btn--primary:hover {
  color: var(--color-gold);
}

body.light .project-frame__cta-btn--secondary {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

body.light .project-frame__cta-btn--secondary:hover {
  color: var(--color-bg);
}

/* # PROCESS SECTION
 * =================================================================== */
.process__intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  max-width: 500px;
  line-height: 1.6;
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  position: relative;
}

.process-step {
  position: relative;
  text-align: center;
  padding: 24px;
  transition: background 0.3s var(--ease-out-expo);
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -16px;
  width: 32px;
  height: 1px;
  border-top: 1px dashed var(--color-gold);
  opacity: 0.4;
  pointer-events: none;
}

.process-step:hover {
  background: var(--color-bg-alt);
}

.process-step__number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-gold);
  margin-bottom: 16px;
  transition: all 0.3s var(--ease-out-expo);
}

.process-step:hover .process-step__number {
  color: var(--color-gold);
  -webkit-text-stroke: 0;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 12px;
}

.process-step__body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* # RECRUITER MODE OVERRIDES
 * =================================================================== */
body.recruiter-mode *,
body.recruiter-mode *::before,
body.recruiter-mode *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

body.recruiter-mode .cursor,
body.recruiter-mode .preloader {
  display: none !important;
}

body.recruiter-mode .marquee__track {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body.recruiter-mode .hero__scroll {
  display: none !important;
}

body.recruiter-mode .hero {
  min-height: auto;
  padding: 120px 5% 60px;
}

@media (min-width: 1024px) {
  body.recruiter-mode .nav {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  body.recruiter-mode .nav__pill {
    background: var(--color-bg-alt);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: var(--color-border);
    box-shadow: none;
    border-radius: 8px;
    max-width: 100%;
    width: auto;
  }

  body.recruiter-mode .nav__links {
    display: flex !important;
  }

  body.recruiter-mode .nav__hamburger,
  body.recruiter-mode .nav__overlay {
    display: none !important;
  }
}

/* # AVAILABILITY TOOLTIP
 * =================================================================== */
.nav__availability::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--color-bg-elevated);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.7rem;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.nav__availability:hover::after {
  opacity: 1;
  visibility: visible;
}

/* # SCROLL PROGRESS
 * =================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-gold);
  z-index: 1002;
  transition: width 0.1s linear;
  opacity: 0;
}

.scroll-progress.is-visible {
  opacity: 1;
}

/* # SECTION BASE
 * =================================================================== */
.section {
  padding: var(--section-padding);
}

.section__header {
  margin-bottom: 48px;
}

/* # TECH MARQUEE
 * =================================================================== */
.marquee {
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  position: relative;
}

/* -- Edge fade masks -- */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 6vw, 100px);
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-alt) 0%, transparent 100%);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-alt) 0%, transparent 100%);
}

/* -- Track -- */
.marquee__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo);
  animation: marquee-scroll 40s linear infinite;
  animation-play-state: paused;
}

.marquee.is-visible .marquee__track {
  opacity: 1;
  animation-play-state: running;
}

.marquee:hover .marquee__track {
  animation-play-state: paused !important;
}

/* -- Card -- */
.marquee__card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  white-space: nowrap;
  cursor: default;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo);
  user-select: none;
}

.marquee__card:hover {
  border-color: var(--color-border-gold);
  background: var(--color-gold);
  color: #0a0a0a;
  box-shadow: 0 0 24px var(--color-gold-glow);
  transform: scale(1.05);
}

/* -- Card icon -- */
.marquee__card-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease, filter 0.4s ease;
  object-fit: contain;
}

body.light .marquee__card-icon {
  filter: brightness(0);
}

.marquee__card:hover .marquee__card-icon {
  opacity: 1;
  filter: none;
}

/* -- Card name -- */
.marquee__card-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.marquee__card:hover .marquee__card-name {
  color: #0a0a0a;
}

body.light .marquee__card:hover {
  background: #b8942e;
}

body.light .marquee__card:hover .marquee__card-name {
  color: #f5f3ef;
}

/* -- Separator -- */
.marquee__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  color: var(--color-gold);
  opacity: 0.2;
  margin: 0 6px;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.marquee:hover .marquee__sep {
  opacity: 0.4;
}

/* -- Keyframes -- */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* # FOOTER
 * =================================================================== */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-gold);
  padding: 0 5%;
}

/* -- Zone A: Statement strip -- */
.footer__statement {
  padding: clamp(48px, 8vh, 80px) 0 clamp(32px, 5vh, 56px);
  text-align: center;
}

.footer__statement-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.85;
  line-height: 1.2;
}

body.light .footer__statement-text {
  color: #1a1814;
}

/* -- Zone B: Split layout -- */
.footer__split {
  display: flex;
  justify-content: center;
  padding-bottom: clamp(40px, 6vh, 64px);
}

/* -- Social side -- */
.footer__social-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--color-border-strong);
  border-radius: 100px;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.25s ease;
  cursor: pointer;
}

.footer__pill:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-dim);
  transform: translateY(-2px);
}

body.light .footer__pill:hover {
  color: #b8942e;
  border-color: #b8942e;
  background: rgba(184, 148, 46, 0.08);
}

.footer__pill:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.footer__pill-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.footer__pill:hover .footer__pill-icon {
  transform: translateY(-1px);
}

.footer__pill--primary {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-dim);
}

body.light .footer__pill--primary {
  border-color: #b8942e;
  color: #b8942e;
  background: rgba(184, 148, 46, 0.08);
}

.footer__pill--primary:hover {
  background: var(--color-gold);
  color: #0a0a0a;
}

body.light .footer__pill--primary:hover {
  background: #b8942e;
  color: #f5f3ef;
}

.footer__pill--primary:hover .footer__pill-icon {
  transform: translateY(-1px);
}

/* -- Zone C: Bottom bar -- */
.footer__bar {
  border-top: 1px solid var(--color-border);
}

.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px 0;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
}

.footer__back-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, transform 0.25s ease;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.footer__back-top svg {
  width: 16px;
  height: 16px;
}

.footer__back-top:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: var(--color-gold-dim);
  transform: translateY(-3px);
}

body.light .footer__back-top:hover {
  border-color: #b8942e;
  color: #b8942e;
  background: rgba(184, 148, 46, 0.08);
}

.footer__back-top:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* -- GSAP initial states -- */
.footer__statement-text,
.footer__social-group,
.footer__bar-inner {
  opacity: 0;
}

/* # EXPERIENCE / EDUCATION -- Scroll-Driven Timeline
 * =================================================================== */

.timeline__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 64px;
}

.timeline__header-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-dim);
  transition: color 0.4s ease;
}

.timeline:hover .timeline__header-num {
  color: var(--color-gold);
  -webkit-text-stroke: 0;
}

.timeline__header-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 3px;
}

/* -- Track (container for all entries + line rail) -- */
.timeline__track {
  position: relative;
  padding-left: 160px;
}

/* -- Line rail (anchored timeline vertical line) -- */
.timeline__line-rail {
  position: absolute;
  left: 70px;
  top: 0;
  bottom: 0;
  width: 2px;
  pointer-events: none;
}

.timeline__line {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: 2px;
}

.timeline__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-gold);
  border-radius: 2px;
  transform-origin: top center;
  transform: scaleY(0);
}

body.light .timeline__line {
  background: rgba(0, 0, 0, 0.1);
}

body.light .timeline__line-fill {
  background: #b8942e;
}

/* -- Section label (Experience / Education / Certifications) -- */
.timeline__section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.timeline__section-label-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.6;
}

body.light .timeline__section-label-line {
  background: #b8942e;
}

.timeline__section-label-text {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* -- Entry row -- */
.timeline__entry {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0;
  padding-bottom: 56px;
  position: relative;
}

.timeline__entry:last-child {
  padding-bottom: 0;
}

/* -- Marker column (icon) -- */
.timeline__entry-marker {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 6px;
  z-index: 2;
}

.timeline__connector {
  display: none;
}

.timeline__entry-icon {
  width: clamp(32px, 3.5vw, 44px);
  height: clamp(32px, 3.5vw, 44px);
  color: var(--color-gold);
  flex-shrink: 0;
}

body.light .timeline__entry-icon {
  color: #b8942e;
}

/* -- Integrated date row -- */
.timeline__entry-date {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

body.light .timeline__entry-date {
  color: #b8942e;
}

/* -- Content column -- */
.timeline__entry-content {
  min-width: 0;
  padding-left: 20px;
}

.timeline__entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 4px;
}

.timeline__entry-subtitle {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 6px;
}

body.light .timeline__entry-subtitle {
  color: #b8942e;
}

.timeline__entry-org {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}


.timeline__entry-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 60ch;
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline__entry-desc li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.timeline__entry-desc li:last-child {
  margin-bottom: 0;
}

.timeline__entry-desc li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 5px;
  color: var(--color-gold);
  opacity: 0.5;
  line-height: 1;
}

body.light .timeline__entry-desc li::before {
  color: #b8942e;
}

.td__lead {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-right: 6px;
}

body.light .td__lead {
  color: #b8942e;
}

/* -- Accordion header (clickable) -- */
.timeline__entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  text-align: left;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity 0.25s ease;
}

.timeline__entry-header:hover {
  opacity: 0.85;
}

.timeline__entry-header:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.timeline__entry-header-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.timeline__entry-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 6px;
  color: var(--color-gold);
  transition: transform 0.35s ease;
}

body.light .timeline__entry-chevron {
  color: #b8942e;
}

.timeline__entry-header[aria-expanded="true"] .timeline__entry-chevron {
  transform: rotate(180deg);
}

/* -- Accordion panel (collapsible) -- */
.timeline__entry-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.timeline__entry-panel.is-open {
  grid-template-rows: 1fr;
}

.timeline__entry-panel > .timeline__entry-desc {
  overflow: hidden;
  padding-top: 0;
  transition: padding-top 0.35s ease;
}

.timeline__entry-panel.is-open > .timeline__entry-desc {
  padding-top: 14px;
}

/* -- data-reveal initial hidden state (vanilla fallback + GSAP target) -- */
[data-reveal] {
  opacity: 1; /* GSAP handles initial state */
}

/* -- GSAP initial states set via JS, but fallback for no-JS -- */
.timeline__entry,
.timeline__section-label {
  opacity: 0;
}

/* # CASE STUDY PAGE (v2 — Editorial Redesign)
 * =================================================================== */

/* ============================================
   1. HERO — Split Layout
   ============================================ */
.case-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.case-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
}

/* -- Left column -- */
.case-hero__left {
  position: relative;
}

.case-hero__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-hero__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-gold);
  max-width: 60px;
}

.case-hero__title {
  margin-bottom: 12px;
}

.case-hero__title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 0.85;
  letter-spacing: -4px;
}

.case-hero__title-line--filled {
  color: var(--color-gold);
}

.case-hero__title-line--outlined {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-gold);
  text-stroke: 1px var(--color-gold);
}

.case-hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

.case-hero__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.case-hero__pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1px;
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.case-hero__pill:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.case-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-hero__btn {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
}

.case-hero__btn--primary {
  background: var(--color-gold);
  color: #0a0a0a;
  border: none;
}

.case-hero__btn--primary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.case-hero__btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.case-hero__btn--secondary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.case-hero__btn--secondary:hover {
  background: var(--color-gold);
  color: #0a0a0a;
}

body.light .case-hero__btn--secondary {
  border-color: #b8942e;
  color: #b8942e;
}

body.light .case-hero__btn--secondary:hover {
  background: #b8942e;
  color: #f5f3ef;
}

body.light .case-hero__btn--primary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* -- Right column — Neural network visual -- */
.case-hero__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  opacity: 0.35;
}

.case-hero__neural {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}

.case-hero__neural-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.3;
}

.case-hero__neural-line {
  position: absolute;
  height: 1px;
  background: var(--color-border-gold);
  transform-origin: 0 0;
  opacity: 0.15;
}

/* -- Scroll indicator -- */
.case-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.4s ease;
}

.case-hero__scroll-arrow {
  width: 14px;
  height: 14px;
  color: var(--color-gold);
  animation: case-scroll-bounce 2s ease-in-out infinite;
}

@keyframes case-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   2. SECTION COMMON
   ============================================ */
.case-section {
  padding: clamp(80px, 10vh, 140px) 0;
}

.case-section--alt {
  background: var(--color-bg-alt);
}

.case-section--dark {
  background: var(--color-bg-elevated);
}

.case-section--full {
  padding: 0;
  overflow: hidden;
}

.case__sidecar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.case__sidecar-sticky {
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

.case__sidecar-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--color-gold);
  display: block;
  margin-bottom: 8px;
}

.case__sidecar-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.case__sidecar-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--color-gold);
  margin-bottom: 20px;
}

body.light .case__sidecar-heading {
  color: #b8942e;
}

.case__sidecar-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* -- Challenge stat cards (about-style) -- */
.case-challenge-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.case-challenge-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--color-bg);
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.case-challenge-stat:hover {
  background: var(--color-bg-alt);
  transform: translateY(-1px);
}

body.light .case-challenge-stat:hover {
  background: rgba(184, 148, 46, 0.04);
}

.case-challenge-stat__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-gold);
  transition: height 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.case-challenge-stat.is-visible .case-challenge-stat__accent {
  height: 100%;
}

body.light .case-challenge-stat__accent {
  background: #b8942e;
}

.case-challenge-stat__title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 6px;
}

.case-challenge-stat__desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.case-challenge-stat::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-gold-dim);
  margin-bottom: 10px;
  order: -1;
  transition: width 0.4s ease, background 0.4s ease;
}

body.light .case-challenge-stat::after {
  background: rgba(184, 148, 46, 0.4);
}

.case-challenge-stat:hover::after {
  width: 44px;
  background: var(--color-gold);
}

body.light .case-challenge-stat:hover::after {
  background: #b8942e;
}

/* -- Tab dropdown for mobile -- */
.case-tabs__select {
  display: none;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4a84b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  margin-bottom: 20px;
  border-radius: 0;
}

.case__pull-quote {
  padding: 20px 0 20px 24px;
  border-left: 2px solid var(--color-border-gold);
  margin-bottom: 24px;
}

.case__pull-quote:last-child {
  margin-bottom: 0;
}

.case__pull-quote strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 6px;
}

.case__pull-quote p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================
   2a. SECTION HEADER (index.html style)
   ============================================ */
.cs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.cs-header-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-dim);
  transition: color 0.4s ease;
}

.cs-section:hover .cs-header-num {
  color: var(--color-gold);
  -webkit-text-stroke: 0;
}

body.light .cs-section:hover .cs-header-num {
  color: #b8942e;
}

.cs-header-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 3px;
}

/* Tighter bottom padding for the approach section */
#approach {
  padding-bottom: clamp(40px, 6vh, 80px);
}

/* ============================================
   3. ARCHITECTURE — Horizontal Flow
   ============================================ */
.case-flow {
  position: relative;
  width: 100%;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-flow__track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  width: max-content;
}

.case-flow__node {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 28px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  min-width: 140px;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
  cursor: default;
}

.case-flow__node:hover {
  border-color: var(--color-border-gold);
  background: var(--color-bg-alt);
}

.case-flow__node--output {
  border-color: var(--color-border-gold);
}

.case-flow__icon {
  width: 28px;
  height: 28px;
  color: var(--color-gold);
}

.case-flow__icon svg {
  width: 100%;
  height: 100%;
}

.case-flow__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  white-space: nowrap;
}

.case-flow__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 1px;
  background: var(--color-border-gold);
  position: relative;
}

.case-flow__arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--color-gold);
  border-top: 1px solid var(--color-gold);
  transform: rotate(45deg);
  opacity: 0.4;
}

.case-flow__hint {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  text-align: center;
  padding: 20px;
}

.case-flow__tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.case-flow__node:hover .case-flow__tooltip {
  display: block;
}

/* ============================================
   4. FEATURES — Bento Grid
   ============================================ */
.case-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}

.case-bento__tile {
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.case-bento__tile:hover {
  border-color: var(--color-border-gold);
  transform: translateY(-4px);
  background: var(--color-bg-alt);
}

.case-bento__tile--hero {
  grid-column: span 2;
  grid-row: span 2;
}

.case-bento__tile--wide {
  grid-column: span 2;
}

.case-bento__icon {
  width: 24px;
  height: 24px;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.case-bento__icon svg {
  width: 100%;
  height: 100%;
}

.case-bento__title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.case-bento__desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  flex: 1;
}

body.light .case-bento__tile:hover {
  background: var(--color-bg-elevated);
}

/* ============================================
   4a. FEATURES — Services-Style Vertical List
   ============================================ */
.cs-features-list {
  display: flex;
  flex-direction: column;
}

.cs-feature-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(20px, 2.8vh, 32px) clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--color-border);
  cursor: default;
  position: relative;
  transition: padding-left 0.4s var(--ease-out-expo),
              border-color 0.4s var(--ease-out-expo),
              opacity 0.5s var(--ease-out-expo),
              filter 0.5s var(--ease-out-expo);
}

.cs-feature-row:first-child {
  border-top: 1px solid var(--color-border);
}

.cs-feature-row__icon {
  width: clamp(28px, 3vw, 36px);
  height: clamp(28px, 3vw, 36px);
  flex-shrink: 0;
  color: var(--color-text-dim);
  transition: color 0.4s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo);
  user-select: none;
  display: block;
}

.cs-feature-row__icon svg {
  width: 100%;
  height: 100%;
}

.cs-feature-row__content {
  flex: 1;
  min-width: 0;
}

.cs-feature-row__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.4s var(--ease-out-expo);
  line-height: 1.3;
}

.cs-feature-row__desc {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.88rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out-expo),
              opacity 0.4s var(--ease-out-expo);
  opacity: 0.6;
}

.cs-feature-row__desc > * {
  overflow: hidden;
}

.cs-feature-row__arrow {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: var(--color-gold);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo);
  flex-shrink: 0;
}

/* Hover: focus-depth effect */
.cs-feature-row:hover {
  padding-left: clamp(28px, 3vw, 40px);
  border-color: var(--color-border-gold);
}

.cs-feature-row:hover .cs-feature-row__icon {
  color: var(--color-gold);
  transform: scale(1.08);
}

.cs-feature-row:hover .cs-feature-row__title {
  color: var(--color-gold);
}

.cs-feature-row:hover .cs-feature-row__desc {
  grid-template-rows: 1fr;
  opacity: 1;
}

.cs-feature-row:hover .cs-feature-row__arrow {
  opacity: 1;
  transform: translateX(0);
}

.cs-features-list:has(.cs-feature-row:hover) .cs-feature-row:not(:hover) {
  opacity: 0.2;
  filter: blur(1.5px);
}

body.light .cs-features-list:has(.cs-feature-row:hover) .cs-feature-row:not(:hover) {
  opacity: 0.25;
  filter: blur(1px);
}

/* ============================================
   5. TECHNICAL DEEP-DIVE — Tabbed
   ============================================ */
.case-tabs {
  margin-top: 32px;
}

.case-tabs__bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
  overflow: hidden;
  flex-wrap: wrap;
}

.case-tabs__btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  background: none;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.case-tabs__btn:hover {
  color: var(--color-text);
}

.case-tabs__btn--active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.case-tabs__panel {
  display: none;
}

.case-tabs__panel--active {
  display: block;
}

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

.case-tabs__tech-item {
  padding: 16px;
  border: 1px solid var(--color-border);
}

.case-tabs__tech-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text);
  display: block;
  margin-bottom: 4px;
}

.case-tabs__tech-desc {
  font-family: var(--font-body);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ============================================
   6. RESULTS — Animated Counters (About-style)
   ============================================ */
.case-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.case-results__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 28px;
  background: var(--color-bg);
  overflow: hidden;
  transition: background 0.3s ease, transform 0.3s ease;
}

.case-results__card:hover {
  background: var(--color-bg-alt);
  transform: translateY(-1px);
}

body.light .case-results__card:hover {
  background: rgba(184, 148, 46, 0.04);
}

/* Gold left accent bar */
.case-results__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-gold);
  transition: height 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.case-results__card.is-visible .case-results__accent {
  height: 100%;
}

body.light .case-results__accent {
  background: #b8942e;
}

/* Value container (number + suffix) */
.case-results__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 10px;
}

.case-results__number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}

.case-results__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
  color: var(--color-gold);
}

body.light .case-results__number,
body.light .case-results__suffix {
  color: #b8942e;
}

/* Decorative gold line under value */
.case-results__card::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-gold-dim);
  margin-bottom: 10px;
  transition: width 0.4s ease, background 0.4s ease;
}

body.light .case-results__card::after {
  background: rgba(184, 148, 46, 0.4);
}

.case-results__card:hover::after {
  width: 48px;
  background: var(--color-gold);
}

body.light .case-results__card:hover::after {
  background: #b8942e;
}

.case-results__label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* ============================================
   7. CTA — Gold Full-Bleed Banner
   ============================================ */
.case-cta-banner {
  background: var(--color-gold);
  padding: clamp(60px, 8vh, 100px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.case-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(0, 0, 0, 0.03) 40px,
    rgba(0, 0, 0, 0.03) 41px
  );
  pointer-events: none;
}

.case-cta-banner__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: #0a0a0a;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
  position: relative;
}

.case-cta-banner__text {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: #0a0a0a;
  opacity: 0.7;
  margin-bottom: 28px;
  position: relative;
}

.case-cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
}

.case-cta-banner__btn {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.case-cta-banner__btn--primary {
  background: #0a0a0a;
  color: var(--color-gold);
  border: 1px solid #0a0a0a;
}

.case-cta-banner__btn--primary:hover {
  background: var(--color-text);
  border-color: var(--color-text);
}

.case-cta-banner__btn--secondary {
  background: transparent;
  color: #0a0a0a;
  border: 1px solid #0a0a0a;
}

.case-cta-banner__btn--secondary:hover {
  background: #0a0a0a;
  color: var(--color-gold);
}

/* ============================================
   8. RESPONSIVE
   ============================================ */
@media (max-width: 1023px) {
  .case-hero__inner {
    position: relative;
    min-height: auto;
    gap: 0;
    grid-template-columns: 1fr;
  }

  .case-hero__right {
    position: absolute;
    inset: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
  }

  .case-hero__neural {
    max-width: 280px;
  }

  .case-hero__left {
    position: relative;
    z-index: 1;
  }

  .case__sidecar {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case__sidecar-sticky {
    position: static;
  }

  .case__sidecar-heading {
    max-width: none;
  }

  .case-bento {
    grid-template-columns: 1fr 1fr;
  }

  .case-bento__tile--hero {
    grid-column: span 2;
    grid-row: span 1;
  }

  .case-bento__tile--wide {
    grid-column: span 2;
  }

  .cs-feature-row {
    gap: 14px;
    padding: 18px 0;
  }

  .cs-feature-row__icon {
    width: 24px;
    height: 24px;
  }

  .cs-feature-row__title {
    font-size: 1.15rem;
    letter-spacing: 1px;
  }

  .cs-feature-row__arrow {
    font-size: 0.9rem;
  }

  .case-results {
    grid-template-columns: 1fr 1fr;
  }

  .case-flow {
    min-height: auto;
  }

  .case-flow__track {
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 0;
  }

  .case-flow__node {
    width: 100%;
    flex-direction: row;
    text-align: left;
    gap: 16px;
    padding: 18px 20px;
    min-width: 0;
    border-left: none;
    border-right: none;
  }

  .case-flow__node:first-child {
    border-top: none;
  }

  .case-flow__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .case-flow__label {
    white-space: normal;
    text-align: left;
  }

  .case-flow__arrow {
    width: 1px;
    height: 24px;
    margin: 0 auto;
  }

  .case-flow__arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    top: auto;
    right: auto;
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--color-gold);
    border-top: 1px solid var(--color-gold);
    transform: translateX(-50%) rotate(135deg);
  }

  .case-flow__tooltip {
    display: none !important;
  }

  .case-flow__hint {
    display: none;
  }
}

@media (max-width: 767px) {
  .case-hero__inner {
    position: relative;
    min-height: auto;
    gap: 0;
    grid-template-columns: 1fr;
  }

  .case-hero__title-line {
    font-size: clamp(3rem, 16vw, 6rem);
    letter-spacing: -2px;
  }

  .case-hero__right {
    position: absolute;
    inset: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
  }

  .case-hero__neural {
    max-width: 220px;
  }

  .case-hero__left {
    position: relative;
    z-index: 1;
  }

  .case-hero__tech {
    gap: 6px;
  }

  .case-hero__tagline {
    max-width: 100%;
    font-size: 1.05rem;
  }

  .case-hero__pill {
    font-size: 0.5rem;
    padding: 4px 10px;
  }

  .case-hero__links {
    flex-direction: column;
    margin-top: 28px;
  }

  .case-hero__btn {
    width: 100%;
    justify-content: center;
    padding: 16px 36px;
    font-size: 0.8rem;
  }

  .case-hero__btn-icon {
    width: 16px;
    height: 16px;
  }

  .case-hero__scroll {
    bottom: 20px;
    font-size: 0.65rem;
  }

  .case-bento {
    grid-template-columns: 1fr;
  }

  .case-bento__tile--hero,
  .case-bento__tile--wide {
    grid-column: span 1;
  }

  .case-results {
    grid-template-columns: 1fr 1fr;
  }

  /* Architecture flow: handled at 1023px breakpoint */

  .case-tabs__bar {
    display: none;
  }

  .case-tabs__select {
    display: block;
  }

  /* Features list mobile */
  .cs-feature-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 0;
  }

  .cs-feature-row:first-child {
    border-top: none;
  }

  .cs-feature-row:hover {
    padding-left: 0;
    border-color: var(--color-border);
  }

  .cs-feature-row__icon {
    width: 22px;
    height: 22px;
  }

  .cs-feature-row__title {
    font-size: 1.1rem;
  }

  .cs-feature-row__desc {
    grid-template-rows: 1fr;
    opacity: 1;
    font-size: 0.82rem;
  }

  .cs-feature-row__arrow {
    display: none;
  }

  .cs-features-list:has(.cs-feature-row:hover) .cs-feature-row:not(:hover) {
    opacity: 1;
    filter: none;
  }

  .cs-feature-row:hover .cs-feature-row__title {
    color: var(--color-text);
  }

  .cs-feature-row:hover .cs-feature-row__icon {
    color: var(--color-text-dim);
    transform: none;
  }
}

@media (max-width: 479px) {
  .case-results {
    grid-template-columns: 1fr;
  }

  .case-tabs__tech-grid {
    grid-template-columns: 1fr;
  }
}

/* # KIND WORDS -- Minimal Editorial Marquee + Featured
 * =================================================================== */

.kind-words {
  padding: 48px 0 24px;
}

/* Override default section padding to tighten gap to Contact */
.kind-words + .contact {
  padding-top: clamp(40px, 6vh, 80px);
}

/* Match gap between sections 03→04 and 04→05 to 05→06 */
.projects {
  padding-bottom: 24px;
}

.projects + .timeline {
  padding-top: clamp(40px, 6vh, 80px);
}

.timeline {
  padding-bottom: 24px;
}

.timeline + .kind-words {
  padding-top: clamp(40px, 6vh, 80px);
}

.kind-words__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 48px;
}

.kind-words__header-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-dim);
  transition: color 0.4s ease;
}

.kind-words:hover .kind-words__header-num {
  color: var(--color-gold);
  -webkit-text-stroke: 0;
}

body.light .kind-words:hover .kind-words__header-num {
  color: #b8942e;
}

.kind-words__header-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 3px;
}

/* -- Grid -- */
.kw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* -- Card -- */
.kw-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.8vh, 32px) clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  cursor: default;
  position: relative;
  opacity: 0;
  transition: padding var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) var(--ease-out-expo),
              opacity var(--duration-fast) var(--ease-out-expo),
              filter var(--duration-fast) var(--ease-out-expo);
}

.kw-card:hover {
  padding-left: clamp(28px, 3vw, 40px);
  border-color: var(--color-border-gold);
}

.kw-grid:has(.kw-card:hover) .kw-card:not(:hover) {
  opacity: 0.25;
  filter: blur(1px);
}

/* Vertical divider between grid columns */
@media (min-width: 768px) {
  .kw-card:not(:first-child) {
    border-left: 1px solid var(--color-border);
  }
}

.kw-card__mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.12;
  margin-bottom: 2px;
}

body.light .kw-card__mark {
  color: #b8942e;
}

.kw-card__quote {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

body.light .kw-card__quote {
  color: #444;
}

.kw-card__attribution {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.kw-card__name {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
}

body.light .kw-card__name {
  color: #b8942e;
}

.kw-card__role {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* # CONTACT -- Split Editorial Connect
 * =================================================================== */

.contact__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 56px;
}

.contact__header-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-dim);
  transition: color 0.4s ease;
}

.contact:hover .contact__header-num {
  color: var(--color-gold);
  -webkit-text-stroke: 0;
}

body.light .contact:hover .contact__header-num {
  color: #b8942e;
}

.contact__header-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 3px;
}

/* -- Split layout -- */
.contact__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* -- Pitch column -- */
.contact__pitch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--color-gold);
  margin: 0 0 20px;
}

body.light .contact__heading {
  color: #b8942e;
}

.contact__body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 48ch;
}

body.light .contact__body {
  color: #444;
}

/* -- Status -- */
.contact__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.contact__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: contact-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes contact-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

.contact__status-text {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--color-gold);
  letter-spacing: -0.5px;
}

body.light .contact__status-text {
  color: #b8942e;
}

/* -- Email -- */
/* -- Buttons -- */
.contact__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
}

.contact__btn {
  padding: 12px 12px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

/* -- Pricing -- */
.contact__pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  width: 100%;
}

.contact__pricing-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-dim);
  letter-spacing: 0.5px;
}

.contact__pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--color-gold);
  line-height: 1;
  letter-spacing: -0.5px;
}

body.light .contact__pricing-amount {
  color: #b8942e;
}

.contact__pricing-sep {
  font-size: 0.5rem;
  color: var(--color-gold);
  opacity: 0.4;
  line-height: 1;
}

body.light .contact__pricing-sep {
  color: #b8942e;
}

.contact__pricing-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text-dim);
  letter-spacing: 0.2px;
}

/* -- Aside column (FAQ) -- */
.contact__aside {
  display: flex;
  flex-direction: column;
}

.contact__aside-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 24px;
}

/* -- FAQ accordion (refined) -- */
.faq {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text);
  gap: 12px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.3s ease;
}

.faq__question:hover {
  color: var(--color-gold);
}

body.light .faq__question:hover {
  color: #b8942e;
}

.faq__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

body.light .faq__chevron {
  color: #b8942e;
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__answer.is-open {
  max-height: 150px;
}

.faq__answer p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  padding-bottom: 18px;
  margin: 0;
}

/* # TIMELINE RESPONSIVE
 * =================================================================== */
@media (max-width: 1023px) {
  .timeline__track {
    padding-left: 120px;
  }

  .timeline__line-rail {
    left: 50px;
  }

  .timeline__entry {
    grid-template-columns: 50px 1fr;
  }

  .timeline__entry-desc {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .timeline__track {
    padding-left: 0;
  }

  .timeline__line-rail {
    display: none;
  }

  .timeline__section-label {
    padding-left: 0;
    margin-bottom: 24px;
  }

  .timeline__entry {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding-bottom: 40px;
    padding-left: 0;
    border-left: none;
  }

  .timeline__entry-marker {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
  }

  .timeline__entry-icon {
    width: 28px;
    height: 28px;
  }

  .timeline__entry-content {
    grid-column: 1 / -1;
  }

  .timeline__entry-title {
    font-size: 1rem;
  }

  .timeline__entry-subtitle {
    font-size: 0.68rem;
  }

  .timeline__entry-org {
    font-size: 0.72rem;
  }

  .timeline__entry-desc {
    font-size: 0.82rem;
  }

  .timeline__entry-content {
    padding-left: 10px;
  }
}

/* # KIND WORDS RESPONSIVE
 * =================================================================== */
@media (max-width: 1023px) {
  .kw-grid {
    gap: 28px;
  }

  .kw-card__quote {
    font-size: 0.82rem;
  }
}

@media (max-width: 767px) {
  .kind-words {
    padding: 40px 0 64px;
  }

  .kind-words__header {
    margin-bottom: 32px;
  }

  .kw-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .kw-card__mark {
    font-size: 24px;
  }

  .kw-card__quote {
    font-size: 0.82rem;
  }
}

/* # CONTACT RESPONSIVE
 * =================================================================== */
@media (max-width: 1023px) {
  .contact__split {
    gap: 48px;
  }

  .contact__btn {
    padding: 10px 8px;
    font-size: 0.65rem;
    letter-spacing: 1px;
  }

  .btn__icon {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 767px) {
  .contact__split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__header {
    margin-bottom: 40px;
  }

  .contact__body {
    font-size: 0.85rem;
  }

  .contact__actions {
    gap: 8px;
  }

  .contact__btn {
    padding: 10px 6px;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .btn__icon {
    width: 12px;
    height: 12px;
  }

  .contact__pricing {
    gap: 4px;
    padding-top: 14px;
  }

  .contact__pricing-amount {
    font-size: 1.1rem;
  }

  .contact__pricing-desc {
    font-size: 0.68rem;
  }

  .contact__aside-label {
    margin-bottom: 20px;
  }

  .faq__question {
    font-size: 0.82rem;
    padding: 16px 0;
    min-height: 44px;
  }

  .faq__answer p {
    font-size: 0.8rem;
  }
}

/* # TIMELINE REDUCED MOTION
 * =================================================================== */
@media (prefers-reduced-motion: reduce) {
  .timeline__entry,
  .timeline__section-label {
    opacity: 1;
  }

  .timeline__line-fill {
    transform: scaleY(1);
  }

  .contact__pitch,
  .contact__aside {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .contact__status-dot {
    animation: none;
  }

  .kw-card {
    opacity: 1;
  }
}

/* # VIEW TRANSITION API
 * =================================================================== */
@keyframes page-exit {
  to { opacity: 0; transform: scale(0.96); }
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(20px); }
}

::view-transition-old(root) {
  animation: 0.35s ease-out both page-exit;
}

::view-transition-new(root) {
  animation: 0.5s ease-out 0.15s both page-enter;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }
}

/* # RESPONSIVE
 * =================================================================== */
@media (max-width: 1023px) {
  .hero__info-tagline {
    max-width: 100%;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__stat {
    padding: 28px 20px 24px;
  }

  .about__manifesto {
    margin-top: 48px;
    padding: 36px 0;
  }

  .about__manifesto-text {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  }

  .services__intro {
    max-width: 100%;
  }

  .projects__grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-frame__visual {
    aspect-ratio: 4 / 5;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .footer__social-group {
    justify-content: center;
  }

  .footer__bar-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .marquee__card {
    padding: 8px 14px;
    gap: 8px;
  }

  .marquee__card-icon {
    width: 16px;
    height: 16px;
  }

  .marquee__card-name {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .marquee__sep {
    font-size: 5px;
    margin: 0 4px;
  }
}

@media (max-width: 767px) {
  .hero__name,
  .hero__name--outlined {
    font-size: clamp(4rem, 24vw, 9rem);
    letter-spacing: -3px;
  }

  .hero__info-tagline {
    max-width: 100%;
    font-size: 1.05rem;
  }

  .hero__role-line {
    font-size: clamp(0.75rem, 2vw, 1rem);
    letter-spacing: 3px;
  }

  .hero__role-line--sub {
    letter-spacing: 2px;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about__stat {
    padding: 28px 24px;
    border-bottom: 1px solid var(--color-border);
  }

  .about__stat:last-child {
    border-bottom: none;
  }

  .about__stat-value {
    margin-bottom: 8px;
  }

  .about__manifesto {
    margin-top: 36px;
    padding: 28px 0;
  }

  .hero__cta {
    flex-direction: column;
    margin-top: 28px;
  }

  .btn {
    width: 100%;
  }

  .hero__scroll {
    bottom: 20px;
  }

  .about__manifesto {
    padding-bottom: 12px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-frame__visual {
    aspect-ratio: 4 / 3;
  }

  .projects__header {
    margin-bottom: 32px;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-step {
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .process-step:last-child {
    border-bottom: none;
  }

  .marquee__card {
    padding: 6px 12px;
    gap: 6px;
    margin: 0 2px;
  }

  .marquee__card-icon {
    width: 14px;
    height: 14px;
  }

  .marquee__card-name {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }

  .marquee__sep {
    font-size: 4px;
    margin: 0 3px;
  }
}

@media (max-width: 479px) {
  .hero__name,
  .hero__name--outlined {
    font-size: clamp(3.5rem, 24vw, 6.5rem);
    letter-spacing: -2px;
  }

  .case-hero__title-line {
    font-size: clamp(2.5rem, 14vw, 4rem);
    letter-spacing: -1px;
  }

  .case-hero__tagline {
    font-size: 1rem;
  }

  .hero__divider {
    margin-bottom: 16px;
  }

  .hero__info-tagline {
    font-size: 1rem;
  }

  .project-frame__visual {
    aspect-ratio: 4 / 3;
  }

  .project-frame__panel {
    padding: 16px 14px 14px;
  }

  .project-frame__number {
    top: 10px;
    left: 12px;
    font-size: 1.8rem;
  }

  .project-frame__tag {
    top: 10px;
    right: 10px;
    font-size: 0.55rem;
    padding: 3px 8px;
  }

  .marquee__card {
    padding: 4px 10px;
    gap: 5px;
    margin: 0 1px;
    border-radius: 6px;
  }

  .marquee__card-icon {
    width: 12px;
    height: 12px;
  }

  .marquee__card-name {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .marquee__sep {
    font-size: 3px;
    margin: 0 2px;
  }

}
