/* ============================================================
   Eastbound Escapes — Asia-Pacific · cinematic design system
   A digital journey through Asia. Scroll-driven "scenes" with
   pinned transformations, huge editorial typography (Fraunces),
   warm ivory "quiet" moments and destination accents.
   ============================================================ */

/* ---------- 01. Tokens ---------- */
:root {
  --ivory: #f4efe6;
  --sand: #ece2d0;
  --paper: #faf7f0;
  --ink: #14110d;
  --ink-2: #2a241d;
  --muted: #7a7266;
  --faint: #a69c8c;

  --line: rgba(20, 17, 13, 0.12);
  --line-strong: rgba(20, 17, 13, 0.22);

  --vermilion: #d24726;
  --vermilion-deep: #a83416;
  --green: #2f7d4f;
  --ocean: #1f6f78;
  --gold: #b98a2f;

  --accent: var(--vermilion);
  --accent-deep: var(--vermilion-deep);

  --dark: #0c0a08;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --nav-h: 76px;
  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 02. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html { overflow-x: clip; } }
body {
  font-family: var(--font-body); background: var(--ivory); color: var(--ink);
  line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* picture wrapper is transparent so responsive <source> swaps never break layout */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 03. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 480; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2rem, 6vw, 5rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
em { font-style: italic; font-weight: 420; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.16rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.display { font-family: var(--font-display); font-weight: 460; line-height: 0.95; letter-spacing: -0.035em; }

/* ---------- 04. Layout utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(22px, 4vw, 40px); }
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(50px, 7vw, 90px); }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 14px; } .gap-3 { gap: 22px; } .wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; } .mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 20px; color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; }

/* ---------- 05. Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; justify-content: center; font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; padding: 15px 30px; border-radius: 999px; border: 1px solid transparent; transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); white-space: nowrap; }
.btn--primary { background: var(--ink); color: var(--ivory); }
.btn--primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 18px 38px; font-size: 1.02rem; }
.btn .ic { width: 18px; height: 18px; flex: 0 0 auto; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--ink); position: relative; }
.link-arrow .arr { transition: transform .3s var(--ease); }
.link-arrow:hover .arr { transform: translateX(6px); }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: var(--line-strong); transform: scaleX(.4); transform-origin: left; transition: transform .4s var(--ease), background .4s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); background: var(--accent); }
.link-arrow--light { color: var(--ivory); }
.link-arrow--light::after { background: rgba(244,239,230,.4); }

/* ---------- 06. Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: var(--nav-h); color: #fff; border-bottom: 1px solid transparent; transition: background .4s ease, color .4s ease, box-shadow .4s ease, border-color .4s ease; }
.nav--solid { background: rgba(244,239,230,.92); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); color: var(--ink); border-bottom-color: var(--line); box-shadow: 0 12px 30px -28px rgba(20,17,13,.6); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; line-height: 1; }
.brand__sub { display: block; font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; opacity: .62; margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav__link { font-size: .86rem; font-weight: 500; padding: 9px 14px; border-radius: 8px; opacity: .9; transition: opacity .25s ease, background .25s ease; }
.nav__link:hover { opacity: 1; background: rgba(20,17,13,.08); }
.nav__cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav__phone { font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.nav__phone:hover { opacity: 1; }
.nav__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; opacity: .9; transition: opacity .2s ease, background .2s ease; }
.nav__icon:hover { opacity: 1; background: rgba(20,17,13,.1); }
.nav__toggle { display: none; }

.mega { position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 60px 120px -50px rgba(20,17,13,.45); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-block: 40px; }
.mega__links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.mega__item { display: block; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.mega__item b { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; display: block; }
.mega__item span { font-size: .78rem; color: var(--muted); }
.mega__item:hover b { color: var(--accent); }
.mega__img { position: relative; border-radius: 12px; overflow: hidden; min-height: 260px; }
.mega__img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: opacity .5s ease; }
.mega__img .cap { position: absolute; left: 18px; bottom: 16px; color: #fff; font-family: var(--font-display); font-size: 1.4rem; z-index: 2; }
.mega__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5)); }

.nav__mobile { display: none; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--paper); padding: 20px 24px 40px; overflow-y: auto; z-index: 89; }
.nav__mobile.is-open { display: block; }
.nav__mobile a { display: block; padding: 15px 4px; font-family: var(--font-display); font-size: 1.5rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.nav__mobile .btn { margin-top: 22px; }

.search { position: fixed; inset: 0; z-index: 120; background: rgba(244,239,230,.97); backdrop-filter: blur(10px); display: none; padding: 12vh 6vw; }
.search.is-open { display: block; }
.search__box { display: flex; align-items: center; gap: 16px; max-width: 820px; margin-inline: auto; border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
.search__box input { flex: 1; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.8rem); background: none; border: 0; color: var(--ink); }
.search__box input:focus { outline: none; }
.search__box input::placeholder { color: var(--faint); }
.search__close { position: absolute; top: 28px; right: 32px; font-size: 1.6rem; line-height: 1; }
.search__hint { max-width: 820px; margin: 26px auto 0; color: var(--muted); font-size: .9rem; }
.search__results { max-width: 820px; margin: 30px auto 0; display: grid; gap: 4px; }
.search__result { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.search__result b { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.search__result span { color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- 07. Custom cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); z-index: 1000; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s ease; }
.cursor.is-on { opacity: 1; }
.cursor--label { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; transform: translate(-50%, -50%); display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--ivory); color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transition: opacity .25s ease; }
.cursor--label.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor--label { display: none; } }

/* ---------- 08. Cinematic scenes ---------- */
.scene { position: relative; background: var(--dark); }
/* Intrinsic full-screen stage. svh keeps pinned scenes stable when mobile
   browser chrome shows/hides; 100vh is the fallback. No fixed min-height. */
.scene__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }

/* -- opening (Asia Portal) -- */
.scene--portal .scene__pin { background: radial-gradient(120% 90% at 50% 38%, #0c141f 0%, #05060b 58%, #020204 100%); }
.portal { position: absolute; inset: 0; z-index: 3; display: block; }
.portal__fallback { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; opacity: 0; }
.no-webgl .portal__fallback { opacity: 1; }
.open__veil { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(120% 100% at 50% 42%, transparent 38%, rgba(2,2,4,.6) 88%), linear-gradient(180deg, rgba(2,2,4,.5), transparent 24%, transparent 74%, rgba(2,2,4,.55)); }
.open__asia { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-66%); z-index: 2; text-align: center; font-family: var(--font-display); font-weight: 460; font-size: clamp(6rem, 32vw, 34rem); line-height: .8; letter-spacing: -.04em; color: #fff; will-change: transform; pointer-events: none; }
.open__escape { position: absolute; top: 16%; left: 0; right: 0; z-index: 5; text-align: center; font-size: clamp(.8rem, 1.4vw, 1.1rem); font-weight: 600; letter-spacing: .62em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.open__to { position: absolute; bottom: 21%; left: 0; right: 0; z-index: 5; text-align: center; font-size: clamp(.8rem, 1.4vw, 1.1rem); font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.open__scroll { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 5; color: rgba(255,255,255,.85); font-size: .7rem; letter-spacing: .4em; text-transform: uppercase; }

/* -- japan: Tokyo -> Kyoto (Shinkansen wipe) -- */
.japan__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.japan__block { position: absolute; inset: 0; }
.japan__block--kyoto { clip-path: inset(0 100% 0 0); }
.japan__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.japan__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,8,.3), rgba(12,10,8,.55)); }
.japan__type { position: absolute; inset: 0; z-index: 5; color: #fff; display: flex; flex-direction: column; justify-content: center; padding-inline: clamp(22px, 6vw, 90px); }
.japan__tokyo, .japan__kyoto { font-family: var(--font-display); font-weight: 460; color: #fff; line-height: .86; letter-spacing: -.035em; }
.japan__tokyo { font-size: clamp(4rem, 20vw, 22rem); }
.japan__kyoto { font-size: clamp(3.2rem, 14vw, 15rem); }
.japan__sub { font-size: clamp(.9rem, 1.5vw, 1.2rem); letter-spacing: .4em; text-transform: uppercase; opacity: .9; margin-top: 18px; }
.japan__train { position: absolute; top: 0; bottom: 0; left: 0; width: min(46vw, 620px); z-index: 6; transform: translateX(-140%); will-change: transform; }
.japan__train .train__blur { position: absolute; inset: 0; right: 34%; opacity: .4; filter: blur(7px); transform: translateX(-12%); background: linear-gradient(90deg, rgba(10,15,26,0) 0%, rgba(10,15,26,.85) 100%); }
.japan__train .train__body { position: absolute; inset: 0; background: linear-gradient(180deg, #141c2c 0%, #0a0f19 52%, #05070c 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); clip-path: polygon(0 0, 84% 0, 100% 50%, 84% 100%, 0 100%); }
.japan__train .train__light { position: absolute; left: 0; right: 6%; top: 47%; height: 8%; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.34) 26%, rgba(214,232,255,.92) 62%, rgba(255,255,255,.5) 100%); }
.japan__train em { position: absolute; top: 50%; left: 10%; transform: translateY(-50%); writing-mode: vertical-rl; font-style: normal; font-family: var(--font-body); font-size: .6rem; letter-spacing: .5em; color: rgba(255,255,255,.55); font-weight: 700; }

/* -- thailand reveal -- */
.thai__bg { position: absolute; inset: 0; background-size: cover; background-position: center; clip-path: inset(100% 0 0 0); }
.thai__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,8,.55), rgba(12,10,8,.25) 45%, rgba(12,10,8,.55)); }
.thai__line { position: absolute; left: 0; right: 0; top: 68%; height: 2px; background: rgba(255,255,255,.8); z-index: 3; }
.thai__type { position: absolute; inset: 0; z-index: 4; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.thai__title { font-family: var(--font-display); font-weight: 460; font-size: clamp(3.6rem, 17vw, 18rem); line-height: .84; letter-spacing: -.035em; color: #fff; transform: translateY(120%); will-change: transform; }
.thai__sub { font-size: clamp(.9rem, 1.5vw, 1.15rem); letter-spacing: .34em; text-transform: uppercase; margin-top: 22px; opacity: 0; }

/* -- thailand day/night split -- */
.split { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--dark); }
.split__side { position: absolute; inset: 0; }
.split__side--night { clip-path: inset(0 0 0 var(--split, 50%)); }
.split__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.split__side--night .split__img { filter: saturate(1.05) brightness(.9); }
.split__handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 52px; margin-left: -26px; z-index: 4; cursor: ew-resize; touch-action: none; }
.split__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; }
.split__handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 6px 24px -8px rgba(0,0,0,.5); }
.split__label { position: absolute; z-index: 3; color: #fff; font-family: var(--font-display); font-weight: 460; font-size: clamp(1.6rem, 3.5vw, 3rem); line-height: 1; }
.split__label span { display: block; font-family: var(--font-body); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; font-weight: 600; margin-bottom: 6px; }
.split__label--day { left: clamp(22px, 6vw, 80px); bottom: 60px; }
.split__label--night { right: clamp(22px, 6vw, 80px); bottom: 60px; text-align: right; }
.split__title { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); z-index: 3; color: #fff; text-align: center; font-size: clamp(2.2rem, 7vw, 6rem); white-space: nowrap; }

/* -- destination discovery -- */
.discover { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--dark); color: #fff; }
.discover__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .7s ease; opacity: 1; }
.discover__bg.is-fading { opacity: 0; }
.discover__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,8,.55), rgba(12,10,8,.35)); z-index: 1; }
.discover__inner { position: relative; z-index: 2; padding: clamp(90px, 12vh, 130px) 0 clamp(40px, 6vh, 80px); }
.discover__head { display: flex; align-items: baseline; justify-content: space-between; padding-inline: clamp(22px, 6vw, 90px); margin-bottom: 24px; }
.discover__head .eyebrow { color: rgba(255,255,255,.8); }
.discover__head .hint { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.discover__item { display: flex; align-items: baseline; gap: 22px; padding: 12px clamp(22px, 6vw, 90px); border-top: 1px solid rgba(255,255,255,.16); }
.discover__item:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.discover__num { font-family: var(--font-body); font-size: .82rem; letter-spacing: .2em; color: rgba(255,255,255,.55); }
.discover__name { font-family: var(--font-display); font-weight: 460; font-size: clamp(2.2rem, 6.5vw, 6.5rem); line-height: 1; color: #fff; transition: transform .5s var(--ease), color .4s ease; }
.discover__tag { margin-left: auto; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); opacity: 0; transition: opacity .4s ease; }
.discover__item:hover .discover__name { transform: translateX(18px); color: var(--ivory); }
.discover__item:hover .discover__tag { opacity: 1; }

/* ---------- 08b. AI Travel Designer ---------- */
.ai { position: relative; background: var(--ivory); overflow: hidden; }
.ai__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 90px); align-items: start; position: relative; z-index: 2; }
.ai__copy h2 { margin-top: 22px; line-height: 1.08; }
.ai__copy .lead { margin-top: 24px; max-width: 40ch; }
.ai__note { margin-top: 22px; font-size: .82rem; color: var(--muted); max-width: 44ch; }
.ai__note b { color: var(--ink); }
.ai__form textarea {
  width: 100%; font: inherit; font-size: 1.08rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px 20px; min-height: 120px; resize: vertical;
}
.ai__form textarea:focus { outline: none; border-color: var(--accent); }
.ai__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .82rem; padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2); transition: border-color .2s ease, color .2s ease; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.ai__actions { margin-top: 18px; }
.ai__status { margin-top: 18px; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.ai__status.is-error { color: var(--vermilion-deep); }
.ai__results { margin-top: 12px; display: grid; gap: 14px; }
.ai__result-card { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; animation: aiIn .5s var(--ease); }
@keyframes aiIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ai__result-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.ai__result-card .t { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; line-height: 1.05; }
.ai__result-card .s { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.ai__result-card .r { grid-column: 1 / -1; font-size: .86rem; color: var(--ink-2); }
.ai__result-card .p { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--accent-deep); }
@media (max-width: 900px) { .ai__grid { grid-template-columns: 1fr; } }

/* ---------- 09. Final CTA & footer ---------- */
.final { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.final__media { position: absolute; inset: 0; }
.final__media img { width: 100%; height: 100%; object-fit: cover; }
.final__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,8,.15), rgba(12,10,8,.85)); }
.final__content { position: relative; z-index: 2; width: 100%; padding-bottom: 12vh; }
.final__content h2 { color: #fff; font-size: clamp(2.6rem, 8vw, 7rem); max-width: 16ch; margin: 22px 0 36px; }
.final__content .eyebrow { color: #fff; }

.footer { background: var(--ink); color: var(--ivory); padding-top: clamp(60px, 8vw, 100px); }
.footer__news { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-bottom: 50px; border-bottom: 1px solid rgba(244,239,230,.16); }
.footer__news h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.footer__form { display: flex; gap: 10px; }
.footer__form input { flex: 1; background: rgba(244,239,230,.08); border: 1px solid rgba(244,239,230,.25); border-radius: 999px; padding: 14px 20px; color: var(--ivory); font: inherit; }
.footer__form input:focus { outline: none; border-color: var(--gold); }
.footer__form input::placeholder { color: rgba(244,239,230,.5); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 34px; padding-block: 50px; }
.footer h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: rgba(244,239,230,.72); font-size: .92rem; transition: color .2s ease; }
.footer ul a:hover { color: #fff; }
.footer__brand p { color: rgba(244,239,230,.6); font-size: .92rem; margin-top: 16px; max-width: 34ch; }
.footer__trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.trust-mark { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 8px; background: rgba(244,239,230,.07); border: 1px solid rgba(244,239,230,.18); font-size: .74rem; color: rgba(244,239,230,.8); }
.trust-mark b { color: #fff; }
.footer__bottom { padding-block: 26px; border-top: 1px solid rgba(244,239,230,.16); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: .8rem; color: rgba(244,239,230,.5); }
.footer__bottom a { color: rgba(244,239,230,.7); }
.footer__bottom a:hover { color: #fff; }

/* ---------- 10. Inner-page components (compact) ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.page-hero { position: relative; min-height: min(64vh, 640px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--dark); padding-block: clamp(120px, 16vh, 170px) clamp(60px, 8vh, 90px); }
.page-hero .hero__media { position: absolute; inset: 0; }
.page-hero .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,10,8,.62), rgba(12,10,8,.16) 45%, rgba(12,10,8,.82)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,.86); }
.page-hero .muted { color: rgba(255,255,255,.7); }
.page-hero .eyebrow { color: #fff; }
.page-hero .badge { background: rgba(244,239,230,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: rgba(255,255,255,.66); margin-bottom: 24px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.glass { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.glass--strong { background: var(--paper); border-color: var(--line-strong); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .06em; padding: 6px 13px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--ink-2); }
.badge--cyan { color: var(--accent-deep); border-color: rgba(212,71,38,.3); background: rgba(212,71,38,.06); }
.badge--amber { color: #8a6a1f; border-color: rgba(185,138,47,.35); background: rgba(185,138,47,.1); }
.badge--pink { color: #b0465c; border-color: rgba(176,70,92,.3); background: rgba(176,70,92,.08); }
.badge--lime { color: #1f5a38; border-color: rgba(47,125,79,.3); background: rgba(47,125,79,.08); }
.card { position: relative; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.card--glow:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 70px -38px rgba(20,17,13,.35); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12,10,8,.35)); pointer-events: none; }
.card__body { padding: 22px 24px 26px; }
.card__tag { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; background: rgba(244,239,230,.9); color: var(--ink); }
.card__price { font-family: var(--font-display); font-weight: 500; color: var(--accent-deep); font-size: 1.3rem; }
.card__price span { font-size: .75rem; color: var(--muted); font-weight: 500; }
.pkg-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pkg-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.blog-card .card__media { aspect-ratio: 16 / 9; }
.dest-card .card__media { aspect-ratio: 4 / 5; }
.dest-card .card__body { position: absolute; inset: auto 0 0 0; padding: 26px 24px; }
.dest-card .card__media::after { background: linear-gradient(180deg, transparent 24%, rgba(12,10,8,.86)); }
.dest-card .card__body h3, .dest-card .card__body p { color: #fff; }
.dest-card .badge { background: rgba(244,239,230,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.inc-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.inc-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-2); font-size: .96rem; }
.inc-list li svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.prose { max-width: 720px; }
.prose h2 { margin: 2.1em 0 .6em; }
.prose h3 { margin: 1.7em 0 .5em; }
.prose p { margin: 1em 0; color: var(--ink-2); }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.4em; color: var(--ink-2); display: grid; gap: 8px; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--accent); background: var(--ivory); border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink-2); }
.prose img { border-radius: 12px; margin: 1.6em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.kpi { text-align: center; padding: 30px 20px; }
.kpi b { font-family: var(--font-display); font-size: 2.6rem; font-weight: 480; color: var(--accent); }
.kpi span { display: block; font-size: .87rem; color: var(--muted); margin-top: 6px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 40px; }
.filter-bar select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 20px; min-width: 160px; cursor: pointer; }
.filter-bar select:focus { outline: none; border-color: var(--accent); }
.filter-count { margin-left: auto; font-size: .86rem; color: var(--muted); }
.cta-banner { border-radius: 12px; padding: clamp(40px, 6vw, 64px); background: var(--ink); color: #fff; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner .lead { color: rgba(244,239,230,.8); }
.cta-banner .hero__actions { justify-content: center; margin-top: 28px; }
.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--vermilion); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 15px; transition: border-color .25s ease, box-shadow .25s ease; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,71,38,.14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--vermilion); }
.field__error { font-size: .8rem; color: var(--vermilion-deep); display: none; }
.field.has-error .field__error { display: block; }
.form-note { font-size: .8rem; color: var(--muted); }
.checkbox { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.form-success { display: none; padding: 26px; border-radius: 12px; background: rgba(47,125,79,.1); border: 1px solid rgba(47,125,79,.35); }
.form-success.is-visible { display: block; }
.btn--whatsapp { background: #e8f5ec; color: #1c7a44; border-color: rgba(37,211,102,.4); }
/* ---- Z-index scale (low -> high) ----
   90 nav · 100 chat-fab / wa-fab · 101 chat window · 120 search overlay · 1000 cursor */
.chat-fab { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 100; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--ivory); display: grid; place-items: center; box-shadow: 0 16px 44px -16px rgba(0,0,0,.5); transition: background .25s ease, color .25s ease; }
.chat-fab:hover { background: var(--accent); color: #fff; }
.chat-fab svg { width: 27px; height: 27px; }
.chat-window { position: fixed; right: 22px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 101; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 150px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -32px rgba(20,17,13,.75); opacity: 0; pointer-events: none; transform: translateY(16px) scale(.98); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.chat-window.is-open { opacity: 1; pointer-events: auto; transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 18px; background: var(--ink); color: #fff; }
.chat-head__avatar { width: 42px; height: 42px; border-radius: 50%; background: rgba(244,239,230,.16); color: #fff; display: grid; place-items: center; font-weight: 600; font-family: var(--font-display); }
.chat-head__title { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }
.chat-head__sub { font-size: .74rem; opacity: .8; }
.chat-close { margin-left: auto; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; font-size: 1.6rem; line-height: 1; transition: background .2s ease; }
.chat-close:hover { background: rgba(255,255,255,.3); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.55; }
.msg--bot { align-self: flex-start; background: var(--ivory); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.msg--user { align-self: flex-end; background: var(--ink); color: var(--ivory); border-bottom-right-radius: 4px; }
.msg a { color: var(--accent-deep); text-decoration: underline; }
.typing { display: inline-flex; gap: 5px; padding: 13px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,60%,100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.quick-replies .chip { font-size: .82rem; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2); }
.quick-replies .chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.wa-fab { position: fixed; left: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 100; width: 56px; height: 56px; border-radius: 50%; background: #1dbf5e; color: #fff; display: grid; place-items: center; }
.wa-fab svg { width: 27px; height: 27px; }

/* ---------- 11. Reveal + no-gsap fallback ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }

/* if GSAP is unavailable, reveal the hidden scene layers and let the
   Japan stage fall back to stacked (intrinsic) blocks instead of overlap */
.no-gsap .japan__stage { height: auto; overflow: visible; }
.no-gsap .japan__block { position: relative; inset: auto; height: 100vh; height: 100svh; }
.no-gsap .japan__block--kyoto { clip-path: inset(0 0 0 0) !important; }
.no-gsap .japan__train { display: none; }
.no-gsap .thai__bg { clip-path: inset(0 0 0 0) !important; }
.no-gsap .thai__title { transform: none !important; }
.no-gsap .thai__sub { opacity: 1 !important; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1100px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta .nav__phone, .nav__ai { display: none; }
  .nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid currentColor; }
  .footer__news { grid-template-columns: 1fr; }
  .split__title { top: 40px; }
}
@media (max-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .discover__tag { display: none; }
  .discover__name { font-size: clamp(1.9rem, 9vw, 3rem); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .split__title { white-space: normal; font-size: clamp(1.8rem, 8vw, 2.6rem); top: 34px; }
}

/* Mobile / touch: simplify pinned scenes into stacked intrinsic blocks.
   The cinematic wipe (pin) is desktop-only; mobile keeps the same imagery
   and typography in clean, touch-friendly normal flow. */
@media (max-width: 768px) {
  .japan__stage { height: auto; overflow: visible; }
  .japan__block { position: relative; inset: auto; height: 100vh; height: 100svh; }
  .japan__block--kyoto { clip-path: inset(0 0 0 0); }
  .japan__train { display: none; }
  .japan__type { padding-inline: clamp(22px, 7vw, 40px); }
}

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .japan__stage { height: auto; overflow: visible; }
  .japan__block { position: relative; inset: auto; height: 100vh; height: 100svh; }
  .japan__block--kyoto { clip-path: inset(0 0 0 0) !important; }
  .japan__train { display: none; }
  .thai__bg { clip-path: inset(0 0 0 0) !important; }
  .thai__title { transform: none !important; }
  .thai__sub { opacity: 1 !important; }
}
