/* =====================================================================
   Buddy Visa Pattaya Thailand — Single-section scroll-through Thailand journey
   Stage = sticky 100vh container holding one video that gets transformed
   by scroll, plus absolutely-stacked content panels that cross-fade.
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.85);
  --ink-mute: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);

  --blue: #4aa3e8;
  --blue-deep: #1a5fa8;
  --sky: #87c5ed;
  --gold: #e8a93c;
  --coral: #ff7e6b;

  --bg-deep: #050b18;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* IMPORTANT: do NOT set overflow on html/body — it breaks position: sticky.
   We manage horizontal overflow on individual elements instead. */
html, body { width: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--gold);
}

/* ---------- PRELOADER: airplane through clouds ---------- */
.preloader {
  position: fixed; inset: 0;
  background: linear-gradient(180deg, #0a1a32 0%, #1a3556 50%, #2c4a73 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; }

.preloader-sky {
  position: relative;
  width: 360px;
  height: 160px;
  overflow: hidden;
  /* Soft horizon gradient on the stage itself */
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* Cloud blobs drifting right to left at varying speeds */
.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  filter: blur(2px);
}
.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud-1 {
  width: 70px; height: 16px;
  top: 24px;
  animation: cloudDrift 5s linear infinite;
}
.cloud-1::before { width: 30px; height: 30px; top: -14px; left: 10px; }
.cloud-1::after  { width: 22px; height: 22px; top: -10px; left: 38px; }

.cloud-2 {
  width: 100px; height: 20px;
  top: 70px;
  background: rgba(255, 255, 255, 0.12);
  animation: cloudDrift 7s linear infinite;
  animation-delay: -2s;
}
.cloud-2::before { width: 40px; height: 40px; top: -18px; left: 14px; }
.cloud-2::after  { width: 28px; height: 28px; top: -12px; left: 56px; }

.cloud-3 {
  width: 60px; height: 14px;
  top: 110px;
  background: rgba(255, 255, 255, 0.22);
  animation: cloudDrift 4s linear infinite;
  animation-delay: -1s;
}
.cloud-3::before { width: 24px; height: 24px; top: -10px; left: 8px; }
.cloud-3::after  { width: 18px; height: 18px; top: -8px; left: 30px; }

.cloud-4 {
  width: 84px; height: 18px;
  top: 132px;
  background: rgba(255, 255, 255, 0.10);
  animation: cloudDrift 6s linear infinite;
  animation-delay: -3.5s;
}
.cloud-4::before { width: 32px; height: 32px; top: -15px; left: 12px; }
.cloud-4::after  { width: 24px; height: 24px; top: -10px; left: 46px; }

@keyframes cloudDrift {
  0%   { transform: translateX(360px); }
  100% { transform: translateX(-160px); }
}

/* Airplane sits in the middle, bobbing gently */
.plane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  color: #ffffff;
  transform: translate(-50%, -50%);
  animation: planeBob 3.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
  z-index: 2;
}
.plane svg { width: 100%; height: 100%; }
@keyframes planeBob {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50%      { transform: translate(-50%, -54%) rotate(1.5deg); }
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  animation: textFade 2s ease-in-out infinite;
}
@keyframes textFade {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-progress {
  width: 100%;
  max-width: 280px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.nav-progress-bar {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--sky), var(--gold));
  box-shadow: 0 0 10px rgba(232, 169, 60, 0.4);
}

/* =====================================================================
   THE JOURNEY — single section, sticky stage
   ===================================================================== */
.journey {
  position: relative;
  /* Total scroll length — controls pacing of the entire experience.
     ~ 600vh means each "chapter" gets ~100vh of scroll. */
  height: 700vh;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-deep);
}

/* ---------- HERO LAYER (Chapter 1 — Sanctuary of Truth, Pattaya's iconic wooden temple) ---------- */
.video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* GSAP will scale/translate this to simulate camera movement */
  will-change: transform;
  transform-origin: center center;
}
.bg-hero {
  width: 100%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1728805463552-c9a68eaf9002?w=2200&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Slight starting filter; GSAP will animate brightness/saturate */
  filter: brightness(0.92) saturate(1.12) contrast(1.04);
  will-change: filter;
}

/* =====================================================================
   PER-CHAPTER PATTAYA BACKGROUND IMAGES
   Stacked between hero (z:1) and tint overlay (z:2).
   Each starts invisible; GSAP cross-fades them in as you scroll.
   Swap any URL below to change a chapter's backdrop.
   ===================================================================== */
.chapter-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
  filter: brightness(0.88) saturate(1.12) contrast(1.04);
  transform: scale(1.05);
}

/* Chapter 2 — Services: Pattaya bay aerial, city buildings near sea */
.chapter-bg-2 {
  background-image: url("https://images.unsplash.com/photo-1625492206717-61c584a8b11e?w=2200&q=80&auto=format&fit=crop");
}

/* Chapter 3 — Pace: Pattaya nightlife street, people between buildings at night */
.chapter-bg-3 {
  background-image: url("https://images.unsplash.com/photo-1538114618364-ae7f63d1ee7d?w=2200&q=80&auto=format&fit=crop");
}

/* Chapter 4 — Operations: Pattaya beach during daytime */
.chapter-bg-4 {
  background-image: url("https://images.unsplash.com/photo-1620373901514-4319a7c81cdb?w=2200&q=80&auto=format&fit=crop");
}

/* Chapter 5 — Track Record: Pattaya bay aerial panorama */
.chapter-bg-5 {
  background-image: url("https://images.unsplash.com/photo-1578230201683-63955239ce3e?w=2200&q=80&auto=format&fit=crop");
}

/* Chapter 6 — Begin: Pattaya beach with surfer / boats at sunset */
.chapter-bg-6 {
  background-image: url("https://images.unsplash.com/photo-1641767863967-58e10d69bbe1?w=2200&q=80&auto=format&fit=crop");
}

/* Color tint over the video, animated per chapter */
.video-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(5, 11, 24, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 11, 24, 0.25) 0%, rgba(5, 11, 24, 0.05) 30%, rgba(5, 11, 24, 0.55) 100%);
  z-index: 2;
  pointer-events: none;
  transition: background 0.6s var(--ease);
}
.video-vignette {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.55) 100%);
}
.video-grain {
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Three.js fx canvas ---------- */
#fxCanvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.65;
}

/* ---------- HUD CORNERS ---------- */
.hud {
  position: absolute;
  z-index: 8;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  pointer-events: none;
}
.hud-label {
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.3em;
}
.hud-value { color: var(--ink-soft); }
.hud-tl { top: 90px; left: 40px; }
.hud-tr { top: 90px; right: 40px; text-align: right; align-items: flex-end; }
.hud-bl { bottom: 40px; left: 40px; }
.hud-br { bottom: 40px; right: 40px; text-align: right; align-items: flex-end; }

/* ---------- SCROLL HINT ---------- */
.scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-mute);
  pointer-events: none;
}
.scroll-hint-line {
  width: 1px; height: 42px;
  background: rgba(255,255,255,0.16);
  overflow: hidden;
}
.scroll-hint-line span {
  display: block; width: 100%; height: 35%;
  background: var(--gold);
  animation: scrollHint 2.2s cubic-bezier(0.65,0,0.35,1) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* =====================================================================
   PANELS — absolutely stacked content layers
   Each starts hidden (opacity:0) and is faded in via ScrollTrigger.
   ===================================================================== */
.panel {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Increased horizontal padding so HUD corners always have clear space */
  padding: 140px 140px 120px;
  pointer-events: none;
  opacity: 0;
}
.panel.active { pointer-events: auto; }

.panel-inner {
  width: 100%;
  /* Reduced from 1400px so content sits comfortably away from corner HUDs */
  max-width: 1080px;
  position: relative;
}
.panel-center { text-align: center; }
.panel-center .display-sub { margin-left: auto; margin-right: auto; }
.panel-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- TYPE ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  margin-bottom: 32px;
}
.eb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 10px var(--sky);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(232, 169, 60, 0.3);
  background: rgba(232, 169, 60, 0.06);
  border-radius: 100px;
  display: inline-block;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}
.display-l {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}
.display-l.center { text-align: center; }
.display-sub {
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 30px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* =====================================================================
   HERO PANEL — refined centered composition
   ===================================================================== */
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-top-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.htm-line {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: 0.7;
}
.hero-top-mark .htm-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.htm-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 169, 60, 0.6);
}

.hero-title {
  margin-bottom: 28px;
  font-weight: 300;
  letter-spacing: -0.035em;
}

.hero-divider {
  width: 56px;
  height: 1px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  position: relative;
}
.hero-divider::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(232, 169, 60, 0.6);
}

.hero-sub {
  /* Centered and a touch more refined than default */
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.65;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 36px;
  letter-spacing: 0.005em;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-meta-dot {
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .hero-br { display: none; }
  .hero-meta { font-size: 9px; gap: 10px; padding: 8px 16px; }
}

/* Hero text reveal: each .line wraps its inner so we can slide it from below */
.line { display: block; overflow: hidden; }
.line-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(232, 169, 60, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(232, 169, 60, 0.18), transparent 50%, rgba(232, 169, 60, 0.08));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 169, 60, 0.7);
  box-shadow: 0 14px 40px rgba(232, 169, 60, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span,
.btn-primary svg { position: relative; z-index: 1; }

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================================
   PANEL 2 — Service rail
   ===================================================================== */
.split-left .section-num { margin-bottom: 20px; }
.service-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.service-tile {
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.service-tile::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 50%, rgba(232, 169, 60, 0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.service-tile:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(232, 169, 60, 0.3);
}
.st-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 14px;
}
.st-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(232, 169, 60, 0.12);
  border: 1px solid rgba(232, 169, 60, 0.25);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.st-icon svg { width: 16px; height: 16px; }
.service-tile h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}
.service-tile p {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* =====================================================================
   PANEL 3 — Chip row
   ===================================================================== */
.chip-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  transition: all 0.4s var(--ease);
}
.chip:hover {
  background: rgba(232, 169, 60, 0.15);
  border-color: rgba(232, 169, 60, 0.4);
  color: var(--gold);
}

/* =====================================================================
   PANEL 4 — Passport + pipeline
   ===================================================================== */
.pipeline {
  list-style: none;
  position: relative;
  padding-left: 26px;
  margin-top: 12px;
}
.pipeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 10px; bottom: 10px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.pl-step {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.pl-dot {
  position: absolute;
  left: -26px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.pl-step.done .pl-dot {
  background: var(--sky);
  border-color: var(--sky);
  box-shadow: 0 0 10px rgba(135, 197, 237, 0.5);
}
.pl-step.active .pl-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(232, 169, 60, 0.55);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 14px rgba(232, 169, 60, 0.55); }
  50%      { box-shadow: 0 0 24px rgba(232, 169, 60, 0.8); }
}
.pl-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
}
.pl-step.done .pl-label { color: var(--ink-soft); }
.pl-step:not(.done):not(.active) .pl-label { color: var(--ink-mute); }

.passport-card {
  position: relative;
  padding: 22px;
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(-2deg);
  max-width: 460px;
  margin-left: auto;
}
.passport-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 50%, rgba(232, 169, 60, 0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 18px rgba(232, 169, 60, 0.6);
  top: 0;
  animation: scanMove 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes scanMove {
  0%, 100% { top: 0%; opacity: 0.85; }
  50%      { top: 95%; opacity: 0.4; }
}
.pc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pc-chip {
  width: 26px; height: 22px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--gold), #c98c1f);
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.pc-chip::before, .pc-chip::after {
  content: ''; position: absolute;
  background: rgba(0, 0, 0, 0.25);
  left: 5px; right: 5px; height: 1px;
}
.pc-chip::before { top: 7px; }
.pc-chip::after { bottom: 7px; }
.pc-type {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.pc-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}
.pc-photo {
  width: 62px; height: 80px;
  border: 1px solid rgba(232, 169, 60, 0.45);
  background: rgba(232, 169, 60, 0.06);
  color: var(--gold);
  padding: 6px;
}
.pc-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  align-content: start;
}
.pc-data > div { display: flex; flex-direction: column; gap: 2px; }
.pc-data span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pc-data b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink);
}
.pc-mrz {
  position: absolute;
  bottom: 14px; left: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  padding-top: 8px;
  white-space: nowrap;
  overflow: hidden;
}

/* =====================================================================
   PANEL 5 — Stats
   ===================================================================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.stat-cell {
  padding: 18px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 2px;
}
.stat-num sup {
  color: var(--gold);
  font-size: 0.45em;
  font-family: var(--font-mono);
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =====================================================================
   FINAL PANEL — integrated footer inside Chapter 6
   ===================================================================== */
.final-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.panel-6 { padding: 80px 100px 80px; }
.panel-6 .section-num { margin-bottom: 14px; }
.panel-6 .display-xl { margin-bottom: 14px; font-size: clamp(28px, 4vw, 52px); }
.panel-6 .display-sub { margin-bottom: 20px; font-size: 14px; }

/* ---------- CONTACT FORM ---------- */
.contact-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  position: relative;
  z-index: 2;
}
.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cf-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-left: 2px;
}
.contact-form input,
.contact-form select {
  width: 100%;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e8a93c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  cursor: pointer;
}
.contact-form select option {
  background: #0a1525;
  color: var(--ink);
}
.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.contact-form input:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(232, 169, 60, 0.5);
  background: rgba(255, 255, 255, 0.10);
}
.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(232, 169, 60, 0.45);
  border-radius: 100px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.cf-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232, 169, 60, 0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cf-submit:hover {
  border-color: rgba(232, 169, 60, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 169, 60, 0.25);
}
.cf-submit:hover::before { opacity: 1; }
.cf-submit span,
.cf-submit svg { position: relative; z-index: 1; }

/* ---------- QUICK CONTACT (LINE / WhatsApp) ---------- */
.quick-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.qc-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.qc-icons {
  display: flex;
  gap: 8px;
}
.qc-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.qc-icon svg {
  width: 16px;
  height: 16px;
  color: var(--ink-mute);
  transition: color 0.3s var(--ease);
}
.qc-icon:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.10);
  color: var(--ink);
  transform: translateY(-2px);
}
.qc-icon:hover svg { color: var(--gold); }
.qc-icon:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.form-status {
  min-height: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--gold);
}

.final-foot {
  width: 100%;
  max-width: 960px;
  margin-top: 16px;
  opacity: 0.8;
}
.final-foot .ff-divider { margin-bottom: 14px; }
.ff-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  margin-bottom: 22px;
}
.ff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ff-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
}
.ff-brand .brand-mark { font-size: 13px; color: var(--gold); }
.ff-brand .brand-name { font-size: 16px; color: var(--ink); }
.ff-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.ff-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.ff-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.3s var(--ease);
}
.ff-links a:hover { color: var(--gold); }
.ff-loc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
}

@media (max-width: 768px) {
  .final-foot { margin-top: 40px; }
  .ff-row { flex-direction: column; gap: 16px; align-items: center; text-align: center; }
  .ff-links { justify-content: center; }
  .ff-tag { display: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .nav { padding: 18px 22px; }
  .panel { padding: 100px 60px 90px; }
  .panel-split { grid-template-columns: 1fr; gap: 24px; }
  .service-rail { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hud-tl, .hud-tr { top: 76px; }
  .hud-bl, .hud-br { display: none; }
  .nav-progress { max-width: 140px; }
  .passport-card { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .panel { padding: 90px 22px 80px; }
  .nav-progress { display: none; }
  .service-rail { grid-template-columns: 1fr; }
  .pc-photo { display: none; }
  .pc-body { grid-template-columns: 1fr; }
  .pc-data { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hud-tr { display: none; }
  .scroll-hint { bottom: 24px; font-size: 9px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .cf-grid { grid-template-columns: 1fr; }
  .quick-contact { flex-direction: column; gap: 10px; }
  .ff-row { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
  .ff-tag { display: none; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .journey { height: auto; }
  .stage { position: relative; height: auto; }
  .panel { position: relative; inset: auto; opacity: 1; min-height: 80vh; }
  .line-inner { transform: translateY(0); }
  .bg-video { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; }
}

/* JS adds this when animation libraries are unavailable. Content stays usable. */
html.no-motion .journey { height: auto; }
html.no-motion .stage {
  position: relative;
  height: auto;
  min-height: 100vh;
}
html.no-motion .video-wrap,
html.no-motion .chapter-bg,
html.no-motion .video-tint,
html.no-motion .video-vignette,
html.no-motion .video-grain,
html.no-motion #fxCanvas {
  position: fixed;
}
html.no-motion .panel {
  position: relative;
  inset: auto;
  min-height: 100vh;
  opacity: 1;
  pointer-events: auto;
}
html.no-motion .line-inner { transform: translateY(0); }
