/* ==========================================================================
   LAKSUP SANTAVANOND — GRADUATION INVITATION
   Stylesheet
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  --parchment-bg: #F7F6F5;
  --parchment-surface: #ECE8E0;
  --parchment-card: #FFFFFF;
  --parchment-ink: #12100E;
  --parchment-muted: #463C33;
  --parchment-subtle: #5C5044;
  --parchment-border: rgba(18, 16, 14, 0.14);

  --noir-bg: #08080A;
  --noir-surface: #121318;
  --noir-card: #16181E;
  --noir-ink: #F4F1EA;
  --noir-muted: #C6C0B4;
  --noir-subtle: #A39C8E;
  --noir-border: rgba(244, 241, 234, 0.13);

  --amber-gold: #E5A93C;
  --crimson-set: #9E1B24;
  --crimson-ink: #8F1820;
  --sigil-lime: #D7F24A;

  --accent-light: #9E1B24;
  --accent-dark: #E5A93C;
  --accent-active: var(--accent-dark);
  --scrollbar-track-light: #EAE6DF;
  --scrollbar-thumb-light: #8A7E70;
  --scrollbar-track-dark: #0D0E11;
  --scrollbar-thumb-dark: #4A463F;
  --scrollbar-track: var(--scrollbar-track-dark);
  --scrollbar-thumb: var(--scrollbar-thumb-dark);

  --font-display: 'Playfair Display', 'Didot', Georgia, serif;
  --font-script: 'Mea Culpa', 'Snell Roundhand', cursive;
  --font-sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container-max: 1320px;
  --gutter: clamp(1.5rem, 4.5vw, 3.75rem);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  color-scheme: light dark;
  accent-color: var(--accent-active);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

@media (prefers-color-scheme: light) {
  :root {
    --accent-active: var(--accent-light);
    --scrollbar-track: var(--scrollbar-track-light);
    --scrollbar-thumb: var(--scrollbar-thumb-light);
  }
}

@supports (color: light-dark(white, black)) {
  :root {
    --accent-active: light-dark(var(--accent-light), var(--accent-dark));
    --scrollbar-track: light-dark(var(--scrollbar-track-light), var(--scrollbar-track-dark));
    --scrollbar-thumb: light-dark(var(--scrollbar-thumb-light), var(--scrollbar-thumb-dark));
  }
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
  }
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }
}

/* Color grades */
html[data-mode="dual"],
html[data-mode="editorial"] {
  --hero-bg: var(--parchment-bg);
  --hero-surface: var(--parchment-surface);
  --hero-card: var(--parchment-card);
  --hero-ink: var(--parchment-ink);
  --hero-muted: var(--parchment-muted);
  --hero-subtle: var(--parchment-subtle);
  --hero-border: var(--parchment-border);
  --hero-accent: var(--crimson-ink);
  --hero-pill-bg: #221C18;
  --hero-pill-text: #F7F6F5;
}

html[data-mode="dual"],
html[data-mode="noir"] {
  --stage-bg: var(--noir-bg);
  --stage-surface: var(--noir-surface);
  --stage-card: var(--noir-card);
  --stage-ink: var(--noir-ink);
  --stage-muted: var(--noir-muted);
  --stage-subtle: var(--noir-subtle);
  --stage-border: var(--noir-border);
  --stage-accent: var(--amber-gold);
  --stage-accent-soft: rgba(229, 169, 60, 0.12);
  --stage-accent-line: rgba(229, 169, 60, 0.36);
}

html[data-mode="noir"] {
  --hero-bg: var(--noir-bg);
  --hero-surface: var(--noir-surface);
  --hero-card: var(--noir-card);
  --hero-ink: var(--noir-ink);
  --hero-muted: var(--noir-muted);
  --hero-subtle: var(--noir-subtle);
  --hero-border: var(--noir-border);
  --hero-accent: #F5C451;
  --hero-pill-bg: #F4F1EA;
  --hero-pill-text: #08080A;
}

html[data-mode="editorial"] {
  --stage-bg: var(--parchment-bg);
  --stage-surface: var(--parchment-surface);
  --stage-card: var(--parchment-card);
  --stage-ink: var(--parchment-ink);
  --stage-muted: var(--parchment-muted);
  --stage-subtle: var(--parchment-subtle);
  --stage-border: var(--parchment-border);
  --stage-accent: var(--crimson-ink);
  --stage-accent-soft: rgba(143, 24, 32, 0.07);
  --stage-accent-line: rgba(143, 24, 32, 0.3);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--noir-bg);
  color: var(--noir-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  caret-color: var(--amber-gold);
  overflow-x: clip;
  max-width: 100%;
}

html.intro-active,
html.intro-active body {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100% !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background-color: var(--stage-bg);
  color: var(--stage-ink);
  line-height: 1.55;
  transition: background-color 0.6s var(--ease-out-expo), color 0.6s var(--ease-out-expo);
}

::selection {
  background-color: var(--amber-gold);
  color: #08080A;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.24em;
}

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

:focus-visible {
  outline: 2px solid var(--amber-gold);
  outline-offset: 4px;
}

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

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Film grain */
.film-grain {
  position: fixed;
  inset: -50%;
  z-index: 150;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(6) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ==========================================================================
   3. INTRO LEADER / INVITATION GATE (IMG_0163 BACKGROUND + BLACK TINT)
   ========================================================================== */
.intro-leader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  color: #F4F1EA;
  background-color: #08080A;
  touch-action: none;
  overscroll-behavior: none;
  overflow: hidden;
  transition: opacity 0.85s var(--ease-out-expo), visibility 0.85s linear;
}

.intro-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.intro-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: contrast(1.08) saturate(1.05);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out-expo), filter 0.85s var(--ease-out-expo);
}

.intro-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(8, 8, 10, 0.58) 0%, rgba(8, 8, 10, 0.88) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0.48) 50%, rgba(8, 8, 10, 0.85) 100%);
}

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem var(--gutter);
  text-align: center;
  max-width: 680px;
  width: 100%;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.leader-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.leader-presents {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E5A93C;
}

.leader-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  color: #E2DDD3;
}

.leader-title-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.45rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-size: clamp(2.35rem, 8.5vw, 4.65rem);
  line-height: 0.95;
  color: #F4F1EA;
}

.leader-name-row {
  display: block;
}

.leader-open {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  background: var(--amber-gold);
  color: #08080A;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(244, 241, 234, 0.15);
  transition: transform 0.25s var(--ease-out-expo), background-color 0.25s ease, box-shadow 0.25s ease;
  touch-action: manipulation;
}

.leader-open:hover {
  background: #F3BC52;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(229, 169, 60, 0.35);
}

.leader-open:active {
  transform: translateY(0);
}

.leader-note {
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 2.2vw, 0.75rem);
  letter-spacing: 0.08em;
  color: #C6C0B4;
  text-transform: uppercase;
  max-width: 90%;
  line-height: 1.5;
}

.intro-leader.is-opening {
  opacity: 0;
  pointer-events: none;
}

.intro-leader.is-opening .intro-bg img {
  transform: scale(1.08);
  filter: blur(8px) contrast(1.08);
}

.intro-leader.is-opening .intro-content {
  opacity: 0;
  transform: scale(0.96) translateY(-18px);
}

.intro-leader.is-done {
  display: none !important;
}

/* ==========================================================================
   4. HEADER HUD
   ========================================================================== */
.hud-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.8rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 241, 234, 0.1);
  color: #F4F1EA;
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease-out-expo);
}

.is-ready .hud-header {
  transform: none;
}

.hud-header.is-hidden {
  transform: translateY(-100%);
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hud-monogram {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hud-monogram:hover {
  border-color: var(--amber-gold);
  color: var(--amber-gold);
}

.hud-timecode {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #C6C0B4;
  letter-spacing: 0.04em;
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.hud-nav a {
  position: relative;
  padding: 0.25rem 0;
  color: #C6C0B4;
  transition: color 0.2s ease;
}

.hud-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--amber-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}

.hud-nav a:hover,
.hud-nav a.is-current {
  color: #F4F1EA;
}

.hud-nav a:hover::after,
.hud-nav a.is-current::after {
  transform: scaleX(1);
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #F4F1EA;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(229, 169, 60, 0.5);
}

.hud-btn .sound-mute {
  display: none;
}

.hud-btn[aria-pressed="false"] .sound-mute {
  display: inline;
}

.hud-btn[aria-pressed="false"] .sound-wave {
  display: none;
}

.hud-btn--stage {
  color: var(--stage-ink);
  background: var(--stage-surface);
  border-color: var(--stage-border);
}

.hud-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #F4F1EA;
  color: #08080A;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out-expo);
}

.hud-cta:hover {
  background: var(--amber-gold);
  transform: translateY(-1px);
}

.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 101;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--amber-gold);
  transform-origin: 0 50%;
  transform: scaleX(var(--page-p, 0));
}

/* ==========================================================================
   5. SCENE 01: HERO & OVERLAID DUAL-FONT LOCKUP
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6.75rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
  transition: background-color 0.6s var(--ease-out-expo), color 0.6s var(--ease-out-expo);
}

.hero-dissolve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(8, 8, 10, 0.08));
}

.hero-constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.draw-line {
  fill: none;
  stroke: var(--hero-accent);
  stroke-opacity: 0.18;
  stroke-width: 1;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  transition: stroke-dashoffset 2.4s var(--ease-out-expo);
}

.draw-line--slow {
  transition-duration: 3.2s;
}

.is-ready .draw-line {
  stroke-dashoffset: 0;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 1.5rem 0;
}

.hero-grid > *,
.slate-container > *,
.call-sheets-grid > *,
.tracker-inner > *,
.credits-top-grid > * {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

/* Signature Dual-Font Lockup: Bold readable serif + Overlaid dynamic script */
.hero-lockup {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  margin: 1.6rem 0 1.85rem;
  padding: 0.5rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.65rem, 6.2vw, 5.5rem);
  line-height: 0.9;
  user-select: none;
}

.lockup-row {
  position: relative;
  display: block;
  overflow: visible;
}

.lockup-serif {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  text-transform: uppercase;
  font-size: 1em;
  letter-spacing: -0.02em;
  line-height: 0.94;
  color: var(--hero-ink);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.95s var(--ease-out-expo), opacity 0.85s ease;
}

.lockup-row:nth-child(2) .lockup-serif {
  transition-delay: 0.14s;
}

.is-ready .lockup-serif {
  transform: translateY(0);
  opacity: 1;
}

/* Script overlaid directly ON TOP OF the main serif text (Ref style) */
.lockup-script {
  position: absolute;
  z-index: 4;
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  color: var(--hero-accent);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: none;
  opacity: 0;
  transform: translateY(10px) rotate(-6deg) scale(0.96);
  transition: opacity 0.9s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

html[data-mode="noir"] .lockup-script {
  color: #F5C451;
}

.lockup-script--a {
  top: -0.32em;
  left: 0.08em;
  font-size: clamp(2.35rem, 4.9vw, 4.35rem);
  transition-delay: 0.35s;
}

.lockup-script--b {
  bottom: -0.24em;
  right: 0.02em;
  font-size: clamp(2.45rem, 5.2vw, 4.65rem);
  transform: translateY(10px) rotate(-5deg) scale(0.96);
  transition-delay: 0.52s;
}

.is-ready .lockup-script--a {
  opacity: 1;
  transform: translateY(0) rotate(-6deg) scale(1);
}

.is-ready .lockup-script--b {
  opacity: 1;
  transform: translateY(0) rotate(-5deg) scale(1);
}

.hero-degree {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 500;
  color: var(--hero-ink);
  max-width: 50ch;
  margin-bottom: 0.45rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--hero-muted);
  margin-bottom: 1.5rem;
}

.hero-pills-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.85rem;
}

.word-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--hero-surface);
  border: 1px solid var(--hero-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--hero-ink);
}

.word-pill-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--hero-accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  background: var(--hero-pill-bg);
  color: var(--hero-pill-text);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-out-expo), background-color 0.25s ease, color 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--hero-accent);
  color: #F7F6F5;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.92rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--hero-border);
  color: var(--hero-ink);
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--hero-accent);
  background: var(--hero-surface);
}

.hero-intro-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
  transition-delay: var(--d, 0.3s);
}

.is-ready .hero-intro-item {
  opacity: 1;
  transform: none;
}

/* Hero Portrait Frame */
.hero-portrait-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.hero-portrait-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: #141210;
  box-shadow: 0 28px 60px -18px rgba(14, 12, 10, 0.35);
  border: 1px solid var(--hero-border);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out-quart);
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease-out-expo);
}

.hero-portrait-frame:hover img {
  transform: scale(1.06);
}

.viewfinder-hud {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.vf-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(244, 241, 234, 0.75);
  border-style: solid;
}

.vf-corner--tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.vf-corner--tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.vf-corner--bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.vf-corner--br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

.vf-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.vf-badge {
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(8, 8, 10, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #F4F1EA;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.hero-floating-tag {
  margin-top: -1.1rem;
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--hero-card);
  color: var(--hero-ink);
  border: 1px solid var(--hero-border);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.18);
  font-size: 0.8125rem;
  font-weight: 500;
}

.hero-floating-tag svg {
  color: var(--hero-accent);
}

.hero-footer-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hero-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hero-subtle);
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--hero-ink);
  font-weight: 500;
}

.scroll-cue-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: pulse-line 2.2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { transform: scaleX(0.45); opacity: 0.5; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* Shared Section Headings with Ref Dual-Font Overlay */
.section-heading {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.15rem, 4.6vw, 3.85rem);
  letter-spacing: -0.015em;
  line-height: 0.98;
  color: var(--stage-ink);
  padding: 0.35em 0 0.15em;
}

.section-heading--light {
  color: #F4F1EA;
}

.heading-script {
  position: absolute;
  top: -0.18em;
  left: 0.06em;
  z-index: 2;
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  color: #F5C451;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-5deg);
  text-shadow: none;
}

html[data-mode="editorial"] .heading-script {
  color: var(--crimson-ink);
  text-shadow: none;
}

/* Always keep handwriting yellow on dark/black backgrounds even in editorial mode */
html[data-mode="editorial"] .section-heading--light .heading-script,
.section-heading--light .heading-script {
  color: #F5C451;
  text-shadow: none;
}

.heading-script--inline {
  position: relative;
  top: auto;
  left: auto;
  z-index: 2;
  display: inline-block;
  margin-left: -0.42em;
  vertical-align: baseline;
  font-size: 1.14em;
  transform: rotate(-6deg) translateY(0.14em);
}

/* ==========================================================================
   6. SCENE 02: OPENING TITLES (PINNED SCROLLYTELLING)
   ========================================================================== */
.scrolly {
  position: relative;
  width: 100%;
}

.scrolly-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.titles-section {
  height: 290vh;
  background: #08080A;
  color: #F4F1EA;
}

.titles-sticky {
  display: grid;
  place-items: center;
}

.titles-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.titles-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.48;
  filter: contrast(1.06) saturate(0.95);
  transform: scale(calc(1.02 + var(--p, 0) * 0.1));
  transition: transform 0.15s linear;
}

.titles-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at center, rgba(8, 8, 10, 0.32) 0%, rgba(8, 8, 10, 0.85) 88%),
    linear-gradient(to bottom, #08080A 0%, transparent 18%, transparent 82%, #08080A 100%);
}

.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(36px, 7vh, 68px);
  background: #050507;
  z-index: 3;
}

.letterbox--top {
  top: 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.1);
}

.letterbox--bottom {
  bottom: 0;
  border-top: 1px solid rgba(244, 241, 234, 0.1);
}

.titles-stack {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 980px;
  padding: 0 var(--gutter);
  display: grid;
  place-items: center;
  text-align: center;
}

.titles-line {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(6px);
  transition:
    opacity 0.65s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo),
    filter 0.65s var(--ease-out-expo);
  pointer-events: none;
}

.titles-line.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.titles-serif {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 5.4vw, 4.5rem);
  letter-spacing: -0.015em;
  line-height: 0.98;
  color: #F4F1EA;
}

.titles-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  color: #F5C451;
  line-height: 0.95;
  transform: rotate(-4deg);
  text-shadow: none;
}

.titles-hud {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(clamp(36px, 7vh, 68px) + 1.25rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #C6C0B4;
}

.titles-progress {
  flex: 1;
  max-width: 320px;
  height: 2px;
  background: rgba(244, 241, 234, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.titles-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--amber-gold);
  transform-origin: left center;
  transform: scaleX(var(--p, 0.25));
}

/* ==========================================================================
   7. SCENE 03: INTERACTIVE 3D FILM SLATE (COMPACT STUDIO RATIO)
   ========================================================================== */
.slate-section {
  position: relative;
  padding: clamp(5rem, 10vh, 8.5rem) var(--gutter);
  background: var(--stage-bg);
  color: var(--stage-ink);
  border-top: 1px solid var(--stage-border);
}

.slate-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.slate-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.slate-description {
  font-size: 1.05rem;
  color: var(--stage-muted);
  max-width: 44ch;
}

.slate-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-clap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  background: var(--amber-gold);
  color: #08080A;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s var(--ease-out-expo), background-color 0.2s ease;
}

.btn-clap:hover {
  background: #F2BA4E;
  transform: translateY(-2px);
}

.slate-status-readout {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stage-subtle);
}

.slate-3d-stage {
  perspective: 1400px;
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
}

/* Authentic 11" x 8.6" studio clapperboard proportion (~1.28:1) */
.clapperboard-3d {
  width: 100%;
  max-width: 452px;
  border-radius: 14px;
  background: #14161B;
  color: #F4F1EA;
  border: 1px solid rgba(244, 241, 234, 0.2);
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out-quart), box-shadow 0.35s ease;
}

.clapperboard-3d:hover {
  box-shadow:
    0 36px 70px -15px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(229, 169, 60, 0.38);
}

.clapper-top-arm {
  height: 32px;
  border-radius: 13px 13px 2px 2px;
  overflow: hidden;
  transform-origin: 18px 100%;
  transform: rotate(-13deg);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.clapperboard-3d.is-snapped .clapper-top-arm {
  transform: rotate(0deg);
  transition: transform 0.09s cubic-bezier(0.55, 0.05, 0.85, 0.2);
}

.clapperboard-3d.is-lifting .clapper-top-arm {
  transform: rotate(-19deg);
  transition: transform 0.22s var(--ease-out-expo);
}

.clapper-bottom-bar {
  height: 30px;
  overflow: hidden;
  border-bottom: 2px solid rgba(244, 241, 234, 0.24);
}

.clapper-bars-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.clapper-body {
  padding: 1rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.clapper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid rgba(244, 241, 234, 0.34);
  border-radius: 8px;
  overflow: hidden;
}

.clapper-cell {
  padding: 0.58rem 0.85rem;
  border-right: 1.5px solid rgba(244, 241, 234, 0.26);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.clapper-cell--prod {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: 1.5px solid rgba(244, 241, 234, 0.26);
  padding: 0.56rem 0.85rem;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
}

.clapper-cell:last-child {
  border-right: none;
}

.clapper-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A39C8E;
}

.clapper-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.1;
  color: #F4F1EA;
}

.clapper-val--prod {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  letter-spacing: -0.01em;
}

.clapper-val.accent {
  color: #F5C451;
}

.clapper-meta-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.1rem;
}

.clapper-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.14);
}

.clapper-meta-row span:first-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #A39C8E;
}

.clapper-meta-row span:last-child {
  font-size: 0.88rem;
  font-weight: 500;
  color: #F4F1EA;
}

/* ==========================================================================
   8. SCENE 04: SHARED FRAMES — PINNED SCROLLYTELLING 3D CAROUSEL
   ========================================================================== */
.story-section {
  position: relative;
  height: 440vh;
  background: var(--stage-bg);
  color: var(--stage-ink);
  border-top: 1px solid var(--stage-border);
}

.story-sticky {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.8rem 0 1.35rem;
}

.story-header-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.story-manifesto {
  max-width: 46ch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem 1.25rem;
  color: var(--stage-muted);
  font-size: 0.94rem;
}

.story-manifesto p {
  max-width: 38ch;
}

.btn-stage-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  background: var(--stage-ink);
  color: var(--stage-bg);
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.25s var(--ease-out-expo), background-color 0.25s ease, color 0.25s ease;
}

.btn-stage-cta:hover {
  background: var(--amber-gold);
  color: #08080A;
  transform: translateY(-2px);
}

/* Unclipped 3D Carousel inside Sticky Scrollytelling Stage */
.carousel-viewport {
  position: relative;
  width: 100%;
  height: clamp(380px, 53vh, 490px);
  display: grid;
  place-items: center;
  perspective: 1500px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.carousel-glow {
  position: absolute;
  left: 50%;
  width: min(68vw, 680px);
  height: 160px;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.24;
  pointer-events: none;
  background: rgb(var(--active-glow, 229, 169, 60));
  transition: background-color 0.5s ease;
}

.carousel-glow--top { top: 0; }
.carousel-glow--bottom { bottom: 0; }

.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.frame-card {
  position: absolute;
  width: clamp(235px, 23vw, 315px);
  height: clamp(335px, 46vh, 430px);
  border-radius: 14px;
  overflow: hidden;
  background: #121318;
  border: 1px solid rgba(244, 241, 234, 0.22);
  box-shadow: 0 24px 52px -12px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.frame-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  pointer-events: none;
}

.frame-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 10, 0.55) 0%,
    rgba(8, 8, 10, 0) 26%,
    rgba(8, 8, 10, 0.08) 54%,
    rgba(8, 8, 10, 0.88) 84%,
    rgba(8, 8, 10, 0.96) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.frame-card__top {
  position: relative;
  z-index: 2;
  padding: 0.8rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.9);
}

.frame-card__bottom {
  position: relative;
  z-index: 2;
  padding: 0.95rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  color: #F4F1EA;
}

.frame-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: #F4F1EA;
}

.frame-card__caption {
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(244, 241, 234, 0.88);
}

.carousel-lens {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(24px, 7vw, 110px);
  pointer-events: none;
  z-index: 4;
}

.carousel-lens--l {
  left: 0;
  background: linear-gradient(to right, var(--stage-bg), transparent);
}

.carousel-lens--r {
  right: 0;
  background: linear-gradient(to left, var(--stage-bg), transparent);
}

.carousel-controls-bar {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.carousel-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--stage-surface);
  color: var(--stage-ink);
  border: 1px solid var(--stage-border);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.icon-circle-btn:hover {
  border-color: var(--stage-accent);
  transform: translateY(-1px);
}

.carousel-scroll-progress {
  flex: 1;
  max-width: 340px;
  height: 2px;
  background: var(--stage-border);
  border-radius: 999px;
  overflow: hidden;
}

.carousel-scroll-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--stage-accent);
  transform-origin: left center;
  transform: scaleX(var(--story-p, 0.1));
}

.carousel-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stage-subtle);
}

.contact-sheet-strip {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.contact-sheet-rail {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.contact-sheet-rail::-webkit-scrollbar {
  display: none;
}

.sheet-thumb {
  width: 66px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid transparent;
  opacity: 0.46;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.sheet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-thumb:hover {
  opacity: 0.82;
}

.sheet-thumb.is-active {
  opacity: 1;
  border-color: var(--stage-accent);
  transform: translateY(-2px);
}

/* ==========================================================================
   10. SCENE 06: PRODUCTION SCHEDULE (CALL SHEETS)
   ========================================================================== */
.schedule-section {
  position: relative;
  padding: clamp(5rem, 10vh, 8.5rem) var(--gutter);
  background: var(--stage-surface);
  color: var(--stage-ink);
  border-top: 1px solid var(--stage-border);
  border-bottom: 1px solid var(--stage-border);
}

.schedule-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.schedule-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.schedule-notice-pill {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  font-size: 0.88rem;
  color: var(--stage-muted);
}

.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stage-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.legend-swatch--open {
  background: var(--stage-accent);
  box-shadow: 0 0 0 3px var(--stage-accent-soft);
}

.legend-swatch--closed {
  background: var(--stage-subtle);
  opacity: 0.3;
}

.call-sheets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.call-sheet {
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.25);
}

.call-sheet-head {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--stage-border);
}

.call-sheet-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.call-sheet-tag {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--stage-accent-soft);
  color: var(--stage-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.call-sheet-stamp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stage-subtle);
}

.call-sheet-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.call-sheet-date {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--stage-ink);
  margin-bottom: 0.5rem;
}

.call-sheet-rec {
  font-size: 0.88rem;
  color: var(--stage-muted);
  margin-bottom: 0.65rem;
}

.call-sheet-venue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stage-subtle);
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--stage-border);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Open Meetup Window: Crisp & Prominent */
.timeline-item.is-open {
  background: var(--stage-accent-soft);
  border-color: var(--stage-accent-line);
  border-left: 3.5px solid var(--stage-accent);
  opacity: 1;
}

/* Unavailable Inside-Hall Window: Low opacity so guests know instantly */
.timeline-item.is-closed {
  opacity: 0.26;
  filter: grayscale(1);
  background: transparent;
  border-style: dashed;
}

.timeline-item.is-closed:hover {
  opacity: 0.45;
}

.timeline-hours {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--stage-accent);
}

.timeline-item.is-closed .timeline-hours {
  color: var(--stage-subtle);
  text-decoration: line-through;
}

.timeline-desc {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.timeline-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--stage-ink);
}

.timeline-desc small {
  font-size: 0.78rem;
  color: var(--stage-muted);
}

.timeline-status {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--stage-accent);
  color: #08080A;
  font-weight: 600;
}

html[data-mode="editorial"] .timeline-status {
  color: #F7F6F5;
}

.timeline-item.is-closed .timeline-status {
  background: transparent;
  border: 1px solid var(--stage-border);
  color: var(--stage-subtle);
}

.call-sheet-foot {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.meetup-highlight-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px dashed var(--stage-border);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--stage-muted);
}

.meetup-highlight-box strong {
  color: var(--stage-accent);
  font-weight: 600;
}

.btn-calendar {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  background: var(--stage-ink);
  color: var(--stage-bg);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s var(--ease-out-expo);
}

.btn-calendar:hover {
  background: var(--amber-gold);
  color: #08080A;
  transform: translateY(-2px);
}

/* ==========================================================================
   11. SCENE 07 & 08: CAMPUS TRACKER & END CREDITS
   ========================================================================== */
.tracker-section {
  padding: clamp(5rem, 10vh, 8.5rem) var(--gutter);
  background: var(--stage-bg);
  color: var(--stage-ink);
}

.tracker-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.tracker-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--stage-surface);
  border: 1px solid var(--stage-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stage-accent);
}

.tracker-venue-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
}

.tracker-tip {
  font-size: 0.98rem;
  color: var(--stage-muted);
  max-width: 46ch;
}

.tracker-tip strong {
  color: var(--stage-ink);
}

.campus-map-card {
  border-radius: 16px;
  overflow: hidden;
  background: #0D0E12;
  border: 1px solid rgba(244, 241, 234, 0.16);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.5);
}

.campus-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-hotspot {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.map-hotspot:hover {
  opacity: 0.85;
}

.map-hud-overlay {
  padding: 0.85rem 1.15rem;
  background: #12141A;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #C6C0B4;
}

/* Footer Credits */
.credits-footer {
  padding: clamp(5rem, 10vh, 8rem) var(--gutter) 4rem;
  background: #060608;
  color: #F4F1EA;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
}

.credits-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.credits-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}

.contact-links-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.contact-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.12);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-out-expo);
}

.contact-card-link:hover {
  border-color: var(--amber-gold);
  background: rgba(229, 169, 60, 0.08);
  transform: translateX(4px);
}

.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A39C8E;
}

.contact-card-val {
  font-weight: 600;
  font-size: 1rem;
  color: #F4F1EA;
}

.film-credits-roll {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.credit-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dotted rgba(244, 241, 234, 0.15);
}

.credit-role {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A39C8E;
}

.credit-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #F4F1EA;
  text-align: right;
}

.signoff-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: clamp(3.5rem, 8vh, 5.5rem) 2rem;
  margin-top: 2.75rem;
  border: 1px solid rgba(244, 241, 234, 0.16);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #070709;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.signoff-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.signoff-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.42;
  filter: contrast(1.06) saturate(1.05);
}

.signoff-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(7, 7, 9, 0.35) 0%, rgba(7, 7, 9, 0.85) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.65) 0%, rgba(7, 7, 9, 0.28) 50%, rgba(7, 7, 9, 0.78) 100%);
}

.signoff-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.signoff-quote {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 7.2vw, 5.5rem);
  color: #F5C451;
  line-height: 1.05;
  text-shadow: none;
}

.signoff-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #EAE4D7;
}

/* ==========================================================================
   12. SCROLL APPEAR ANIMATIONS & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity 0.85s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo),
    filter 0.85s var(--ease-out-expo);
  transition-delay: var(--d, 0s);
}

.js [data-reveal="up"] {
  transform: translateY(28px);
}

.js [data-reveal="scale"] {
  transform: translateY(18px) scale(0.95);
}

.js [data-reveal="fade"] {
  transform: translateY(10px);
}

.js [data-reveal="write"] {
  transform: translateY(16px) rotate(-3deg);
  filter: blur(4px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@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;
  }
  .js [data-reveal],
  .hero-intro-item,
  .lockup-serif,
  .lockup-script {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 980px) {
  .hud-nav {
    display: none;
  }
  .hero-grid,
  .slate-container,
  .call-sheets-grid,
  .tracker-inner,
  .credits-top-grid {
    grid-template-columns: 1fr;
  }
  .hero-portrait-frame {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .leader-title-name {
    font-size: clamp(1.65rem, 7.4vw, 2.45rem);
    line-height: 1.02;
  }
  .leader-open {
    padding: 0.9rem 1.65rem;
    font-size: 0.95rem;
  }
  .hud-timecode {
    display: none;
  }
  .hud-header {
    padding: 0.65rem 1rem;
    gap: 0.5rem;
  }
  .hud-controls {
    gap: 0.35rem;
  }
  .hud-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.6875rem;
  }
  .hud-cta {
    padding: 0.42rem 0.85rem;
    font-size: 0.75rem;
  }
  .hero-section {
    padding-top: 5.25rem;
  }
  .hero-lockup {
    font-size: clamp(1.85rem, 8.4vw, 2.65rem);
  }
  .lockup-serif {
    font-size: 1em;
  }
  .lockup-script--a {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
    top: -0.34em;
  }
  .lockup-script--b {
    font-size: clamp(1.75rem, 7.8vw, 2.45rem);
    bottom: -0.26em;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .timeline-status {
    justify-self: start;
  }
  .carousel-viewport {
    height: clamp(420px, 58vh, 490px);
  }
  .frame-card {
    width: clamp(235px, 72vw, 295px);
    height: clamp(340px, 48vh, 410px);
  }
}
