/* ============================================================
   Hollywood Handsome Productions — Dark Cinematic Theme
   ============================================================ */

:root {
  --bg: #0a0a0e;
  --bg-2: #101016;
  --surface: #15151d;
  --surface-2: #1b1b25;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ece8de;
  --muted: #a39e92;
  --gold: #c9a227;
  --gold-light: #e8cc6e;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1140px;
  --gold-grad: linear-gradient(135deg, #e8cc6e 0%, #c9a227 55%, #9a7b1e 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-section: clamp(64px, 7vw, 104px);
  --hair: rgba(236, 232, 222, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-feature-settings: "kern", "liga", "calt";
}

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
:where([id]) { scroll-margin-top: 88px; }

img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }
/* animated underline for inline links inside copy */
p a {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size 0.4s var(--ease), color 0.2s ease;
}
p a:hover { background-size: 100% 1px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--gold); color: #0a0a0e; }

/* keyboard focus ring (mouse clicks unaffected) */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 300;
  background: var(--gold);
  color: #0c0c10;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #0c0c10; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h2.section-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}

h3.sub-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--muted); max-width: 44rem; line-height: 1.6; }

.gold-rule {
  width: 64px; height: 2px;
  background: var(--gold-grad);
  border: none;
  margin: 1.6rem 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 14, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 8%, var(--hair), transparent 92%) 1;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(8, 8, 12, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s var(--ease);
}
.nav.scrolled .nav-inner { height: 56px; }

.brand {
  display: flex; align-items: center;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.tc { display: inline-flex; flex-direction: column; line-height: 1.15; }
.tc .tc-name {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: 0.13em;
  white-space: nowrap;
  background: linear-gradient(100deg, #9a7b1e 0%, #e8cc6e 22%, #fff7da 40%, #e8cc6e 54%, #c9a227 72%, #9a7b1e 100%);
  background-size: 220% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 0.7s var(--ease), filter 0.3s ease;
}
.brand:hover .tc-name { background-position: 100% center; filter: brightness(1.08); }
.tc .tc-rule { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.tc .tc-rule::before, .tc .tc-rule::after { content: ""; flex: 1; height: 1px; }
.tc .tc-rule::before { background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.8)); }
.tc .tc-rule::after { background: linear-gradient(90deg, rgba(201, 162, 39, 0.8), transparent); }
.tc .tc-rule span {
  font-family: var(--sans);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.56em;
  text-transform: uppercase;
  color: var(--muted);
}
.tc.tc-sm .tc-name { font-size: 0.95rem; }
.tc.tc-sm .tc-rule span { font-size: 0.46rem; }
@media (max-width: 520px) {
  .tc .tc-name { font-size: 0.88rem; letter-spacing: 0.1em; }
  .tc .tc-rule span { font-size: 0.42rem; letter-spacing: 0.42em; }
}

.nav-links {
  display: flex; gap: 26px; list-style: none;
  align-items: center;
}
.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after { transform: scaleX(1); box-shadow: 0 1px 8px rgba(201, 162, 39, 0.5); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(10, 10, 14, 0.97);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 13px 0; font-size: 0.92rem; }
}

/* ---------- Nav: centered editorial masthead (desktop) ---------- */
@media (min-width: 881px) {
  .nav-inner {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 20px 24px 0;
  }
  .nav .brand { margin-bottom: 12px; }
  .nav .tc { align-items: center; }
  .nav .tc-name { font-size: 1.5rem; letter-spacing: 0.28em; }
  .nav .tc-rule span { letter-spacing: 0.6em; }
  .nav-links { justify-content: center; gap: 36px; padding-bottom: 16px; }
  .nav.scrolled .nav-inner { height: auto; padding-top: 12px; }
  .nav.scrolled .tc-name { font-size: 1.18rem; }
  .nav.scrolled .nav-links { padding-bottom: 12px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(201, 162, 39, 0.12), transparent 60%),
    linear-gradient(180deg, #0c0c12 0%, var(--bg) 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.18;
  filter: grayscale(60%) contrast(1.05);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 110%, transparent 30%, rgba(5,5,8,0.85) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 16ch;
  min-height: 2.16em; /* reserve space while typing */
  text-wrap: normal; /* NOT balance — balance re-wraps every keystroke during the typewriter */
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes caret-fade { to { opacity: 0; width: 0; margin: 0; } }
/* per-character hero reveal — every char is present so wrapping never reflows */
.hero h1 .tw-ch { opacity: 0; }
.hero h1 .tw-ch.on { opacity: 1; }
.hero h1 .tw-ch.cursor { position: relative; }
.hero h1 .tw-ch.cursor::after {
  content: "";
  position: absolute;      /* absolute → the caret never affects line wrapping */
  left: 100%;
  top: 0.16em;
  width: 0.055em;
  height: 0.82em;
  margin-left: 0.04em;
  background: var(--gold);
  animation: caret-blink 0.85s steps(1) infinite;
}
.hero h1.done .tw-ch.cursor::after { animation: caret-fade 1.2s ease 0.5s forwards; }
.js .hero-stage { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .hero-stage.on { opacity: 1; transform: none; }
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--gold-light);
  margin-top: 1.4rem;
}
.hero .lede { margin-top: 1.4rem; }
.hero-cta { margin-top: 2.6rem; display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: drift 2.4s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(236, 232, 222, 0.22);
  border-radius: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), text-shadow 0.3s var(--ease);
}
.btn:hover { color: #fff; border-color: rgba(201, 162, 39, 0.6); background: rgba(255, 255, 255, 0.07); text-shadow: 0 0 16px rgba(201, 162, 39, 0.4); }
/* primary: a touch more presence — faint gold edge + tint */
.btn-gold { border-color: rgba(201, 162, 39, 0.45); background: rgba(201, 162, 39, 0.07); }
/* secondary sits quieter at rest, warms on hover */
.btn-ghost { color: var(--muted); border-color: rgba(236, 232, 222, 0.16); }
.btn-ghost:hover { color: var(--gold-light); border-color: rgba(201, 162, 39, 0.45); text-shadow: 0 0 16px rgba(201, 162, 39, 0.4); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 168px 0 72px;
  background:
    radial-gradient(ellipse 60% 80% at 50% -30%, rgba(201, 162, 39, 0.1), transparent 65%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.page-hero .lede { margin-top: 1.2rem; }
/* the page header already gives top space — pull the first content section up under it */
.page-hero + .section { padding-top: clamp(36px, 4vw, 56px); }

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section.alt {
  background: linear-gradient(180deg, #101017, #0b0b11);
}

/* ---------- Objective quote ---------- */
.quote-block {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-block::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.18;
  margin-bottom: -0.6rem;
}
.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text);
}
.quote-block blockquote em { color: var(--gold-light); font-style: italic; }

/* ---------- Bio ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}
.bio-grid .portrait {
  position: sticky; top: 100px;
}
.portrait-frame {
  position: relative;
}
.portrait-frame img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: contrast(1.03);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 4px;
  z-index: -1;
}
.bio-text p { margin-bottom: 1.15rem; color: #cfcabf; }
.bio-text strong { color: var(--text); font-weight: 600; }

@media (max-width: 880px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-grid .portrait { position: static; max-width: 380px; }
}

/* ---------- Role cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.card .card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.card .card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 11, 0.35) 0%, transparent 38%, transparent 70%, rgba(8, 8, 11, 0.55) 100%);
  pointer-events: none;
}
.card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s ease;
  filter: grayscale(1) sepia(0.4) saturate(0.7) contrast(1.05) brightness(0.95);
}
.card:hover .card-img img { transform: scale(1.06); filter: grayscale(0) sepia(0) saturate(1) contrast(1.05); }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.card-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.card-link::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.card:hover .card-link::after { transform: translateX(5px); }

@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ---------- Gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pill:hover { color: var(--text); border-color: rgba(201, 162, 39, 0.45); transform: translateY(-2px); }
.pill.active {
  background: var(--gold-grad);
  border-color: var(--gold);
  color: #0c0c10;
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.22);
}
.pill .count {
  opacity: 0.65;
  font-weight: 400;
  margin-left: 6px;
}

.gallery-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 38px 28px;
  justify-content: center;
  padding: 44px 14px 36px;
  background: radial-gradient(ellipse 85% 90% at 50% 8%, #15151d, transparent 75%);
  border-radius: 10px;
  transition: opacity 0.18s ease;
}
.gallery-grid.switching { opacity: 0; }
.gallery-grid figure {
  background: #f7f4ec;
  padding: 11px 11px 40px;
  cursor: zoom-in;
  position: relative;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1.2),
              box-shadow 0.5s ease, opacity 0.6s ease;
}
/* scattered-print rotations */
.gallery-grid figure:nth-child(6n + 1) { --r: -2.6deg; }
.gallery-grid figure:nth-child(6n + 2) { --r: 2.1deg; }
.gallery-grid figure:nth-child(6n + 3) { --r: -1.4deg; }
.gallery-grid figure:nth-child(6n + 4) { --r: 2.8deg; }
.gallery-grid figure:nth-child(6n + 5) { --r: -2.1deg; }
.gallery-grid figure:nth-child(6n)     { --r: 1.6deg; }
/* dealt-onto-the-table entrance */
.gallery-grid figure.pre-deal {
  opacity: 0;
  transform: rotate(var(--r, 0deg)) translateY(34px) scale(0.93);
}
.gallery-grid figure:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.045);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.72);
  z-index: 2;
}
.gallery-grid figure.hide { display: none; }
.gallery-grid img {
  display: block;
  width: 220px;
  height: 262px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.gallery-grid figcaption {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  text-align: center;
  font-family: "Caveat", cursive;
  font-size: 1.18rem;
  color: #44423d;
}
@media (max-width: 640px) {
  .gallery-grid { gap: 26px 16px; padding: 30px 4px 24px; }
  .gallery-grid figure { padding: 8px 8px 30px; }
  .gallery-grid img { width: 150px; height: 180px; }
  .gallery-grid figcaption { font-size: 0.95rem; bottom: 5px; }
}
/* blur-up lazy load */
.js .gallery-grid img:not(.loaded), .js .doc-grid img:not(.loaded) {
  opacity: 0;
  filter: blur(12px) saturate(0.8);
}
.gallery-grid img.loaded, .doc-grid img.loaded { opacity: 1; }

/* ---------- Gallery cover flow (Apple-style 3D carousel of prints) ---------- */
.coverflow { display: none; }
.js .coverflow {
  display: block;
  position: relative;
  height: 470px;
  margin: 8px auto 4px;
  overflow: hidden;
}
.cf-track {
  position: absolute;
  inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 44%;
}
.cf-item {
  position: absolute;
  top: 50%; left: 50%;
  width: 290px; height: 378px;
  margin: -189px 0 0 -145px;
  background: #f7f4ec;
  padding: 12px 12px 24px;
  border-radius: 3px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateZ(-600px);
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 0.85s ease, filter 0.85s ease, box-shadow 0.85s ease;
  backface-visibility: hidden;
}
.cf-item img {
  display: block;
  width: 266px; height: 342px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}
.cf-item.cf-active {
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(201, 162, 39, 0.5),
              0 0 30px rgba(201, 162, 39, 0.16);
}
@media (max-width: 640px) {
  .js .coverflow { height: 340px; }
  .cf-item { width: 212px; height: 278px; margin: -139px 0 0 -106px; padding: 9px 9px 18px; }
  .cf-item img { width: 194px; height: 250px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(6, 6, 9, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lightbox.open .lb-stage { transform: scale(1); }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lb-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 8, 0.85));
  pointer-events: none;
}
.lb-caption {
  color: var(--muted);
  font-size: 0.88rem;
}
.lb-count {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.lightbox button {
  position: absolute;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  width: 46px; height: 46px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.lightbox button:hover { border-color: var(--gold); background: rgba(201,162,39,0.12); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}

/* ---------- Testimonials ---------- */
.testimonial-group { margin-bottom: 56px; }
.testimonial-group:last-child { margin-bottom: 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px 28px;
  position: relative;
  display: flex; flex-direction: column;
}
.testimonial::before {
  content: "“";
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
  display: block;
  margin-bottom: 0.4rem;
}
.testimonial p { color: #cfcabf; font-size: 0.97rem; flex: 1; }
.testimonial footer { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  display: block;
}
.testimonial .credit { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

.award-banner {
  background: linear-gradient(120deg, rgba(201,162,39,0.14), rgba(201,162,39,0.04));
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 6px;
  padding: 22px 28px;
  margin: 1.6rem 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.award-banner strong { color: var(--gold-light); }

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.video-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* fallback poster when embeds can't play (file:// viewing) */
.video-poster {
  position: absolute; inset: 0;
  display: block;
}
.video-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 0.3s ease;
}
.video-poster:hover img { filter: brightness(0.95); }
.video-poster .vp-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.7);
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  padding-left: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.video-poster:hover .vp-play { background: rgba(201, 162, 39, 0.35); transform: translate(-50%, -50%) scale(1.08); }
.video-poster .vp-note {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(10, 10, 14, 0.7);
  padding: 8px 18px;
  border-radius: 999px;
}

/* ---------- Projects (writer / producer) ---------- */
.project {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.project:last-child { border-bottom: none; }
.project .thumb img {
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.project.no-thumb { grid-template-columns: 1fr; }
.project h3, .project h4 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.project .kind {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.project p { color: var(--muted); margin-bottom: 0.6rem; }
.project .meta { font-size: 0.9rem; }
.project .meta strong { color: var(--text); font-weight: 600; }
@media (max-width: 720px) {
  .project { grid-template-columns: 1fr; }
  .project .thumb { max-width: 220px; }
}

/* ---------- Doc images (resume, reviews, scripts) ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.doc-grid figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s, border-color 0.3s;
}
.doc-grid figure:hover { transform: translateY(-4px); border-color: rgba(201,162,39,0.45); }
.doc-grid img { width: 100%; height: auto; }
.doc-grid figcaption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.contact-card:hover { border-color: rgba(201,162,39,0.45); transform: translateY(-4px); }
.contact-card .icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 0.8rem; }
.contact-card h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.contact-card p, .contact-card a { font-size: 1.02rem; color: var(--text); }
.contact-card a:hover { color: var(--gold-light); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.notice-block {
  text-align: center;
  margin-top: 44px;
}
.notice-block .big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--gold-light);
}
.notice-block .sub { color: var(--muted); margin-top: 0.6rem; }

/* ---------- Link cards (elsewhere) ---------- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: var(--text);
  transition: transform 0.3s, border-color 0.3s;
}
.link-card:hover { transform: translateY(-5px); border-color: rgba(201,162,39,0.45); color: var(--text); }
.link-card .card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.link-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.4) saturate(0.7) contrast(1.05) brightness(0.95);
  transition: filter 0.6s ease;
}
.link-card:hover .card-img img { filter: grayscale(0) sepia(0) saturate(1) contrast(1.05); }
.link-card .card-body h3 { margin-bottom: 0.4rem; }
.link-card .card-body p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 720px) { .link-cards { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 96px 24px;
  background:
    radial-gradient(ellipse 55% 90% at 50% 120%, rgba(201, 162, 39, 0.13), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.cta-band p { color: var(--muted); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.footer {
  border-style: solid;
  border-width: 1px 0 0;
  border-image: linear-gradient(90deg, transparent, var(--hair), transparent) 1;
  padding: 60px 0;
  background: linear-gradient(180deg, #0a0a0e, #060608);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.footer .f-brand {
  display: flex;
  align-items: center;
}
.footer .f-tag { font-style: italic; color: var(--muted); font-size: 0.9rem; }
.footer .f-copy { color: #8a8478; font-size: 0.8rem; width: 100%; margin-top: 10px; }

/* ---------- Cinematic flares ---------- */
/* page fade-in (only when JS present) */
.js body { animation: page-in 0.65s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* gold scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.55);
}

/* hero: slow Ken Burns drift + film grain */
.hero-bg { animation: kenburns 36s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.07) translateY(-1.5%); }
}
.hero .grain {
  position: absolute; inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(2%, 2%); }
}

/* site-wide cinematic texture + edge vignette (very subtle, non-interactive) */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 89;
  pointer-events: none;
  box-shadow: inset 0 0 170px rgba(0, 0, 0, 0.42);
}

/* slim themed scrollbar */
html { scrollbar-width: thin; scrollbar-color: #2c2c38 var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2c38; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 162, 39, 0.55); }

/* back-to-top */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 150;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: rgba(10, 10, 14, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s, background 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(201, 162, 39, 0.25); }

/* ---------- Reveal animation ---------- */
/* JS-gated so content is visible by default when JS is off/fails */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Design flare ---------- */
/* viewfinder corner brackets — a cinematic frame motif used across the site */
.card, .link-card, .doc-grid figure, .contact-card { position: relative; }
.card::before, .card::after,
.link-card::before, .link-card::after,
.doc-grid figure::before, .doc-grid figure::after,
.contact-card::before, .contact-card::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  z-index: 3;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.card::before, .link-card::before, .doc-grid figure::before, .contact-card::before {
  top: 9px; left: 9px;
  border-top: 1.5px solid rgba(236, 232, 222, 0.4);
  border-left: 1.5px solid rgba(236, 232, 222, 0.4);
}
.card::after, .link-card::after, .doc-grid figure::after, .contact-card::after {
  bottom: 9px; right: 9px;
  border-bottom: 1.5px solid rgba(236, 232, 222, 0.4);
  border-right: 1.5px solid rgba(236, 232, 222, 0.4);
}
.card:hover::before, .card:hover::after,
.link-card:hover::before, .link-card:hover::after,
.doc-grid figure:hover::before, .doc-grid figure:hover::after,
.contact-card:hover::before, .contact-card:hover::after { opacity: 0.95; }

/* offset gold frame on project thumbnails (echoes the bio portrait) */
.project .thumb { position: relative; }
.project .thumb::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-stage { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-bg, .hero .grain, .scroll-hint { animation: none; }
  .js body { animation: none; }
  .gallery-grid figure, .card, .card .card-img img, .pill, .btn, .doc-grid figure,
  .contact-card, .link-card, .to-top, .video-poster .vp-play, .lightbox .lb-stage,
  .nav, .nav-inner, .nav-links a, .nav-links a::after, .card-link::after, p a,
  .tc .tc-name, .cf-item,
  .card::before, .card::after, .link-card::before, .link-card::after,
  .doc-grid figure::before, .doc-grid figure::after, .contact-card::before, .contact-card::after { transition: none; }
}
