/* =========================================================================
   CATEGORY & REGION THEMES
   Each taxonomy archive gets a unique, immersive hero. Designed for "feel
   the category" — floating-markets feels wet, night-markets feels neon,
   Bangkok feels riverine, Chiang Mai feels Lanna-mountain.
   ========================================================================= */

/* ---- base for all themed heroes ---------------------------------------- */
.theme-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 180px) 0 clamp(60px, 8vw, 120px);
  isolation: isolate;
}
.theme-hero .theme-hero__inner {
  position: relative;
  z-index: 5;
}
.theme-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 300;
  margin: 0;
}
.theme-hero .lede {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.4;
  font-weight: 350;
  font-variation-settings: "SOFT" 80;
  letter-spacing: -0.01em;
  max-width: 56ch;
  margin-top: var(--s-5);
}
.theme-hero .thai-display {
  font-family: "Charm", "Mali", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  margin-top: var(--s-4);
}
.theme-hero .stat-strip {
  margin-top: var(--s-7);
  display: flex; flex-wrap: wrap; gap: var(--s-6);
}
.theme-hero .stat-strip > div {
  display: flex; flex-direction: column;
}
.theme-hero .stat-strip strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}
.theme-hero .stat-strip span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* =========================================================================
   1.  FLOATING MARKETS — water, sampans, bamboo
   ========================================================================= */
.theme-hero--floating {
  background:
    linear-gradient(180deg, #e7f0eb 0%, #c6dcd1 60%, #a9c9bb 100%);
  color: var(--ink);
}
.theme-hero--floating::before {
  /* subtle rippling water sheen */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(13,93,77,0.18), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(13,93,77,0.12), transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.theme-hero--floating .water-band {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: 2;
  pointer-events: none;
}
.theme-hero--floating .wave-svg {
  position: absolute; left: 0; right: 0;
  width: 200%;
  height: 100%;
  animation: wave-drift 28s linear infinite;
}
.theme-hero--floating .wave-svg.is-back {
  opacity: 0.5; animation-duration: 40s; bottom: 30px;
}
.theme-hero--floating .wave-svg.is-mid {
  opacity: 0.75; animation-duration: 32s; animation-delay: -8s; bottom: 12px;
}
.theme-hero--floating .wave-svg.is-front {
  opacity: 1; bottom: 0;
}
@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.theme-hero--floating .sampan-fleet {
  position: absolute; left: 0; right: 0; bottom: 60px;
  height: 80px;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.theme-hero--floating .sampan {
  position: absolute;
  width: 130px;
  height: 60px;
  animation: sampan-drift 24s linear infinite;
}
.theme-hero--floating .sampan svg { width: 100%; height: 100%; display: block; }
.theme-hero--floating .sampan.is-2 { width: 90px; height: 42px; animation-duration: 30s; animation-delay: -10s; bottom: 28px; opacity: 0.85; }
.theme-hero--floating .sampan.is-3 { width: 70px; height: 32px; animation-duration: 36s; animation-delay: -20s; bottom: 42px; opacity: 0.7; }
@keyframes sampan-drift {
  0%   { transform: translateX(-160px) translateY(0); }
  50%  { transform: translateX(50vw) translateY(-4px); }
  100% { transform: translateX(110vw) translateY(0); }
}

.theme-hero--floating .bamboo {
  position: absolute; bottom: 0; width: 6px;
  background:
    linear-gradient(to right, transparent 0%, transparent 30%, #9c7a3a 40%, #7a5a2a 60%, transparent 70%, transparent 100%);
  border-radius: 3px;
  z-index: 4;
}
.theme-hero--floating .bamboo.l { left: 4%; height: 220px; }
.theme-hero--floating .bamboo.r { right: 6%; height: 260px; }

.theme-hero--floating h1 em { color: var(--emerald-deep); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* =========================================================================
   2.  NIGHT MARKETS — Yaowarat alley
   ========================================================================= */
.theme-hero--night {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,138,20,0.25), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(255,84,112,0.18), transparent 55%),
    linear-gradient(180deg, #0e0d10 0%, #1a0e16 100%);
  color: var(--paper);
}
.theme-hero--night h1 { color: var(--paper); }
.theme-hero--night h1 em { color: var(--neon-saffron); font-style: italic; text-shadow: 0 0 18px rgba(255,138,20,0.55); }
.theme-hero--night .lede { color: rgba(250,246,239,0.78); }
.theme-hero--night .thai-display { color: var(--neon-gold); text-shadow: 0 0 12px rgba(255,206,74,0.4); }
.theme-hero--night .stat-strip span { color: rgba(250,246,239,0.5); }
.theme-hero--night .stat-strip strong { color: var(--neon-gold); }

.theme-hero--night .night-lanterns {
  position: absolute; top: -10px; left: 0; right: 0; height: 130px;
  display: flex; justify-content: space-around; align-items: flex-start;
  z-index: 4; pointer-events: none;
}
.theme-hero--night .night-signs {
  position: absolute; right: 4%; top: 18%; bottom: 18%;
  width: 240px;
  display: flex; flex-direction: column; gap: 14px;
  z-index: 3;
  align-items: flex-end;
  pointer-events: none;
}
.theme-hero--night .ns {
  font-family: "Charm", "Mali", serif;
  padding: 10px 20px;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.04),
    0 0 14px currentColor,
    0 0 30px currentColor;
  transform: rotate(var(--rot, -2deg));
}
.theme-hero--night .ns:nth-child(1) { color: var(--neon-pink); --rot: -3deg; animation: neon-flicker 4.5s infinite; }
.theme-hero--night .ns:nth-child(2) { color: var(--neon-cyan); --rot: 2deg;  animation: neon-flicker 5.2s infinite; }
.theme-hero--night .ns:nth-child(3) { color: var(--neon-gold); --rot: -1deg; animation: neon-flicker 4.7s infinite; }
.theme-hero--night .ns:nth-child(4) { color: var(--neon-saffron); --rot: 3deg; animation: neon-flicker 5.0s infinite; }

.theme-hero--night .night-steam {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 200px; pointer-events: none; z-index: 2;
}
.theme-hero--night .night-steam svg { fill: rgba(255, 245, 230, 0.4); }

@media (max-width: 880px) { .theme-hero--night .night-signs { display: none; } }

/* =========================================================================
   3.  WEEKEND MARKETS — sunshine, bunting, Chatuchak crowd
   ========================================================================= */
.theme-hero--weekend {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(228, 174, 36, 0.4), transparent 55%),
    radial-gradient(ellipse at 10% 0%, rgba(255, 138, 20, 0.25), transparent 55%),
    linear-gradient(180deg, #fbeed3 0%, #f1d896 100%);
  color: var(--ink);
}
.theme-hero--weekend .sun {
  position: absolute; top: -120px; right: -60px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,206,74,0.7) 0%, rgba(255,206,74,0.0) 60%);
  filter: blur(8px);
  animation: sun-pulse 7s ease-in-out infinite;
  z-index: 1;
}
@keyframes sun-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.theme-hero--weekend .sun-rays {
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  z-index: 0;
  background: conic-gradient(from 0deg, rgba(255,206,74,0.15) 0deg 10deg, transparent 10deg 30deg, rgba(255,206,74,0.15) 30deg 40deg, transparent 40deg 60deg, rgba(255,206,74,0.15) 60deg 70deg, transparent 70deg 90deg);
  border-radius: 50%;
  animation: rays-rotate 60s linear infinite;
  filter: blur(4px);
  opacity: 0.6;
}
@keyframes rays-rotate { to { transform: rotate(360deg); } }

.theme-hero--weekend .bunting {
  position: absolute; top: 24px; left: 0; right: 0;
  height: 90px;
  display: flex; justify-content: center; align-items: flex-start;
  pointer-events: none;
  z-index: 4;
}
.theme-hero--weekend .bunting svg {
  width: 100%; height: 100%; max-width: 1400px;
  animation: bunting-sway 6s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes bunting-sway {
  0%, 100% { transform: skewY(-0.5deg); }
  50%      { transform: skewY(0.5deg); }
}

.theme-hero--weekend h1 em { color: var(--saffron-deep); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

.theme-hero--weekend .stamp-open {
  position: absolute; top: 12%; left: 4%;
  width: 130px; height: 130px;
  border: 3px solid var(--temple-red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: var(--temple-red);
  font-family: "Charm", "Mali", serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  text-align: center;
  transform: rotate(-12deg);
  z-index: 3;
  opacity: 0.85;
}
.theme-hero--weekend .stamp-open::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px dashed var(--temple-red); border-radius: 50%; opacity: 0.5;
}
.theme-hero--weekend .stamp-open strong { display: block; font-size: 1.6rem; line-height: 1; margin-top: 2px; }

@media (max-width: 880px) { .theme-hero--weekend .stamp-open { display: none; } }

/* =========================================================================
   4.  WALKING STREETS — pedestrian lantern stroll
   ========================================================================= */
.theme-hero--walking {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(224, 116, 16, 0.18), transparent 60%),
    linear-gradient(180deg, #3a261a 0%, #1d130d 100%);
  color: var(--paper);
}
.theme-hero--walking h1 { color: var(--paper); }
.theme-hero--walking h1 em { color: var(--saffron-light); font-style: italic; }
.theme-hero--walking .lede { color: rgba(250,246,239,0.78); }
.theme-hero--walking .thai-display { color: var(--gold-leaf); }
.theme-hero--walking .stat-strip strong { color: var(--saffron-light); }
.theme-hero--walking .stat-strip span { color: rgba(250,246,239,0.5); }

.theme-hero--walking .walking-strings {
  position: absolute; top: 0; left: 0; right: 0;
  height: 140px;
  z-index: 4;
  pointer-events: none;
}
.theme-hero--walking .walking-strings .lantern-string {
  position: absolute; top: 8px; height: 130px;
}
.theme-hero--walking .walking-strings .lantern-string:nth-child(2) {
  top: 60px; opacity: 0.65; transform: scaleX(-1);
}

.theme-hero--walking .footprint-trail {
  position: absolute; left: 0; right: 0; bottom: 24px;
  height: 60px;
  pointer-events: none; z-index: 3;
}
.theme-hero--walking .footprint-trail svg {
  width: 100%; height: 100%;
  opacity: 0.4;
  color: var(--saffron-light);
}

/* =========================================================================
   5.  FRESH MARKETS — pre-dawn wet market
   ========================================================================= */
.theme-hero--fresh {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(74, 132, 102, 0.18), transparent 55%),
    radial-gradient(ellipse at 20% 60%, rgba(156, 31, 42, 0.12), transparent 55%),
    linear-gradient(180deg, #e9eef0 0%, #cdd9dc 100%);
  color: var(--ink);
}
.theme-hero--fresh h1 em { color: var(--crimson); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.theme-hero--fresh .ice-grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(13,93,77,0.05) 60px 61px),
    repeating-linear-gradient(0deg, transparent 0 60px, rgba(13,93,77,0.05) 60px 61px);
  pointer-events: none;
  z-index: 0;
}
.theme-hero--fresh .ice-cubes {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.theme-hero--fresh .ice-cubes::before, .theme-hero--fresh .ice-cubes::after {
  content: ""; position: absolute;
  width: 80px; height: 80px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  box-shadow:
    -100px 60px 0 -10px rgba(255, 255, 255, 0.4),
    140px -30px 0 -15px rgba(255, 255, 255, 0.45),
    -200px 200px 0 -20px rgba(255, 255, 255, 0.3),
    300px 120px 0 -22px rgba(255, 255, 255, 0.35);
  transform: rotate(8deg);
  filter: blur(0.5px);
  opacity: 0.5;
}
.theme-hero--fresh .ice-cubes::before { top: 20%; left: 8%; }
.theme-hero--fresh .ice-cubes::after  { bottom: 12%; right: 6%; }

.theme-hero--fresh .fish-school {
  position: absolute; right: 4%; top: 28%;
  width: 240px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
}
.theme-hero--fresh .fish-school svg {
  display: block;
  animation: fish-swim 6s ease-in-out infinite;
}
.theme-hero--fresh .fish-school svg:nth-child(2) { transform: translate(20px, 40px) scale(0.7); animation-delay: -1s; }
.theme-hero--fresh .fish-school svg:nth-child(3) { transform: translate(-30px, 80px) scale(0.5); animation-delay: -2s; opacity: 0.7; }
@keyframes fish-swim {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-20px); }
}

/* =========================================================================
   6.  VINTAGE MARKETS — Rod Fai poster
   ========================================================================= */
.theme-hero--vintage {
  background:
    linear-gradient(180deg, #2a2018 0%, #1a120e 100%);
  color: var(--paper-warm);
  position: relative;
}
.theme-hero--vintage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,206,74,0.04) 3px 4px);
  pointer-events: none;
}
.theme-hero--vintage::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.theme-hero--vintage h1 { color: var(--gold-leaf); }
.theme-hero--vintage h1 em { color: var(--neon-pink); font-style: italic; }
.theme-hero--vintage .lede { color: rgba(250,246,239,0.78); }
.theme-hero--vintage .thai-display { color: var(--neon-gold); }
.theme-hero--vintage .stat-strip strong { color: var(--gold-leaf); }
.theme-hero--vintage .stat-strip span { color: rgba(250,246,239,0.5); }

.theme-hero--vintage .vespa {
  position: absolute; right: 4%; bottom: 8%;
  width: 220px;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}
.theme-hero--vintage .vinyl {
  position: absolute; left: 4%; top: 18%;
  width: 140px; height: 140px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, #1a1612 0 1px, #2a1f15 1px 5px),
    radial-gradient(circle at center, #1a1612 0%, #0a0805 100%);
  animation: vinyl-spin 6s linear infinite;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.theme-hero--vintage .vinyl::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--temple-red);
}
.theme-hero--vintage .vinyl::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
}
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
@media (max-width: 880px) { .theme-hero--vintage .vinyl, .theme-hero--vintage .vespa { display: none; } }

/* =========================================================================
   7.  FLOWER MARKETS — marigold storm + jasmine garland
   ========================================================================= */
.theme-hero--flower {
  background:
    radial-gradient(ellipse at 50% 10%, rgba(228, 174, 36, 0.4), transparent 60%),
    linear-gradient(180deg, #fef0e2 0%, #f7d6b3 50%, #c97b88 100%);
  color: var(--ink);
}
.theme-hero--flower h1 em { color: var(--temple-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

.theme-hero--flower .garland {
  position: absolute; top: 14px; left: 0; right: 0;
  height: 60px;
  z-index: 4;
  display: flex; justify-content: center;
  pointer-events: none;
}
.theme-hero--flower .garland svg {
  width: 90%; height: 100%; max-width: 1200px;
  animation: garland-sway 5s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes garland-sway {
  0%, 100% { transform: skewY(-0.7deg); }
  50%      { transform: skewY(0.7deg); }
}

.theme-hero--flower .flower-rain {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  overflow: hidden;
}

/* dense petal storm — 24 petals with random delays */
.theme-hero--flower .petals { z-index: 3; }
.theme-hero--flower .petals .petal:nth-child(odd) { transform: scale(1.15); }

.theme-hero--flower .clock {
  position: absolute; top: 14%; right: 6%;
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 2px solid var(--temple-red);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: var(--temple-red);
  font-family: "Charm", "Mali", serif;
  font-size: 1.6rem;
  font-weight: 700;
  transform: rotate(-6deg);
  z-index: 3;
  background: rgba(254, 240, 226, 0.6);
}
.theme-hero--flower .clock small {
  display: block; font-size: 9px; letter-spacing: 0.25em;
  text-transform: uppercase; font-family: var(--font-mono);
  font-weight: 500;
}
@media (max-width: 880px) { .theme-hero--flower .clock { display: none; } }

/* =========================================================================
   8.  RAILWAY MARKETS — Maeklong train choreography
   ========================================================================= */
.theme-hero--railway {
  background:
    linear-gradient(180deg, #f5edd9 0%, #e6d3a8 100%);
  color: var(--ink);
}
.theme-hero--railway h1 em { color: var(--temple-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.theme-hero--railway .tracks {
  position: absolute; left: 0; right: 0; bottom: 36px;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}
.theme-hero--railway .tracks::before,
.theme-hero--railway .tracks::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 4px; background: #5a4a3a;
}
.theme-hero--railway .tracks::before { top: 30px; }
.theme-hero--railway .tracks::after { top: 50px; }
.theme-hero--railway .ties {
  position: absolute; left: 0; right: 0;
  top: 26px; height: 32px;
  background: repeating-linear-gradient(to right,
    transparent 0 30px,
    rgba(90,74,58,0.5) 30px 38px);
  z-index: -1;
}

.theme-hero--railway .train {
  position: absolute; bottom: 36px;
  width: 320px; height: 100px;
  z-index: 3;
  animation: train-roll 22s linear infinite;
}
.theme-hero--railway .train svg { width: 100%; height: 100%; display: block; }
@keyframes train-roll {
  0%   { transform: translateX(-360px); }
  100% { transform: translateX(calc(100vw + 100px)); }
}

.theme-hero--railway .schedule-card {
  position: absolute; top: 14%; right: 6%;
  width: 220px; padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  z-index: 3;
  transform: rotate(2deg);
  box-shadow: 0 20px 30px -20px rgba(26,22,18,0.4);
}
.theme-hero--railway .schedule-card h4 {
  font-family: "Charm", "Mali", serif;
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--temple-red);
  margin-bottom: 8px;
  text-transform: none;
}
.theme-hero--railway .schedule-card div {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}
@media (max-width: 880px) { .theme-hero--railway .schedule-card { display: none; } }

/* =========================================================================
   REGION: BANGKOK — Chao Phraya + Wat Arun + Yaowarat
   ========================================================================= */
.theme-hero--bangkok {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(228, 174, 36, 0.5), transparent 55%),
    linear-gradient(180deg, #ffd49a 0%, #f49b5c 50%, #d97441 100%);
  color: var(--ink-night);
}
.theme-hero--bangkok h1 em { color: var(--temple-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.theme-hero--bangkok .lede { color: rgba(20, 17, 13, 0.78); }

.theme-hero--bangkok .skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 240px;
  z-index: 2;
  pointer-events: none;
}
.theme-hero--bangkok .skyline svg {
  width: 100%; height: 100%;
  display: block;
}

.theme-hero--bangkok .river-band {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 70px;
  z-index: 1;
  background:
    linear-gradient(180deg, #5a3520 0%, #3e2415 100%);
}
.theme-hero--bangkok .river-band::before {
  /* river ripple shimmer */
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255,206,74,0.18) 16px 18px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,206,74,0.1) 28px 30px);
  animation: river-shimmer 6s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes river-shimmer {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-8px); }
}

.theme-hero--bangkok .longtail {
  position: absolute; left: 0; bottom: 24px;
  width: 110px; height: 30px;
  z-index: 3;
  animation: longtail-drift 35s linear infinite;
}

@keyframes longtail-drift {
  0%   { transform: translateX(-160px); }
  100% { transform: translateX(calc(100vw + 50px)); }
}

/* =========================================================================
   REGION: NORTHERN THAILAND (CHIANG MAI) — Doi Suthep + Yi Peng lanterns
   ========================================================================= */
.theme-hero--north {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(228, 174, 36, 0.25), transparent 55%),
    linear-gradient(180deg, #1f2a3a 0%, #2a3d4f 50%, #3b5364 100%);
  color: var(--paper);
}
.theme-hero--north h1 { color: var(--paper); }
.theme-hero--north h1 em { color: var(--gold-leaf); font-style: italic; }
.theme-hero--north .lede { color: rgba(250,246,239,0.78); }
.theme-hero--north .thai-display { color: var(--gold-leaf); }
.theme-hero--north .stat-strip strong { color: var(--gold-leaf); }
.theme-hero--north .stat-strip span { color: rgba(250,246,239,0.5); }

.theme-hero--north .mountains {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 240px;
  z-index: 1;
  pointer-events: none;
}
.theme-hero--north .mountains svg { width: 100%; height: 100%; display: block; }

.theme-hero--north .mountain-mist {
  position: absolute; left: 0; right: 0; bottom: 80px;
  height: 80px;
  z-index: 2;
  background: linear-gradient(to top, rgba(250,246,239,0.25), transparent);
  filter: blur(8px);
}

.theme-hero--north .yipeng {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  overflow: hidden;
}
.theme-hero--north .lantern-yi {
  position: absolute;
  width: 28px; height: 38px;
  bottom: -50px;
  animation: yipeng-rise linear infinite;
}
.theme-hero--north .lantern-yi svg { width: 100%; height: 100%; }
@keyframes yipeng-rise {
  0%   { transform: translate3d(0, 0, 0) rotate(-3deg); opacity: 0; }
  10%  { opacity: 0.9; }
  100% { transform: translate3d(20px, -120vh, 0) rotate(3deg); opacity: 0.2; }
}
.theme-hero--north .lantern-yi:nth-child(1)  { left: 6%;  animation-duration: 20s; animation-delay: -2s; }
.theme-hero--north .lantern-yi:nth-child(2)  { left: 14%; animation-duration: 24s; animation-delay: -8s; transform: scale(1.1); }
.theme-hero--north .lantern-yi:nth-child(3)  { left: 22%; animation-duration: 22s; animation-delay: -14s; transform: scale(0.85); }
.theme-hero--north .lantern-yi:nth-child(4)  { left: 31%; animation-duration: 26s; animation-delay: -5s; }
.theme-hero--north .lantern-yi:nth-child(5)  { left: 40%; animation-duration: 23s; animation-delay: -11s; transform: scale(1.05); }
.theme-hero--north .lantern-yi:nth-child(6)  { left: 50%; animation-duration: 21s; animation-delay: -17s; }
.theme-hero--north .lantern-yi:nth-child(7)  { left: 58%; animation-duration: 25s; animation-delay: -3s; transform: scale(0.95); }
.theme-hero--north .lantern-yi:nth-child(8)  { left: 67%; animation-duration: 19s; animation-delay: -12s; transform: scale(1.1); }
.theme-hero--north .lantern-yi:nth-child(9)  { left: 76%; animation-duration: 27s; animation-delay: -7s; transform: scale(0.8); }
.theme-hero--north .lantern-yi:nth-child(10) { left: 85%; animation-duration: 22s; animation-delay: -15s; transform: scale(1); }
.theme-hero--north .lantern-yi:nth-child(11) { left: 92%; animation-duration: 24s; animation-delay: -9s; transform: scale(0.9); }

.theme-hero--north .lanna-corner {
  position: absolute; top: 14%; right: 6%;
  width: 80px; opacity: 0.4;
  z-index: 2;
  color: var(--gold-leaf);
}

/* =========================================================================
   REGION: SOUTHERN THAILAND — Sino-Portuguese pastel + karst
   ========================================================================= */
.theme-hero--south {
  background:
    linear-gradient(180deg, #f7e2cd 0%, #f0c499 60%, #e08c5a 100%);
  color: var(--ink);
}
.theme-hero--south h1 em { color: var(--temple-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

.theme-hero--south .shophouses {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 280px;
  z-index: 2;
  pointer-events: none;
}
.theme-hero--south .shophouses svg { width: 100%; height: 100%; display: block; }

.theme-hero--south .karst {
  position: absolute; left: -50px; bottom: 240px;
  width: 60%; max-width: 600px;
  opacity: 0.4;
  z-index: 1;
}

/* =========================================================================
   REGION: CENTRAL THAILAND — Ayutthaya chedi at dusk
   ========================================================================= */
.theme-hero--central {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 138, 20, 0.35), transparent 55%),
    linear-gradient(180deg, #f3d9a8 0%, #c08d5a 60%, #6f4124 100%);
  color: var(--ink-night);
}
.theme-hero--central h1 em { color: var(--temple-red); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

.theme-hero--central .chedi {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 280px;
  z-index: 2;
  pointer-events: none;
}
.theme-hero--central .chedi svg { width: 100%; height: 100%; display: block; }

/* =========================================================================
   REGION: EASTERN THAILAND — Pattaya beach + neon
   ========================================================================= */
.theme-hero--east {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(255, 84, 112, 0.3), transparent 55%),
    radial-gradient(ellipse at 30% 30%, rgba(255, 206, 74, 0.25), transparent 50%),
    linear-gradient(180deg, #ff8b6e 0%, #c87268 40%, #6a3a5b 100%);
  color: var(--paper);
}
.theme-hero--east h1 { color: var(--paper); }
.theme-hero--east h1 em { color: var(--neon-gold); font-style: italic; text-shadow: 0 0 18px rgba(255,206,74,0.5); }
.theme-hero--east .lede { color: rgba(250,246,239,0.78); }
.theme-hero--east .thai-display { color: var(--neon-gold); }
.theme-hero--east .stat-strip strong { color: var(--paper); }
.theme-hero--east .stat-strip span { color: rgba(250,246,239,0.5); }

.theme-hero--east .palms {
  position: absolute; left: 4%; bottom: 0;
  width: 240px; height: 280px;
  z-index: 2;
  pointer-events: none;
}
.theme-hero--east .palms svg { width: 100%; height: 100%; display: block; }
.theme-hero--east .horizon {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}
.theme-hero--east .horizon::before {
  /* sea sparkle */
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(255,255,255,0.12) 20px 21px);
}

/* =========================================================================
   Section "intro narrator" — sits below themed hero
   ========================================================================= */
.theme-intro {
  padding: var(--s-7) 0;
  background: var(--paper);
}
.theme-intro__inner {
  max-width: 920px; margin: 0 auto; padding: 0 var(--s-5);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-variation-settings: "SOFT" 80;
  font-style: italic;
}
.theme-intro__inner p { max-width: none; }
.theme-intro__inner p::first-letter {
  font-family: "Charm", "Mali", serif;
  float: left;
  font-size: 4.4rem;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--temple-red);
  font-style: normal;
}

/* Print: hide animated layers */
@media print {
  .theme-hero .water-band, .theme-hero .sampan-fleet,
  .theme-hero .night-lanterns, .theme-hero .night-steam,
  .theme-hero .sun, .theme-hero .sun-rays, .theme-hero .bunting,
  .theme-hero .walking-strings, .theme-hero .train,
  .theme-hero .skyline, .theme-hero .mountains, .theme-hero .yipeng,
  .theme-hero .palms, .theme-hero .shophouses, .theme-hero .chedi,
  .theme-hero .vespa, .theme-hero .vinyl, .theme-hero .fish-school,
  .theme-hero .garland, .theme-hero .stamp-open, .theme-hero .clock,
  .theme-hero .schedule-card { display: none !important; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .theme-hero *[class*="animation"], .theme-hero svg,
  .theme-hero .wave-svg, .theme-hero .sampan, .theme-hero .train,
  .theme-hero .yipeng *, .theme-hero .vinyl, .theme-hero .sun {
    animation: none !important;
  }
}
