:root {
  --bg: #090807;
  --bg-2: #13100d;
  --ink: #ede6da;
  --ink-2: #b1a796;
  --ink-3: #776e62;
  --gold: #c9a45c;
  --gold-2: #e0bf7a;
  --line: rgba(237, 230, 218, 0.14);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* film grain that shifts every frame, plus a permanent vignette */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 60;
  opacity: 0.085;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(6) infinite;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 59;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
@keyframes grain {
  0% { transform: translate(0, 0); }   20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("assets/stills/youngest-grandfather.jpg") 62% 35% / cover no-repeat;
  animation: drift 28s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,8,7,0.94) 0%, rgba(9,8,7,0.72) 40%, rgba(9,8,7,0.12) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(9,8,7,0) 45%);
}
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }
.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--gutter) 40px;
}
.logo { width: min(520px, 86vw); height: auto; }
h1 { margin: 0; }
.billing {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
  margin: clamp(1.8rem, 4vh, 2.6rem) 0 clamp(2.6rem, 6vh, 3.6rem);
  font: 500 1.08rem/1.4 var(--serif);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
/* set like the poster: small lowercase lead-in, names in spaced serif capitals */
.billing small { font: 400 1.02rem/1 var(--serif); letter-spacing: 0.02em; text-transform: none; color: var(--ink-3); margin-right: 0.45em; }

/* laurels */
.laurels { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.laurels-hero { gap: 14px 26px; margin-bottom: clamp(44px, 9vh, 88px); }
.laurels-hero img { height: clamp(44px, 6vw, 64px); width: auto; opacity: 0.92; }
.laurels-wall { gap: 22px 34px; margin-bottom: 2.6rem; }
.laurels-wall img { height: clamp(58px, 7vw, 84px); width: auto; }
/* Worcester's badge carries its text small at the bottom, so it gets extra height to read at the same size */
.laurels-hero .laurel-lg img { height: clamp(58px, 8vw, 84px); }
.laurels-wall .laurel-lg img { height: clamp(76px, 9vw, 110px); }

/* ---------- signup ---------- */
.signup-card {
  position: relative;
  max-width: 580px;
  padding: 34px 34px 26px;
  background: linear-gradient(180deg, rgba(34, 27, 19, 0.92), rgba(19, 16, 13, 0.94));
  border: 1px solid rgba(201, 164, 92, 0.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 24px 70px rgba(0,0,0,0.65), 0 0 90px rgba(201, 164, 92, 0.13);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* a gold rule across the top edge */
.signup-card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%, transparent);
}
.signup-title {
  margin: 0 0 0.3rem;
  font: 500 clamp(1.9rem, 3vw, 2.3rem)/1.1 var(--serif);
  color: var(--ink);
}
.signup-lede {
  margin: 0 0 1.2rem;
  font: 400 1.2rem/1.35 var(--serif);
  color: var(--ink-2);
}
.fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field i { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.field input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(9, 8, 7, 0.75);
  border: 1px solid rgba(237, 230, 218, 0.22);
  color: var(--ink);
  font: 400 1rem var(--sans);
  border-radius: 0;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,164,92,0.18); }

.consent {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  margin: 16px 0;
  font-size: 0.86rem; line-height: 1.5; color: var(--ink-2);
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }

.signup button[type=submit] {
  width: 100%;
  padding: 16px 20px;
  background: var(--gold);
  color: #140f08;
  border: 0;
  font: 500 0.82rem/1 var(--sans);
  letter-spacing: 0.26em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.signup button[type=submit]:hover { background: var(--gold-2); box-shadow: 0 0 30px rgba(224,191,122,0.35); }
.signup button[type=submit]:disabled { opacity: 0.5; cursor: wait; }
.fine { margin: 12px 0 0; font-size: 0.75rem; color: var(--ink-3); }
.status { margin: 10px 0 0; min-height: 1.2em; font: 500 1.15rem var(--serif); color: var(--gold-2); }
.status:empty { display: none; }
.signup.done .fields, .signup.done .consent, .signup.done button, .signup.done .fine { display: none; }
.hp { position: absolute; left: -9999px; }

.scroll-cue {
  display: inline-block; margin-top: 28px;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
}
.scroll-cue:hover { color: var(--ink); }

/* ---------- sections ---------- */
.section { max-width: 1280px; margin: 0 auto; padding: clamp(72px, 12vh, 140px) var(--gutter); }

/* sections surface from the dark */
.reveal { opacity: 0; transform: translateY(24px); filter: brightness(0.3); transition: opacity 1.4s ease, transform 1.4s ease, filter 2.2s ease; }
.reveal.seen { opacity: 1; transform: none; filter: none; }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0,0,0,0.8); }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
  border: 0; color: var(--ink); cursor: pointer;
}
.player .play svg { width: clamp(64px, 9vw, 104px); transition: transform 0.3s, color 0.3s; }
.player .play:hover svg { transform: scale(1.06); color: var(--gold); }
.player .play[hidden] { display: none; }

/* the film, centred: logline, one paragraph, the title-card ornament */
.story { max-width: 860px; text-align: center; padding-bottom: clamp(48px, 8vh, 96px); }
.logline { margin: 0 0 1.6rem; font: 400 clamp(2rem, 3.6vw, 2.9rem)/1.18 var(--serif); }
.story-about { margin: 0 auto; font: 400 1.3rem/1.55 var(--serif); color: var(--ink-2); max-width: 34em; }
.flourish { width: min(100%, 380px); height: auto; margin: 2.8rem auto 0; opacity: 0.75; }

/* the director's note, set like a letter */
.letter { max-width: 680px; padding-top: 0; padding-bottom: clamp(40px, 6vh, 64px); }
.letter + .stills { padding-top: 0; }
.teaser { padding-bottom: clamp(56px, 7vh, 72px); }
.teaser + .story { padding-top: 0; }
.note-title { margin: 0 0 1.6rem; font: 500 1.7rem/1.2 var(--serif); }
.note-body p { margin: 0 0 1.15rem; font: 400 1.22rem/1.65 var(--serif); color: var(--ink-2); }
.note-body p:first-child { color: var(--ink); }
.signature { margin-top: 2rem !important; color: var(--ink) !important; font-size: 1.45rem !important; }
.signature span { display: block; font: 500 0.7rem/1.6 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }

/* credits set like the billing block at the foot of a poster */
.credits-block { padding-top: 0; text-align: center; }
.credits-block p {
  max-width: 980px; margin: 0 auto; padding-top: 2.4rem; border-top: 1px solid var(--line);
  font: 500 clamp(0.95rem, 1.4vw, 1.12rem)/2 var(--serif);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.credits-block small { font: 400 0.62rem/1 var(--sans); letter-spacing: 0.08em; text-transform: lowercase; color: var(--ink-3); margin: 0 0.35em; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.still { position: relative; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; aspect-ratio: 16 / 9; }
.still.s-wide { grid-column: span 2; aspect-ratio: auto; }
.still.s-wide img { position: absolute; inset: 0; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.still:hover img, .still:focus-visible img { transform: scale(1.03); }

.festivals { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.poster { margin: 0; box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.fest-title { margin: 0 0 1.1rem; font: 500 1.6rem/1.2 var(--serif); color: var(--ink); }

/* international sales: its own block, with the agent's mark and a direct contact */
.sales { max-width: 560px; text-align: center; padding-top: clamp(24px, 4vh, 40px); padding-bottom: clamp(24px, 4vh, 40px); }
.sales + .closing { padding-top: clamp(48px, 8vh, 80px); }
.sales-label { margin: 0 0 1.4rem; font: 500 0.72rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-3); }
.sales-logo { display: inline-block; }
.sales-logo img { width: 112px; height: auto; margin: 0 auto; opacity: 0.9; transition: opacity 0.2s; }
.sales-name { margin: 1.1rem 0 0.5rem; font: 500 1.5rem/1.2 var(--serif); }
.sales-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.sales-contact a:hover { color: var(--gold-2); border-color: var(--gold); }
.sales-contact { margin: 0; font: 400 1.1rem/1.5 var(--serif); color: var(--ink-2); }

.closing { position: relative; max-width: none; isolation: isolate; text-align: center; padding-top: clamp(96px, 16vh, 180px); }
.closing-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("assets/stills/clock.jpg") center / cover no-repeat;
}
.closing-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(9,8,7,0.62) 0%, rgba(9,8,7,0.95) 72%), linear-gradient(var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.closing-inner { max-width: 580px; margin: 0 auto; }
.closing-title { margin: 0 0 0.4rem; font: 400 clamp(2.2rem, 4.8vw, 3.6rem)/1.1 var(--serif); }
.chime { margin: 0 0 2.6rem; font-size: 0.75rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-3); }
.chime-time { color: var(--gold); font-variant-numeric: tabular-nums; }
.closing .signup-card { text-align: left; }

.footer { padding: 56px var(--gutter) 64px; text-align: center; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-3); }
.footer-logo { width: 180px; height: auto; margin: 0 auto 18px; opacity: 0.7; }
.footer p { margin: 4px 0; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(5,5,4,0.95); }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; }
.lightbox-close { position: fixed; top: 16px; right: 20px; background: none; border: 0; color: var(--ink); font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .festivals { grid-template-columns: 1fr; }
  .flourish { width: min(100%, 300px); }
  .poster { max-width: 420px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .still.s-wide:last-child { grid-column: auto; aspect-ratio: 16 / 9; }
  .hero-bg { background-position: 70% 30%; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(9,8,7,0.86) 55%, rgba(9,8,7,0.5) 100%); }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .signup-card { padding: 24px 16px 16px; }
  .gallery { grid-template-columns: 1fr; }
  .still.s-wide { grid-column: auto; aspect-ratio: 16 / 9; }
  /* phones: Kit's face fills the top of the screen, the title sits over the bottom of the shot,
     and the signup box follows on solid black */
  .hero { align-items: flex-start; }
  .hero-bg { bottom: auto; height: 68svh; background-position: 90% 30%; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(9,8,7,0.6) 30%, rgba(9,8,7,0.12) 62%, rgba(9,8,7,0.45) 100%); }
  .hero-inner { padding-top: 22px; text-align: center; }
  .laurels-hero { flex-wrap: nowrap; justify-content: center; gap: 8px; margin-bottom: 30svh; }
  .laurels-hero img { height: 30px; }
  .laurels-hero .laurel-lg img { height: 38px; }
  .logo { margin: 0 auto; }
  .billing { flex-direction: column; align-items: center; gap: 0.35rem; margin: 1.2rem 0 2rem; }
  .signup-card { text-align: left; }
  .laurels-wall { gap: 18px 22px; }
  .laurels-wall img { height: 56px; }
  .laurels-wall .laurel-lg img { height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, body::after { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}
