/* ==========================================================================
   Bearing Foundation — homepage
   Editorial Design System v1.0
   Colors: cream #F3F2EF · charcoal #1F2328 · gray #7A7A7A ·
           black (Scripture) #000000 · white (Scripture on charcoal) #FFFFFF
   Type:   Literata (reading) · Inter (interface)
   ========================================================================== */

@font-face {
  font-family: "Literata";
  src: url("../assets/fonts/Literata-Var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../assets/fonts/Literata-Italic-Var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F3F2EF;
  --charcoal: #1F2328;
  --gray: #7A7A7A;
  --scripture-black: #000000;
  --scripture-white: #FFFFFF;

  --font-reading: "Literata", Georgia, "Times New Roman", serif;
  --font-interface: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Reading measure: comfortable for sustained reading */
  --measure: 40rem;
  --gutter: 1.5rem;

  --body-size: 1.0625rem;      /* 17px */
  --body-leading: 1.8;

  /* Vertical rhythm */
  --beat: 1.4em;               /* between sentences within a thought  */
  --pause: 2.6em;              /* between grouped thoughts            */
  --rest: clamp(6rem, 16vh, 9.5rem); /* between scenes                */
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-reading);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

p { margin: 0 0 var(--beat); }
p:last-child { margin-bottom: 0; }

.para-group { margin-top: var(--pause); margin-bottom: var(--pause); }
.para-group:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--charcoal); color: var(--cream); }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}
.scene--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-interface);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

/* --------------------------------------------------------------------------
   Layout: the reading axis
   -------------------------------------------------------------------------- */

.measure {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.scene {
  padding-block: var(--rest);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 242, 239, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(31, 35, 40, 0.12);
}

.site-header__inner {
  max-width: 68rem;
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.lockup__mark { width: 26px; height: 26px; }
.lockup__name {
  font-family: var(--font-reading);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav__link {
  font-family: var(--font-interface);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  text-decoration: none;
}
.site-nav__link--quiet {
  color: var(--gray);
  font-weight: 400;
}
.site-nav__link--quiet:hover { color: var(--charcoal); }
.site-nav__link--cta {
  padding: 0.5rem 0.95rem;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 2px;
}
.site-nav__link--cta:hover { background: #000000; }

/* --------------------------------------------------------------------------
   Scenes: shared typography
   -------------------------------------------------------------------------- */

.scene-title {
  font-family: var(--font-reading);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 0 2.2rem;
}

/* An emphasized editorial statement within a scene */
.statement {
  margin-top: var(--pause);
  margin-bottom: var(--pause);
  font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.375rem);
  font-weight: 500;
  line-height: 1.65;
  max-width: 34rem;
}

/* --------------------------------------------------------------------------
   1 · Hero
   -------------------------------------------------------------------------- */

.scene--hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--rest);
}

.hero-content {
  width: 100%;
  margin-top: auto;
  padding-top: 6vh;
}

.hero-continue {
  width: 100%;
  margin-top: auto;
  padding-top: 5rem;
}

.continue-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-interface);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
}
.continue-cue:hover { color: var(--charcoal); }
.continue-cue__arrow { font-size: 0.85rem; letter-spacing: 0; }

.hero-mark {
  width: clamp(44px, 4.5vw, 56px);
  height: auto;
  margin-bottom: 2.4rem;
}

.hero-title {
  font-family: var(--font-reading);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 15em;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   2 · The World of Scripture
   -------------------------------------------------------------------------- */

.world-list {
  margin-block: var(--pause);
  display: grid;
  gap: 0.55em;
}
.world-list__item {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}
.world-list__item:last-child {
  font-size: var(--body-size);
  font-weight: 400;
  color: var(--gray);
  margin-top: 0.35em;
}

/* --------------------------------------------------------------------------
   3 · Why This Matters
   -------------------------------------------------------------------------- */

.resource-field {
  margin-block: calc(var(--pause) * 1.3);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: 1.35rem;
  max-width: 34rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.resource-field__item {
  white-space: nowrap;
  color: var(--gray);
  opacity: 0.7;
}
/* Irregular placement: a landscape of familiar destinations, not a list. */
.resource-field__item:nth-child(1) { grid-column: 1 / span 4;  grid-row: 1; }
.resource-field__item:nth-child(2) { grid-column: 8 / span 4;  grid-row: 1; opacity: 0.55; }
.resource-field__item:nth-child(3) { grid-column: 3 / span 5;  grid-row: 2; opacity: 0.55; }
.resource-field__item:nth-child(4) { grid-column: 10 / span 3; grid-row: 2; margin-top: 0.35em; }
.resource-field__item:nth-child(5) { grid-column: 1 / span 3;  grid-row: 3; margin-top: 0.2em; opacity: 0.55; }
.resource-field__item:nth-child(6) { grid-column: 6 / span 6;  grid-row: 3; }
.resource-field__item:nth-child(7) { grid-column: 2 / span 3;  grid-row: 4; opacity: 0.6; }
.resource-field__item:nth-child(8) { grid-column: 8 / span 3;  grid-row: 4; margin-top: 0.3em; opacity: 0.55; }

.statement--handoff { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   5 · Scripture reading experiences
   -------------------------------------------------------------------------- */

.scene--finding { padding-bottom: calc(var(--rest) * 0.55); }

.scene--passage {
  border-top: 1px solid rgba(31, 35, 40, 0.1);
}
.scene--passage .measure { position: relative; }

.footing {
  color: var(--gray);
  font-size: 1rem;
  max-width: 36rem;
  margin-bottom: 3rem;
}

/* Scripture is visually primary: black, larger, generous leading */
.scripture {
  margin: 0 0 3rem;
}
.scripture blockquote {
  margin: 0;
  color: var(--scripture-black);
}
.scripture blockquote p {
  font-size: clamp(1.375rem, 1.15rem + 1.2vw, 1.75rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.003em;
  margin-bottom: 0.9em;
}
.scripture blockquote p:last-child { margin-bottom: 0; }

.scripture figcaption {
  margin-top: 1.4rem;
  font-family: var(--font-interface);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.scripture figcaption .translation { letter-spacing: 0.08em; }

@media (min-width: 58rem) {
  .scripture--wide { width: min(47rem, calc(100vw - 2 * var(--gutter))); }
}

.scripture--reread { margin-bottom: 3rem; }
.scripture--reread blockquote p {
  font-size: clamp(1.25rem, 1.08rem + 0.9vw, 1.5rem);
}

/* Orientation block: the Bearing layer, quietly set apart */
.orientation {
  margin: 0 0 3.2rem;
  padding-left: 1.4rem;
  border-left: 2px solid rgba(31, 35, 40, 0.18);
}

.orientation__intro {
  font-family: var(--font-interface);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 1.1rem;
}

.orientation__label {
  font-family: var(--font-interface);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}

.teaser {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
  max-width: 33rem;
}

/* Focus-zone enhancement: the first Matthew teaser waits for the verse */
.js .orientation[data-focus-orientation]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(6px);
}
.js .orientation[data-focus-orientation].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 1.1s cubic-bezier(0.22, 0.9, 0.3, 1),
    transform 1.1s cubic-bezier(0.22, 0.9, 0.3, 1);
}

/* Amos word pair */
.wordpair {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin: 1.6rem 0 1.4rem;
}
.wordpair__word {
  display: grid;
  gap: 0.15rem;
}
.wordpair__word em {
  font-size: 1.375rem;
  font-weight: 500;
}
.wordpair__gloss {
  font-family: var(--font-interface);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--gray);
}
.wordpair__tilde {
  color: var(--gray);
  font-size: 1.25rem;
}

/* Matthew 21 source references */
.source-refs {
  display: flex;
  gap: 0.7rem;
  font-family: var(--font-interface);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 1.2rem 0 1.3rem;
}

/* Companion disclosure */
.more {
  appearance: none;
  background: none;
  border: 1px solid rgba(31, 35, 40, 0.3);
  border-radius: 2px;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: var(--font-interface);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.more:hover { border-color: var(--charcoal); }
.more__chevron {
  font-size: 0.75em;
  transition: transform 0.25s ease;
  transform-origin: center;
}
.more[aria-expanded="true"] .more__chevron { transform: rotate(180deg); }

/* The Companion: a step deeper, taken on purpose */
.companion { margin-top: 1.7rem; }
.companion__inner {
  max-width: 32rem;
  padding-left: 1.3rem;
  color: var(--charcoal);
}
.companion__inner p { font-size: 1rem; }

.js .companion__inner {
  opacity: 0;
  transform: translateY(4px);
}
.js .companion.is-open .companion__inner {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reread-cue {
  font-family: var(--font-reading);
  font-style: italic;
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.reflection { margin-top: 0.6rem; }
.reflection__title {
  font-family: var(--font-reading);
  font-weight: 500;
  font-size: 1.1875rem;
  margin: 0 0 1.4rem;
}
.reflection p { max-width: 36rem; }

/* --------------------------------------------------------------------------
   6 & 13 · Charcoal scenes (transitions / closing)
   -------------------------------------------------------------------------- */

.scene--dark {
  background: var(--charcoal);
  color: var(--cream);
}
.scene--dark .scene-title { color: var(--cream); }
.scene--dark .para-group--closing {
  margin-top: calc(var(--pause) * 1.4);
  color: rgba(243, 242, 239, 0.72);
}

/* --------------------------------------------------------------------------
   12 · Building Carefully
   -------------------------------------------------------------------------- */

.cadence {
  margin-block: var(--pause);
  display: grid;
  gap: 0.4em;
  font-size: 1.1875rem;
  font-weight: 500;
}
.cadence span:last-child { color: var(--gray); }

/* --------------------------------------------------------------------------
   13 · Continue the Conversation
   -------------------------------------------------------------------------- */

.scene--conversation { padding-bottom: calc(var(--rest) * 1.1); }

.conversation-lead {
  margin-top: var(--pause);
  margin-bottom: 2.4rem;
  font-size: 1.1875rem;
  font-weight: 500;
}

.conversation-form { max-width: 34rem; }

/* Honeypot: kept out of sight and out of the tab order for real users */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  gap: 1.5rem 1.5rem;
}
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.field { margin-bottom: 1.5rem; }
.form-grid .field { margin-bottom: 0; }
.form-grid { margin-bottom: 1.5rem; }

.field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-interface);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.field__optional {
  margin-left: 0.4rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.04em;
}

.field__input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  background: transparent;
  border: 1px solid rgba(243, 242, 239, 0.3);
  border-radius: 2px;
  color: var(--cream);
  font-family: var(--font-interface);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.field__input:hover { border-color: rgba(243, 242, 239, 0.5); }
.field__input:focus-visible {
  outline: none;
  border-color: var(--cream);
}
.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23F3F2EF' stroke-opacity='.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
}
.field__select option { color: var(--charcoal); background: var(--cream); }
.field__textarea { resize: vertical; min-height: 7.5rem; }

.form-status {
  margin: 0 0 1.4rem;
  font-size: 1rem;
  color: var(--cream);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-interface);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.cta-row {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
}

.button:hover { background: #ffffff; }

.quiet-link {
  font-family: var(--font-interface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(243, 242, 239, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 242, 239, 0.3);
  padding-bottom: 0.1rem;
}
.quiet-link:hover { color: var(--cream); border-bottom-color: rgba(243, 242, 239, 0.7); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  border-top: 1px solid rgba(243, 242, 239, 0.12);
}
.site-footer__inner {
  max-width: var(--measure);
  margin-inline: auto;
  padding: 3.4rem var(--gutter) 3.8rem;
}
.lockup--footer .lockup__name { font-size: 1rem; color: var(--cream); }
.site-footer__line {
  margin-top: 1.4rem;
  font-size: 0.9375rem;
  color: rgba(243, 242, 239, 0.72);
}
.site-footer__meta {
  margin-top: 2.2rem;
  font-family: var(--font-interface);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--gray);
}

/* --------------------------------------------------------------------------
   Bearing orientation strip
   A quiet running header: the journey drifts so the reader's current
   place arrives beneath a fixed center mark. Orientation, not chrome.
   -------------------------------------------------------------------------- */

.orientation-strip {
  position: relative;
  border-top: 1px solid rgba(31, 35, 40, 0.08);
  height: 2rem;
}

.orientation-strip__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orientation-strip__track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.orientation-strip__item {
  font-family: var(--font-interface);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(122, 122, 122, 0.55);        /* not yet reached */
  transition: color 0.5s ease;
}
.orientation-strip__item.is-past { color: var(--gray); }
.orientation-strip__item.is-current { color: var(--charcoal); font-weight: 500; }

.orientation-strip__item--sub {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

/* Connecting lines: one journey continuing into the next */
.orientation-strip__item + .orientation-strip__item::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 1.6rem;
  height: 1px;
  margin: 0 0.8rem;
  background: rgba(31, 35, 40, 0.16);
}
.orientation-strip__item + .orientation-strip__item--sub::before,
.orientation-strip__item--sub + .orientation-strip__item::before {
  width: 0.9rem;
  margin: 0 0.6rem;
  background: rgba(31, 35, 40, 0.12);
}

/* The fixed center mark the journey arrives beneath */
.orientation-strip__mark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 5px;
  background: rgba(31, 35, 40, 0.4);
}

@media (max-width: 40rem) {
  .orientation-strip { height: 1.7rem; }
  .orientation-strip__item { font-size: 0.625rem; }
  .orientation-strip__item--sub { font-size: 0.5625rem; }
  .orientation-strip__item + .orientation-strip__item::before {
    width: 1.1rem;
    margin: 0 0.6rem;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 40rem) {
  .site-nav { gap: 1rem; }
  .orientation { padding-left: 1.1rem; }

  .site-header__inner { gap: 0.75rem; }
  .lockup__name { font-size: 0.95rem; }
}

@media (min-width: 64rem) {
  :root { --gutter: 2rem; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .orientation[data-focus-orientation]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
  .js .companion__inner {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Film modal
   Quiet charcoal overlay carrying the introduction film. Opens from the
   two film triggers and the /film route; closes to return the reader to
   the page (and the conversation form) exactly where they were.
   -------------------------------------------------------------------------- */

.film-open {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
/* Keep the nav trigger visually identical to the other nav link */
.site-nav__link.film-open {
  color: var(--gray);
  font-family: var(--font-interface);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.site-nav__link.film-open:hover { color: var(--charcoal); }
/* The conversation-section trigger keeps the quiet-link styling */
.quiet-link.film-open { display: inline; }

.film-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.film-modal[hidden] { display: none; }

.film-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 35, 40, 0.92);
  backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.film-modal.is-open .film-modal__backdrop { opacity: 1; }

.film-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 68rem;
  opacity: 0;
  transform: translateY(8px) scale(0.995);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.film-modal.is-open .film-modal__dialog {
  opacity: 1;
  transform: none;
}

.film-modal__close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(243, 242, 239, 0.75);
  transition: color 0.2s ease;
}
.film-modal__close:hover { color: var(--cream); }

@media (max-width: 40rem) {
  .film-modal__close { top: -2.4rem; right: 0.25rem; }
}

/* Responsive 16:9 film frame */
.film-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
  .film-modal__frame { height: 0; padding-bottom: 56.25%; }
}

.film-modal__player,
.film-modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Prevent background scroll while the modal is open */
body.film-open-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .film-modal__backdrop,
  .film-modal__dialog { transition: none; }
}
