:root {
  --midnight: #080a14;
  --deep-indigo: #111225;
  --plum: #25182f;
  --aubergine: #3a243d;
  --ember: #9a5946;
  --antique-gold: #c89b62;
  --soft-gold: #e7c88b;
  --candle-cream: #f6e6c6;
  --muted-cream: #d9ccb8;
  --gold-line: rgba(200, 155, 98, 0.42);
  --max-width: 1280px;
  --section-pad: clamp(4.5rem, 8vw, 8rem);
  --serif-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --serif-body: Lora, "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--muted-cream);
  background:
    radial-gradient(circle at 9% 7%, rgba(154, 89, 70, 0.2), transparent 33rem),
    radial-gradient(circle at 88% 20%, rgba(58, 36, 61, 0.5), transparent 36rem),
    linear-gradient(180deg, var(--midnight), var(--deep-indigo) 42%, #090910);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
body.nav-open, body.modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--soft-gold); outline-offset: 4px; }
::selection { color: var(--midnight); background: var(--soft-gold); }

.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 1000;
  padding: .55rem .9rem; color: var(--midnight); background: var(--soft-gold);
  border-radius: 999px; transform: translateY(-160%); transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 1rem 0; transition: padding 240ms ease; }
.site-header::before { position: absolute; inset: 0; z-index: -1; content: ""; opacity: 0; background: rgba(8,10,20,.76); border-bottom: 1px solid var(--gold-line); box-shadow: 0 16px 50px rgba(0,0,0,.28); backdrop-filter: blur(18px); transition: opacity 240ms ease; }
.site-header.is-scrolled, .site-header.is-open { padding-block: .68rem; }
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 1; }
.site-nav { display: flex; align-items: center; justify-content: space-between; width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; }
.brand, .nav-links a, .section-kicker, .button, .film-number, .film-cta, .gallery-item span, .footer-links a { font-family: var(--serif-display); text-transform: uppercase; letter-spacing: .16em; }
.brand { color: var(--candle-cream); font-size: clamp(.85rem, 1vw, .98rem); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2rem); }
.nav-links a { position: relative; color: rgba(246,230,198,.8); font-size: .73rem; transition: color 180ms ease; }
.nav-links a::after { position: absolute; right: 0; bottom: -.42rem; left: 0; height: 1px; content: ""; background: var(--soft-gold); transform: scaleX(0); transition: transform 180ms ease; }
.nav-links a:hover, .nav-links a.is-current { color: var(--soft-gold); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: 0; color: var(--candle-cream); cursor: pointer; background: rgba(8,10,20,.34); border: 1px solid var(--gold-line); border-radius: 50%; }
.nav-toggle span { display: block; width: 1.1rem; height: 1px; margin: .26rem auto; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(.32rem) rotate(42deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.32rem) rotate(-42deg); }

.section-shell { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; }
.page-section { position: relative; padding: var(--section-pad) 0; }
.section-kicker { margin: 0 0 .85rem; color: var(--soft-gold); font-size: .71rem; font-weight: 700; }
h1, h2 { color: var(--candle-cream); font-family: var(--serif-display); font-weight: 500; text-wrap: balance; }
.mobile-only { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; white-space: nowrap; border: 0; clip: rect(0,0,0,0); }

.events-hero { position: relative; display: grid; isolation: isolate; min-height: 100svh; padding: clamp(7rem, 13vh, 9rem) 0 clamp(4rem, 8vh, 7rem); overflow: hidden; }
.events-hero::before { position: absolute; inset: 0; z-index: -3; content: ""; background: linear-gradient(90deg, rgb(34 38 60 / 96%), rgba(8, 10, 20, .76) 48%, rgb(50 53 68 / 88%)), linear-gradient(180deg, rgba(8, 10, 20, .2), rgb(255 255 255 / 92%)), url(assets/images/editorial-reading.webp) center 36% / cover no-repeat; filter: saturate(.72) contrast(1.04); transform: scale(1.015); }
.events-hero::after { position: absolute; inset: 0; z-index: -2; content: ""; pointer-events: none; background: radial-gradient(circle at 50% 42%, rgba(231,200,139,.17), transparent 22rem), linear-gradient(180deg, transparent 62%, var(--midnight)); }
.hero-glow { position: absolute; top: -18rem; right: -14rem; z-index: -2; width: 52rem; height: 52rem; border: 1px solid rgba(231,200,139,.12); border-radius: 50%; box-shadow: 0 0 0 5rem rgba(200,155,98,.025), 0 0 0 11rem rgba(200,155,98,.018); }
.hero-layout { display: grid; place-items: center; }
.hero-copy { position: relative; z-index: 2; width: min(100%, 59rem); padding: clamp(2rem, 5vw, 4.5rem); text-align: center; background: radial-gradient(circle at center, rgba(17,18,37,.7), rgba(8,10,20,.28) 58%, transparent 76%); }
.hero-copy h1 { margin: 0; font-size: clamp(5rem, 11vw, 10rem); line-height: .74; letter-spacing: -.025em; text-shadow: 0 16px 60px rgba(0,0,0,.64); }
.hero-copy h1 span, .hero-copy h1 em { display: block; }
.hero-copy h1 em { color: var(--soft-gold); font-weight: 400; padding-top: 40px; }
.hero-event-name { margin: 1.7rem 0 0; color: var(--soft-gold); font-family: var(--serif-display); font-size: clamp(1.05rem, 2vw, 1.4rem); font-style: italic; letter-spacing: .04em; }
.hero-lede { max-width: 48rem; margin: 1rem auto 0; color: rgba(246,230,198,.84); font-size: clamp(1rem, 1.45vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .78rem 1.2rem; color: var(--candle-cream); font-size: .7rem; font-weight: 700; border: 1px solid rgba(200,155,98,.58); border-radius: 999px; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.button-primary { color: var(--midnight); background: linear-gradient(135deg,var(--soft-gold),var(--antique-gold)); }
.button-secondary { background: rgba(8,10,20,.42); backdrop-filter: blur(12px); }
.button:hover { border-color: var(--soft-gold); box-shadow: 0 0 30px rgba(231,200,139,.18); transform: translateY(-2px); }

.films-section { background: linear-gradient(180deg, rgba(8,10,20,.05), rgba(58,36,61,.2), rgba(8,10,20,.04)); }
.section-heading { display: grid; grid-template-columns: 1fr .85fr; align-items: end; column-gap: 3rem; margin-bottom: 2.4rem; }
.section-heading .section-kicker { grid-column: 1/-1; }
.section-heading h2, .contact-panel h2 { margin: 0; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .94; }
.section-heading > p:last-child { margin: 0 0 .45rem; color: rgba(246,230,198,.72); }
.film-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
.film-card-wide { grid-column: 1 / -1; }
.film-card { min-width: 0; }
.film-trigger { position: relative; display: grid; width: 100%; aspect-ratio: 16/10; padding: 0; overflow: hidden; color: var(--candle-cream); text-align: left; cursor: pointer; background: var(--deep-indigo); border: 1px solid rgba(200,155,98,.42); border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.film-trigger img, .film-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-trigger img { object-fit: cover; transition: transform 650ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.film-trigger-portrait img { object-position: center 43%; }
.film-trigger-wide { aspect-ratio: 21/9; }
.film-shade { background: linear-gradient(180deg, rgba(8,10,20,.08) 25%, rgba(8,10,20,.88)); }
.film-trigger::after { position: absolute; inset: .85rem; content: ""; border: 1px solid rgba(231,200,139,.2); border-radius: 4px; pointer-events: none; }
.play-button { position: absolute; top: 50%; left: 50%; display: grid; width: 4.5rem; height: 4.5rem; place-items: center; background: rgba(8,10,20,.7); border: 1px solid var(--soft-gold); border-radius: 50%; box-shadow: 0 0 0 .5rem rgba(8,10,20,.16); transform: translate(-50%,-50%); transition: transform 200ms ease, background 200ms ease; backdrop-filter: blur(8px); }
.play-button span { display: block; width: 0; height: 0; margin-left: .25rem; border-top: .68rem solid transparent; border-bottom: .68rem solid transparent; border-left: 1rem solid var(--candle-cream); }
.film-number, .film-title, .film-cta { position: absolute; z-index: 2; }
.film-number { top: 1.5rem; left: 1.55rem; font-size: .62rem; }
.film-title { right: 1.55rem; bottom: 1.35rem; left: 1.55rem; padding-right: 7rem; font-family: var(--serif-display); font-size: clamp(1.45rem,3vw,2.3rem); line-height: 1; }
.film-cta { right: 1.55rem; bottom: 1.42rem; color: var(--soft-gold); font-size: .61rem; }
.film-trigger:hover img { filter: saturate(1.05) brightness(.9); transform: scale(1.04); }
.film-trigger:hover .play-button { background: rgba(154,89,70,.8); transform: translate(-50%,-50%) scale(1.08); }

.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in; background: var(--plum); border: 1px solid rgba(200,155,98,.34); border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.25); aspect-ratio: 4/3; }
.gallery-button img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.gallery-button:hover img { transform: scale(1.045); }

.contact-section { padding-top: 2rem; }
.contact-panel { position: relative; overflow: hidden; padding: clamp(2rem,6vw,5rem); text-align: center; background: radial-gradient(circle at 50% 110%,rgba(231,200,139,.2),transparent 24rem), linear-gradient(135deg,rgba(17,18,37,.95),rgba(58,36,61,.82)); border: 1px solid var(--gold-line); border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.contact-panel::before, .contact-panel::after { position: absolute; top: 50%; width: 7rem; height: 7rem; content: ""; border: 1px solid rgba(231,200,139,.18); transform: translateY(-50%) rotate(45deg); }
.contact-panel::before { left: -4.5rem; } .contact-panel::after { right: -4.5rem; }
.contact-panel p:not(.section-kicker) { width: min(100%,42rem); margin: 1.4rem auto 1.8rem; color: rgba(246,230,198,.75); }

.site-footer { padding: 3rem clamp(1.1rem,5vw,2rem) 3.4rem; color: rgba(217,204,184,.75); background: #070810; }
.footer-rule { display: grid; width: min(100%,var(--max-width)); margin: 0 auto 2rem; place-items: center; }
.footer-rule::before { grid-area: 1/1; width: 100%; height: 1px; content: ""; background: linear-gradient(90deg,transparent,rgba(200,155,98,.54),transparent); }
.footer-rule span { grid-area: 1/1; width: .55rem; height: .55rem; background: #070810; border: 1px solid rgba(231,200,139,.62); transform: rotate(45deg); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; width: min(100%,var(--max-width)); gap: 2rem; margin: 0 auto; }
.footer-title { margin: 0 0 .2rem; color: var(--candle-cream); font-family: var(--serif-display); font-size: 1.5rem; font-style: italic; }
.site-footer p { margin: .24rem 0; font-size: .94rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .9rem 1.25rem; max-width: 28rem; }
.footer-links a { color: rgba(231,200,139,.78); font-size: .66rem; }
.footer-links a:hover { color: var(--candle-cream); }

.media-modal { width: min(calc(100% - 32px), 1080px); max-width: none; max-height: calc(100dvh - 24px); padding: 0; color: var(--muted-cream); background: transparent; border: 0; overflow: visible; }
.media-modal::backdrop { background: rgba(2,3,8,.9); backdrop-filter: blur(10px); }
.modal-shell, .lightbox-shell { position: relative; padding: clamp(.9rem,2.2vw,1.6rem); background: #080a12; border: 1px solid rgba(200,155,98,.58); border-radius: 8px; box-shadow: 0 40px 110px rgba(0,0,0,.72); }
.modal-shell { display: grid; grid-template-rows: auto minmax(0,1fr); max-height: calc(100dvh - 24px); overflow: hidden; }
.modal-heading { padding-right: 4rem; }
.modal-heading .section-kicker { margin-bottom: .35rem; }
.modal-heading h2 { margin: 0 0 .75rem; font-size: clamp(1.7rem,3.2vw,3rem); line-height: 1; }
.modal-close { position: absolute; top: .65rem; right: .65rem; z-index: 5; display: grid; width: 3.2rem; height: 3.2rem; padding: 0; place-items: center; color: var(--candle-cream); cursor: pointer; background: #0b0c13; border: 1px solid var(--antique-gold); border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.video-frame { position: relative; display: grid; min-height: 0; overflow: hidden; place-items: center; background: #000; border: 1px solid rgba(200,155,98,.34); border-radius: 5px; }
.video-frame video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 15rem); background: #000; object-fit: contain; }
.media-modal.is-portrait { width: min(calc(100% - 28px), 720px); }
.media-modal.is-portrait .video-frame video { width: auto; max-width: 100%; height: min(68dvh, 720px); max-height: calc(100dvh - 12rem); margin: 0 auto; aspect-ratio: auto; }
.video-message { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; margin: 0; padding: .8rem 1rem; color: var(--candle-cream); font-size: .9rem; text-align: center; background: rgba(58,36,61,.92); border: 1px solid var(--gold-line); }
.lightbox { width: min(calc(100% - 28px), 1260px); }
.lightbox-shell { display: grid; place-items: center; padding: .65rem; }
.lightbox-shell img { width: 100%; max-height: 85vh; object-fit: contain; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; transition-delay: var(--reveal-delay,0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  body { font-size: 17px; }
  .hero-copy h1 { font-size: clamp(4.6rem,11vw,7rem); }
  .film-title { padding-right: 0; bottom: 2.4rem; }
  .film-cta { right: auto; left: 1.55rem; bottom: 1.2rem; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 5rem; }
  .site-header { padding: .72rem 0; }
  .site-nav, .section-shell { width: min(calc(100% - 28px),var(--max-width)); }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 4.2rem; right: 1rem; left: 1rem; display: grid; gap: 0; padding: .8rem; background: rgba(8,10,20,.94); border: 1px solid var(--gold-line); border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transform: translateY(-.7rem); transition: opacity 180ms ease,transform 180ms ease; backdrop-filter: blur(18px); }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: .9rem; border-bottom: 1px solid rgba(200,155,98,.14); }
  .nav-links a::after { display: none; }
  .events-hero { min-height: 92svh; padding-top: 6.4rem; }
  .hero-copy { padding: 1.25rem 0; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(3.4rem,15vw,5rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .film-grid { grid-template-columns: 1fr; }
  .film-card-wide { grid-column: auto; }
  .film-trigger { aspect-ratio: 4/3; }
  .film-trigger-wide { aspect-ratio: 16/10; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { display: grid; }
  .footer-links { justify-content: flex-start; }
  .media-modal { width: calc(100% - 16px); max-height: calc(100dvh - 12px); }
  .modal-shell { max-height: calc(100dvh - 12px); padding: .75rem; }
  .modal-heading { padding-right: 3.5rem; }
  .modal-heading h2 { margin-bottom: .6rem; font-size: clamp(1.35rem,7vw,2rem); }
  .modal-close { top: .45rem; right: .45rem; width: 2.85rem; height: 2.85rem; }
  .video-frame video { max-height: calc(100dvh - 11rem); }
  .media-modal.is-portrait .video-frame video { height: auto; max-height: calc(100dvh - 10rem); }
}

@media (max-height: 700px) and (min-width: 721px) {
  .modal-shell { padding: .75rem; }
  .modal-heading .section-kicker { display: none; }
  .modal-heading h2 { margin-bottom: .55rem; font-size: clamp(1.4rem,3vw,2.2rem); }
  .modal-close { top: .4rem; right: .4rem; width: 2.8rem; height: 2.8rem; }
  .video-frame video, .media-modal.is-portrait .video-frame video { max-height: calc(100dvh - 7rem); }
}

@media (max-width: 460px) {
  .mobile-only { display: block; }
  .button { width: 100%; }
  .play-button { width: 3.8rem; height: 3.8rem; }
  .film-title { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
