/* GMP 2027 showcase. A standalone public page: no app bundle, no sign-in. */
@font-face { font-family: 'Bricolage'; src: url('fonts/BricolageGrotesque-var.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('fonts/Figtree-var.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --ink: #12233d;
  --ink-2: #1d3a5f;
  --paper: #fff8ef;
  --card: #ffffff;
  --text: #1b2433;
  --muted: #5b6475;
  --line: #e9dfd2;
  --sun: #ff7a3d;
  --sun-ink: #ffffff;
  --sun-text: #c2410c;   /* orange that passes AA as text on light backgrounds */
  --gold: #ffc94a;
  --sky: #3d8fd1;
  --jnms: #d93a22;
  --swk: #2f5d9e;
  --swpy: #12877d;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(18, 35, 61, .12);
  --shadow-lg: 0 24px 60px rgba(18, 35, 61, .22);
  --display: 'Bricolage', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; color: var(--ink); max-width: 20ch; }
h3 { font-size: 22px; font-weight: 750; }
.flag { display: inline-block; width: 1.2em; height: .8em; vertical-align: -.06em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 max(20px, var(--safe-left)) 0 max(20px, var(--safe-right)); }
.wrap.narrow { max-width: 820px; }
.section { padding: 96px 0; position: relative; }
.kicker { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun-text); margin-bottom: 14px; }
.kicker.light { color: var(--gold); }
.sub { color: var(--muted); margin-top: 12px; font-size: 18px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sun { background: #ea580c; color: var(--sun-ink); box-shadow: 0 8px 22px rgba(255, 122, 61, .4); }
.btn-sun:hover { box-shadow: 0 12px 28px rgba(255, 122, 61, .5); background: #d9500a; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-lg { min-height: 60px; padding: 16px 34px; font-size: 20px; }
.btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; }

/* top bar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: max(10px, var(--safe-top)) max(20px, var(--safe-right)) 10px max(20px, var(--safe-left)); color: #fff; transition: background .25s ease, box-shadow .25s ease; }
.topbar.solid { background: rgba(18, 35, 61, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 19px var(--display); text-decoration: none; }
.brand b { color: var(--gold); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--sun); font-size: 18px; transform: rotate(-12deg); }
.topnav { display: flex; gap: 6px; margin-left: auto; }
.topnav a { text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; opacity: .9; }
.topnav a:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.passport-btn { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; border-radius: 999px; padding: 6px 14px 6px 8px; cursor: pointer; }
.passport-btn:hover { background: rgba(255, 255, 255, .2); }
.passport-icon { width: 24px; height: 30px; border-radius: 4px; background: #7a2335; position: relative; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .2); }
.passport-icon::after { content: ''; position: absolute; inset: 8px 5px; border: 1.5px solid var(--gold); border-radius: 50%; }
.passport-btn.bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: scale(1.18) rotate(-4deg); } 60% { transform: scale(.95); } }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; color: #fff; overflow: hidden; padding: calc(96px + var(--safe-top)) 0 150px;
  background: radial-gradient(1200px 600px at 75% 105%, #ffb36b 0%, rgba(255, 179, 107, 0) 60%), linear-gradient(180deg, #0f1f38 0%, #1e3c66 45%, #4a6fa0 72%, #f3a26b 100%); }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: .5; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .1; } }
.cloud { position: absolute; left: 0; animation: drift linear infinite; will-change: transform; }
.cloud svg { display: block; width: 100%; height: auto; overflow: visible; }
.cloud path { fill: url(#cloudGrad); }
.cloud { filter: blur(.6px) drop-shadow(0 8px 14px rgba(255, 140, 90, .25)); }
.c1 { width: 200px; top: 46%; opacity: .32; animation-duration: 140s; animation-delay: -30s; }
.c2 { width: 130px; top: 22%; opacity: .14; animation-duration: 180s; animation-delay: -110s; }
.c3 { width: 280px; top: 62%; opacity: .5; animation-duration: 160s; animation-delay: -70s; }
.c4 { width: 180px; top: 72%; opacity: .55; animation-duration: 200s; animation-delay: -150s; }
@keyframes drift { from { transform: translateX(-280px); } to { transform: translateX(calc(100vw + 40px)); } }
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 200px; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 7vw, 82px); font-weight: 800; }
.hl { background: linear-gradient(90deg, var(--gold), #ff9a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 34em; margin-top: 22px; color: rgba(255, 255, 255, .9); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.countdown-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; font-size: 15px; }
.countdown-chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #5dff9d; box-shadow: 0 0 0 0 rgba(93, 255, 157, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(93, 255, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 255, 157, 0); } }
.tbc { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--gold); color: var(--ink); vertical-align: 2px; margin-left: 6px; }

/* route map */
.route { position: relative; margin: 0; width: 100%; max-width: 380px; justify-self: center; aspect-ratio: 360 / 430; }
.route svg { width: 100%; height: 100%; overflow: hidden; border-radius: 28px; }
.route-line { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.route-line.draw { animation: dash 1.6s ease forwards; }
.plane text { fill: #fff; }
.route figcaption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .8); }
.pin { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; }
.pin::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(255, 201, 74, .25); transition: transform .2s; }
.pin span { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; line-height: 1.1; font: 700 16px var(--display); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); text-align: left; white-space: nowrap; padding: 4px 0; }
.pin small { font: 800 11px var(--body); letter-spacing: .1em; color: var(--gold); }
.pin-left span { left: auto; right: 28px; text-align: right; align-items: flex-end; }
.pin-up span { transform: translateY(-80%); }
.pin-down span { transform: translateY(-15%); }
.pin-sg { cursor: default; }
.pin-sg::before { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
.pin-trip:hover::before, .pin-trip:focus-visible::before { transform: scale(1.35); }
.pin-trip::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* trip cards */
.picker { padding-top: 56px; }   /* same paper as .where: no second background to paint over its card shadows */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; perspective: 1200px; }
.trip-card { --c: var(--sky); position: relative; display: flex; flex-direction: column; text-align: left; background: var(--c); color: #fff; border: 0; border-radius: 32px; padding: 14px; cursor: pointer; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; transform-style: preserve-3d; }
.trip-card:hover { box-shadow: var(--shadow-lg); }
.trip-card .photo { position: relative; aspect-ratio: 4 / 3.6; border-radius: 24px; overflow: hidden; border: 4px solid #fff; }
.trip-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.trip-card:hover .photo img { transform: scale(1.06); }
.trip-card .when { position: absolute; top: 14px; right: -4px; background: var(--c); color: #fff; font: 800 16px var(--display); padding: 6px 12px; border: 3px solid #fff; border-right: 0; border-radius: 10px 0 0 10px; }
.trip-card .code { position: absolute; left: 16px; bottom: 10px; font: 800 52px/1 var(--display); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 0 18px rgba(0, 0, 0, .3); letter-spacing: .01em; }
.trip-card .meta { padding: 16px 8px 8px; }
.trip-card .school { font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.trip-card .place { font: 800 24px/1.15 var(--display); margin-top: 4px; }
.trip-card .tag { margin-top: 10px; font-size: 15px; opacity: .92; }
.trip-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 15px; background: rgba(255, 255, 255, .18); padding: 8px 14px; border-radius: 999px; }
.trip-card .go::after { content: '→'; transition: transform .2s; }
.trip-card:hover .go::after { transform: translateX(4px); }
.trip-card .stamp-mini { position: absolute; top: 18px; left: 18px; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; font: 800 10px/1.1 var(--body); text-align: center; letter-spacing: .06em; background: rgba(0, 0, 0, .35); transform: rotate(-14deg) scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.trip-card.stamped .stamp-mini { transform: rotate(-14deg) scale(1); }

/* explorer */
.explorer { background: linear-gradient(180deg, var(--paper) 0%, #f6eadb 100%); padding-top: 24px; }
.tabs-wrap { position: sticky; top: calc(62px + var(--safe-top)); z-index: 20; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 auto 32px; pointer-events: none; }
.tabs-wrap > * { pointer-events: auto; }
.tabs { display: flex; gap: 8px; padding: 8px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; box-shadow: var(--shadow); width: fit-content; }
.tab-progress { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; box-shadow: var(--shadow); padding: 12px 16px; font-weight: 800; font-size: 14px; color: var(--ink); white-space: nowrap; }
.tp-dots { display: flex; gap: 4px; }
.tp-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e2d8c9; transition: background .3s, transform .3s; }
.tp-dots i.on { background: var(--c); transform: scale(1.15); }
.tp-done { color: var(--c); }
.tab { border: 0; background: transparent; border-radius: 999px; padding: 10px 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--ink); transition: background .2s, color .2s; }
.tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tab:hover { background: rgba(18, 35, 61, .06); }
.tab[aria-selected="true"] { background: var(--c); color: #fff; }
.tab[aria-selected="true"] .dot { background: #fff; }

.panel { --c: var(--sky); outline: none; }
.panel.enter > * { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.panel.enter > *:nth-child(2) { animation-delay: .06s; }
.panel.enter > *:nth-child(3) { animation-delay: .12s; }
.panel.enter > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.trip-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.trip-head h2 { color: var(--c); max-width: none; }
.trip-head .school-name { font-weight: 700; font-size: 18px; color: var(--ink); margin-top: 6px; }
.trip-head .pill { background: var(--c); color: #fff; font: 800 18px var(--display); padding: 10px 18px; border-radius: 14px; }


.video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; background: #000; }
.feature { position: relative; }
.feature:not(.seatback)::before { content: ''; position: absolute; inset: -18px -18px auto; height: 70%; border-radius: 40px; background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%); z-index: -1; }
.video .teaser { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 0; padding: 0; cursor: pointer; background: transparent; color: #fff; }
.video .play::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .6)); transition: background .3s; }
.video .play:hover::before { background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)), linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); }
.video .play-btn { position: relative; width: 112px; height: 112px; border-radius: 50%; background: #ea580c; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s; }
.video .play-btn::after { content: ''; border-left: 34px solid #fff; border-top: 21px solid transparent; border-bottom: 21px solid transparent; margin-left: 10px; }
.video .play-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; animation: ring 2.2s ease-out infinite; }
.video .play-cta { position: relative; font: 800 clamp(22px, 3vw, 34px) var(--display); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.video .v-tag { position: absolute; top: 18px; left: 18px; background: rgba(0, 0, 0, .55); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video .runtime { position: absolute; right: 18px; bottom: 18px; background: rgba(0, 0, 0, .65); padding: 5px 11px; border-radius: 8px; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.video .play:hover .play-btn { transform: scale(1.1); }
.video .play-label { position: absolute; left: 20px; bottom: 16px; color: #fff; font: 800 20px var(--display); text-align: left; max-width: 70%; }
.video .play-label small { display: block; font: 600 14px var(--body); opacity: .9; }

.facts { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-top: 24px; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 22px; }
.facts h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.fact .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--c) 12%, white); }
.fact b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact span { font-weight: 600; }
.count { font-variant-numeric: tabular-nums; }

/* itinerary stepper */
.block { margin-top: 56px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.block-head h3 { font-size: 28px; color: var(--ink); }
.block-head p { color: var(--muted); }
.stops { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.stop { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 130px; border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px 14px; cursor: pointer; text-align: left; transition: border-color .2s, transform .2s, background .2s; }
.stop:hover { transform: translateY(-2px); border-color: var(--c); }
.stop small { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.stop span { font-weight: 700; color: var(--ink); line-height: 1.25; }
.stop[aria-selected="true"] { background: var(--c); border-color: var(--c); }
.stop[aria-selected="true"] small, .stop[aria-selected="true"] span { color: #fff; }
.stop-view { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.stop-view .pic { position: relative; background: #ddd; cursor: zoom-in; border: 0; padding: 0; }
.stop-view .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stop-view .txt { padding: 30px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.stop-view .txt small { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c); font-size: 13px; }
.stop-view .txt h4 { font: 800 28px/1.1 var(--display); color: var(--ink); margin: 0; }
.stop-view ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.stop-view li { position: relative; padding-left: 26px; }
.stop-view li::before { content: '✦'; position: absolute; left: 0; color: var(--c); }
.stop-view.swap .pic img, .stop-view.swap .txt > * { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.stop-nav { display: flex; gap: 8px; margin-top: 4px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); cursor: pointer; font-size: 20px; display: grid; place-items: center; color: var(--ink); transition: border-color .2s, background .2s; }
.round:hover { border-color: var(--c); }
.round:disabled { opacity: .35; cursor: default; }

/* slides */
.deck { position: relative; }
.deck-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; touch-action: pan-y; }
.deck-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.deck-track img { flex: none; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.deck .lb-open { position: absolute; top: 14px; right: 14px; background: rgba(0, 0, 0, .55); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.deck .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .2s; }
.deck .arrow:hover { transform: translateY(-50%) scale(1.08); }
.deck .arrow.prev { left: 14px; }
.deck .arrow.next { right: 14px; }
.deck .counter { position: absolute; left: 14px; bottom: 14px; background: rgba(0, 0, 0, .6); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.deck-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.deck-thumbs button { flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s, transform .2s; scroll-snap-align: center; background: #ddd; }
.deck-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.deck-thumbs button[aria-current="true"] { border-color: var(--c); opacity: 1; }
.deck-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* photo mosaic */
.mosaic { columns: 4 200px; column-gap: 12px; }
.mosaic button { position: relative; display: block; width: 100%; margin: 0 0 12px; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #ddd; break-inside: avoid; }
.mosaic img { width: 100%; height: auto; max-height: 420px; object-fit: cover; transition: transform .5s ease; }
.mosaic button:hover img { transform: scale(1.07); }
.mosaic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-weight: 700; font-size: 14px; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.mosaic button:hover span, .mosaic button:focus-visible span { opacity: 1; transform: none; }

/* quotes */
.quotes { position: relative; background: var(--c); color: #fff; border-radius: var(--radius); padding: 40px 44px 30px; overflow: hidden; }
.quotes::before { content: '“'; position: absolute; top: -40px; left: 18px; font: 800 220px/1 var(--display); opacity: .15; }
.quote { font: 600 clamp(20px, 2.4vw, 26px)/1.4 var(--display); max-width: 42em; position: relative; min-height: 3em; }
.quote-by { margin-top: 14px; font-weight: 700; opacity: .85; }
.quote-dots { display: flex; gap: 8px; margin-top: 20px; }
.quote-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .25s, background .25s; }
.quote-dots button[aria-current="true"] { width: 30px; border-radius: 6px; background: #fff; }
.quote.fade { animation: fadeUp .5s ease both; }

/* quiz */
.quiz { background: var(--ink); color: #fff; overflow: hidden; }
.quiz h2 { color: #fff; }
.quiz .sub { color: rgba(255, 255, 255, .75); }
.quiz-card { margin-top: 34px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 28px; padding: 30px; position: relative; }
.q-progress { height: 8px; background: rgba(255, 255, 255, .12); border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.q-progress i { display: block; height: 100%; background: var(--gold); border-radius: 4px; transition: width .4s ease; }
.q-step { font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.q-text { font: 800 clamp(24px, 3vw, 32px)/1.15 var(--display); margin: 10px 0 22px; }
.q-opts { display: grid; gap: 12px; }
.q-opt { display: flex; align-items: center; gap: 16px; text-align: left; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .16); color: #fff; border-radius: 18px; padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 18px; transition: background .2s, border-color .2s, transform .2s; }
.q-opt:hover { background: rgba(255, 255, 255, .14); border-color: var(--gold); transform: translateX(4px); }
.q-opt .em { font-size: 30px; flex: none; width: 44px; text-align: center; }
.q-opt.picked { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.q-anim { animation: slideIn .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
.result { text-align: center; }
.result .r-badge { width: 130px; height: 130px; margin: 6px auto 18px; border-radius: 50%; display: grid; place-items: center; font: 800 30px var(--display); background: var(--c); border: 5px dashed rgba(255, 255, 255, .8); transform: rotate(-10deg); animation: stampIn .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stampIn { from { transform: rotate(-10deg) scale(2.4); opacity: 0; } }
.result h3 { font-size: clamp(26px, 3.4vw, 36px); }
.result p { color: rgba(255, 255, 255, .85); margin: 12px auto 0; max-width: 32em; }
.result .r-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.result .r-also { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 28px; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(560px) rotate(720deg); opacity: 0; } }

/* skills flip cards */
.skills { background: var(--paper); }
.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.flip { display: block; width: 100%; perspective: 1000px; border: 0; padding: 0; background: none; cursor: pointer; height: 210px; text-align: left; }
.flip-inner { display: block; position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
.flip[aria-pressed="true"] .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.flip-front { background: var(--card); }
.flip-front .em { font-size: 40px; }
.flip-front h3 { color: var(--ink); }
.flip-front small { color: var(--muted); font-weight: 600; }
.flip-back { background: var(--ink); color: #fff; transform: rotateY(180deg); justify-content: center; gap: 10px; }
.flip-back p { font: 600 18px/1.45 var(--display); }
.flip-back small { color: var(--gold); font-weight: 700; }

/* timeline */
.timeline-sec { background: #f6eadb; }
/* Key dates sits inside the plane: overhead bins, cabin walls, a row of windows down each side */
.cabin { background:

    linear-gradient(90deg, #e4dfd7 0%, #efebe5 18%, #f5f2ed 50%, #efebe5 82%, #e4dfd7 100%);
  padding-top: 130px; }
.cabin-bins { position: absolute; left: 0; right: 0; top: 0; height: 70px; background: url(cabin-bin.svg) center top / 320px 70px repeat-x; box-shadow: 0 6px 14px rgba(0, 0, 0, .08); z-index: 1; }
.cabin-sign { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; background: #2b2f36; border-radius: 14px; padding: 10px 18px; box-shadow: 0 0 0 3px #d9d3c9; }
.cabin-sign svg { display: block; width: 44px; height: 40px; fill: none; stroke: #ffd36b; stroke-width: 1.8; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255, 211, 107, .6)); animation: signGlow 3s ease-in-out infinite; }
@keyframes signGlow { 50% { opacity: .65; } }
.cabin .tl .card { box-shadow: 0 8px 22px rgba(60, 50, 40, .1); }
@media (max-width: 1000px) { .cabin { background: linear-gradient(90deg, #e4dfd7 0%, #f5f2ed 50%, #e4dfd7 100%); } }
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--line); }
.timeline .fill { position: absolute; left: 23px; top: 8px; width: 4px; border-radius: 2px; background: linear-gradient(var(--sun), var(--gold)); height: 0; transition: height 1.4s ease; }
.tl { position: relative; padding: 0 0 30px 72px; }
.tl:last-child { padding-bottom: 0; }
.tl .node { position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--card); border: 4px solid var(--line); display: grid; place-items: center; font-size: 22px; transition: border-color .4s, transform .4s; z-index: 1; }
.tl.done .node { border-color: var(--sun); }
.tl.next .node { border-color: var(--sun); transform: scale(1.12); box-shadow: 0 0 0 8px rgba(255, 122, 61, .18); }
.tl .when { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-text); }
.tl h3 { color: var(--ink); margin-top: 4px; }
.tl p { color: var(--muted); margin-top: 4px; }
.tl .card { background: var(--card); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); }
.tl.next .card { outline: 2px solid var(--sun); }
.tl .now { display: inline-block; margin-left: 8px; background: var(--sun-text); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; vertical-align: 2px; }

/* CTA */
.cta { background: radial-gradient(800px 400px at 85% 10%, rgba(255, 122, 61, .35), transparent 60%), linear-gradient(160deg, var(--ink) 0%, #23497a 100%); color: #fff; }
.cta h2 { color: #fff; font-size: clamp(36px, 5.5vw, 62px); }
.cta-inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 50px; align-items: center; }
.cta-copy > p { margin-top: 16px; font-size: 19px; color: rgba(255, 255, 255, .88); max-width: 34em; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; padding: 14px 18px 14px 66px; position: relative; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 800 18px var(--display); display: grid; place-items: center; }
.steps span { color: rgba(255, 255, 255, .78); font-size: 15px; }
.cta-buttons { margin-top: 30px; }
.cta .btn-lg { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 8px 22px rgba(255, 122, 61, .4), 0 0 0 10px rgba(255, 122, 61, .15); } }
.qr { background: #fff; color: var(--ink); border-radius: 28px; padding: 24px; text-align: center; box-shadow: var(--shadow-lg); transform: rotate(2deg); transition: transform .3s; max-width: 340px; justify-self: center; width: 100%; }
.qr:hover { transform: rotate(0) scale(1.02); }
.qr-frame { aspect-ratio: 1; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-placeholder { width: 100%; height: 100%; border: 3px dashed #c7cbd3; border-radius: 16px; display: grid; place-items: center; color: var(--muted); font-weight: 700; padding: 20px; }
.qr p { margin-top: 14px; font: 800 20px var(--display); }

.footer { background: #0b1729; color: rgba(255, 255, 255, .85); text-align: center; padding: 34px 20px calc(34px + var(--safe-bottom)); font-size: 15px; display: grid; gap: 6px; }
.footer .muted { color: rgba(255, 255, 255, .6); }

/* mobile dock */
.dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; background: rgba(18, 35, 61, .95); color: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: 15px; transform: translateY(150%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.dock.show { transform: none; }

/* passport dialog */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8, 16, 30, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .08); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.passport-book { position: relative; width: min(460px, calc(100vw - 32px)); background: #7a2335; color: #fff; border-radius: 22px; padding: 30px 26px 28px; box-shadow: var(--shadow-lg); }
.passport-book .x { background: rgba(255, 255, 255, .15); color: #fff; }
.passport-book .muted { color: rgba(255, 255, 255, .75); margin-top: 6px; }
.passport-book .kicker { color: var(--gold); }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; background: #fbf3e4; border-radius: 14px; padding: 18px 14px; }
.stamp { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; }
.stamp .stamp-svg { width: 100%; aspect-ratio: 1; }
.stamp.on .stamp-svg { animation: stampIn .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.stamp-cap { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8b7d66; }
.stamp.on .stamp-cap { color: #5f513b; }
.passport-done { margin-top: 18px; text-align: center; font-weight: 700; color: var(--gold); }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; margin: 0; inset: 0; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(5, 10, 20, .92); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; padding: calc(60px + var(--safe-top)) 10px calc(20px + var(--safe-bottom)); height: 100%; justify-content: center; touch-action: pan-y; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #fff; font-weight: 600; text-align: center; }
.lightbox .x { background: rgba(255, 255, 255, .15); color: #fff; top: max(12px, var(--safe-top)); }
.lb-nav { width: 56px; height: 56px; margin: 0 12px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .28); }

/* ONE breakpoint, as across the suite */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .topnav { display: none; }
  .topbar { gap: 10px; }
  .passport-btn { margin-left: auto; }
  .topbar-cta { display: none; }
  .hero { padding-bottom: 120px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .route { max-width: 300px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .cards { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .trip-card { flex-direction: row; gap: 14px; border-radius: 26px; padding: 10px; align-items: center; }
  .trip-card .photo { width: 42%; flex: none; aspect-ratio: 1; border-radius: 20px; border-width: 3px; }
  .trip-card .code { font-size: 30px; left: 10px; bottom: 6px; }
  .trip-card .when { position: static; display: inline-block; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .2); font-size: 14px; padding: 3px 9px; margin-bottom: 6px; }
  .trip-card .meta { padding: 4px 4px 4px 0; }
  .trip-card .school { font-size: 12px; }
  .trip-card .place { font-size: 20px; }
  .trip-card .tag { display: none; }
  .trip-card .go { margin-top: 10px; padding: 6px 12px; font-size: 14px; }
  .trip-card .stamp-mini { width: 44px; height: 44px; font-size: 8px; top: 12px; left: 12px; }
  .tabs-wrap { top: calc(58px + var(--safe-top)); flex-direction: column; gap: 6px; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab-progress { padding: 6px 12px; font-size: 12px; }
  .tab { flex: 1; justify-content: center; padding: 10px 8px; }
  .video .play-btn { width: 76px; height: 76px; }
  .video .play-btn::after { border-left-width: 24px; border-top-width: 15px; border-bottom-width: 15px; margin-left: 7px; }
  .video .play { gap: 10px; }
  .video .play-cta { font-size: 20px; }
  .video .play-label { display: none; }
  .video .v-tag { top: 10px; left: 10px; font-size: 12px; padding: 5px 10px; }
  .video .runtime { right: 10px; bottom: 10px; font-size: 13px; }
  .feature { margin: 0 -8px; }
  .fact-grid { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .fact { flex-direction: column; gap: 6px; }
  .fact .ico { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
  .fact span { font-size: 15px; line-height: 1.35; display: block; }
  .stop-view { grid-template-columns: 1fr; min-height: 0; }
  .stop-view .pic { aspect-ratio: 4 / 3; }
  .stop-view .txt { padding: 22px; }
  .stop-view .txt h4 { font-size: 24px; }
  .deck .arrow { width: 40px; height: 40px; font-size: 22px; }
  .deck .arrow.prev { left: 8px; }
  .deck .arrow.next { right: 8px; }
  .deck .lb-open { top: 8px; right: 8px; font-size: 13px; padding: 6px 12px; }
  .deck-thumbs button { width: 96px; }
  .mosaic { columns: 2; column-gap: 8px; }
  .mosaic button { margin-bottom: 8px; }
  .mosaic span { opacity: 1; transform: none; font-size: 13px; }
  .quotes { padding: 34px 24px 24px; }
  .block { margin-top: 44px; }
  .block-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .block-head h3 { font-size: 24px; }
  .quiz-card { padding: 22px 18px; }
  .q-opt { font-size: 16px; padding: 14px; }
  .flips { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flip { height: 190px; }
  .flip-face { padding: 16px; }
  .flip-front h3 { font-size: 18px; }
  .flip-back p { font-size: 15px; }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta .btn-lg { width: 100%; }
  .qr { max-width: 280px; }
  .dock { display: flex; }
  .footer { padding-bottom: calc(96px + var(--safe-bottom)); }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-nav { display: none; }
}


/* toast */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(76px + var(--safe-top)); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* hero map: real outlines (Natural Earth 1:50m) */
.route { max-width: 420px; aspect-ratio: 400 / 524; }
.land { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .22); stroke-width: .6; stroke-linejoin: round; }
.land.china { fill: #7c3441; stroke: rgba(255, 255, 255, .7); stroke-width: 1; }
.land.thailand { fill: #1f9184; stroke: rgba(255, 255, 255, .8); stroke-width: 1; }
.map-labels text { fill: rgba(255, 255, 255, .45); font: 700 8px var(--body); letter-spacing: .14em; }
.map-labels text.big { fill: #fff; font: 800 15px var(--display); letter-spacing: .2em; opacity: .9; }
.map-labels text.big.th { font-size: 11px; }
.map-labels text.sea { font: italic 600 9px var(--body); letter-spacing: .04em; fill: rgba(255, 255, 255, .4); }
.pin-sm { width: 13px; height: 13px; }
.pin-sm::before { border-width: 2px; box-shadow: 0 0 0 4px rgba(255, 201, 74, .25); }
.pin-sm span { right: 22px; }

/* where in the world */
.where { background: var(--paper); padding-bottom: 40px; }
.where-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.country { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 24px 26px 26px; display: grid; grid-template-columns: 1fr; gap: 14px; align-content: start; border-top: 6px solid var(--c); }
.country-map { background: linear-gradient(180deg, #eef5fb, #f7fafc); border-radius: 18px; padding: 14px; }
.country-map svg { display: block; width: 100%; height: 280px; overflow: visible; }
.sil { stroke-width: 1.5; stroke-linejoin: round; }
.sil.china { fill: color-mix(in srgb, var(--jnms) 18%, white); stroke: var(--jnms); }
.sil.thailand { fill: color-mix(in srgb, var(--swpy) 18%, white); stroke: var(--swpy); }
.country-map circle.ref { fill: #fff; stroke: var(--muted); stroke-width: 1.5; }
.country-map circle.trip { fill: var(--sun); stroke: #fff; stroke-width: 2; }
.country-map text { font: 600 15px var(--body); fill: var(--muted); }
.country-map text.trip { font: 800 19px var(--display); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.country-map text.ref { paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.country-map text.nb { font: 800 13px var(--body); letter-spacing: .12em; fill: #9aa3b2; }
.country h3 { color: var(--ink); font-size: 26px; display: flex; gap: 10px; align-items: center; }
.country ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.country li { position: relative; padding-left: 20px; }
.country li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.country-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.country-go { margin-top: 16px; background: var(--c); color: #fff; }
.country-go:hover { filter: brightness(1.08); }
@media (max-width: 1060px) { .where-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .country { grid-template-columns: 1fr; padding: 20px; }
  .country-map svg { height: 230px; }
}

/* keep exploring: next trip */
.next-up { background: var(--ink); color: #fff; border-radius: 28px; padding: 28px; }
.next-head h3 { color: #fff; font-size: 26px; }
.next-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.next-card { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .15); color: #fff; border-radius: 20px; padding: 10px; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.next-card img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.next-card .nc-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.next-card small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.next-card b { font: 800 24px var(--display); }
.next-card .nc-txt > span { font-size: 14px; color: rgba(255, 255, 255, .8); }
.next-card:hover { transform: translateY(-3px); border-color: #fff; }
.next-card.here { cursor: default; opacity: .55; }
.next-card.here:hover { transform: none; border-color: rgba(255, 255, 255, .15); }
.next-card.go { background: var(--c); border-color: var(--c); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: nudge 2.4s ease-in-out infinite; }
.next-card.go small { color: var(--gold); }
.nc-arrow { margin-left: auto; font-size: 28px; font-weight: 800; padding-right: 6px; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(6px); } 90% { transform: translateX(-2px); } }
@media (max-width: 820px) {
  .next-up { padding: 22px 16px; }
  .next-head h3 { font-size: 22px; }
  .next-row { grid-template-columns: 1fr; gap: 10px; }
  .next-card.go { order: -1; }
  .next-card img { width: 60px; height: 60px; }
}

.q-opts.q-emoji { grid-template-columns: repeat(3, 1fr); }
.q-emoji .q-opt { justify-content: center; padding: 22px 10px; }
.q-emoji .q-opt .em { font-size: 52px; width: auto; }

.flip-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.flip-top .domain { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sun-text); text-align: right; max-width: 60%; line-height: 1.3; }
@media (max-width: 820px) { .flip-top .domain { font-size: 9px; } .flip-front .em { font-size: 32px; } }

/* kickers on the dark sections keep the bright orange */
.quiz .kicker, .next-up .kicker { color: var(--sun); }

.tl.host .card { background: #fffaf0; border: 1px dashed #e9c98b; }
.host-tag { float: right; margin-left: 10px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a5a00; background: #ffefc2; padding: 3px 8px; border-radius: 6px; }
@media (max-width: 820px) { .host-tag { float: none; display: inline-block; margin: 0 0 6px; } }

.trip-card .montage-chip { position: absolute; right: 12px; bottom: 14px; background: rgba(0, 0, 0, .65); color: #fff; font: 800 14px var(--body); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@media (max-width: 820px) { .trip-card .montage-chip { right: 6px; top: 6px; bottom: auto; font-size: 11px; padding: 3px 7px; } }

/* rubber stamps */
.stamp-svg { display: block; overflow: visible; mix-blend-mode: multiply; }
.stamp-svg text { text-anchor: middle; font-family: var(--display); }
.stamp-svg .ring { font: 800 12.5px var(--body); letter-spacing: .14em; text-anchor: start; }
.stamp-svg .band { font: 800 12px var(--body); letter-spacing: .12em; }
.stamp-svg .band.sm { font-size: 10px; letter-spacing: .08em; }
.stamp-svg .plane.sm { font-size: 16px; }
.stamp-svg .local.sm { font-size: 15px; }
.stamp-svg .plane { font-size: 20px; }
.stamp-svg .code { font-size: 36px; font-weight: 800; letter-spacing: .02em; }
.stamp-svg .local { font: 700 17px 'Noto Sans Thai', 'Noto Sans SC', 'PingFang SC', 'Thonburi', system-ui, sans-serif; }
.stamp-svg .city { font: 800 11px var(--body); letter-spacing: .2em; }
.stamp-svg.empty .q { font-size: 54px; font-weight: 800; }
.stamp-svg.empty .hint { font: 800 11px var(--body); letter-spacing: .14em; }
.stamp-svg.empty .stamp-text { opacity: .9; }
.stamps { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px 14px 16px;
  background: #fbf3e4 repeating-linear-gradient(0deg, transparent 0 22px, rgba(122, 35, 53, .05) 22px 23px); border: 1px solid #ead9bb; }

/* trip card mini stamp */
.trip-card .stamp-mini { width: 76px; height: 76px; border: 0; background: rgba(255, 255, 255, .88); padding: 4px; border-radius: 50%; top: 12px; left: 12px; transform: scale(0) rotate(-20deg); }
.trip-card.stamped .stamp-mini { transform: scale(1) rotate(0); }
.trip-card .stamp-mini .stamp-svg { width: 100%; height: 100%; mix-blend-mode: normal; }

/* stamp pop-up, top right */
.stamp-pop { cursor: pointer; position: fixed; z-index: 70; top: calc(74px + var(--safe-top)); right: max(16px, var(--safe-right)); width: 230px; background: #fffaf0; border: 1px solid #ead9bb; border-radius: 22px; padding: 18px 18px 14px; box-shadow: 0 24px 60px rgba(18, 35, 61, .35); text-align: center; opacity: 0; transform: translateY(-16px) scale(.92); transition: opacity .25s ease, transform .3s ease; }
.stamp-pop.in { opacity: 1; transform: none; animation: thud .5s .45s ease both; }
.stamp-pop .sp-stamp { width: 160px; margin: 0 auto; }
.stamp-pop.in .sp-stamp { animation: slam .55s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.stamp-pop .sp-stamp::after { content: ''; position: absolute; }
.stamp-pop .sp-txt { display: flex; flex-direction: column; margin-top: 8px; }
.stamp-pop .sp-txt b { font: 800 20px var(--display); color: var(--ink); }
.stamp-pop .sp-txt span { font-weight: 700; font-size: 14px; color: var(--muted); }
.stamp-pop.fly { transition: transform .6s cubic-bezier(.6, 0, .8, .4), opacity .6s ease; transform: translate(var(--fx), var(--fy)) scale(.12) rotate(-20deg); opacity: 0; animation: none; }
@keyframes slam { 0% { transform: scale(2.8) rotate(12deg); opacity: 0; } 60% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes thud { 0%, 100% { transform: none; } 30% { transform: translate(-3px, 2px) rotate(-1deg); } 60% { transform: translate(2px, -1px) rotate(.6deg); } }
@media (max-width: 820px) {
  .stamp-pop { top: calc(66px + var(--safe-top)); width: 190px; padding: 14px 12px 10px; }
  .stamp-pop .sp-stamp { width: 124px; }
  .trip-card .stamp-mini { width: 50px; height: 50px; top: 8px; left: 8px; }
}

/* zoomed hero map: Chiang Rai and Phayao sit ~12px apart, so their labels go east into Laos-side space and are the big tap targets */
.land.sgp { fill: #fff; stroke: #fff; stroke-width: 2; }
.pin-sm { width: 11px; height: 11px; }
.pin-trip span { width: max-content; padding: 6px 10px 6px 8px; background: rgba(18, 35, 61, .55); border-radius: 10px; flex-direction: row; align-items: baseline; gap: 6px; transition: background .2s; }
.pin-right-up span, .pin-right-down span { left: 20px; }
.pin-right-up span { transform: translateY(-115%); }
.pin-right-down span { transform: translateY(15%); }
.pin-right-up span::before, .pin-right-down span::before { content: ''; position: absolute; left: -12px; width: 12px; height: 2px; background: rgba(255, 255, 255, .6); }
.pin-right-up span::before { top: 85%; transform: rotate(35deg); transform-origin: left; }
.pin-right-down span::before { top: 15%; transform: rotate(-35deg); transform-origin: left; }
.pin-trip:hover span, .pin-trip:focus-visible span { background: rgba(234, 88, 12, .85); }
@media (max-width: 820px) { .route { max-width: 330px; } }

/* keep the whole montage on screen on short laptop displays */
.feature .video { width: min(100%, calc(74vh * 16 / 9)); margin: 0 auto; }

.tp-dots i.filling { animation: dotfill 2s linear forwards; }
@keyframes dotfill { 0% { background: #e2d8c9; transform: scale(1); } 50% { transform: scale(1.5); } 100% { background: var(--c); transform: scale(1.15); } }

.passport-reset { display: block; margin: 16px auto 0; background: none; border: 1px solid rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .85); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.passport-reset:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.passport-reset[data-armed] { background: #fff; color: #7a2335; border-color: #fff; }
.passport-reset[hidden] { display: none; }

@media (max-width: 820px) { .hero-mountains .landmarks { display: none; } .c1, .c2 { display: none; } }

/* side-margin decorations (decor.js) */
.section > .wrap { position: relative; z-index: 1; }
.decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.doodle { position: absolute; color: var(--tint); opacity: .16; transform: rotate(var(--r)); }
.doodle svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; animation: bob 7s ease-in-out var(--d) infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(6deg); } }
.sky-lantern { position: absolute; width: var(--size); height: calc(var(--size) * 1.25); animation: lanternRise var(--rise) linear calc(var(--d) * -3) infinite; }
.sky-lantern i { display: block; width: 100%; height: 100%; border-radius: 40% 40% 30% 30%; background: radial-gradient(circle at 50% 70%, #fff3c4 0%, #ffbf5a 40%, #e8742a 100%); box-shadow: 0 0 18px 6px rgba(255, 170, 80, .35); opacity: .55; animation: flicker 3s ease-in-out var(--d) infinite; }
@keyframes lanternRise { from { transform: translate(0, 120px); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } to { transform: translate(24px, -420px); opacity: 0; } }
@keyframes flicker { 50% { opacity: .38; } }
@media (max-width: 1299px) { .decor { display: none; } }

/* trip cards as airplane windows: cabin-wall frame, rounded pane, a shade that lifts */
.trip-card .photo { overflow: visible; border: 0; border-radius: 30px; padding: 16px; background: linear-gradient(160deg, #fbf9f5, #e2ddd4); box-shadow: inset 0 2px 0 #fff, inset 0 -4px 8px rgba(0, 0, 0, .1), 0 2px 0 rgba(0, 0, 0, .08); }
.trip-card .pane { position: relative; width: 100%; height: 100%; border-radius: 34% / 26%; overflow: hidden; background: #8fb4d9; isolation: isolate; }
.trip-card .pane::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 5px #cfc8bd, inset 0 0 0 7px #b9b1a5, inset 0 10px 22px rgba(0, 0, 0, .35); pointer-events: none; z-index: 3; }
.trip-card .pane img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.trip-card .code { left: 13%; bottom: 7%; z-index: 2; }
.trip-card .montage-chip { right: 13%; bottom: 9%; z-index: 2; }
.trip-card .shade { position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(180deg, #f2efe9 0 9px, #e4dfd6 9px 10px); transform: translateY(0); transition: transform 1.3s cubic-bezier(.6, 0, .2, 1); }
.trip-card .shade::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 34px; height: 6px; margin-left: -17px; border-radius: 3px; background: #c4bcae; }
.trip-card.in .shade { transform: translateY(-91%); transition-delay: calc(var(--i, 0) * 180ms + 350ms); }
.trip-card:hover .shade, .trip-card:focus-visible .shade { transform: translateY(-100%); transition-delay: 0s; transition-duration: .5s; }
.trip-card .when { z-index: 4; }
.trip-card .stamp-mini { z-index: 4; }
@media (max-width: 820px) {
  .trip-card .photo { padding: 9px; border-radius: 22px; }
  .trip-card .pane { border-radius: 30% / 24%; }
  .trip-card .code { left: 14%; bottom: 6%; }
  .trip-card .montage-chip { top: 10%; right: 14%; bottom: auto; }
  .trip-card .shade::after { bottom: 4px; width: 22px; height: 4px; margin-left: -11px; }
}

/* the montage sits in a seatback screen: fabric seat, headrest, bezel, console, tray latch */
.seatback { position: relative; max-width: calc(74vh * 16 / 9 + 120px); margin: 34px auto 0; padding: 46px 48px 30px; border-radius: 70px 70px 34px 34px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 7px 7px,
    linear-gradient(180deg, #2c3a55, #1e2a40);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .08), inset 0 -10px 24px rgba(0, 0, 0, .35), 0 24px 50px rgba(18, 35, 61, .3); }
.seatback::before { content: ''; position: absolute; inset: 14px 22px auto; height: 18px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.seatback .headrest { position: absolute; left: 50%; top: -26px; width: 46%; height: 58px; transform: translateX(-50%); border-radius: 30px 30px 10px 10px; background: linear-gradient(180deg, #f3efe8, #ddd7cd); box-shadow: 0 6px 12px rgba(0, 0, 0, .25), inset 0 -3px 0 rgba(0, 0, 0, .08); }
.seatback .headrest::after { content: 'GMP 2027'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 12px var(--body); letter-spacing: .3em; color: #b5ad9f; }
.ife-bezel { padding: 12px; border-radius: 22px; background: linear-gradient(180deg, #121417, #22262c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 2px 0 rgba(255, 255, 255, .05); }
.ife-bezel .video { width: 100%; margin: 0; border-radius: 12px; box-shadow: none; }
.ife-console { display: flex; align-items: center; gap: 10px; margin: 14px 6px 0; color: #8f9bb3; font: 700 12px var(--body); letter-spacing: .08em; }
.ife-jack { width: 12px; height: 12px; border-radius: 50%; background: #0c0f14; box-shadow: inset 0 0 0 2px #3b4559; }
.ife-usb { width: 18px; height: 8px; border-radius: 2px; background: #0c0f14; box-shadow: inset 0 0 0 2px #3b4559; }
.ife-brand { margin: 0 auto; text-transform: uppercase; opacity: .8; }
.ife-btn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #33415c; color: #c9d2e3; font-size: 15px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.tray-latch { width: 54px; height: 10px; margin: 14px auto 0; border-radius: 6px; background: #3b4a68; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
@media (max-width: 820px) {
  .seatback { margin: 26px -8px 0; padding: 30px 12px 16px; border-radius: 40px 40px 22px 22px; }
  .seatback .headrest { top: -18px; height: 40px; width: 52%; }
  .seatback .headrest::after { font-size: 9px; }
  .ife-bezel { padding: 6px; border-radius: 14px; }
  .ife-brand { font-size: 9px; }
  .ife-btn { width: 22px; height: 22px; }
  .tray-latch { margin-top: 10px; }
}

/* the quiz fills the screen with night sky, content centred in it */
.quiz { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.quiz > .wrap { width: 100%; }

/* "came home with": a passport opened flat on a maroon cover; each card is a visa page */
.passport-bg { background:
    url(passport-guilloche.svg) 0 0 / 600px 600px,
    radial-gradient(1200px 500px at 50% 0%, #8e2c41, #5f1a2b 70%); }
.passport-bg h2 { color: #fff4e3; }
.passport-bg .kicker { color: var(--gold); }
.passport-bg .sub { color: rgba(255, 244, 227, .8); }
.passport-bg::after { content: ''; position: absolute; left: 50%; top: 30px; width: 90px; height: 90px; margin-left: -45px; border: 2px solid rgba(255, 201, 74, .35); border-radius: 50%; pointer-events: none; }
.passport-bg .flips { gap: 0; background: #fbf3e4; border-radius: 16px; padding: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px #ead9bb; }
.passport-bg .flip { height: 230px; padding: 8px; }
.passport-bg .flip-face { border-radius: 10px; box-shadow: none; }
.passport-bg .flip-front { background:
    repeating-linear-gradient(135deg, rgba(122, 35, 53, .035) 0 2px, transparent 2px 9px),
    radial-gradient(circle at 80% 30%, rgba(61, 143, 209, .08), transparent 60%), #fffaf0;
  border: 1px solid #efe2c9; }
.passport-bg .pp-num { position: absolute; top: 12px; right: 14px; font: 800 10px var(--body); letter-spacing: .14em; color: #b9a98c; }
.passport-bg .flip-front small { color: #8b7d66; }
.passport-bg .flip-back { background: #fffaf0; color: var(--ink); border: 1px solid #efe2c9; }
.passport-bg .flip-back p { color: var(--ink); font-size: 16px; }
.passport-bg .flip-back small { color: #7a2335; }
.passport-bg .visa { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border: 3px double #7a2335; border-radius: 8px; color: #7a2335; font: 800 9px/1.3 var(--body); letter-spacing: .1em; transform: rotate(8deg); opacity: .85; }
.passport-bg .visa i { font-style: normal; color: var(--swpy); }
.passport-bg .flip[aria-pressed="true"] .visa { animation: stampIn .5s cubic-bezier(.3, 1.6, .5, 1) .25s both; }
/* centre fold between page columns */
@media (min-width: 821px) { .passport-bg .flips { background: linear-gradient(90deg, transparent calc(33.33% - 1px), #e6d3b0 calc(33.33% - 1px) calc(33.33% + 1px), transparent calc(33.33% + 1px) calc(66.66% - 1px), #e6d3b0 calc(66.66% - 1px) calc(66.66% + 1px), transparent calc(66.66% + 1px)), #fbf3e4; } }
@media (max-width: 820px) { .passport-bg .flips { padding: 6px; } .passport-bg .flip { height: 200px; padding: 5px; } .passport-bg .flip-back p { font-size: 14px; } .passport-bg .visa { font-size: 7px; padding: 4px 6px; } }

/* sign-up section as a boarding pass: main ticket + tear-off stub with the QR */
.boarding { display: grid; grid-template-columns: 1fr 300px; max-width: 1040px; margin: 0 auto; color: var(--ink); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.bp-main, .bp-stub { background: #fffaf2; position: relative; }
.bp-main { border-radius: 26px 0 0 26px; padding: 0 40px 36px;
  -webkit-mask: radial-gradient(circle 16px at 100% 0, transparent 15.5px, #000 16px) top right / 100% 51% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15.5px, #000 16px) bottom right / 100% 51% no-repeat;
          mask: radial-gradient(circle 16px at 100% 0, transparent 15.5px, #000 16px) top right / 100% 51% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15.5px, #000 16px) bottom right / 100% 51% no-repeat; }
.bp-stub { border-radius: 0 26px 26px 0; padding: 0 26px 28px; border-left: 3px dashed #d9cbb2; display: flex; flex-direction: column; align-items: center; text-align: center;
  -webkit-mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) top left / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15.5px, #000 16px) bottom left / 100% 51% no-repeat;
          mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) top left / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15.5px, #000 16px) bottom left / 100% 51% no-repeat; }
.bp-head { display: flex; justify-content: space-between; align-items: center; margin: 0 -40px 26px; padding: 16px 40px; background: var(--sun-text); color: #fff; font: 800 13px var(--body); letter-spacing: .16em; border-radius: 26px 0 0 0; }
.bp-stub .bp-head { margin: 0 -26px 22px; padding: 16px 26px; border-radius: 0 26px 0 0; justify-content: center; width: calc(100% + 52px); }
.bp-route { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px dashed #e2d4bb; }
.bp-route > div:not(.bp-plane) { display: flex; flex-direction: column; }
.bp-route small, .bp-fields small, .bp-stub-fields small { font: 800 10px var(--body); letter-spacing: .14em; color: #9b8c72; }
.bp-route b { font: 800 clamp(30px, 4vw, 44px)/1 var(--display); color: var(--ink); }
.bp-route span { font-size: 13px; color: var(--muted); font-weight: 600; }
.bp-plane { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--sun-text); font-size: 22px; }
.bp-plane i { flex: 1; border-top: 2px dashed #e0c9a8; }
.boarding h2 { color: var(--ink); font-size: clamp(32px, 4.4vw, 50px); max-width: none; }
.boarding .kicker { color: var(--sun-text); }
.bp-lede { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 36em; }
.boarding .steps li { background: #f6eee0; border-color: #ead9bb; }
.boarding .steps b { color: var(--ink); }
.boarding .steps span { color: var(--muted); }
.bp-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; padding: 16px 0; border-top: 1px dashed #e2d4bb; border-bottom: 1px dashed #e2d4bb; }
.bp-fields b, .bp-stub-fields b { display: block; font: 800 18px var(--display); color: var(--ink); }
.boarding .cta-buttons { margin-top: 24px; }
.boarding .btn[aria-disabled="true"] { opacity: 1; background: #c2410c; color: #fff; }
.bp-chip { background: #f6eee0; border-color: #ead9bb; color: var(--ink); }
.bp-stub .qr-frame { width: 100%; max-width: 220px; background: #fff; border-radius: 14px; }
.bp-scan { margin-top: 12px; font: 800 19px var(--display); }
.bp-stub-fields { display: flex; justify-content: space-around; width: 100%; margin-top: 16px; }
.barcode { margin-top: auto; padding-top: 18px; width: 100%; height: 56px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 13px); background-clip: content-box; opacity: .85; }
@media (max-width: 820px) {
  .boarding { grid-template-columns: 1fr; }
  .bp-main { border-radius: 22px 22px 0 0; padding: 0 20px 26px;
    -webkit-mask: radial-gradient(circle 14px at 0 100%, transparent 13.5px, #000 14px) bottom left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13.5px, #000 14px) bottom right / 51% 100% no-repeat;
            mask: radial-gradient(circle 14px at 0 100%, transparent 13.5px, #000 14px) bottom left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13.5px, #000 14px) bottom right / 51% 100% no-repeat; }
  .bp-head { margin: 0 -20px 20px; padding: 14px 20px; border-radius: 22px 22px 0 0; font-size: 11px; }
  .bp-stub { border-left: 0; border-top: 3px dashed #d9cbb2; border-radius: 0 0 22px 22px; padding: 0 20px 24px;
    -webkit-mask: radial-gradient(circle 14px at 0 0, transparent 13.5px, #000 14px) top left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 0, transparent 13.5px, #000 14px) top right / 51% 100% no-repeat;
            mask: radial-gradient(circle 14px at 0 0, transparent 13.5px, #000 14px) top left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 0, transparent 13.5px, #000 14px) top right / 51% 100% no-repeat; }
  .bp-stub .bp-head { display: none; }
  .bp-stub .qr-frame { margin-top: 22px; max-width: 200px; }
  .bp-route { gap: 10px; }
  .bp-route b { font-size: 26px; }
  .bp-fields { grid-template-columns: 1fr 1fr; }
  .boarding .btn-lg { width: 100%; }
}

/* taller sections so their colour fills the screen */
.hero { min-height: calc(100vh + 140px); min-height: calc(100dvh + 140px); }
.passport-bg { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.passport-bg > .wrap { width: 100%; }

/* the montage row: your seatback in the middle, the neighbours' either side */
.seat-row { position: relative; }
.seat-row .side-seat { position: absolute; top: 34px; bottom: 0; width: 46vw; max-width: 760px; border-radius: 70px 70px 34px 34px; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 7px 7px, linear-gradient(180deg, #2c3a55, #1e2a40); opacity: .85; filter: blur(.6px) brightness(.85); }
.seat-row .side-seat::before { content: ''; position: absolute; left: 50%; top: -26px; width: 46%; height: 58px; transform: translateX(-50%); border-radius: 30px 30px 10px 10px; background: linear-gradient(180deg, #f3efe8, #ddd7cd); }
.seat-row .side-seat::after { content: ''; position: absolute; inset: 58px 48px 90px; border-radius: 14px; background: radial-gradient(120% 90% at 50% 40%, #2b4f7a, #101318 70%); box-shadow: inset 0 0 0 10px #16191e; }
.seat-row .side-seat.l { right: calc(100% + 26px); }
.seat-row .side-seat.r { left: calc(100% + 26px); }
.seat-row::after { content: ''; position: absolute; left: 50%; bottom: -40px; width: 100vw; height: 40px; transform: translateX(-50%); background: repeating-linear-gradient(90deg, #3a4660 0 2px, #33405a 2px 14px); opacity: .18; border-radius: 0 0 50% 50% / 0 0 100% 100%; pointer-events: none; }
.explorer { overflow-x: clip; }
@media (max-width: 1100px) { .seat-row .side-seat, .seat-row::after { display: none; } }

/* trip picker: inside the cabin, windows with side-view seats between them */
.picker { position: relative; padding-top: 150px; padding-bottom: 120px; background:
    radial-gradient(circle at 3px 3px, rgba(255, 255, 255, .12) 1.2px, transparent 1.6px) 0 100% / 14px 14px,
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .05) 0 3px, transparent 3px 9px) 0 100% / 100% 140px no-repeat,
    linear-gradient(180deg, #f3efe8 0%, #ece7df calc(100% - 140px), #3b4766 calc(100% - 140px), #2e3955 100%); }
.picker::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 92px; background: url(cabin-bin.svg) center top / 420px 92px repeat-x; box-shadow: 0 8px 18px rgba(0, 0, 0, .1); z-index: 1; }
.picker::after { content: ''; position: absolute; left: 0; right: 0; top: 92px; height: 34px; background: linear-gradient(180deg, rgba(255, 236, 190, .55), transparent); pointer-events: none; }
.picker .wrap { position: relative; }
.seat-layer { position: absolute; pointer-events: none; z-index: 0; }
.seat-layer span { position: absolute; bottom: -34px; width: 190px; height: 404px; margin-left: -80px; background: url(cabin-seat-side.svg) center bottom / contain no-repeat; opacity: .95; }
.cards { position: relative; z-index: 1; gap: 70px; }
@media (max-width: 1100px) { .cards { gap: 26px; } .seat-layer { display: none; } }

@media (max-width: 820px) { .cabin-sign { left: auto; right: 14px; transform: none; top: 78px; gap: 12px; padding: 7px 12px; } .cabin-sign svg { width: 32px; height: 28px; } }

/* the montage row sits in a dimmed cabin: full-width dark band behind the seats */
.ife-band { margin: 0 calc(50% - 50vw); padding: 70px calc(50vw - 50%) 64px; background:
    radial-gradient(60% 70% at 50% 45%, rgba(80, 120, 190, .28), transparent 70%),
    linear-gradient(180deg, #0e1524 0%, #18223a 60%, #121a2c 100%); }
.ife-band .seatback { margin-top: 20px; }
.ife-band .seat-row::after { opacity: .35; }
@media (max-width: 820px) { .ife-band { padding-top: 44px; padding-bottom: 40px; } }

/* sign-up: a dark Loy Krathong night, krathongs drifting down a river under the boarding pass */
.cta { background: radial-gradient(900px 380px at 80% 0%, rgba(120, 90, 180, .18), transparent 70%), linear-gradient(180deg, #070c18 0%, #0d1628 55%, #0a1220 100%); padding-bottom: 240px; overflow: hidden; }
.cta > .wrap { position: relative; z-index: 2; }
.river { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; z-index: 1; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 40, 70, 0) 0%, #0f2440 22%, #0b1b33 100%); }
.river-ripples { position: absolute; inset: 40px 0 0; background:
    repeating-linear-gradient(180deg, transparent 0 14px, rgba(140, 180, 230, .08) 14px 15px),
    radial-gradient(120% 40% at 50% 0%, rgba(255, 200, 120, .08), transparent 70%);
  animation: ripple 9s linear infinite; }
@keyframes ripple { to { background-position: 0 30px, 0 0; } }
.krathong { position: absolute; left: 0; top: var(--y); width: calc(80px * var(--s)); animation: float var(--dur) linear var(--delay) infinite; }
.krathong svg { display: block; width: 100%; animation: bobk 4s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 190, 90, .45)); }
.krathong::after { content: ''; position: absolute; left: 10%; right: 10%; top: 90%; height: 60%; background: radial-gradient(50% 40% at 50% 10%, rgba(255, 200, 110, .35), transparent 70%); filter: blur(2px); }
.krathong .flame { transform-origin: 40px 14px; animation: flick 1.4s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateX(-120px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes bobk { 50% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes flick { from { transform: scale(1, 1); opacity: .9; } to { transform: scale(.85, 1.15); opacity: 1; } }
@media (max-width: 820px) { .cta { padding-bottom: 190px; } .river { height: 180px; } }

/* compact boarding pass: fits on one laptop screen */
.cta { padding-top: 70px; }
.bp-head { margin-bottom: 16px; padding-top: 12px; padding-bottom: 12px; }
.bp-route { padding-bottom: 12px; margin-bottom: 14px; }
.bp-route b { font-size: clamp(26px, 3vw, 36px); }
.boarding .kicker { margin-bottom: 6px; }
.boarding h2 { font-size: clamp(28px, 3.4vw, 40px); }
.bp-lede { font-size: 15px; margin-top: 8px; }
.boarding .steps { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.boarding .steps li { padding: 12px 12px 12px 54px; }
.boarding .steps li::before { left: 12px; width: 30px; height: 30px; font-size: 15px; }
.boarding .steps b { font-size: 15px; line-height: 1.3; }
.boarding .steps span { font-size: 13px; line-height: 1.4; }
.bp-fields { margin-top: 14px; padding: 10px 0; }
.bp-fields b, .bp-stub-fields b { font-size: 16px; }
.bp-main { padding-bottom: 24px; }
.boarding .cta-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.boarding .btn-lg { min-height: 52px; padding: 12px 28px; font-size: 18px; }
.boarding .bp-chip { margin-top: 0; }
.bp-stub .qr-frame { max-width: 190px; }
.bp-stub .bp-head { margin-bottom: 18px; }
@media (max-width: 1000px) { .boarding .steps { grid-template-columns: 1fr; } }
.boarding .steps li::before { top: 10px; transform: none; }

/* "find your trip on the map": a soft world map behind the cards, sea and land only */
.where { background:
    linear-gradient(180deg, #e6eff6 0, rgba(230, 239, 246, 0) 60px),
    url(world-map.svg) center 46% / 1900px auto no-repeat,
    linear-gradient(180deg, #e6eff6, #dbe8f2); }
.where h2 { color: var(--ink); }
.where .country { box-shadow: 0 18px 40px rgba(30, 60, 100, .14); }

@media (max-width: 820px) { .where { background-size: auto, 1500px auto, auto; background-position: 0 0, 62% 20%, 0 0; } }

/* fast facts as a dark cabin info strip under the seatback */
.ife-band .facts { max-width: calc(74vh * 16 / 9 + 120px); margin: 34px auto 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; color: #e8edf6; }
.ife-band .facts h3 { color: #fff; }
.ife-band .fact b { color: #9fb0cc; }
.ife-band .fact span { color: #f1f4fa; }
.ife-band .fact .ico { background: rgba(255, 255, 255, .1); }

/* moments as polaroids scattered on the table: white frame, caption on the strip, slight tilt */
.mosaic { columns: 4 220px; column-gap: 22px; padding: 10px 6px; }
.mosaic button { background: #fff; padding: 10px 10px 0; border-radius: 3px; margin: 0 0 26px; overflow: visible;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 10px 22px rgba(30, 30, 40, .14); transition: transform .3s ease, box-shadow .3s ease; }
.mosaic button:nth-child(4n + 1) { transform: rotate(-2.2deg); }
.mosaic button:nth-child(4n + 2) { transform: rotate(1.6deg); }
.mosaic button:nth-child(4n + 3) { transform: rotate(-.8deg); }
.mosaic button:nth-child(4n) { transform: rotate(2.4deg); }
.mosaic button:hover, .mosaic button:focus-visible { transform: rotate(0) scale(1.04); z-index: 2; box-shadow: 0 4px 8px rgba(0, 0, 0, .1), 0 20px 40px rgba(30, 30, 40, .22); }
.mosaic img { border-radius: 1px; max-height: 340px; }
.mosaic button:hover img { transform: none; }
.mosaic span { position: static; display: block; padding: 10px 4px 14px; background: none; color: #3b3a45; opacity: 1; transform: none;
  font: 600 15px/1.25 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', var(--body); text-align: center; }
.mosaic button::before { content: ''; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: rgba(255, 233, 160, .7); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.mosaic button:nth-child(3n)::before { transform: rotate(4deg); left: 40%; }
@media (max-width: 820px) { .mosaic { columns: 2; column-gap: 12px; } .mosaic button { padding: 6px 6px 0; margin-bottom: 18px; } .mosaic span { font-size: 12px; padding: 6px 2px 10px; } .mosaic button::before { width: 44px; height: 14px; margin-left: -22px; } }

/* the open passport: two pages, a spine, pages turning over it */
.book-wrap { margin-top: 30px; }
.book { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 0 auto; aspect-ratio: 1.42; perspective: 2200px; outline: none;
  border-radius: 14px; padding: 10px; background: #5c1626; box-shadow: 0 34px 70px rgba(0, 0, 0, .45), inset 0 0 0 2px #7a2335; }
.book.one { grid-template-columns: 1fr; aspect-ratio: .72; max-width: 380px; }
.page, .leaf-face { position: relative; overflow: hidden; cursor: pointer; color: #2b2550;
  background:
    url(passport-page.svg) center / cover no-repeat,
    radial-gradient(120% 70% at 80% 85%, rgba(170, 220, 205, .55), transparent 70%),
    linear-gradient(170deg, #fbe7dc 0%, #f8e1e6 40%, #eef0e3 70%, #dcefe7 100%); }
.page.left { border-radius: 8px 2px 2px 8px; box-shadow: inset -26px 0 30px -18px rgba(40, 20, 60, .35); }
.page.right { border-radius: 2px 8px 8px 2px; box-shadow: inset 26px 0 30px -18px rgba(40, 20, 60, .35); }
.book.one .page.left { border-radius: 8px; box-shadow: inset 18px 0 24px -16px rgba(40, 20, 60, .3); }
.book.one .page.right, .book.one .spine { display: none; }
.spine { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px; background: rgba(60, 30, 70, .35); pointer-events: none; z-index: 3; }
.pp-inner, .pp-blank { position: absolute; inset: 0; padding: 9% 9% 8%; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pp-side { position: absolute; left: 14px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: center; white-space: nowrap; margin-left: -70px; font: italic 600 11px var(--body); letter-spacing: .08em; color: rgba(43, 37, 80, .55); }
.page.right .pp-side, .leaf.fwd .backf .pp-side { left: auto; right: 14px; margin: 0 -70px 0 0; transform: translateY(-50%) rotate(90deg); }
.pp-em { font-size: clamp(34px, 4vw, 48px); }
.page h3, .leaf-face h3 { font: 800 clamp(22px, 2.6vw, 32px)/1.1 var(--display); color: #2b2550; }
.pp-quote { font: 600 clamp(15px, 1.5vw, 19px)/1.45 var(--display); color: #3a335f; max-width: 26em; }
.pp-who { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #7a2335; }
.pp-num { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font: 800 clamp(28px, 3.4vw, 44px) var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(43, 37, 80, .45); }
.page .visa, .leaf-face .visa { position: absolute; top: 9%; right: 9%; display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border: 3px double #7a2335; border-radius: 10px; color: #7a2335; font: 800 10px/1.3 var(--body); letter-spacing: .1em; transform: rotate(9deg); opacity: .8; mix-blend-mode: multiply; }
.page .visa i, .leaf-face .visa i { font-style: normal; color: var(--swpy); }
.page .visa.slam { animation: stampIn .55s cubic-bezier(.3, 1.6, .5, 1) .35s both; }
@keyframes stampInV { from { transform: rotate(9deg) scale(2.2); opacity: 0; } }
.page .visa.slam { animation-name: stampInV; }
/* the turning leaf */
.leaf { position: absolute; top: 10px; bottom: 10px; width: calc(50% - 10px); transition: transform .4s cubic-bezier(.5, 0, .9, .6); z-index: 5; }
.leaf.go { transition: transform .4s cubic-bezier(.1, .4, .5, 1); }
.leaf.fwd.half, .leaf.one.half { transform: rotateY(-90deg); }
.leaf.back.half { transform: rotateY(90deg); }
.leaf-face.flipped { transform: scaleX(-1); }
.leaf.fwd .leaf-face.flipped, .leaf.one .leaf-face.flipped { border-radius: 8px 2px 2px 8px; }
.leaf.back .leaf-face.flipped { border-radius: 2px 8px 8px 2px; }
.leaf.fwd { left: 50%; transform-origin: left center; }
.leaf.back { left: 10px; transform-origin: right center; }
.leaf.one { left: 10px; width: calc(100% - 20px); transform-origin: left center; }
.leaf.fwd.go, .leaf.one.go { transform: rotateY(-180deg); }
.leaf.back.go { transform: rotateY(180deg); }
.leaf-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px 8px 8px 2px; }
.leaf.back .leaf-face.front { border-radius: 8px 2px 2px 8px; }
.leaf-face.backf { transform: rotateY(180deg); border-radius: 8px 2px 2px 8px; }
.leaf.back .leaf-face.backf { border-radius: 2px 8px 8px 2px; }
.leaf-face::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 30%); pointer-events: none; }
.book-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.passport-bg .round { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.book-dots { display: flex; gap: 8px; }
.book-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: width .25s, background .25s; }
.book-dots i.on { width: 28px; border-radius: 5px; background: var(--gold); }
@media (max-width: 820px) { .pp-inner { padding: 12% 12% 16%; } .pp-side { display: none; } }

/* river: soft flowing waves and glints instead of ruled lines */
.river-waves { position: absolute; inset: 30px 0 0; }
.river-waves .wave { position: absolute; left: 0; top: 0; width: 200%; height: 100%; animation: drift2 var(--dur) linear infinite; }
.river-waves .wave:nth-child(even) { animation-direction: reverse; }
@keyframes drift2 { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.river-glints i { position: absolute; width: 26px; height: 2px; border-radius: 2px; background: rgba(255, 210, 140, .55); filter: blur(.6px); animation: glint 3.6s ease-in-out infinite; }
@keyframes glint { 0%, 100% { opacity: 0; transform: scaleX(.4); } 50% { opacity: 1; transform: scaleX(1); } }

/* hero map: land fades out at the edges of the map box instead of a hard cut */
.route svg { border-radius: 0; overflow: visible;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-composite: intersect; }
.passport-bg .book .pp-num { top: auto; right: auto; bottom: 14px; left: 50%; transform: translateX(-50%); font: 800 clamp(28px, 3.4vw, 44px) var(--display); letter-spacing: 0; color: transparent; -webkit-text-stroke: 1.5px rgba(43, 37, 80, .45); }
.book { aspect-ratio: 1.62; }
.book.one { aspect-ratio: .86; }
.river-glints i { width: 40px; height: 3px; background: radial-gradient(closest-side, rgba(255, 210, 140, .55), transparent); filter: blur(1px); }

/* footprint trail under the stops: bare feet walking right, left and right prints offset and angled */
.stops { position: relative; padding-bottom: 58px; }
.trail { position: absolute; left: 0; bottom: 8px; height: 44px; pointer-events: none; }
.trail i { position: absolute; width: 38px; height: 20px; color: var(--c); animation: stepIn .4s cubic-bezier(.3, 1.4, .5, 1) both; }
.trail i svg { display: block; width: 100%; height: 100%; fill: currentColor; opacity: .45; }
.trail i.r { top: 22px; transform: rotate(6deg); }
.trail i.l { top: 1px; transform: rotate(-7deg) scaleY(-1); }
.trail i:last-child svg { opacity: .85; }
@keyframes stepIn { from { opacity: 0; translate: -6px 0; scale: .7; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* mirror the art on left-hand pages so each spread reads as one design */
.page.left, .leaf.back .leaf-face.front, .leaf.fwd .leaf-face.backf { background-position: center; }
.page h3, .leaf-face h3 { color: #3a2a4f; }
.pp-num { -webkit-text-stroke-color: rgba(58, 42, 79, .35) !important; }
.page.left, .leaf.fwd .leaf-face.backf, .leaf.back .leaf-face.front { background-image: url(passport-page-l.svg), radial-gradient(120% 70% at 20% 85%, rgba(170, 220, 205, .55), transparent 70%), linear-gradient(190deg, #fbe7dc 0%, #f8e1e6 40%, #eef0e3 70%, #dcefe7 100%); }
.book.one .page.left { background-image: url(passport-page.svg), radial-gradient(120% 70% at 80% 85%, rgba(170, 220, 205, .55), transparent 70%), linear-gradient(170deg, #fbe7dc 0%, #f8e1e6 40%, #eef0e3 70%, #dcefe7 100%); }
/* softer edge fade on the hero map: only the outermost sliver dissolves */
.route svg {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }

/* headrest of the seat in front: padded fabric with a white cover cloth and the airline mark */
.seatback .headrest { top: -54px; width: 34%; height: 84px; border-radius: 40px 40px 14px 14px;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .08) 1px, transparent 1.5px) 0 0 / 7px 7px, linear-gradient(180deg, #34456a, #263450);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .1), inset 0 -6px 10px rgba(0, 0, 0, .3), 0 6px 14px rgba(0, 0, 0, .3); }
.seatback .headrest::before { content: ''; position: absolute; left: 10%; right: 10%; top: 8px; height: 46px; border-radius: 26px 26px 6px 6px;
  background: linear-gradient(180deg, #fbf9f5, #e9e4dc);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .25), inset 0 -2px 0 rgba(0, 0, 0, .06);
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 4.5px, #000 5px) bottom / 12px 100% repeat-x;
          mask: radial-gradient(circle 5px at 50% 100%, transparent 4.5px, #000 5px) bottom / 12px 100% repeat-x; }
.seatback .headrest::after { content: '✈'; inset: auto 0 auto 0; top: 18px; height: 22px; display: block; text-align: center; font: 800 18px/22px var(--body); letter-spacing: 0; color: #ea580c; transform: rotate(-20deg); }
.side-seat::before { top: -50px !important; width: 34% !important; height: 84px !important; border-radius: 40px 40px 14px 14px !important; background: linear-gradient(180deg, #34456a, #263450) !important; }
@media (max-width: 820px) { .seatback .headrest { top: -38px; height: 60px; width: 44%; } .seatback .headrest::before { top: 6px; height: 32px; } .seatback .headrest::after { top: 10px; font-size: 14px; } }

/* page peel: the outer bottom corner folds up, the page turns with its bottom edge leading */
.leaf { transition: transform .42s cubic-bezier(.55, 0, .85, .5); }
.leaf.fwd.half, .leaf.one.half { transform: rotateY(-90deg) rotateZ(-7deg) translateY(-6px); }
.leaf.back.half { transform: rotateY(90deg) rotateZ(7deg) translateY(-6px); }
.leaf.go { transition: transform .46s cubic-bezier(.15, .5, .35, 1); }
.leaf.fwd.go, .leaf.one.go { transform: rotateY(-180deg); }
.leaf.back.go { transform: rotateY(180deg); }
.leaf .leaf-face { transition: clip-path .26s ease-out; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.leaf.fwd.peel .leaf-face, .leaf.one.peel .leaf-face { clip-path: polygon(0 0, 100% 0, 100% 74%, 72% 100%, 0 100%); }
.leaf.back.peel .leaf-face { clip-path: polygon(0 0, 100% 0, 100% 100%, 28% 100%, 0 74%); }
.curl { position: absolute; bottom: 0; width: 0; height: 0; pointer-events: none; z-index: 2; opacity: 0;
  background: linear-gradient(135deg, #f7efe7 0%, #fffaf4 45%, #d9cfc6 52%, rgba(0, 0, 0, 0) 53%);
  box-shadow: -6px -6px 14px rgba(40, 20, 50, .25); transition: width .26s ease-out, height .26s ease-out, opacity .1s; }
.leaf.fwd .curl, .leaf.one .curl { right: 0; border-radius: 0 0 8px 0; }
.leaf.back .curl { left: 0; border-radius: 0 0 0 8px; transform: scaleX(-1); }
.leaf.peel .curl { width: 28%; height: 26%; opacity: 1; }
.leaf.go .curl { opacity: 0; }
.leaf-face::after { background: linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 35%), linear-gradient(315deg, rgba(0, 0, 0, .12), transparent 30%); }

/* cabin windows you can use: drag a shade up or down, or tap to open/close */
.cabin-win { position: absolute; width: 120px; height: 240px; z-index: 1; background-size: 120px 1920px; background-repeat: no-repeat; }
.cabin-win .pane { position: absolute; left: 28px; top: 52px; width: 64px; height: 96px; border-radius: 30px; overflow: hidden; cursor: ns-resize; touch-action: none; }
.cabin-win .shade { position: absolute; left: 0; right: 0; top: 0; height: var(--sh, 30px); background: repeating-linear-gradient(180deg, #f1ede6 0 9px, #e0dad0 9px 10px); box-shadow: 0 2px 3px rgba(0, 0, 0, .18); transition: height .5s cubic-bezier(.3, 1.2, .5, 1); }
.cabin-win.dragging .shade { transition: none; }
.cabin-win .shade::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 18px; height: 4px; margin-left: -9px; border-radius: 2px; background: #b9b1a4; }
.cabin-win .pane:hover .shade::after, .cabin-win.dragging .shade::after { background: #ea580c; }
.cabin-win .pane:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (max-width: 1000px) { .cabin-win { display: none; } }

/* both halves of the pass share one header band height */
.bp-head { height: 52px; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.bp-stub .bp-head { margin-bottom: 18px; }
/* stub: bigger QR, a gate/time row and a "keep this stub" line so it fills its height */
.bp-stub .qr-frame { max-width: 240px; }
.bp-scan { font-size: 22px; }
.bp-stub-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; margin-top: 18px; }
.bp-stub-fields b { font-size: 20px; }
.bp-keep { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #e2d4bb; width: 100%; font: 700 13px/1.45 var(--body); color: var(--muted); }
.bp-keep b { display: block; font: 800 15px var(--display); color: var(--ink); }

.barcode { background: none !important; height: auto; padding-top: 18px; margin-top: auto; opacity: 1; width: 100%; text-align: center; }
.barcode img { display: block; width: 100%; height: 76px; }
.barcode span { display: block; margin-top: 6px; font: 700 12px var(--body); letter-spacing: .28em; color: var(--ink); }

/* page-curl leaf (JS drives the fold every frame) */
.curl-leaf { position: absolute; z-index: 6; pointer-events: none; overflow: visible; }
.curl-leaf.mirrored { transform: scaleX(-1); }
.curl-leaf .leaf-face { position: absolute; inset: 0; transform-origin: 0 0; backface-visibility: visible; -webkit-backface-visibility: visible; }
.curl-leaf .leaf-face::after { display: none; }
.curl-leaf .cl-in { position: absolute; inset: 0; }
.curl-leaf .cl-back { box-shadow: 0 0 22px rgba(40, 20, 60, .3); }
.curl-leaf .cl-front.is-right, .curl-leaf .cl-back.is-right { border-radius: 2px 8px 8px 2px; }
.curl-leaf .cl-front.is-left, .curl-leaf .cl-back.is-left { border-radius: 8px 2px 2px 8px; }
.curl-leaf .cl-shade, .curl-leaf .cl-gloss { position: absolute; inset: 0; pointer-events: none; }
.curl-leaf .cl-cast { position: absolute; inset: 0; opacity: 0; background: radial-gradient(60% 50% at 20% 80%, rgba(40, 20, 60, .18), transparent 70%); }
.curl-leaf .cl-back.is-left { background-image: url(passport-page-l.svg), radial-gradient(120% 70% at 20% 85%, rgba(170, 220, 205, .55), transparent 70%), linear-gradient(190deg, #fbe7dc 0%, #f8e1e6 40%, #eef0e3 70%, #dcefe7 100%); }
.curl-leaf .cl-back.is-right, .curl-leaf .cl-front.is-right { background-image: url(passport-page.svg), radial-gradient(120% 70% at 80% 85%, rgba(170, 220, 205, .55), transparent 70%), linear-gradient(170deg, #fbe7dc 0%, #f8e1e6 40%, #eef0e3 70%, #dcefe7 100%); }

body.no-select, body.no-select * { user-select: none !important; -webkit-user-select: none !important; cursor: ns-resize !important; }
.cabin-win .pane { user-select: none; -webkit-user-select: none; }
/* seatbelt sign: unlit until the cabin scrolls in, then flickers on with a chime ring */
.cabin-sign svg { stroke: #6b6457; filter: none; animation: none; transition: stroke .2s; }
.cabin-sign.on svg { stroke: #ffd36b; filter: drop-shadow(0 0 4px rgba(255, 211, 107, .8)); animation: signOn .7s steps(1) both, signGlow 3s ease-in-out 1s infinite; }
.cabin-sign.on svg:nth-child(2) { animation-delay: .12s, 1.1s; }
.cabin-sign::after { content: ''; position: absolute; inset: -6px; border-radius: 18px; border: 2px solid rgba(255, 211, 107, .7); opacity: 0; pointer-events: none; }
.cabin-sign.on::after { animation: ding 1s ease-out .45s both; }
@keyframes signOn { 0% { opacity: .3; } 15% { opacity: 1; } 30% { opacity: .35; } 45% { opacity: 1; } 100% { opacity: 1; } }
@keyframes ding { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

/* 3) inside the moving leaf: no blend modes or animations, and give its faces their own layers */
.curl-leaf .visa, .curl-leaf .stamp-svg { mix-blend-mode: normal !important; animation: none !important; }
.curl-leaf .leaf-face { will-change: transform, clip-path; }
.curl-leaf .cl-back { visibility: hidden; }
/* keep the centre fold while a page turns: the leaf carries the gutter shadow on its spine edge
   (x=0 for the front, x=W for the back, in the leaf's own box; mirroring handles a backwards turn),
   and the spine line stays above it */

/* ONE spine definition, shared by resting pages and the turning leaf, so the fold never changes.
   A spine edge gets the gutter shadow plus a 1px line; the two facing pages make the 2px spine.
   Leaf geometry: front's spine is x=0 (like a right page), back's spine is x=W (like a left page). */
.spine { display: none; }
.page.right, .curl-leaf .cl-front { box-shadow: inset 26px 0 30px -18px rgba(40, 20, 60, .35); }
.page.left, .curl-leaf .cl-back { box-shadow: inset -26px 0 30px -18px rgba(40, 20, 60, .35); }
.page::before, .curl-leaf .leaf-face::before { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(60, 30, 70, .35); pointer-events: none; z-index: 4; }
.page.right::before, .curl-leaf .cl-front::before { left: 0; }
.page.left::before, .curl-leaf .cl-back::before { right: 0; }
/* single-page (phone): the binding is on the left edge */
.book.one .page.left { box-shadow: inset 18px 0 24px -16px rgba(40, 20, 60, .3); }
.book.one .page.left::before { left: 0; right: auto; }
.book.one .curl-leaf .cl-front { box-shadow: inset 18px 0 24px -16px rgba(40, 20, 60, .3); }
.curl-leaf .cl-front.is-one { background-image: url(passport-page.svg), radial-gradient(120% 70% at 80% 85%, rgba(170, 220, 205, .55), transparent 70%), linear-gradient(170deg, #fbe7dc 0%, #f8e1e6 40%, #eef0e3 70%, #dcefe7 100%); border-radius: 8px; }
