/* ==========================================================================
   FAM — main stylesheet
   1. Fonts  2. Tokens  3. Base  4. Utilities  5. Header  6. Footer
   Page templates (step 2) and motion (step 3) add their sections below.
   ========================================================================== */

/* 1. Fonts (self-hosted, Latin subset) ------------------------------------ */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/cormorant-garamond-300.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("../fonts/cormorant-garamond-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  --paper: #F3F0EA;
  --ink: #161514;
  --ink-film: #0E0D0C;
  --reel: #050505;
  --muted: #6B665F;
  --error: #9A2B1F;
  --body: #2C2A27;
  --body-2: #3A3733;
  --on-dark-muted: #B9B2A8;
  --on-dark-body: #CFC8BE;
  --hair: rgba(22, 21, 20, .18);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 4.5vw, 64px);
  --section: clamp(96px, 11vw, 160px);
  --max: 1440px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
em { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: absolute; left: var(--pad); top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--paper); }

/* 4. Utilities ------------------------------------------------------------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.label { font-size: 11px; line-height: 1.6; letter-spacing: .22em; text-transform: uppercase; }
.muted { color: var(--muted); }
.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.01em;
}
.display--s { font-size: clamp(28px, 3vw, 44px); line-height: 1.12; }
.display em { font-weight: 300; }
.prose { max-width: 68ch; color: var(--body); font-size: 16px; line-height: 1.85; }
.prose > * + * { margin-top: 1.2em; }
.prose a { border-bottom: 1px solid currentColor; }
.wordmark {
  font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1;
  letter-spacing: .42em; margin-right: -.42em;
}
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Link underline that draws in from the left (nav, footer, inline links). */
.site-nav a, .fx-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .8s var(--ease-out);
}
.site-nav a:hover, .fx-link:hover,
.site-nav a:focus-visible, .fx-link:focus-visible { background-size: 100% 1px; color: var(--ink); outline: none; }

/* 5. Header ---------------------------------------------------------------- */
.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 40px;
  padding: 36px var(--pad) 32px;
}
.site-nav {
  display: flex; gap: 32px; flex: 1 1 200px;
  font-size: 11px; line-height: 1.6; letter-spacing: .22em; text-transform: uppercase;
}
.site-nav--right { justify-content: flex-end; }
.site-nav a[aria-current="page"] { background-size: 100% 1px; }
.site-nav .site-nav-inquire { border-bottom: 1px solid var(--ink); padding-bottom: 2px; background: none; }
.site-logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo:hover { color: var(--ink); }

/* 6. Footer ---------------------------------------------------------------- */
.site-foot {
  display: flex; flex-direction: column; gap: 48px;
  padding: clamp(64px, 8vw, 120px) var(--pad) 36px;
}
.site-foot-mark {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(72px, 19vw, 300px); line-height: .8; letter-spacing: .06em;
  text-align: center;
}
.site-foot-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  border-top: 1px solid var(--hair); padding-top: 20px;
  letter-spacing: .18em;
}
.site-foot-group { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* Fallback layout (index.php: 404 and anything without its own template). */
.page-basic { display: grid; gap: 40px; }
.page-basic-item + .page-basic-item { border-top: 1px solid var(--hair); padding-top: 24px; }

/* 7. Layout helpers -------------------------------------------------------- */
.wrap-full { padding-inline: var(--pad); }
.wrap-narrow { max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }
@media (min-width: 720px) { .span-2 { grid-column: span 2; } }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }

/* 8. Type scale (all Cormorant 300 unless noted) --------------------------- */
.display-intro, .display-m, .display-s, .display-s2, .display-xl, .display-l,
.display-story, .display-contact, .display-text, .inquire-band-title {
  font-family: var(--serif); font-weight: 300; margin: 0;
}
.display-intro   { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.12; letter-spacing: -.01em; }
.display-m       { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.08; }
.display-s       { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.display-s2      { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; }
.display-xl      { font-size: clamp(56px, 8vw, 120px); line-height: .95; }
.display-l       { font-size: clamp(44px, 5.6vw, 84px); line-height: 1; }
.display-story   { font-size: clamp(64px, 11vw, 176px); line-height: .9; letter-spacing: -.01em; }
.display-contact { font-size: clamp(44px, 5.4vw, 80px); line-height: 1; }
.display-text    { font-size: clamp(48px, 6vw, 88px); line-height: 1; }
.heading-28      { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.label--xs { font-size: 10px; }
.lede { font-size: 15px; line-height: 1.75; color: var(--body-2); max-width: 520px; }
.lede--16 { font-size: 16px; line-height: 1.8; color: var(--body); max-width: 440px; }
.on-dark { color: var(--on-dark-body); }
.on-dark-muted { color: var(--on-dark-muted); }
.on-dark-link, .on-dark-link:hover { color: var(--paper); }

/* 9. Components ------------------------------------------------------------ */

/* Image frames: fixed shape, image cropped inside. */
.fx-frame, .fx-pwrap { display: block; overflow: hidden; position: relative; }
.fx-frame img, .fx-pwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-frame.is-empty, .fx-pwrap.is-empty { background: #E4DFD6; }
[data-dark] .is-empty { background: #24221F; }

/* Row heading: title left, small link or count right. */
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.row-head--rule { border-top: 1px solid var(--hair); padding-top: 18px; margin-bottom: 40px; }

/* Work cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px 24px; }
.work-card { display: flex; flex-direction: column; gap: 14px; }
.work-card--drop { padding-top: clamp(0px, 6vw, 96px); }
.card-cap { display: flex; justify-content: space-between; gap: 16px; letter-spacing: .18em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 18px 30px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.btn:hover { color: var(--paper); }
.btn--light, .btn--light:hover { background: var(--paper); color: var(--ink); }

/* Play badge over film posters */
.poster { position: relative; display: block; }
.play {
  position: absolute; left: clamp(14px, 2.5vw, 32px); bottom: clamp(14px, 2.5vw, 32px);
  display: flex; align-items: center; gap: 14px; color: var(--paper);
  font-size: 11px; line-height: 1; letter-spacing: .22em; text-transform: uppercase;
}
.play-dot {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(243, 240, 234, .85); background: rgba(14, 13, 12, .3);
  display: flex; align-items: center; justify-content: center;
}
.play-dot svg { color: var(--paper); }

/* Dark film sections */
.dark-film { background: var(--ink-film); color: var(--paper); }
.dark-film a { color: var(--paper); }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; padding-bottom: 56px; }
.split-head-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
/* When the heading itself is the column, it must stay a normal block of text. */
:is(h1, h2, h3).split-head-main { display: block; }
.split-head-aside { flex: 0 1 360px; margin: 0; }

/* 8mm reel strip */
@keyframes famreel { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.reel {
  overflow: hidden; background-color: var(--reel);
  background-image: radial-gradient(circle, #1E1C1A 3px, transparent 3.5px), radial-gradient(circle, #1E1C1A 3px, transparent 3.5px);
  background-size: 22px 10px, 22px 10px;
  background-position: 0 3px, 0 calc(100% - 3px);
  background-repeat: repeat-x, repeat-x;
  padding: 18px 0;
}
.reel--edge-top { padding: 18px 0 9px; }
.reel--edge-bottom { padding: 9px 0 18px; }
.reel-track { display: flex; width: max-content; animation: famreel 120s linear infinite; }
.reel-track--rev { animation-direction: reverse; animation-duration: 135s; }
.reel--films .reel-track { animation-duration: 90s; }
.reel:hover .reel-track, .reel.is-paused .reel-track { animation-play-state: paused; }
.reel-frame { width: clamp(260px, 28vw, 420px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-right: 12px; flex: none; }
.reel--films .reel-frame { width: clamp(220px, 22vw, 340px); }
@media (prefers-reduced-motion: reduce) { .reel-track { animation: none; } }

/* Film name + meta row under posters */
.film-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.film-row-title { display: flex; align-items: baseline; gap: 20px; }
.film-name { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.film-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* Inquire band (centred) */
.inquire-band {
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
  padding: clamp(88px, 10vw, 152px) var(--pad);
  border-top: 1px solid rgba(22, 21, 20, .12);
}
.inquire-band-title { max-width: 820px; font-size: clamp(34px, 4vw, 56px); line-height: 1.1; }

/* Inquire panel (dark, with photo) */
.inquire-panel { display: flex; flex-wrap: wrap; background: var(--ink); color: var(--paper); }
.inquire-panel-media { flex: 1 1 420px; min-width: 0; }
.inquire-panel-body {
  flex: 1 1 380px; min-width: 0;
  padding: clamp(56px, 7vw, 112px) clamp(24px, 5vw, 88px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
}
.inquire-panel .lede { max-width: 420px; }
.inquire-panel-actions { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.inquire-panel-email, .inquire-panel-email:hover { color: var(--paper); font-size: 14px; }

/* Underline-only form fields */
.fam-field {
  width: 100%; border: 0; border-bottom: 1px solid rgba(22, 21, 20, .35); border-radius: 0;
  background: transparent; padding: 12px 0; font: 15px var(--sans); color: var(--ink);
}
.fam-field:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.fam-field::placeholder { color: var(--muted); opacity: .8; }

/* Film player window (assets/js/player.js) */
.fx-player {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: clamp(16px, 3vw, 40px);
  border: 0; background: var(--ink-film); color: var(--paper);
  display: none; flex-direction: column; gap: 16px;
}
.fx-player[open] { display: flex; }
.fx-player::backdrop { background: var(--ink-film); }
.fx-player-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.fx-player-close { background-color: transparent; border: 0; padding: 12px 0 3px; min-height: 44px; cursor: pointer; color: var(--paper); }
.fx-player-close:hover, .fx-player-close:focus-visible { color: var(--paper); }
.fx-player-frame {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
}
.fx-player-frame iframe {
  display: block; border: 0; background: #000;
  aspect-ratio: var(--ratio, 16 / 9); width: min(100%, calc((100dvh - 140px) * 1.7778)); max-height: 100%; height: auto;
}
html:has(.fx-player[open]) { overflow: hidden; }

/* 10. Pages ---------------------------------------------------------------- */

/* Page heads */
.page-head--split {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px;
  padding-top: clamp(48px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 96px);
}
.page-head-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-head-aside { flex: 0 1 460px; }
.page-head--center { text-align: center; padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-head--center .label { margin-bottom: 18px; }

/* Home */
.home-hero .hero-cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; letter-spacing: .18em; }
.home-intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px 64px;
  padding-block: clamp(112px, 14vw, 208px);
}
.home-intro-label { margin-top: 6px; }
.home-intro-body { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.home-work { padding-bottom: clamp(112px, 14vw, 208px); }
.home-film { padding-block: clamp(96px, 11vw, 168px); }
.home-film-feature { padding-top: 80px; display: flex; flex-direction: column; gap: 18px; }
.poster-link { display: block; }
.home-two {
  display: flex; flex-wrap: wrap; gap: 48px clamp(32px, 6vw, 96px); align-items: flex-start;
  padding-top: clamp(96px, 11vw, 168px); padding-bottom: clamp(112px, 14vw, 208px);
}
.home-two-media { flex: 1 1 420px; min-width: 0; max-width: 760px; }
.home-two-body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 56px; padding-top: clamp(0px, 8vw, 140px); }
.link-list { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.link-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.link-list-name { font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.home-two-small { width: min(100%, 340px); align-self: flex-end; }
[data-thumb] .fx-cap { display: inline-block; transition: transform .9s var(--ease-out); }
[data-thumb] .card-cap { display: flex; }
[data-thumb]:hover .fx-cap { transform: translateX(6px); }

/* Weddings archive */
.archive-work { padding-bottom: var(--section); }
.pager { margin-top: 64px; }
.pager .nav-links { display: flex; gap: 28px; }

/* Wedding story */
.story-head { display: flex; flex-direction: column; gap: 28px; padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.back-link { align-self: flex-start; }
.meta-row { display: flex; flex-wrap: wrap; gap: 12px 40px; border-top: 1px solid var(--hair); padding-top: 18px; }
/* The wedding's main photo: never taller than about 70% of the screen. */
.story-hero-wrap { display: flex; justify-content: center; }
.story-hero { width: min(100%, 105vh); width: min(100%, 105svh); }
.story-hero--tall { width: min(100%, 56vh); width: min(100%, 56svh); }
.story-intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 64px;
  padding-block: var(--section);
}
.story-intro .label { margin-top: 4px; }
.story-intro-text { max-width: 760px; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; }
.story-gap { height: var(--section); }
.hscroll + .story-gallery { padding-top: var(--section); }
/* Gallery wall: every photo in its own shape, small gaps, in story order. */
.wall-grid {
  --cols: 2; --gap: clamp(6px, 0.8vw, 12px);
  margin: 0; padding: 0; list-style: none; columns: var(--cols); column-gap: var(--gap);
}
@media (min-width: 1000px) { .wall-grid { --cols: 3; } }
.wall-grid.is-columns { columns: auto; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.wall-col > ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--gap); }
.wall-item { break-inside: avoid; margin-bottom: var(--gap); aspect-ratio: var(--r); background: var(--hair); overflow: hidden; }
.is-columns .wall-item { margin-bottom: 0; }
.wall-item a { display: block; width: 100%; height: 100%; }
.wall-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .8s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.wall-item.is-loading img { opacity: 0; }
@media (hover: hover) { .wall-item a:hover img { transform: scale(1.025); } }
.wall-item a:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* Full-screen photo viewer */
.viewer-open, .viewer-open body { overflow: hidden; }
.viewer {
  position: fixed; inset: 0; z-index: 1000; background: var(--paper); color: var(--ink);
  display: none; flex-direction: column;
}
.viewer.is-open { display: flex; }
/* Keep the bar clear of WordPress's admin bar when logged in. */
.admin-bar .viewer { top: 32px; }
@media (max-width: 782px) { .admin-bar .viewer { top: 46px; } }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); flex: 0 0 auto; }
.viewer-close, .viewer-arrow { background: none; border: 0; padding: 8px 0; color: var(--ink); cursor: pointer; font: inherit; }
.viewer-close.label, .viewer-arrow .label { letter-spacing: .22em; }
.viewer-track {
  flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; display: flex;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain;
}
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 0 var(--pad) clamp(20px, 4vh, 56px); }
.viewer-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); padding: 24px var(--pad); }
.viewer-arrow--prev { left: 0; }
.viewer-arrow--next { right: 0; }
.viewer-arrow:disabled { opacity: 0; pointer-events: none; }
.viewer-arrow:not(:disabled):hover .label, .viewer-close:hover { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 899px) {
  .viewer-arrow { display: none; }
  .viewer-slide { padding-inline: 0; }
}
@media (min-width: 900px) { .viewer-slide { padding-inline: calc(var(--pad) + 110px); } }

.story-film { padding-top: var(--section); }
.film-block {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 64px; align-items: center;
  background: var(--ink-film); color: var(--paper); padding: clamp(20px, 3vw, 40px);
}
.film-block:hover { color: var(--paper); }
.film-block-text { display: flex; flex-direction: column; gap: 16px; }
.story-next { padding-top: clamp(72px, 8vw, 120px); padding-bottom: 0; }
.next-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 28px 0;
}
.next-link-name { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.story-next + .inquire-band { margin-top: clamp(88px, 10vw, 152px); }

/* Getting-ready horizontal gallery */
.hscroll .row-head { padding-bottom: 32px; }
.fx-h-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fx-h-viewport::-webkit-scrollbar { display: none; }
.fx-h-viewport:focus-visible { outline: 1px solid var(--ink); outline-offset: -1px; }
.fx-h-track { display: flex; gap: clamp(12px, 1.6vw, 24px); width: max-content; }
.fx-h-track > figure { scroll-snap-align: center; flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fx-h-track img { width: 82vw; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (min-width: 900px) { .fx-h-track img { width: auto; height: min(60vh, 600px); } }
.fx-h-active .fx-h-viewport { overflow: hidden; scroll-snap-type: none; }
.fx-h-active .fx-h-pin { height: 100vh; max-height: 1100px; display: flex; flex-direction: column; justify-content: center; }

/* Films */
.film-title { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.film-title em { font-style: italic; }

/* Films: one quiet row each, poster and name on alternating sides. */
.films-list { padding-bottom: var(--section); }
.film-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: clamp(72px, 10vw, 160px); }
.film-item-link { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.film-item-text { display: flex; flex-direction: column; gap: 14px; }
.film-item-play { margin-top: 10px; align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
@media (min-width: 900px) {
  .film-item-link { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); }
  .film-item-poster { width: min(100%, 68vh); width: min(100%, 68svh); }
  .film-item:nth-child(even) .film-item-link { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .film-item:nth-child(even) .film-item-poster { order: 2; justify-self: end; }
  .film-item:nth-child(even) .film-item-text { order: 1; align-items: flex-end; text-align: right; }
  .film-item:nth-child(even) .film-item-play { align-self: flex-end; }
}
@media (hover: hover) { .film-item-link:hover .film-item-play { opacity: .6; } }

.formats { padding-block: clamp(88px, 9vw, 136px); position: relative; z-index: 1; }
.formats .split-head { gap: 24px 64px; padding-bottom: 48px; }
.formats .display-m { font-size: clamp(34px, 4vw, 56px); line-height: 1.1; }
.formats .split-head-aside { flex-basis: 420px; }
.formats-list {
  display: flex; flex-wrap: wrap; gap: 12px 40px; padding-bottom: 48px;
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2;
}

/* About */
.about-body {
  display: flex; flex-wrap: wrap; gap: 56px clamp(40px, 6vw, 112px); align-items: flex-start;
  padding-bottom: var(--section);
}
.about-text { flex: 1.4 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-prose { display: flex; flex-direction: column; gap: 24px; font-size: 17px; line-height: 1.85; color: var(--body); }
.about-prose p { margin: 0; }
.about-prose strong { font-weight: 600; color: var(--ink); }
.about-based { margin-top: 12px; }
.about-media { flex: 1 1 340px; min-width: 0; max-width: 520px; }
.about-wide { padding-bottom: var(--section); }
.about-wide figure { display: flex; flex-direction: column; gap: 14px; }

/* Contact */
.contact {
  display: flex; flex-wrap: wrap; gap: 64px clamp(40px, 7vw, 128px); align-items: flex-start;
  padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(88px, 10vw, 152px);
}
.contact-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact-details {
  margin: 16px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 32px;
  font-size: 15px; border-top: 1px solid var(--hair); padding-top: 24px;
}
.contact-details dt { padding-top: 3px; }
.contact-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.contact-media { width: min(100%, 360px); margin-top: 16px; }
.inquiry { flex: 1.2 1 440px; min-width: 0; scroll-margin-top: 24px; }
.inquiry-form { display: flex; flex-direction: column; gap: 32px; background: #fff; padding: clamp(24px, 4vw, 56px); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 28px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.optional { text-transform: none; letter-spacing: .04em; }
.field-radios { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-radios legend { padding: 0; margin-bottom: 14px; }
.radios { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.radios label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.radios input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.inquiry-form textarea { resize: vertical; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.form-consent { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 300px; }
.form-consent a { text-decoration: underline; }
.inquiry-form .btn { padding-inline: 32px; }
.inquiry-form .btn:disabled { cursor: progress; opacity: .7; }
/* Spam trap: invisible to people, filled in by bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fam-field[aria-invalid="true"] { border-bottom-color: var(--error); }
.field-error { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--error); }
.form-status { padding: 14px 18px; border-left: 2px solid var(--error); background: var(--paper); font-size: 14px; line-height: 1.6; color: var(--ink); }
.form-status:focus, .inquiry-done:focus { outline: none; }
.inquiry-done { display: flex; flex-direction: column; gap: 20px; background: #fff; padding: clamp(32px, 5vw, 72px); }
.inquiry-done[hidden], .inquiry-form[hidden], .form-status[hidden], .field-error[hidden] { display: none; }
.inquiry-done-title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }

/* Text pages (Privacy Policy) */
.text-head { display: flex; flex-direction: column; gap: 28px; padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 88px); }
.text-intro { display: flex; flex-direction: column; gap: 28px; }
.text-intro p { max-width: 640px; font-size: 16px; line-height: 1.8; color: var(--body); }
.text-intro [data-last-updated] { font-size: 10px; line-height: 1.6; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.text-sections { padding-bottom: var(--section); }
.text-section {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 48px;
  border-top: 1px solid rgba(22, 21, 20, .14); padding: 32px 0;
}
.text-section h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.text-section h2 .label { display: block; margin-bottom: 8px; font-family: var(--sans); }
.text-section-body { min-width: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.8; color: var(--body); }
.text-section-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.text-section-body strong { font-weight: 500; }
.text-section-body a { text-decoration: underline; }

/* 11. Motion (assets/js/motion.js) ----------------------------------------
   Nothing here hides content: start states are set by GSAP. The curtain only
   shows when JS runs, and a CSS safety timer hides it after 2.6s regardless. */

/* Cross-document page transitions (no click interception, no AJAX). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: famVtOut .45s cubic-bezier(.7, 0, .84, 0) both; }
::view-transition-new(root) { animation: famVtIn 1.1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes famVtOut { to { opacity: 0; } }
@keyframes famVtIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }

/* Entry curtain */
.fx-curtain { display: none; }
@media (max-height: 1600px) {
  .js .fx-curtain {
    position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--paper); pointer-events: none;
    animation: famCurtainSafety .01s linear 2.6s forwards;
  }
}
.fx-curtain span { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: .42em; margin-right: -.42em; }
@keyframes famCurtainSafety { to { visibility: hidden; } }
/* Later pages in the same visit open straight away. */
.fx-seen .fx-curtain { display: none !important; }

/* Lines split by SplitText: each line sits in a mask; leave room for descenders. */
.l-mask { padding-bottom: .12em; margin-bottom: -.12em; }
.l { display: block; }

.fx-pwrap img { will-change: transform; }

/* Cursor: a dot that grows into a labelled disc over [data-cursor]. Fine pointers only. */
.fx-cursor { display: none; }
@media (hover: hover) and (pointer: fine) { .fx-on .fx-cursor { display: flex; } }
.fx-cursor {
  position: fixed; left: 0; top: 0; z-index: 60; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; pointer-events: none; align-items: center; justify-content: center;
  background: var(--ink); border: 1px solid transparent; transition: background-color .45s, border-color .45s;
}
.fx-cursor.is-link { background: transparent; border-color: rgba(22, 21, 20, .45); }
.fx-cursor.is-media { background: var(--paper); border-color: transparent; }
.fx-cursor.is-dark { background: var(--paper); }
.fx-cursor.is-dark.is-link { background: transparent; border-color: rgba(243, 240, 234, .55); }
.fx-cursor-label {
  font: 500 10px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity .25s;
}
.fx-cursor.is-media .fx-cursor-label { opacity: 1; transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .js .fx-curtain { display: none; }
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Mobile (below 720px): logo centred above a single-row nav ---------------- */
@media (max-width: 719px) {
  .site-head {
    display: grid; grid-template-columns: auto auto; justify-content: space-between;
    row-gap: 20px; column-gap: 16px; padding-top: 28px; padding-bottom: 24px;
  }
  .site-logo { grid-column: 1 / -1; justify-self: center; order: -1; }
  .site-nav { gap: 14px; font-size: 10px; letter-spacing: .12em; flex: 0 1 auto; }
  .home-hero .hero { aspect-ratio: 4 / 5 !important; }
  .play { left: auto; right: 12px; bottom: 12px; }
  .play-dot { width: 48px; height: 48px; }
  .play-label { display: none; }
}
/* Narrow phones: the four menu words still fit inside the side margins. */
@media (max-width: 389px) {
  .site-nav { gap: 10px; letter-spacing: .08em; }
}
