/* ===== Shared section pieces ===== */
.sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 24px;
  background: var(--cream);
}
.sec > * { width: 100%; max-width: 1200px; }
.eyebrow { font-size: 11px; letter-spacing: 2.8px; }
.eyebrow--muted { color: var(--muted); }
.eyebrow--accent { color: var(--rust); }

/* ===== Hero ===== */
/* Home: the header sits above the hero instead of over it, so the whole video frame is visible */
.site-header { margin-bottom: 0; }
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Full width; as tall as the 16:9 video, but never taller than the viewport below the header,
     so the whole hero (waves included) is in view on arrival. The video covers the box. */
  width: 100%;
  height: min(56.25vw, calc(100svh - var(--header-h, 97.5px)));
  min-height: 540px;
  padding: 40px 32px calc(var(--wave-h) + 24px);
  text-align: center;
}
/* Hoi An video: the poster (first frame) shows at once; the video fades in once it is playing */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink) url(../images/hero-banner-poster.webp?v=3) center / cover no-repeat;
}
/* The video comes in two parts (each under GitHub's 50 MB warning) stacked here; home.js plays them in turn.
   No cross-fade: the poster is the first frame, and fading a moving shot over a still one ghosts */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero.has-video .hero__video.is-active { opacity: 1; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(45, 56, 50, .32), rgba(45, 56, 50, .45) 55%, rgba(45, 56, 50, .47));
}
/* Waves at the foot of the hero (shape from the Hoang Yen banner): a soft terracotta crest behind,
   cream in front so the hero flows straight into the About section below */
.hero { --wave-h: clamp(70px, 10vw, 160px); }
.hero-waves {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: var(--wave-h);
  pointer-events: none;
}
.hw-back { fill: var(--terracotta); opacity: .75; }
.hw-front { fill: var(--cream); }
.hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; height: 3px; background: var(--cream); }
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 900px;
}
.hero__content { text-shadow: 0 1px 22px rgba(30, 36, 32, .35); }
.hero__title {
  font: 500 72px/1.05 var(--serif);
  letter-spacing: -1px;
  color: var(--cream);
}
.hero__desc {
  margin-top: 16px;
  padding: 0 3px;
  font: 400 18px/1.8 var(--sans);
  color: var(--cream);
}
.btn-hero {
  margin-top: 24px;
  padding: 18px 30px;
  font: 600 12px/15px var(--sans);
  letter-spacing: 2px;
  color: #fff;
  background: var(--rust);
  border: 1px solid color-mix(in srgb, var(--gold) 70%, #fff);
  border-radius: 2px;
  transition: transform .25s, background-color .25s;
}
.btn-hero:hover { transform: scale(1.04); background: var(--sage); }
/* Hero text slides down into place on load, one line after another */
.hero__title, .hero__desc, .btn-hero { animation: hero-drop .9s cubic-bezier(.22, .61, .36, 1) backwards; }
.hero__title { animation-delay: .15s; }
.hero__desc { animation-delay: .4s; }
.btn-hero { animation-delay: .65s; }
@keyframes hero-drop {
  from { opacity: 0; transform: translateY(-48px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Scroll reveal (first appearance; set up by home.js) ===== */
.js-reveal [data-reveal] { opacity: 0; }
.js-reveal [data-reveal="up"] { transform: translateY(36px); }
.js-reveal [data-reveal="left"] { transform: translateX(-64px); }
.js-reveal [data-reveal="right"] { transform: translateX(64px); }
.js-reveal [data-reveal="zoom"] { transform: scale(.92); }
.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.places { overflow-x: clip; }

/* ===== About ===== */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 60px 6% 30px;
  overflow-x: clip;
  background: var(--cream);
}
.about__text { display: flex; flex: 0 1 auto; width: calc(40% - 25.6px); max-width: 450px; flex-direction: column; align-items: flex-start; gap: 22px; }
.about__eyebrow { font: 600 11px/22.4px var(--sans); letter-spacing: 2.2px; color: var(--sage); }
.about__title { font: 500 52px/1.12 var(--serif); letter-spacing: -.5px; color: var(--ink); }
.about__lead { font: italic 500 26px/1.45 var(--serif); color: var(--sage); }
.about__body { display: flex; flex-direction: column; gap: 12px; max-width: 450px; font: 400 15px/1.85 var(--sans); color: var(--ink); }
.about__body .about__lead { padding: 4px 0 4px 18px; font-size: 23px; line-height: 1.4; border-left: 2px solid var(--gold); }
.about__more { margin-top: 4px; font: italic 500 19px/1.4 var(--serif); color: var(--text); }
.about__more + .link-story { margin-top: -14px; }
.link-story {
  margin-top: 8px;
  padding: 10px 0;
  font: 600 11px/22.4px var(--sans);
  letter-spacing: 1.7px;
  color: var(--ink);
  transition: color .25s, letter-spacing .25s;
}
.link-story:hover { color: var(--rust); }
.about__img {
  flex: 0 1 auto;
  width: calc(60% - 38.4px);
  min-width: 0;
  max-width: 630px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* Ink-brush frame: the photo only shows where the brush strokes are (images/ink-mask.svg) */
.ink-frame {
  -webkit-mask: url(../images/ink-mask.svg) center / 100% 100% no-repeat;
  mask: url(../images/ink-mask.svg) center / 100% 100% no-repeat;
}
/* Painted composition: watercolour washes behind, hand-drawn accents in front */
.ink-art { position: relative; margin: 0; isolation: isolate; }
.ink-art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ink-art::before, .ink-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  -webkit-mask: url(../images/ink-wash.svg) center / 100% 100% no-repeat;
  mask: url(../images/ink-wash.svg) center / 100% 100% no-repeat;
}
.ink-art::before { inset: 14% 22% -9% -7%; background: var(--gold); opacity: .42; }
.ink-art::after { inset: -8% -6% 40% 46%; background: var(--blush); opacity: .55; transform: scaleX(-1) rotate(4deg); }
.ink-art__deco { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ink-art__swoosh { fill: var(--terracotta); opacity: .85; }
.ink-art__bamboo .bb-stem, .ink-art__bamboo .bb-leaves path, .ink-art__bamboo .bb-stalk { fill: #4f6b2a; }
.ink-art__bamboo .bb-joints { fill: none; stroke: #fff; stroke-linecap: round; }
.ink-art__bamboo .bb-grow, .ink-art__bamboo .bb-rise, .ink-art__bamboo .bb-branch, .ink-art__bamboo .bb-leaves path { transform-box: fill-box; }
.ink-art__bamboo .bb-grow { transform-origin: center; }
.ink-art__bamboo .bb-rise { transform-origin: 50% 100%; }
.ink-art__splat { fill: var(--terracotta); opacity: .7; }
.ink-art__deco path, .ink-art__deco circle { transform-box: fill-box; transform-origin: center; }

/* Appears in sequence when scrolled into view (home.js adds .is-in):
   washes -> photo -> bamboo stalks rise from the ground, the branch grows out from its base and its leaves
   sprout one by one (nearest the base first) -> brush underline wiped right to left -> ink dots.
   The underline is its own <svg> element so clip-path works on a real box. */
.js-reveal .ink-art:not(.is-in)::before { opacity: 0; transform: scale(.88); }
.js-reveal .ink-art:not(.is-in)::after { opacity: 0; transform: scaleX(-1) rotate(4deg) scale(.88); }
.js-reveal .ink-art:not(.is-in) > img { opacity: 0; transform: scale(1.04); }
.js-reveal .ink-art:not(.is-in) .bb-rise { transform: scaleY(0); }
.js-reveal .ink-art:not(.is-in) .bb-grow { transform: scale(0); }
.js-reveal .ink-art:not(.is-in) .bb-leaves path { opacity: 0; transform: scale(.2) rotate(-20deg); }
.js-reveal .ink-art:not(.is-in) .ink-art__line { clip-path: inset(-30% -30% -30% 100%); }
.js-reveal .ink-art:not(.is-in) .ink-art__splat circle { opacity: 0; transform: scale(0); }
.ink-art__line { clip-path: inset(-30% -30% -30% 0%); }
.ink-art.is-in::before { transition: opacity 1s ease, transform 1.2s cubic-bezier(.22, .61, .36, 1); }
.ink-art.is-in::after { transition: opacity 1s ease .25s, transform 1.2s cubic-bezier(.22, .61, .36, 1) .25s; }
.ink-art.is-in > img { transition: opacity 1s ease .6s, transform 1.4s cubic-bezier(.22, .61, .36, 1) .6s; }
.ink-art.is-in .bb-rise { transition: transform .8s ease-out 1.3s; }
.ink-art.is-in .bb-grow { transition: transform 1s ease-out 1.6s; }
/* each leaf carries its own delay (--d, set inline: leaves nearer the base sprout first) */
.ink-art.is-in .bb-leaves path { transition: opacity .5s ease var(--d), transform .6s cubic-bezier(.34, 1.4, .64, 1) var(--d); }
.ink-art.is-in .ink-art__line { transition: clip-path 1.1s cubic-bezier(.45, .05, .25, 1) 2.4s; }
.ink-art.is-in .ink-art__splat circle { transition: opacity .3s ease 3.4s, transform .4s cubic-bezier(.34, 1.6, .64, 1) 3.4s; }
.ink-art.is-in .ink-art__splat circle:nth-child(even) { transition-delay: 3.52s; }
/* Leaves flutter around the point where they join the branch: own `rotate` property, so it never fights the reveal transform */
.ink-art__bamboo .bb-leaves path { animation: leaf-sway 3.2s ease-in-out infinite alternate; }
.ink-art__bamboo .bb-leaves path:nth-child(2n) { animation-duration: 2.6s; animation-delay: -1.1s; }
.ink-art__bamboo .bb-leaves path:nth-child(3n) { animation-duration: 3.8s; animation-delay: -2.3s; }
.ink-art__bamboo .bb-leaves path:nth-child(5n) { animation-duration: 2.9s; animation-delay: -.6s; }
@keyframes leaf-sway { from { rotate: -3deg; } to { rotate: 3deg; } }
/* ...and the whole branch sways from its base (hidden behind the stalk) in a slow, uneven breeze; the stalks stay still */
.ink-art__bamboo .bb-branch { animation: branch-sway 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .ink-art__bamboo .bb-branch, .ink-art__bamboo .bb-leaves path { animation: none; }
}
/* Flowers (bottom right) open straight after the bamboo leaves finish (~3s), so the sequence flows without a pause: petals open one by one from their base (--d set inline),
   then the orange heart and stamens pop; afterwards the head sways gently and the petals breathe */
.about__img .ink-art__line { display: none; } /* brush underline hidden: the bloom cluster replaces it (approved 2026-10-15) */
.ink-art__flower { transform: translateY(10px); } /* the whole bloom cluster sits 10px lower */
.ink-art__flower .fl-petal path { fill: #fff; stroke: #d8c3a5; stroke-width: 1.1; stroke-linejoin: round; }
.ink-art__flower .fl-petal .fl-vein { fill: none; stroke: #eadbc6; stroke-width: 1; stroke-linecap: round; }
.ink-art__flower .fl-core { fill: #e8892b; }
.ink-art__flower .fl-stamens path { fill: none; stroke: #e07b22; stroke-width: 1.1; stroke-linecap: round; }
.ink-art__flower .fl-stamens circle { fill: #f2a23a; }
.ink-art__flower .fl-head, .ink-art__flower .fl-petal, .ink-art__flower .fl-heart { transform-box: fill-box; }
.ink-art__flower .fl-head, .ink-art__flower .fl-heart { transform-origin: center; }
.ink-art__flower .fl-petal { transform-origin: 50% 100%; }
.js-reveal .ink-art:not(.is-in) .fl-petal { opacity: 0; transform: scale(.15) rotate(-30deg); }
.js-reveal .ink-art:not(.is-in) .fl-heart { opacity: 0; transform: scale(0); }
.ink-art.is-in .fl-petal { transition: opacity .5s ease var(--d), transform .9s cubic-bezier(.34, 1.45, .64, 1) var(--d); }
.ink-art.is-in .fl-heart { transition: opacity .3s ease var(--d), transform .6s cubic-bezier(.34, 1.8, .64, 1) var(--d); }
.ink-art__flower .fl-head { animation: flower-sway 6s ease-in-out infinite; }
.ink-art__flower .fl-head--small { animation-duration: 5s; animation-delay: -2s; }
.ink-art__flower .fl-petal { animation: petal-breathe 4s ease-in-out infinite alternate; }
@keyframes flower-sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
/* The bloom cluster (a mirrored L in the corner, 1/3 as tall as it is long): leaves unfurl first, then the flowers
   open in a wave from the corner outwards (--d inline), buds swell last. Only a few background flowers sway. */
.ink-art__flower .fl-leaf { fill: #5f7d34; }
.ink-art__flower .fl-leaf--light { fill: #87a250; }
.ink-art__flower .fl-leaf, .ink-art__flower .fl-bud { transform-box: fill-box; transform-origin: 50% 100%; }
.js-reveal .ink-art:not(.is-in) .fl-leaf, .js-reveal .ink-art:not(.is-in) .fl-bud { opacity: 0; transform: scale(0); }
.ink-art.is-in .fl-leaf { transition: opacity .4s ease var(--d), transform .8s cubic-bezier(.34, 1.3, .64, 1) var(--d); }
.ink-art.is-in .fl-bud { transition: opacity .4s ease var(--d), transform .7s cubic-bezier(.34, 1.6, .64, 1) var(--d); }
.ink-art__flower .fl-head--bg, .ink-art__flower .fl-head--bg .fl-petal { animation: none; }
.ink-art__flower .fl-head--bg.fl-head--sway { animation: flower-sway 7s ease-in-out infinite; }
@keyframes petal-breathe { from { scale: 1; } to { scale: 1.05; } }
@media (prefers-reduced-motion: reduce) {
  .ink-art__flower .fl-head, .ink-art__flower .fl-petal { animation: none; }
}
/* Performance (phones especially): the idle sway / breathe loops only run while the painting is on screen
   (JS toggles .is-offscreen), phones keep just the bamboo and the large flower moving, and the two decorative
   SVGs get their own layer so each frame repaints only them, not the photo underneath. */
.ink-art__bamboo, .ink-art__flower { will-change: transform; }
.ink-art.is-offscreen .bb-branch, .ink-art.is-offscreen .bb-leaves path, .ink-art.is-offscreen .fl-head, .ink-art.is-offscreen .fl-petal { animation-play-state: paused; }
@media (max-width: 767px) {
  .ink-art__flower .fl-petal, .ink-art__flower .fl-head--small, .ink-art__flower .fl-head--bg.fl-head--sway { animation: none; }
}
/* GPU sway: the branch and the two original flowers each sit in their own <svg> layer and sway by rotating the whole
   layer (compositor only, no repaint), pivoting where the branch meets the stalk / at each flower's centre.
   The old in-SVG sways of these three are switched off. */
.ink-art__bamboo .bb-branch, .ink-art__flower--main .fl-head, .ink-art__flower--small .fl-head { animation: none; }
.ink-art__branch { transform-origin: -1.41% 44.15%; animation: branch-sway 7s ease-in-out infinite; }
.ink-art__flower--main { transform-origin: 94.69% 88.75%; animation: flower-sway 6s ease-in-out infinite; }
.ink-art__flower--small { transform-origin: 100.31% 77.08%; animation: flower-sway 5s ease-in-out -2s infinite; }
.ink-art.is-offscreen .ink-art__branch, .ink-art.is-offscreen .ink-art__flower--main, .ink-art.is-offscreen .ink-art__flower--small { animation-play-state: paused; }
@media (max-width: 767px) {
  /* phones: only the GPU layer sways keep moving; the in-SVG loops (leaf flutter, petal breathe, background sways) stop */
  .ink-art__bamboo .bb-leaves path { animation: none; }
  /* phones, kept light: no petal-by-petal bloom and no flower sway; the whole bloom cluster just fades in once
     (after the photo, while the bamboo grows). The bamboo keeps its full sequence and sway. */
  .js-reveal .ink-art .ink-art__flower :is(.fl-petal, .fl-heart, .fl-leaf, .fl-bud) { opacity: 1; transform: none; transition: none; animation: none; }
  .ink-art__flower--main, .ink-art__flower--small { animation: none; will-change: auto; }
  .ink-art__flower { will-change: auto; }
  .js-reveal .ink-art:not(.is-in) .ink-art__flower { opacity: 0; }
  .ink-art.is-in .ink-art__flower { transition: opacity .9s ease 1.8s; }
}
@media (prefers-reduced-motion: reduce) {
  .ink-art__branch, .ink-art__flower--main, .ink-art__flower--small { animation: none; }
}
@keyframes branch-sway {
  0%, 100% { rotate: -1.5deg; }
  30% { rotate: 2.6deg; }
  45% { rotate: 1.4deg; }
  70% { rotate: 3.2deg; }
}

/* ===== Pillars ===== */

/* ===== Experience tabs ===== */
.experience { gap: 16px; }
.experience__eyebrow { letter-spacing: 3px; }
.experience__title { font: 500 clamp(36px, 4.2vw, 56px)/1.04 var(--serif); color: #171714; }
.experience__title--em { margin-top: -16px; font-style: italic; color: var(--rust); }
.experience__desc { margin-bottom: 10px; line-height: 1.6; color: var(--text); }
.exp-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0 10px;
  margin-top: 14px;
  padding-bottom: 528px;
}
.exp-tab__title {
  display: flex;
  align-items: center;
  height: 76px;
  padding: 15px 12px;
  list-style: none;
  font: 600 12.5px/1.5 var(--sans);
  text-align: center;
  color: var(--sage);
  background: var(--cream);
  border: 1px solid #d9cbb8;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.exp-tab__title::-webkit-details-marker { display: none; }
.exp-tab__icon { display: none; }
.exp-tab:not([open]) > .exp-tab__title:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 5px 14px rgba(45, 56, 50, .07); }
.exp-tab[open] > .exp-tab__title { color: #fff; background: var(--sage); border-color: var(--sage); }
.exp-panel {
  position: absolute;
  top: 104px;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  height: 500px;
  padding: 30px 0;
  animation: reveal .25s ease both;
}
.exp-panel > :not(.exp-panel__gallery) { width: calc(42% - 52px); }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.exp-panel__eyebrow { font: 600 11px/1.7 var(--sans); letter-spacing: 1.8px; text-transform: uppercase; color: var(--rust); }
.exp-panel__title { font: 500 clamp(32px, 3.3vw, 44px)/1.08 var(--serif); letter-spacing: -.5px; color: var(--ink); }
.exp-panel__text { font: 400 15px/1.85 var(--sans); color: var(--text); }
.exp-panel__text p + p { margin-top: 12px; }
.exp-panel__gallery {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  width: 58%;
  height: 100%;
}
.exp-panel__fig { overflow: hidden; border-radius: 8px; box-shadow: 0 2px 8px rgba(45, 56, 50, .05); }
.exp-panel__fig:first-child { grid-row: span 2; }
.exp-panel__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; }
.exp-panel__fig:hover img { transform: scale(1.045); filter: brightness(1.035); }
/* Tab images: settle in one after another each time a tab opens (first time: once the section is in view) */
.exp-tab[open] .exp-panel__fig { animation: fig-in .8s cubic-bezier(.22, .61, .36, 1) backwards; }
.exp-tab[open] .exp-panel__fig img { animation: fig-settle 1.4s cubic-bezier(.22, .61, .36, 1) backwards; }
.exp-tab[open] .exp-panel__fig:nth-child(2), .exp-tab[open] .exp-panel__fig:nth-child(2) img { animation-delay: .14s; }
.exp-tab[open] .exp-panel__fig:nth-child(3), .exp-tab[open] .exp-panel__fig:nth-child(3) img { animation-delay: .28s; }
.js-reveal .experience:not(.is-seen) .exp-panel__fig, .js-reveal .experience:not(.is-seen) .exp-panel__fig img { animation: none; opacity: 0; }
@keyframes fig-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fig-settle { from { transform: scale(1.08); } to { transform: none; } }

/* ===== Section head (tours / gallery) ===== */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sec-head__text { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.sec-head__title { font: 500 clamp(34px, 3.5vw, 46px)/1.1 var(--serif); color: var(--brown); }
.sec-head__title em { font-weight: 400; color: var(--rust); }
.sec-head__desc { font-size: 15px; line-height: 1.6; color: var(--text); }
.link-all { padding: 12px 0; font-size: 13px; font-weight: 600; color: var(--brown); white-space: nowrap; transition: color .25s; }
.link-all:hover { color: var(--rust); }

/* ===== Six facets (icons as on the brochure) ===== */
.facets { padding-top: 10px; padding-bottom: 40px; }
.facets__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facet { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.facet__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: #8b785e;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color .3s, transform .3s;
}
.facet__icon svg { width: 30px; height: 30px; }
.facet:hover .facet__icon { color: var(--rust); transform: translateY(-3px); }
.facet__label { font: 500 21px/1.2 var(--serif); color: var(--brown); }
/* Four core values (The Blooming Passage Experience): same band as the facets, four columns, a short line under each */
.facets--values { padding-top: 40px; }
.facets__eyebrow { margin-bottom: 18px; text-align: center; }
.facets--values .facets__list { grid-template-columns: repeat(4, 1fr); }
.facet__text { max-width: 220px; font-size: 13.5px; line-height: 1.55; text-align: center; color: var(--text); }

/* ===== Travel season line ===== */
.season { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; font: italic 500 20px/1.4 var(--serif); color: var(--rust); }
.season span { font: 600 11px/1.6 var(--sans); font-style: normal; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.season__link { font: 600 12px/1.6 var(--sans); font-style: normal; color: var(--brown); text-decoration: underline; text-underline-offset: 4px; transition: color .25s; }
.season__link:hover { color: var(--rust); }

/* ===== Tour cards ===== */
.tours { gap: 28px; }
.tours__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 8px 20px;
  overflow: hidden;
  background: #fffcf8;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(67, 49, 31, .024);
  transition: transform .3s, box-shadow .3s;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(56, 45, 38, .1); }
.tour-card__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.tour-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cream);
  background: var(--sage);
  border-radius: 30px;
}
/* each journey has its own soft tint: blush, sage, warm sand */
.tour-card--essence { --tint: var(--blush-soft); --accent: var(--terracotta); }
.tour-card--balanced { --tint: color-mix(in srgb, var(--sage) 8%, var(--paper)); --accent: var(--sage); }
.tour-card--pause { --tint: color-mix(in srgb, var(--ochre) 15%, var(--paper)); --accent: var(--ochre); }
.tour-card[class*="tour-card--"] { background: var(--tint); }
.tour-card[class*="tour-card--"] .tour-card__badge { background: var(--accent); }
.tour-card__title { display: flex; align-items: center; gap: 10px; margin: 18px 12px 8px; font: 500 26px/1.2 var(--serif); color: var(--brown); }
.tour-card__icon { flex: none; width: 24px; height: 24px; color: var(--accent, var(--sage)); }
.tour-card__icon svg { display: block; width: 100%; height: 100%; }
.tour-card__text { margin: 0 12px 14px; font-size: 15px; line-height: 1.6; color: var(--text); }
.tour-card__list { display: flex; flex-direction: column; align-self: stretch; gap: 8px; margin: 0 12px 22px; padding-top: 14px; border-top: 1px solid rgba(101, 87, 74, .15); }
.tour-card__list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.tour-card__list li::before { content: ""; position: absolute; top: .6em; left: 2px; width: 6px; height: 6px; background: var(--accent, var(--sage)); border-radius: 50%; }
.tour-card .btn-pill { margin-top: auto; }
.btn-pill {
  margin: 0 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cream);
  background: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 24px;
  transition: background-color .25s, border-color .25s;
}
.btn-pill:hover { background: var(--rust); border-color: var(--rust); }

/* ===== Care for your whole self: small round photos ===== */
.care { gap: 34px; padding-top: 50px; padding-bottom: 50px; }
.care__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 18px; }
.care-item { display: flex; flex: 0 0 calc((100% - 6 * 18px) / 7); flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.care-item__img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(56, 45, 38, .1);
  transition: transform .4s ease, box-shadow .4s ease;
}
.care-item__img--face { object-position: 50% 28%; } /* portrait photo: keep the face in the circle */
.care-item:hover .care-item__img { transform: scale(1.04); box-shadow: 0 12px 28px rgba(56, 45, 38, .16); }
.care-item__label { font: 500 18px/1.3 var(--serif); color: var(--brown); }

/* ===== Why Central Vietnam ===== */
.why { padding-top: 60px; padding-bottom: 70px; }
.why__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 72px; }
.why__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font: 400 15px/1.85 var(--sans); color: var(--text); }
.why__text .eyebrow { margin-bottom: 4px; }
.why__title { margin-bottom: 8px; font: 500 clamp(32px, 3.2vw, 44px)/1.15 var(--serif); letter-spacing: -.3px; color: var(--brown); }
.why__title em { font-weight: 400; color: var(--rust); }
.why__close { padding-top: 18px; font: italic 500 22px/1.45 var(--serif); color: var(--sage); border-top: 1px solid var(--line); }
/* three photos overlapping like prints laid on a table */
.why__media { position: relative; height: 500px; }
.why__img { position: absolute; object-fit: cover; border: 6px solid var(--paper); border-radius: 6px; box-shadow: 0 14px 34px rgba(56, 45, 38, .14); }
.why__img--a { top: 0; left: 0; width: 62%; height: 58%; }
.why__img--b { top: 14%; right: 0; width: 42%; height: 62%; border-radius: 80px 6px 6px; }
.why__img--c { bottom: 0; left: 14%; width: 52%; height: 42%; }

/* ===== Places ===== */
.places { gap: 16px; }
.places__eyebrow { color: #a16749; }
.places__title { margin-bottom: 28px; font: 500 clamp(34px, 3.4vw, 44px)/1.15 var(--serif); color: var(--brown); }
.places__list { display: flex; flex-direction: column; gap: 60px; }
.place { display: flex; align-items: center; gap: 80px; }
.place--reverse { flex-direction: row-reverse; }
.place__img { flex: 0 0 calc(50% - 40px); align-self: stretch; width: calc(50% - 40px); height: auto; min-height: 480px; object-fit: cover; border-radius: 4px; }
/* Destination photos (Da Nang, Hoi An, Hue): scenes cross-fade while each one slowly zooms in (home.js moves .is-active along) */
.place__slides { position: relative; overflow: hidden; }
.place__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.place__slide.is-active { opacity: 1; }
/* Same animation on the outgoing slide, so its zoom carries on while it fades out */
.place__slides.is-playing .place__slide.is-active,
.place__slides.is-playing .place__slide.is-prev { animation: place-zoom 4.5s linear both; }
.place__slide:nth-child(1) { transform-origin: 65% 60%; }
.place__slide:nth-child(2) { transform-origin: 30% 60%; }
.place__slide:nth-child(3) { transform-origin: 50% 35%; }
.place__slide:nth-child(4) { transform-origin: 55% 45%; }
.place__slide:nth-child(5) { transform-origin: 30% 75%; }
@keyframes place-zoom { from { transform: scale(1); } to { transform: scale(1.22); } }
.place__body { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 36px 24px; }
.place__title { width: 100%; font: 500 clamp(40px, 4.6vw, 56px)/1.08 var(--serif); color: var(--brown-2); }
.place__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.place__meta b { font: 500 34px/1 var(--serif); color: var(--gold); }
.place__meta em { font: normal 400 10px/1.6 var(--sans); letter-spacing: 2.2px; color: var(--text); }
.place__meta::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.place__name { display: block; }
.place__name em { font-weight: 400; color: var(--rust); }
.place__text { display: flex; flex-direction: column; gap: 12px; max-width: 480px; font: 400 15px/1.9 var(--sans); color: var(--text); }
.place__lead { font: italic 500 21px/1.45 var(--serif); color: var(--brown-2); }
.place__close { font-weight: 600; color: var(--sage); }
.place__label { margin-top: 4px; font: 600 11px/1.7 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--rust); }
.place__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.place__list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.6; }
.place__list li::before { content: ""; position: absolute; top: .65em; left: 0; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.place__text::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 26px; background: var(--gold); }
.place__tags { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; font-size: 11px; font-weight: 600; line-height: 1.7; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rust); }
.place__tags b { padding: 3px 12px; font-weight: 500; border-left: 1px solid var(--line); }
.place__tags b:first-child { padding-left: 0; border-left: 0; }

/* ===== Gallery ===== */
.lens { gap: 28px; scroll-margin-top: var(--header-h, 96px); }
.lens__grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 180px) auto; grid-auto-rows: 180px; gap: 24px; }
.lens__item { position: relative; display: block; overflow: hidden; border-radius: 16px; transition: transform .3s, box-shadow .3s; }
.lens__item img { width: 100%; height: 100%; object-fit: cover; }
.lens__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 40%, rgba(45, 56, 50, .28));
  opacity: 0;
  transition: opacity .3s;
}
.lens__item::after {
  content: "+";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font: 300 26px/1 var(--sans);
  color: var(--rust);
  background: rgba(255, 252, 247, .92);
  border: 1px solid rgba(255, 252, 247, .8);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 6px));
  transition: opacity .3s, transform .3s;
}
.lens__item:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(56, 45, 38, .14); }
.lens__item:hover::before, .lens__item:hover::after { opacity: 1; }
.lens__item:hover::after { transform: translate(-50%, -50%); }
.lens__item:nth-child(1) { grid-area: 1 / 1 / 2 / 3; }
.lens__item:nth-child(2) { grid-area: 2 / 1 / 4 / 3; }
.lens__item:nth-child(3) { grid-area: 1 / 3 / 3 / 5; }
.lens__item:nth-child(4) { grid-area: 3 / 3 / 4 / 5; }
.lens__item:nth-child(5) { grid-area: 1 / 5 / 2 / 7; }
.lens__item:nth-child(6) { grid-area: 2 / 5 / 4 / 7; }
/* closing row: two wide frames */
.lens__item:nth-child(7) { grid-area: 4 / 1 / 5 / 4; height: 300px; }
.lens__item:nth-child(8) { grid-area: 4 / 4 / 5 / 7; height: 300px; }
.lens__item:nth-child(7) img { object-position: 50% 30%; }

/* ===== CTA ===== */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 30px;
  background:
    linear-gradient(color-mix(in srgb, var(--sand) 95%, transparent), color-mix(in srgb, var(--sand) 95%, transparent)) 50% 50% / 100% 100%,
    url(../images/central-vietnam-hand-drawn-v3.png) no-repeat 100% 100% / 600px,
    var(--sand);
}
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; width: 100%; max-width: 1200px; padding: 30px clamp(28px, 5vw, 64px); }
.cta__left { display: flex; flex: 1 1 430px; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta__right { display: flex; flex: 1 1 320px; flex-direction: column; align-items: flex-start; gap: 26px; }
.cta__eyebrow { font: 500 11px/1.5 var(--sans); letter-spacing: 2.8px; color: var(--rust); }
.cta__title { font: 500 clamp(36px, 4.5vw, 58px)/1.08 var(--serif); color: var(--brown-2); }
.cta__text { max-width: 420px; font: 400 15px/1.85 var(--sans); color: var(--text); }
.cta__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn-solid, .btn-outline {
  padding: 14px 22px;
  font: 600 13px/1.5 var(--sans);
  text-align: center;
  border: 1px solid var(--rust);
  border-radius: 3px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn-solid { color: var(--paper); background: var(--rust); }
.btn-solid:hover { background: var(--sage); border-color: var(--sage); }
.btn-outline { color: var(--rust); border-color: var(--gold); }
.btn-outline:hover { color: var(--paper); background: var(--rust); border-color: var(--rust); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .88);
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; padding: 10px 16px; font-size: 40px; line-height: 1; color: #fff; opacity: .8; transition: opacity .2s; }
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__title { font-size: 60px; }
  .care-item { flex-basis: calc((100% - 3 * 18px) / 4); }
  .exp-panel > :not(.exp-panel__gallery) { width: calc(44% - 24px); }
  .exp-panel__gallery { width: 54%; gap: 10px; }
  .place { gap: 40px; }
  .why__inner { gap: 40px; }
  .why__media { height: 420px; }
  .place__img { flex-basis: calc(50% - 20px); width: calc(50% - 20px); }
  .place__body { padding: 24px 8px; }
  .lens__grid { gap: 18px; grid-template-rows: repeat(3, 145px) auto; grid-auto-rows: 145px; }
}
@media (max-width: 900px) {
  .hero { height: calc(100svh - var(--header-h, 91px)); min-height: 520px; }
  .about { flex-direction: column; align-items: stretch; gap: 40px; }
  .about__text, .about__img { width: 100%; max-width: none; }
  .why__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .hero { padding: 40px 24px calc(var(--wave-h) + 40px); }
  .hero__title { font-size: 48px; }
  .btn-hero { margin-top: 14px; }
  .about__text { width: 100%; max-width: none; }
  .about__title { font-size: 38px; }
  .about__img { width: 100%; max-width: none; }
  .ink-art__bamboo { transform: translateX(10px); } /* stalks start left of the photo; nudge them in so the edge of the screen does not cut them */
  .sec-head { flex-wrap: wrap; }
  .sec-head__text { flex-basis: 100%; }
  .facets__list { grid-template-columns: repeat(3, 1fr); gap: 26px 10px; padding: 26px 0; }
  .facets--values .facets__list { grid-template-columns: repeat(2, 1fr); }
  .facet__label { font-size: 19px; }
  .care { gap: 26px; padding-top: 34px; padding-bottom: 34px; }
  .care__list { gap: 22px 14px; }
  .care-item { flex-basis: calc((100% - 2 * 14px) / 3); gap: 10px; }
  .care-item__label { font-size: 16px; }
  .tour-card__title { font-size: 24px; }
  /* tabs become an accordion */
  .exp-tabs { display: flex; flex-direction: column; gap: 10px; padding-bottom: 0; }
  .exp-tab__title { gap: 14px; height: auto; min-height: 62px; text-align: left; }
  .exp-tab[open] > .exp-tab__title { color: var(--sage); background: var(--cream); border-color: var(--sage); }
  .exp-tab__icon { position: relative; display: block; flex: none; width: 13px; height: 15px; color: var(--ink); }
  .exp-tab__icon::before, .exp-tab__icon::after { content: ""; position: absolute; top: 6px; left: 0; width: 13px; height: 2.5px; background: currentColor; border-radius: 1px; }
  .exp-tab__icon::after { transform: rotate(90deg); transition: transform .25s; }
  .exp-tab[open] .exp-tab__icon::after { transform: rotate(0); }
  .exp-panel { position: static; height: auto; gap: 14px; padding: 22px 0 8px; }
  .exp-panel > :not(.exp-panel__gallery) { width: 100%; }
  .exp-panel__text { font-size: 14px; line-height: 1.85; }
  .exp-panel__gallery { position: static; width: 100%; height: 300px; margin-top: 8px; gap: 10px; }
  .places__title { margin-bottom: 28px; }
  .place, .place--reverse { flex-direction: column; align-items: stretch; gap: 0; }
  .place__img { flex: none; width: 100%; height: clamp(280px, 85vw, 400px); min-height: 0; }
  .place__list { grid-template-columns: minmax(0, 1fr); }
  .place__lead { font-size: 19px; }
  .why { padding-top: 40px; padding-bottom: 46px; }
  .why__media { height: clamp(300px, 90vw, 400px); }
  .why__close { font-size: 20px; }
  .place__body { gap: 16px; padding: 28px 0 0; }
  .place__title { font-size: 36px; }
  .exp-panel__title { font-size: 32px; }
  .place__meta { gap: 12px; margin-bottom: 18px; }
  .place__meta b { font-size: 30px; }
  .place__meta em { font-size: 9px; }
  .lens { padding: 30px 20px; }
  .lens__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 160px; gap: 14px; }
  .lens__grid .lens__item { grid-area: auto; aspect-ratio: auto; }
  .lens__grid .lens__item:nth-child(3) { grid-column: span 2; grid-row: span 2; }
  .lens__grid .lens__item:nth-child(4) { grid-column: span 2; }
  .lens__grid .lens__item:nth-child(7), .lens__grid .lens__item:nth-child(8) { height: auto; }
}
/* Phones / small tablets: keep the waves above the fixed mobile bar (62px) */
@media (max-width: 768px) {
  .hero { height: calc(100svh - var(--header-h, 80px) - 62px); min-height: 460px; }
}
@media (max-width: 400px) {
  .hero__title { font-size: 40px; }
  .hero__desc { font-size: 16px; }
}

/* ===== Brighter palette accents (client palette board, 2026-10-16) ===== */
/* core values: a soft blush band with golden icons */
.facets--values { margin-top: 30px; padding-top: 46px; padding-bottom: 46px; background: linear-gradient(180deg, var(--blush-soft), #fdf3ee); }
.facets--values .facets__list { border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.facets--values .facet__icon { color: var(--rust); background: var(--paper); box-shadow: inset 0 0 0 1px var(--gold), 0 6px 16px rgba(181, 85, 58, .1); }
.facets--values .facet:hover .facet__icon { color: var(--paper); background: var(--terracotta); }
/* round treatment photos: thin golden ring */
.care-item__img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold); }
/* why Central Vietnam: warm sand wash */
.why { background: linear-gradient(180deg, var(--cream), var(--sand) 55%, var(--cream)); }
/* closing invitation: blush-to-peach like the palette board */
.cta {
  padding-bottom: calc(clamp(44px, 6vw, 86px) + 40px);
  background:
    url(../images/central-vietnam-hand-drawn-v3.png) no-repeat 100% 100% / 600px,
    linear-gradient(110deg, #fdf1ea, #f8dccf 60%, #f4cdbd);
  background-blend-mode: soft-light, normal;
}
/* the footer band rises over the invitation, so its waves sit on the blush wash */
body:has(.cta) .site-footer { --footer-lead: transparent; position: relative; margin-top: calc(-1 * clamp(44px, 6vw, 86px)); }
/* Hoi An first slide: keep the woman in the ao dai inside the tall frame */
.place__slide--hoian-lady { object-position: 30% 50%; }
