/* ==========================================================================
   Endless Venture — Design study 02 / The Field Journal
   Bone paper, dark pine, rust. Condensed display type, thin rules,
   mounted prints, asymmetric 12-column grid. No build step.
   ========================================================================== */

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/condensed.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/sans.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bone: #ede9df;
  --bone-deep: #e3ded0;
  --pine: #24382c;
  --pine-deep: #1b2b21;
  --rust: #a5462d;
  --rust-light: #e39a7a;
  --muted: #4f5f54;
  --muted-on-pine: #b9c2b8;
  --rule: #c9c1ad;
  --rule-on-pine: #3b5041;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1400px;
  --gap: clamp(1rem, 2.5vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 8rem);
  --content-left: max(var(--gutter), calc((100% - var(--max)) / 2));
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--pine);
  font: 400 1.0625rem/1.55 var(--font-sans);
  overflow-x: clip;
}

body:has(dialog[open]) { overflow: hidden; }

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

h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

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

.i { width: .85em; height: .85em; flex: none; }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 100;
  background: var(--pine);
  color: var(--bone);
  padding: .65rem 1rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: .5rem; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
  overflow-wrap: break-word;
}

.kicker,
.index,
.section-name,
.roles,
.film-head,
.filter-label,
.meta dt,
.work-no {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .72rem;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.kicker { color: var(--rust); }
.index { color: var(--rust); }
.section-name { color: var(--muted); }

.deck {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.5;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.25rem .72rem;
  border: 1px solid var(--pine);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pine);
  background: transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--pine); color: var(--bone); }

.btn-primary { background: var(--rust); border-color: var(--rust); color: var(--bone); }
.btn-primary:hover { background: var(--pine); border-color: var(--pine); }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --------------------------------------------------------------------------
   Ear + masthead
   -------------------------------------------------------------------------- */

.ear { border-bottom: 1px solid var(--rule); }

.ear-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  font-weight: 700;
  font-size: .66rem;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 639px) {
  .ear-right { display: none; }
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bone);
  border-bottom: 1px solid var(--pine);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pine);
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pine);
  padding: .5rem 0 .4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current] { border-bottom-color: var(--rust); }

.site-nav .nav-cta {
  border: 1px solid var(--pine);
  padding: .6rem .85rem .55rem;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav .nav-cta:hover {
  background: var(--pine);
  color: var(--bone);
  border-color: var(--pine);
}

.nav-toggle { display: none; }

@media (max-width: 859px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .6rem .8rem;
    border: 1px solid var(--pine);
  }
  .nav-toggle svg { width: 1rem; height: 1rem; }
  .nav-toggle[aria-expanded="true"] { background: var(--pine); color: var(--bone); }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bone);
    border-bottom: 1px solid var(--pine);
  }
  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .25rem var(--gutter) 1.25rem;
  }
  .site-nav li + li { border-top: 1px solid var(--rule); }
  .site-nav a {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 0;
  }
  .site-nav a[aria-current] { color: var(--rust); }
  .site-nav .nav-cta {
    margin-top: .85rem;
    justify-content: center;
    gap: .5rem;
  }
}

/* --------------------------------------------------------------------------
   Mounted prints (photo + caption on a bone mat)
   -------------------------------------------------------------------------- */

.print {
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: .6rem .6rem .8rem;
}
.print img { width: 100%; background: var(--bone-deep); }
.print figcaption {
  padding-top: .65rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--muted);
}
.print figcaption strong {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pine);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-top: clamp(2.5rem, 7vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
}

.hero-copy {
  grid-column: 1 / span 8;
  padding-bottom: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy h1 {
  margin-top: 1rem;
  font-size: clamp(3.4rem, 9.5vw, 9rem);
}
.hero-copy h1 em { font-style: normal; color: var(--rust); }

.hero-deck {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--gap);
  align-items: end;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--pine);
}

.hero-print {
  grid-column: 9 / span 4;
  position: relative;
  z-index: 2;
  margin-bottom: calc(-1 * clamp(3rem, 9vw, 8rem));
}
.hero-print img { aspect-ratio: 1 / 1; object-fit: cover; }

.hero-band {
  position: relative;
  background: var(--pine);
}
.hero-band img {
  width: 100%;
  height: clamp(300px, 58vh, 680px);
  object-fit: cover;
}
.hero-band figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: min(90%, 44ch);
  padding: .55rem 1rem .55rem var(--content-left);
  background: var(--bone);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .hero-grid { display: block; }
  .hero-copy { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
  .hero-print {
    width: min(60%, 380px);
    margin-left: auto;
    margin-bottom: -2.75rem;
  }
}

@media (max-width: 639px) {
  .hero-deck { grid-template-columns: 1fr; }
  .hero-print { width: min(72%, 320px); margin-bottom: -2.25rem; }
  .hero-band figcaption { max-width: 100%; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-top: var(--section-pad); scroll-margin-top: 4.5rem; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  border-top: 1px solid var(--pine);
  padding-top: .7rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  font-weight: 700;
  font-size: .72rem;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
  padding-bottom: .15rem;
  white-space: nowrap;
}
.section-link:hover { color: var(--rust); }

.section-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1rem;
  align-items: end;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-intro h2 {
  grid-column: 1 / span 7;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
}
.section-intro .deck {
  grid-column: 9 / span 4;
  padding-bottom: .4em;
  color: var(--muted);
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--pine);
}
.section-foot p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .section-intro h2 { grid-column: 1 / span 12; }
  .section-intro .deck { grid-column: 1 / span 10; padding-bottom: 0; }
}

@media (max-width: 639px) {
  .section-head { flex-wrap: wrap; gap: .6rem 1rem; }
  .section-link { margin-left: 0; width: 100%; white-space: normal; }
  .section-intro .deck { grid-column: 1 / span 12; }
}

/* --------------------------------------------------------------------------
   Films — filters
   -------------------------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  padding: .85rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.filter-label { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; }

.filters button {
  padding: .55rem .85rem .42rem;
  border: 1px solid var(--rule);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pine);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.filters button:hover { border-color: var(--pine); }
.filters button[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--bone);
}

.filter-status {
  margin-left: auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .85rem;
  line-height: 1.3;
  color: var(--muted);
}

@media (max-width: 639px) {
  .filter-status { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   Films — grid
   -------------------------------------------------------------------------- */

.film-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) var(--gap);
  transition: opacity .2s ease;
}
.film-grid.is-updating { opacity: .55; }

.film {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  border-top: 1px solid var(--pine);
  padding-top: .7rem;
}
.film[data-pos="1"] { grid-column: span 8; }

.film-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}
.film-no { color: var(--rust); }

.film-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--pine-deep);
  overflow: hidden;
}
.film-media img { width: 100%; height: 100%; object-fit: cover; }

.film-play {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem .4rem;
  background: var(--bone);
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease;
}
.film-play svg { width: .7rem; height: .7rem; fill: var(--rust); }

.film-title { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.film[data-pos="1"] .film-title {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  max-width: 18em;
}
.film-episode {
  display: block;
  margin-top: .25em;
  font-size: .55em;
  letter-spacing: .02em;
  color: var(--muted);
}

.film-title a { text-decoration: none; color: inherit; }
.film-title a::after { content: ""; position: absolute; inset: 0; }
.film-title a:focus-visible { outline: none; }
.film-title a:focus-visible::after { outline: 2px solid var(--rust); outline-offset: 4px; }

.film:hover .film-title a,
.film:focus-within .film-title a { color: var(--rust); }
.film:hover .film-play,
.film:focus-within .film-play { background: var(--rust); color: var(--bone); }
.film:hover .film-play svg,
.film:focus-within .film-play svg { fill: var(--bone); }

.film-foot {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding-top: .6rem;
  border-top: 1px solid var(--rule);
  font-size: .82rem;
}
.film-foot a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
}
.film-foot a:hover { color: var(--rust); }

@media (max-width: 1023px) {
  .film { grid-column: span 6; }
  .film[data-pos="1"] { grid-column: span 12; }
  .film[data-pos="1"] .film-title { font-size: clamp(2rem, 5vw, 3.2rem); }
}

@media (max-width: 639px) {
  .film,
  .film[data-pos="1"] { grid-column: span 12; }
  .film-title,
  .film[data-pos="1"] .film-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.member-lead { grid-column: 1 / span 7; }
.member:not(.member-lead) {
  grid-column: 9 / span 4;
  margin-top: clamp(3rem, 10vw, 9rem);
}

.member-lead .print img { aspect-ratio: 1 / 1; object-fit: cover; }
.member:not(.member-lead) .print img { aspect-ratio: 3 / 4; object-fit: cover; }

.member h3 {
  margin-top: 1.4rem;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}
.member-lead h3 { font-size: clamp(2.5rem, 4.5vw, 4.25rem); }

.roles { color: var(--rust); margin: .6rem 0 .9rem; }

.bio { max-width: 52ch; }

.meta { margin-top: 1.25rem; border-bottom: 1px solid var(--rule); }
.meta div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--rule);
}
.meta dt { color: var(--muted); padding-top: .2rem; }
.meta dd { font-size: .95rem; }

@media (max-width: 1023px) {
  .member-lead { grid-column: 1 / span 12; }
  .member:not(.member-lead) { grid-column: 3 / span 10; margin-top: 2.5rem; }
}

@media (max-width: 639px) {
  .member:not(.member-lead) { grid-column: 1 / span 12; }
  .meta div { grid-template-columns: 5.5rem minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   Production (pine panel)
   -------------------------------------------------------------------------- */

.production {
  margin-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  background: var(--pine);
  color: var(--bone);
}

.production .section-head { border-top-color: var(--bone); }
.production .section-name { color: var(--muted-on-pine); }
.production .index,
.production .kicker { color: var(--rust-light); }
.production .section-link { border-bottom-color: var(--rust-light); }
.production .section-link:hover { color: var(--rust-light); }
.production :focus-visible { outline-color: var(--rust-light); }

.production .btn { border-color: var(--bone); color: var(--bone); }
.production .btn:hover { background: var(--bone); color: var(--pine); }
.production .btn-primary { background: var(--bone); color: var(--pine); }
.production .btn-primary:hover {
  background: var(--rust-light);
  border-color: var(--rust-light);
  color: var(--pine-deep);
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem) var(--gap);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.prod-copy { grid-column: 1 / span 5; grid-row: 1; }
.prod-fig-1 { grid-column: 7 / span 6; grid-row: 1; }
.prod-work { grid-column: 1 / span 5; grid-row: 2; align-self: start; }
.prod-fig-2 { grid-column: 8 / span 5; grid-row: 2; }

.prod-copy h2 {
  margin: .75rem 0 1.25rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
.prod-copy p:not(.kicker) {
  max-width: 44ch;
  color: var(--bone);
}
.prod-copy .cta-row { margin-top: 1.75rem; }

.prod-fig img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--pine-deep);
}
.prod-fig-2 img { aspect-ratio: 4 / 3; }
.prod-fig figcaption {
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px solid var(--rule-on-pine);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--muted-on-pine);
}

.work-list { margin-top: 1rem; border-bottom: 1px solid var(--rule-on-pine); }
.work-list li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: .75rem 0 .55rem;
  border-top: 1px solid var(--rule-on-pine);
}
.work-no { color: var(--rust-light); min-width: 2rem; }
.work-list .display { font-size: clamp(1.75rem, 3vw, 2.75rem); }

@media (max-width: 1023px) {
  .prod-copy,
  .prod-fig-1,
  .prod-work,
  .prod-fig-2 { grid-column: 1 / span 12; grid-row: auto; }
  .prod-fig-2 { grid-column: 4 / span 9; }
}

@media (max-width: 639px) {
  .prod-fig-2 { grid-column: 1 / span 12; }
}

/* --------------------------------------------------------------------------
   Contact directory
   -------------------------------------------------------------------------- */

.directory { border-bottom: 1px solid var(--pine); }

.directory a {
  display: grid;
  grid-template-columns: minmax(9rem, 3fr) minmax(0, 7fr) auto;
  align-items: baseline;
  gap: 1rem 1.5rem;
  padding: 1.1rem 0 .95rem;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  transition: color .15s ease;
}
.directory li:first-child a { border-top-color: var(--pine); }

.dir-key { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.dir-val { color: var(--muted); }
.directory .i { width: 1rem; height: 1rem; align-self: center; }

.directory a:hover .dir-key,
.directory a:hover .i { color: var(--rust); }

@media (max-width: 639px) {
  .directory a { grid-template-columns: minmax(0, 1fr) auto; }
  .dir-val { grid-column: 1 / -1; font-size: .95rem; }
}

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

.footer {
  margin-top: var(--section-pad);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--pine);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.footer-brand { grid-column: 1 / span 5; }
.wordmark-foot { font-size: 2.5rem; }
.footer-brand p + p {
  margin-top: .75rem;
  max-width: 40ch;
  font-size: .95rem;
  color: var(--muted);
}

.footer-nav { grid-column: 8 / span 5; }
.footer-nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem 1.5rem;
}
.footer-nav a {
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.9;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--rust); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 859px) {
  .footer-brand,
  .footer-nav { grid-column: 1 / span 12; }
}

/* --------------------------------------------------------------------------
   Video dialog
   -------------------------------------------------------------------------- */

.film-dialog {
  width: min(100% - 2rem, 1120px);
  max-width: none;
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--bone);
  color: var(--pine);
  overflow: auto;
}
.film-dialog::backdrop { background: rgba(27, 43, 33, .9); }

.film-dialog-inner { padding: 1rem 1.25rem 1.25rem; }

.film-dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding-bottom: .75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--pine);
}
.film-dialog-head h2 {
  margin-top: .3rem;
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--pine);
  transition: background-color .15s ease, color .15s ease;
}
.dialog-close:hover { background: var(--pine); color: var(--bone); }
.dialog-close svg { width: 1rem; height: 1rem; }

.film-dialog-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--pine-deep);
}
.film-dialog-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-top: .9rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--muted);
}
.film-dialog-foot a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 1px solid var(--rust);
}
.film-dialog-foot a:hover { color: var(--rust); }

@media (max-width: 639px) {
  .film-dialog { width: calc(100% - 1rem); max-height: calc(100% - 1rem); }
  .film-dialog-inner { padding: .85rem .9rem 1rem; }
}

/* --------------------------------------------------------------------------
   Motion preference
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

/* Final review: keep the short closing phrase together at all widths. */
.hero-copy h1 em { display:block; font-size:.76em; margin-top:.1em; }
