/* ==========================================================================
   NIHAL AYOOB — FILMMAKER & CINEMATOGRAPHER
   Shared Design System & Editorial Foundations
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Local Font Registrations (@font-face)
   Registered strictly from local project assets (assets/fonts/)
   -------------------------------------------------------------------------- */

/* Primary Headline Font: Perfectly Vintages by Keithzo */
@font-face {
  font-family: 'Perfectly Vintages';
  src: url('assets/fonts/Perfectly%20Vintages%20Font%20by%20Keithzo.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Supporting & Nav Font: Morganite (Condensed Display) */
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-BookItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Morganite';
  src: url('assets/fonts/Morganite-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   02. Design Tokens & CSS Custom Properties
   Cinematic, Vintage-Editorial Theme (No glassmorphism, no neon glows)
   -------------------------------------------------------------------------- */
:root {
  /* Canvas Backgrounds: Deep Charcoal & Near-Black */
  --bg-deep: #07080a;
  --bg-charcoal: #0e0f12;
  --bg-surface: #141519;
  --bg-surface-elevated: #1a1c22;
  --bg-overlay: rgba(7, 8, 10, 0.88);

  /* Warm Ivory & Natural Paper Typography */
  --text-ivory: #f4f0e6;
  --text-ivory-secondary: #c5c1b5;
  --text-ivory-muted: #827e74;
  --text-ivory-faint: #4c4942;
  --text-inverse: #07080a;

  /* Warm Amber & Tungsten Accents (Earthy, analog light) */
  --color-amber: #dca35a;
  --color-amber-hover: #edd38f;
  --color-amber-muted: #8e6532;
  --color-amber-subtle: rgba(220, 163, 90, 0.1);
  --color-tungsten: #bf7c34;

  /* Understated Hairline Dividers */
  --divider-hairline: rgba(244, 240, 230, 0.08);
  --divider-medium: rgba(244, 240, 230, 0.16);
  --divider-amber: rgba(220, 163, 90, 0.28);

  /* Typography Families with Native Fallbacks */
  --font-vintage: 'Perfectly Vintages', Georgia, 'Times New Roman', serif;
  --font-morganite: 'Morganite', 'Bebas Neue', 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Editorial Spacing Scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --space-3xl: 7.5rem;
  --space-4xl: 10rem;

  /* Layout Widths & Metrics */
  --container-max: 1360px;
  --container-narrow: 940px;
  --container-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-height: 84px;

  /* Understated Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   03. CSS Reset & Base Rules
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-deep);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-ivory-secondary);
  background-color: var(--bg-deep);
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessible visible focus states */
:focus-visible {
  outline: 1px solid var(--color-amber);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* Accessibility Skip Link */
.skip-to-content {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-amber);
  color: var(--text-inverse);
  padding: 10px 18px;
  font-family: var(--font-morganite);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 20px;
}

/* --------------------------------------------------------------------------
   04. Subtle Film Grain (Used sparingly)
   -------------------------------------------------------------------------- */
.film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   04b. Left-Side Edge Numbers (Scroll-Driven Vertical Sequence)
   Strictly minimalist floating frame numbers along the left edge.
   Directly scroll-reactive — stationary when idle, moving with scroll.
   -------------------------------------------------------------------------- */
:root {
  --side-numbers-width: 22px;
  --side-numbers-segment-height: 1680px; /* 20 numbers * 84px = 1680px */
}

/* Base Fixed Vertical Column (Left Edge Only) */
.side-numbers {
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--side-numbers-width);
  height: 100vh;
  height: 100dvh;
  z-index: 990;
  pointer-events: none;
  overflow: hidden;
  background: transparent !important;
  border: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.side-numbers-left {
  left: clamp(6px, 1vw, 12px);
}

/* Scroll-Driven Track (No automatic animation; positioned dynamically on scroll) */
.side-numbers-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
  transform: translateY(0);
  animation: none !important;
  transition: none !important;
}

/* 1680px Segment (20 frames @ 84px each) */
.side-numbers-segment {
  position: relative;
  width: 100%;
  height: 1680px;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
}

/* Individual Frame Number Cell (84px tall) */
.side-frame {
  height: 84px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
}

/* Rotated Numbers (90 degrees clockwise) */
.frame-num {
  font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(185, 178, 168, 0.42); /* muted warm grey */
  display: inline-block;
  transform: rotate(90deg);
  transform-origin: center center;
  white-space: nowrap;
  line-height: 1;
}

/* Every fifth number has subtle amber styling */
.side-frame.is-amber .frame-num {
  color: rgba(220, 163, 90, 0.78);
  font-weight: 600;
}

/* Responsive Scaling: Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .side-numbers {
    width: 18px;
  }
  .side-numbers-left {
    left: 4px;
  }
  .frame-num {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    color: rgba(185, 178, 168, 0.35);
  }
  .side-frame.is-amber .frame-num {
    color: rgba(220, 163, 90, 0.65);
  }
}

/* Responsive Scaling: Mobile (< 768px) */
@media (max-width: 767px) {
  .hero-core-content {
    max-width: 100%;
  }

  .hero-name-headline {
    max-width: 100%;
    font-size: clamp(2.2rem, 8vw, 3.25rem);
    line-height: 1.05;
  }

  .side-numbers-left {
    left: 3px;
    width: 16px;
  }
  .frame-num {
    font-size: 8.5px;
    letter-spacing: 0.08em;
    color: rgba(185, 178, 168, 0.28);
  }
  .side-frame.is-amber .frame-num {
    color: rgba(220, 163, 90, 0.55);
  }
}

/* Extra Narrow Devices (< 480px): Hide completely to protect content */
@media (max-width: 479px) {
  .side-numbers {
    display: none !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .side-numbers-track {
    animation: none !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   05. Typography System & Classes
   -------------------------------------------------------------------------- */

/* Perfectly Vintages: Headlines, Titles & Major Section Headings */
.font-vintage {
  font-family: var(--font-vintage);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-ivory);
}

/* Morganite: Navigation, Subheadings, Project Labels, Buttons & UI text */
/* Checked for legibility: uppercase, controlled tracking & sensible sizes */
.font-morganite {
  font-family: var(--font-morganite);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

/* Headline Scale */
.headline-hero {
  font-family: var(--font-vintage);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.98;
  color: var(--text-ivory);
  letter-spacing: -0.01em;
}

.headline-section {
  font-family: var(--font-vintage);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-ivory);
}

.headline-card {
  font-family: var(--font-vintage);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-ivory);
}

/* Morganite Subheadings & Labels */
.morganite-kicker {
  font-family: var(--font-morganite);
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.morganite-meta {
  font-family: var(--font-morganite);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-ivory-muted);
}

/* Editorial Body Copy */
.editorial-lead {
  font-size: clamp(1.125rem, 1.25vw, 1.35rem);
  line-height: 1.7;
  color: var(--text-ivory-secondary);
  font-weight: 400;
  max-width: 68ch;
}

.editorial-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-ivory-secondary);
  max-width: 65ch;
}

.editorial-quote {
  font-family: var(--font-vintage);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.35;
  color: var(--text-ivory);
  font-style: italic;
  padding-left: var(--space-md);
  border-left: 1px solid var(--color-amber-muted);
}

/* --------------------------------------------------------------------------
   06. Layout & Container Foundations
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

/* Accessible Screen-Reader Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}

/* Understated Thin Dividers */
.divider-thin {
  width: 100%;
  height: 1px;
  background-color: var(--divider-hairline);
  border: none;
  margin: 0;
}

.divider-amber-subtle {
  width: 100%;
  height: 1px;
  background-color: var(--divider-amber);
  border: none;
  margin: 0;
}

/* Section Header Composition */
.section-header {
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider-hairline);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   07. Navigation (Header, Right Rail & Mobile Drawer)
   Strictly: Home, Work, Acting, About, Contact
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: transparent;
  pointer-events: none;
  transition: background-color var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

@media (max-width: 1023px) {
  .site-header.scrolled {
    background-color: var(--bg-overlay);
    border-bottom-color: var(--divider-hairline);
    pointer-events: auto;
  }
}

.header-inner {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Brand Link: Default / Home Page (Top-Left) */
.brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: auto;
  text-decoration: none;
}

.brand-wordmark {
  font-family: var(--font-vintage);
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  color: var(--text-ivory);
  line-height: 1;
  transition: color var(--transition-fast);
}

.brand-link:hover .brand-wordmark,
.brand-link:focus-visible .brand-wordmark {
  color: var(--color-amber);
}

/* Centered Header Branding for All Pages & Dynamic Section Suffix */
.brand-link-centered {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  pointer-events: auto;
  text-decoration: none;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-link-centered .brand-wordmark {
  font-family: var(--font-vintage);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  letter-spacing: 0.08em;
  color: var(--text-ivory);
  line-height: 1;
  text-transform: lowercase;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;
  transition: color var(--transition-fast);
}

.brand-link-centered .brand-name {
  display: inline-block;
  color: inherit;
  transition: color var(--transition-fast);
}

.brand-link-centered .brand-section-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.brand-link-centered .brand-slash {
  color: var(--color-amber);
  font-weight: 400;
  opacity: 0.9;
  user-select: none;
}

.brand-link-centered .brand-section-text {
  color: inherit;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  transition: color var(--transition-fast);
}

.brand-link-centered .brand-section-tag.is-hidden {
  display: none;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
}

.brand-link-centered .brand-section-tag.is-transitioning {
  opacity: 0;
  transform: translateX(-3px);
}

.brand-link-centered:hover .brand-wordmark,
.brand-link-centered:focus-visible .brand-wordmark,
.brand-link-centered:hover .brand-name,
.brand-link-centered:focus-visible .brand-name,
.brand-link-centered:hover .brand-section-text,
.brand-link-centered:focus-visible .brand-section-text {
  color: var(--color-amber);
}

@media (max-width: 600px) {
  .brand-link-centered .brand-wordmark {
    font-size: clamp(1.1rem, 3.8vw, 1.35rem);
    letter-spacing: 0.06em;
    gap: 0.25em;
  }
}

@media (max-width: 380px) {
  .brand-link-centered .brand-wordmark {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }
}

.brand-title {
  font-family: var(--font-vintage);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text-ivory);
  line-height: 1;
}

.brand-subtitle {
  font-family: var(--font-morganite);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-amber);
  text-transform: uppercase;
}

/* Desktop Navigation: Fixed Vertical Rail on the RIGHT */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  :root {
    --nav-rail-reserve: clamp(100px, 8vw, 140px);
  }

  /* Clear main content from overlapping the right nav rail */
  .container {
    padding-right: calc(var(--container-gutter) + var(--nav-rail-reserve));
  }

  .container-narrow {
    padding-right: calc(var(--container-gutter) + var(--nav-rail-reserve));
  }

  .footer-inner {
    padding-right: calc(var(--container-gutter) + var(--nav-rail-reserve));
  }

  .stage-hud-top,
  .stage-hud-bottom {
    padding-right: calc(var(--container-gutter) + var(--nav-rail-reserve));
  }

  .hero-main-container {
    padding-right: calc(var(--container-gutter) + var(--nav-rail-reserve));
  }

  .hero-core-content {
    max-width: min(480px, 35vw);
  }

  .hero-name-headline {
    max-width: min(450px, 33vw);
  }

  .hero-bottom-bar {
    padding-right: calc(var(--container-gutter) + var(--nav-rail-reserve));
  }

  .desktop-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: clamp(1.5rem, 2.75vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: auto;
    pointer-events: auto;
  }

  .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
  }

  .nav-link {
    font-family: var(--font-morganite);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-ivory-secondary);
    text-decoration: none;
    position: relative;
    padding: 0.15rem 0;
    transition: color var(--transition-fast), transform var(--transition-fast);
    white-space: nowrap;
    display: inline-block;
    line-height: 1.15;
  }

  .nav-link:hover {
    color: var(--text-ivory);
    transform: translateX(-3px);
  }

  .nav-link:focus-visible {
    outline: 1px solid var(--color-amber);
    outline-offset: 4px;
    color: var(--text-ivory);
  }

  .nav-link.active {
    color: var(--color-amber);
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-amber);
  }
}

/* Header Action / Minimal CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Toggle Hamburger (< 1024px) */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--divider-hairline);
  transition: border-color var(--transition-fast);
  pointer-events: auto;
  margin-left: auto;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  border-color: var(--color-amber-muted);
  outline: none;
}

.burger-line {
  width: 100%;
  height: 1px;
  background-color: var(--text-ivory);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Navigation Overlay & Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 10, 0.85);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-charcoal);
  border-left: 1px solid var(--divider-hairline);
  z-index: 1002;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

body.menu-open .mobile-nav {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--divider-hairline);
}

.mobile-nav-title {
  font-family: var(--font-morganite);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--color-amber);
  text-transform: uppercase;
}

.mobile-close-btn {
  font-size: 1.85rem;
  line-height: 1;
  color: var(--text-ivory-secondary);
  padding: 4px;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.mobile-nav-link {
  font-family: var(--font-vintage);
  font-size: 2rem;
  color: var(--text-ivory);
  display: block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--color-amber);
  transform: translateX(6px);
  outline: none;
}

.mobile-nav-link.active {
  color: var(--color-amber);
}

.mobile-nav-footer {
  padding-top: var(--space-md);
  border-top: 1px solid var(--divider-hairline);
}

.mobile-status {
  font-family: var(--font-morganite);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ivory-muted);
}

/* --------------------------------------------------------------------------
   08. Action Buttons (Understated & Editorial)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-morganite);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-amber);
  color: var(--text-inverse);
  border: 1px solid var(--color-amber);
}

.btn-primary:hover {
  background-color: var(--color-amber-hover);
  border-color: var(--color-amber-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-ivory);
  border: 1px solid var(--divider-medium);
}

.btn-secondary:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
}

.btn-link {
  font-family: var(--font-morganite);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid var(--divider-amber);
  padding-bottom: 2px;
}

.btn-link:hover {
  color: var(--color-amber-hover);
  border-bottom-color: var(--color-amber-hover);
}

/* --------------------------------------------------------------------------
   09. Full-Viewport Cinematic Hero Composition
   -------------------------------------------------------------------------- */
.hero-viewport {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-height) + var(--space-md));
  padding-bottom: var(--space-md);
  overflow: hidden;
  background-color: var(--bg-deep);
}

/* Hero Background & Vintage Mood Scrim */
.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: #07080a;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 0.82;
  filter: contrast(1.04) brightness(0.92);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.82;
  filter: contrast(1.04) brightness(0.92);
  z-index: 0;
  pointer-events: none;
}

.hero-bg-img.is-missing {
  display: none;
}

.hero-placeholder-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 60% 40%, rgba(220, 163, 90, 0.08) 0%, rgba(18, 19, 23, 0.7) 50%, #07080a 90%),
    linear-gradient(180deg, #0e0f13 0%, #07080a 100%);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.hero-placeholder-overlay.is-active {
  display: flex;
}

.hero-placeholder-card {
  max-width: 440px;
  padding: var(--space-md) var(--space-lg);
  background: rgba(14, 15, 19, 0.85);
  border: 1px solid var(--divider-hairline);
}

.hero-vignette-scrim {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(7, 8, 10, 0.6) 0%, rgba(7, 8, 10, 0.25) 35%, rgba(7, 8, 10, 0.75) 75%, #07080a 100%),
    radial-gradient(ellipse at 50% 50%, rgba(220, 163, 90, 0.04) 0%, rgba(7, 8, 10, 0.4) 60%, rgba(7, 8, 10, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Center Content Composition */
.hero-main-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
  margin-top: auto;
  margin-bottom: auto;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-md);
}

.hero-core-content {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: left;
}

/* Supporting Role Labels */
.hero-roles-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-morganite);
  font-size: clamp(1.2rem, 1.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.role-dot {
  color: var(--color-amber-muted);
  font-size: 0.75em;
}

/* Refined Expressive Headline: Nihal Muhammed Ayoob
   Desktop font size reduced by ~25–28% and width constrained to the left-side text area
   so that the subject's face and upper body in the hero photograph remain completely unobstructed. */
.hero-name-headline {
  font-family: var(--font-vintage);
  font-size: clamp(2.35rem, 5.2vw, 5.25rem);
  line-height: 1.02;
  color: var(--text-ivory);
  letter-spacing: -0.01em;
  text-align: left;
  max-width: 460px;
  width: 100%;
  margin-top: 4px;
  margin-bottom: var(--space-xs);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.7);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Short Introductory Line */
.hero-intro-line {
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-ivory-secondary);
  max-width: 62ch;
  margin-bottom: var(--space-md);
  font-weight: 400;
}

/* Clear Explore My Work Action */
.hero-cta-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.btn-hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background-color: var(--color-amber);
  color: var(--text-inverse);
  font-family: var(--font-morganite);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--color-amber);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-hero-explore:hover {
  background-color: var(--color-amber-hover);
  border-color: var(--color-amber-hover);
  transform: translateX(4px);
}

.cta-arrow {
  font-size: 1.25em;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.btn-hero-explore:hover .cta-arrow {
  transform: translateX(4px);
}

/* Hero Bottom Bar */
.hero-bottom-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-top: 1px solid var(--divider-hairline);
  padding-top: var(--space-md);
}

@media (min-width: 860px) {
  .hero-bottom-bar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* Subtle Scroll Indicator */
.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-ivory-muted);
  user-select: none;
}

.scroll-label {
  font-family: var(--font-morganite);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-ivory-muted);
}

.scroll-track {
  width: 1px;
  height: 34px;
  background: var(--divider-medium);
  position: relative;
  overflow: hidden;
}

.scroll-line-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--color-amber);
  animation: scrollPulse 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(-12px); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(34px); opacity: 0; }
}

/* Small Featured Project Strip Near Bottom */
.featured-project-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.featured-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.featured-strip-title {
  font-family: var(--font-morganite);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.featured-strip-link {
  font-family: var(--font-morganite);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ivory-muted);
  transition: color var(--transition-fast);
}

.featured-strip-link:hover {
  color: var(--color-amber);
}

.featured-strip-items {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-xs);
}

@media (min-width: 580px) {
  .featured-strip-items {
    grid-template-columns: repeat(3, minmax(180px, 220px));
  }
}

.featured-item-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(14, 15, 19, 0.8);
  border: 1px solid var(--divider-hairline);
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.featured-item-card:hover {
  border-color: var(--color-amber-muted);
  background: rgba(20, 21, 26, 0.92);
  transform: translateY(-2px);
}

.featured-item-thumb {
  position: relative;
  width: 54px;
  height: 34px;
  background-color: var(--bg-surface);
  border: 1px solid var(--divider-hairline);
  overflow: hidden;
  flex-shrink: 0;
}

.featured-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-morganite);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--color-amber);
  background: #111215;
}

.featured-item-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.featured-item-num {
  font-family: var(--font-morganite);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.featured-item-name {
  font-family: var(--font-vintage);
  font-size: 1.05rem;
  color: var(--text-ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

/* --------------------------------------------------------------------------
   Cinematic Coordinated Entrance Animation (Session First Visit Only)
   -------------------------------------------------------------------------- */
.animate-entrance .hero-bg-wrapper {
  animation: entranceBg 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-entrance .hero-roles-bar {
  opacity: 0;
  transform: translateY(10px);
  animation: entranceFadeUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s forwards;
}

.animate-entrance .hero-name-headline {
  opacity: 0;
  transform: translateY(18px);
  animation: entranceFadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards;
}

.animate-entrance .hero-intro-line {
  opacity: 0;
  transform: translateY(14px);
  animation: entranceFadeUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.65s forwards;
}

.animate-entrance .hero-cta-wrapper {
  opacity: 0;
  transform: translateY(12px);
  animation: entranceFadeUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.85s forwards;
}

.animate-entrance .hero-bottom-bar {
  opacity: 0;
  transform: translateY(10px);
  animation: entranceFadeUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 1.05s forwards;
}

@keyframes entranceBg {
  0% { opacity: 0; transform: scale(1.035); }
  100% { opacity: 1; transform: scale(1.0); }
}

@keyframes entranceFadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Shared media utility placeholders */
.media-frame {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--divider-hairline);
  overflow: hidden;
}

.media-frame.ratio-cinemascope {
  aspect-ratio: 2.39 / 1;
}

.media-frame.ratio-widescreen {
  aspect-ratio: 16 / 9;
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--bg-surface);
}

.placeholder-tag {
  font-family: var(--font-morganite);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--color-amber);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.placeholder-filename {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-ivory-muted);
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   10. Editorial Work Foundation Grid (Ready for 9 projects)
   -------------------------------------------------------------------------- */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 680px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--transition-base);
}

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

.work-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-surface);
  border: 1px solid var(--divider-hairline);
  overflow: hidden;
}

.work-card-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.work-card-role {
  font-family: var(--font-morganite);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--color-amber);
  text-transform: uppercase;
}

.work-card-title {
  font-family: var(--font-vintage);
  font-size: 1.5rem;
  color: var(--text-ivory);
  line-height: 1.2;
}

.work-card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-ivory-muted);
}

/* --------------------------------------------------------------------------
   11. Direct PDF Download Component (For Acting page)
   -------------------------------------------------------------------------- */
.acting-download-card {
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--bg-surface);
  border: 1px solid var(--divider-hairline);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .acting-download-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2xl) var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   12. Minimal Editorial Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-top: 1px solid var(--divider-hairline);
  background-color: var(--bg-deep);
}

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

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

.footer-brand {
  font-family: var(--font-vintage);
  font-size: 1.5rem;
  color: var(--text-ivory);
  display: block;
  margin-bottom: var(--space-3xs);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-ivory-muted);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  font-family: var(--font-morganite);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ivory-secondary);
}

.footer-link:hover {
  color: var(--color-amber);
}

/* --------------------------------------------------------------------------
   14. Dedicated Project Template (Full-Screen Background Video)
   -------------------------------------------------------------------------- */
.project-fullscreen-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.project-bg-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse at 70% 30%, rgba(220, 163, 90, 0.08) 0%, rgba(14, 15, 18, 0.85) 50%, #07080a 90%),
    linear-gradient(180deg, #0e0f12 0%, #07080a 100%);
  overflow: hidden;
}

.project-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 8, 10, 0.45) 0%,
    rgba(7, 8, 10, 0.6) 50%,
    rgba(7, 8, 10, 0.94) 85%,
    #07080a 100%
  );
  z-index: 1;
  pointer-events: none;
}

.project-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-morganite);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-md);
  transition: color var(--transition-fast);
}

.project-back-link:hover {
  color: var(--color-amber-hover);
}

.project-hero-title {
  font-family: var(--font-vintage);
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  color: var(--text-ivory);
  margin-bottom: var(--space-sm);
}

.project-hero-desc {
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-ivory-secondary);
  max-width: 70ch;
  margin-bottom: var(--space-lg);
}

/* Clear Action Row: Play Film & Ambient Preview Toggles */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.btn-play-film {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2.25rem;
  background-color: var(--color-amber);
  color: var(--text-inverse);
  font-family: var(--font-morganite);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--color-amber);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.btn-play-film:hover {
  background-color: var(--color-amber-hover);
  border-color: var(--color-amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 163, 90, 0.22);
}

.btn-play-film:focus-visible {
  outline: 2px solid var(--color-amber-hover);
  outline-offset: 3px;
}

.btn-play-film .play-icon {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn-play-film:hover .play-icon {
  transform: scale(1.15);
}

.project-ambient-controls {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.project-video-controls {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.btn-video-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-morganite);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ivory);
  background: rgba(14, 15, 18, 0.65);
  border: 1px solid var(--divider-medium);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn-video-control:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
}

/* Technical Specification Strip */
.project-meta-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--divider-hairline);
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .project-meta-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.meta-spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-spec-label {
  font-family: var(--font-morganite);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.meta-spec-value {
  font-size: 0.9375rem;
  color: var(--text-ivory-secondary);
}

/* Project Pagination Bar (Prev / Next project) */
.project-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-top: 1px solid var(--divider-hairline);
  margin-top: var(--space-3xl);
}

.project-pagination-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.project-pagination-kicker {
  font-family: var(--font-morganite);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.project-pagination-name {
  font-family: var(--font-vintage);
  font-size: 1.5rem;
  color: var(--text-ivory);
  transition: color var(--transition-fast);
}

.project-pagination-link:hover .project-pagination-name {
  color: var(--color-amber);
}

/* --------------------------------------------------------------------------
   14c. Persistent Viewport Project Navigation (Left & Right Sides)
   Minimal persistent arrows vertically centered in the viewport
   -------------------------------------------------------------------------- */
.project-side-nav {
  pointer-events: none;
}

.side-project-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 15, 19, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(217, 160, 82, 0.65); /* Subtle neutral muted amber at rest */
  text-decoration: none;
  pointer-events: auto;
  transition:
    color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

/* Left arrow: positioned safely to the right of the left scroll-number rail */
.side-nav-prev {
  left: clamp(48px, 4.2vw, 68px);
}

/* Right arrow: positioned near the right edge, clear of right vertical nav */
.side-nav-next {
  right: clamp(24px, 3.2vw, 40px);
}

@media (min-width: 1024px) {
  .side-nav-next {
    /* Placed to the left of the right-side vertical nav (.desktop-nav) */
    right: calc(clamp(1.5rem, 2.75vw, 3rem) + 82px);
  }
}

/* Thin, elegant arrow SVG icon */
.side-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.side-nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

/* Hover & Focus states: smoothly brighten arrow */
.side-project-nav:hover,
.side-project-nav:focus-visible {
  color: #D9A052; /* Brightened amber */
  border-color: rgba(217, 160, 82, 0.55);
  background: rgba(14, 15, 19, 0.85);
  box-shadow: 0 0 20px rgba(217, 160, 82, 0.22);
}

.side-project-nav:focus-visible {
  outline: 2px solid #D9A052;
  outline-offset: 3px;
}

.side-nav-prev:hover .side-nav-icon,
.side-nav-prev:focus-visible .side-nav-icon {
  transform: translateX(-2px);
}

.side-nav-next:hover .side-nav-icon,
.side-nav-next:focus-visible .side-nav-icon {
  transform: translateX(2px);
}

/* Tooltip Labels (Hidden at rest, smoothly revealed on hover) */
.side-nav-tooltip {
  position: absolute;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.25s;
  white-space: nowrap;
  background: rgba(7, 8, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 160, 82, 0.22);
  padding: 6px 12px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.side-nav-prev .side-nav-tooltip {
  left: calc(100% + 12px);
  transform: translateY(-50%) translateX(-6px);
  text-align: left;
}

.side-nav-next .side-nav-tooltip {
  right: calc(100% + 12px);
  transform: translateY(-50%) translateX(6px);
  text-align: right;
}

.side-project-nav:hover .side-nav-tooltip,
.side-project-nav:focus-visible .side-nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.side-nav-kicker {
  font-family: var(--font-morganite);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D9A052;
  line-height: 1;
}

.side-nav-title {
  font-family: var(--font-vintage);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--text-ivory);
  line-height: 1.2;
}

/* Hide or disabled state for unavailable direction */
.side-project-nav.is-disabled {
  display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .side-project-nav {
    width: 38px;
    height: 38px;
    background: rgba(14, 15, 19, 0.65);
  }
  .side-nav-icon {
    width: 18px;
    height: 18px;
  }
  .side-nav-prev {
    left: clamp(34px, 4vw, 44px);
  }
  .side-nav-next {
    right: clamp(12px, 2.5vw, 20px);
  }
  .side-nav-tooltip {
    display: none; /* Avoid obstructing mobile viewport on tap */
  }
}

@media (max-width: 480px) {
  .side-project-nav {
    width: 34px;
    height: 34px;
  }
  .side-nav-icon {
    width: 16px;
    height: 16px;
  }
  .side-nav-prev {
    left: clamp(32px, 3.5vw, 40px);
  }
  .side-nav-next {
    right: 10px;
  }
}

/* --------------------------------------------------------------------------
   14b. Dedicated Film Theater Modal Presentation
   -------------------------------------------------------------------------- */
.film-theater-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.film-theater-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.theater-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(7, 8, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.theater-dialog-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  background: var(--bg-charcoal);
  border: 1px solid var(--divider-medium);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  max-height: 94vh;
  overflow-y: auto;
}

.theater-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--divider-hairline);
  background-color: var(--bg-surface);
}

.theater-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theater-kicker {
  font-family: var(--font-morganite);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.theater-film-title {
  font-family: var(--font-vintage);
  font-size: 1.5rem;
  color: var(--text-ivory);
  line-height: 1.1;
}

.theater-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-morganite);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ivory-secondary);
  border: 1px solid var(--divider-hairline);
  background: transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.theater-close-btn:hover {
  color: var(--color-amber);
  border-color: var(--color-amber);
}

.theater-screen-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2.39 / 1;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .theater-screen-wrapper {
    aspect-ratio: 16 / 9;
  }
}

.theater-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

.theater-fallback-slate {
  display: none;
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(220, 163, 90, 0.06) 0%, rgba(14, 15, 18, 0.95) 70%, #07080a 100%);
  border: 1px solid var(--divider-hairline);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  z-index: 2;
}

.theater-fallback-slate.is-visible {
  display: flex;
}

.slate-inner {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg);
  border: 1px solid var(--divider-hairline);
  background-color: rgba(7, 8, 10, 0.85);
}

.slate-brand {
  font-family: var(--font-morganite);
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--color-amber);
  text-transform: uppercase;
}

.slate-title {
  font-family: var(--font-vintage);
  font-size: 2rem;
  color: var(--text-ivory);
  line-height: 1.15;
}

.slate-format {
  font-family: var(--font-morganite);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-ivory-secondary);
  text-transform: uppercase;
}

.slate-note {
  font-size: 0.9rem;
  color: var(--text-ivory-muted);
  line-height: 1.6;
  margin-top: var(--space-2xs);
}

.theater-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-sm) var(--space-lg);
  border-top: 1px solid var(--divider-hairline);
  background-color: var(--bg-surface);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .theater-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.theater-meta {
  font-family: var(--font-morganite);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ivory-secondary);
}

.theater-shortcuts-hint {
  font-size: 0.825rem;
  color: var(--text-ivory-muted);
}

@media (max-width: 640px) {
  .project-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-play-film {
    width: 100%;
  }

  .project-ambient-controls {
    width: 100%;
    justify-content: space-between;
  }

  .btn-video-control {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .project-pagination-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .project-pagination-link[style*="text-align: right"] {
    text-align: left !important;
  }
}

/* --------------------------------------------------------------------------
   15. Work Page Layout & Cinematic Scroll-Driven Project Stack
   Refined compact editorial introduction with elevated project showcase
   -------------------------------------------------------------------------- */
.work-intro-section {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + clamp(12px, 1.8vw, 20px));
  padding-bottom: clamp(14px, 1.8vw, 22px);
}

.work-intro-section .container {
  padding-left: clamp(48px, 4.5vw, 76px);
  padding-right: clamp(24px, 3.5vw, 40px);
}

@media (min-width: 1024px) {
  .work-intro-section .container {
    padding-left: clamp(60px, 6vw, 100px);
    padding-right: calc(clamp(1.5rem, 2.75vw, 3rem) + 88px);
  }
}

.work-intro-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  border-bottom: 1px solid rgba(244, 240, 230, 0.08);
  padding-bottom: clamp(10px, 1.2vw, 16px);
}

@media (max-width: 860px) {
  .work-intro-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.work-intro-editorial {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 640px;
}

.work-kicker {
  font-family: var(--font-morganite);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber);
  display: block;
  line-height: 1;
}

.work-intro-sub {
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1.5;
  color: var(--text-ivory-secondary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.work-intro-action {
  flex-shrink: 0;
}

.work-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-amber);
  font-family: var(--font-morganite);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
  opacity: 0.85;
  animation: cueGentleBounce 2.4s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes cueGentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Scroll Track (Scroll distance for 8 cards / 7 transitions) */
.work-stack-track {
  position: relative;
  width: 100%;
  height: 620vh;
  z-index: 2;
  overflow: visible;
}

/* Pinned Sticky Stage (Fills viewport while scrolling through track) */
.work-stack-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Respect left scroll-number rail and right vertical nav */
  padding-left: clamp(48px, 4.5vw, 76px);
  padding-right: clamp(24px, 3.5vw, 40px);
  padding-top: calc(var(--header-height) + 12px);
  padding-bottom: 24px;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .work-stack-stage {
    /* Balance centering between left edge numbers and right desktop nav rail */
    padding-left: clamp(60px, 6vw, 100px);
    padding-right: calc(clamp(1.5rem, 2.75vw, 3rem) + 88px);
  }
}

/* Stage HUD Top: Kicker & Counter with Slim Progress Bar */
.work-stack-hud {
  position: absolute;
  top: calc(var(--header-height) + 10px);
  left: 0;
  width: 100%;
  padding-left: clamp(48px, 4.5vw, 76px);
  padding-right: clamp(24px, 3.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
  pointer-events: none;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .work-stack-hud {
    padding-left: clamp(60px, 6vw, 100px);
    padding-right: calc(clamp(1.5rem, 2.75vw, 3rem) + 88px);
  }
}

.work-hud-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-morganite);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-amber);
  box-shadow: 0 0 8px rgba(220, 163, 90, 0.6);
}

/* Progress Wrap */
.work-stack-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.work-stack-counter {
  font-family: var(--font-morganite);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--color-amber);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.work-counter-current {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-ivory);
}

.work-counter-divider {
  color: var(--divider-medium);
}

.work-counter-total {
  color: var(--text-ivory-muted);
}

/* Slim progress line */
.work-stack-progressbar {
  width: 80px;
  height: 2px;
  background-color: rgba(244, 240, 230, 0.14);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.work-stack-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, #dca35a, #edd38f);
  box-shadow: 0 0 6px rgba(220, 163, 90, 0.5);
  transition: width 0.08s ease-out;
}

/* Viewport for Stack of Landscape Cards */
.work-stack-viewport {
  position: relative;
  width: 100%;
  max-width: 1120px;
  height: min(580px, 64vh);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: center center;
  margin-top: clamp(34px, 5vh, 52px);
  margin-bottom: auto;
}

@media (max-width: 768px) {
  .work-stack-viewport {
    height: min(460px, 58vh);
    perspective: 800px;
    margin-top: clamp(26px, 4vh, 38px);
  }
}

/* Individual Physical Paper Card */
.work-stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  max-width: 1080px;
  transform-origin: center center;
  will-change: transform, opacity;
  border-radius: 4px;
  cursor: default;
  user-select: none;
  /* Transform driven by JS variables */
  transform: translate(calc(-50% + var(--card-tx, 0px)), calc(-50% + var(--card-ty, 0px)))
             scale(var(--card-scale, 1))
             rotate(var(--card-rot, 0deg));
  opacity: var(--card-opacity, 1);
  visibility: var(--card-vis, visible);
  pointer-events: var(--card-pe, auto);
  transition: box-shadow 0.3s ease;
}

/* Physical Paper Card Inner */
.work-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background-color: #0b0c0f;
  border: 1px solid rgba(244, 240, 230, 0.12);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.88),
    0 8px 24px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  box-sizing: border-box;
}

/* Card Media (Project Thumbnail Still) */
.work-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

/* Restrained Placeholder fallback */
.work-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  padding: var(--space-md);
  text-align: center;
  background: radial-gradient(circle at 50% 50%, #15161b 0%, #0d0e11 85%);
}

.card-placeholder-num {
  font-family: var(--font-morganite);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--color-amber);
}

.card-placeholder-label {
  font-family: var(--font-morganite);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-ivory-muted);
}

/* Scrim & Cinematic Vignette on the Card */
.work-card-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(7, 8, 10, 0.2) 0%, rgba(7, 8, 10, 0.6) 70%, #07080a 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.82) 0%, rgba(7, 8, 10, 0.15) 35%, rgba(7, 8, 10, 0.25) 60%, rgba(7, 8, 10, 0.94) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Tactile Paper Border Hairline */
.work-card-paper-edge {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 240, 230, 0.08);
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}

/* Stack Dimmer Overlay (Simulates paper shadow of cards above) */
.work-card-dimmer {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: rgba(7, 8, 10, 0.85);
  opacity: var(--card-dim, 0);
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.15s ease-out;
}

/* Card Header (Number & Category) */
.work-card-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-card-num {
  font-family: var(--font-morganite);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-amber);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.work-card-category {
  font-family: var(--font-morganite);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-ivory-secondary);
  background: rgba(14, 15, 19, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 240, 230, 0.1);
  padding: 4px 12px;
  border-radius: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Card Footer (Title, Tagline, and CTA Link) */
.work-card-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .work-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

.work-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-card-title {
  font-family: var(--font-vintage);
  font-size: clamp(1.85rem, 3.8vw, 3.4rem);
  color: var(--text-ivory);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95);
  margin: 0;
}

.work-card-tagline {
  font-family: var(--font-morganite);
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Dedicated Clear "VIEW PROJECT ↗" Button */
.work-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(8px, 1.2vw, 12px) clamp(16px, 2vw, 24px);
  background: rgba(14, 15, 19, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 163, 90, 0.45);
  color: #D9A052;
  font-family: var(--font-morganite);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.work-card-cta .cta-arrow {
  font-size: 1.15em;
  transition: transform var(--transition-fast);
}

.work-card-cta:hover,
.work-card-cta:focus-visible {
  background: #D9A052;
  color: #07080a;
  border-color: #D9A052;
  box-shadow: 0 0 24px rgba(220, 163, 90, 0.35);
  transform: translateY(-2px);
}

.work-card-cta:hover .cta-arrow,
.work-card-cta:focus-visible .cta-arrow {
  transform: translate(2px, -2px);
}

.work-card-cta:focus-visible {
  outline: 2px solid #edd38f;
  outline-offset: 3px;
}

/* Bottom Hint */
.work-stack-bottom-hud {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}

.stack-hint {
  font-family: var(--font-morganite);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-ivory-faint);
  user-select: none;
}

/* --------------------------------------------------------------------------
   Accessibility: prefers-reduced-motion for Work Stack
   Provide a simpler non-pinned project sequence
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .work-stack-track {
    height: auto !important;
  }

  .work-stack-stage {
    position: relative !important;
    height: auto !important;
    padding-top: var(--space-xl) !important;
    padding-bottom: var(--space-3xl) !important;
    display: block !important;
  }

  .work-stack-hud {
    position: relative !important;
    top: auto !important;
    margin-bottom: var(--space-xl) !important;
    padding: 0 !important;
  }

  .work-stack-progressbar {
    display: none !important;
  }

  .work-stack-viewport {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-3xl) !important;
    perspective: none !important;
  }

  .work-stack-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: min(520px, 60vh) !important;
  }

  .work-card-dimmer {
    display: none !important;
  }

  .work-stack-bottom-hud {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   15b. Full-Page Continuous Cinematic Showreel Background for Work Page
   Continuous full-bleed video background behind header, intro, grid, and footer
   -------------------------------------------------------------------------- */
.work-bg-showreel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #07080a;
}

.work-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.36;
  filter: contrast(1.08) brightness(0.85) saturate(0.9);
  pointer-events: none;
}

.work-bg-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: none;
  opacity: 0.36;
  filter: contrast(1.08) brightness(0.85) saturate(0.9);
}

/* Base dark translucent ambient scrim across the entire viewport */
.work-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(220, 163, 90, 0.03) 0%, rgba(7, 8, 10, 0.6) 55%, #07080a 95%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.85) 0%, rgba(7, 8, 10, 0.45) 35%, rgba(7, 8, 10, 0.72) 80%, #07080a 100%);
  pointer-events: none;
  z-index: 1;
}

/* Stronger black gradient behind the header, navigation, and top heading */
.work-bg-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 440px;
  background: linear-gradient(
    180deg,
    rgba(7, 8, 10, 0.96) 0%,
    rgba(7, 8, 10, 0.88) 160px,
    rgba(7, 8, 10, 0.5) 300px,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Gradient protecting right navigation rail on desktop */
@media (min-width: 1024px) {
  .work-bg-gradient-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 100%;
    background: linear-gradient(
      270deg,
      rgba(7, 8, 10, 0.85) 0%,
      rgba(7, 8, 10, 0.4) 60%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 2;
  }
}

/* Ensure Work page content sits cleanly above background video */
.work-intro-section,
.work-stack-track {
  position: relative;
  z-index: 2;
}

/* Seamless blend for Work page footer */
.work-page-footer {
  position: relative;
  z-index: 2;
  background-color: rgba(7, 8, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Accessibility: Respect prefers-reduced-motion with static poster fallback */
@media (prefers-reduced-motion: reduce) {
  .work-bg-video {
    display: none !important;
  }
  .work-bg-fallback-img {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   16. Acting Portfolio: Scroll-Driven Cinematic Sequence
   -------------------------------------------------------------------------- */
/* Compact Introduction Section */
.acting-intro-section {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-height) + clamp(12px, 1.8vw, 20px));
  padding-bottom: clamp(14px, 1.8vw, 22px);
}

.acting-intro-section .container {
  padding-left: clamp(48px, 4.5vw, 76px);
  padding-right: clamp(24px, 3.5vw, 40px);
}

@media (min-width: 1024px) {
  .acting-intro-section .container {
    padding-left: clamp(60px, 6vw, 100px);
    padding-right: calc(clamp(1.5rem, 2.75vw, 3rem) + 88px);
  }
}

.acting-intro-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  border-bottom: 1px solid rgba(244, 240, 230, 0.08);
  padding-bottom: clamp(10px, 1.2vw, 16px);
}

@media (max-width: 860px) {
  .acting-intro-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.acting-intro-editorial {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 640px;
}

.acting-intro-editorial .editorial-body {
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  line-height: 1.5;
  color: var(--text-ivory-secondary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.acting-intro-action {
  flex-shrink: 0;
}

.sequence-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-amber);
  font-family: var(--font-morganite);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
  opacity: 0.85;
  white-space: nowrap;
  animation: cueGentleBounce 2.4s ease-in-out infinite;
}

/* Scroll Sequence Container (Pinned Stage Track) */
.acting-sequence-container {
  position: relative;
  width: 100%;
  height: 320vh;
  background-color: var(--bg-deep);
}

/* Pinned / Sticky Stage */
.acting-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #07080a;
}

.stage-scrim {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(220, 163, 90, 0.04) 0%, rgba(14, 15, 18, 0.65) 60%, #07080a 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.85) 0%, rgba(7, 8, 10, 0.25) 25%, rgba(7, 8, 10, 0.25) 75%, rgba(7, 8, 10, 0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Stage HUD Top */
.stage-hud-top {
  position: absolute;
  top: calc(var(--header-height) + 12px);
  left: 0;
  width: 100%;
  padding-left: clamp(48px, 4.5vw, 76px);
  padding-right: clamp(24px, 3.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .stage-hud-top {
    padding-left: clamp(60px, 6vw, 100px);
    padding-right: calc(clamp(1.5rem, 2.75vw, 3rem) + 88px);
  }
}

.stage-counter {
  font-family: var(--font-morganite);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--color-amber);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.stage-counter .current-step {
  font-size: 1.6rem;
  color: var(--text-ivory);
  font-weight: 600;
}

.stage-counter .counter-divider {
  color: var(--divider-medium);
}

.stage-counter .total-steps {
  color: var(--text-ivory-muted);
}

/* Stage Viewport (Shared Visual Stage for All Slides) */
.stage-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Each Slide occupies the same visual stage */
.stage-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + clamp(20px, 3.5vh, 34px)) var(--container-gutter) clamp(16px, 3vh, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stage-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide-content-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 960px;
  width: 100%;
  height: 100%;
}

.slide-media-container {
  position: relative;
  height: min(70vh, 720px);
  aspect-ratio: 4 / 5;
  background-color: var(--bg-charcoal);
  border: 1px solid var(--divider-medium);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

@media (max-width: 640px) {
  .slide-media-container {
    height: min(58vh, 460px);
  }
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.04) brightness(0.96);
  transform-origin: center center;
  will-change: transform;
}

.slide-img.is-missing {
  display: none !important;
}

/* Clean Archival Fallback Slate (No broken icons, no raw filenames) */
.slide-fallback-slate {
  display: none;
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(220, 163, 90, 0.08) 0%, rgba(14, 15, 18, 0.96) 65%, #07080a 100%);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  border: 1px solid var(--divider-hairline);
}

.slide-fallback-slate.is-visible {
  display: flex;
}

.fallback-slate-card {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-lg);
  background-color: rgba(7, 8, 10, 0.7);
  border: 1px solid var(--divider-hairline);
}

.fallback-tag {
  font-family: var(--font-morganite);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--color-amber);
  text-transform: uppercase;
}

.fallback-title {
  font-family: var(--font-vintage);
  font-size: 1.75rem;
  color: var(--text-ivory);
  line-height: 1.15;
}

.fallback-desc {
  font-size: 0.875rem;
  color: var(--text-ivory-muted);
  line-height: 1.5;
}

/* Minimal Editorial Caption */
.slide-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl) var(--space-md) var(--space-sm);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 10, 0.85) 50%, rgba(7, 8, 10, 0.98) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.caption-kicker {
  font-family: var(--font-morganite);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--color-amber);
  text-transform: uppercase;
}

.caption-headline {
  font-family: var(--font-vintage);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  color: var(--text-ivory);
  line-height: 1.1;
}

.caption-sub {
  font-size: 0.9rem;
  color: var(--text-ivory-secondary);
}

/* Stage HUD Bottom */
.stage-hud-bottom {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  width: 100%;
  padding: 0 var(--container-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  z-index: 10;
  pointer-events: none;
}

.stage-progress-track {
  width: 140px;
  height: 2px;
  background-color: var(--divider-medium);
  position: relative;
  overflow: hidden;
}

.stage-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--color-amber);
  transition: width 0.08s linear;
}

.stage-scroll-hint {
  font-family: var(--font-morganite);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-ivory-muted);
}

/* Unified Final Section: Casting Materials / Contact */
.acting-unified-section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-4xl);
}

.casting-unified-card {
  padding: var(--space-2xl) var(--space-xl);
  background-color: var(--bg-charcoal);
  border: 1px solid var(--divider-hairline);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  text-align: left;
}

@media (min-width: 768px) {
  .casting-unified-card {
    padding: var(--space-3xl) var(--space-2xl);
  }
}

.casting-unified-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: 760px;
}

.casting-unified-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.download-fallback-notice {
  display: none;
  width: 100%;
}

.download-fallback-notice.is-visible {
  display: block;
  animation: fadeInNotice 0.3s ease forwards;
}

@keyframes fadeInNotice {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdf-fallback-card {
  padding: var(--space-sm) var(--space-md);
  background-color: rgba(20, 21, 26, 0.95);
  border-left: 2px solid var(--color-amber);
  border-top: 1px solid var(--divider-hairline);
  border-right: 1px solid var(--divider-hairline);
  border-bottom: 1px solid var(--divider-hairline);
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  margin-top: var(--space-xs);
  width: 100%;
}

.pdf-fallback-badge {
  font-family: var(--font-morganite);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.pdf-fallback-msg {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-ivory-secondary);
}

.pdf-fallback-link {
  color: var(--color-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdf-fallback-link:hover {
  color: var(--color-amber-hover);
}

/* --------------------------------------------------------------------------
   17. About Page Components
   -------------------------------------------------------------------------- */
.about-hero {
  padding-top: calc(var(--header-height) + clamp(14px, 2vw, 24px));
  padding-bottom: clamp(2.5rem, 4.5vw, 4rem);
}

.about-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

@media (min-width: 900px) {
  .about-editorial-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2.5rem, 4vw, 4rem);
  }
}

.about-portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-surface);
  border: 1px solid var(--divider-hairline);
  overflow: hidden;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.about-headline {
  font-family: var(--font-vintage);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  color: var(--text-ivory);
  letter-spacing: -0.01em;
  margin: 0;
}

.about-quote {
  font-family: var(--font-vintage);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.35;
  color: var(--text-ivory);
  font-style: italic;
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-amber-muted);
  margin: var(--space-3xs) 0 0 0;
}

.gear-category-card {
  padding: var(--space-lg);
  background-color: var(--bg-charcoal);
  border: 1px solid var(--divider-hairline);
}

/* --------------------------------------------------------------------------
   18. Contact Form & Inquiry Components
   -------------------------------------------------------------------------- */
.contact-hero {
  padding-top: calc(var(--header-height) + clamp(12px, 1.8vw, 20px));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.contact-intro-compact {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-headline {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  margin: 0;
}

.contact-box {
  background-color: var(--bg-charcoal);
  border: 1px solid var(--divider-hairline);
  padding: clamp(1rem, 2.2vw, 1.6rem) clamp(1rem, 2.8vw, 2rem) 1.1rem;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

@media (min-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-label {
  font-family: var(--font-morganite);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--divider-medium);
  color: var(--text-ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 0;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-amber);
}

.form-textarea {
  min-height: 95px;
  resize: vertical;
}

.form-status {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: var(--color-amber-hover);
  border-left: 3px solid var(--color-amber);
  border-top: 1px solid var(--color-amber-muted);
  border-right: 1px solid var(--color-amber-muted);
  border-bottom: 1px solid var(--color-amber-muted);
  background-color: var(--color-amber-subtle);
}

.form-status.is-error {
  color: #ff9e9e;
  border-left: 3px solid #ff6464;
  border-top: 1px solid rgba(255, 100, 100, 0.4);
  border-right: 1px solid rgba(255, 100, 100, 0.4);
  border-bottom: 1px solid rgba(255, 100, 100, 0.4);
  background-color: rgba(255, 60, 60, 0.08);
}

/* Alternative Contact Options (Equal width row on desktop, stacked on mobile) */
.contact-alt-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 600px) {
  .contact-alt-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: flex-start;
  }
}

.alt-contact-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.contact-alt-email {
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text-ivory);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.15rem;
  margin-bottom: 0.45rem;
  transition: color var(--transition-fast);
  line-height: 1.35;
}

.contact-alt-email:hover,
.contact-alt-email:focus-visible {
  color: var(--color-amber);
}

.contact-alt-btn {
  padding: 0.45rem 1.15rem;
  font-family: var(--font-morganite);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  min-width: 155px;
  width: fit-content;
  line-height: 1.2;
}

/* Contact Closing Section */
.contact-closing-section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-4xl);
  border-top: 1px solid var(--divider-hairline);
}

.contact-closing-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 680px;
}

.contact-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   19. Accessibility & 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;
  }
}
