*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--mist);
  font: 300 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
:lang(th) body, html:lang(th) body { line-height: 1.8; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: var(--track-head); text-transform: uppercase; }
h1 em, h2 em, h3 em { font-style: normal; }
strong, b { font-weight: 600; }
/* Small text and labels are Montserrat */
.nav, .kicker, .lang, .hero__meta, .hero__credit, .clip__badge, .clip figcaption, .chapter__n, .chapter__status, .chapter__go, .formats, .button, .map figcaption, .footer, .exhibit__steps li small { font-family: var(--font-display); font-weight: 500; }
html:lang(th) h1, html:lang(th) h2, html:lang(th) h3, html:lang(th) .nav__brand { line-height: 1.4; letter-spacing: 0; }
html:lang(th) .hero__title { letter-spacing: .02em; font-size: clamp(2.6rem, 9vw, 7rem); }
em { font-style: italic; }
p { margin: 0; }
a { color: inherit; }
img, svg, canvas, video { display: block; max-width: 100%; }

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--mist); color: var(--ink); padding: .5rem 1rem; }

.kicker {
  font: 600 .75rem/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--honey); display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
html:lang(th) .kicker { letter-spacing: .04em; font-size: .85rem; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; display: inline-block; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; font-size: .875rem;
  background: linear-gradient(#0c120ecc, #0c120e00);
}
.nav a { text-decoration: none; }
.nav__brand { font-weight: 700; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; }
.nav__brand span { opacity: .6; }
.nav__brand { white-space: nowrap; }
@media (max-width: 560px) { .nav { padding: .8rem 1rem; } .nav__brand { font-size: .68rem; letter-spacing: .12em; } .nav__right { gap: .75rem; } .nav__right > a { display: none; } }
.nav__right { display: flex; gap: 1.25rem; align-items: center; }
.lang { display: flex; border: 1px solid #ffffff33; border-radius: var(--radius); overflow: hidden; }
.lang button {
  all: unset; cursor: pointer; padding: .3rem .75rem; font-size: .8rem; color: var(--mist-dim);
}
.lang button[aria-pressed="true"] { background: var(--mist); color: var(--ink); }
.lang button:focus-visible, a:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero__pano, .hero__shade { position: absolute; inset: 0; }
.hero__pano canvas { width: 100%; height: 100%; }
.hero__shade { background: linear-gradient(#0c120e55 0%, #0c120e00 35%, #0c120ecc 85%, var(--night) 100%); pointer-events: none; }
.hero__content { position: relative; padding: 0 1.25rem 5.5rem; width: min(100%, var(--wide)); margin-inline: auto; pointer-events: none; }
.hero__title { font-size: clamp(1.9rem, 6.4vw, 5.6rem); font-weight: 600; letter-spacing: var(--track-title); line-height: 1.2; }
.hero__title em { color: var(--honey); }
.hero--series .hero__title { font-size: clamp(2.2rem, 8vw, 7rem); }
.hero__sub { font-size: clamp(1.15rem, 2.3vw, 1.6rem); max-width: 34ch; margin-top: 1.25rem; font-weight: 300; line-height: 1.45; }
.hero__meta { margin-top: 1.5rem; font-size: .85rem; color: var(--mist-dim); display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.hero__credit { position: absolute; right: 1.25rem; bottom: 1.25rem; font-size: .7rem; color: var(--mist-dim); opacity: .8; max-width: 40ch; text-align: right; }
.hero__hint { position: absolute; left: 1.25rem; bottom: 1.25rem; font-size: .7rem; color: var(--mist-dim); letter-spacing: .08em; text-transform: uppercase; }

/* Story: three large lines */
.story { padding: clamp(5rem, 14vh, 10rem) 0; }
.story__line {
  font-weight: 300; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.25;
  max-width: 22ch; margin-bottom: clamp(4rem, 16vh, 9rem);
}
html:lang(th) .story__line { line-height: 1.5; max-width: 26ch; }
.story__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; margin-bottom: clamp(4rem, 14vh, 8rem); }
.story__row .story__line { margin: 0; max-width: 20ch; }
.story__row:nth-of-type(even) .story__img { order: -1; }
.story__row:nth-of-type(2) .story__line { color: var(--honey); }
.story__img { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .story__row { grid-template-columns: 1fr; gap: 1.5rem; } .story__row:nth-of-type(even) .story__img { order: 0; } }
.story__line strong { font-weight: 400; color: #fff; }
.story__foot { margin-top: 2.5rem; color: var(--mist-dim); max-width: 46ch; font-size: .95rem; }

/* Sections */
.section { padding: clamp(4rem, 10vh, 7rem) 0; }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.section-head p:not(.kicker) { margin-top: 1rem; color: var(--mist-dim); max-width: 52ch; }

/* 360 gallery */
.clip-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.clip-grid .clip:first-child { grid-column: span 2; }
.clip-grid .clip:first-child .clip__pano { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .clip-grid { grid-template-columns: 1fr; } .clip-grid .clip:first-child { grid-column: auto; } .clip-grid .clip:first-child .clip__pano { aspect-ratio: 4 / 3; } }
.clip { margin: 0; }
.clip__pano { position: relative; aspect-ratio: 16 / 9; background: var(--canopy); border-radius: var(--radius); overflow: hidden; cursor: grab; touch-action: pan-y; }
.clip__pano:active { cursor: grabbing; }
.clip__pano canvas { width: 100%; height: 100%; }
.clip__badge { position: absolute; top: .75rem; left: .75rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; background: #0c120eaa; padding: .3rem .55rem; border-radius: 99px; pointer-events: none; }
.clip__badge--placeholder { color: var(--honey); }
.clip figcaption { margin-top: .6rem; font-size: .85rem; color: var(--mist-dim); display: flex; justify-content: space-between; gap: 1rem; }
.clip figcaption b { color: var(--mist); font-weight: 500; }

/* Exhibit: sticky scroll scene */
.exhibit { position: relative; height: 420vh; }
.exhibit__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.exhibit__canvas { position: absolute; inset: 0; }
.exhibit__canvas canvas { width: 100%; height: 100%; }
.exhibit__head { position: absolute; top: 5.5rem; left: 0; right: 0; pointer-events: none; }
.exhibit__head h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.exhibit__steps { position: absolute; left: 0; right: 0; bottom: 2.5rem; pointer-events: none; }
.exhibit__steps ol { list-style: none; margin: 0; padding: 0; position: relative; min-height: 6.5rem; }
.exhibit__steps li {
  position: absolute; inset: auto 0 0 0; max-width: 34ch; opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  font-weight: 300; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.35;
}
html:lang(th) .exhibit__steps li { line-height: 1.5; }
.exhibit__steps li.is-on { opacity: 1; transform: none; }
.exhibit__steps li small { display: block; font-size: .8rem; line-height: 1.5; color: var(--mist-dim); margin-top: .5rem; }
.exhibit__bar { position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%; width: 2px; height: 30vh; background: #ffffff22; }
.exhibit__bar span { display: block; width: 100%; height: 100%; background: var(--honey); transform-origin: top; transform: scaleY(0); }
.exhibit__note { position: absolute; right: 1.25rem; bottom: 1.25rem; font-size: .7rem; color: var(--mist-dim); opacity: .8; }

/* Home strip */
.home { display: grid; gap: 2rem; grid-template-columns: 1.2fr 1fr; align-items: center; border-top: 1px solid var(--moss); padding-top: 3rem; }
@media (max-width: 760px) { .home { grid-template-columns: 1fr; } }
.home h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin-bottom: .75rem; }
.home p { color: var(--mist-dim); max-width: 46ch; }
.formats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; font-size: .75rem; color: var(--mist-dim); text-align: center; }
.formats svg { width: 100%; height: auto; margin-bottom: .5rem; stroke: var(--mist); fill: none; stroke-width: 1.5; }
.formats .fill { fill: var(--honey); stroke: none; opacity: .85; }

/* Chapters */
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .chapters { grid-template-columns: 1fr; } }
.chapter {
  position: relative; border-radius: var(--radius); padding: 1.5rem; min-height: 19rem; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; isolation: isolate;
  background: linear-gradient(160deg, var(--c1), var(--c2)); transition: transform .4s var(--ease);
}
a.chapter:hover { transform: translateY(-4px); }
.chapter--forest { --c1: #3d5e36; --c2: #16241a; }
.chapter--ocean { --c1: #2c5f70; --c2: #10222a; }
.chapter--open { --c1: #1a2520; --c2: #111813; border: 1px dashed #ffffff33; }
.chapter__pano { position: absolute; inset: 0; z-index: -1; opacity: .55; }
.chapter__pano canvas { width: 100%; height: 100%; }
.chapter__pano::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 30%, #0c120ee6); }
.chapter__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.chapter:has(.chapter__img)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0c120e55, #0c120e10 35%, #0c120ee0 88%); }
a.chapter:hover .chapter__img { transform: scale(1.04); }
.chapter__n { position: absolute; top: 1.25rem; left: 1.5rem; font-size: .95rem; font-weight: 700; opacity: .8; }
.chapter__status { position: absolute; top: 1.25rem; right: 1.5rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid #ffffff55; border-radius: 99px; padding: .25rem .6rem; }
html:lang(th) .chapter__status, html:lang(th) .clip__badge { letter-spacing: .02em; font-size: .75rem; }
.chapter h3 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.chapter h3 em { color: var(--honey); }
.chapter p { margin-top: .5rem; color: var(--mist); opacity: .85; font-size: .95rem; }
.chapter__go { margin-top: 1rem; font-size: .85rem; color: var(--honey); }
.chapters--compact .chapter { min-height: 11rem; }

/* Map */
.map { margin: 0 0 2.5rem; }
.map__slot { border-radius: var(--radius); overflow: hidden; }
.map__slot:empty { display: none; }
.map__slot img { width: 100%; height: auto; }
.map figcaption { font-size: .75rem; color: var(--mist-dim); margin-top: .6rem; }
.map:has(.map__slot:empty) { display: none; }

#series-journey.is-inline { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.map-caption { font: 500 .75rem/1.5 var(--font-display); color: var(--mist-dim); margin-top: 1rem; }
.map-caption--credit { margin-top: .25rem; font-size: .68rem; opacity: .75; }

/* Credits + footer */
.credits { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--moss); padding-top: 2.5rem; }
@media (max-width: 760px) { .credits { grid-template-columns: 1fr; } }
.credits h3 { font: 600 .72rem/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--honey); margin-bottom: .75rem; }
html:lang(th) .credits h3 { letter-spacing: .03em; font-size: .85rem; }
.credits p { color: var(--mist-dim); font-size: .92rem; }
.credits p b { color: var(--mist); font-weight: 500; }
.credits__people p + p { margin-top: .9rem; }
.credits__list { margin: 0; padding-left: 1.1rem; color: var(--mist-dim); font-size: .92rem; }
.credits__list li + li { margin-top: .4rem; }
.credits__list li::marker { color: var(--honey); }
.button { display: inline-block; margin-top: .75rem; border: 1px solid var(--honey); color: var(--honey); border-radius: var(--radius); padding: .7rem 1.3rem; text-decoration: none; font-size: .85rem; letter-spacing: .02em; }
.button:hover { background: var(--honey); color: var(--ink); }
.makers { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; padding: 2.5rem 0; margin-bottom: 1.5rem; border-top: 1px solid var(--moss); border-bottom: 1px solid var(--moss); }
.makers__label { font: 600 .72rem/1 var(--font-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--honey); flex-basis: 100%; }
html:lang(th) .makers__label { letter-spacing: .03em; font-size: .85rem; }
.maker { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--mist); font: 700 .85rem/1.3 var(--font-display); letter-spacing: var(--track-head); text-transform: uppercase; }
.maker small { display: block; font-weight: 500; font-size: .7rem; color: var(--mist-dim); letter-spacing: .12em; margin-top: .2rem; }
.maker__logo { height: 4.5rem; width: auto; }
.maker__logo--ivar { filter: invert(1) brightness(1.15); }
a.maker:hover { color: var(--honey); }
.footer { padding: 2rem 0 3rem; font-size: .75rem; color: var(--mist-dim); }
.footer p { max-width: 70ch; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .exhibit { height: auto; }
  .exhibit__stage { position: relative; }
}
