/* =====================================================================
   The Violinist — site styles
   Homepage = layout B + option 8: title, synopsis and rotating review on the left; laurel ribbon above the dock.
   Sub-pages (US / Spain / Singapore / Festivals) share the same dock.
   ===================================================================== */

:root {
  --ink: #f3ece2;              /* cream text */
  --ink-2: rgba(243,236,226,.82);
  --ink-3: rgba(243,236,226,.72);
  --ground: #0b0806;           /* page background */
  --scrim: 10,6,3;             /* rgb for dark overlays */
  --gold: #e9b872;
  --pad-x: clamp(28px, 5vw, 96px);

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);     /* soft landing, used for entrances */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);  /* used for page fades */
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);/* tiny overshoot on hover lifts */
  --t-fast: .2s;
  --t-med: .45s;
  --t-slow: .9s;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--ground); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ================= Page enter / leave ================= */
/* Content only starts hidden when JS is running (html.js), so the site never goes blank without it. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.js.is-loaded [data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--t-slow) var(--ease-out) var(--d, 0s),
    transform 1.1s var(--ease-out) var(--d, 0s);
}
/* Painting settles in: fades up from black with a slow push-in */
.js .bg-media { opacity: 0; transform: scale(1.05); }
.js.is-loaded .bg-media {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.4s var(--ease-out), transform 2.6s var(--ease-out);
}
/* Leaving: everything fades to the page colour before the next page loads */
body { transition: opacity .35s var(--ease-in-out); }
.is-leaving body { opacity: 0; }

/* ================= Shared: Where to watch + Watch Trailer dock ================= */
.dock {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 36px;
}
.dock > .trailer-row { order: 1; }
.dock::after {                         /* thin divider between trailer and countries */
  content: "";
  order: 2;
  width: 1px;
  height: 40px;
  background: rgba(243,236,226,.25);
}
.dock > .where { order: 3; }

.where { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.where__label { margin: 0 8px 0 0; color: var(--ink); line-height: 0; }
.where__label svg { display: block; width: 64px; height: auto; overflow: visible; }
.where__label text { fill: currentColor; font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.where__label .wl-small { font-size: 9.6px; font-weight: 500; letter-spacing: .02em; fill-opacity: .8; }
.where__label .wl-big { font-size: 17px; font-weight: 800; }   /* "WATCH": bold, both lines fitted to the same 64px width */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.where__item {
  width: 176px;                       /* every country box the same length */
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  background: rgba(var(--scrim), .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(243,236,226,.16);
  transition:
    background var(--t-fast) ease,
    box-shadow var(--t-fast) ease,
    transform var(--t-med) var(--ease-spring);
}
.where__item img { width: 28px; height: 28px; flex: none; transition: transform var(--t-med) var(--ease-spring); }
.where__item img.where__icon--mono { width: 37px; height: 37px; margin: -4.5px; }   /* festival icon, +10% */
.where__item:hover, .where__item:focus-visible {
  background: rgba(var(--scrim), .8);
  box-shadow: inset 0 0 0 1px rgba(243,236,226,.5), 0 6px 20px rgba(0,0,0,.35);
  transform: translateY(-2px);
}
.where__item:hover img { transform: scale(1.08) rotate(-4deg); }
.where__item:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.where__item[aria-current="page"] { background: rgba(243,236,226,.94); color: #1a120b; box-shadow: none; }
.where__item[aria-current="page"] img.where__icon--mono { filter: invert(.85); }

/* Watch Trailer pill: 8s loop inside, 50% black, white label */
.trailer-row { display: flex; }
.btn-trailer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 280px;
  height: 68px;
  padding: 0 40px;
  border: 0;
  border-radius: 999px;
  background: #000;
  cursor: pointer;
  font: inherit;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 6px 24px rgba(0,0,0,.4);
  transition: box-shadow var(--t-med) ease, transform var(--t-med) var(--ease-spring);
}
.btn-trailer__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transition: transform .8s var(--ease-out);
}
.btn-trailer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0,0,0,.5);
  transition: background var(--t-med) ease;
}
.btn-trailer__label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  transition: text-shadow var(--t-med) ease, letter-spacing var(--t-med) var(--ease-out);
}
.btn-trailer__label::before {
  content: ""; border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  transition: transform var(--t-med) var(--ease-spring);
}
.btn-trailer:hover, .btn-trailer:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255,236,200,.85), 0 0 18px rgba(255,214,150,.55), 0 0 44px rgba(255,190,110,.35);
}
.btn-trailer:hover::before, .btn-trailer:focus-visible::before { background: rgba(0,0,0,.35); }
.btn-trailer:hover .btn-trailer__video { transform: scale(1.06); }
.btn-trailer:hover .btn-trailer__label, .btn-trailer:focus-visible .btn-trailer__label {
  text-shadow: 0 0 8px rgba(255,236,200,.95), 0 0 22px rgba(255,200,120,.7);
  letter-spacing: .24em;
}
.btn-trailer:hover .btn-trailer__label::before { transform: scale(1.2); }
.btn-trailer:active { transform: scale(.98); transition-duration: .08s; }
.btn-trailer:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Plain buttons on sub-pages */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 26px;
  border-radius: 999px;
  background: var(--ink); color: #1a120b;
  text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  transition: background var(--t-fast) ease, transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) ease;
}
.btn:hover, .btn:focus-visible { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255,214,150,.28); }
.btn:active { transform: scale(.98); transition-duration: .08s; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(243,236,226,.45); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(243,236,226,.1); box-shadow: inset 0 0 0 1px var(--ink); }
.btn svg { transition: transform var(--t-med) var(--ease-spring); }
.btn:hover svg { transform: translate(2px, -2px); }

/* ================= Floating trailer player ================= */
.player {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.7);
  opacity: 0;
  transition: opacity .4s var(--ease-in-out);
}
.player.is-open { opacity: 1; }
.player[hidden] { display: none; }
.player__frame {
  width: min(95vw, calc(95vh * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: scale(.94) translateY(10px);
  transition: transform .55s var(--ease-out);
}
.player.is-open .player__frame { transform: none; }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__close {
  position: absolute; top: 14px; right: 16px; z-index: 1;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: 28px; line-height: 44px; cursor: pointer;
  transition: background var(--t-fast) ease, transform var(--t-med) var(--ease-spring);
}
.player__close:hover { background: rgba(255,255,255,.28); transform: rotate(90deg); }
.is-playing, .is-playing body { overflow: hidden; }

/* ================= Footer ================= */
.site-footer {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(243,236,226,.75);
}
.site-footer .value { color: var(--ink); font-weight: 700; }

/* =====================================================================
   HOMEPAGE
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg .bg-media {
  position: absolute; inset: -10% 0 0 0;      /* painting shifted up 10%: less empty sky on top */
  background: url("../img/bg-landscape.jpg?v=3") 78% 50% / cover no-repeat;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--scrim),.62) 0%, rgba(var(--scrim),.35) 30%, rgba(var(--scrim),0) 52%),
    linear-gradient(0deg, rgba(var(--scrim),.95) 0%, rgba(var(--scrim),.82) 22%, rgba(var(--scrim),0) 48%);   /* darker band behind the laurel ribbon */
}
.hero__content {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: calc(min(46vw, 820px) - var(--pad-x)) 1fr;
  grid-template-rows: .3fr auto auto 1fr auto auto;   /* spacer / title / synopsis + review / space / laurels / dock */
  row-gap: clamp(14px, 2.6vh, 36px);
  padding: 4vh var(--pad-x) 0;
}
.hero__content > .title   { grid-column: 1; grid-row: 2; }
.hero__content > .intro   { grid-column: 1; grid-row: 3; }
.hero__content > .laurels { grid-column: 1 / -1; grid-row: 5; justify-self: start; }
.hero__content > .dock    { grid-column: 1 / -1; grid-row: 6; padding-bottom: 18px; margin-top: clamp(4px, 1.4vh, 16px); }
.title img { width: min(90%, 31vw, 42vh); filter: drop-shadow(0 2px 12px rgba(0,0,0,.35)); }

/* Synopsis + rotating review */
.intro { max-width: 36em; font-size: clamp(14px, min(1.1vw, 2.1vh), 19px); }
.synopsis { margin: 0; line-height: 1.7; color: rgba(243,236,226,.92); text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.reviews { margin-top: clamp(14px, 2.8vh, 32px); }
.reviews__track { display: grid; }
.review { margin: 0; grid-area: 1 / 1; align-self: end; padding-left: 18px; border-left: 2px solid var(--gold); }   /* all slides share one cell: no jump between quotes */
.review blockquote {
  margin: 0; font-family: "DM Serif Display", Georgia, serif; font-style: italic;
  font-size: 1.28em; line-height: 1.3; text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.review figcaption { margin-top: 8px; }
.review figcaption a {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; transition: color var(--t-med) ease;
}
.review figcaption a:hover { color: var(--ink); }
.review figcaption a::after { content: " ↗"; opacity: 0; transition: opacity var(--t-med) ease; }
.review figcaption a:hover::after, .review figcaption a:focus-visible::after { opacity: .8; }
.reviews--live .review { transition: opacity .7s ease, visibility 0s linear .7s; opacity: 0; visibility: hidden; }
.reviews--live .review.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease .15s, visibility 0s; }
.reviews__dots { display: flex; gap: 2px; margin: 4px 0 0 11px; }
.reviews__dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;   /* 24px hit area, 6px dot */
  display: grid; place-items: center;
}
.reviews__dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(243,236,226,.3); transition: background var(--t-med) ease, transform var(--t-med) var(--ease-spring);
}
.reviews__dot:hover::before { background: rgba(243,236,226,.6); transform: scale(1.3); }
.reviews__dot[aria-current="true"]::before { background: var(--ink); }

/* Laurels: two rows of 4 under the synopsis column. --h = row height; each laurel scaled by --k so they look the same size (optical) */
.laurels {
  --h: min(clamp(28px, 4.4vh, 54px), calc((100vw - 2 * var(--pad-x)) / 18));
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: calc(var(--h) * .9);
  margin: calc(var(--h) * -.2) 0;          /* cancels the outer half of the row spacing below */
}
.laurel { margin: calc(var(--h) * .2) 0; opacity: .88; transition: opacity var(--t-med) ease; }
.laurel:hover { opacity: 1; }
.laurels__break { flex-basis: 100%; height: 0; }
.laurels__break--phone { display: none; }   /* desktop: 4 / 4 */
.laurel img {
  height: calc(var(--h) * var(--k, 1));
  width: auto; max-width: none;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.45));
  transition: transform var(--t-med) var(--ease-out), filter var(--t-med) ease;
}
.laurel:hover img { transform: translateY(-2px); filter: drop-shadow(0 1px 6px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(255,220,170,.35)); }
.hero__footer { position: relative; z-index: 1; padding: 0 var(--pad-x) 22px; }

/* =====================================================================
   SUB-PAGES (US / Spain / Singapore / Festivals)
   ===================================================================== */
.sub {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sub__bg { position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sub__bg .bg-media { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.sub__bg .bg-media > i {               /* inner layer carries the per-page crop zoom */
  position: absolute; inset: 0;
  background: inherit;
  transform: scale(var(--zoom, 1));
  transform-origin: var(--zoom-at, 50% 50%);
}
.sub__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--fade-dir, 90deg), rgba(var(--scrim),.92) 0%, rgba(var(--scrim),.78) 34%, rgba(var(--scrim),.2) 62%, rgba(var(--scrim),0) 80%),
    linear-gradient(0deg, var(--ground) 0%, rgba(var(--scrim),.6) 18%, rgba(var(--scrim),0) 36%);
}
.sub__home { position: relative; z-index: 2; display: inline-block; margin: 40px 0 0 var(--pad-x); width: 200px; }
.sub__home img { transition: opacity var(--t-fast) ease, transform var(--t-med) var(--ease-out); }
.sub__home:hover img { opacity: .85; transform: translateX(-3px); }

.sub__content {
  position: relative; z-index: 1;
  flex: 1;
  width: min(600px, 100%);
  padding: clamp(40px, 9vh, 110px) 0 48px var(--pad-x);
}
.sub__dock { position: relative; z-index: 1; padding: 0 var(--pad-x) 26px; }
.sub .site-footer { position: relative; z-index: 1; padding: 0 var(--pad-x) 22px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(243,236,226,.85);
}
.eyebrow img { width: 22px; height: 22px; }
.eyebrow img.where__icon--mono { width: 28px; height: 28px; }
.sub h1 {
  margin-top: 16px;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight: 400; font-size: clamp(40px, 4.4vw, 58px); line-height: 1.04;
  width: max-content; max-width: min(14em, calc(100vw - 2 * var(--pad-x)));   /* wider than the text column: titles stay within 2 lines */
  text-wrap: balance;
}
.sub h1 em { font-style: italic; color: rgba(243,236,226,.8); }
.lede { margin-top: 18px; max-width: 480px; font-size: 16px; line-height: 1.6; color: rgba(243,236,226,.88); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.sub h2 {
  margin: 44px 0 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(243,236,226,.8);
}

/* Screening rows (US) */
.rows { border-top: 1px solid rgba(243,236,226,.2); }
.rows li {
  display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 8px; margin: 0 -8px;
  border-bottom: 1px solid rgba(243,236,226,.2);
  border-radius: 6px;
  transition: background var(--t-fast) ease;
}
.rows li:hover { background: rgba(243,236,226,.05); }
.rows .when { font-size: 13px; color: rgba(243,236,226,.75); }
.rows .what { font-size: 16px; }
.rows .what small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.rows .go { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.rows .go::after { content: " →"; display: inline-block; transition: transform var(--t-med) var(--ease-spring); }
.rows .go:hover::after { transform: translateX(4px); }
.tbc { opacity: .75; }   /* placeholder rows: still ≥4.5:1 contrast */

/* Singapore: picture's subject is on the left, so text sits on the right */
.page--singapore .sub__bg { --scrim: 8,8,20; }

/* Festivals */
.page--festivals .sub__content { width: 100%; padding-right: var(--pad-x); }
.page--festivals .upcoming { width: min(500px, 100%); display: flex; flex-direction: column; gap: 10px; }
.card {
  padding: 16px 20px; border-radius: 14px;
  background: rgba(var(--scrim), .35);
  box-shadow: inset 0 0 0 1px rgba(243,236,226,.18);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-fast) ease, background var(--t-fast) ease;
}
.card:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1px rgba(243,236,226,.4); }
.card--featured { background: rgba(243,236,226,.1); box-shadow: inset 0 0 0 1px rgba(243,236,226,.22); }
.card .meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243,236,226,.75); }
.card--featured .meta { color: var(--gold); }
.card .name { margin-top: 4px; font-family: "DM Serif Display", Georgia, serif; font-size: 24px; line-height: 1.15; }
.card .detail { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.honours {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px;
  border-top: 1px solid rgba(243,236,226,.2);
}
.honours li {
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid rgba(243,236,226,.2);
}
.honours img { justify-self: center; width: auto; height: auto; max-width: 100%; max-height: calc(44px * var(--k, 1)); object-fit: contain; transition: transform var(--t-med) var(--ease-out); }
.honours li:hover img { transform: scale(1.05); }
.honours .what { font-size: 15px; line-height: 1.4; }
.honours .what small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1340px) and (min-width: 900px) {
  .where__item { width: 162px; font-size: 13px; gap: 10px; }
  .btn-trailer { min-width: 240px; }
  .dock { gap: 14px 24px; }
}
@media (max-width: 1200px) and (min-width: 900px) {
  .hero__content { grid-template-columns: calc(52vw - var(--pad-x)) 1fr; }
  .hero__bg .bg-media { background-position: 85% 50%; }
  .dock::after { display: none; }
}

/* Short desktop screens (e.g. 1280×720 with browser chrome) */
@media (max-height: 700px) and (min-width: 900px), (max-width: 1100px) and (max-height: 800px) and (min-width: 900px) and (orientation: landscape) {
  .reviews { display: none; }
}

/* Phone / portrait */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .hero { min-height: auto; }
  .hero__bg { position: relative; inset: auto; width: 100%; aspect-ratio: 1080 / 1352; max-height: 83svh; }   /* top 10% of the painting cropped */
  .hero__bg .bg-media { inset: auto 0 0 0; height: 111.2%; background-image: url("../img/bg-portrait.jpg"); background-position: 50% 100%; }
  .hero__bg::after { background: linear-gradient(0deg, var(--ground) 0%, rgba(11,8,6,.75) 18%, rgba(11,8,6,0) 42%); }
  .hero__content {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 28px; margin-top: -26vw; padding: 0 16px 32px;
  }
  .title img { width: min(79vw, 468px); margin: 0 auto; }
  .laurels { --h: min(clamp(36px, 9.9vw, 58px), calc((100vw - 32px) / 9.6)); column-gap: calc(var(--h) * .5); justify-content: center; order: 9; }
  .laurels__break--phone { display: block; }
  .laurels__break--desk { display: none; }
  .intro { order: 1; max-width: 34em; font-size: 15px; text-align: left; }
  /* phones: all three reviews stacked, no rotation */
  .reviews__track { display: flex; flex-direction: column; gap: 18px; }
  .reviews .review, .reviews--live .review { grid-area: auto; align-self: stretch; opacity: 1; visibility: visible; display: block; }
  .reviews__dots { display: none; }
  .dock > .trailer-row { order: 2; }
  .dock > .where { order: 3; }
  .hero__footer { justify-content: center; padding: 8px 16px 28px; font-size: 11px; }

  .dock { display: contents; }
  .dock::after { display: none; }
  .trailer-row { justify-content: center; }
  .btn-trailer { min-width: min(300px, 86vw); height: 60px; }
  .where { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(100%, 420px); margin: 0 auto; }
  .where__label { grid-column: 1 / -1; margin: 0 auto 4px; }
  .where__label svg { width: 58px; }
  .where__item { width: auto; height: 44px; font-size: 13px; }

  .sub__bg { height: 62svh; }
  .sub__bg::after { background: linear-gradient(0deg, var(--ground) 8%, rgba(var(--scrim),.55) 55%, rgba(var(--scrim),.25)); }
  .sub__home { margin: 20px auto 0; width: 150px; display: block; }
  .sub__content, .page--festivals .sub__content {
    align-self: stretch; width: 100%; padding: 30svh 16px 32px;
  }
  .sub__dock { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 20px; }
  .sub .site-footer { justify-content: center; padding: 0 16px 24px; font-size: 11px; }
  .rows li { grid-template-columns: 1fr auto; }
  .rows .when { grid-column: 1 / -1; }
  .honours { grid-template-columns: 1fr; }
  .honours li { grid-template-columns: 110px 1fr; gap: 14px; }
}

/* Wide portrait screens (tablets, a ~1100px browser window): the poster is capped at 83% of the screen
   height, so anchoring it to the bottom would crop the faces. Anchor near the top instead. */
@media (max-width: 899px) and (min-aspect-ratio: 2/3), (orientation: portrait) and (max-width: 1100px) and (min-aspect-ratio: 2/3) {
  .hero__bg .bg-media { inset: 0; height: auto; background-position: 50% 26%; }   /* ≈ top 10% cropped, like phones */
  .hero__content { margin-top: -15vw; }
}

/* Narrow but landscape windows (e.g. a desktop browser under 900px wide): the portrait poster would be
   cropped to its bottom half, so keep the landscape painting, shown whole, with the characters' faces in view */
@media (max-width: 899px) and (orientation: landscape) {
  .hero__bg { aspect-ratio: 2880 / 1557; max-height: none; }
  .hero__bg .bg-media { inset: 0; height: auto; background-image: url("../img/bg-landscape.jpg?v=3"); background-position: 70% 40%; }
  .hero__content { margin-top: -8vw; }
}

/* ================= Accessibility preferences ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal], .js .bg-media { opacity: 1; transform: none; }
  body { transition: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .where__item, .card { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1a140f; }
  .btn-trailer::before { background: rgba(0,0,0,.7); }
}

/* ================= Per-page backgrounds ================= */
.page--us .sub__bg .bg-media        { background-image: url("../img/bg-landscape.jpg?v=3"); background-position: 78% 50%; --zoom: 1.35; --zoom-at: 72% 40%; }
.page--spain .sub__bg .bg-media     { background-image: url("../img/bg-landscape.jpg?v=3"); background-position: 78% 50%; --zoom: 1.5;  --zoom-at: 56% 30%; }
.page--singapore .sub__bg .bg-media { background-image: url("../img/still-singapore.jpg"); background-position: 30% 40%; }
.page--festivals .sub__bg .bg-media { background-image: url("../img/still-festivals.jpg"); background-position: 60% 50%; }
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .page--us .sub__bg .bg-media    { --zoom-at: 68% 30%; }
  .page--singapore .sub__bg .bg-media { background-position: 32% 40%; }
  .page--festivals .sub__bg .bg-media { background-position: 66% 50%; }
}
button.btn { border: 0; cursor: pointer; font-family: inherit; }

/* US: venue + showtimes */
.venue {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(243,236,226,.2); border-bottom: 1px solid rgba(243,236,226,.2);
}
.venue__name { font-size: 18px; }
.venue__meta { margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.times li { padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(243,236,226,.35); font-size: 13px; font-weight: 600; }
.times .times__tz { padding: 6px 4px; box-shadow: none; font-weight: 400; color: var(--ink-3); }
.venue .go { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.venue .go::after { content: " →"; display: inline-block; transition: transform var(--t-med) var(--ease-spring); }
.venue .go:hover::after { transform: translateX(4px); }

.page--us .venue { margin-top: 36px; }
.venue .btn { white-space: nowrap; }
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .venue { grid-template-columns: 1fr; }
  .venue .btn { justify-self: start; }
}

/* ================= Singapore: live GV showtimes ================= */
/* Full-width on this page so the timetable can run in columns and the dock stays on the first screen */
.page--singapore .sub__content { width: 100%; padding-right: var(--pad-x); }
/* Tighter top/bottom only while the timetable is showing; with no showtimes the heading sits at the same height as other pages */
.page--singapore .sub__content:has(.showtimes:not([hidden])) { padding-top: clamp(24px, 5vh, 80px); padding-bottom: clamp(20px, 3vh, 48px); }
.showtimes__summary { margin-top: 12px; max-width: none; }
.showtimes { margin-top: clamp(16px, 2.6vh, 26px); }
.showtimes__bar { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }   /* days, then language */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 34px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  color: var(--ink); background: rgba(var(--scrim), .5); box-shadow: inset 0 0 0 1px rgba(243,236,226,.22);
  transition: background var(--t-med) ease, color var(--t-med) ease, box-shadow var(--t-med) ease;
}
.chip:hover { box-shadow: inset 0 0 0 1px rgba(243,236,226,.6); }
.chip[aria-pressed="true"] { background: var(--ink); color: #1a120b; box-shadow: none; }
.chips--seg { gap: 0; padding: 3px; border-radius: 999px; background: rgba(var(--scrim), .5); box-shadow: inset 0 0 0 1px rgba(243,236,226,.18); }
.chips--seg .chip { height: 28px; padding: 0 12px; background: none; box-shadow: none; font-weight: 600; color: var(--ink-2); }
.chips--seg .chip[aria-pressed="true"] { background: rgba(243,236,226,.16); color: var(--ink); }

/* Cinemas as cards in columns (each cinema has 1–2 times a day) */
.showtimes__list {
  margin-top: 14px; max-width: 780px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;   /* two columns max */
}
.st-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px;
  min-height: 48px; padding: 6px 8px 6px 16px; border-radius: 14px;
  background: rgba(var(--scrim), .58); box-shadow: inset 0 0 0 1px rgba(243,236,226,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: st-in .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes st-in { from { opacity: 0; transform: translateY(6px); } }
.st-cinema { font-size: 15px; font-weight: 700; }
.st-times { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.st-time {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(243,236,226,.4);
  transition: background var(--t-med) ease, color var(--t-med) ease, box-shadow var(--t-med) ease, transform var(--t-med) var(--ease-spring);
}
.st-time small { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--gold); }
.st-time:hover, .st-time:focus-visible { background: var(--ink); color: #1a120b; box-shadow: none; transform: translateY(-1px); }
.st-time:hover small, .st-time:focus-visible small { color: #8a5a1c; }

.sg-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 18px; }
.sg-foot .actions { margin-top: 0; order: -1; }   /* buttons first, note underneath */
.sg-foot .note { margin-top: 0; max-width: 560px; font-size: 12px; line-height: 1.5; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

@media (min-width: 900px) and (max-height: 780px) {
  .page--singapore .sub:has(.showtimes:not([hidden])) .sub__home { margin-top: 24px; }
  .st-row { min-height: 42px; padding-top: 4px; padding-bottom: 4px; }
  .showtimes__list { gap: 6px; margin-top: 10px; }
  .st-time { padding: 5px 11px; }
}
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .showtimes__bar { flex-direction: column; align-items: flex-start; }
  .showtimes__days { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .st-cinema { font-size: 14px; }
  .showtimes__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .st-row { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1a140f; }
}

/* Festivals title "On the festival circuit" on one line (9.5em wide in DM Serif Display).
   Desktop/tablet fit at the normal size; on phones the size shrinks just enough to fit the column. */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .page--festivals .sub h1 { font-size: min(clamp(40px, 4.4vw, 58px), calc((100vw - 32px) / 9.8)); max-width: calc(100vw - 32px); }   /* phone column has 16px sides */
}

/* Singapore logo (with Chinese title) is 59/1400 of its width taller than the international one:
   pull the content up by that much so headings line up with the other pages (200px logo → 8px, 150px → 6px). */
.page--singapore .sub__home { margin-bottom: -8px; }
@media (max-width: 899px), (orientation: portrait) and (max-width: 1100px) {
  .page--singapore .sub__home { margin-bottom: -6px; }
}
