@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ========================================================================
   1.  DESIGN TOKENS
   ======================================================================== */

:root {
  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  3rem;
  --text-4xl:  4.5rem;
  --text-5xl:  7rem;

  /* Backgrounds */
  --bg-primary:    #0A0A0A;
  --bg-secondary:  #111111;
  --bg-tertiary:   #1A1A1A;
  --bg-elevated:   #222220;

  /* Accents */
  --accent-primary: #FF6B35;
  --accent-deep:    #E8531A;
  --accent-glow:    rgba(255, 107, 53, 0.15);
  --accent-subtle:  rgba(255, 107, 53, 0.08);

  /* Text */
  --text-primary:   #F0EDE8;
  --text-secondary: #8A8580;
  --text-muted:     #A8A39E;

  /* Borders */
  --border-default: #2A2825;
  --border-subtle:  #1E1C1A;
  --border-accent:  rgba(255, 107, 53, 0.3);

  /* Spacing scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-pill: 100px;

  /* Timing */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;
  --duration-page: 1200ms;

  /* Layout */
  --container-max: 1440px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --section-pad-y: clamp(4rem, 12vw, 10rem);

  /* Static grain pattern for local surfaces (global overlay stays animated) */
  --grain-static-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14) 0 0.7px, transparent 1px),
    radial-gradient(circle at 72% 38%, rgba(0, 0, 0, 0.22) 0 0.9px, transparent 1.2px),
    radial-gradient(circle at 46% 78%, rgba(255, 255, 255, 0.1) 0 0.6px, transparent 0.95px);
  --grain-static-size: 13px 13px, 17px 17px, 19px 19px;
  --grain-static-position: 0 0, 5px 7px, 2px 3px;
}

/* ========================================================================
   2.  RESET & BASE
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.loading { overflow: hidden; }

img, svg, video, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe { border: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

ul, ol { list-style: none; }

input, select, textarea { font: inherit; }

::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.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;
}

/* ========================================================================
   3.  TYPOGRAPHY
   ======================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(3rem, 11vw, var(--text-5xl)); }
h2 { font-size: clamp(2rem, 6vw, var(--text-3xl)); }
h3 { font-size: clamp(1.25rem, 3vw, var(--text-2xl)); }

p { max-width: 65ch; }

.section-head {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: 28px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 20px; height: 1px;
  background: var(--accent-primary);
  transform: translateY(-50%);
}

.section-headline {
  font-size: clamp(2rem, 6.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 20ch;
  color: var(--text-primary);
}

.section-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 56ch;
  margin-top: var(--space-md);
}

/* ========================================================================
   4.  FILM GRAIN OVERLAY (GLOBAL)
   ======================================================================== */

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.grain-overlay::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: transparent;
  filter: url(#grain);
  opacity: 1;
  pointer-events: none;
}

/* Per-section grain dial (JS can boost/reduce via class) */
.grain-overlay.is-subtle { opacity: 0.035; }
.grain-overlay.is-strong { opacity: 0.06; }

/* ========================================================================
   5.  GRUNGE / TEXTURE LAYER
   ======================================================================== */

.section-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 107, 53, 0.12), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(255, 255, 255, 0.04), transparent 45%);
  z-index: 1;
}
.section-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-static-image);
  background-size: var(--grain-static-size);
  background-position: var(--grain-static-position);
  background-repeat: repeat;
  opacity: 0.45;
}

/* ========================================================================
   6.  LIGHT LEAKS
   ======================================================================== */

.light-leak {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: 0.06;
  z-index: 1;
  will-change: opacity, transform;
}

.light-leak--tl { top: -12%; left: -8%;  width: 560px; height: 560px; background: radial-gradient(circle, rgba(255, 139, 76, 0.55), transparent 60%); }
.light-leak--tr { top: -10%; right: -10%; width: 480px; height: 480px; background: radial-gradient(circle, rgba(232, 83, 26, 0.45), transparent 60%); }
.light-leak--bl { bottom: -14%; left: -12%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(255, 107, 53, 0.38), transparent 65%); }
.light-leak--br { bottom: -10%; right: -8%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255, 150, 90, 0.35), transparent 60%); }
.light-leak--center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 900px; height: 520px; background: radial-gradient(ellipse, rgba(255, 107, 53, 0.22), transparent 60%); opacity: 0.04; }

/* ========================================================================
   7.  NAVIGATION
   ======================================================================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--container-pad);
  background: transparent;
  transition: background-color 320ms var(--ease-smooth),
              backdrop-filter 320ms var(--ease-smooth),
              border-color 320ms var(--ease-smooth),
              padding 320ms var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border-subtle);
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-wordmark {
  display: flex;
  align-items: center;
  margin-left: 0;
}

/* Wordmark — typographic stack: Syne 800 "11" (matching the card watermarks)
   above a smaller "ahmdelvn" handle. No stretching — proportions only. */
.wordmark-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  color: var(--text-primary);
  gap: 2px;
}

.wordmark-eleven {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent-primary);
  transition: text-shadow var(--duration-base) var(--ease-smooth),
              color var(--duration-base) var(--ease-smooth);
}

.wordmark-handle {
  font-family: var(--font-display);
  font-weight: 800;
  /* "AHMD" capitals — sized so its width matches the "11" stacked above it */
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color var(--duration-base) var(--ease-smooth);
}

.nav-wordmark:hover .wordmark-eleven {
  text-shadow: 0 0 12px rgba(255, 107, 53, 0.55);
}
.nav-wordmark:hover .wordmark-handle { color: var(--accent-primary); }
.footer-wordmark:hover .wordmark-eleven {
  text-shadow: 0 0 12px rgba(255, 107, 53, 0.55);
}
.footer-wordmark:hover .wordmark-handle { color: var(--accent-primary); }

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration-base) var(--ease-smooth);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 10, 0.6);
  transition: border-color var(--duration-fast) var(--ease-smooth),
              background-color var(--duration-fast) var(--ease-smooth);
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle:hover { border-color: var(--accent-primary); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--duration-base) var(--ease-smooth);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ==================================================================
   Mobile + tablet menu (<1024px)
   ------------------------------------------------------------------
   The menu is always rendered (so it can animate) but hidden by
   default — opacity 0, slight upward translation, pointer-events off.
   .is-open transitions it in: fade + drop. Each link also slides
   down with a small staggered delay for the editorial feel.
   ================================================================== */
@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 10px;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 107, 53, 0.06) inset;
    z-index: 1000;
    font-size: var(--text-base);
    /* Hidden state — animatable */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 320ms var(--ease-smooth),
                transform 380ms var(--ease-spring);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    /* Per-link entrance — start hidden, slide+fade in when menu opens */
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 280ms var(--ease-smooth),
                transform 320ms var(--ease-spring);
  }
  .nav-links.is-open li { opacity: 1; transform: translateY(0); }
  /* Stagger — each link 40ms after the previous */
  .nav-links.is-open li:nth-child(1) { transition-delay: 60ms; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 100ms; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 140ms; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 180ms; }
  .nav-links.is-open li:nth-child(5) { transition-delay: 220ms; }
  .nav-links.is-open li:nth-child(6) { transition-delay: 260ms; }
  .nav-links.is-open li:nth-child(7) { transition-delay: 300ms; }
  .nav-links.is-open li:nth-child(8) { transition-delay: 340ms; }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    border-left: 1px solid transparent;
    transition: background-color 220ms var(--ease-smooth),
                color 220ms var(--ease-smooth),
                border-color 220ms var(--ease-smooth),
                padding-left 220ms var(--ease-spring);
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover {
    background: rgba(255, 107, 53, 0.06);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    padding-left: 22px;
  }
}

/* Desktop (≥1024px) — restore inline nav, hide hamburger. */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* ========================================================================
   8.  FIXED "BOOK A MEETING" PILL
   ======================================================================== */

.book-btn {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.22),
              0 0 0 1px rgba(255, 107, 53, 0.5) inset;
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-smooth),
              background-color var(--duration-fast) var(--ease-smooth);
}

.book-btn:hover {
  transform: scale(1.04);
  background: var(--accent-deep);
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4),
              0 0 0 1px rgba(255, 107, 53, 0.8) inset;
}

.book-btn:active { transform: scale(0.98); }

.book-btn-arrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1;
  transition: transform var(--duration-base) var(--ease-smooth);
}
.book-btn:hover .book-btn-arrow { transform: translate(2px, -2px); }

@media (max-width: 767px) {
  .book-btn { padding: 10px 16px; font-size: var(--text-xs); }
}

/* ========================================================================
   9.  CUSTOM CURSOR
   ======================================================================== */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent-primary);
  z-index: 10001;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.cursor-ring {
  width: 48px; height: 48px;
  border: 1px solid var(--accent-primary);
  mix-blend-mode: difference;
  z-index: 10000;
  transition: width var(--duration-base) var(--ease-spring),
              height var(--duration-base) var(--ease-spring),
              border-color var(--duration-fast) var(--ease-smooth);
}

.cursor-ring.is-hover { width: 72px; height: 72px; }
.cursor-ring.is-media { width: 64px; height: 3px; border-radius: 2px; }
.cursor-dot.is-hidden { opacity: 0; }

@media (hover: none), (max-width: 767px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ========================================================================
   10.  NLE TIMELINE LOADING SCREEN
   ======================================================================== */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.loader-grain::before {
  content: '';
  position: absolute;
  inset: -5%;
  background-image: var(--grain-static-image);
  background-size: var(--grain-static-size);
  background-position: var(--grain-static-position);
  background-repeat: repeat;
}

.loader-lightleak {
  position: absolute;
  top: -18%; left: -12%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.55), transparent 60%);
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: 0.03;
  pointer-events: none;
  border-radius: 50%;
}

.loader-timeline {
  position: relative;
  width: min(700px, calc(100vw - 48px));
  margin-top: -6vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.loader-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 4px;
  /* Clips are absolutely-positioned ABOVE the track via JS-set `top` values */
}

.loader-clip {
  position: absolute;
  height: 24px;
  opacity: 0;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
  transition: opacity 120ms ease-in;
  /* `top` and `left` are assigned by initLoader() based on data-layer + reveal-at */
}
.loader-clip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-static-image);
  background-size: var(--grain-static-size);
  background-position: var(--grain-static-position);
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
}

/* Clip widths — small (24–40) / medium (44–60) / long (64–80) */
.loader-clip--1 { width: 36px; background: #1A1714; }
.loader-clip--2 { width: 64px; background: #221E1B; }
.loader-clip--3 { width: 28px; background: #2A2420; }
.loader-clip--4 { width: 80px; background: #1A1714; }
.loader-clip--5 { width: 56px; background: #221E1B; }
.loader-clip--6 { width: 32px; background: #2A2420; }
.loader-clip--7 { width: 52px; background: #1A1714; }

.loader-playhead {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}

.loader-playhead-head {
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent-primary);
  margin-bottom: 2px;
  filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.6));
}

.loader-playhead-line {
  width: 1px;
  height: 56px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
}

.loader-counter {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.loader-counter-number { font-size: 48px; }
.loader-counter-symbol {
  font-size: 36px;
  color: var(--accent-primary);
  transform: translateY(-4px);
}

.loader-label {
  margin-top: 12px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Mobile — 375px */
@media (max-width: 480px) {
  .loader-timeline { width: calc(100vw - 48px); gap: 28px; }
  .loader-clip { height: 20px; }
  .loader-clip--1 { width: 28px; }
  .loader-clip--2 { width: 48px; }
  .loader-clip--3 { width: 24px; }
  .loader-clip--4 { width: 60px; }
  .loader-clip--5 { width: 44px; }
  .loader-clip--6 { width: 28px; }
  .loader-clip--7 { width: 40px; }
  .loader-playhead-line { height: 40px; }
  .loader-counter-number { font-size: 36px; }
  .loader-counter-symbol { font-size: 20px; }
}

/* ========================================================================
   11.  REVEAL / VISIBILITY STATES
   ======================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              transform var(--duration-slow) var(--ease-smooth);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-clip] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 900ms var(--ease-smooth);
}
[data-reveal-clip].is-visible { clip-path: inset(0 0 0 0); }

[data-reveal-left] {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              transform var(--duration-slow) var(--ease-smooth);
}
[data-reveal-left].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================================================
   12.  CARD BASE
   ======================================================================== */

.card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 107, 53, 0.2),
              0 0 32px -8px rgba(255, 107, 53, 0.22);
}

.card-watermark {
  position: absolute;
  right: 16px; bottom: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--text-muted);
  opacity: 0.22;
  letter-spacing: -0.04em;
  pointer-events: none;
}

/* ========================================================================
   13.  SECTION 1 — HERO
   ======================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  /* Push CTAs toward the lower third so the reel reads cleanly above them */
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  /* Bottom padding holds the CTAs well above the scroll indicator (24px + ~70px tall = ~94px reserved) */
  padding: clamp(5rem, 12vw, 8rem) var(--container-pad) clamp(11rem, 20vw, 16rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary);
  --hero-reel-height: calc(100vw * 9 / 16);
  --hero-reel-lift: clamp(56px, 10svh, 116px);
  --hero-reel-top: max(0px, calc((100svh - var(--hero-reel-height)) / 2 - var(--hero-reel-lift)));
  --hero-reel-bottom: max(0px, calc(100svh - var(--hero-reel-top) - var(--hero-reel-height)));
}

/* ===== .player-shell--background =====
   Hero variant of the custom player shell. The shell normally enforces
   16:9 + interactive UI; this variant fills its parent (the .hero-bg
   container) and locks every interactive control out of view so it reads
   purely as a background reel. The built-in title/channel-name masks
   continue to hide YouTube's chrome.

   Iframe behavior:
   - Desktop (≥1024px): "cover" — fills the viewport so the reel is full-bleed.
   - Tablet / phone (<1024px): "contain" — the full 16:9 frame is always
     visible. The empty top/bottom letterbox area is dressed up by the
     .hero-bg-frame element below.                                       */
/* Bump specificity so this beats the base `.player-shell` rule defined
   farther down (which applies aspect-ratio: 16/9 + width:100% and would
   otherwise force the hero shell into a centered 16:9 box). */
.player-shell.player-shell--background {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  background: var(--bg-primary);
  cursor: default;
  pointer-events: none;
}
.player-shell--background .player-iframe-slot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.player-shell--background .player-iframe-slot iframe {
  position: absolute;
  top: var(--hero-reel-top); left: 50%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 100%;
  transform: translate3d(-50%, 0, 0);
  pointer-events: none;
  border: 0;
}
/* Desktop: bring back "cover" behavior for full-bleed cinematic feel.
   Drop the max-* caps so the iframe can grow past the viewport in the
   short dimension; keep min-* to guarantee 100% coverage. */
@media (min-width: 1024px) {
  .player-shell--background .player-iframe-slot iframe {
    top: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 100vw;
    min-height: 100vh;
    max-width: none;
    max-height: none;
    transform: translate3d(-50%, -50%, 0) scale(1.02);
  }
  /* Tall viewports — switch to height-driven sizing so the reel still
     covers the full screen without leaving black bars on the sides.    */
  @media (min-aspect-ratio: 16 / 9) {
    .player-shell--background .player-iframe-slot iframe {
      width: 100vw;
      height: 56.25vw;
    }
  }
  @media (max-aspect-ratio: 16 / 9) {
    .player-shell--background .player-iframe-slot iframe {
      width: 177.78vh;
      height: 100vh;
    }
  }
}
/* Hide every interactive affordance — this is a background, not a player. */
.player-shell--background .player-controls,
.player-shell--background .player-play-btn,
.player-shell--background .player-grain {
  display: none !important;
}
/* The thumb stays visible until playback engages, then crossfades out. */
.player-shell--background .player-thumb img {
  filter: contrast(1.05) brightness(0.92) saturate(1.05);
}
/* Mask for the brief play-button flash YouTube renders before autoplay engages.
   Sits over the iframe for ~1.6s then fades out, revealing the running reel. */
.hero-bg-cover {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  opacity: 1;
  pointer-events: none;
  animation: hero-bg-cover-fade 1.6s ease-out 0.4s forwards;
}
@keyframes hero-bg-cover-fade {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ==================================================================
   Hero letterbox frame — only visible <1024px (when iframe contains
   instead of covers). Top + bottom dark bars carry filmstrip
   perforations and a subtle accent gradient so the empty space reads
   as an intentional cinema frame, not a void.
   ================================================================== */
.hero-bg-frame {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  display: none;
  background: linear-gradient(180deg,
              rgba(10, 10, 10, 0.96) 0%,
              rgba(10, 10, 10, 0.88) 70%,
              rgba(10, 10, 10, 0.6) 100%);
  z-index: 1;
}
.hero-bg-frame--top {
  top: 0;
  height: var(--hero-reel-top);
  background: linear-gradient(180deg,
              rgba(10, 10, 10, 0.98) 0%,
              rgba(10, 10, 10, 0.92) 70%,
              rgba(10, 10, 10, 0.6) 100%);
}
.hero-bg-frame--bottom {
  bottom: 0;
  height: var(--hero-reel-bottom);
  background: linear-gradient(0deg,
              rgba(10, 10, 10, 0.98) 0%,
              rgba(10, 10, 10, 0.92) 70%,
              rgba(10, 10, 10, 0.6) 100%);
}

/* Filmstrip perforations — small rounded rectangles repeating across
   the bar. Reads as 35mm film, ties to the editor / cinema theme. */
.hero-bg-perfs {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-image: linear-gradient(90deg,
                    transparent 0,
                    transparent 14px,
                    rgba(255, 255, 255, 0.08) 14px,
                    rgba(255, 255, 255, 0.08) 30px,
                    transparent 30px,
                    transparent 44px);
  background-size: 44px 14px;
  background-repeat: repeat-x;
  opacity: 0.55;
}
.hero-bg-frame--top .hero-bg-perfs    { bottom: 14px; }
.hero-bg-frame--bottom .hero-bg-perfs { top: 14px; }

/* Faint "11" brand mark anchored in the bottom letterbox bar */
.hero-bg-frame-mark {
  position: absolute;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(12px, 3vw, 24px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 4vw, 32px);
  letter-spacing: -0.04em;
  color: var(--accent-primary);
  opacity: 0.45;
  line-height: 1;
}

/* Only show the dressed letterbox below the desktop breakpoint. */
@media (max-width: 1023px) {
  .hero-bg-frame { display: block; }
}

/* The hero background uses the .player-shell--background variant
   (see "Custom player" section). The shell's built-in title + channel
   masks already hide YouTube's chrome — no extra gradients needed. */

@media (max-width: 767px) {
  .hero-bg-cover {
    animation-duration: 2.4s;
    animation-delay: 0.6s;
  }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* Lighter overlay — the reel is the centerpiece. Stronger gradient at the
     bottom keeps CTAs legible without dimming the rest of the frame. */
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.18) 80%),
              linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(10,10,10,0.18) 55%, rgba(10,10,10,0.62) 100%);
}

.hero-bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-bg-grain::before {
  content: '';
  position: absolute;
  inset: -5%;
  background-image: var(--grain-static-image);
  background-size: var(--grain-static-size);
  background-position: var(--grain-static-position);
  background-repeat: repeat;
}

.hero-lightleak {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.08;
}
.hero-lightleak--bottom-left {
  bottom: -20%; left: -15%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.6), transparent 60%);
}
.hero-lightleak--top-right {
  top: -18%; right: -12%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255, 150, 90, 0.35), transparent 60%);
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.7rem, 1.1vw, 0.85rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  white-space: nowrap;
}
.hero-headline .char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-eleven {
  display: flex;
  justify-content: center;
  margin-top: clamp(0.25rem, 1vw, 0.75rem);
}
.hero-eleven svg {
  width: clamp(32px, 6vw, 54px);
  height: clamp(80px, 15vw, 132px);
  filter: drop-shadow(0 0 24px rgba(255, 107, 53, 0.5));
}
.hero-eleven-bar { fill: var(--accent-primary); }

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  max-width: 42ch;
  margin-top: var(--space-md);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  justify-content: center;
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  opacity: 0.6;
}
.hero-scroll-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scroll-pulse 2s var(--ease-smooth) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50%      { transform: scaleY(0.4); opacity: 0.3; }
}

/* ========================================================================
   14.  CTA BUTTONS
   ======================================================================== */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-spring),
              background-color var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              color var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth);
}

.cta-primary {
  background: rgba(10, 10, 10, 0.55);
  color: var(--text-primary);
  border-color: rgba(240, 237, 232, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.cta-primary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(255, 107, 53, 0.5);
}

.cta-secondary {
  padding: 14px 18px;
  background: rgba(10, 10, 10, 0.4);
  color: var(--text-primary);
  border: 1px solid rgba(240, 237, 232, 0.18);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.cta-secondary:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  text-shadow: none;
}

.cta-large {
  padding: 18px 36px;
  font-size: var(--text-base);
}

.cta-arrow {
  display: inline-block;
  font-family: var(--font-body);
  line-height: 1;
  transition: transform var(--duration-base) var(--ease-smooth);
}
.cta:hover .cta-arrow { transform: translateX(4px); }
.cta-primary[href*="#"]:hover .cta-arrow { transform: translateY(4px); }

/* ========================================================================
   15.  BENTO GRID BASE + VARIATIONS
   ======================================================================== */

.bento-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---- Section 2: Stats (3 cards — first dominant) ---- */
.stats { padding: var(--section-pad-y) 0; position: relative; }
.stats-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-card--hero { grid-column: span 2; grid-row: span 2; }
  .stat-card:not(.stat-card--hero) { grid-column: span 2; }
}
@media (min-width: 1280px) {
  .stats-grid { grid-template-columns: 1.8fr 1fr 1fr; }
  .stat-card--hero { grid-column: 1; grid-row: span 2; }
  .stat-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .stat-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .stat-card:nth-child(2),
  .stat-card:nth-child(3) { grid-row: auto; }
}

.stat-card {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex;
  flex-direction: column;
  /* Center content vertically so large stat numbers don't bleed against the bottom edge */
  justify-content: center;
  gap: var(--space-sm);
  min-height: 220px;
  overflow: hidden;
}
.stat-card--hero { min-height: 320px; }

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  /* Prevent the giant number from forcing the card to overflow */
  max-width: 100%;
}
.stat-number {
  font-size: clamp(3rem, 8vw, 6rem);
}
/* Hero number tuned so it scales gracefully through tablet widths (≤1280px)
   and only reaches its max size on true desktop. */
.stat-card--hero .stat-number { font-size: clamp(3.75rem, 9vw, 8rem); }
.stat-suffix {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--accent-primary);
}

.stat-label {
  /* gap on .stat-card now handles spacing; small margin keeps a hint of breathing room */
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---- Section 4: Trust (5 uniform cards) ---------------------------------
   Phase R3 / Fix 5: Card 01 used to span 4×2 as a "hero" tile but its
   content density is the same as the others, leaving large empty space.
   Switched to a uniform grid where every card occupies one cell.
   Mobile: 1 col. Tablet: 2 cols. Desktop: 5 cols (one row).
--------------------------------------------------------------------------- */
.trust { padding: var(--section-pad-y) 0; position: relative; }
.trust-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) and (max-width: 1099px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }
  /* Orphan 5th card on the bottom row spans both columns and centers itself
     so the row doesn't read as left-aligned. Only applies in the 2-column
     layout — the 5-column desktop layout below puts every card in one row. */
  .trust-grid > .trust-card:nth-child(5):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--space-sm) / 2);
    max-width: 100%;
  }
}
@media (min-width: 1100px) {
  .trust-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
  }
  /* Reset the orphan-spanning rule from the tablet breakpoint. */
  .trust-grid > .trust-card:nth-child(5):last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

.trust-card {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 240px;
  height: 100%;
}
.trust-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--accent-primary);
  letter-spacing: 0.1em;
}
.trust-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.2;
  max-width: 22ch;
}
.trust-body {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.55;
  margin-top: auto;
  max-width: 40ch;
}

/* ---- Section 3: Clients marquee ---- */
.clients { padding: var(--section-pad-y) 0; position: relative; overflow: hidden; }
.clients .section-head { margin-bottom: var(--space-md); }
.client-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--space-md) 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}
.clients:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  transition: border-color var(--duration-fast) var(--ease-smooth),
              transform var(--duration-base) var(--ease-spring),
              background-color var(--duration-fast) var(--ease-smooth);
  filter: saturate(0.3);
  white-space: nowrap;
}
.client-chip:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  background: var(--bg-tertiary);
  filter: saturate(1);
}
.client-chip .attr-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
}

.clients-blurb {
  max-width: 720px;
  margin: var(--space-lg) auto 0;
  padding: 0 var(--container-pad);
  text-align: center;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: var(--text-lg);
  line-height: 1.5;
}

/* ========================================================================
   16.  CLIENT ATTRIBUTION PANEL
   ======================================================================== */

.client-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  transition: background-color var(--duration-fast) var(--ease-smooth);
}

.client-attribution:hover {
  background: var(--bg-tertiary);
}
.client-attribution:hover .attr-name { color: var(--accent-primary); }
.client-attribution:hover .attr-avatar {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.attr-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  transition: border-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
}

.attr-avatar--personal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  letter-spacing: -0.02em;
}

.attr-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.attr-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-smooth);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attr-handle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attr-subs {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: auto;
  flex-shrink: 0;
  text-align: right;
}
.attr-subs:empty { display: none; }

/* Loading skeleton shimmer */
.attr-name.is-loading,
.attr-handle.is-loading,
.attr-subs.is-loading {
  color: transparent;
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-tertiary) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.attr-avatar.is-loading {
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-tertiary) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================================================
   17.  SECTION 5 — HERO REEL (Selected Work)
   ======================================================================== */

.hero-reel {
  padding: var(--section-pad-y) 0;
  position: relative;
  overflow: hidden;
}
.hero-reel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 107, 53, 0.12), transparent);
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.reel-stage {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.reel-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.8);
  transition: border-color var(--duration-slow) var(--ease-smooth),
              box-shadow var(--duration-slow) var(--ease-smooth);
}
.reel-player.is-visible {
  border-color: var(--border-accent);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.8),
              0 0 80px -20px rgba(255, 107, 53, 0.3);
}

.reel-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.reel-player--ambient { border-color: var(--border-accent); }
.reel-player--ambient .player-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ========================================================================
   18.  VIDEO PLAYER SHELL (portfolio cards + reel)
   ======================================================================== */

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tertiary);
  cursor: pointer;
  isolation: isolate;
}

.player-shell[data-format="short"] {
  aspect-ratio: 9 / 16;
  max-width: 100%;
}

.player-thumb {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity var(--duration-base) var(--ease-smooth),
              filter var(--duration-slow) var(--ease-smooth);
}
.player-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.88) saturate(1.05);
  transform: scale(1.02);
  transition: transform var(--duration-slow) var(--ease-smooth);
}
.player-shell:hover .player-thumb img { transform: scale(1.06); }
.player-shell.is-playing .player-thumb { opacity: 0; pointer-events: none; }

.player-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 107, 53, 0.3);
  z-index: 3;
  transition: transform var(--duration-base) var(--ease-spring),
              background-color var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth);
}
.player-play-btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 18px solid var(--text-primary);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  transition: border-left-color var(--duration-base) var(--ease-smooth);
}
.player-shell:hover .player-play-btn,
.player-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.player-shell:hover .player-play-btn::before,
.player-play-btn:hover::before {
  border-left-color: var(--bg-primary);
}

.player-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 4;
}
.player-grain::before {
  content: '';
  position: absolute;
  inset: -5%;
  background-image: var(--grain-static-image);
  background-size: var(--grain-static-size);
  background-position: var(--grain-static-position);
  background-repeat: repeat;
}

.player-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
}
.player-shell:hover .player-controls,
.reel-player:hover .player-controls { opacity: 1; }

.player-playpause {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  position: relative;
  flex-shrink: 0;
}
.player-progress {
  flex: 1 1 auto;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  overflow: hidden;
}
.player-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-primary);
  transition: width 100ms linear;
}
.player-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ========================================================================
   19.  SHORT-FORM PORTFOLIO (Section 6) — uniform 9:16 vertical cards
   ------------------------------------------------------------------------
   Phase R3 / Fix 1: every card in the short-form grid is 9:16 regardless
   of source aspect ratio. 16:9 source content is overscaled (178% wide,
   pulled left -39%) so it fills the 9:16 container without black bars —
   the standard "vertical iframe" trick. Visual language matches the
   short-form universe (TikTok / Reels / Shorts).
   ======================================================================== */

.portfolio { padding: var(--section-pad-y) 0; position: relative; }

.portfolio-grid--shortform {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
/* Phone: 2-up rows over a 4-column grid so the orphan 5th card centers. */
.portfolio-grid--shortform > .video-card:nth-child(1) { grid-column: 1 / span 2; }
.portfolio-grid--shortform > .video-card:nth-child(2) { grid-column: 3 / span 2; }
.portfolio-grid--shortform > .video-card:nth-child(3) { grid-column: 1 / span 2; }
.portfolio-grid--shortform > .video-card:nth-child(4) { grid-column: 3 / span 2; }
.portfolio-grid--shortform > .video-card:nth-child(5) { grid-column: 2 / span 2; }
/* Tablet (≥768px, <1280px): 3-up on row 1, 2-up centered on row 2.
   Implemented over a 6-column grid so the bottom pair can sit in cols 2–3
   and 4–5, perfectly centered. */
@media (min-width: 768px) {
  .portfolio-grid--shortform {
    grid-template-columns: repeat(6, 1fr);
  }
  .portfolio-grid--shortform > .video-card:nth-child(1) { grid-column: 1 / span 2; }
  .portfolio-grid--shortform > .video-card:nth-child(2) { grid-column: 3 / span 2; }
  .portfolio-grid--shortform > .video-card:nth-child(3) { grid-column: 5 / span 2; }
  .portfolio-grid--shortform > .video-card:nth-child(4) { grid-column: 2 / span 2; }
  .portfolio-grid--shortform > .video-card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 1280px) {
  .portfolio-grid--shortform {
    grid-template-columns: repeat(5, 1fr);
  }
  /* Reset tablet column placements on desktop */
  .portfolio-grid--shortform > .video-card:nth-child(1),
  .portfolio-grid--shortform > .video-card:nth-child(2),
  .portfolio-grid--shortform > .video-card:nth-child(3),
  .portfolio-grid--shortform > .video-card:nth-child(4),
  .portfolio-grid--shortform > .video-card:nth-child(5) {
    grid-column: auto;
  }
}

.video-card { overflow: hidden; }
.video-card .player-shell { border-radius: 0; }

/* All cards in the short-form grid render as 9:16, even standard 16:9 sources. */
.portfolio-grid--shortform .video-card,
.portfolio-grid--shortform .video-card--short { max-width: 100%; }
.portfolio-grid--shortform .player-shell {
  aspect-ratio: 9 / 16;
}

/* 16:9 source inside a 9:16 short-form card — overscale so it fills.
   Apply to BOTH the thumbnail and the YT iframe injected by player.js.
   178% width with -39% left margin keeps the 16:9 image centered while
   its height matches the 9:16 container's height. */
.portfolio-grid--shortform .player-shell[data-format="standard"] .player-thumb img,
.portfolio-grid--shortform .player-shell[data-format="standard"] iframe,
.portfolio-grid--shortform .player-shell[data-format="standard"] .player-iframe {
  width: 178%;
  height: 100%;
  margin-left: -39%;
  max-width: none;
}

/* Native 9:16 content (Shorts) fills its container 1:1 — no overscale. */
.portfolio-grid--shortform .player-shell[data-format="short"] .player-thumb img,
.portfolio-grid--shortform .player-shell[data-format="short"] iframe,
.portfolio-grid--shortform .player-shell[data-format="short"] .player-iframe {
  width: 100%;
  height: 100%;
  margin-left: 0;
}

/* Standalone Shorts variant (used outside the shortform grid, e.g. videography) */
.video-card--short { max-width: 100%; }
.video-card--short .player-shell { aspect-ratio: 9 / 16; }

/* ========================================================================
   20.  LONG-FORM PORTFOLIO (Section 7) — clean 2-col 16:9
   ------------------------------------------------------------------------
   Phase R3 / Fix 2: every long-form card is a horizontal 16:9 tile.
   Two columns on desktop, one column on mobile. Aspect-ratio drives
   dimensions — no fixed heights, no black bars, no negative space.
   ======================================================================== */

.portfolio-grid--longform {
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
@media (min-width: 768px) {
  .portfolio-grid--longform {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-card--wide .player-shell { aspect-ratio: 16 / 9; }
.portfolio-grid--longform .video-card .player-shell { aspect-ratio: 16 / 9; }
.portfolio-grid--longform .video-card { width: 100%; }

/* ========================================================================
   21.  PHOTOGRAPHY (Section 8) — explicit-span bento grid
   ------------------------------------------------------------------------
   Phase R3 / Fix 3: Replaces the old auto-flow masonry that overlapped
   and left gaps. Cards have explicit grid-column / grid-row spans based
   on each image's actual orientation (24 landscape, 1 portrait of 25).
   Hero image gets a 2x2 anchor; the rest use a deterministic rhythm of
   2x1 / 4x1 / 2x2 spans so the wall of landscapes still breathes.
   `grid-auto-flow: dense` packs around any holes left by the portrait.
   ======================================================================== */

/* ---- Index.html preview (5 cards) ---- */
.portfolio-grid--photography {
  grid-template-columns: 1fr;
  gap: clamp(8px, 1.2vw, 16px);
}
/* Mobile single-column: each card uses its natural-ish landscape ratio. */
.portfolio-grid--photography .photo-card {
  aspect-ratio: 3 / 2;
  height: auto;            /* override the global .photo-card { height: 100% } */
}

/* Tablet — 2 columns, orphan 5th spans full width. */
@media (min-width: 640px) {
  .portfolio-grid--photography {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
  }
  .portfolio-grid--photography > .photo-card:nth-child(5):last-child {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 1.1;       /* wider banner so it doesn't dominate */
  }
}

/* Desktop — bento layout.
   Three columns. Three rows of equal height — derived from column width
   so every cell is a clean 3:2 (column-width : row-height = 3 : 2).

     Row 1 │ HERO (cols 1-2, rows 1-2) │ #2 (col 3, row 1)
     Row 2 │                           │ #3 (col 3, row 2)
     Row 3 │ #4 (cols 1-2, row 3)      │ #5 (col 3, row 3)

   Hero ends up 2-col wide × 2-row tall  →  natural 3:2 (2*3w : 2*2w/3 *2 ... )
   Banner #4 ends up 2-col wide × 1-row tall →  3:1 visually.
   We pin row height to (col-width × 2/3) via grid-template-rows derived
   from the container's own width, using a CSS custom property the grid
   computes from itself. The `aspect-ratio` on the container locks total
   height = (3 * row-height + 2 * gap), eliminating any stretching gaps. */
@media (min-width: 1024px) {
  .portfolio-grid--photography {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    /* Container width = 3 cols + 2 gaps. Container height = 3 row-heights + 2 gaps.
       For each cell to be 3:2, row-height = col-width * 2/3.
       Therefore container aspect = (3w + 2g) : (3 * 2w/3 + 2g) = (3w + 2g) : (2w + 2g).
       With small gaps the ratio is approximately 3:2, which we use as the
       container's own aspect-ratio so the rows resolve to a fixed pixel value. */
    aspect-ratio: 3 / 2;
  }
  /* Hero — top-left 2×2 block. */
  .portfolio-grid--photography > .photo-card:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }
  /* Right column stack — natural 1×1 each. */
  .portfolio-grid--photography > .photo-card:nth-child(2) { grid-column: 3; grid-row: 1; }
  .portfolio-grid--photography > .photo-card:nth-child(3) { grid-column: 3; grid-row: 2; }
  /* Bottom band — wide banner (cols 1-2) + closing tile (col 3) on row 3. */
  .portfolio-grid--photography > .photo-card:nth-child(4) {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
  .portfolio-grid--photography > .photo-card:nth-child(5) { grid-column: 3; grid-row: 3; }
  /* Override the mobile aspect-ratio rule — desktop uses fixed grid rows. */
  .portfolio-grid--photography .photo-card {
    aspect-ratio: auto;
    height: 100%;
  }
}


/* ---- Photo card itself — fills its grid cell, no min-height conflict ---- */
.photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
}
.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth),
              filter var(--duration-slow) var(--ease-smooth);
  filter: contrast(1.05) brightness(0.96) saturate(1.05);
}
.photo-card:hover img {
  transform: scale(1.04);
  filter: contrast(1.1) brightness(1) saturate(1.12);
}

.photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.8;
}

/* Mobile: legacy photo-card needs an explicit height since it has no static content */
@media (max-width: 639px) {
  .photo-card { height: 280px; }
  /* Homepage photography preview now uses aspect-ratio per card. */
  .portfolio-grid--photography .photo-card { height: auto; }
  /* Photography subpage uses masonry (column-count) — let cards size to image. */
  .gallery-grid--photos .photo-card { height: auto; }
}

.photo-attribution {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  padding: 6px 12px;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ========================================================================
   22.  VIDEOGRAPHY (Section 9) — mixed 9:16 + 16:9 bento
   ======================================================================== */

.portfolio-grid--videography {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .portfolio-grid--videography {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: row dense;
    align-items: start;
  }
  .portfolio-grid--videography > .video-card--short:nth-child(1) { grid-column: 1 / span 3; grid-row: 1 / span 2; }
  .portfolio-grid--videography > .video-card:nth-child(2) { grid-column: 4 / span 6; grid-row: 1; }
  .portfolio-grid--videography > .video-card--short:nth-child(5) { grid-column: 10 / span 3; grid-row: 1 / span 2; }
  .portfolio-grid--videography > .video-card:nth-child(3) { grid-column: 4 / span 3; grid-row: 2; }
  .portfolio-grid--videography > .video-card:nth-child(4) { grid-column: 7 / span 3; grid-row: 2; }
}

/* ========================================================================
   23.  THUMBNAILS (Section 10) — tight 6-col
   ======================================================================== */

.portfolio-grid--thumbnails {
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
@media (min-width: 640px) {
  .portfolio-grid--thumbnails { grid-template-columns: repeat(6, 1fr); }
  .portfolio-grid--thumbnails > .thumb-card:nth-child(1) { grid-column: span 2; }
  .portfolio-grid--thumbnails > .thumb-card:nth-child(2) { grid-column: span 2; }
  .portfolio-grid--thumbnails > .thumb-card:nth-child(3) { grid-column: span 2; }
  .portfolio-grid--thumbnails > .thumb-card:nth-child(4) { grid-column: span 3; }
  .portfolio-grid--thumbnails > .thumb-card:nth-child(5) { grid-column: span 3; }
}

.thumb-card {
  margin: 0;
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 16 / 9;
}
.thumb-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}
.thumb-card:hover img { transform: scale(1.04); }

/* ========================================================================
   24.  SEE MORE BUTTON
   ======================================================================== */

.see-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: var(--space-md) auto 0;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  transition: color var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              background-color var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-spring);
}
.see-more-arrow {
  font-family: var(--font-body);
  transition: transform var(--duration-base) var(--ease-smooth);
}
.see-more:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(255, 107, 53, 0.05);
  transform: translateY(-2px);
}
.see-more:hover .see-more-arrow { transform: translateX(6px); }

/* ========================================================================
   25.  TESTIMONIALS (Section 11) — 2x2 grid
   ======================================================================== */

.testimonials { padding: var(--section-pad-y) 0; position: relative; }

.testimonials-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .testimonials-grid { grid-template-columns: repeat(4, 1fr); }
}

.testimonial-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 280px;
}

.testimonial-quote-mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 0.7;
  color: var(--accent-primary);
  margin-bottom: -12px;
  opacity: 0.9;
}

.testimonial-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
  max-width: none;
  flex: 1 1 auto;
}

.testimonial-rule {
  width: 32px;
  border: 0;
  border-top: 2px solid var(--accent-primary);
  margin: var(--space-sm) 0 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--space-xs);
}
.testimonial-meta--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 200ms var(--ease-smooth);
}
.testimonial-meta--link .testimonial-name {
  position: relative;
  display: inline-block;
  transition: color 200ms var(--ease-smooth);
}
.testimonial-meta--link:hover .testimonial-name {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.testimonial-role {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========================================================================
   26.  CLOSING REEL
   ======================================================================== */

.closing-reel {
  padding: var(--section-pad-y) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.closing-reel-stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-strip {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-secondary);
}

.film-strip-track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 40px 20px;
  width: max-content;
  height: 100%;
  animation: film-scroll 28s steps(20, end) infinite;
}
@keyframes film-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.film-clip {
  flex-shrink: 0;
  height: 28px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  position: relative;
}
.film-clip::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain-static-image);
  background-size: var(--grain-static-size);
  background-position: var(--grain-static-position);
  background-repeat: repeat;
  opacity: 0.12;
  border-radius: 4px;
}
/* Two stacked layers: --top sits higher, --bot sits lower on the strip */
.film-clip--top { transform: translateY(-18px); }
.film-clip--bot { transform: translateY(14px); }
.film-clip--sm { width: 40px;  background: linear-gradient(90deg, #1A1714, #221E1B); }
.film-clip--md { width: 64px;  background: linear-gradient(90deg, #221E1B, rgba(255, 107, 53, 0.18)); }
.film-clip--lg { width: 88px;  background: linear-gradient(90deg, #2A2420, #1A1714); }

.film-playhead {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  z-index: 3;
}

.film-label {
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--accent-primary);
  text-transform: uppercase;
  animation: play-pulse 1.2s var(--ease-smooth) infinite;
}
@keyframes play-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.closing-final-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-smooth);
}
.closing-final-frame.is-visible { opacity: 1; }

.closing-eleven {
  width: 80px;
  height: 200px;
  filter: drop-shadow(0 0 40px rgba(255, 107, 53, 0.5));
}
.closing-eleven rect { fill: var(--accent-primary); }

/* ========================================================================
   27.  CONTACT (Section 12)
   ======================================================================== */

.contact {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.contact-layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

.contact-invite {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-top: 1px solid var(--border-default);
}

.contact-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-md);
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-default);
}

.contact-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-smooth),
              transform var(--duration-base) var(--ease-smooth);
  display: inline-block;
}
.contact-value:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.contact-cta-card {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}
.contact-cta-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2), transparent 65%);
  pointer-events: none;
}

.contact-cta-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-primary);
  position: relative;
  z-index: 2;
}

.contact-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.contact-cta-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: var(--space-xs) 0 var(--space-md);
  position: relative;
  z-index: 2;
}

.contact-cta-card .cta {
  align-self: flex-start;
  position: relative;
  z-index: 2;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}
.contact-cta-card .cta:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px -15px rgba(255, 107, 53, 0.55);
}

/* ========================================================================
   28.  FOOTER
   ======================================================================== */

.site-footer {
  padding: var(--space-lg) var(--container-pad) var(--space-md);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  position: relative;
}

.footer-top {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-wordmark .wordmark-eleven { font-size: 40px; }
.footer-wordmark .wordmark-handle { font-size: 10px; letter-spacing: 0.04em; }

.footer-social {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
}
.footer-social a {
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}
.footer-social a:hover { color: var(--accent-primary); }

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ========================================================================
   29.  RESPONSIVE REFINEMENTS
   ======================================================================== */

/* 375px — small phones */
@media (max-width: 480px) {
  :root {
    --container-pad: 1.25rem;
    --section-pad-y: 5rem;
  }
  .hero-content { gap: 0.75rem; }
  .hero-eyebrow { letter-spacing: 0.28em; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .cta { justify-content: center; }
  .book-btn { bottom: 18px; left: 18px; padding: 10px 18px; }
  .site-nav { padding: 14px var(--container-pad); }
  .wordmark-eleven { font-size: 28px; }
  .wordmark-handle { font-size: 7px; letter-spacing: 0.04em; }

  .stat-card { padding: 1.5rem; min-height: 180px; }
  .stat-card--hero { min-height: 240px; }
  .testimonial-card { padding: 1.5rem; min-height: auto; }
  .trust-card { padding: 1.5rem; min-height: 200px; }

  .client-chip { padding: 8px 14px 8px 8px; gap: 10px; }
  .client-chip .attr-avatar { width: 34px; height: 34px; }

  .section-headline { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .clients-blurb { font-size: var(--text-base); }

  .film-strip { height: 140px; }
  .film-clip { height: 80px; }
  .film-clip--sm { width: 60px; }
  .film-clip--md { width: 100px; }
  .film-clip--lg { width: 160px; }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
}

/* 768px — tablet */
@media (min-width: 768px) and (max-width: 1279px) {
  .hero-headline { font-size: clamp(5rem, 14vw, 9rem); }
}

/* 1280px+ — desktop breathing room */
@media (min-width: 1280px) {
  :root {
    --section-pad-y: clamp(6rem, 10vw, 10rem);
  }
  .hero { padding: 8rem var(--container-pad) 6rem; }
}

/* ========================================================================
   30.  REDUCED MOTION
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track, .film-strip-track { animation: none; }
}

/* ========================================================================
   30.5  SAFARI COMPOSITOR BUDGET
   ------------------------------------------------------------------------
   Safari rasterizes backdrop-filter per paint and struggles with SVG
   filter + mix-blend-mode. These overrides only apply when script.js
   adds body.is-safari — every other browser gets the full-strength
   aesthetic. Halved blur radii cost ~4x less to compute.
   ======================================================================== */

.is-safari .site-nav.is-scrolled {
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
}
.is-safari .cta-primary {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.is-safari .player-play-btn {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.is-safari .photo-attribution {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.is-safari .lightbox {
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  backdrop-filter: blur(6px) saturate(110%);
}
.is-safari .lightbox-close,
.is-safari .lightbox-prev,
.is-safari .lightbox-next {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ========================================================================
   31.  SUB-PAGE GALLERIES — shortform / longform / photography
        videography / thumbnails
   ======================================================================== */

.subpage-hero {
  padding: clamp(7rem, 14vw, 10rem) var(--container-pad) clamp(2rem, 4vw, 4rem);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}
.subpage-hero .back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  transition: color var(--duration-med) var(--ease-smooth), transform var(--duration-med) var(--ease-smooth);
}
.subpage-hero .back-to-home:hover {
  color: var(--accent-primary);
  transform: translateX(-4px);
}
.subpage-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0.75rem 0 1rem;
  text-transform: uppercase;
}

.gallery-section {
  padding: 0 var(--container-pad) var(--section-pad-y);
  max-width: var(--container-max);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}

.gallery-grid--videos {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .gallery-grid--videos { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gallery-grid--videos { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid--shortform {
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .gallery-grid--shortform { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .gallery-grid--shortform { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .gallery-grid--shortform { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1400px) {
  .gallery-grid--shortform { grid-template-columns: repeat(5, 1fr); }
}

/* Long-form subpage — clean 2-col 16:9 (Phase R3 / Fix 2) */
.gallery-grid--longform {
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
@media (min-width: 768px) {
  .gallery-grid--longform { grid-template-columns: repeat(2, 1fr); }
}
.gallery-grid--longform .video-card .player-shell { aspect-ratio: 16 / 9; }

/* Shortform subpage — every card 9:16, overscale 16:9 sources (Phase R3 / Fix 1) */
.gallery-grid--shortform .video-card,
.gallery-grid--shortform .video-card--short { max-width: 100%; }
.gallery-grid--shortform .player-shell { aspect-ratio: 9 / 16; }
.gallery-grid--shortform .player-shell[data-format="standard"] .player-thumb img,
.gallery-grid--shortform .player-shell[data-format="standard"] iframe,
.gallery-grid--shortform .player-shell[data-format="standard"] .player-iframe {
  width: 178%;
  height: 100%;
  margin-left: -39%;
  max-width: none;
}
.gallery-grid--shortform .player-shell[data-format="short"] .player-thumb img,
.gallery-grid--shortform .player-shell[data-format="short"] iframe,
.gallery-grid--shortform .player-shell[data-format="short"] .player-iframe {
  width: 100%;
  height: 100%;
  margin-left: 0;
}

/* Videography subpage retains 9:16 Shorts cap inside its 3-col video grid */
.gallery-grid--videos .video-card--short .player-shell {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto;
}

/* ========================================================================
   VIDEOGRAPHY SUBPAGE — bento grid that mixes 9:16 Shorts with 16:9 reels
   ------------------------------------------------------------------------
   5 cards: 2 vertical Shorts (1 & 5) + 3 horizontal reels (2, 3, 4).
   Phone   : single column, each card in its native aspect ratio.
   Tablet  : 6-col bento. Shorts flank a stacked pair of widescreens,
             with the third widescreen as a full-width hero on row 2.
   Desktop : 12-col bento. Shorts are tall side-rails; widescreens form
             a balanced pair + a wide centerpiece below.
   ======================================================================== */

/* On the videography subpage, override the generic --videos rules so
   16:9 standard cards render in their native aspect ratio. */
.gallery-grid--videography {
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.4vw, 1.75rem);
}
.gallery-grid--videography .video-card .player-shell { aspect-ratio: 16 / 9; }
.gallery-grid--videography .video-card--short .player-shell {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
}

/* Tablet bento — 6 cols */
@media (min-width: 768px) {
  .gallery-grid--videography {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-flow: dense;
    align-items: stretch;
    gap: clamp(0.6rem, 1.2vw, 1rem);
  }
  .gallery-grid--videography .video-card--short .player-shell { max-width: none; }

  /* Shorts flank a stack of three widescreens */
  .gallery-grid--videography > .video-card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 3; }
  .gallery-grid--videography > .video-card:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
  .gallery-grid--videography > .video-card:nth-child(3) { grid-column: 3 / span 2; grid-row: 2; }
  .gallery-grid--videography > .video-card:nth-child(4) { grid-column: 3 / span 2; grid-row: 3; }
  .gallery-grid--videography > .video-card:nth-child(5) { grid-column: 5 / span 2; grid-row: 1 / span 3; }
}

/* Desktop bento — 12 cols, asymmetric and rhythmic */
@media (min-width: 1100px) {
  .gallery-grid--videography {
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.25rem, 1.8vw, 1.75rem);
  }
  /* Row 1: Short | wide reel | wide reel | Short  */
  .gallery-grid--videography > .video-card:nth-child(1) { grid-column: 1 / span 3; grid-row: 1 / span 2; }
  .gallery-grid--videography > .video-card:nth-child(2) { grid-column: 4 / span 6; grid-row: 1; }
  .gallery-grid--videography > .video-card:nth-child(5) { grid-column: 10 / span 3; grid-row: 1 / span 2; }
  /* Row 2: two widescreens side-by-side under the short rails */
  .gallery-grid--videography > .video-card:nth-child(3) { grid-column: 4 / span 3; grid-row: 2; }
  .gallery-grid--videography > .video-card:nth-child(4) { grid-column: 7 / span 3; grid-row: 2; }
}


/* ========================================================================
   31.5  PHOTOGRAPHY GALLERY — true masonry, no cropping, no gaps
   ------------------------------------------------------------------------
   24 landscape (3:2) + 1 portrait (#24, 2:3) photographs. Implemented via
   CSS multi-column layout: each photo keeps its native aspect ratio, the
   browser packs the columns with no empty space, and no image is cropped
   or stretched. Column count scales with viewport width.
   ======================================================================== */
.gallery-grid--photos {
  display: block;          /* override the .gallery-grid `display: grid` */
  column-count: 1;
  column-gap: 8px;
  grid-template-columns: none;
  grid-auto-rows: auto;
}
@media (min-width: 640px)  { .gallery-grid--photos { column-count: 2; } }
@media (min-width: 1024px) { .gallery-grid--photos { column-count: 3; } }
@media (min-width: 1440px) { .gallery-grid--photos { column-count: 4; } }

/* Each card flows as a column item; height is driven by its own image so
   nothing is ever cropped or stretched. break-inside prevents the
   browser from splitting a card across columns. */
.gallery-grid--photos .photo-card {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 8px 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  cursor: pointer;
  overflow: hidden;
}
.gallery-grid--photos .photo-card img {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.gallery-grid--photos .photo-card::after {
  position: absolute;
  inset: 0;
}


.gallery-grid--thumbs {
  grid-template-columns: 1fr;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}
@media (min-width: 600px) {
  .gallery-grid--thumbs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .gallery-grid--thumbs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .gallery-grid--thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================================================
   32.  LIGHTBOX — photography.html
   ======================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  opacity: 0;
  transition: opacity 320ms var(--ease-smooth);
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-stage {
  position: relative;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,0.9);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(10,10,10,0.72);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--duration-med) var(--ease-smooth),
              border-color var(--duration-med) var(--ease-smooth),
              color var(--duration-med) var(--ease-smooth),
              transform var(--duration-med) var(--ease-smooth);
}
.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev  { left: 1.25rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}
.lightbox-prev:hover { transform: translateY(-50%) translateX(-4px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(4px); }

.lightbox-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

body.lightbox-open { overflow: hidden; }
