/* ---------- Brand tokens ---------- */
:root {
  --off-white: #f9f9f6;
  --limestone-ink: #1a1a1a;
  --karst-shadow: #1e2c22;
  --temple-slate: #1d3339;
  --bronze-brown: #836e51;
  --woven-charcoal: #292522;
  --incense-gold: #e8b828;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", system-ui, "Segoe UI", sans-serif;

  --nav-h: 76px;
  --gutter: 48px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 1024px;             /* desktop-only build */
  background: var(--off-white);
  color: var(--limestone-ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg, video { display: block; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--limestone-ink); color: var(--off-white); padding: 10px 14px; border-radius: 6px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--incense-gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--off-white) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(26, 26, 26, .08);
}
.nav__inner {
  height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; color: var(--limestone-ink); }
.brand__word {
  font: 600 19px/1 var(--font-display);
  font-variation-settings: "opsz" 48;
  letter-spacing: -.01em;
}
.brand__tld { color: var(--bronze-brown); }

.nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav__menu a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; text-decoration: none;
  color: var(--limestone-ink);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px;
  background: var(--incense-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav__menu a:hover::after, .nav__menu a:focus-visible::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  overflow: hidden; background: #b3c9e0; /* sky tone while the photo loads */
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__title text {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  fill: var(--temple-slate);
}
.js .hero__title text {
  transform: translateY(var(--from, 600px));
  transition: transform 1.6s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .hero.is-ready .hero__title text { transform: translateY(0); }

.hero__eyebrow {
  position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 12px); margin: 0;
  text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--limestone-ink); opacity: .8;
  transition: opacity 1s ease .9s;
}
.js .hero:not(.is-ready) .hero__eyebrow { opacity: 0; }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 96px var(--gutter) 44px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  background: linear-gradient(to top, rgba(30, 44, 34, .7), rgba(30, 44, 34, 0));
  color: var(--off-white);
  transition: opacity .9s ease 1.3s, transform .9s var(--ease-out) 1.3s;
}
.js .hero:not(.is-ready) .hero__foot { opacity: 0; transform: translateY(12px); }
.hero__lede {
  margin: 0; max-width: 34ch;
  font: 400 20px/1.45 var(--font-body);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--incense-gold); color: var(--limestone-ink);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: #f0c63f; }
.btn:active { transform: scale(.97); }

/* ---------- Film (video player) ---------- */
.film {
  padding: calc(var(--nav-h) + 24px) var(--gutter) 120px;
  scroll-margin-top: var(--nav-h);
}
.film__frame {
  position: relative;
  /* sized so frame + heading + description fit one screen, like the wireframe */
  width: min(1320px, 100%, calc((100vh - 290px) * 16 / 9));
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 44px;
  overflow: hidden;
  background: var(--woven-charcoal);
  transform: scale(var(--frame-scale, 1));
  transform-origin: 50% 0;
  will-change: transform;
}
.film__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity .8s ease;
}
.film__video.is-active { opacity: 1; }

.film__controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 20px;
  padding: 80px 32px 28px 40px;
  background: linear-gradient(to top, rgba(41, 37, 34, .55), rgba(41, 37, 34, 0));
  color: var(--off-white);
}
.film__progress {
  flex: 1; position: relative; height: 3px; border-radius: 3px; overflow: hidden;
  background: rgba(249, 249, 246, .3);
}
.film__progress span {
  position: absolute; inset: 0; background: var(--off-white);
  transform: scaleX(0); transform-origin: left;
}

.film__play {
  flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(249, 249, 246, .16); color: var(--off-white);
  backdrop-filter: blur(10px);
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.film__play:hover { background: rgba(249, 249, 246, .28); }
.film__play:active { transform: scale(.94); }
.film__play svg { width: 22px; height: 22px; }
.film__play .icon-play { display: none; }
.film.is-paused .film__play .icon-play { display: block; }
.film.is-paused .film__play .icon-pause { display: none; }

.film__copy { max-width: 1000px; margin: 0 auto; padding-top: 28px; text-align: center; }
.film__title {
  margin: 0;
  font: 800 clamp(52px, 4.6vw, 76px)/1.02 var(--font-body);
  letter-spacing: -.035em;
  color: var(--limestone-ink);
  text-wrap: balance;
}
.film__text {
  max-width: 52ch; margin: 18px auto 0;
  font-size: 17px; font-weight: 500; line-height: 1.6;
  color: var(--woven-charcoal);
}

/* ---------- Regions map ---------- */
.regions {
  padding: calc(var(--nav-h) + 40px) var(--gutter) 120px;
  background: var(--off-white);
  border-top: 1px solid rgba(26, 26, 26, .08);
  scroll-margin-top: var(--nav-h);
}
.regions__inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(320px, 400px) 1fr; gap: 64px; align-items: start;
}
.regions__title {
  margin: 0;
  font: 800 56px/1.02 var(--font-body);
  letter-spacing: -.035em;
}
.regions__lede { margin: 20px 0 36px; font-size: 17px; line-height: 1.6; color: var(--woven-charcoal); max-width: 38ch; }

.regions__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(26, 26, 26, .12); }
.regions__list li { border-bottom: 1px solid rgba(26, 26, 26, .12); }
.regions__list p { /* read by screen readers via aria-describedby; shown visually in the map card */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
}
.regions__list a {
  position: relative; width: 100%; min-height: 50px; padding: 0 12px 0 0;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; text-align: left;
  font-size: 17px; font-weight: 600; color: var(--limestone-ink);
  transition: color .2s ease, padding .25s var(--ease-out);
}
.regions__list a::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--incense-gold); transform: scale(0); transition: transform .25s var(--ease-out);
}
.regions__num { width: 24px; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--bronze-brown); }
.regions__list li.is-active a { padding-left: 6px; }
.regions__list li.is-active a::before { transform: scale(1); }

.regions__map {
  position: relative;
  width: 100%; max-width: min(820px, calc((100vh - 170px) * 1.04));
  justify-self: center;
}
.regions__svg { width: 100%; height: auto; overflow: visible; }

.district {
  fill: var(--incense-gold); fill-opacity: 0;
  cursor: pointer;
  pointer-events: all;
  transition: fill-opacity .25s ease;
}
.district.is-active { fill-opacity: .92; }

.regions__labels { pointer-events: none; }
.map-label {
  font-family: var(--font-display);
  font-style: italic; font-weight: 600;
  font-variation-settings: "opsz" 72;
  font-size: 72px;
  fill: var(--temple-slate);
  paint-order: stroke; stroke: var(--off-white); stroke-width: 14px; stroke-linejoin: round;
  transition: fill .2s ease;
}
.map-label.is-active { fill: var(--limestone-ink); }
.map-leader { stroke: var(--bronze-brown); stroke-width: 4; fill: none; }
.map-dot { fill: var(--bronze-brown); }
.map-dot.is-active { fill: var(--limestone-ink); }

.map-card {
  position: absolute; top: 0; left: 0; z-index: 3;
  width: 300px;
  border-radius: 14px; overflow: hidden;
  background: var(--woven-charcoal); color: var(--off-white);
  box-shadow: 0 24px 48px -12px rgba(26, 26, 26, .35);
  pointer-events: none;
  opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity .2s ease, transform .25s var(--ease-out);
}
.map-card.is-visible { opacity: 1; transform: none; }
.map-card__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--karst-shadow); }
.map-card__body { padding: 16px 18px 20px; }
.map-card__num { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--incense-gold); }
.map-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.25; }
.map-card__text { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(249, 249, 246, .86); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero__title text { transform: none; transition: opacity .6s ease; opacity: 0; }
  .js .hero.is-ready .hero__title text { opacity: 1; }
  .hero__foot, .hero__eyebrow { transition-duration: .4s; transition-delay: 0s; }
  .film__frame { transform: none; }
}

/* =========================================================
   District pages
   ========================================================= */

/* Nav over a dark hero: light text until the page scrolls */
.nav--on-dark:not(.is-scrolled) .brand__mark,
.nav--on-dark:not(.is-scrolled) .brand__word,
.nav--on-dark:not(.is-scrolled) .nav__menu a { color: var(--off-white); }
.nav--on-dark:not(.is-scrolled) .brand__tld { color: var(--incense-gold); }
.nav--on-dark .brand__mark, .nav--on-dark .brand__word, .nav--on-dark .nav__menu a { transition: color .35s ease; }
.nav__menu a[aria-current]::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.d-hero {
  position: relative; height: 100vh; min-height: 640px;
  overflow: hidden; background: var(--karst-shadow);
  display: grid; place-items: center;
  color: var(--off-white);
}
.d-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 2.6s var(--ease-out);
}
.d-hero.is-ready .d-hero__img { transform: scale(1); }
.d-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(26, 26, 26, .45) 0%, rgba(26, 26, 26, .15) 30%, rgba(26, 26, 26, .2) 60%, rgba(26, 26, 26, .6) 100%),
    rgba(29, 51, 57, .22);
}
.d-hero__content {
  position: relative; z-index: 1;
  width: 100%; padding: 0 var(--gutter);
  text-align: center;
  will-change: transform;
}
.d-hero__eyebrow {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  opacity: .9;
}
.d-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: var(--title-size, 18vh);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.d-hero__line {
  display: block;
  width: fit-content; margin: 0 auto;   /* so JS can measure the text width */
  white-space: nowrap;
  /* room above for Vietnamese tone marks, below for dots (ạ, ị) */
  clip-path: inset(-.45em -.2em -.22em -.2em);
}
.d-hero__letter { display: inline-block; white-space: pre; }
.js .d-hero__letter {
  transform: translateY(1.5em);
  transition: transform 1.3s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .d-hero.is-ready .d-hero__letter { transform: none; }

.d-hero__tagline {
  margin: 22px 0 0;
  font: italic 500 clamp(20px, 1.8vw, 28px)/1.3 var(--font-display);
  font-variation-settings: "opsz" 48;
}
.d-hero__eyebrow, .d-hero__tagline { transition: opacity 1s ease 1s, transform 1s var(--ease-out) 1s; }
.js .d-hero:not(.is-ready) .d-hero__eyebrow,
.js .d-hero:not(.is-ready) .d-hero__tagline { opacity: 0; transform: translateY(10px); }

.d-hero__scroll {
  position: absolute; left: 50%; bottom: 32px; z-index: 1;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 44px; min-height: 44px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--off-white); opacity: .85;
}
.d-hero__scroll svg { width: 18px; height: 18px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- About ---------- */
.d-kicker {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze-brown);
}
.d-about { padding: 140px var(--gutter) 120px; scroll-margin-top: 0; }
.d-about__inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start;
}
.d-about .d-kicker { padding-top: 14px; }
.d-about__text {
  margin: 0; max-width: 30em;
  font: 400 34px/1.4 var(--font-display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -.01em;
  color: var(--limestone-ink);
}

/* ---------- Food / destinations ---------- */
.d-section { padding: 110px var(--gutter) 130px; border-top: 1px solid rgba(26, 26, 26, .08); }
.d-section--alt { background: #f1efe8; }
.d-section__inner { max-width: 1320px; margin: 0 auto; }
.d-section__head { margin-bottom: 48px; }
.d-section__title {
  margin: 0;
  font: 800 64px/1 var(--font-body);
  letter-spacing: -.035em;
}
.d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.card {
  display: flex; flex-direction: column;
  background: var(--off-white);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(26, 26, 26, .06), 0 14px 32px -18px rgba(26, 26, 26, .28);
}
.d-section--alt .card { background: #fbfbf9; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--karst-shadow); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--type {
  display: grid; place-items: center; padding: 28px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(232, 184, 40, .16), transparent 60%),
    var(--temple-slate);
}
.d-section--alt .card__media--type { background: radial-gradient(120% 90% at 20% 0%, rgba(232, 184, 40, .16), transparent 60%), var(--karst-shadow); }
.card__type {
  font: italic 600 40px/1.1 var(--font-display);
  font-variation-settings: "opsz" 96;
  color: var(--off-white); text-align: center;
  text-wrap: balance;
}
.card__body { padding: 22px 24px 28px; }
.card__local { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--bronze-brown); }
.card__title { margin: 0 0 10px; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.card__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--woven-charcoal); }

/* ---------- Next region ---------- */
.d-next {
  display: flex; align-items: stretch; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: var(--woven-charcoal); color: var(--off-white);
}
.d-next a { text-decoration: none; }
.d-next__back {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 48px 0; font-weight: 600; font-size: 15px; opacity: .85;
  transition: opacity .2s ease;
}
.d-next__back:hover { opacity: 1; }
.d-next__back svg { width: 18px; height: 18px; }
.d-next__link { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 48px 0; }
.d-next__label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--incense-gold); }
.d-next__name {
  font: 600 56px/1.05 var(--font-display);
  font-variation-settings: "opsz" 144;
  text-transform: uppercase;
  transition: transform .35s var(--ease-out);
}
.d-next__link:hover .d-next__name { transform: translateX(-8px); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .d-hero__img { transform: none; transition: none; }
  .js .d-hero__letter { transform: none; transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .d-hero__scroll svg { animation: none; }
}

/* =========================================================
   Cloud page transition (see assets/js/transition.js)
   ========================================================= */
.cloudx {
  position: fixed; inset: 0; z-index: 1000;
  overflow: hidden; pointer-events: none; visibility: hidden;
}
.cloudx.is-active { visibility: visible; pointer-events: auto; }
.cloudx__layer {
  position: absolute; left: 0; top: 0;
  transform: translate3d(100vw, 0, 0);
  will-change: transform;
}
.cloudx__puff {
  position: absolute; display: block; max-width: none;
  user-select: none; -webkit-user-drag: none;
}
/* Soft sky behind the back clouds: only ever glimpsed through gaps between clusters */
.cloudx__sky {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(180deg, #b7cddf 0%, #cfdde7 40%, #e4ebee 75%, #eef0ec 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.cloudx__layer--mid .cloudx__puff { opacity: .97; }

/* Arriving via a cloud transition: hold a sky-coloured screen until the clouds are in place */
html.cloud-arriving::after {
  content: ""; position: fixed; inset: 0; z-index: 1001;
  background: linear-gradient(180deg, #b7cddf 0%, #cfdde7 40%, #e4ebee 75%, #eef0ec 100%);
}
/* =========================================================
   Culture & History page
   ========================================================= */
:root { --river: #f6ecd6; }   /* warm tint of Incense Gold on Off-White */

/* Image placeholders: swap for real <img> once photos arrive */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(249, 249, 246, .045) 0 14px, transparent 14px 28px),
    var(--temple-slate);
}
.ph__label {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em; line-height: 1.5;
  color: rgba(249, 249, 246, .6);
}
.ph__label b { color: var(--incense-gold); font-weight: 600; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.c-hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; color: var(--off-white); }
.c-hero__img { position: absolute; inset: 0; }
.c-hero__img .ph__label { left: auto; right: var(--gutter); bottom: 28px; text-align: right; }
.c-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(26, 26, 26, .55) 0%, rgba(26, 26, 26, .15) 60%, rgba(26, 26, 26, 0) 100%),
              linear-gradient(to bottom, rgba(26, 26, 26, .35), transparent 30%);
}
.c-hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%;
  transform: translateY(-40%);
}
.c-hero__eyebrow {
  margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .9;
  transition: opacity 1s ease .9s;
}
.js .c-hero:not(.is-ready) .c-hero__eyebrow { opacity: 0; }
.c-hero__title {
  margin: 0;
  font: 600 clamp(72px, 7.4vw, 128px)/1.02 var(--font-display);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.c-hero__line { display: block; width: fit-content; white-space: nowrap; clip-path: inset(-.45em -.2em -.22em -.2em); }

/* ---------- The Ky Cung river ---------- */
.flow { position: relative; isolation: isolate; background: var(--off-white); }
.flow__svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.river { position: relative; --bottom-h: 560px; }
.river__media {
  position: absolute; z-index: 0; left: 0; top: 0; width: 72%;   /* runs under the river so no page background peeks through */
  bottom: calc(var(--bottom-h) - 120px);
  display: grid; grid-template-rows: repeat(3, 1fr);
}
/* The last photo keeps going down to the bottom of the section; JS clips it at the river's left bank */
.river__media > .ph:last-child { margin-bottom: calc(120px - var(--bottom-h)); }
.river__bottom { /* sits under the photo column */ position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: calc(var(--bottom-h) + 160px); }
.river__bottom .ph__label { left: auto; right: var(--gutter); text-align: right; }
.river__water { fill: var(--river); }
.river__bank {
  fill: none; stroke: var(--incense-gold); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1);
}
.river__current { fill: none; stroke: #d9b85f; stroke-linecap: round; animation: current-flow linear infinite; }
@keyframes current-flow { to { stroke-dashoffset: -600; } }

.river__content {
  position: relative; z-index: 2;
  padding: 150px var(--gutter) calc(var(--bottom-h) + 140px) 58%;
  display: grid; gap: 180px;
}
.river__block { max-width: 540px; }
.river__kicker { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-brown); }
.river__title {
  margin: 0 0 20px;
  font: 800 34px/1.1 var(--font-body);
  letter-spacing: -.02em; text-transform: uppercase;
  color: var(--temple-slate);
}
.river__block p:not(.river__kicker) { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--woven-charcoal); }
.river__block em { font-style: italic; color: var(--limestone-ink); }

/* ---------- Seven peoples ---------- */
.peoples { position: relative; z-index: 2; padding: 140px var(--gutter) 120px; }
.peoples__inner { max-width: 1320px; margin: 0 auto; }
.peoples__head { max-width: 760px; margin-bottom: 56px; }
.peoples__title { margin: 0 0 18px; font: 800 64px/1 var(--font-body); letter-spacing: -.035em; }
.peoples__lede { margin: 0; font-size: 18px; line-height: 1.65; color: var(--woven-charcoal); }
.peoples__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.people { padding: 26px 24px 28px; border-radius: 18px; background: #fbfbf9; border: 1px solid rgba(26, 26, 26, .08); }
.people__share {
  margin: 0 0 14px;
  font: 600 44px/1 var(--font-display); font-variation-settings: "opsz" 144;
  color: var(--bronze-brown);
}
.people__share--small { font: 600 13px/44px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.people__name { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.people__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--woven-charcoal); }
.peoples__note { margin: 20px 0 0; font-size: 13px; color: var(--bronze-brown); }

/* ---------- History: pinned stage, one era at a time ---------- */
.history { position: relative; z-index: 2; padding: 140px var(--gutter) 0; }
.history__head { max-width: 640px; margin: 0 0 40px auto; margin-right: 6%; }
.history__title { margin: 0 0 18px; font: 800 64px/1 var(--font-body); letter-spacing: -.035em; }
.history__lede { margin: 0; font-size: 18px; line-height: 1.65; color: var(--woven-charcoal); }

/* Each era gets ~85vh of scroll while the stage stays pinned */
.history__track { position: relative; height: calc(var(--eras) * 85vh + 100vh); margin: 0 calc(-1 * var(--gutter)); }
.history__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.history__panels { position: absolute; left: 40%; right: 6%; top: calc(var(--nav-h) + 28px); bottom: 48px; }
.era {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 28px;
  opacity: 0; transform: translateY(60px);
  transition: opacity .6s ease, transform .8s var(--ease-out);
  pointer-events: none;
}
.era.is-past { transform: translateY(-60px); }
.era.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.era__img { border-radius: 24px; min-height: 0; box-shadow: 0 24px 48px -28px rgba(26, 26, 26, .45); }
.era__year {
  margin: 0 0 6px;
  font: 600 104px/.9 var(--font-display); font-variation-settings: "opsz" 144;
  letter-spacing: -.03em; color: var(--bronze-brown);
}
.era__name { margin: 0 0 12px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.era__text { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.65; color: var(--woven-charcoal); }
/* ---------- Upcoming events ---------- */
.events { position: relative; z-index: 2; padding: 120px var(--gutter) 130px; }
.events__inner { max-width: 1320px; margin: 0 auto; }
.events__title {
  margin: 0 0 32px;
  font: 500 44px/1.1 var(--font-display); font-variation-settings: "opsz" 144;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--karst-shadow);
}
.events__frame { padding: 22px; border: 2px solid var(--incense-gold); border-radius: 32px; }
.events__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.event {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  color: var(--off-white);
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.event:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(26, 26, 26, .5); }
.event__img { position: absolute; inset: 0; }
.event__img .ph__label { top: 52px; bottom: auto; right: 16px; left: auto; text-align: right; }
.event__badge {
  position: absolute; left: 16px; top: 16px; margin: 0; z-index: 1;
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(249, 249, 246, .92); color: var(--limestone-ink);
}
.event__badge:empty { display: none; }
.event__badge.is-now { background: var(--incense-gold); }
.event__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 110px 18px 18px;
  background: linear-gradient(to top, rgba(26, 26, 26, .9) 0%, rgba(26, 26, 26, .6) 55%, rgba(26, 26, 26, 0) 100%);
}
.event__date { margin: 0 0 6px; font-size: 12px; line-height: 1.45; color: rgba(249, 249, 246, .85); display: grid; }
.event__greg { font-weight: 600; color: var(--off-white); }
.event__name { margin: 0; font: 600 21px/1.2 var(--font-display); font-variation-settings: "opsz" 48; }
.events__note { margin: 16px 0 0 8px; font-size: 13px; color: var(--bronze-brown); }

@media (prefers-reduced-motion: reduce) {
  .river__current { animation: none; }
}

/* Culture hero letters rise in (mirrors the district hero) */
.c-hero__letter { display: inline-block; white-space: pre; }
.js .c-hero__letter { transform: translateY(1.5em); transition: transform 1.2s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .c-hero.is-ready .c-hero__letter { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .c-hero__letter { transform: none; transition: none; } }
/* A document (map) shown whole rather than cropped */
.ph--contain { background: #f1ecdc; }
.ph--contain > img { object-fit: contain; padding: 12px; }
/* =========================================================
   Nature page: a descent from cloud to cave
   ========================================================= */
.n-hero { background: #9fb3c2; }

/* Background darkens stage by stage: sky-pale at the top, cave-dark at the bottom */
.descent { position: relative; }
.descent__line {           /* a plumb line dropping down the page as you scroll */
  position: absolute; left: 40px; top: 0; bottom: 0; width: 2px; z-index: 1;
  background: rgba(131, 110, 81, .16);
}
.descent__line span {
  display: block; height: 100%;
  background: linear-gradient(var(--incense-gold), var(--incense-gold));
  transform: scaleY(var(--p, 0)); transform-origin: top;
}

/* ---------- Intro + cross-section ---------- */
.n-intro { padding: 140px var(--gutter) 110px; background: linear-gradient(#e4ecf1, #e9eee9); }
.n-intro__inner { max-width: 1240px; margin: 0 auto; }
.n-intro__head { max-width: 780px; }
.n-intro__title { margin: 0 0 18px; font: 800 64px/1 var(--font-body); letter-spacing: -.035em; }
.n-intro__lede { margin: 0; font-size: 18px; line-height: 1.65; color: var(--woven-charcoal); }

.xsec { margin: 56px 0 0; }
.xsec__svg {
  display: block; width: 100%; height: auto;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(26, 26, 26, .45);
}
.xsec__note { font: 600 12px var(--font-body); fill: #4f7480; letter-spacing: .04em; }
.xsec__markers a { cursor: pointer; }
.xsec__markers circle {
  fill: var(--incense-gold); stroke: #fbfbf8; stroke-width: 3;
  transition: transform .25s var(--ease-out); transform-box: fill-box; transform-origin: center;
}
.xsec__markers a:hover circle, .xsec__markers a:focus-visible circle { transform: scale(1.18); }
.xsec__markers text { font: 800 15px var(--font-body); fill: var(--limestone-ink); pointer-events: none; }
.xsec__markers text:not(.xsec__label) { text-anchor: middle; }
.xsec__markers .xsec__label {
  font-weight: 600; font-size: 15px;
  paint-order: stroke; stroke: rgba(251, 251, 248, .92); stroke-width: 5px; stroke-linejoin: round;
}
.xsec__cap { margin: 14px 4px 0; font-size: 13px; color: var(--bronze-brown); }

/* ---------- Stages ---------- */
.nstage { position: relative; padding: 130px var(--gutter); scroll-margin-top: var(--nav-h); }
.nstage--1 { background: linear-gradient(#e9eee9, #e7ebe0); }
.nstage--2 { background: linear-gradient(#e7ebe0, #e3e5d9); }
.nstage--3 { background: linear-gradient(#e3e5d9, #ddd7c8); }
.nstage--4 { background: linear-gradient(#ddd7c8 0%, #d6cfbe 58%, #2b2825 100%); padding-bottom: 280px; }
.nstage--5 { background: linear-gradient(#2b2825, #211f1c); }
.nstage--6 { background: linear-gradient(#211f1c, #171614); }

.nstage__inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center;
}
.nstage--flip .nstage__media { order: 2; }

.nstage__media {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden;
  background: var(--temple-slate);
  box-shadow: 0 30px 60px -34px rgba(26, 26, 26, .5);
}
.nstage__media--tall { aspect-ratio: 4 / 5; max-height: 80vh; justify-self: center; width: 100%; max-width: 520px; }
.nstage__media img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover;
  transform: translateY(var(--py, 0px)); will-change: transform;
}
.nstage__media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: rgba(26, 26, 26, .55); color: var(--off-white);
  backdrop-filter: blur(6px);
}

.nstage__level {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-brown);
}
.nstage__level span {
  font: 600 44px/1 var(--font-display); font-variation-settings: "opsz" 144;
  letter-spacing: -.02em; color: var(--incense-gold);
}
.nstage__title { margin: 0 0 20px; font: 800 52px/1.02 var(--font-body); letter-spacing: -.035em; }
.nstage__copy > p:not(.nstage__level) { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--woven-charcoal); }

.nstage__note {
  margin-top: 24px; padding: 18px 22px;
  border-left: 3px solid var(--incense-gold); border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, .55);
}
.nstage__note p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--woven-charcoal); }
.nstage__note .nstage__note-title { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--limestone-ink); }

/* Underground: light text on the dark */
.nstage--dark { color: var(--off-white); }
.nstage--dark .nstage__copy > p:not(.nstage__level) { color: rgba(249, 249, 246, .82); }
.nstage--dark .nstage__level { color: #b9a582; }
.nstage--dark .nstage__note { background: rgba(249, 249, 246, .06); }
.nstage--dark .nstage__note p { color: rgba(249, 249, 246, .78); }
.nstage--dark .nstage__note .nstage__note-title { color: var(--off-white); }
.nstage--dark .nstage__media { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }

/* ---------- Geopark close ---------- */
.n-geopark { padding: 140px var(--gutter) 170px; background: #171614; color: var(--off-white); text-align: center; }
.n-geopark__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.n-geopark__kicker { color: var(--incense-gold); }
.n-geopark__title { margin: 0 0 22px; font: 600 60px/1.05 var(--font-display); font-variation-settings: "opsz" 144; letter-spacing: -.02em; }
.n-geopark p:not(.d-kicker) { margin: 0; font-size: 18px; line-height: 1.7; color: rgba(249, 249, 246, .8); }

@media (prefers-reduced-motion: reduce) {
  .nstage__media img { transform: none; }
}

/* =========================================================
   Shopping page: one horizontal strip driven by vertical scroll
   ========================================================= */
.page-shopping { background: #f4efe4; }
.hs { position: relative; }                      /* height set by JS = strip length */
.hs__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hs__track {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; align-items: stretch;
  will-change: transform;
}
.hs-panel { position: relative; flex: none; height: 100%; }

/* Reveal as panels slide into view */
.js .hs-reveal { opacity: 0; transform: translateX(60px); transition: opacity .8s ease, transform 1s var(--ease-out); }
.js .hs-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero panel ---------- */
.s-hero { width: 100vw; color: var(--off-white); display: grid; place-items: center; overflow: hidden; }
.s-hero__img { position: absolute; inset: 0; }
.s-hero__img .ph__label { left: auto; right: var(--gutter); top: calc(var(--nav-h) + 16px); bottom: auto; text-align: right; }
.s-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(26, 26, 26, .45), rgba(26, 26, 26, .15) 35%, rgba(26, 26, 26, .25) 65%, rgba(26, 26, 26, .6));
}
.s-hero__content { position: relative; z-index: 1; text-align: center; padding: 0 var(--gutter); }
.s-hero__eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .9; }
.s-hero__title {
  margin: 0;
  font: 600 clamp(88px, 11vw, 190px)/1.04 var(--font-display);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.01em; text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.s-hero__line { display: block; width: fit-content; margin: 0 auto; white-space: nowrap; clip-path: inset(-.45em -.2em -.22em -.2em); }
.s-hero__letter { display: inline-block; white-space: pre; }
.js .s-hero__letter { transform: translateY(1.5em); transition: transform 1.2s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .hs.is-ready .s-hero__letter { transform: none; }
.s-hero__tagline { margin: 22px 0 0; font: italic 500 26px/1.3 var(--font-display); font-variation-settings: "opsz" 48; }
.s-hero__eyebrow, .s-hero__tagline, .s-hero__hint { transition: opacity 1s ease 1s; }
.js .hs:not(.is-ready) .s-hero__eyebrow,
.js .hs:not(.is-ready) .s-hero__tagline,
.js .hs:not(.is-ready) .s-hero__hint { opacity: 0; }
.s-hero__hint {
  position: absolute; right: var(--gutter); bottom: 84px; z-index: 1; margin: 0;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.s-hero__hint svg { width: 40px; height: 20px; animation: nudge-x 1.8s ease-in-out infinite; }
@keyframes nudge-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }

/* ---------- Intro panel ---------- */
.s-intro { width: 46vw; display: flex; align-items: center; padding: 0 5vw 0 7vw; }
.s-intro__title { margin: 0 0 22px; font: 800 60px/1.02 var(--font-body); letter-spacing: -.035em; }
.s-intro p:not(.d-kicker) { margin: 0 0 16px; font-size: 18px; line-height: 1.7; color: var(--woven-charcoal); }
.s-intro__cue { font-style: italic; color: var(--bronze-brown) !important; }

/* ---------- Market panels ---------- */
.s-market {
  width: 68vw;
  display: grid; grid-template-columns: 34vw 1fr; gap: 3.2vw; align-items: center;
  padding: calc(var(--nav-h) + 20px) 3vw 90px 3vw;
}
.s-market__img {
  height: min(68vh, 44vw); border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(26, 26, 26, .5);
}
.s-market__img img { transform: translateX(var(--px, 0px)) scale(1.12); transition: none; }
.s-market--low .s-market__img { align-self: end; }
.s-market--low .s-market__copy { align-self: start; padding-top: 2vh; }
.s-market__copy { max-width: 440px; }
.s-market__copy .s-market__num {
  margin: 0 0 4px;
  font: 600 72px/1 var(--font-display); font-variation-settings: "opsz" 144;
  letter-spacing: -.03em; color: var(--incense-gold);
}
.s-market__copy .s-market__local { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--bronze-brown); }
.s-market__name { margin: 0 0 8px; font: 800 40px/1.05 var(--font-body); letter-spacing: -.03em; }
.s-market__when { margin: 0 0 16px !important; font-size: 12px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--temple-slate) !important; }
.s-market__copy p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--woven-charcoal); }
.s-market__tip {
  margin-top: 18px !important; padding: 14px 18px; border-radius: 14px;
  background: rgba(232, 184, 40, .14); border-left: 3px solid var(--incense-gold);
  font-size: 15px !important;
}
.s-market__tip b { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--limestone-ink); }

/* ---------- What to take home ---------- */
.s-take {
  width: 78vw; padding: calc(var(--nav-h) + 30px) 4vw 100px 5vw;
  display: flex; flex-direction: column; justify-content: center;
}
.s-take__title { margin: 0 0 28px; font: 800 60px/1 var(--font-body); letter-spacing: -.035em; }
.s-take__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.s-tile__img { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.s-tile__img .ph__label { font-size: 11px; }
.s-tile__name { margin: 12px 0 2px; font-size: 18px; font-weight: 700; }
.s-tile__from { margin: 0; font-size: 13px; color: var(--bronze-brown); }

/* ---------- End panel ---------- */
.s-end { width: 60vw; background: var(--woven-charcoal); color: var(--off-white); display: flex; align-items: center; padding: 0 6vw; }
.s-end__kicker { color: var(--incense-gold); }
.s-end__title { margin: 0 0 36px; font: 600 88px/1 var(--font-display); font-variation-settings: "opsz" 144; letter-spacing: -.02em; }
.s-end__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(249, 249, 246, .15); }
.s-end__links li { border-bottom: 1px solid rgba(249, 249, 246, .15); }
.s-end__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 4px; text-decoration: none;
  transition: padding .3s var(--ease-out), color .2s ease;
}
.s-end__links a:hover, .s-end__links a:focus-visible { padding-left: 14px; color: var(--incense-gold); }
.s-end__links span { font: 600 34px/1.1 var(--font-display); font-variation-settings: "opsz" 96; }
.s-end__links small { font-size: 14px; color: rgba(249, 249, 246, .6); }

/* ---------- Progress along the strip ---------- */
.hs__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; z-index: 3;
  display: flex; align-items: center; gap: 24px; pointer-events: none;
  color: var(--limestone-ink); transition: color .4s ease;
}
.hs.on-dark .hs__progress { color: var(--off-white); }
.hs__where { margin: 0; flex: none; min-width: 260px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hs__where b { margin-left: 10px; font-weight: 700; }
.hs__bar { flex: 1; height: 2px; background: color-mix(in srgb, currentColor 22%, transparent); position: relative; }
.hs__bar span { position: absolute; inset: 0; background: currentColor; transform: scaleX(var(--p, 0)); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  .js .hs-reveal { opacity: 1; transform: none; transition: none; }
  .js .s-hero__letter { transform: none; transition: none; }
  .s-hero__hint svg { animation: none; }
}

/* =========================================================
   Memory Box (from the Figma "memory box" frames, restyled to the site)
   ========================================================= */
/* "Memory Box" gets its own pill in the nav, as in the design */
.nav__menu .nav__pill {
  margin-left: 6px; padding: 0 18px; border-radius: 999px;
  background: var(--incense-gold); color: var(--limestone-ink) !important; font-weight: 600;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.nav__menu .nav__pill::after { display: none; }
.nav__menu .nav__pill:hover { background: #f0c63f; }
.nav__menu .nav__pill[aria-current] { box-shadow: inset 0 0 0 2px rgba(26, 26, 26, .35); }

.page-memory { background: #f3ead7; }
body.is-closed { overflow: hidden; }

/* ---------- Start: the sealed box ---------- */
.mb-start {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 50%, #3a332e 0%, var(--woven-charcoal) 60%, #1c1917 100%);
  color: var(--off-white);
}
.mb-seal {
  position: relative; width: min(520px, 70vmin); aspect-ratio: 1;
  border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center;
}
.mb-seal:focus-visible { outline-offset: -20px; }
.mb-seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: mb-spin 28s linear infinite; }
.mb-seal__ring text { font: 700 17px var(--font-body); letter-spacing: .32em; fill: currentColor; }
@keyframes mb-spin { to { transform: rotate(360deg); } }
.mb-seal__anise {
  position: absolute; left: 50%; top: 44%; width: 66%; height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
  animation: mb-float 5s ease-in-out infinite;
}
@keyframes mb-float { 50% { transform: translate(-50%, -54%) rotate(4deg); } }
.mb-seal__label { position: absolute; left: 0; right: 0; top: 64%; display: grid; gap: 6px; text-align: center; }
.mb-seal__kicker { font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--incense-gold); }
.mb-seal__open { font: 600 40px/1 var(--font-display); font-variation-settings: "opsz" 96; transition: color .2s ease; }
.mb-seal:hover .mb-seal__open { color: var(--incense-gold); }
.mb-seal:hover .mb-seal__ring { animation-duration: 10s; }

/* The opening transition */
.mb-stream { position: absolute; inset: 0; display: grid; align-content: center; gap: 4vh; pointer-events: none; }
.mb-stream__row { display: flex; gap: 2vw; width: max-content; transform: translateX(-100%); opacity: 0; }
.mb-stream__row img { width: 22vw; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.is-opening .mb-seal__ring { animation: mb-ring-out 1.4s cubic-bezier(.6, 0, .4, 1) forwards; }
@keyframes mb-ring-out { to { transform: rotate(160deg) scale(5.5); opacity: 0; } }
.is-opening .mb-seal__anise { animation: mb-anise-in .75s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes mb-anise-in { to { transform: translate(-50%, -50%) rotate(200deg) scale(0); opacity: 0; } }
.is-opening .mb-seal__label { opacity: 0; transition: opacity .25s ease; }
.is-opening .mb-stream__row { animation: mb-stream 1.5s cubic-bezier(.3, 0, .2, 1) forwards; }
.is-opening .mb-stream__row:nth-child(2) { animation-delay: .1s; animation-duration: 1.35s; }
.is-opening .mb-stream__row:nth-child(3) { animation-delay: .05s; animation-duration: 1.6s; }
.is-opening .mb-stream__row:nth-child(4) { animation-delay: .15s; animation-duration: 1.45s; }
@keyframes mb-stream {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 1; }
}
@keyframes mb-stream-back {
  0% { transform: translateX(100vw); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateX(-100%); opacity: 1; }
}
.is-opening .mb-stream__row:nth-child(even) { animation-name: mb-stream-back; }
.mb-flash { position: absolute; inset: 0; background: #f3ead7; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.mb-start.is-flash .mb-flash { opacity: 1; }

/* ---------- The wall ---------- */
.mb-main { opacity: 0; }
.is-open .mb-main { opacity: 1; transition: opacity .6s ease; }
.mb-wall {
  position: relative; padding: calc(var(--nav-h) + 28px) var(--gutter) 110px;
  background:
    radial-gradient(90% 60% at 50% 45%, rgba(255, 255, 255, .45), transparent 70%),
    #f3ead7;
}
.mb-wall__grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1280px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px 26px;
}
.pola {
  position: relative; padding: 10px 10px 0; background: #fdfcf8;
  box-shadow: 0 1px 2px rgba(41, 37, 34, .12), 0 16px 26px -16px rgba(41, 37, 34, .45);
  transform: rotate(var(--r));
  transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.pola img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pola__cap { display: block; padding: 10px 4px 12px; text-align: center; font: italic 500 14px/1.2 var(--font-display); color: var(--woven-charcoal); }
.pola:hover { transform: rotate(0deg) scale(1.06); z-index: 2; box-shadow: 0 2px 4px rgba(41, 37, 34, .12), 0 26px 40px -18px rgba(41, 37, 34, .55); }
.is-open .pola { animation: mb-drop .7s var(--ease-out) both; animation-delay: var(--d); }
@keyframes mb-drop { from { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r) * 3)) scale(1.05); } }

/* tape, pins and badges */
.pola__tape, .post .pola__tape {
  position: absolute; left: 50%; top: -12px; width: 76px; height: 22px; z-index: 1;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(232, 184, 40, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.pola__tape--corner { left: auto; right: -18px; top: -6px; transform: rotate(38deg); }
.pola__pin {
  position: absolute; left: 50%; top: -7px; width: 15px; height: 15px; z-index: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #f7d56a, var(--incense-gold) 45%, #9c7a12);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
}
.pola__star {
  position: absolute; left: -10px; top: -10px; z-index: 1; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--karst-shadow); color: var(--incense-gold);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .25);
}
.pola__star svg { width: 14px; height: 14px; }

/* the centre card over the wall */
.mb-card {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: min(460px, 36vw); padding: 44px 40px 40px; border-radius: 22px;
  transform: translate(-50%, -46%) rotate(-1.5deg);
  background: linear-gradient(150deg, #2c4233 0%, var(--karst-shadow) 55%, #152018 100%);
  color: var(--off-white); text-align: center;
  box-shadow: 0 40px 70px -30px rgba(20, 30, 22, .8);
}
.mb-card__tape { position: absolute; left: -16px; top: -8px; width: 90px; height: 24px; transform: rotate(-38deg); background: rgba(232, 184, 40, .6); }
.mb-card__kicker { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--incense-gold); }
.mb-card__title { margin: 0 0 16px; font: 600 48px/1.02 var(--font-display); font-variation-settings: "opsz" 144; letter-spacing: -.02em; }
.mb-card__text { margin: 0 auto 26px; max-width: 34ch; font-size: 15px; line-height: 1.6; color: rgba(249, 249, 246, .78); }
.mb-card__text em { color: var(--off-white); }
.mb-down {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--incense-gold); color: var(--limestone-ink);
  box-shadow: 0 10px 22px -8px rgba(232, 184, 40, .6);
  animation: mb-bob 2s ease-in-out infinite;
  transition: background-color .2s ease;
}
.mb-down:hover { background: #f0c63f; }
.mb-down svg { width: 24px; height: 24px; }
@keyframes mb-bob { 50% { transform: translateY(7px); } }

/* ---------- Posts ---------- */
.mb-posts { padding: 110px var(--gutter) 140px; background: #efe4cc; scroll-margin-top: var(--nav-h); }
.mb-posts__head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.mb-posts__title { margin: 0 0 14px; font: 600 64px/1 var(--font-display); font-variation-settings: "opsz" 144; letter-spacing: -.025em; color: var(--karst-shadow); }
.mb-posts__lede { margin: 0 auto 26px; max-width: 48ch; font-size: 17px; line-height: 1.6; color: var(--woven-charcoal); }
.mb-share svg { width: 16px; height: 16px; }
.mb-posts__grid { max-width: 1120px; margin: 0 auto; columns: 3; column-gap: 40px; }
.post {
  position: relative; display: inline-block; width: 100%; margin: 0 0 44px;
  padding: 12px 12px 16px; background: #fdfcf8;
  box-shadow: 0 1px 2px rgba(41, 37, 34, .12), 0 20px 34px -20px rgba(41, 37, 34, .5);
  transform: rotate(var(--r));
  transition: transform .35s var(--ease-out);
  break-inside: avoid;
}
.post:hover { transform: rotate(0deg) translateY(-4px); }
.post__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 4px 0; }
.post__text { margin: 12px 6px; font-size: 15px; line-height: 1.55; color: var(--woven-charcoal); }
.post__meta { display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; border-top: 1px solid rgba(41, 37, 34, .08); }
.post > .post__meta:first-child { border-top: 0; padding-top: 4px; }
.post__avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--off-white);
}
.post__who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.post__who b { font-size: 14px; }
.post__who small { font-size: 12px; color: var(--bronze-brown); }
.post__like {
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--bronze-brown);
  transition: background-color .2s ease, color .2s ease;
}
.post__like svg { width: 16px; height: 16px; }
.post__like:hover { background: rgba(131, 110, 81, .1); }
.post__like.is-on { color: #b3322a; }
.post__like.is-pop svg { animation: mb-pop .45s var(--ease-out); }
@keyframes mb-pop { 40% { transform: scale(1.45); } }
.post__badge {
  position: absolute; right: -10px; top: -10px; width: 28px; height: 28px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center; background: #fdfcf8; color: #b3322a; box-shadow: 0 3px 6px rgba(0, 0, 0, .2);
}
.post__badge svg { width: 14px; height: 14px; }
.post--mine { outline: 2px solid rgba(232, 184, 40, .7); outline-offset: 4px; }
.post.is-new { animation: mb-pin-in .8s var(--ease-out); }
@keyframes mb-pin-in { from { opacity: 0; transform: translateY(-60px) rotate(8deg) scale(1.08); } }

/* ---------- Share dialog ---------- */
.mb-dialog { padding: 0; border: 0; background: transparent; overflow: visible; max-width: calc(100vw - 32px); }
.mb-dialog::backdrop { background: rgba(28, 25, 23, .72); backdrop-filter: blur(4px); }
.mb-dialog[open] .mb-form { animation: mb-dialog-in .45s var(--ease-out); }
@keyframes mb-dialog-in { from { opacity: 0; transform: translateY(30px) rotate(-4deg) scale(.96); } }
.mb-form {
  position: relative; width: 460px; padding: 30px 30px 24px;
  background: #fdfcf8; border-radius: 8px; transform: rotate(-1.2deg);
  box-shadow: 0 34px 60px -24px rgba(10, 20, 14, .75);
}
.mb-form__tape { position: absolute; left: 50%; top: -14px; width: 116px; height: 28px; transform: translateX(-50%) rotate(-2deg); background: rgba(232, 184, 40, .55); }
.mb-form__close {
  position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: var(--bronze-brown); cursor: pointer;
}
.mb-form__close:hover { background: rgba(131, 110, 81, .1); }
.mb-form__close svg { width: 18px; height: 18px; }
.mb-form__title { margin: 0; font: 600 30px/1.1 var(--font-display); font-variation-settings: "opsz" 96; color: var(--karst-shadow); }
.mb-form__sub { margin: 4px 0 18px; font-size: 14px; color: var(--bronze-brown); }
.mb-drop {
  position: relative; display: grid; place-items: center; height: 240px; overflow: hidden; cursor: pointer;
  border: 2px dashed #d6cfc0; border-radius: 6px; background: #f7f4ec;
  transition: border-color .2s ease, background-color .2s ease;
}
.mb-drop:hover, .mb-drop.is-over { border-color: var(--incense-gold); background: #fbf5e3; }
.mb-drop:focus-within { outline: 2px solid var(--incense-gold); outline-offset: 2px; }
.mb-drop.is-invalid { border-color: #b3322a; }
.mb-drop__empty { display: grid; justify-items: center; gap: 4px; color: #8f8578; font-size: 15px; }
.mb-drop__empty svg { width: 34px; height: 34px; margin-bottom: 4px; }
.mb-drop__empty small { font-size: 12px; color: #a69d91; }
.mb-drop__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mb-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mb-field { display: grid; gap: 5px; margin-top: 12px; }
.mb-form__row .mb-field { margin-top: 0; }
.mb-field label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--woven-charcoal); }
.mb-field input, .mb-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd6ca; border-radius: 8px; background: #fff;
  font: 400 15px/1.4 var(--font-body); color: var(--limestone-ink); resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mb-field input::placeholder, .mb-field textarea::placeholder { color: #a69d91; }
.mb-field input:focus, .mb-field textarea:focus { outline: none; border-color: var(--incense-gold); box-shadow: 0 0 0 3px rgba(232, 184, 40, .25); }
.mb-field .is-invalid { border-color: #b3322a; }
.mb-form__err { margin: 4px 0 0; min-height: 0; font-size: 12px; font-weight: 500; color: #b3322a; }
.mb-form__err:empty { display: none; }
.mb-form__submit {
  width: 100%; min-height: 48px; margin-top: 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--karst-shadow); color: var(--off-white); font-weight: 600; font-size: 15px;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.mb-form__submit:hover { background: #2c4233; }
.mb-form__submit:active { transform: scale(.98); }
.mb-form__note { margin: 10px 0 0; text-align: center; font-size: 12px; color: #a69d91; }

@media (prefers-reduced-motion: reduce) {
  .mb-seal__ring, .mb-seal__anise, .mb-down { animation: none; }
  .is-open .pola, .post.is-new, .mb-dialog[open] .mb-form { animation: none; }
}

/* [hidden] must win over the display rules above */
.mb-start[hidden], .mb-drop__empty[hidden], .mb-drop__preview[hidden] { display: none; }
/* =========================================================
   Language switch (EN / VI) — see assets/js/i18n.js
   ========================================================= */
html.t-pending body { visibility: hidden; }   /* avoid a flash of English for Vietnamese readers */

.nav__lang {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: 10px; padding-left: 14px;
  border-left: 1px solid currentColor;
  color: inherit;
}
.nav__lang span { opacity: .4; font-size: 12px; }
.nav__lang button {
  min-height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer;
  font: 600 13px/1 var(--font-body); letter-spacing: .08em;
  color: currentColor; opacity: .55;
  transition: opacity .2s ease;
}
.nav__lang button:hover { opacity: .9; }
.nav__lang button.is-on { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--incense-gold); text-decoration-thickness: 2px; }
.nav--on-dark:not(.is-scrolled) .nav__lang { color: var(--off-white); }

/* Vietnamese runs a little longer than English in tight spots */
.lang-vi .nav__menu a { font-size: 14px; padding: 0 11px; }
.lang-vi .s-market__name, .lang-vi .mb-posts__title { text-wrap: balance; }

/* =========================================================
   Small screens
   The site is built for the desktop first; everything below
   reshapes it for tablets (<=1024px) and phones (<=760px).
   ========================================================= */

/* ---------- Tablets and narrow windows ---------- */
@media (max-width: 1024px) {
  body { min-width: 0; }
  :root { --gutter: 32px; }

  .regions__inner { grid-template-columns: 1fr; gap: 44px; }
  .regions__map { max-width: 640px; }
  .d-about__inner { grid-template-columns: 1fr; gap: 16px; }
  .peoples__grid { grid-template-columns: repeat(2, 1fr); }
  .nstage__inner { grid-template-columns: 1fr; gap: 36px; }
  .nstage--flip .nstage__media { order: 0; }
  .nstage__media--tall { max-width: 440px; }
  .events__list { grid-template-columns: repeat(3, 1fr); }
  .mb-wall__grid { grid-template-columns: repeat(4, 1fr); }
  .mb-posts__grid { columns: 2; }
  .mb-card { width: min(440px, 62vw); }
}

/* ---------- The nav turns into a drawer ---------- */
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: grid; align-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 10px; margin-right: -10px;
    border: 0; background: none; cursor: pointer; color: inherit;
  }
  .nav--on-dark:not(.is-scrolled):not(.is-open) .nav__toggle { color: var(--off-white); }
  .nav__toggle span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s ease; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }

  .nav.is-open,
  .nav.is-open.nav--on-dark {
    background: var(--off-white);
    box-shadow: 0 1px 0 rgba(26, 26, 26, .08);
  }
  .nav--on-dark.is-open .brand__mark,
  .nav--on-dark.is-open .brand__word,
  .nav--on-dark.is-open .nav__toggle { color: var(--limestone-ink); }
  .nav--on-dark.is-open .brand__tld { color: var(--bronze-brown); }

  .nav__menu {
    position: fixed; left: 0; right: 0; top: var(--nav-h);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    background: var(--off-white); color: var(--limestone-ink);
    box-shadow: 0 18px 34px -22px rgba(26, 26, 26, .5);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s ease, transform .3s var(--ease-out), visibility .3s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }

  .nav__menu ul { flex-direction: column; gap: 0; padding: 6px var(--gutter) 22px; }
  .nav__menu li { border-bottom: 1px solid rgba(26, 26, 26, .09); }
  .nav__menu a,
  .nav--on-dark:not(.is-scrolled) .nav__menu a {
    width: 100%; min-height: 54px; padding: 0;
    font-size: 17px; color: var(--limestone-ink);
  }
  .nav__menu a::after { left: 0; right: auto; width: 18px; bottom: 14px; }
  .nav__menu .nav__pill {
    margin: 14px 0 0; padding: 0 20px; min-height: 50px;
    justify-content: center;
  }
  .nav__menu li:has(> .nav__pill) { border-bottom: 0; }
  .nav__lang,
  .nav--on-dark:not(.is-scrolled) .nav__lang { margin: 16px 0 0; padding: 0; border-left: 0; color: var(--limestone-ink); }
  .nav__lang button { padding: 0 12px 0 0; font-size: 15px; opacity: .7; }
  .nav__lang button.is-on { opacity: 1; }

  html.nav-open, html.nav-open body { overflow: hidden; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --nav-h: 60px; }

  /* Touch devices get no hover lift */
  .hero, .d-hero, .c-hero { height: 100svh; min-height: 480px; }

  /* Home: hero */
  .hero__eyebrow { font-size: 10px; letter-spacing: .16em; }
  .hero__foot {
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 90px var(--gutter) 30px;
  }
  .hero__lede { font-size: 16px; line-height: 1.5; }

  /* Home: film */
  .film { padding: calc(var(--nav-h) + 20px) var(--gutter) 72px; }
  .film__frame { width: 100%; border-radius: 18px; }
  .film__controls { gap: 14px; padding: 50px 14px 14px 18px; }
  .film__play { width: 46px; height: 46px; }
  .film__play svg { width: 18px; height: 18px; }
  .film__copy { padding-top: 22px; }
  .film__title { font-size: clamp(30px, 8.6vw, 42px); }
  .film__text { margin-top: 12px; font-size: 16px; }

  /* Home: regions */
  .regions { padding: 72px var(--gutter) 80px; }
  .regions__title { font-size: 36px; }
  .regions__lede { margin: 14px 0 26px; font-size: 16px; max-width: none; }
  .regions__inner { gap: 32px; }
  .regions__map { order: -1; max-width: none; }
  /* District pages */
  .d-hero__eyebrow { margin-bottom: 12px; font-size: 11px; letter-spacing: .18em; }
  .d-hero__tagline { margin-top: 16px; font-size: 17px; }
  .d-hero__scroll { bottom: 22px; }
  .d-about { padding: 72px var(--gutter) 64px; }
  .d-about .d-kicker { padding-top: 0; }
  .d-about__text { font-size: 23px; line-height: 1.45; }
  .d-section { padding: 64px var(--gutter) 72px; }
  .d-section__head { margin-bottom: 28px; }
  .d-section__title { font-size: 34px; }
  .d-grid { grid-template-columns: 1fr; gap: 20px; }
  .card__body { padding: 18px 18px 22px; }
  .card__title { font-size: 20px; }
  .card__text { font-size: 15px; }
  .card__type { font-size: 30px; }
  .card__media--type { padding: 22px; }
  .d-next { flex-direction: column; align-items: stretch; gap: 0; }
  .d-next__back { padding: 26px 0 18px; }
  .d-next__link { align-items: flex-start; padding: 0 0 30px; }
  .d-next__name { font-size: 38px; }

  /* Culture: the river narrows to a stream down the left margin; the content sits over it */
  .c-hero__content { left: var(--gutter); right: var(--gutter); transform: translateY(-38%); }
  .c-hero__eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: .18em; }
  .c-hero__title { font-size: clamp(30px, 11.4vw, 48px); }
  .c-hero__img .ph__label { right: var(--gutter); left: var(--gutter); bottom: 18px; font-size: 11px; }

  .river { display: flex; flex-direction: column; --bottom-h: 0px; }
  .river__media {
    position: relative; z-index: 2; order: 1; width: 100%; bottom: auto;
    grid-template-rows: none; grid-auto-flow: column; grid-auto-columns: 74%;
    gap: 10px; padding: 0 var(--gutter); margin-top: 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .river__media::-webkit-scrollbar { display: none; }
  .river__media > .ph { aspect-ratio: 4 / 3; border-radius: 14px; scroll-snap-align: center; }
  .river__media > .ph:last-child { margin-bottom: 0; clip-path: none !important; }
  .river__content { position: relative; z-index: 2; order: 2; padding: 40px var(--gutter) 36px 58px; gap: 52px; }
  .river__block { max-width: none; }
  .river__title { font-size: 26px; }
  .river__block p:not(.river__kicker) { font-size: 16px; }
  .river__bottom { position: relative; z-index: 2; order: 3; height: 58vw; }
  .river__bottom .ph__label { left: var(--gutter); right: var(--gutter); text-align: left; font-size: 11px; }

  /* The stream is thin here, so its surface markings are quieter */
  .river__current { display: none; }
  .river__bank { stroke-width: 2; }
  .peoples { padding: 76px var(--gutter) 64px; }
  .peoples__head { margin-bottom: 28px; }
  .peoples__title { font-size: 34px; }
  .peoples__lede { font-size: 16px; }
  .peoples__grid { grid-template-columns: 1fr; gap: 14px; }
  .people { padding: 20px 20px 22px; }
  .people__share { margin-bottom: 8px; font-size: 34px; }
  .people__share--small { font: 600 12px/34px var(--font-body); letter-spacing: .08em; }
  .people__name { font-size: 20px; }

  /* History: unpin the stage, show every era in order */
  .history { padding: 60px var(--gutter) 0; }
  .history__head { margin: 0 0 28px; }
  .history__title { font-size: 34px; }
  .history__lede { font-size: 16px; }
  .history__track { height: auto !important; margin: 0; }
  .history__stage { position: static; height: auto; overflow: visible; }
  .history__panels { position: static; inset: auto; }
  .era, .era.is-past, .era.is-active {
    position: static; inset: auto;
    display: grid; grid-template-rows: none; gap: 16px;
    margin-bottom: 56px;
    opacity: 1; transform: none; pointer-events: auto; transition: none;
  }
  .era__img { aspect-ratio: 4 / 3; border-radius: 18px; }
  .era__year { font-size: 58px; }
  .era__name { font-size: 22px; }
  .era__text { font-size: 16px; }

  .events { padding: 60px var(--gutter) 90px; }
  .events__title { margin-bottom: 20px; font-size: 28px; }
  .events__frame { padding: 12px; border-radius: 22px; }
  .events__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .event__body { padding: 70px 12px 14px; }
  .event__name { font-size: 17px; }
  .event__date { font-size: 11px; }
  .event__badge { left: 10px; top: 10px; padding: 4px 8px; font-size: 10px; }
  .events__note { margin-left: 2px; font-size: 12px; }

  /* Nature */
  .descent__line { left: 9px; }
  .n-intro { padding: 76px var(--gutter) 64px; }
  .n-intro__title { font-size: 34px; }
  .n-intro__lede { font-size: 16px; }
  .xsec { margin-top: 32px; overflow: visible; }
  .xsec__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 16px; }
  .xsec__scroll::-webkit-scrollbar { display: none; }
  .xsec__svg { min-width: 700px; border-radius: 16px; }
  .xsec__cap { font-size: 12px; }
  .nstage { padding: 72px var(--gutter); }
  .nstage--4 { padding-bottom: 180px; }
  .nstage__inner { gap: 26px; }
  .nstage__media { border-radius: 18px; }
  .nstage__media--tall { max-width: none; aspect-ratio: 4 / 3; max-height: none; }
  .nstage__title { font-size: 30px; }
  .nstage__level { margin-bottom: 8px; font-size: 11px; }
  .nstage__level span { font-size: 34px; }
  .nstage__copy > p:not(.nstage__level) { font-size: 16px; }
  .nstage__note { margin-top: 20px; padding: 14px 16px; }
  .n-geopark { padding: 84px var(--gutter) 96px; }
  .n-geopark__title { font-size: 36px; }
  .n-geopark p:not(.d-kicker) { font-size: 16px; }

  /* Shopping: still one horizontal strip, one screen-width panel at a time */
  .hs__sticky { height: 100svh; }
  .s-hero__title { font-size: clamp(34px, 11vw, 92px); }
  .s-hero__tagline { margin-top: 14px; font-size: 18px; }
  .s-hero__eyebrow { font-size: 11px; letter-spacing: .18em; }
  .s-hero__hint { right: var(--gutter); bottom: 70px; gap: 8px; font-size: 10px; }
  .s-hero__hint svg { width: 28px; }
  .s-hero__img .ph__label { font-size: 11px; }

  .s-intro { width: 90vw; padding: calc(var(--nav-h) + 20px) 6vw 80px; }
  .s-intro__title { font-size: 32px; }
  .s-intro p:not(.d-kicker) { font-size: 16px; line-height: 1.6; }

  /* Each market fills the screen with its photo; the words sit on top of it */
  .s-market {
    width: 96vw; display: flex; flex-direction: column; justify-content: flex-end;
    padding: calc(var(--nav-h) + 16px) 7vw 54px;
    color: var(--off-white);
  }
  .s-market__img {
    position: absolute; inset: 0; z-index: 0;
    width: auto; height: auto; max-height: none; border-radius: 0; box-shadow: none;
  }
  .s-market__img::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top,
      rgba(20, 18, 16, .93) 0%, rgba(20, 18, 16, .86) 34%, rgba(20, 18, 16, .55) 62%, rgba(20, 18, 16, .3) 100%);
  }
  .s-market--low .s-market__img, .s-market--low .s-market__copy { align-self: auto; padding-top: 0; }
  .s-market__copy { position: relative; z-index: 2; max-width: none; }
  .s-market__copy .s-market__num { font-size: min(34px, 4.6vh); color: var(--incense-gold); }
  .s-market__copy .s-market__local { color: #e4d2ad; }
  .s-market__name { margin-bottom: 6px; font-size: 26px; }
  .s-market__when { margin-bottom: 10px !important; color: #e4d2ad !important; }
  .s-market__copy p { margin-bottom: 9px; font-size: min(15px, 2.05vh); line-height: 1.55; color: rgba(249, 249, 246, .92); }
  .s-market__tip {
    margin-top: 12px !important; padding: 11px 14px; font-size: 13.5px !important;
    background: rgba(249, 249, 246, .12); color: var(--off-white);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .s-market__tip b { color: var(--incense-gold); }
  .s-take { width: 92vw; padding: calc(var(--nav-h) + 16px) 4vw 76px; }
  .s-take__title { margin-bottom: 18px; font-size: 30px; }
  .s-take__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .s-tile__name { margin-top: 8px; font-size: 15px; }
  .s-tile__from { font-size: 12px; }

  .s-end { width: 92vw; padding: 0 6vw; }
  .s-end__title { margin-bottom: 22px; font-size: 44px; }
  .s-end__links a { padding: 14px 2px; }
  .s-end__links span { font-size: 23px; }
  .s-end__links small { font-size: 12px; }

  .hs__progress { left: var(--gutter); right: var(--gutter); bottom: 18px; gap: 12px; }
  .hs__where { min-width: 0; flex: 1 1 auto; font-size: 10px; letter-spacing: .1em; }
  .hs__where b { margin-left: 6px; }
  .hs__bar { flex: 0 0 72px; }

  /* Memory Box */
  .mb-seal { width: min(420px, 76vmin); }
  .mb-seal__ring text { font-size: 13px; letter-spacing: .26em; }
  .mb-seal__open { font-size: 30px; }
  .mb-seal__kicker { font-size: 11px; letter-spacing: .2em; }
  .mb-stream__row img { width: 46vw; }
  .mb-stream { gap: 3vh; }

  .mb-wall { display: flex; flex-direction: column; padding: calc(var(--nav-h) + 18px) 16px 64px; overflow-x: clip; }
  .mb-posts { overflow-x: clip; }
  .mb-card {
    position: static; order: -1; width: auto; max-width: 420px;
    margin: 0 auto 30px; padding: 30px 24px 28px; transform: rotate(-1.2deg);
  }
  .mb-card__title { font-size: 34px; }
  .mb-card__text { margin-bottom: 20px; font-size: 14.5px; }
  .mb-wall__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .pola__cap { font-size: 13px; }

  .mb-posts { padding: 72px var(--gutter) 90px; }
  .mb-posts__head { margin-bottom: 36px; }
  .mb-posts__title { font-size: 34px; }
  .mb-posts__lede { font-size: 16px; }
  .mb-posts__grid { columns: 1; max-width: 420px; }
  .post { margin-bottom: 30px; }

  .mb-dialog { max-width: 100%; }
  .mb-form { width: min(92vw, 420px); padding: 24px 20px 20px; transform: none; }
  .mb-form__title { font-size: 26px; }
  .mb-drop { height: 180px; }
  .mb-form__row { grid-template-columns: 1fr; gap: 0; }
  .mb-form__row .mb-field { margin-top: 12px; }
}

/* Nothing jumps on tap where there is no pointer to hover with */
@media (hover: none) {
  .pola:hover { transform: rotate(var(--r)); box-shadow: 0 1px 2px rgba(41, 37, 34, .12), 0 16px 26px -16px rgba(41, 37, 34, .45); }
  .post:hover { transform: rotate(var(--r)); }
  .event:hover { transform: none; box-shadow: none; }
  .card:hover .card__media img { transform: none; }
  .d-next__link:hover .d-next__name { transform: none; }
}

/* Phones: the map carries the list's numbers instead of place names (see assets/js/mobile.js) */
@media (max-width: 760px) {
  .map-label, .map-leader { display: none; }
  .map-num {
    font: 700 150px var(--font-body);
    fill: var(--temple-slate);
    paint-order: stroke; stroke: var(--off-white); stroke-width: 26px; stroke-linejoin: round;
  }
  .map-num.is-active { fill: var(--limestone-ink); }
  .regions__svg { overflow: hidden; }
}

/* Touch screens (phone or tablet): there is no hover, so the regions list
   carries each district's photo and blurb instead of the map's preview card. */
@media (max-width: 1024px) and (hover: none) {
  .regions__map { order: -1; }
  .map-card { display: none; }           /* no hover on touch: the list carries the text */

  .regions__list { border-top: 0; display: grid; gap: 12px; }
  .regions__list li { border-bottom: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 rgba(26, 26, 26, .06), 0 14px 28px -20px rgba(26, 26, 26, .4); }
  .regions__list li.is-active a { padding-left: 112px; }
  .regions__list a { gap: 0; padding: 0; min-height: 0; align-items: stretch; }
  .regions__list a::before { display: none; }
  .regions__list a { position: relative; padding-left: 112px; }
  .regions__thumb { position: absolute; left: 0; top: 0; bottom: 0; width: 112px; height: 100%; object-fit: cover; background: var(--karst-shadow); }
  .regions__body { flex: 1; min-width: 0; padding: 13px 15px 15px; }
  .regions__body .regions__num { display: block; width: auto; margin-bottom: 2px; }
  .regions__list p {
    position: static; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal;
    margin: 4px 0 0; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--woven-charcoal);
  }

}
