/* ==========================================================================
   Dreamtime Films — Stories of Impact
   Gold-on-dark cinematic system. Type: system stack, size-specific tracking.
   Motion: GSAP (transform/opacity only) with reduced-motion fallback.
   ========================================================================== */

:root {
  --bg: #0b0906;
  --bg-raise: #14100a;
  --surface: rgba(255, 244, 220, 0.04);
  --line: rgba(230, 205, 150, 0.14);
  --gold: #d4a94e;
  --gold-bright: #eccf8a;
  --cream: #f4eee2;
  --muted: #b3a78f;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--cream);
  font: 400 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; }

::selection { background: var(--gold); color: #14100a; }

/* ==========================================================================
   CINEMATIC CHROME — letterbox bars + film grain
   ========================================================================== */
.cinema-bar {
  position: fixed;
  left: 0; right: 0;
  height: 0;                 /* driven by GSAP; stays 0 without motion */
  background: #000;
  z-index: 90;
  pointer-events: none;
}
.cinema-bar--top { top: 0; }
.cinema-bar--bottom { bottom: 0; }

.grain {
  position: fixed;
  inset: -60px;
  z-index: 95;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain-shift 0.9s steps(1) infinite; }
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-28px, 16px); }
  50%  { transform: translate(18px, -24px); }
  75%  { transform: translate(-12px, -10px); }
  100% { transform: translate(0, 0); }
}

/* ---------- a11y ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #14100a; padding: 0.6rem 1.2rem;
  font-weight: 600; text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- type helpers ---------- */
.section-eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;   /* negative tracking on display sizes */
  font-weight: 650;
  margin-bottom: var(--space-3);
}

/* ---------- release badge + press links ---------- */
.release-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
  box-shadow: 0 8px 30px rgba(212, 169, 78, 0.25);
}
.press-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.3rem;
  margin-top: var(--space-3);
}
.press-links__label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.press-links a {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15em;
  transition: color 160ms ease, border-color 160ms ease;
}
.press-links a:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 140ms ease, color 140ms ease, border-color 140ms ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }   /* respond on press */
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
}
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ==========================================================================
   NAV — translucent material, content scrolls underneath
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 9, 6, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(230, 205, 150, 0.08);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #0b0906; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(0.8rem, 2.2vw, 1.8rem); }
.nav__links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 140ms ease;
}
.nav__links a:hover { color: var(--gold-bright); }
.nav__cta {
  border: 1px solid var(--gold);
  color: var(--gold-bright) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--gold); color: #14100a !important; }

@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }  /* mobile: logo + contact; sections reachable by scroll */
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
  will-change: transform;
}
/* The poster covers the player rather than the player being hidden: some
   browsers refuse to autoplay video they consider invisible (opacity 0). */
.hero__media-fallback {
  position: absolute; inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.1) brightness(0.6);
  transform: scale(1.15);
  transition: opacity 900ms ease;
}
.hero--video-playing .hero__media-fallback { opacity: 0; }
/* 16:9 iframe sized to cover any viewport, centered */
.hero__media-embed {
  position: absolute;
  top: 50%; left: 50%;
  width: max(100vw, 177.78dvh);
  height: max(100dvh, 56.25vw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;   /* background layer — hero content stays clickable */
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(11, 9, 6, 0.1) 0%, rgba(11, 9, 6, 0.72) 78%),
    linear-gradient(to top, var(--bg) 2%, transparent 36%);
}
.hero__content {
  position: relative;
  text-align: center;
  padding: var(--space-4) var(--space-3);
  max-width: 60rem;
}
.hero__eyebrow {
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.hero__title {
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  background: linear-gradient(160deg, #fff8e9 20%, var(--gold-bright) 55%, var(--gold) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-3);
}
/* Once split, the parent's clipped gradient must go: layered over the trailer
   iframe it renders as a displaced ghost of the glyphs. */
.hero__title--split { background: none; }
/* Split-word reveal targets: transformed children break background-clip on
   the parent, so each word carries its own clipped gradient. */
.hero__title .word {
  display: inline-block;
  background: linear-gradient(160deg, #fff8e9 20%, var(--gold-bright) 55%, var(--gold) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 34em;
  margin: 0 auto var(--space-4);
}
.hero__actions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }

.hero__scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 7px;
}
.hero__scroll-cue span {
  width: 3px; height: 9px;
  border-radius: 3px;
  background: var(--gold);
  animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue span { animation: none; }
}

/* ==========================================================================
   SPOTLIGHT — full-screen cinematic film scenes
   Default (no JS / reduced motion): scenes stack vertically, fully visible.
   With motion: JS pins the viewport and choreographs overlapping scenes.
   ========================================================================== */
.spotlight { position: relative; }
.spotlight__viewport { position: relative; }

.scene {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
/* pinned mode: scenes overlap inside a single viewport */
.spotlight--pinned .spotlight__viewport { height: 100dvh; }
.spotlight--pinned .scene { position: absolute; inset: 0; }

/* Posters are low-res and mixed aspect ratios, so they're never stretched to
   fill the screen: the backdrop is a blurred copy (blur hides the upscaling,
   base scale hides the blur's soft edges) and the whole poster sits on top. */
.scene__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(26px) brightness(0.5) saturate(1.15);
  transform: scale(1.15);
  will-change: transform;
}
.scene__poster-wrap {
  position: absolute;
  top: 0; bottom: 0;
  right: clamp(1.2rem, 5vw, 4rem);
  width: 40vw;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.scene__poster {
  max-width: 92%;
  max-height: 64dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(212, 169, 78, 0.35);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  will-change: transform;
}
/* extra class for specificity: the base .scene__log rule is declared later */
@media (min-width: 900px) {
  .scene .scene__log { max-width: min(46em, 38vw); }
}
@media (max-width: 899px) {
  .scene__poster-wrap {
    left: 0; right: 0;
    top: 10dvh;
    bottom: auto;
    width: auto;
    height: 36dvh;
  }
  .scene__poster { max-height: 100%; max-width: 78%; }
}
.scene__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 6, 3, 0.94) 8%, rgba(8, 6, 3, 0.42) 45%, rgba(8, 6, 3, 0.25) 100%),
    radial-gradient(120% 100% at 18% 100%, rgba(8, 6, 3, 0.75) 0%, transparent 55%);
}
.scene__content {
  position: relative;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 4rem) clamp(4.5rem, 9dvh, 7rem);
}
.scene__count {
  position: absolute;
  top: clamp(84px, 14dvh, 130px);
  right: clamp(1.2rem, 5vw, 4rem);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  z-index: 1;
}
.scene__cat {
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.scene__title {
  font-size: clamp(2.6rem, 7.5vw, 6.2rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 12ch;
  margin-bottom: var(--space-2);
  background: linear-gradient(160deg, #fff8e9 25%, var(--gold-bright) 60%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* once split into animated chars, the chars carry the gradient instead
   (transformed children break background-clip on the parent) */
.scene__title--split { background: none; }
.scene__title .line,
.detail__title .line,
.project-hero__title .line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;   /* keep descenders inside the clip */
  margin-right: 0.24em;
}
.scene__title .char,
.detail__title .char,
.project-hero__title .char {
  display: inline-block;
  background: linear-gradient(160deg, #fff8e9 25%, var(--gold-bright) 60%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}
.scene__log {
  color: var(--cream);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  max-width: 46em;
  margin-bottom: var(--space-3);
}
.scene__rule {
  width: 64px; height: 2px;
  background: var(--gold);
  margin-bottom: var(--space-3);
  transform-origin: left center;
}

/* ==========================================================================
   FEATURED FILMS — horizontal reel
   ========================================================================== */
.reel { padding-top: var(--space-6); }
.reel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 clamp(1rem, 4vw, 3rem);
  max-width: 90rem;
  margin: 0 auto;
}
.reel__hint { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.15em; padding-bottom: var(--space-3); }

.reel__pin { overflow: hidden; }
.reel__track {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  padding: var(--space-4) clamp(1rem, 4vw, 3rem) var(--space-5);
  width: max-content;   /* sized by cards; GSAP translates it */
}

/* Mobile fallback: native swipe with snap, no pinning */
@media (max-width: 899px) {
  .reel__pin { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .reel__track { width: max-content; }
  .card { scroll-snap-align: center; }
}

/* ---------- project card (shared by reel + grids) ---------- */
.card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(240px, 26vw, 340px);
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.card__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: box-shadow 250ms ease, border-color 250ms ease;
  will-change: transform;
}
.card:hover .card__frame,
.card:focus-visible .card__frame {
  border-color: rgba(212, 169, 78, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(212, 169, 78, 0.12);
}
/* Dimmed cover fill behind a fully-visible (contain) poster, so artwork
   titles are never cropped away. No blur filter: filtered children force
   3D-context flattening and break compositing in some renderers. */
.card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transform: scale(1.2);
}
.card__img {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  padding: 0.8rem 0.8rem 0;
  transform: scale(0.99);
  transition: transform 500ms var(--ease-out);
}
.card:hover .card__img { transform: scale(1.03); }
.card__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 3, 0.9) 0%, rgba(8, 6, 3, 0.2) 34%, transparent 55%);
}
.card__meta {
  position: relative;
  padding: 0.9rem 1.1rem 1.1rem;
  transform: translateY(6px);
  transition: transform 350ms var(--ease-out);
}
.card:hover .card__meta { transform: translateY(0); }

/* hover description — the original site revealed project info on hover */
.card__desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms var(--ease-out);
}
.card__desc:empty { display: none; }
.card__more {
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease 60ms, transform 320ms var(--ease-out) 60ms;
}
.card:hover .card__desc, .card:focus-visible .card__desc,
.card:hover .card__more, .card:focus-visible .card__more {
  opacity: 1;
  transform: translateY(0);
}
/* touch devices: no hover — keep info reachable via the detail overlay */
@media (hover: none) {
  .card__desc, .card__more { display: none; }
}

/* ---------- text-only cards (slate titles without posters) ---------- */
.card__frame--text {
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(212, 169, 78, 0.14) 0%, transparent 55%),
    linear-gradient(165deg, #1c1610, #0e0b07 70%);
  justify-content: flex-end;
}
.card__meta--text {
  position: relative;
  left: auto; right: auto; bottom: auto;
  padding: 1.4rem 1.2rem;
}
.card__meta--text .card__name { font-size: 1.6rem; letter-spacing: -0.015em; }
.card--text .card__frame::after {
  content: "";
  position: absolute;
  top: 1.1rem; left: 1.2rem;
  width: 34px; height: 2px;
  background: var(--gold);
}
.card__cat {
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.card__name {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
@media (prefers-reduced-motion: reduce) {
  .card__img, .card__meta, .card__frame { transition: none; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding: var(--space-6) clamp(1rem, 4vw, 3rem); }
.about__inner { max-width: 62rem; margin: 0 auto; }
.about__lead {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--cream);
  margin: var(--space-3) 0 var(--space-4);
}
.about__lead .line { display: block; overflow: hidden; }
.about__lead .line > span { display: inline-block; }
.about__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-4);
  color: var(--muted);
  font-size: 1.05rem;
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

/* ==========================================================================
   SHELVES (series / documentary) + grid
   ========================================================================== */
.shelf, .slate { padding: var(--space-5) clamp(1rem, 4vw, 3rem); max-width: 90rem; margin: 0 auto; }
.shelf__head { margin-bottom: var(--space-4); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.grid .card { width: 100%; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding: var(--space-6) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(212, 169, 78, 0.06) 0%, transparent 70%),
    var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services__head { max-width: 62rem; margin: 0 auto var(--space-5); }
.services__intro { color: var(--muted); font-size: 1.1rem; max-width: 48em; }
.services__pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--space-3);
  max-width: 80rem;
  margin: 0 auto;
}
.pillar {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: var(--surface);
  transition: border-color 250ms ease, transform 250ms var(--ease-out);
  will-change: transform;
}
.pillar:hover { border-color: rgba(212, 169, 78, 0.5); transform: translateY(-6px); }
.pillar__num {
  position: absolute;
  top: 1.1rem; right: 1.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.8;
}
.pillar h3 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
  color: var(--gold-bright);
}
.pillar ul { display: grid; gap: 0.65rem; color: var(--muted); font-size: 0.98rem; }
.pillar li { padding-left: 1.2rem; position: relative; }
.pillar li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .pillar, .slate__list li { transition: none; }
}

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.contact {
  text-align: center;
  padding: var(--space-6) clamp(1rem, 4vw, 3rem);
}
.contact__email {
  display: inline-block;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 2px solid rgba(212, 169, 78, 0.4);
  padding-bottom: 0.2em;
  margin-top: var(--space-2);
  transition: border-color 180ms ease, color 180ms ease;
}
.contact__email:hover { color: #fff4dd; border-color: var(--gold-bright); }
.contact__note { color: var(--muted); font-size: 0.85rem; margin-top: var(--space-2); }

.footer {
  border-top: 1px solid var(--line);
  padding: var(--space-4) clamp(1rem, 4vw, 3rem) var(--space-3);
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
}
.footer__logo { height: 34px; width: auto; opacity: 0.9; }
.footer__social { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); justify-content: center; }
.footer__social a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.footer__social a:hover { color: var(--gold-bright); }
.footer__copy { color: var(--muted); font-size: 0.82rem; }

/* ==========================================================================
   DETAIL — full-screen cinematic takeover
   ========================================================================== */
.detail { position: fixed; inset: 0; z-index: 150; }
.detail[hidden] { display: none; }
.detail__bg { position: absolute; inset: 0; overflow: hidden; }
.detail__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(26px) brightness(0.45) saturate(1.1);
  transform: scale(1.12);
  will-change: transform;
}
.detail__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 6, 3, 0.96) 6%, rgba(8, 6, 3, 0.7) 45%, rgba(8, 6, 3, 0.5) 100%),
    radial-gradient(110% 100% at 22% 80%, rgba(8, 6, 3, 0.6) 0%, transparent 60%);
}
.detail__stage {
  position: relative;
  height: 100%;
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(4.5rem, 10dvh, 6rem) clamp(1.2rem, 4vw, 3rem);
}
.detail__media img {
  border-radius: 14px;
  border: 1px solid rgba(212, 169, 78, 0.35);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
  will-change: transform;
}
.detail__body { max-height: 76dvh; overflow-y: auto; padding: 0.5rem 0.5rem 1.5rem 0; }
.detail__title {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: var(--space-2);
}
.detail__rule {
  width: 64px; height: 2px;
  background: var(--gold);
  margin-bottom: var(--space-2);
  transform-origin: left center;
}
@media (max-width: 720px) {
  .detail__stage {
    grid-template-columns: 1fr;
    align-items: start;
    overflow-y: auto;
  }
  .detail__media { max-width: 200px; }
  .detail__body { max-height: none; overflow: visible; padding-right: 0; }
}
.detail__close {
  position: absolute;
  top: 0.9rem; right: 1rem;
  width: 44px; height: 44px;              /* touch target ≥44px */
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms var(--ease-out);
}
.detail__close:hover { border-color: var(--gold); transform: rotate(90deg); }
.detail__category {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.detail__tagline { color: var(--gold-bright); font-style: italic; margin-bottom: var(--space-2); }
.detail__tagline:empty, .detail__logline:empty { display: none; }
.detail__logline { color: var(--cream); font-size: 1.05rem; margin-bottom: var(--space-3); }
.detail__credits { display: grid; gap: 0.8rem; margin-bottom: var(--space-3); }
.detail__credits dt {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.detail__credits dd { color: var(--muted); font-size: 0.98rem; }

/* ==========================================================================
   TRAILER LIGHTBOX + embeds
   ========================================================================== */
.trailer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.trailer[hidden] { display: none; }
.trailer__scrim { position: absolute; inset: 0; background: rgba(3, 2, 1, 0.92); }
.trailer__close { position: absolute; top: 1rem; right: 1.2rem; z-index: 2; }
.trailer__frame {
  position: relative;
  width: min(72rem, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 169, 78, 0.3);
  box-shadow: 0 60px 140px rgba(0, 0, 0, 0.8);
  will-change: transform;
}
.trailer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.scene__actions, .detail__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.detail__actions { margin-top: var(--space-2); }

.project-trailer { max-width: 72rem; margin: 0 auto; padding: var(--space-5) clamp(1rem, 4vw, 3rem) 0; }
.project-trailer h2 { margin-bottom: var(--space-2); }
.embed-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   PROJECT PAGE (project.html)
   ========================================================================== */
.project-hero {
  position: relative;
  min-height: 72dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--space-6) + 3rem) clamp(1rem, 4vw, 3rem) var(--space-5);
  overflow: hidden;
}
.project-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(26px) brightness(0.5) saturate(0.9);
  transform: scale(1.15);
}
.project-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(11,9,6,0.35) 60%); }
.project-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: end;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 720px) { .project-hero__inner { grid-template-columns: 1fr; } .project-hero__poster { max-width: 240px; } }
.project-hero__poster img { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.project-hero__title { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.025em; line-height: 1.02; margin: 0.4rem 0 var(--space-2); }
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.back-link:hover { color: var(--gold-bright); }
.project-body { max-width: 72rem; margin: 0 auto; padding: var(--space-5) clamp(1rem, 4vw, 3rem); display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; } }
.project-hero--text {
  min-height: 52dvh;
  background:
    radial-gradient(90% 80% at 30% 10%, rgba(212, 169, 78, 0.12) 0%, transparent 60%),
    var(--bg-raise);
}
.project-tagline { color: var(--gold-bright); font-style: italic; font-size: 1.1rem; margin-bottom: var(--space-3); }
.project-body h2 { font-size: 1.1rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-2); font-weight: 600; }
.project-body .logline { font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.45; letter-spacing: -0.01em; }
.project-credits { display: grid; gap: 1rem; border-left: 1px solid var(--line); padding-left: var(--space-3); }
@media (max-width: 860px) { .project-credits { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--space-3); } }
.project-credits dt { color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.project-credits dd { color: var(--muted); }
