:root {
  --cream: #f2ede4;
  --sand: #dcc8aa;
  --velvet: #1b1a17;
  --velvet-soft: #25231f;
  --red: #c1273d;
  --line: rgba(242, 237, 228, 0.16);
  --muted: rgba(242, 237, 228, 0.66);
  --display: "Cormorant Garamond", Georgia, serif;
  --ui: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--velvet);
  color: var(--cream);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--cream);
  color: var(--velvet);
  padding: 10px 16px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.cinema-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  padding: 18px clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(242, 237, 228, .11);
}
.cinema-logo { display: inline-flex; align-items: center; }
.cinema-logo img { width: 102px; height: auto; }
.cinema-nav { display: flex; align-items: center; gap: 28px; }
.cinema-nav a {
  font-size: 11px;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  color: rgba(242, 237, 228, .72);
}
.cinema-nav a:hover, .cinema-nav a:focus-visible { color: var(--cream); }
.cinema-nav .nav-cta { color: var(--cream); border-bottom: 1px solid var(--red); padding-bottom: 4px; }

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  padding: 170px clamp(24px, 7vw, 110px) clamp(72px, 9vw, 130px);
  background:
    radial-gradient(circle at 78% 34%, rgba(193, 39, 61, .16), transparent 22%),
    radial-gradient(circle at 68% 65%, rgba(220, 200, 170, .09), transparent 30%),
    linear-gradient(140deg, #0a0a09 0%, #1b1a17 58%, #11100e 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(44vw, 640px);
  aspect-ratio: 1;
  right: -8vw;
  bottom: -20%;
  border: 1px solid rgba(242, 237, 228, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(242, 237, 228, .018), 0 0 0 150px rgba(242, 237, 228, .012);
}
.hero-inner { width: min(970px, 100%); }
.eyebrow {
  margin: 0 0 22px;
  color: var(--sand);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 9vw, 138px);
  font-weight: 300;
  line-height: .84;
  letter-spacing: -.035em;
}
.hero h1 span { display: block; color: var(--sand); font-style: italic; }
.hero-lede {
  max-width: 610px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
}
.hero-lede strong { color: var(--cream); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: #a92034; }
.btn-secondary { border-color: rgba(242, 237, 228, .32); color: var(--cream); background: transparent; }
.btn-secondary:hover, .btn-secondary:focus-visible { border-color: var(--cream); }
.hero-index {
  position: absolute;
  right: clamp(24px, 7vw, 110px);
  bottom: clamp(72px, 9vw, 130px);
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 8px 14px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .2em;
}
.hero-index strong { grid-row: span 2; color: var(--cream); font-family: var(--display); font-size: 64px; font-weight: 300; line-height: .8; }

.collection { padding: 110px clamp(20px, 5vw, 76px) 130px; }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading h2, .birth-intro h2, .final-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 300;
  line-height: 1;
}
.section-heading p { max-width: 620px; color: var(--muted); font-weight: 300; margin: 22px 0 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 22px; margin: 0 0 30px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 11px 16px;
  cursor: pointer;
  letter-spacing: .08em;
  font-size: 12px;
}
.filter-btn:hover, .filter-btn:focus-visible { color: var(--cream); border-color: rgba(242, 237, 228, .45); }
.filter-btn[aria-pressed="true"] { background: var(--cream); color: var(--velvet); border-color: var(--cream); }
.film-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 34px); }
.film-card { min-width: 0; }
.poster-button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--velvet-soft);
  border: 1px solid rgba(242, 237, 228, .09);
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,9,.02) 35%, rgba(10,10,9,.92) 100%);
  pointer-events: none;
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.poster-button:hover img, .poster-button:focus-visible img { transform: scale(1.035); }
.poster-number { position: absolute; z-index: 2; top: 18px; left: 18px; font-size: 10px; letter-spacing: .18em; color: rgba(242,237,228,.75); }
.poster-title { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 22px; margin: 0; font-family: var(--display); font-size: clamp(31px, 3vw, 46px); font-weight: 400; line-height: .9; }
.film-meta { padding-top: 18px; }
.film-byline { margin: 0 0 7px; color: var(--sand); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.film-tagline { margin: 0; color: var(--muted); font-family: var(--display); font-size: 18px; font-style: italic; line-height: 1.35; }
.film-genre { margin: 12px 0 0; color: rgba(242,237,228,.44); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.empty-state { grid-column: 1 / -1; padding: 80px 24px; border: 1px solid var(--line); text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--cream); font-family: var(--display); font-size: 34px; font-weight: 300; }

.birth { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 130px); padding: 120px clamp(24px, 7vw, 110px); background: var(--cream); color: var(--velvet); }
.birth-intro { position: sticky; top: 40px; align-self: start; }
.birth-intro .eyebrow { color: var(--red); }
.birth-intro p { color: rgba(27,26,23,.62); max-width: 420px; }
.steps { border-top: 1px solid rgba(27,26,23,.18); }
.step { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid rgba(27,26,23,.18); }
.step-num { color: var(--red); font-family: var(--display); font-size: 25px; }
.step h3 { margin: 0 0 6px; font-family: var(--display); font-size: 32px; font-weight: 400; }
.step p { margin: 0; color: rgba(27,26,23,.62); }

.final-cta { padding: 140px 24px; text-align: center; background: #11100e; }
.final-cta h2 { max-width: 760px; margin-inline: auto; }
.final-cta h2 em { color: var(--sand); font-weight: 300; }
.final-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.cinema-footer { display: flex; justify-content: space-between; gap: 36px; align-items: end; padding: 55px clamp(24px, 5vw, 76px); border-top: 1px solid var(--line); }
.cinema-footer img { width: 88px; margin-bottom: 16px; }
.cinema-footer p { margin: 0; color: var(--muted); font-family: var(--display); font-style: italic; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 11px; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--cream); }

.film-dialog {
  width: min(1040px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid rgba(242,237,228,.18);
  color: var(--cream);
  background: #11100e;
  overflow: auto;
}
.film-dialog::backdrop { background: rgba(5,5,4,.82); backdrop-filter: blur(8px); }
.dialog-close { position: sticky; z-index: 5; top: 16px; float: right; margin: 16px 16px -60px 0; width: 44px; height: 44px; border: 1px solid rgba(242,237,228,.35); border-radius: 50%; background: rgba(17,16,14,.72); color: var(--cream); cursor: pointer; font-size: 24px; }
.dialog-close:hover, .dialog-close:focus-visible { border-color: var(--cream); }
.dialog-layout { display: grid; grid-template-columns: minmax(300px, .9fr) 1.1fr; min-height: 690px; }
.dialog-visual { min-height: 520px; background: #080807; }
.dialog-visual img { width: 100%; height: 100%; object-fit: cover; }
.dialog-copy { padding: clamp(42px, 6vw, 78px); align-self: center; }
.dialog-kicker { color: var(--sand); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
.dialog-copy h2 { margin: 12px 0 12px; font-family: var(--display); font-size: clamp(48px, 6vw, 78px); font-weight: 300; line-height: .9; }
.dialog-meta { margin: 0 0 28px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.dialog-synopsis { color: rgba(242,237,228,.74); font-weight: 300; }
.dialog-quote { margin: 30px 0; padding-left: 20px; border-left: 1px solid var(--red); font-family: var(--display); font-size: 24px; font-style: italic; color: var(--sand); }
.dialog-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; padding: 0; list-style: none; }
.dialog-steps li { border: 1px solid var(--line); padding: 7px 10px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.video-slot { aspect-ratio: 16 / 9; background: #080807; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 24px; }
.video-slot iframe, .video-slot video { width: 100%; height: 100%; border: 0; }
.dialog-cta { margin-top: 8px; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-index { display: none; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .birth { grid-template-columns: 1fr; }
  .birth-intro { position: static; }
}

@media (max-width: 720px) {
  .cinema-header { min-height: 72px; padding: 14px 20px; }
  .cinema-logo img { width: 80px; }
  .cinema-nav a:not(.nav-cta) { display: none; }
  .cinema-nav { gap: 0; }
  .hero { min-height: 86vh; padding: 132px 22px 70px; }
  .hero h1 { font-size: clamp(55px, 17vw, 78px); }
  .hero-lede { margin-top: 28px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .collection { padding: 82px 18px 95px; }
  .section-heading { margin-bottom: 36px; }
  .filters { margin-right: -18px; padding-right: 18px; }
  .film-grid { grid-template-columns: 1fr; gap: 48px; }
  .poster { aspect-ratio: 4 / 5; }
  .poster-title { font-size: 46px; }
  .birth { padding: 90px 22px; }
  .step { grid-template-columns: 42px 1fr; }
  .final-cta { padding: 100px 22px; }
  .final-actions .btn { width: 100%; }
  .cinema-footer { align-items: start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-visual { min-height: 430px; max-height: 58vh; }
  .dialog-copy { padding: 40px 24px 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
