/* =========================================================
   Vientiane Landing Page — styles
   Design reference: design_style.md
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Gold */
  --gold-600: #9A630C;
  --gold-500: #B07514;
  --gold-300: #D8B37D;
  --gold-200: #F1C893;
  --gold-100: #E9D9BE;

  /* Neutrals */
  --cream-50: #FBF7F1;
  --cream-100: #F8F3EC;
  --ink-900: #111111;
  --ink-700: #2B2B2B;
  --ink-500: #5E5A55;
  --ink-400: #8F8C8C;
  --white: #FFFFFF;

  /* Darks */
  --navy-900: #021A2B;
  --navy-800: #0D2A41;
  --navy-700: #013B69;

  /* Type */
  --font-display: "Playfair Display", Georgia, serif;
  --font-hero: "Bebas Neue", "Anton", Impact, sans-serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-lao: "Noto Serif Lao", serif;

  /* Layout */
  --container: 1200px;
  --gutter: 48px;
  --header-h: 88px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* keep section headings clear of the fixed header when jumping from the menu */
.places, .stories { scroll-margin-top: 40px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-500);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }

/* ---------- 3. Shared components ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 44px; padding: 0 26px; font-size: 14px; }
.btn--gold { background: var(--gold-500); color: var(--white); }
.btn--gold:hover { background: var(--gold-600); }
.btn--light { background: var(--gold-200); color: var(--ink-900); }
.btn--light:hover { background: #F6D6AA; box-shadow: 0 10px 30px rgba(241, 200, 147, .35); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- 4. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--navy-900);
  color: var(--gold-300);
  transition: opacity .9s var(--ease-out), visibility .9s;
}
.preloader__logo { width: 84px; height: auto; animation: pulse 1.6s ease-in-out infinite; }
.preloader__line {
  position: relative;
  width: 120px;
  height: 1px;
  background: rgba(216, 179, 125, .25);
  overflow: hidden;
}
.preloader__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-300);
  transform: translateX(-100%);
  animation: loadline 1.4s var(--ease-in-out) infinite;
}
.is-ready .preloader { opacity: 0; visibility: hidden; }

@keyframes pulse { 50% { opacity: .45; } }
@keyframes loadline { 60%, 100% { transform: translateX(100%); } }

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  color: var(--white);
  transition: height .5s var(--ease-out), background-color .5s var(--ease-out), transform .6s var(--ease-out), backdrop-filter .5s;
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .08);
  opacity: 0;
  transition: opacity .5s;
}
.header.is-scrolled {
  height: 72px;
  background: rgba(2, 26, 43, .92);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.header.is-scrolled::after { opacity: 1; }

/* header entrance */
.header > * { opacity: 0; transform: translateY(-14px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.is-ready .header > * { opacity: 1; transform: none; }
.is-ready .header > :nth-child(1) { transition-delay: .9s; }
.is-ready .header > :nth-child(2) { transition-delay: 1s; }
.is-ready .header > :nth-child(3) { transition-delay: 1.1s; }

.brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.brand__icon { width: auto; height: 46px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25)); transition: height .5s var(--ease-out); }
.header.is-scrolled .brand__icon { height: 40px; }
.brand__text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .45em;
  text-transform: uppercase;
  opacity: .8;
  padding-left: .45em;
}

.nav__list { display: flex; gap: 40px; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  transition: color .3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--gold-200); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 18px; justify-self: end; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transition: background-color .3s; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 22px; height: 22px; }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px 0 16px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color .3s, background-color .3s;
}
.lang:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.lang svg { width: 16px; height: 16px; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 120px 28px 48px;
  background: var(--navy-900);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.mobile-menu__list li { overflow: hidden; }
.mobile-menu__list a {
  display: block;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.2;
  color: var(--white);
  transform: translateY(105%);
  transition: transform .8s var(--ease-out), color .3s;
}
.mobile-menu__list a:hover { color: var(--gold-200); }
.mobile-menu.is-open .mobile-menu__list a { transform: none; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(1) a { transition-delay: .25s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) a { transition-delay: .31s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) a { transition-delay: .37s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) a { transition-delay: .43s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) a { transition-delay: .49s; }
.mobile-menu__cta { align-self: flex-start; opacity: 0; transition: opacity .6s .6s; }
.mobile-menu.is-open .mobile-menu__cta { opacity: 1; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  height: 500vh;           /* 400vh frame scrub + 100vh for the Welcome curtain */
  background: var(--navy-900);
}
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--white);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.12);
  transition: transform 2.4s var(--ease-out);
}
.is-ready .hero__canvas { transform: scale(1); }

.hero__dim {
  position: absolute;
  inset: 0;
  background: var(--navy-900);
  opacity: 0;
  pointer-events: none;
}
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 30, 60, .55) 0%, rgba(1, 30, 60, 0) 24%),
    linear-gradient(0deg, rgba(2, 18, 30, .72) 0%, rgba(2, 18, 30, .3) 18%, rgba(2, 18, 30, 0) 38%),
    radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .28) 100%);
}

/* Centre titles */
.hero__center {
  position: absolute;
  left: 0; right: 0;
  top: clamp(110px, 15vh, 150px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}
.hero__intro { will-change: transform, opacity; }
.hero__country,
.hero__tagline { overflow: hidden; }
.hero__country span,
.hero__tagline span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.is-ready .hero__country span { transform: none; transition-delay: .35s; }
.is-ready .hero__tagline span { transform: none; transition-delay: .5s; }

.hero__country {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.2;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding-left: .3em;
}
.hero__tagline {
  margin-top: 10px;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: .5em;
  text-transform: uppercase;
  padding-left: .5em;
  opacity: .9;
}

.hero__title {
  display: flex;
  justify-content: center;
  margin-top: clamp(8px, 1.4vh, 18px);
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: clamp(96px, min(19vw, 36vh), 320px);
  line-height: .86;
  letter-spacing: .01em;
  filter: drop-shadow(0 6px 40px rgba(60, 20, 0, .18));
  transform-origin: 50% 60%;
  will-change: transform, opacity;
}
.hero__letter { display: inline-block; overflow: hidden; padding: .04em .005em 0; }
.hero__letter > span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .97) 0%,
    rgba(255, 248, 234, .9) 40%,
    rgba(255, 232, 196, .55) 78%,
    rgba(255, 222, 170, .28) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(105%);
  transition: transform 1.4s var(--ease-out);
  transition-delay: calc(.55s + var(--i) * .07s);
}
.is-ready .hero__letter > span { transform: none; }

/* Micro stacks */
.hero__stack li,
.hero__discover span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 2.1;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(1.2s + var(--i) * .08s);
}
.is-ready .hero__stack li,
.is-ready .hero__discover span { opacity: 1; transform: none; }

.hero__stack--left {
  position: absolute;
  left: var(--gutter);
  top: 38%;
  will-change: transform, opacity;
}
.hero__stack--left::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .7);
}

.hero__side-right {
  position: absolute;
  right: var(--gutter);
  top: clamp(130px, 18vh, 170px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  will-change: transform, opacity;
}
.hero__lao {
  font-family: var(--font-lao);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.4;
  margin-bottom: 18px;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out) 1.1s;
}
.is-ready .hero__lao { opacity: 1; }
.hero__stack--right li { padding-left: .32em; }
.hero__vline {
  width: 1px;
  height: 52px;
  margin-top: 18px;
  background: rgba(255, 255, 255, .6);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s var(--ease-out) 1.6s;
}
.is-ready .hero__vline { transform: scaleY(1); }

.hero__discover {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(40px, 7vh, 72px);
  will-change: transform, opacity;
}
.hero__discover::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .7);
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 7vh, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  will-change: opacity;
}
.hero__scroll > * { opacity: 0; transition: opacity 1s var(--ease-out) 1.6s; }
.is-ready .hero__scroll > * { opacity: 1; }
.hero__mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 12px;
}
.hero__mouse span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--white);
  animation: mouse 1.8s var(--ease-in-out) infinite;
}
@keyframes mouse {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { opacity: 0; }
}
.hero__scroll-text {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .32em;
  text-transform: uppercase;
  padding-left: .32em;
}

/* Night caption */
.hero__night {
  position: absolute;
  left: 0; right: 0;
  top: 22%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero__night-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.08;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .35);
}
.hero__night-title em { font-style: italic; color: var(--gold-200); }

/* Progress line */
.hero__progress {
  position: absolute;
  left: 50%;
  bottom: clamp(40px, 7vh, 72px);
  width: 120px;
  height: 1px;
  margin-left: -60px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s 1.8s;
}
.is-ready .hero__progress { opacity: 1; }
.hero__progress span {
  position: absolute;
  inset: 0;
  background: var(--gold-200);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- 7. Shared section pieces ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rule {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold-500);
}
.ornament { color: var(--gold-300); pointer-events: none; }

/* Button with trailing arrow circle */
.btn--arrow { padding-right: 10px; }
.btn__arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.btn__arrow svg { width: 15px; height: 15px; transition: transform .45s var(--ease-out); }
.btn--arrow:hover .btn__arrow svg { transform: translateX(3px); }
.btn--gold.btn--arrow:hover .btn__arrow { background: var(--white); color: var(--gold-600); }

/* Scroll-scrubbed reveals.
   JS sets --p (0 → 1) on every [data-reveal] / [data-split] element from its
   position in the viewport, so scrolling down plays forward and scrolling up
   plays in reverse. No transitions: the scroll position IS the timeline. */
[data-reveal], [data-split] { --p: 0; }
[data-reveal] {
  opacity: var(--p);
  transform: translate3d(0, calc((1 - var(--p)) * 34px), 0);
}

[data-reveal="rule"] { opacity: 1; transform: scaleX(var(--p)); transform-origin: left; }

/* Split heading: letters rise through a mask */
[data-split] .char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
[data-split] .char > span {
  display: inline-block;
  /* each letter starts a little later than the previous one */
  --cp: clamp(0, calc(var(--p) * 1.5 - var(--i) * .06), 1);
  transform: translate3d(0, calc((1 - var(--cp)) * 110%), 0);
}

/* ---------- 8. Welcome ---------- */
.welcome {
  position: relative;
  z-index: 2;
  /* rise over the last 100vh of the pinned hero */
  margin-top: -100vh;
  margin-top: -100svh;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 11vw, 150px) 0 clamp(96px, 10vw, 140px);
  background: var(--cream-50);
  overflow: hidden;
  /* --curve is driven by JS: 1 = full dome, 0 = flat */
  --curve: 1;
  border-radius: 50% 50% 0 0 / calc(var(--curve) * clamp(60px, 12vw, 180px)) calc(var(--curve) * clamp(60px, 12vw, 180px)) 0 0;
  box-shadow: 0 -24px 60px rgba(2, 18, 30, calc(var(--curve) * .35));
}
.welcome__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}
.welcome__text { position: relative; z-index: 2; }
.welcome__title {
  margin: 18px 0 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink-900);
}
.welcome__lead {
  max-width: 440px;
  margin: 30px 0 40px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
  color: var(--ink-500);
}

.welcome__media { position: relative; margin: 0 -4% 0 -2%; }
.welcome__img-wrap { will-change: transform; }
.welcome__media img {
  width: 100%;
  height: auto;
}

/* Brush "paints in" from left to right */
[data-reveal="paint"] { opacity: 1; transform: none; }
[data-reveal="paint"] img {
  -webkit-mask-image: linear-gradient(100deg, #000 40%, rgba(0, 0, 0, 0) 60%);
  mask-image: linear-gradient(100deg, #000 40%, rgba(0, 0, 0, 0) 60%);
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: calc((1 - var(--p)) * 100%) 0;
  mask-position: calc((1 - var(--p)) * 100%) 0;
  transform: scale(calc(1 + (1 - var(--p)) * .06));
}

/* Ornaments */
.welcome__orn { position: absolute; opacity: .38; }
.welcome__orn > use { transform-origin: center; transform-box: fill-box; }
.welcome__orn--a { width: 240px; height: 240px; top: 40px; left: 41%; }
.welcome__orn--b { width: 300px; height: 300px; bottom: -40px; left: 44%; opacity: .3; }
.welcome__orn--c { width: 340px; height: 340px; top: -90px; right: -110px; }
.welcome__orn { animation: orn-spin 120s linear infinite; }
.welcome__orn--b { animation-direction: reverse; animation-duration: 150s; }
/* parallax uses `translate` so it doesn't fight the spin `rotate` */
@keyframes orn-spin { to { rotate: 360deg; } }

/* ---------- 9. Section heading (centred) ---------- */
.section-head {
  max-width: 920px;
  margin: 0 auto clamp(40px, 4.5vw, 64px);
  text-align: center;
}
.section-title {
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.12;
  color: var(--ink-900);
}
.section-intro {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-500);
}
/* word-mode split: whole words rise */
[data-split="words"] .char { margin-right: .25em; }
[data-split="words"] .char:last-child { margin-right: 0; }
[data-split="words"] .char > span { --cp: clamp(0, calc(var(--p) * 1.5 - var(--i) * .1), 1); }

/* Arrow circle link */
.arrow-link {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-300);
  border-radius: 50%;
  color: var(--gold-500);
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), color .4s var(--ease-out);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }

/* ---------- 10. Iconic places ---------- */
.places {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3vw, 48px) 0 clamp(96px, 10vw, 140px);
  background: var(--cream-50);
}
.places__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.place-card { position: relative; }
[data-reveal="card"] { transform: translate3d(0, calc((1 - var(--p)) * 70px), 0); }

.place-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gold-100);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
  /* photo wipes up slightly after the card starts rising */
  --mp: clamp(0, calc(var(--p) * 1.3 - .2), 1);
  clip-path: inset(calc((1 - var(--mp)) * 100%) 0 0 0 round 8px);
}
.place-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  translate: 0 var(--py, 0px);          /* scroll parallax, no lag */
  transform: scale(var(--s, 1.14));      /* hover zoom, eased */
  transition: transform 1s var(--ease-out);
}
/* soft shine that follows the tilt */
.place-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}

.place-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 6px 0 6px;
}
.place-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.25;
  color: var(--ink-900);
}
.place-card__text {
  margin-top: 6px;
  max-width: 190px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-400);
}
/* make the whole card clickable via the arrow link */
.place-card .arrow-link::after { content: ""; position: absolute; inset: 0; }

@media (hover: hover) {
  .place-card:hover .place-card__media img { --s: 1.2; }
  .place-card:hover .place-card__media::after { opacity: 1; }
  .place-card:hover .arrow-link { background: var(--gold-500); border-color: var(--gold-500); color: var(--white); }
  .place-card:hover .arrow-link svg { transform: translateX(3px); }
}

.places__dots { display: none; }

/* ---------- 11. Experiences ---------- */
.exp {
  position: relative;
  z-index: 2;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  isolation: isolate;
}
.exp__bg {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}
.exp__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  will-change: transform;
  transform: translate3d(0, var(--exp-y, 0px), 0) scale(var(--exp-s, 1.12));
}
.exp__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 18, 30, .9) 0%, rgba(2, 18, 30, .62) 34%, rgba(2, 18, 30, .1) 62%, rgba(2, 18, 30, 0) 75%),
    linear-gradient(0deg, rgba(2, 18, 30, .88) 0%, rgba(2, 18, 30, .4) 24%, rgba(2, 18, 30, 0) 45%),
    linear-gradient(180deg, rgba(2, 18, 30, .35) 0%, rgba(2, 18, 30, 0) 18%);
}

.exp__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(64px, 9vw, 130px);
  min-height: clamp(640px, 56vw, 820px);
  padding-top: clamp(80px, 8vw, 120px);
  padding-bottom: clamp(48px, 5vw, 64px);
}
.exp__text { max-width: 520px; }
.exp__title {
  margin: 18px 0 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.08;
  color: var(--white);
}
.exp .rule { background: var(--gold-300); }
.exp__lead {
  max-width: 440px;
  margin: 28px 0 36px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
}
.btn--ghost.btn--arrow:hover .btn__arrow { background: var(--white); color: var(--ink-900); }

/* Features row */
.exp__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.feature { position: relative; padding-top: 4px; }
.feature__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .5s var(--ease-out), stroke .4s;
}
/* icons draw themselves in */
.feature__icon > * { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--p) * 1.4 - .3), 1)); }

.feature__title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}
.feature__text {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}
.feature::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 36px;
  height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) {
  .feature:hover .feature__icon { transform: translateY(-4px); stroke: var(--gold-200); }
  .feature:hover::after { transform: scaleX(1); }
}

/* ---------- 12. Stories ---------- */
.stories {
  position: relative;
  z-index: 2;
  padding: clamp(96px, 10vw, 140px) 0 clamp(96px, 10vw, 140px);
  background: var(--cream-100);
}
.stories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}
.story-card { position: relative; }

/* reveal: card lifts, photo wipes in from the left and settles */
[data-reveal="story"] { transform: translate3d(0, calc((1 - var(--p)) * 50px), 0); --mp: clamp(0, calc(var(--p) * 1.3 - .15), 1); }
.story-card__media {
  position: relative;
  aspect-ratio: 1200 / 740;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gold-100);
  clip-path: inset(0 calc((1 - var(--mp)) * 100%) 0 0 round 8px);
}
.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: calc(1.02 + (1 - var(--mp)) * .2);   /* scroll-driven settle */
  transition: transform 1s var(--ease-out);    /* hover only */
}

.story-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 6px 0;
}
.story-card__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.story-card__title {
  margin-top: 10px;
  max-width: 260px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.35;
  color: var(--ink-900);
}
/* underline grows on hover */
.story-card__title span {
  background: linear-gradient(var(--gold-300), var(--gold-300)) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.story-card .arrow-link { margin-top: 18px; }
.story-card .arrow-link::after { content: ""; position: absolute; inset: 0; }

@media (hover: hover) {
  .story-card:hover .story-card__media img { transform: scale(1.06); }
  .story-card:hover .story-card__title span { background-size: 100% 1px; }
  .story-card:hover .arrow-link { background: var(--gold-500); border-color: var(--gold-500); color: var(--white); }
  .story-card:hover .arrow-link svg { transform: translateX(3px); }
}

/* ---------- 13. Plan your trip (CTA) ---------- */
.cta {
  position: relative;
  z-index: 2;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  isolation: isolate;
}
.cta__bg {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 62%;
  will-change: transform;
  transform: translate3d(0, var(--bg-y, 0px), 0) scale(var(--bg-s, 1.14));
}
.cta__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 18, 30, .7) 0%, rgba(2, 18, 30, .35) 38%, rgba(2, 18, 30, 0) 65%),
    linear-gradient(180deg, rgba(2, 18, 30, .45) 0%, rgba(2, 18, 30, 0) 40%, rgba(2, 18, 30, 0) 70%, rgba(2, 18, 30, .5) 100%);
}
.cta__inner {
  min-height: clamp(520px, 44vw, 660px);
  padding-top: clamp(80px, 7vw, 110px);
  padding-bottom: clamp(80px, 7vw, 110px);
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.cta__pre,
.cta__big { display: block; }
.cta__pre { font-size: clamp(30px, 3.3vw, 50px); line-height: 1.15; }
.cta__big { font-size: clamp(56px, 6.4vw, 92px); line-height: 1.05; margin-top: 2px; }
.cta__lead {
  margin: 22px 0 34px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}
.btn--light.btn--arrow .btn__arrow { border-color: rgba(17, 17, 17, .75); }
.btn--light.btn--arrow:hover .btn__arrow { background: var(--ink-900); color: var(--gold-200); }

/* one warm glow pulse once the button appears */
.cta__btn { position: relative; }
.cta__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(241, 200, 147, .55);
  pointer-events: none;
}
.is-in > .cta__btn::before { animation: glow 2.2s var(--ease-out) .2s 2; }
@keyframes glow {
  0% { box-shadow: 0 0 0 0 rgba(241, 200, 147, .55); }
  100% { box-shadow: 0 0 0 18px rgba(241, 200, 147, 0); }
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1180px) {
  .nav__list { gap: 26px; }
  .nav__link { font-size: 14px; }
  .header { gap: 16px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 28px; --header-h: 76px; }
  .header { grid-template-columns: 1fr auto; }
  .nav, .lang, .icon-btn { display: none; }
  .burger { display: block; }
  .header__actions { gap: 10px; }
  .hero__stack--left { top: auto; bottom: 32%; }

  .welcome__grid { grid-template-columns: 1fr; }
  .welcome__media { order: -1; max-width: 640px; margin: 0 auto -8px; width: 100%; }
  .welcome__orn { opacity: .22; }
  .welcome__text { text-align: left; }
  .welcome__orn--a { left: auto; right: -60px; top: 46%; }
  .welcome__orn--b { left: -90px; bottom: -80px; }

  .places__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .place-card__text { max-width: none; }

  .exp__features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .exp__shade {
    background:
      linear-gradient(180deg, rgba(2, 18, 30, .8) 0%, rgba(2, 18, 30, .6) 38%, rgba(2, 18, 30, .62) 60%, rgba(2, 18, 30, .92) 100%);
  }
}

@media (max-width: 760px) {
  .cta__bg img { object-position: 62% 40%; }
  .cta__shade {
    background: linear-gradient(180deg, rgba(2, 18, 30, .78) 0%, rgba(2, 18, 30, .6) 45%, rgba(2, 18, 30, .1) 70%, rgba(2, 18, 30, .45) 100%);
  }
  .cta__inner { min-height: 640px; }
  .stories__grid { grid-template-columns: 1fr; row-gap: 44px; }
  .story-card__title { max-width: none; }
  .story-card[data-parallax] { translate: none !important; }
}

@media (max-width: 640px) {
  /* swipeable row on phones */
  .places__grid {
    display: flex;
    gap: 14px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .places__grid::-webkit-scrollbar { display: none; }
  .place-card { flex: 0 0 78%; scroll-snap-align: start; }
  .places__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
  .places__dots span {
    width: 6px; height: 6px; border-radius: 3px;
    background: var(--gold-300); opacity: .45;
    transition: width .45s var(--ease-out), opacity .45s;
  }
  .places__dots span.is-active { width: 22px; opacity: 1; background: var(--gold-500); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 68px; }
  .header.is-scrolled { height: 64px; }
  .header__cta { display: none; }
  .brand__icon { height: 38px; }
  .header.is-scrolled .brand__icon { height: 34px; }
  .brand__name { font-size: 18px; }

  .hero { height: 420vh; }
  .hero__center { top: 22vh; }
  .hero__title { font-size: 22vw; }
  .hero__country { font-size: 24px; }
  .hero__tagline { font-size: 10px; letter-spacing: .35em; }
  .hero__stack--left,
  .hero__side-right,
  .hero__progress { display: none; }
  .hero__night { top: 26%; padding: 0 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hero { height: 100vh; height: 100svh; }
  .welcome { margin-top: 0; --curve: 0; }
  .exp__bg img, .cta__bg img { transform: none; }
}
