/* Hallmark · shape: film reel album, a letterboxed opening then five reels, each a key frame with a subtitle, its places and photos, then the credits · genre: atmospheric · theme: brand (ECW Trips, logo C + Hoàng hôn, accent Vàng nắng) · job: visit (look through the photos) · redesign: full (picked demo A "Phim Hồng Kông", canvas page Shenzhen)
 * paper: #0B080E · accent: #F4B942 · display: LF Curve Retro · body: Danta · outlier: LF Mileast (subtitles only) · hero: a 2.39:1 letterbox frame of the neon street, the title in the frame, a gold subtitle under it · nav: logo left, one link right · footer: one line, logo, credit, other trips · signature: gold bilingual subtitles under every key frame, like a Hong Kong film
 * axes: dark/display-heavy/warm · posture: letterbox · accent: subtitles, reel links, the one button, focus · motion: key frames and subtitles fade up with motion.dev, off under reduced motion; viewer from album.js · sound: off until asked, projector bed and a slow chord loop made in Web Audio, a click on each new reel and on each photo · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V5 · weakest: H, the CJK subtitle lines fall back to the system face because the three brand faces carry no Chinese */
/* Hallmark · finish-review: subagent · fix · 5 findings · 5 resolved (full-size key frames, contact strips for every place, reel 3 bleeds and a reel change band opens reel 4, a reel bar on the right, place-led reel titles) */
/* Hallmark · dropped back-to-top, cinema-mode, dock, lb-close, lb-counter, lb-dl, lb-next, lb-prev, lightbox, lightbox-img, reel-nav, scroll-progress-bar, https://cdn.jsdelivr.net/npm/motion@12.23.24/dist/motion.js · the shared album viewer and the local motion.js replace the old lightbox and the CDN copy; the owner asked for very little text, no year and no photo counts */
/* Hallmark · waive 37 · the fourth family is only the system CJK fallback for the Chinese subtitle lines · the three brand faces carry no Chinese glyphs and the owner fixed those three faces */
@import url("../album/album.css");

:root {
  --color-night: #0B080E;
  --color-subtitle: #F4B942;
  --font-cjk: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --frame: 2.39 / 1;
}
body.film { background: var(--color-night); }
.zh { font-family: var(--font-cjk); font-weight: 500; }

/* subtitles: Mileast in gold, the Chinese line under it, centred like a film */
.subtitle { display: flex; flex-direction: column; align-items: center; gap: var(--space-2xs); text-align: center; color: var(--color-subtitle); text-wrap: balance; }
.subtitle > span:first-child { font-family: var(--font-outlier); font-size: clamp(1.25rem, 1.2vw + 0.9rem, 2.125rem); line-height: 1.2; }
.subtitle .zh { font-size: clamp(0.9375rem, 0.5vw + 0.8rem, 1.375rem); opacity: 0.82; }

/* opening: the letterbox frame */
.film-hero { padding-top: var(--space-3xl); }
.letterbox { position: relative; aspect-ratio: var(--frame); max-height: 72dvh; width: 100%; overflow: hidden; background: var(--color-paper); }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.letterbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(color-mix(in oklab, var(--color-night) 20%, transparent), transparent 40%, color-mix(in oklab, var(--color-night) 78%, transparent)); pointer-events: none; }
.letterbox h1 { position: absolute; z-index: 1; left: var(--gutter); top: var(--space-xl); max-width: 16ch; font-size: var(--text-display-s); color: var(--color-ink); }
.hero-sub { position: absolute; z-index: 1; left: 0; right: 0; bottom: var(--space-lg); padding-inline: var(--gutter); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-xl); padding-block: var(--space-lg); }
.reels-nav a[aria-current="true"] { color: var(--color-accent); border-bottom-color: var(--color-accent); }

/* a reel: number, title, the key frame with its subtitle */
.reel { padding-block: var(--section-gap-s) 0; }
.reel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-xl); }
.reel-no { width: 100%; color: var(--color-accent); }
.reel-head h2 { font-size: var(--text-section); }
.frame { margin: 0 0 var(--space-2xl); background: var(--color-night); }
.frame .frame-shot { aspect-ratio: var(--frame); margin: 0; }
.frame .frame-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.frame figcaption { padding: var(--space-lg) var(--gutter) var(--space-md); }

/* a place: its name, its subtitle, its photos */
.place { margin-bottom: var(--space-2xl); }
.place:last-child { margin-bottom: 0; }
.place-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-lg); margin-bottom: var(--space-lg); }
.place-head h3 { font-size: var(--text-2xl); }

/* contact sheet: frames on a strip with sprocket holes */
.grid.contact { --row: 240px; gap: var(--space-xs); padding: var(--space-lg) var(--space-sm); background:
  repeating-linear-gradient(90deg, var(--color-ink-2) 0 10px, transparent 10px 22px) top / 100% 8px no-repeat,
  repeating-linear-gradient(90deg, var(--color-ink-2) 0 10px, transparent 10px 22px) bottom / 100% 8px no-repeat,
  var(--color-paper-2); }

/* the lookbook: four looks, each named after a Hong Kong film */
.look-intro { max-width: 520px; margin-bottom: var(--space-lg); }
.looks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.look { margin: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.look .shot { margin: 0; aspect-ratio: 2 / 3; }
.look .shot img { width: 100%; height: 100%; object-fit: cover; }
.look figcaption { display: flex; flex-direction: column; gap: var(--space-3xs); }
.look-title { font-family: var(--font-outlier); font-size: var(--text-xl); color: var(--color-subtitle); line-height: 1.2; }
.frame-cast { margin-top: var(--space-2xl); }

/* credits: centred, like the end of a film */
.credits { display: flex; flex-direction: column; align-items: center; gap: var(--space-xl); padding-block: var(--section-gap) var(--space-2xl); text-align: center; }
.credits h2 { font-size: var(--text-section); }
.credits .zh { font-size: var(--text-xl); color: var(--color-muted); margin-top: calc(-1 * var(--space-lg)); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-xl); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 700; text-decoration: none; text-transform: uppercase; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.button:hover { background-color: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); transform: translateY(-2px); }
.button:active { transform: translateY(0); background-color: color-mix(in oklab, var(--color-accent) 82%, var(--color-paper)); }
.button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }

/* rhythm breaks: reel 3's frame runs edge to edge; a reel change band, sprockets and the reel number, opens reel 4 */
.frame-bleed .frame-shot { max-height: 82dvh; width: 100%; }
.frame-bleed figcaption { padding-inline: var(--gutter); }
.reel-change { display: grid; place-items: center; min-height: clamp(260px, 40dvh, 420px); margin-top: var(--section-gap); background:
  repeating-linear-gradient(90deg, var(--color-ink-2) 0 14px, transparent 14px 30px) top 18px left 0 / 100% 10px no-repeat,
  repeating-linear-gradient(90deg, var(--color-ink-2) 0 14px, transparent 14px 30px) bottom 18px left 0 / 100% 10px no-repeat,
  var(--color-paper-2); }
.reel-change span { font-family: var(--font-display); font-size: clamp(4rem, 9vw, 9rem); line-height: 1; color: var(--color-ink); }

/* the reel bar: a quiet index on the right edge, always there on a long page */
.reel-bar { position: fixed; z-index: var(--z-sticky); right: var(--space-md); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: var(--space-xs); }
.reel-bar a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid color-mix(in oklab, var(--color-ink) 30%, transparent); background: color-mix(in oklab, var(--color-night) 70%, transparent); color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.reel-bar a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.reel-bar a[aria-current="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.reel-bar a:active { transform: scale(0.94); }
.reel-bar a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* sound: one quiet switch, bottom right */
.sound { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-sticky); display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 1px solid color-mix(in oklab, var(--color-ink) 35%, transparent); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-night) 80%, transparent); color: var(--color-ink); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.sound .wave { opacity: 0.35; }
.sound[aria-pressed="true"] { color: var(--color-accent); border-color: var(--color-accent); }
.sound[aria-pressed="true"] .wave { opacity: 1; }
.sound:hover { border-color: var(--color-accent); }
.sound:active { color: var(--color-ink-2); }
.sound:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

@media (max-width: 60rem) {
  .looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .reel-bar { display: none; }
  :root { --frame: 4 / 5; }
  .letterbox { max-height: none; }
  .letterbox h1 { top: var(--space-lg); }
  .frame .frame-shot { aspect-ratio: 4 / 3; }
  .grid.contact { --row: 96px; }
  .sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
