/* Lacuna Productions — site styles.
   Black, charcoal, white and Lacuna red (sampled from the logo).
   Pages are built like film: black bars, title cards, end credits.
   Bodoni Moda carries titles and statements; Archivo carries everything small. */

:root {
  --black: #000;
  --charcoal: #141414;
  --graphite: #2b2a29;
  --smoke: #a19e98;          /* secondary text, 7:1 on charcoal */
  --paper: #efede9;          /* primary text */
  --red: #e3262d;            /* Lacuna red: wordmark, links, focus */

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --brand: "Montserrat", "Archivo", Arial, sans-serif;

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --max: 76rem;
  --band: clamp(5rem, 3rem + 8vw, 10rem);

  /* the homepage opening frame; the menu on every page lines up with its edges */
  --frame-ratio: 2.39;
  --frame-w: min(100vw - 2 * var(--gutter), (100svh - 13.5rem) * var(--frame-ratio));
}
/* squarer screens get a 1.85 frame; portrait screens and phones a tall 4:5 */
@media (max-aspect-ratio: 3/2) { :root { --frame-ratio: 1.85; } }
@media (max-aspect-ratio: 1/1) { :root { --frame-ratio: 0.8; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
em, cite { font-style: italic; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--paper); color: var(--black);
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ── bands: sections alternate black and charcoal ───────────── */

.band { padding-block: var(--band); }
.band--charcoal { background: var(--charcoal); }
.band--tight { padding-top: 0; }
.band--first { padding-top: clamp(2.5rem, 1rem + 4vw, 5rem); }  /* first section straight under the header */

/* ── wordmark (rebuilt from the logo) ───────────────────────── */

.wordmark {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; line-height: 1; gap: .32em; font-family: var(--brand);
}
.wordmark__name { color: var(--red); font-weight: 800; font-size: 1.6rem; letter-spacing: .005em; }
.wordmark__sub { color: #fff; font-weight: 600; font-size: .5rem; letter-spacing: .5em; margin-right: -.5em; }
.wordmark--small .wordmark__name { font-size: 1.25rem; }
.wordmark--small .wordmark__sub { font-size: .4rem; }

/* ── header & navigation ────────────────────────────────────── */

.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: 1.75rem;
  width: var(--frame-w); margin-inline: auto;
}
/* on the homepage the header floats over the black top bar, in the same spot as every other page */
.is-home .site-header { position: absolute; top: 0; left: 0; right: 0; }

.site-nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.site-nav a {
  position: relative; display: block; padding-block: .4rem;
  font-size: .9375rem; text-decoration: none; color: var(--paper); transition: color .2s;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
}

.menu-toggle {
  display: none; font: inherit; font-size: .9375rem; color: var(--paper);
  background: none; border: 1px solid rgba(239, 237, 233, .4); padding: .45rem .9rem; cursor: pointer;
}

@media (max-width: 47.99em) {
  .menu-toggle { display: block; position: relative; z-index: 31; }
  .site-nav {
    position: fixed; inset: 0; z-index: 30; background: var(--black);
    display: flex; align-items: flex-start; padding: 7.5rem var(--gutter) 3rem; overflow-y: auto; visibility: hidden;
  }
  .nav-open .site-nav { visibility: visible; }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: .35rem; }
  .site-nav a { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.15; }
  /* current page: italic with a red underline */
  .site-nav a[aria-current="page"] { font-style: italic; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .18em; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .wordmark { position: relative; z-index: 31; }
}

/* ── type ───────────────────────────────────────────────────── */

.kicker { font-size: .875rem; color: var(--smoke); letter-spacing: .01em; font-weight: 400; }

/* page titles */
.display {
  font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11;
  font-size: clamp(3rem, 1.4rem + 6.5vw, 7.5rem); line-height: .95; letter-spacing: -.02em;
}

/* large serif paragraphs: the company speaking */
.statement {
  font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11;
  font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.5rem); line-height: 1.3; max-width: 24em; text-wrap: pretty;
}

.serif-heading { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.1; }

/* film titles are always italic serif, as in print */
.film-title { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-style: italic; line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.film-title a { text-decoration: none; }
.film-title--xl { font-size: clamp(2.8rem, 1.2rem + 6.6vw, 7.5rem); line-height: .96; }

.cine-link {
  font-size: .9375rem; text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 1px; text-underline-offset: .45em;
}
.cine-link:hover { text-decoration-thickness: 2px; color: #fff; }
.link-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }

.prose > p { max-width: 36em; }
.prose > p + p { margin-top: 1rem; }

/* ── page opening ───────────────────────────────────────────── */

.page-open { padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) var(--band); }
.page-open .statement { margin-top: clamp(2rem, 4vw, 3.5rem); }
.page-open .link-row { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem;
  padding-bottom: 1.5rem; margin-bottom: clamp(2.5rem, 4vw, 4rem); border-bottom: 1px solid var(--graphite);
}
.section-head p { color: var(--smoke); }

/* ── credit roll: the end-credits split ─────────────────────── */

.credit-roll { display: grid; gap: .6rem; margin: 3rem auto; width: 100%; max-width: 34rem; }
.credit-roll > div { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; align-items: baseline; }
.credit-roll dt { text-align: right; color: var(--smoke); font-size: .8125rem; }
.credit-roll dd { font-weight: 500; text-align: left; }
@media (max-width: 29.99em) {
  .credit-roll > div { grid-template-columns: 1fr; }
  .credit-roll dt, .credit-roll dd { text-align: center; }
  .credit-roll > div + div { margin-top: .5rem; }
}

/* ── title card: centred, like an opening title ─────────────── */

.titlecard { text-align: center; }
.titlecard__inner { display: grid; justify-items: center; }
.titlecard .film-title { margin: 1.5rem 0 1.75rem; max-width: 11em; }
.titlecard__logline { color: var(--smoke); }
/* synopses always read flush left; the block stays centred under the title */
.titlecard__synopsis { width: min(100%, 37rem); margin-top: 2rem; font-size: 1.125rem; line-height: 1.65; text-align: left; }
.titlecard__note { width: min(100%, 37rem); margin-top: 1rem; color: var(--smoke); text-align: left; }
.laurels { display: grid; gap: .5rem; margin-top: 2.5rem; }
.laurels li { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }

/* ── letterboxed still ──────────────────────────────────────── */

.letterbox { padding-top: clamp(1rem, 3vw, 2.5rem); }
.letterbox__frame { position: relative; aspect-ratio: 2.39; overflow: hidden; background: #0b0b0b; }
@media (max-width: 47.99em) { .letterbox__frame { aspect-ratio: 16 / 10; } }
.letterbox__frame img { width: 100%; height: 100%; object-fit: cover; }
.letterbox__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(0,0,0,.5) 100%);
}
.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── posters ────────────────────────────────────────────────── */

.reel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.1rem; }
@media (min-width: 40em) { .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 1.75rem; } }
@media (min-width: 64em) {
  .reel-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .reel-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4rem 2.5rem; max-width: 62rem; }
}

.reel-card { display: grid; gap: .35rem; text-decoration: none; }
.reel-card__art { display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--graphite); margin-bottom: .9rem; }
.reel-card__art img, .reel-card__art .type-poster { width: 100%; height: 100%; object-fit: cover; transition: filter .4s, transform .8s cubic-bezier(.2,.7,.2,1); }
a.reel-card:hover .reel-card__art img { transform: scale(1.025); filter: brightness(1.08); }
.reel-card__title { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-size: 1.2rem; line-height: 1.2; color: var(--paper); }
.reel-grid--three .reel-card__title { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); }
a.reel-card:hover .reel-card__title { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.reel-card__meta { color: var(--smoke); font-size: .875rem; }

img.is-contain { object-fit: contain !important; background: var(--black); }

/* typographic key art, for projects without approved artwork */
.type-poster {
  display: flex; flex-direction: column; gap: .9rem; aspect-ratio: 2 / 3;
  padding: 12% 10%; background: var(--black); border: 1px solid var(--graphite); text-align: left;
}
.type-poster__title {
  font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1; letter-spacing: -.015em; color: var(--paper); text-wrap: balance;
}
.reel-grid .type-poster__title { font-size: clamp(1.3rem, 2.4vw, 2.1rem); }
.type-poster__format { font-size: .8125rem; color: var(--smoke); margin-top: auto; }
.reel-grid--three .type-poster__title { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.type-poster::before { content: ""; display: block; width: 2rem; height: 1px; background: var(--red); order: 1; }

.aside-note { color: var(--smoke); margin-top: 3.5rem; max-width: 40em; }

/* ── project pages ──────────────────────────────────────────── */

.crumb { font-size: .9375rem; }
.crumb a { color: var(--smoke); text-decoration: none; }
.crumb a:hover { color: var(--paper); }

.project-media { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.project-media__poster { width: 100%; max-width: 20rem; margin-inline: auto; }
@media (min-width: 56em) {
  .project-media--with-player { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); }
  .project-media--with-player .project-media__poster { margin: 0; }
}

.player { position: relative; aspect-ratio: 16 / 9; background: #0b0b0b; overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: opacity .3s; }
.player:hover img { opacity: .8; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .8rem; white-space: nowrap;
  font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-style: italic; font-size: 1.35rem; color: #fff; cursor: pointer;
  padding: .75rem 1.5rem .75rem 1.25rem; background: none; border: 1px solid rgba(255,255,255,.7);
}
.player__play:hover { border-color: var(--red); background: rgba(0,0,0,.35); }
.player__icon { width: 0; height: 0; border-style: solid; border-width: .4rem 0 .4rem .7rem; border-color: transparent transparent transparent var(--red); }

.next-project { text-align: center; }
.next-project a { display: inline-grid; gap: 1rem; justify-items: center; text-decoration: none; }
.next-project .film-title { font-size: clamp(2.2rem, 1.2rem + 4vw, 5rem); }
.next-project a:hover .film-title { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* ── about ──────────────────────────────────────────────────── */

.person { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.person + .person { margin-top: var(--band); padding-top: var(--band); border-top: 1px solid var(--graphite); }
@media (min-width: 52em) { .person { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }
.person__photo { max-width: 22rem; }
.person__photo img, .person__placeholder { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05) brightness(.9); }
.person__placeholder {
  display: grid; place-items: center; background: var(--black); border: 1px solid var(--graphite);
  font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-style: italic; font-size: 3.5rem; color: var(--graphite);
}
.person__name { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -.015em; }
.person__role { color: var(--smoke); margin: .75rem 0 2rem; }
.person__body .kicker { margin-top: 2.75rem; margin-bottom: 1rem; }

.affiliations { columns: 2 14rem; column-gap: 2rem; max-width: 40rem; }
.affiliations li { break-inside: avoid; padding: .55rem 0; border-top: 1px solid var(--graphite); font-size: .9375rem; }

/* ── recognition: the end credits ───────────────────────────── */

.endcredits { text-align: center; }
.endcredits__list { display: grid; gap: 2.25rem; margin-top: 3rem; }
.endcredits__list li { display: grid; gap: .35rem; }
.endcredits__honour { font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-size: clamp(1.3rem, 1rem + 1vw, 1.85rem); line-height: 1.25; }
.endcredits__detail { color: var(--smoke); font-size: .9375rem; }

/* ── contact ────────────────────────────────────────────────── */

.contact-grid { display: grid; gap: 4.5rem; }
@media (min-width: 52em) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(3rem, 7vw, 7rem); align-items: start; } }
.contact-grid .kicker { margin-bottom: 1.25rem; }

/* form: underlined fields, like lines on a call sheet */
.contact-form { display: grid; gap: 2rem; max-width: 42rem; }
.contact-form .kicker { margin-bottom: 0; }
.field-row { display: grid; gap: 2rem; }
@media (min-width: 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .875rem; color: var(--smoke); }
.field__opt { color: #7d7a75; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.125rem; color: var(--paper);
  background: transparent; border: 0; border-bottom: 1px solid rgba(239, 237, 233, .35); border-radius: 0;
  padding: .55rem 0; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-bottom-color: rgba(239, 237, 233, .6); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #ff8a8e; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--paper); box-shadow: inset 0 0 0 100px var(--charcoal); }

.send-btn {
  justify-self: start; cursor: pointer;
  font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-style: italic; font-size: 1.35rem;
  color: #fff; background: none; border: 1px solid rgba(255, 255, 255, .7); padding: .75rem 1.75rem;
  transition: border-color .2s, background-color .2s;
}
.send-btn:hover { border-color: var(--red); background: rgba(227, 38, 45, .12); }

.contact-aside { display: grid; align-content: start; }
.contact-email {
  font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-style: italic;
  font-size: clamp(1.35rem, 1rem + 1.1vw, 1.9rem); line-height: 1.2; overflow-wrap: anywhere; margin-bottom: 2.5rem;
}
.contact-email a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.contact-email a:hover { text-decoration-thickness: 2px; }
.contact-details { display: grid; gap: 1.5rem; }
.contact-details dt { color: var(--smoke); font-size: .875rem; margin-bottom: .2rem; }
.contact-details li + li { margin-top: .3rem; }

/* ── footer ─────────────────────────────────────────────────── */

.site-footer { background: var(--black); border-top: 1px solid #1f1f1f; padding-block: 4rem 3rem; font-size: .9375rem; }
.site-footer__inner {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: 2rem;
}
@media (min-width: 48em) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: start; column-gap: 4rem; }
  .site-footer__legal { grid-column: 1 / -1; }
}
.site-footer__place { color: var(--smoke); }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .3em; }
.site-footer__links li + li { margin-top: .3rem; }
.site-footer__legal { color: #8f8c87; font-size: .8125rem; padding-top: 2rem; border-top: 1px solid #1f1f1f; }

/* ── motion preferences ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ── in development: the whole slate, identical upright posters ─ */

.slate { display: grid; gap: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem); --poster-w: 11rem; }
@media (min-width: 64em) { .slate { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 39.99em) { .slate { --poster-w: 7.5rem; } }

/* poster on the left, details on the right */
.slate-card { display: grid; grid-template-columns: var(--poster-w) minmax(0, 1fr); column-gap: clamp(1.1rem, 2.5vw, 1.75rem); align-items: start; scroll-margin-top: 2rem; }
.slate-card__body > .kicker { margin-bottom: .45rem; }

/* every poster is the same upright 2:3 frame (the art itself is prepared at 2:3) */
.slate-card__art {
  align-self: start;
  position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3;
  container-type: inline-size;
  background: var(--black); border: 1px solid #1f1f1f; overflow: hidden;
}
.slate-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slate-card__placeholder {
  font-family: var(--serif); font-weight: 500; font-variation-settings: "opsz" 11; font-style: italic;
  font-size: 1.4rem; font-size: clamp(.95rem, 13cqi, 1.9rem); line-height: 1.1; text-wrap: balance;
  color: var(--paper); padding: 1rem 10%; text-align: center;
}

.slate-card__title { font-size: clamp(1.45rem, 1.15rem + .9vw, 1.9rem); line-height: 1.05; margin-bottom: .7rem; }
.slate-card__synopsis { font-size: .9375rem; line-height: 1.6; color: rgba(239, 237, 233, .88); }
.slate-card__note { font-size: .875rem; color: var(--smoke); margin-top: .5rem; }
.slate-card__credits {
  display: grid; gap: .3rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--graphite);
  font-size: .875rem;
}
.slate-card__credits > div { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: .75rem; align-items: baseline; }
.slate-card__credits dt { color: var(--smoke); font-size: .8125rem; }
.slate-card__credits dd { font-weight: 500; }

/* on phones the credit roles sit above the names */
@media (max-width: 39.99em) {
  .slate-card__credits > div { grid-template-columns: 1fr; }
  .slate-card__credits > div + div { margin-top: .35rem; }
  .slate-card__synopsis { font-size: .875rem; }
}

/* title cards zoom like the posters do when their card is hovered */
.reel-card .slate-card__placeholder { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
a.reel-card:hover .slate-card__placeholder { transform: scale(1.025); }

/* title card set flush left (used per project via title_card_align: left) */
.slate-card__placeholder--left { justify-self: stretch; text-align: left; }
