/* Hallmark · shape: a walk through the mist of Ba Vì, day to night, six places, each opening with a wide photo that clears out of the fog · 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 "Sương rừng", canvas page DC Green)
 * paper: forest #121F17, ink #17121C at the music night · accent: #F4B942 · display: LF Curve Retro · body: Danta · outlier: LF Mileast (lead line only) · hero: the forest from above under drifting fog, the name on its foot, the six places under it · nav: logo left, one link right · footer: one line, logo, credit, other trips · signature: the mist, drifting over the opening (three.js) and lifting off each place's photo as it comes into view
 * axes: dark/display-heavy/cool · posture: banner · accent: the lead line, the places links on hover, focus · motion: anime.js brings the name out of the fog, three.js moves the fog and lifts it as you scroll, motion.dev clears each lead photo with the scroll; off under reduced motion (no fog, photos clear) · sound: off until asked, wind and birds by day, crickets and a plucked guitar at night, all Web Audio · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S4 R4 V5 · weakest: S, the grids under each lead are the shared justified rows; the mist on the leads and the day-to-night ground carry the walk */
@import url("../album/album.css");

:root {
  --color-forest: #121F17;
  --color-mist: #E9E4D6;
}
body.mist-page { background-color: var(--color-forest); transition: background-color 1.4s var(--ease-in-out); }
body.mist-page[data-amb="night"] { background-color: var(--color-paper); }

/* the opening: the forest from above, fog drifting over it, the name on its foot */
.mist-hero { padding-top: var(--space-3xl); }
.hero-frame { position: relative; height: min(64dvh, 640px); overflow: hidden; }
.hero-frame .cover-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; transform: scale(1.15); transform-origin: 0 72%; }   /* crop the dark post on the right edge and most of the flat sky */
.hero-frame::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, var(--color-forest)); pointer-events: none; }
.fog { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(60% 22% at 25% 62%, color-mix(in oklab, var(--color-mist) 45%, transparent), transparent 70%),
  radial-gradient(55% 20% at 78% 70%, color-mix(in oklab, var(--color-mist) 35%, transparent), transparent 70%); }
.fog canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.fog.gl { background: none; }
.fog.gl canvas { opacity: 1; }
.hero-text { position: relative; z-index: 2; margin-top: calc(-1 * var(--space-3xl) - var(--space-xl)); display: flex; flex-direction: column; gap: var(--space-sm); }
.hero-text h1 { font-size: clamp(3.5rem, 6vw + 1rem, 7.5rem); line-height: 0.95; }
.hero-text .lead { font-family: var(--font-outlier); color: var(--color-accent); font-size: clamp(1.25rem, 1vw + 0.9rem, 1.875rem); }
.places-nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin-top: var(--space-md); }
.places-nav a { color: var(--color-ink); text-decoration: none; padding-block: var(--space-2xs); border-bottom: 2px solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.places-nav a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.places-nav a:active { color: var(--color-ink-2); }
.places-nav a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* a place: its name, the wide photo coming out of the mist, the rest */
.place-sec { padding-top: var(--section-gap); }
.place-sec h2 { font-size: clamp(3rem, 5vw + 1rem, 6rem); margin-bottom: var(--space-xl); }
.misty { position: relative; overflow: hidden; }
.misty img { filter: blur(var(--blur, 0px)); transform: scale(1.04); }
.misty .veil { position: absolute; inset: 0; background: linear-gradient(color-mix(in oklab, var(--color-mist) 92%, transparent), color-mix(in oklab, var(--color-mist) 55%, transparent)); opacity: var(--fog, 0); pointer-events: none; }
.place-sec[data-amb="night"] .veil { background: linear-gradient(color-mix(in oklab, var(--color-paper) 94%, transparent), color-mix(in oklab, var(--color-paper) 60%, transparent)); }   /* night: the dark closes over the photo instead of mist */
.place-sec:last-of-type { padding-bottom: var(--space-2xl); }

/* 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-paper) 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: 40rem) {
  .hero-frame { height: 56dvh; }
  .sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
