/* ============================================================
   MADHATTAN CO — DESIGN SYSTEM & LAYOUT
   Premium cinematic creative agency
   ============================================================ */


/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-deep:      #080808;
  --bg-mid:       #0e0e0e;
  --bg-card:      #141210;
  --bg-card-alt:  #111010;
  --bg-nav:       rgba(8, 8, 8, 0.85);

  /* Accent — warm gold / hazy orange gradient */
  --accent:        #D4920A;
  --accent-pale:   rgba(212, 146, 10, 0.15);
  --accent-ghost:  rgba(212, 146, 10, 0.06);
  --gradient-accent: linear-gradient(135deg, #C97820 0%, #F0C040 48%, #FF8840 100%);
  --gradient-accent-h: linear-gradient(90deg, #C97820 0%, #F0C040 48%, #FF8840 100%);

  /* Text */
  --text-primary:  #F0EAD6;
  --text-secondary: #BDB5A6;
  --text-muted:    #7A7268;
  --text-faint:    #4A453E;

  /* Borders */
  --border:        rgba(212, 146, 10, 0.16);
  --border-bright: rgba(240, 192, 64, 0.35);
  --border-dim:    rgba(255, 255, 255, 0.06);

  /* Glows */
  --glow-sm:  0 0 20px rgba(212, 146, 10, 0.30);
  --glow-md:  0 0 60px rgba(240, 192, 64, 0.25);
  --glow-lg:  0 0 120px rgba(212, 146, 10, 0.15);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Space Grotesk', system-ui, sans-serif;
  --font-logo:    'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1340px;
  --nav-height: 72px;

  /* Transitions */
  --ease-cinematic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-enter:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-sharp:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  0.22s;
  --dur-mid:   0.45s;
  --dur-slow:  0.70s;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x on html (not body) — avoids iOS Safari fixed positioning bug */
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}
*, *::before, *::after { cursor: none !important; }

/* Static grid removed — zoom-grid.js handles the animated version */

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: transparent;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.heading-sm {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label-dim {
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.body-md {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--dur-mid) var(--ease-cinematic),
              border-color var(--dur-mid) var(--ease-cinematic),
              backdrop-filter var(--dur-mid) var(--ease-cinematic);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: filter var(--dur-mid) var(--ease-cinematic);
}

.nav-logo:hover img {
  filter:
    drop-shadow(0 0 8px rgba(255, 107, 0, 0.60))
    drop-shadow(0 0 20px rgba(201, 136, 42, 0.30));
}

.nav-logo-text {
  font-family: var(--font-logo);
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: 0.09em;
  color: var(--text-primary);
  transition: color var(--dur-mid) var(--ease-cinematic);
}

.nav-logo:hover .nav-logo-text {
  color: var(--accent);
}

.footer-logo-text {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.09em;
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-4);
}

/* Hidden on desktop — only shown inside mobile overlay */
.nav-mobile-cta { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-sharp);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-mid) var(--ease-cinematic);
  box-shadow: 0 0 6px rgba(201, 136, 42, 0.5);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Hamburger — mobile only */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-sharp);
}

/* ── MOBILE NAV PANEL (body-level overlay) ─────────────────── */
/*
 * Injected as a direct <body> child by main.js so it is never
 * clipped or contained by the nav's backdrop-filter.
 */
.mobile-nav-panel {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  /* Raise nav above vignette (8990) so hamburger stays tappable */
  .nav { z-index: 9100; }
  .nav-hamburger { display: flex; }
  .nav-cta .btn { display: none; }
  .nav-inner { padding: 0 var(--space-4); }
  .nav-links { display: none; } /* desktop links hidden; panel handles mobile */

  /* Full-screen overlay panel */
  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    position: fixed;
    inset: 0;
    z-index: 9050; /* above vignette, below nav */
    background: #080808;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-nav-panel.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav-link {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .mobile-nav-link:hover {
    color: var(--text-primary);
  }

  /* Hamburger → X */
  .nav-hamburger span {
    transition: transform var(--dur-fast) var(--ease-sharp),
                opacity var(--dur-fast) ease;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ── BUTTONS — liquid glass ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.75em 1.8em;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  /* Glass base */
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow:
    inset  1px  1px 1px -0.5px rgba(255, 255, 255, 0.45),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.20),
    inset  0    0   6px  6px   rgba(255, 255, 255, 0.04);
  transition:
    background var(--dur-fast) var(--ease-sharp),
    box-shadow var(--dur-mid) var(--ease-cinematic),
    transform var(--dur-fast) var(--ease-sharp),
    filter var(--dur-fast) var(--ease-sharp);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-1px);
  box-shadow:
    inset  1px  1px 1px -0.5px rgba(255, 255, 255, 0.55),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.28),
    inset  0    0   6px  6px   rgba(255, 255, 255, 0.05),
    0 0 16px rgba(212, 146, 10, 0.12);
}

/* Primary — gradient border + gradient text to stand out */
.btn-primary {
  color: var(--text-primary);
  font-weight: 600;
  border-color: transparent;
  background-clip: padding-box;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-accent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}
.btn-primary:hover {
  box-shadow:
    inset  1px  1px 1px -0.5px rgba(255, 255, 255, 0.55),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.28),
    inset  0    0   6px  6px   rgba(255, 255, 255, 0.05),
    0 0 14px rgba(212, 146, 10, 0.18),
    0 0 32px rgba(240, 192, 64, 0.10);
}

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

.btn-glow-edges:hover {
  box-shadow:
    inset  1px  1px 1px -0.5px rgba(255, 255, 255, 0.55),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.28),
    0 0 0  1px  rgba(240, 192, 64, 0.30),
    0 0 12px    rgba(212, 146, 10, 0.20),
    0 0 28px    rgba(240, 192, 64, 0.10);
}

/* Global gradient em accents inside display headings */
.display-xl em, .display-lg em, .display-md em, .heading-sm em {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.btn-ghost {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border-color: transparent;
  color: var(--text-muted);
  padding: 0.65em 1.4em;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.btn-ghost:hover {
  background: transparent;
  box-shadow: none;
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Arrow icon in button */
.btn-arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-sharp);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── SECTION DIVIDERS ─────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border),
    var(--border-bright),
    var(--border),
    transparent
  );
}

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
.page {
  min-height: 100vh;
  position: relative;
  background: var(--bg-deep);
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 6; /* sits above bg-canvas (z-index:5) — hero's opaque bg covers light leaks */
  width: 100%;
  height: 88vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
}

/* Dark gradient scrim — fades video to deep black at bottom */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(8, 8, 8, 0.20) 0%,
      rgba(8, 8, 8, 0.10) 40%,
      rgba(8, 8, 8, 0.55) 70%,
      rgba(8, 8, 8, 0.95) 100%),
    linear-gradient(to right,
      rgba(8, 8, 8, 0.40) 0%,
      transparent 40%,
      transparent 60%,
      rgba(8, 8, 8, 0.40) 100%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  text-align: left;
  bottom: clamp(var(--space-12), 8vh, var(--space-24));
  left: clamp(var(--space-8), 6vw, var(--space-24));
  max-width: 560px;
}

@media (max-width: 600px) {
  .hero-content {
    bottom: var(--space-16);
    left: var(--space-6);
    max-width: calc(100% - var(--space-12));
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-enter) 0.3s forwards;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(201, 136, 42, 0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fade-up 1s var(--ease-enter) 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.5vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: var(--space-12);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-enter) 0.7s forwards;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-enter) 0.9s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: fade-in 1s var(--ease-enter) 1.4s forwards;
}

.hero-scroll-hint span {
  font-size: 0.625rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── TICKER / MARQUEE ─────────────────────────────────────── */
.ticker {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
  overflow: hidden;
  position: relative;
  z-index: 3;
  display: flex;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.ticker-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px rgba(201, 136, 42, 0.6);
  flex-shrink: 0;
}

/* Logo ticker variant */
.logo-ticker {
  position: relative;
}

.logo-ticker::before,
.logo-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.logo-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-card) 15%, transparent);
}

.logo-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-card) 15%, transparent);
}

.logo-ticker .ticker-track {
  gap: 76px;
  align-items: center;
  animation-duration: 54s;
}

.ticker-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.36;
  transition: opacity var(--dur-mid) var(--ease-cinematic);
}

.logo-ticker:hover .ticker-logo-item:hover {
  opacity: 0.82;
}

.ticker-logo-item svg {
  height: 100%;
  width: auto;
  display: block;
  overflow: visible;
}

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

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-16);
}

.section-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Right-side descriptor text used in section headers */
.section-header-desc {
  max-width: 320px;
  text-align: right;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .section-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Stack and left-align descriptor text on mobile */
  .section-header-desc {
    max-width: none;
    text-align: left;
  }
}


/* ── FEATURED WORKS — ACCORDION ───────────────────────────── */
.works-grid {
  display: flex;
  flex-direction: row;
  height: 560px;
  gap: 8px;
  overflow: hidden;
  margin-top: var(--space-8);
}

.work-card {
  flex: 3;
  min-width: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  display: block;
  text-decoration: none;
  transition: flex 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover {
  flex: 8;
}

.work-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.85s var(--ease-cinematic),
    filter 0.6s ease;
  filter: sepia(0.22) contrast(1.08) brightness(0.80) saturate(0.7);
}

.work-card:hover .work-card-bg {
  transform: scale(1.04);
  filter: sepia(0.04) contrast(1.06) brightness(0.96) saturate(1.15);
}

/* Hover video preview */
.work-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease-cinematic);
  z-index: 1;
}
.work-card:hover .work-card-video {
  opacity: 1;
}
.work-card:hover .work-card-bg {
  opacity: 0;
}

/* Dark gradient overlay */
.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.90) 0%,
    rgba(8, 8, 8, 0.45) 38%,
    rgba(8, 8, 8, 0.12) 100%
  );
  transition: background var(--dur-slow) var(--ease-cinematic);
}

.work-card:hover .work-card-overlay {
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.82) 0%,
    rgba(8, 8, 8, 0.22) 50%,
    rgba(8, 8, 8, 0.04) 100%
  );
}

/* Amber edge glow on expanded card */
.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition:
    border-color var(--dur-mid) var(--ease-cinematic),
    box-shadow var(--dur-mid) var(--ease-cinematic);
  pointer-events: none;
  z-index: 3;
}
.work-card:hover::after {
  border-color: rgba(201, 136, 42, 0.40);
  box-shadow: inset 0 0 50px rgba(201, 136, 42, 0.07);
}

/* "View Project" label — centered on expanded card */
.work-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-8);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease 0.25s;
}

.work-card:hover .work-card-body {
  opacity: 1;
}

.work-card-view {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid rgba(240, 234, 214, 0.35);
  padding: 0.5em 1.2em;
  background: rgba(8, 8, 8, 0.45);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.work-card:hover .work-card-view:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Caption bar below the grid */
.works-caption {
  min-height: 52px;
  margin-top: var(--space-8);
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.works-caption.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.works-caption-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
}

.works-caption-client {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* Mobile — full-width snap carousel, one card per view */
@media (max-width: 768px) {
  .works-grid {
    flex-wrap: nowrap;
    height: auto;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Slight padding-right so next card peeks in */
    padding-right: 10%;
  }

  .works-grid::-webkit-scrollbar { display: none; }

  .work-card {
    flex: 0 0 85%;
    height: auto;
    aspect-ratio: 3 / 2;
    scroll-snap-align: start;
    transition: none;
  }

  .work-card:hover { flex: 0 0 85%; }

  /* Always show "View Project" label — no hover on mobile */
  .work-card-body {
    opacity: 1;
    padding-bottom: var(--space-4);
  }

  /* Caption bar not needed — hide it */
  .works-caption { display: none; }
}

/* ── PROJECT CARD BASE (shared by projects grid + shorts grid) */
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  display: block;
  text-decoration: none;
  transition:
    opacity 0.5s var(--ease-cinematic),
    transform 0.5s var(--ease-cinematic);
}

.project-card .work-card-bg {
  transition: transform 0.8s var(--ease-cinematic), filter 0.6s var(--ease-cinematic);
}

.project-card .work-card-overlay {
  transition: background 0.6s var(--ease-cinematic);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease-cinematic), box-shadow 0.4s var(--ease-cinematic);
  pointer-events: none;
  z-index: 3;
}

.project-card:hover::after {
  border-color: rgba(201, 136, 42, 0.45);
  box-shadow: inset 0 0 40px rgba(201, 136, 42, 0.06);
}

/* Hover video overlay */
.project-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease-cinematic);
  z-index: 1;
}

.project-card:hover .project-card-video {
  opacity: 0.65;
}

.project-card:hover .work-card-bg {
  opacity: 0;
}

/* ── SHORT FORM & SOCIAL GRID ─────────────────────────────── */
/* Hidden on mobile — videos are too heavy for mobile data connections */
@media (max-width: 767px) {
  .shorts-desktop-section { display: none; }
}

.shorts-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

/* Outer wrapper: arrow + grid + arrow in a row */
.shorts-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Arrow buttons */
.shorts-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background var(--dur-mid) ease,
    border-color var(--dur-mid) ease,
    color var(--dur-mid) ease;
}

.shorts-arrow:hover {
  background: rgba(212, 146, 10, 0.15);
  border-color: rgba(212, 146, 10, 0.40);
  color: var(--accent);
}

.shorts-arrow[hidden] {
  visibility: hidden;
  pointer-events: none;
}

/* Scrollable track */
.shorts-grid {
  flex: 1 1 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.shorts-grid::-webkit-scrollbar {
  display: none;
}

.project-card--portrait {
  flex: 0 0 calc(25% - 7.5px); /* 4 per page: (100% - 3×10px gap) / 4 */
  aspect-ratio: 9 / 16;
  scroll-snap-align: start;
}

/* Portrait: video is always visible (autoplay loop, not hover-only) */
.project-card--portrait .project-card-video,
.project-card--portrait:hover .project-card-video {
  opacity: 1;
}

/* Portrait: don't hide bg on hover (no static thumbnail bg) */
.project-card--portrait:hover .work-card-bg {
  opacity: 1;
}

.project-card--portrait .work-card-overlay {
  background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.30) 45%, rgba(8,8,8,0.10) 100%);
}

.project-card--portrait:hover .work-card-overlay {
  background: linear-gradient(to top, rgba(8,8,8,0.80) 0%, rgba(8,8,8,0.15) 50%, transparent 100%);
}

.project-card--portrait .work-card-body {
  opacity: 1;
  transform: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.2rem;
  gap: 0.3rem;
  transition: opacity 0.35s var(--ease-cinematic), transform 0.5s var(--ease-cinematic);
}

.project-card--portrait:hover .work-card-body {
  transform: translateY(-4px);
}

.project-card--portrait .work-card-client {
  opacity: 0.7;
  transform: none;
}

.project-card--portrait:hover .work-card-client {
  opacity: 1;
}

/* Mobile: stack header, hide arrows, 2 cards per view */
@media (max-width: 640px) {
  .shorts-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .shorts-section-header .section-header-desc {
    text-align: left;
    max-width: none;
  }

  /* Drop the arrow buttons — use native touch scroll instead */
  .shorts-arrow {
    display: none;
  }

  .shorts-carousel {
    display: block;
  }

  .shorts-grid {
    scroll-snap-type: x mandatory;
  }

  /* 2 cards visible at a time on mobile */
  .project-card--portrait {
    flex: 0 0 calc(50% - 5px);
  }
}

/* ── CLIENT LOGOS STRIP ───────────────────────────────────── */
.logos-section {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.logos-label {
  text-align: center;
  margin-bottom: var(--space-10);
}

.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-16);
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  opacity: 0.30;
  filter: brightness(0) invert(1);
  transition:
    opacity var(--dur-mid) var(--ease-cinematic),
    filter var(--dur-mid) var(--ease-cinematic);
}

.logo-item img,
.logo-item svg {
  height: 100%;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.logo-item:hover {
  opacity: 0.80;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg);
}

/* ── ABOUT TEASER ─────────────────────────────────────────── */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  min-height: 480px;
}

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

.about-teaser-left {
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.about-teaser-left img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(0.25) contrast(1.08) brightness(0.80) saturate(0.75);
  transition: transform 0.8s var(--ease-cinematic), filter 0.5s var(--ease-cinematic);
}

.about-teaser-left:hover img {
  transform: scale(1.03);
  filter: grayscale(0.10) contrast(1.06) brightness(0.85) saturate(0.90);
}

.about-teaser-left-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-8) var(--space-8) var(--space-6);
  background: linear-gradient(to top, rgba(8,8,8,0.75) 0%, transparent 100%);
  z-index: 2;
}

.about-teaser-right {
  background: var(--bg-card-alt);
  padding: var(--space-16) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  position: relative;
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.about-quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: var(--space-4);
  left: -var(--space-4);
  font-weight: 300;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }
}

.footer-logo-img {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: 0.813rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
}

@media (max-width: 560px) {
  .footer-tagline {
    max-width: none;
    text-align: center;
  }
}

.footer-col-title {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-sharp);
}
.footer-link:hover { color: var(--text-primary); }

.footer-socials {
  display: flex;
  gap: var(--space-4);
}

.footer-social {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--dur-fast) var(--ease-sharp),
    box-shadow var(--dur-mid) var(--ease-cinematic);
  color: var(--text-muted);
}
.footer-social:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow-sm);
  color: var(--accent);
}
.footer-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-dim);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-24)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero-label {
  margin-bottom: var(--space-4);
}

.page-hero-title {
  margin-bottom: var(--space-6);
}

.page-hero-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  box-shadow: 0 0 8px rgba(201, 136, 42, 0.4);
  margin-bottom: var(--space-6);
}

/* ── GENERAL SECTIONS ─────────────────────────────────────── */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-16) 0;
}

/* ── PROJECT GRID (projects page) ────────────────────────── */
.projects-filter {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5em 1.2em;
  border: 1px solid var(--border-dim);
  transition:
    color var(--dur-fast) var(--ease-sharp),
    border-color var(--dur-fast) var(--ease-sharp),
    box-shadow var(--dur-mid) var(--ease-cinematic);
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--accent);
  border-color: var(--border-bright);
  box-shadow: 0 0 12px rgba(201, 136, 42, 0.10);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ── TESTIMONIALS ─────────────────────────────────────────── */
/* ── SINGLE WIDE TESTIMONIAL ──────────────────────────────── */
.testimonial-solo {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  box-shadow:
    0 0 8px  rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset  3px  3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset  1px  1px 1px  -0.5px  rgba(255, 255, 255, 0.60),
    inset -1px -1px 1px  -0.5px  rgba(255, 255, 255, 0.60),
    inset  0    0   6px   6px    rgba(255, 255, 255, 0.12),
    inset  0    0   2px   2px    rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 0, 0, 0.15);
  padding: var(--space-12) var(--space-16);
  position: relative;
  overflow: hidden;
}

.testimonial-solo-bg-mark {
  position: absolute;
  top: -0.1em;
  right: var(--space-12);
  font-family: var(--font-display);
  font-size: 14rem;
  font-style: italic;
  line-height: 1;
  color: rgba(201, 136, 42, 0.06);
  pointer-events: none;
  user-select: none;
}

.testimonial-solo-avatar {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(201, 136, 42, 0.35);
  box-shadow: 0 0 24px rgba(201, 136, 42, 0.18);
}

.testimonial-solo-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.testimonial-solo-quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: var(--space-6);
}

.testimonial-solo-attr {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.testimonial-solo-attr strong {
  color: var(--text-secondary);
  font-weight: 500;
}
.testimonial-solo-attr span {
  color: var(--text-muted);
}
.testimonial-solo-attr strong::after {
  content: '·';
  margin-left: var(--space-3);
  color: var(--accent);
}

@media (max-width: 640px) {
  .testimonial-solo {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-8);
    gap: var(--space-6);
  }
  .testimonial-solo-bg-mark { font-size: 8rem; right: var(--space-4); }
}

/* Legacy grid (unused but kept for reference) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Wrapper sits outside overflow:hidden so ::after glow isn't clipped */
.testimonial-card-wrap {
  position: relative;
  --start: 0;
  --active: 0;
  --spread: 40;
}
.testimonial-card-wrap::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border: 1.5px solid transparent;
  border-radius: inherit;
  background-image:
    repeating-conic-gradient(
      from 236.84deg at 50% 50%,
      #C9882A 0%,
      #FF6B00 5%,
      #F0EAD6 10%,
      #8A5A18 15%,
      #C9882A 20%
    );
  background-attachment: fixed;
  -webkit-mask:
    linear-gradient(#0000, #0000) padding-box,
    conic-gradient(
      from calc((var(--start) - var(--spread)) * 1deg),
      #0000 0deg,
      #fff,
      #0000 calc(var(--spread) * 2deg)
    ) border-box;
  mask:
    linear-gradient(#0000, #0000) padding-box,
    conic-gradient(
      from calc((var(--start) - var(--spread)) * 1deg),
      #0000 0deg,
      #fff,
      #0000 calc(var(--spread) * 2deg)
    ) border-box;
  -webkit-mask-composite: destination-out;
  mask-composite: subtract;
  opacity: var(--active);
  transition: opacity 0.5s var(--ease-cinematic);
  z-index: 10;
}

.testimonial-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  /* Prominent liquid glass surface */
  background: rgba(10, 8, 6, 0.32);
  backdrop-filter: blur(28px) saturate(1.8) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(1.8) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.40);
}
.testimonial-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.52;
  filter: sepia(0.2) contrast(1.05) brightness(1.1) saturate(0.8);
  transition: transform 0.9s var(--ease-cinematic), opacity 0.6s var(--ease-cinematic);
  display: block;
}
.testimonial-card:hover img {
  transform: scale(1.04);
  opacity: 0.65;
}
.testimonial-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.65) 0%,
    rgba(8, 8, 8, 0.10) 50%,
    transparent 100%
  );
}
.testimonial-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8);
}
.testimonial-quote-icon {
  width: 26px;
  height: 26px;
  margin-bottom: var(--space-4);
  opacity: 0.30;
  color: var(--text-primary);
  display: block;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}
.testimonial-attribution {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.testimonial-attribution span {
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 3, 2, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-cinematic);
  padding: var(--space-8);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  width: 100%;
  max-width: 1000px;
  position: relative;
}

.lightbox-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

/* Portrait (9:16) lightbox mode */
.lightbox-inner--portrait {
  max-width: 380px;
}
.lightbox-inner--portrait .lightbox-video-wrap {
  aspect-ratio: 9/16;
}

.lightbox-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
}

.lightbox-close {
  position: absolute;
  top: -var(--space-12);
  right: 0;
  top: -40px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
  transition: all var(--dur-fast) var(--ease-sharp);
}
.lightbox-close:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
  box-shadow: var(--glow-sm);
}
.lightbox-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.lightbox-meta {
  padding: var(--space-6) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* 4-col homepage cards — responsive */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .services-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-cards-grid { grid-template-columns: 1fr; }
}

/* 4-col stats / image strip — stacks to 2×2 on mobile */
.four-col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
@media (max-width: 600px) {
  .four-col-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  /* Chrome / Safari — frosted glass */
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  /* Firefox — liquid displacement (overrides above) */
  backdrop-filter: url("#liquid-glass") blur(10px) saturate(1.3);
  /* Outer depth shadows only — glass border moved to ::after */
  box-shadow:
    0 0 8px  rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 0 12px rgba(0, 0, 0, 0.15);
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
  transition:
    background var(--dur-mid) var(--ease-cinematic),
    box-shadow  var(--dur-mid) var(--ease-cinematic);
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    0 0 8px  rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 0 28px rgba(201, 136, 42, 0.14);
}

/* Glass border ring — sits above thumbnail so glow wraps the full card */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    inset  3px  3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset  1px  1px 1px  -0.5px  rgba(255, 255, 255, 0.60),
    inset -1px -1px 1px  -0.5px  rgba(255, 255, 255, 0.60),
    inset  0    0   6px   6px    rgba(255, 255, 255, 0.12),
    inset  0    0   2px   2px    rgba(255, 255, 255, 0.06),
    inset  0    0   0     1px    rgba(255, 255, 255, 0.07);
  transition: box-shadow var(--dur-mid) var(--ease-cinematic);
}
.service-card:hover::after {
  box-shadow:
    inset  3px  3px 0.5px -3.5px rgba(255, 255, 255, 0.12),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.90),
    inset  1px  1px 1px  -0.5px  rgba(255, 255, 255, 0.70),
    inset -1px -1px 1px  -0.5px  rgba(255, 255, 255, 0.70),
    inset  0    0   6px   6px    rgba(255, 255, 255, 0.16),
    inset  0    0   2px   2px    rgba(255, 255, 255, 0.08),
    inset  0    0   0     1px    rgba(255, 255, 255, 0.12);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transition: height var(--dur-slow) var(--ease-cinematic);
}
.service-card:hover::before { height: 100%; }

.service-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-faint);
  line-height: 1;
  margin-bottom: var(--space-6);
  transition: color var(--dur-mid) var(--ease-cinematic);
}
.service-card:hover .service-number { color: var(--accent-dim); }

.service-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Process timeline */
.process-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: var(--space-16);
}

.process-row::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-bright),
    var(--border-bright),
    var(--border-bright),
    transparent
  );
}

@media (max-width: 640px) {
  .process-row { grid-template-columns: 1fr; }
  .process-row::before { display: none; }
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-4);
}

.process-dot {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
  background: var(--bg-deep);
  z-index: 1;
  transition: box-shadow var(--dur-mid) var(--ease-cinematic);
}
.process-step:hover .process-dot {
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.30);
  border-color: var(--accent);
}

.process-dot-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
}

.process-step-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.process-step-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-primary);
  font-size: 0.9375rem;
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease-sharp),
    box-shadow var(--dur-mid) var(--ease-cinematic);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent-dim);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-faint);
}

.form-textarea {
  resize: none;
  min-height: 120px;
  line-height: 1.7;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding-top: var(--space-8);
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-info-label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-info-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  transition: color var(--dur-fast) var(--ease-sharp);
}
.contact-info-value:hover { color: var(--accent); }

/* ── ABOUT PAGE ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  /* Collage stacks below text on mobile */
  .about-grid > :last-child { height: 320px; }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-card {
  background: var(--bg-card);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background var(--dur-mid) var(--ease-cinematic);
}
.value-card:hover { background: var(--bg-card-alt); }

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: box-shadow var(--dur-mid) var(--ease-cinematic), border-color var(--dur-mid) var(--ease-cinematic);
}
.value-card:hover .value-icon {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.20);
}
.value-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; }

.value-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.value-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-up-stagger {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-enter),
    transform 0.7s var(--ease-enter);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── UTILITY ──────────────────────────────────────────────── */
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--text-muted); }
.text-primary  { color: var(--text-primary); }
.italic        { font-style: italic; }
/* ── TEAM SECTION ─────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* Glass card — mirrors .service-card treatment */
.team-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: url("#liquid-glass") blur(10px) saturate(1.3);
  box-shadow:
    0 0 8px  rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 0 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  transition:
    background var(--dur-mid) var(--ease-cinematic),
    box-shadow  var(--dur-mid) var(--ease-cinematic);
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    0 0 8px  rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 0 28px rgba(201, 136, 42, 0.14);
}

/* Glass border ring */
.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    inset  3px  3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset  1px  1px 1px  -0.5px  rgba(255, 255, 255, 0.60),
    inset -1px -1px 1px  -0.5px  rgba(255, 255, 255, 0.60),
    inset  0    0   6px   6px    rgba(255, 255, 255, 0.12),
    inset  0    0   2px   2px    rgba(255, 255, 255, 0.06),
    inset  0    0   0     1px    rgba(255, 255, 255, 0.07);
  transition: box-shadow var(--dur-mid) var(--ease-cinematic);
}

.team-card:hover::after {
  box-shadow:
    inset  3px  3px 0.5px -3.5px rgba(255, 255, 255, 0.12),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.90),
    inset  1px  1px 1px  -0.5px  rgba(255, 255, 255, 0.70),
    inset -1px -1px 1px  -0.5px  rgba(255, 255, 255, 0.70),
    inset  0    0   6px   6px    rgba(255, 255, 255, 0.16),
    inset  0    0   2px   2px    rgba(255, 255, 255, 0.08),
    inset  0    0   0     1px    rgba(255, 255, 255, 0.12);
}

/* Amber left-edge accent on hover */
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transition: height var(--dur-slow) var(--ease-cinematic);
  z-index: 11;
}

.team-card:hover::before { height: 100%; }

.team-card-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(0.12) contrast(1.06) brightness(0.90) saturate(0.85);
  transition: transform 0.7s var(--ease-cinematic), filter 0.5s var(--ease-cinematic);
}

.team-card:hover .team-card-photo {
  transform: scale(1.03);
  filter: grayscale(0) contrast(1.04) brightness(0.94) saturate(1.0);
}

.team-card-body {
  padding: var(--space-6) var(--space-8) var(--space-8);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.team-title {
  font-family: var(--font-body);
  font-size: 0.656rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.team-bio {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── UTILITY CLASSES ──────────────────────────────────────── */
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.gap-4 { gap: var(--space-4); }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
