/* Lanna Elephant Care, round 3: "A day at Lanna" */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic-var.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-var.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg: #DCE3DA; --ink: #15231B; --soft: #43534A; --accent: #93520C;
  --rule: color-mix(in srgb, var(--ink) 18%, transparent);
  --sun: #E8A93A; --sun-ink: #15231B; --forest: #0F2219; --paper: #F6EFDD;

  --m: clamp(20px, 6.1vw, 88px);
  --g: clamp(14px, 1.7vw, 24px);
  --col: calc((100vw - 2 * var(--m) - 11 * var(--g)) / 12);
  --cross: clamp(72px, 9vw, 128px);
  --hdr: 68px;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --t-display: clamp(3.4rem, 0.2rem + 8.7vw, 10.25rem);
  --t-h2: clamp(2.3rem, 0.9rem + 4.2vw, 5.4rem);
  --t-read: clamp(1.12rem, 1rem + .42vw, 1.34rem);
  --t-body: clamp(1rem, .96rem + .18vw, 1.1rem);
  --t-cap: .98rem;

  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}
.tone--morning { --bg: #DCE3DA; --ink: #15231B; --soft: #43534A; --accent: #93520C; }
.tone--midday { --bg: #F4EEDF; --ink: #1E1C15; --soft: #514A3B; --accent: #9C5507; }
.tone--afternoon { --bg: #EBCF98; --ink: #271A0B; --soft: #55402A; --accent: #80340A; }
.tone--dusk, .hdr.is-dusk { --bg: #0F2219; --ink: #EEE6D2; --soft: #B5BCAA; --accent: #E8A93A; --rule: color-mix(in srgb, #EEE6D2 18%, transparent); }
.daylight .tone--morning, .daylight .tone--midday, .daylight .tone--afternoon { --bg: inherit; --ink: inherit; --soft: inherit; --accent: inherit; background: transparent; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-text); font-size: var(--t-body); line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url("../img/grain.png") repeat; background-size: 192px; opacity: .42; mix-blend-mode: soft-light; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p, h1, h2, h3, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--sun); color: var(--sun-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }
.tone { background: var(--bg); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding-inline: var(--m); position: relative; z-index: 2; }

/* ---------- type ---------- */
.display, .h2, .big, .lede, .pull blockquote, .rv__list blockquote, .names__n, .foot__name, .brand__name, .story__pull, .owner blockquote, .cap--it {
  font-family: var(--f-display); font-optical-sizing: auto;
}
.display { font-size: var(--t-display); line-height: .88; letter-spacing: -.034em; font-weight: 320; text-wrap: balance; }
.h2 { font-size: var(--t-h2); line-height: .95; letter-spacing: -.028em; font-weight: 320; text-wrap: balance; }
.display em, .h2 em { color: var(--accent); font-weight: 340; letter-spacing: -.02em; padding-right: .04em; font-style: italic; }
.big, .lede { font-size: var(--t-read); line-height: 1.46; font-weight: 350; letter-spacing: -.004em; max-width: 31em; text-wrap: pretty; }
.lede { color: var(--soft); }
.cap, .kicker, .ch__label, dt {
  font-family: var(--f-text); font-size: var(--t-cap); line-height: 1.4; font-weight: 600;
  font-variant-caps: all-small-caps; font-feature-settings: "smcp", "c2sc"; letter-spacing: .09em; color: var(--soft);
}
.cap { display: block; }
.cap--it { font-variant-caps: normal; font-feature-settings: normal; font-style: italic; font-weight: 360; letter-spacing: 0; font-size: 1.05rem; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.hang { margin-left: -.42em; }

.kicker { display: flex; gap: .9em; align-items: center; flex-wrap: wrap; }
.kicker span { white-space: nowrap; }
.kicker span + span::before { content: ""; display: inline-block; width: 1.6em; height: 1px; background: currentColor; opacity: .5; vertical-align: middle; margin-right: .9em; }

.ch__label { display: inline-flex; align-items: baseline; gap: .55em; margin-bottom: clamp(14px, 1.6vw, 24px); color: var(--ink); }
.ch__label::after { content: ""; width: 2.4em; height: 1px; background: currentColor; opacity: .35; align-self: center; }
.ch__no { font-family: var(--f-display); font-variant-caps: normal; font-feature-settings: normal; font-style: italic; font-weight: 400; font-size: 1.55em; letter-spacing: 0; color: var(--accent); line-height: 1; }

/* ---------- buttons ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; }
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 50px; padding: 0 1.45em; border-radius: 999px; font: 600 1rem/1 var(--f-text); text-decoration: none; transition: transform .25s var(--ease-out), background-color .25s, opacity .3s; }
.btn--sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 24px -14px rgba(120,70,0,.55); }
.btn--sun:hover { background: #F1BA55; transform: translateY(-1px); }
.btn--sun:focus-visible { outline-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: .95rem; }
.link-down, .link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); padding: .35em 0; }
.link-down:hover, .link-arrow:hover { border-color: var(--accent); }
.link-down .ic { transition: transform .3s var(--ease-out); }
.link-down:hover .ic { transform: translateY(3px); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); transition: background-color .4s var(--ease-soft), box-shadow .4s; }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding-inline: var(--m); }
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 var(--rule); }
html:not(.js) .hdr { position: sticky; background: var(--bg); box-shadow: 0 1px 0 var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; color: var(--ink); }
.brand__name { font-size: 1.28rem; letter-spacing: -.015em; font-weight: 400; white-space: nowrap; }
.nav { margin-left: auto; }
.hdr__book { transition: opacity .3s, transform .3s; }
.book-seen .hdr__book { opacity: 0; pointer-events: none; transform: translateY(-6px); }
.nav ul { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: .4em 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--accent); }
.nav__tel a { font-variant-numeric: tabular-nums; color: var(--soft); }
.menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero__stage { position: relative; min-height: min(100svh, 1080px); overflow: hidden; }
.hero__plate:focus { outline: none; }
.hero__plate { position: absolute; z-index: 1; top: calc(var(--hdr) + 14px); bottom: 24px; right: 0; left: calc(var(--m) + 3.55 * (var(--col) + var(--g))); background: #6b5b45; overflow: hidden; border-radius: 3px 0 0 3px; }
.hero__img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 28%; }
.hero__video { opacity: 0; transition: opacity .6s var(--ease-soft); }
.hero__video.is-on { opacity: 1; }
.hero__mist { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 12%, color-mix(in srgb, var(--bg) 55%, transparent) 26%, color-mix(in srgb, var(--bg) 0%, transparent) 42%),
  linear-gradient(0deg, rgba(20,24,16,.5) 0%, rgba(20,24,16,0) 24%); }
.hero__beats { position: absolute; right: var(--m); bottom: 30px; text-align: right; color: var(--paper); font-family: var(--f-display); font-style: italic; font-size: clamp(1.05rem, .9rem + .4vw, 1.3rem); text-shadow: 0 1px 14px rgba(0,0,0,.45); height: 1.6em; width: 60%; }
.hero__beats li { position: absolute; right: 0; bottom: 0; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease-out); white-space: nowrap; }
.hero__beats li.is-on { opacity: 1; transform: none; }
.hero__replay { position: absolute; left: clamp(160px, 22%, 300px); bottom: 24px; z-index: 3; display: inline-flex; align-items: center; gap: .45em; min-height: 38px; padding: 0 1em; border: 1px solid rgba(246,239,221,.55); border-radius: 999px; background: rgba(20,24,16,.28); color: var(--paper); font: 600 .9rem/1 var(--f-text); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s, background-color .25s; }
.hero__replay.is-on { opacity: 1; }
.hero__replay:hover { background: rgba(20,24,16,.5); }
.hero__replay:focus-visible { outline-color: var(--sun); }
.hero__replay[hidden] { display: none; }

.hero__grid { position: relative; z-index: 2; min-height: min(100svh, 1080px); grid-template-rows: auto auto 1fr auto; align-items: start; padding-top: calc(var(--hdr) + clamp(20px, 3.2vh, 40px)); padding-bottom: 26px; pointer-events: none; }
.hero__grid > * { pointer-events: auto; }
.hero__kicker { grid-column: 1 / 6; grid-row: 1; margin-bottom: clamp(14px, 2.6vh, 30px); }
.hero__title { grid-column: 1 / 9; grid-row: 2; margin-left: -.055em; font-size: clamp(3.4rem, min(11.8vw, 18vh), 12.5rem); line-height: .85; letter-spacing: -.04em; }
.hero__title .ln { display: block; }
.hero__copy { grid-column: 1 / 5; grid-row: 3; padding-top: clamp(18px, 2.8vh, 34px); }
.hero__copy .lede { max-width: 24em; color: var(--ink); font-size: clamp(1.05rem, .9rem + .3vw, 1.2rem); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: clamp(16px, 2.4vh, 26px); }
.hero__facts { grid-column: 1 / 5; grid-row: 4; }

.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); border-top: 1px solid var(--rule); }
.ledger > div { padding: 12px 0 0; display: flex; flex-direction: column; gap: 2px; }
.ledger dd { font-size: .98rem; line-height: 1.3; }
.ledger dd .num { font-family: var(--f-display); font-size: 1.4em; font-weight: 360; letter-spacing: -.02em; line-height: 1; }
.hero__facts > div + div { border-left: 1px solid var(--rule); padding-left: 14px; }
.hero__facts { grid-template-columns: 1.25fr 1fr .95fr; }
.hero__facts dd { white-space: nowrap; font-size: .92rem; }


@media (min-width: 900px) and (max-height: 760px), (min-width: 900px) and (max-width: 1240px) {
  .hero__facts { display: none; }
}
@media (min-width: 900px) and (max-width: 1240px) {
  .hero__copy { grid-column: 1 / 6; }
}
/* ---------- plates ---------- */
.plate { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 12%, var(--bg)); }
.plate__img { width: 100%; height: 100%; object-fit: cover; }
.plate--arrive { aspect-ratio: 3 / 2; border-radius: 3px 0 0 3px; }
.plate--arrive .plate__img { object-position: 50% 45%; }
.plate--walk { aspect-ratio: 2048 / 1072; border-radius: 3px 0 0 3px; }
.plate--wade { aspect-ratio: 1200 / 640; border-radius: 3px; }
.plate--arch { aspect-ratio: 3 / 4; border-radius: 50% 50% 4px 4px / 37.5% 37.5% 4px 4px; }
.plate--bleed { aspect-ratio: 2048 / 932; width: 100%; max-height: 80svh; }
.plate--left { aspect-ratio: 16 / 10.4; border-radius: 0 3px 3px 0; }
.plate--left .plate__img { object-position: 36% 50%; }
.plate--right { aspect-ratio: 4 / 3; border-radius: 3px; }
.plate--right .plate__img { object-position: 52% 40%; }

/* ---------- chapters ---------- */
.day { position: relative; }
.ch { position: relative; padding-top: var(--cross); padding-bottom: clamp(24px, 3vw, 48px); }
.ch__head { grid-column: 2 / 8; }

.pull blockquote { font-style: italic; font-size: clamp(1.4rem, 1rem + 1.1vw, 2.05rem); line-height: 1.2; letter-spacing: -.012em; font-weight: 330; text-wrap: pretty; }
.pull--small blockquote { font-size: clamp(1.22rem, 1rem + .6vw, 1.55rem); line-height: 1.27; }
.pull { border-top: 1px solid var(--rule); padding-top: 20px; }
.pull figcaption { margin-top: 12px; }

/* 01 arrive */
.ch--meet { padding-top: clamp(28px, 3.4vw, 56px); }
.ch--meet .ch__head { grid-column: 2 / 7; grid-row: 1; align-self: center; }
.meet__text { margin-top: clamp(20px, 2.4vw, 34px); }
.meet__fig { grid-column: 7 / -1; grid-row: 1; margin-right: calc(-1 * var(--m)); }
.meet__fig .cap { padding-right: var(--m); }
.cap--side { margin-top: 10px; text-align: right; }

/* 02 feed */
.feed__top { align-items: end; margin-bottom: clamp(28px, 3.4vw, 52px); }
.feed__head { grid-column: 2 / 7; }
.feed__text { grid-column: 8 / 12; padding-bottom: .4em; }
.feed__fig { position: relative; z-index: 2; }
.feed__fig .plate__img { object-position: 40% 55%; }
.feed__after { margin-top: clamp(20px, 2.4vw, 36px); align-items: start; }
.feed__pull { grid-column: 2 / 9; }
.feed__cap { grid-column: 10 / -1; color: var(--soft); text-align: right; }

/* 03 walk */
.ch--walk { padding-top: 72px; }
.walk__head { grid-column: 2 / 9; grid-row: 1; }
.walk__title { font-size: calc(var(--t-display) * .74); }
.walk__title .ln { display: block; }
.walk__l2 { padding-left: calc(2 * (var(--col) + var(--g))); }
.walk__pull { grid-column: 9 / -1; grid-row: 1; align-self: end; margin-bottom: .6em; }
.walk__text { grid-column: 2 / 6; grid-row: 2; align-self: start; margin-top: clamp(56px, 7vw, 110px); }
.walk__fig { grid-column: 6 / -1; grid-row: 2; margin-top: clamp(28px, 3.4vw, 56px); margin-right: calc(-1 * var(--m)); }
.walk__fig .cap { margin-top: 10px; color: var(--soft); }

/* 04 river */
.river__grid { align-items: end; }
.river__fig { grid-column: 1 / 9; grid-row: 1; margin-left: calc(-1 * var(--m)); }
.river__col { grid-column: 9 / -1; grid-row: 1; padding-left: clamp(8px, 1vw, 20px); }
.river__col .ch__head { grid-column: auto; }
.river__col .big { margin-top: clamp(16px, 2vw, 28px); }
.river__small { margin-top: clamp(18px, 2vw, 28px); }
.river__cap { margin-top: 10px; }

/* 05 ask */
.story__head { grid-column: 2 / 7; grid-row: 1; }
.story__text { grid-column: 2 / 7; grid-row: 2; margin-top: clamp(18px, 2vw, 30px); }
.story__fig { grid-column: 8 / -1; grid-row: 1 / 3; align-self: start; margin-top: clamp(8px, 2vw, 40px); }
.story__note { display: grid; gap: 8px; margin-top: 14px; max-width: 32em; }
.story__pull { font-style: italic; font-size: clamp(1.15rem, 1rem + .45vw, 1.4rem); line-height: 1.3; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink); }
.names { margin-top: clamp(22px, 2.6vw, 36px); border-top: 1px solid var(--rule); }
.names li { display: grid; grid-template-columns: 4.2em 1fr; column-gap: 18px; row-gap: 2px; padding: 14px 0 15px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.names__n { grid-row: 1 / 3; font-size: clamp(1.9rem, 1.4rem + .9vw, 2.3rem); font-style: italic; font-weight: 360; line-height: 1; letter-spacing: -.02em; }
.names__q { font-size: 1.06rem; line-height: 1.35; color: var(--ink); }
.names__by { font-size: .86rem; }

/* 06 goodbye */
.ch--bye { padding-bottom: clamp(24px, 3vw, 48px); }
.bye__fig { grid-column: 2 / 6; grid-row: 1; }
.bye__cap { margin-top: 10px; text-align: center; color: var(--soft); }
.bye__col { grid-column: 7 / 12; grid-row: 1; align-self: center; }
.bye__col .ch__head { grid-column: auto; }
.bye__col .big { margin-top: clamp(18px, 2vw, 28px); }
.bye__col .pull { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- route (built by JS) ---------- */
.route { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.route__ghost { fill: none; stroke: var(--ink); stroke-opacity: .2; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 0 7; }
.route__trail, .route__spur { fill: none; stroke: var(--ink); stroke-opacity: .82; stroke-width: 2.3; stroke-linecap: round; stroke-dasharray: 0 7; }
.route__foot { color: var(--accent); }
.route--thin .route__ghost, .route--thin .route__spur { display: none; }
.route--thin .route__trail { stroke-width: 1; stroke-dasharray: none; stroke-opacity: .32; }
.route--thin .route__foot { display: none; }

/* ---------- dusk: the ridgeline photo fades in from the page colour and out into forest ---------- */
.dusk { position: relative; height: clamp(260px, 33vw, 560px); margin-bottom: -2px; overflow: hidden; z-index: 1; }
.dusk img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.dusk::before, .dusk::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.dusk::before { background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 14%, transparent 42%); }
.dusk::after { background: linear-gradient(180deg, transparent 52%, rgba(15,34,25,.55) 76%, #0F2219 100%); }
html:not(.daylight) .dusk::before { background: linear-gradient(180deg, #EBCF98 0%, rgba(235,207,152,.7) 14%, transparent 42%); }

/* ---------- reviews (dusk) ---------- */
.reviews { padding-top: clamp(24px, 3vw, 48px); padding-bottom: clamp(36px, 4vw, 64px); }
.rv__head { grid-column: 1 / 8; grid-row: 1; }
.rv__side { grid-column: 9 / -1; grid-row: 1; align-self: end; padding-bottom: .6em; }
.rv__title { margin-top: 4px; font-size: clamp(2.3rem, .9rem + 4vw, 5rem); }
.rv__title em { font-size: 1.16em; }
.rv__tags { line-height: 1.75; }
.rv__side .link-arrow { margin-top: 14px; }
.rv__list { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--rule); }
.rv__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rv__by { grid-column: 1 / 4; line-height: 1.5; }
.rv__row blockquote { grid-column: 4 / 12; font-size: clamp(1.25rem, .95rem + .9vw, 1.85rem); line-height: 1.28; font-weight: 330; letter-spacing: -.01em; text-wrap: pretty; }
.rv__row--lead blockquote { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.55rem); line-height: 1.18; letter-spacing: -.018em; }

/* ---------- visit (dusk) ---------- */
.visit { padding-block: clamp(20px, 3vw, 48px) clamp(24px, 3vw, 48px); }
.visit__head { grid-column: 1 / 7; margin-bottom: clamp(28px, 3.4vw, 48px); }
.visit__list { grid-column: 1 / 7; grid-template-columns: 1fr; }
.ledger--rows > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 20px; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.ledger--rows dd { font-size: 1.05rem; max-width: 34em; }
.ledger--rows .is-note dd, .ledger--rows .is-note dt { color: var(--accent); }
.map { grid-column: 8 / -1; grid-row: 1 / 3; align-self: stretch; display: flex; }
.map__link { display: flex; flex-direction: column; text-decoration: none; width: 100%; }
.map__svg { width: 100%; height: auto; flex: 1; min-height: 0; color: var(--ink); }
.map__contours path { stroke-opacity: .16; stroke-width: 1.1; }
.map__ghost { fill: none; stroke: var(--ink); stroke-opacity: .2; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 10; }
.map__route { fill: none; stroke: var(--sun); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 10; }
.map__dot { fill: var(--ink); }
.map__ring { fill: var(--bg); stroke: var(--ink); stroke-width: 1.6; }
.map__halo { fill: var(--sun); fill-opacity: .16; }
.map__pin { color: var(--sun); --bg: #0F2219; }
.map__lbl { fill: var(--ink); font: 400 20px var(--f-display); }
.map__lbl--s { font: 600 14px var(--f-text); letter-spacing: .08em; text-transform: uppercase; fill: var(--soft); }
.map__lbl--it { font: italic 400 17px var(--f-display); fill: var(--soft); }
.map__lbl--xs { font: 600 12px var(--f-text); letter-spacing: .1em; text-transform: uppercase; fill: var(--soft); opacity: .8; }
.map__cta { align-self: flex-start; margin-top: 14px; }
.btn--line { border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); color: var(--ink); }
.map__link:hover .btn--line { border-color: var(--accent); }

/* ---------- closing ---------- */
.closing { position: relative; overflow: hidden; padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(64px, 8vw, 128px); }
.closing__media { position: relative; height: clamp(360px, 54vw, 800px); }
.closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.closing__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,34,25,0) 52%, rgba(15,34,25,.62) 80%, #0F2219 100%); }
.closing__in { width: 100%; margin-top: calc(-1 * clamp(64px, 8vw, 140px)); align-items: end; }
.closing__title { grid-column: 1 / 9; color: var(--paper); }
.closing__title .ln { display: block; }
.closing__title .ln + .ln { padding-left: calc(1 * (var(--col) + var(--g))); }
.closing__side { grid-column: 9 / -1; padding-bottom: .4em; }
.closing__lede { color: var(--ink); font-size: 1.2rem; }
.closing__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; }
.owner { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.owner blockquote { font-style: italic; font-size: 1.12rem; line-height: 1.35; }
.owner .cap { margin-top: 8px; }

/* ---------- footer ---------- */
.foot { padding-block: clamp(48px, 5vw, 80px) 28px; border-top: 1px solid var(--rule); }
.foot__grid { row-gap: 32px; }
.foot__brand { grid-column: 1 / 5; display: flex; gap: 18px; align-items: center; }
.foot__mark { width: 76px; height: 76px; color: var(--ink); }
.foot__name { font-size: 1.6rem; letter-spacing: -.02em; }
.foot__thai { color: var(--soft); font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif; line-height: 1.8; }
.foot__col { grid-column: span 2; }
.foot__col:nth-of-type(2) { grid-column: 6 / 8; }
.foot__col h2 { margin-bottom: 10px; }
.foot__col p + p { margin-top: 8px; }
.foot__col a { text-decoration-color: var(--rule); }
.foot__base { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 18px; color: var(--soft); font-size: .92rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.bookbar { display: none; }

/* ---------- motion (site.js present, no reduced motion) ---------- */
.motion .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; padding-right: .08em; }
.motion .ln > span { display: inline-block; transform: translateY(108%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.motion .is-in .ln > span { transform: none; }
.motion .rise { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-soft), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.motion .rise.is-in { opacity: 1; transform: none; }
.motion .draw { position: relative; border-top-color: transparent; }
.motion .draw::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--rule); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.3s var(--ease-out); }
.motion .draw > * { opacity: 0; transition: opacity 1s var(--ease-soft) .35s; }
.motion .draw.is-in::before { transform: none; }
.motion .draw.is-in > * { opacity: 1; }
/* varied plate entrances */
.motion .in-rise .plate { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-soft), transform 1.4s var(--ease-out); }
.motion .in-wipe .plate { clip-path: inset(0 50% 0 50%); transition: clip-path 1.6s var(--ease-out); }
.motion .in-wipe-l .plate { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s var(--ease-out); }
.motion .in-wipe-r .plate { clip-path: inset(0 0 0 100%); transition: clip-path 1.5s var(--ease-out); }
.motion .in-fade .plate { opacity: 0; transition: opacity 1.6s var(--ease-soft); }
.motion .in-arch .plate { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-out); }
.motion .is-in .plate { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .nav__tel { display: none; } }
@media (max-width: 899px) {
  :root { --hdr: 60px; --cross: clamp(64px, 16vw, 96px); }
  .grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .hdr__in { gap: 10px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.08rem; }
  .hide-sm { display: none; }
  .hdr__book { padding: 0 1em; margin-left: auto; transition: opacity .3s, transform .3s; }
  .bar-on .hdr__book, .book-seen .hdr__book { opacity: 0; pointer-events: none; transform: translateY(-6px); }
  .rv__side { margin-top: 18px; }
  .menu { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
  .menu__bars, .menu__bars::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s; }
  .menu__bars::before { content: ""; position: absolute; top: 5px; }
  .menu__bars { transform: translateY(-2.5px); }
  .menu[aria-expanded="true"] .menu__bars { transform: rotate(45deg); }
  .menu[aria-expanded="true"] .menu__bars::before { transform: translateY(-5px) rotate(-90deg); }
  .nav { position: fixed; inset: var(--hdr) 0 auto; background: var(--bg); padding: 8px var(--m) 24px; box-shadow: 0 1px 0 var(--rule), 0 20px 30px -20px rgba(0,0,0,.25); display: none; margin: 0; }
  .js .nav.is-open { display: block; }
  html:not(.js) .nav { position: static; display: block; box-shadow: none; padding: 0; background: none; }
  html:not(.js) .hdr__in { flex-wrap: wrap; height: auto; padding-block: 10px; }
  html:not(.js) .menu { display: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.15rem; font-family: var(--f-display); }
  .nav__tel { display: block; }

  /* hero on phones: headline, then the plate (clip plays once), then copy */
  .hero__stage { min-height: 0; display: flex; flex-direction: column; padding-top: calc(var(--hdr) + 16px); padding-bottom: 40px; }
  .hero__grid { display: contents; }
  .hero__kicker, .hero__title, .hero__copy, .hero__facts { padding-inline: var(--m); }
  .hero__kicker { order: 1; margin-bottom: 14px; gap: .6em; font-size: .9rem; }
  .kicker span + span::before { width: .9em; margin-right: .6em; }
  .hero__title { order: 2; font-size: clamp(3.4rem, 23vw, 10.5rem); line-height: .84; margin-left: 0; }
  .hero__plate { order: 3; position: relative; inset: auto; left: auto; aspect-ratio: 850 / 768; margin-top: 22px; border-radius: 0; }
  .hero__mist { background: linear-gradient(0deg, rgba(20,24,16,.45) 0%, rgba(20,24,16,0) 30%); }
  .hero__beats { right: var(--m); bottom: 16px; font-size: 1rem; width: 60%; }
  .hero__replay { left: var(--m); bottom: 12px; min-height: 34px; font-size: .85rem; }
  .hero__copy { order: 4; padding-top: 22px; }
  .hero__facts { order: 5; margin: 28px var(--m) 0; padding-inline: 0; grid-template-columns: 1fr; }
  .hero__facts > div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .hero__facts > div + div { border-left: 0; padding-left: 0; }

  .day .ch .grid { padding-left: calc(var(--m) + 10px); }
  .meet__fig { margin: 30px calc(-1 * var(--m)) 0 calc(-1 * (var(--m) + 10px)); }
  .plate--arrive, .plate--walk { border-radius: 0; }
  .walk__fig { margin: 26px calc(-1 * var(--m)) 0 calc(-1 * (var(--m) + 10px)); }
  .walk__fig .cap { padding-left: calc(var(--m) + 10px); }
  .walk__pull { margin: 24px 0 0; }
  .ch--walk { padding-top: var(--cross); }
  .cap--side { text-align: left; }
  .feed__text { margin-top: 18px; }
  .plate--bleed { aspect-ratio: 4 / 3; }
  .feed__fig .plate__img { object-position: 62% 50%; }
  .feed__pull { margin-top: 22px; }
  .walk__title { font-size: clamp(2.8rem, 12.6vw, 4.6rem); }
  .walk__l2 { padding-left: 0; }
  .walk__text { margin-top: 24px; }
  .ch--river .grid { display: flex; flex-direction: column; }
  .river__col { order: -1; padding-left: 0; margin-bottom: 26px; }
  .river__fig { margin-left: calc(-1 * (var(--m) + 10px)); margin-right: calc(-1 * var(--m)); }
  .plate--left, .plate--right { aspect-ratio: 4 / 3; border-radius: 0; }
  .story__fig { margin: 30px calc(-1 * var(--m)) 0 0; }
  .story__note { padding-right: var(--m); }
  .ch--bye .grid { display: flex; flex-direction: column; }
  .bye__col { order: -1; margin-bottom: 30px; }
  .bye__fig { max-width: 80%; }

  .rv__row { display: block; }
  .rv__by { margin-bottom: 8px; }
  .ledger--rows > div { grid-template-columns: 1fr; gap: 4px; }
  .map { margin-top: 36px; }
  .closing { padding-top: 24px; padding-bottom: 104px; }
  .closing__media { height: 82vw; }
  .closing__in { margin-top: -56px; }
  .closing__title { font-size: clamp(3rem, 13.5vw, 5rem); }
  .closing__title .ln + .ln { padding-left: 0; }
  .closing__side { margin-top: 22px; }
  .foot__brand, .foot__col { grid-column: 1 / -1 !important; }
  .foot { padding-bottom: 96px; }

  /* docked strip: opaque like the header, content scrolls behind it, never a floating pill over text */
  .bookbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--m) max(10px, env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--rule), 0 -12px 24px -18px rgba(0,0,0,.3);
    transform: translateY(105%); transition: transform .4s var(--ease-out); }
  .bookbar.is-on { transform: none; }
  .bookbar__txt { font: 600 .82rem/1.3 var(--f-text); color: var(--soft); }
  .bookbar .btn { white-space: nowrap; flex: none; }
  .bar-dusk .bookbar { --bg: #0F2219; --ink: #EEE6D2; --soft: #B5BCAA; --rule: rgba(238,230,210,.18); }
  html:not(.js) .bookbar { position: sticky; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 07 the half-day, in numbers (round 6) ---------- */
.ch--prices { padding-bottom: clamp(32px, 4vw, 64px); }
.prices__head { grid-column: 2 / 7; grid-row: 1; }
.prices__head .big { margin-top: clamp(16px, 2vw, 26px); }
.sessions { grid-column: 8 / -1; grid-row: 1; align-self: end; display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
.session { border-top: 2px solid var(--ink); padding-top: 14px; }
.session dd { display: grid; gap: 6px; margin-top: 10px; }
.session__t { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: .98rem; color: var(--soft); border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.session__t b { font-family: var(--f-display); font-weight: 360; font-size: clamp(1.3rem, 1rem + .8vw, 1.75rem); letter-spacing: -.01em; color: var(--ink); }
.prices__list { grid-column: 2 / 9; grid-row: 2; margin-top: clamp(32px, 4vw, 56px); }
.prices__list dd { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5em; }
.price { font-family: var(--f-display); font-weight: 340; font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.4rem); letter-spacing: -.03em; line-height: 1; color: var(--accent); }
.price__per { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; }
.price__note { flex-basis: 100%; color: var(--soft); font-size: .98rem; margin-top: 4px; }
.prices__cta { grid-column: 9 / -1; grid-row: 2; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-bottom: 18px; }
.story__why { margin-top: clamp(18px, 2vw, 26px); font-size: 1.04rem; line-height: 1.55; max-width: 34em; color: var(--soft); }
.story__care { margin-top: clamp(18px, 2vw, 26px); border-top: 1px solid var(--rule); }
.story__care dd { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; }
.foot__demo { grid-column: 1 / -1; color: var(--soft); font-size: .8rem; opacity: .85; margin-top: -14px; }
@media (max-width: 899px) {
  .sessions { margin-top: 26px; }
  .prices__cta { padding-bottom: 0; margin-top: 24px; }
  .story__care > div { grid-template-columns: 1fr; }
}

.prices__list, .story__care { grid-template-columns: 1fr; }
.prices__list > div { grid-template-columns: 9.5em 1fr; }
.baht { font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif; font-weight: 500; font-size: .6em; vertical-align: .55em; margin-right: .08em; letter-spacing: 0; font-style: normal; }
@media (min-width: 900px) { .hero__facts { grid-column: 1 / 6; } }
@media (max-width: 560px) { .sessions { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- languages (round 7): EN | ไทย | 中文 ----------
   Fraunces and Source Sans 3 have no Thai or Chinese glyphs. Latin stays in them; Thai falls through to
   self-hosted Noto Serif Thai (display and reading text, where Fraunces is used) and Noto Sans Thai (UI):
   Thai-only subsets, downloaded only when Thai text is on the page. Chinese uses the system CJK fonts. */
@font-face { font-family: "LEC Thai Serif"; src: url("../fonts/noto-serif-thai-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "LEC Thai Sans"; src: url("../fonts/noto-sans-thai-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
html:lang(th) {
  --f-display: "Fraunces", "LEC Thai Serif", "Leelawadee UI", Tahoma, serif;
  --f-text: "Source Sans 3", "LEC Thai Sans", "Leelawadee UI", Tahoma, sans-serif;
}
html:lang(zh) {
  --f-display: "Fraunces", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --f-text: "Source Sans 3", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}
/* no tracking on Thai or Chinese (it pulls tone marks apart and breaks the CJK grid); no fake italics for scripts without them */
html:lang(th) body *, html:lang(zh) body * { letter-spacing: 0; }
/* all-small-caps on a caseless script makes the browser shrink every glyph: only real small caps (Latin) are kept */
html:lang(th), html:lang(zh) { font-synthesis: weight; overflow-wrap: break-word; }
html:lang(zh) { line-break: strict; }
html:lang(th) body { line-height: 1.75; }
html:lang(zh) body { line-height: 1.7; }
/* Thai stacks vowels and tone marks above and below the line: open the leading wherever it was set tight */
html:lang(th) .display { line-height: 1.22; }
html:lang(th) .hero__title { font-size: clamp(2.7rem, min(8.4vw, 13vh), 8.6rem); line-height: 1.2; }
html:lang(th) .walk__title { font-size: calc(var(--t-display) * .5); }
html:lang(th) .closing__title { font-size: clamp(2.6rem, .4rem + 6vw, 7rem); }
html:lang(th) .h2 { font-size: clamp(2rem, .8rem + 3.3vw, 4.3rem); line-height: 1.24; }
html:lang(th) .rv__title { font-size: clamp(2rem, .8rem + 3.2vw, 4.2rem); }
html:lang(th) .big, html:lang(th) .lede { line-height: 1.72; font-weight: 380; }
html:lang(th) .pull blockquote, html:lang(th) .rv__row blockquote, html:lang(th) .story__pull, html:lang(th) .owner blockquote { line-height: 1.6; font-weight: 360; }
html:lang(th) .rv__row--lead blockquote { line-height: 1.5; }
html:lang(th) .cap, html:lang(th) .kicker, html:lang(th) .ch__label, html:lang(th) dt { font-size: .95rem; line-height: 1.6; font-weight: 600; }
html:lang(th) .ledger dd, html:lang(th) .names__q, html:lang(th) .session__t { line-height: 1.6; }
html:lang(th) .hero__beats { line-height: 1.6; height: 1.9em; }
html:lang(th) .motion .ln { padding-bottom: .2em; margin-bottom: -.2em; padding-top: .14em; margin-top: -.14em; }
/* Chinese: shorter words, so the display sizes come down a little; regular weight reads better than light */
html:lang(zh) .display, html:lang(zh) .h2, html:lang(zh) .display em, html:lang(zh) .h2 em { font-weight: 400; }
html:lang(zh) .hero__title { font-size: clamp(2.8rem, min(8.6vw, 13.5vh), 8.8rem); line-height: 1.08; }
html:lang(zh) .display { line-height: 1.1; }
html:lang(zh) .walk__title { font-size: calc(var(--t-display) * .54); }
html:lang(zh) .closing__title { font-size: clamp(2.6rem, .4rem + 6vw, 7rem); }
html:lang(zh) .h2 { font-size: clamp(2rem, .8rem + 3.3vw, 4.4rem); line-height: 1.16; }
html:lang(zh) .rv__title { font-size: clamp(2rem, .8rem + 3.2vw, 4.2rem); }
html:lang(zh) .big, html:lang(zh) .lede { line-height: 1.75; font-weight: 400; }
html:lang(zh) .pull blockquote, html:lang(zh) .rv__row blockquote, html:lang(zh) .story__pull, html:lang(zh) .owner blockquote { line-height: 1.55; font-weight: 400; }
html:lang(zh) .cap, html:lang(zh) .kicker, html:lang(zh) .ch__label, html:lang(zh) dt { font-size: .92rem; font-weight: 500; letter-spacing: .04em; }
html:lang(zh) .motion .ln { padding-bottom: .16em; margin-bottom: -.16em; }
/* Chinese and Thai may break between any two characters: buttons and the language options stay on one line */
.btn, .lang__opt { white-space: nowrap; }
/* labels sized for one line of English: let translated text wrap instead of overflowing */
html:lang(th) .hero__facts dd, html:lang(zh) .hero__facts dd, html:lang(th) .kicker span, html:lang(zh) .kicker span { white-space: normal; }
html:lang(th) .ledger--rows > div, html:lang(th) .prices__list > div { grid-template-columns: 8.5em 1fr; }
html:lang(zh) .ledger--rows > div, html:lang(zh) .prices__list > div { grid-template-columns: 7em 1fr; }
/* while the dictionary loads (first visit in Thai or Chinese): keep the layout, hide the English words */
.i18n-wait [data-i18n], .i18n-wait [data-i18n-html], .i18n-wait [data-i18n-lines] { visibility: hidden; }

/* the language control: an inline EN | ไทย | 中文 group; on phones a small menu behind the current language */
.lang { position: relative; display: flex; align-items: center; }
.lang__toggle { display: none; }
.lang__opts { display: flex; align-items: center; }
.lang__opt { position: relative; min-height: 40px; min-width: 40px; padding: 0 .55em; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font: 500 .92rem/1 var(--f-text); cursor: pointer; transition: color .2s, background-color .2s; }
.lang__opt[lang="th"], .lang__cur[lang="th"] { font-family: "Source Sans 3", "LEC Thai Sans", "Leelawadee UI", Tahoma, sans-serif; }
.lang__opt[lang="zh-Hans"], .lang__cur[lang="zh-Hans"] { font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.lang__opt + .lang__opt::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: .95em; margin-top: -.48em; background: currentColor; opacity: .3; }
.lang__opt:hover { color: var(--ink); }
.lang__opt[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.lang__opt:focus-visible, .lang__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.lang__ic { width: 18px; height: 18px; flex: none; }
.lang__chev { width: 14px; height: 14px; flex: none; transition: transform .25s; }
/* phones: the header row is full (mark, name, Book, menu), so the same group sits at the top of the menu panel */
.nav__lang { display: none; }
@media (min-width: 900px) { .hdr__in > .lang { margin-left: calc(-1 * clamp(4px, 1vw, 14px)); } }
@media (max-width: 899px) {
  .hdr__in > .lang { display: none; }
  .nav .nav__lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
  .nav__lang .lang__opt { min-height: 44px; min-width: 52px; font-size: 1.02rem; }
}
