

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist_wght_.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Italic_wght_.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: "Prompt"; src: url("../fonts/Prompt-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Prompt"; src: url("../fonts/Prompt-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Prompt"; src: url("../fonts/Prompt-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Prompt"; src: url("../fonts/Prompt-Bold.ttf") format("truetype"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  --cream: #F5F1E4;
  --cream-2: #EFE9D6;
  --green: #8DD462;
  --green-deep: #4E8E2E;
  --green-ink: #2C5417;
  --yellow: #F5E212;
  --pink: #EBC1FF;
  --pink-deep: #C98DEA;
  --ink: #16170F;
  --ink-soft: #3B3D31;
  --white: #FFFDF7;
  --line: #1617120F;

  --font-display: "Geist", "Prompt", sans-serif;
  --font-body: "Geist", "Prompt", sans-serif;
  --font-thai: "Prompt", "Geist", sans-serif;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --ease-snap: cubic-bezier(0.18, 1.3, 0.28, 1); /* @kind other */
  --r-lg: 32px;
  --r-md: 22px;
  --r-sm: 14px;
  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: default;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

html, body { height: 100%; }
body { overflow: hidden; overscroll-behavior: none; }
#scroller {
  position: fixed; inset: 0; z-index: 2;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior: none;
}
#scroller::-webkit-scrollbar { width: 0; height: 0; }
#scroll-content { position: relative; }

.beats { pointer-events: none; }
.beats a, .beats button { pointer-events: auto; }
.nav { pointer-events: none; }
.nav a, .nav button, .nav .theme-toggle { pointer-events: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

::selection { background: var(--green); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.route-rail {
  position: fixed; left: 34px; top: 22%; height: 56%; width: 30px;
  z-index: 70; pointer-events: none; display: none;
}
@media (min-width: 1040px) { .route-rail { display: block; } }
.route-track {
  position: absolute; left: 9px; top: 0; width: 4px; height: 100%;
  background: repeating-linear-gradient(to bottom, rgba(22,23,15,0.28) 0 5px, transparent 5px 12px);
  border-radius: 4px;
}
.route-fill {
  position: absolute; left: 9px; top: 0; width: 4px; height: 0%;
  background: var(--green-deep); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(78,142,46,0.25);
}
.route-node {
  position: absolute; left: 11px; transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cream); border: 2px solid rgba(22,23,15,0.35);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.route-node.reached { background: var(--green); border-color: var(--ink); transform: translate(-50%,-50%) scale(1.25); }
.route-dot {
  position: absolute; left: 11px; top: 0; transform: translate(-50%, -50%) rotate(-45deg);
  width: 20px; height: 20px; border-radius: 50% 50% 50% 0;
  background: var(--green); border: 2.5px solid var(--ink);
  box-shadow: 0 4px 10px rgba(22,23,15,0.25); z-index: 2;
}
.route-dot::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
}
.route-label {
  position: absolute; left: 30px; top: -26px; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); font-family: var(--font-display);
}

#pin-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}
#confetti {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 90; pointer-events: none;
}

.vignette {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse 75% 75% at 50% 46%, rgba(20,18,10,0) 55%, rgba(20,18,10,0.30) 100%);
  transition: background 1.1s var(--ease-soft);
}
body.night .vignette {
  background: radial-gradient(ellipse 72% 72% at 50% 44%, rgba(6,9,26,0) 42%, rgba(5,7,22,0.62) 100%);
}

#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--cream);
  display: grid; place-items: center;
  transition: opacity 0.7s var(--ease-soft), visibility 0.7s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(48px, 12vw, 140px); letter-spacing: -0.04em;
  color: var(--ink); position: relative;
}
.loader-bar {
  position: absolute; left: 0; bottom: -22px; height: 6px; width: 0%;
  background: var(--green); border-radius: 99px;
  animation: loaderfill 1.8s var(--ease-soft) forwards;
}
@keyframes loaderfill { from { width: 0%; } to { width: 100%; } }
.loader-dot { color: var(--green); }
.loader-cap { margin-top: 38px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--font-display); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: transform 0.5s var(--ease-soft);
  mix-blend-mode: normal;
}
.nav.hide { transform: translateY(-130%); }
.nav-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; letter-spacing: -0.03em; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.nav-logo .blip {
  width: 13px; height: 13px; border-radius: 50% 50% 50% 0;
  background: var(--green); transform: rotate(45deg);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.12);
}
.nav-links {
  display: flex; gap: 6px; align-items: center;
  background: rgba(255,253,247,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(22,23,15,0.07);
  padding: 7px; border-radius: 99px;
}
.nav-links a {
  font-size: 14.5px; font-weight: 600; padding: 9px 16px; border-radius: 99px;
  color: var(--ink-soft); transition: background 0.25s, color 0.25s;
}
.nav-links a:hover { background: var(--cream); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-lang { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.03em; color: var(--ink); }
button.nav-lang {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; line-height: 1;
  padding: 9px 13px; border-radius: 99px;
  background: rgba(255,253,247,0.55); border: 1px solid rgba(22,23,15,0.10);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform 0.3s var(--ease-back), background 0.25s var(--ease-soft), color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}
button.nav-lang::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50% 50% 50% 0; background: var(--green); transform: rotate(45deg); box-shadow: inset -1px -1px 0 rgba(0,0,0,0.14); }
button.nav-lang:hover { transform: translateY(-1px); background: var(--ink); color: var(--cream); border-color: var(--ink); }
button.nav-lang:active { transform: translateY(0) scale(0.96); }

body.lang-th {
  --font-display: "Prompt", "Geist", sans-serif;
  --font-body: "Prompt", "Geist", sans-serif;
  --font-thai: "Prompt", "Geist", sans-serif;
}
body.lang-th .beat-sub, body.lang-th .sec-lede, body.lang-th p { line-height: 1.6; }

/* hero: one big labelled pill. the moment you scroll, the label + pill shell collapse
   away, leaving just the nav-sized switch. everything animates on transform/opacity
   only — no layout properties — so it stays at full frame rate over the 3D scene. */
.tt-wrap { position: relative; display: inline-flex; align-items: center; flex: none; }
body.tt-hero:not(.tt-used) .tt-wrap { animation: ttNudge 3.4s var(--ease-soft) 2; }
/* once collapsed, the pill stops painting/compositing entirely */
body:not(.tt-hero) .tt-shell, body:not(.tt-hero) .tt-nudge { visibility: hidden; }
.tt-shell {
  position: absolute; z-index: 0; pointer-events: none;
  top: -9px; bottom: -9px; right: -9px; left: calc(-1 * var(--tt-w, 200px) - 8px);
  border-radius: 99px; background: var(--white); border: 2px solid var(--ink); box-shadow: 0 6px 0 -1px var(--ink);
  opacity: 0; transform: scale(0.7); transform-origin: 86% 50%;
  transition: opacity 0.14s linear, transform 0.26s var(--ease-snap), visibility 0s linear 0.28s;
}
body.tt-hero .tt-shell { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
body.tt-hero .tt-wrap:hover .tt-shell { transform: translateY(-1px); box-shadow: 0 9px 0 -1px var(--ink); }
body.tt-hero .tt-wrap:active .tt-shell { transform: translateY(3px); box-shadow: 0 2px 0 -1px var(--ink); }
.tt-nudge {
  position: absolute; z-index: 1; right: calc(100% + 11px); top: 50%;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -0.01em;
  color: var(--ink); background: none; border: 0; padding: 0; white-space: nowrap;
  opacity: 0; transform: translate(14px, -50%) scale(0.8); transform-origin: right center;
  pointer-events: none;
  transition: opacity 0.14s linear, transform 0.26s var(--ease-snap), visibility 0s linear 0.28s;
}
body.tt-hero .tt-nudge { opacity: 1; transform: translate(0, -50%); pointer-events: auto; visibility: visible; transition-delay: 0s; }
.tt-nudge svg { width: 18px; height: 18px; flex: none; }
.nav-lang { transition: transform 0.28s var(--ease-snap), background 0.25s var(--ease-soft), color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft); }
body.tt-hero button.nav-lang { transform: translateX(calc(-1 * var(--tt-w, 200px) - 18px)); }
body.tt-hero button.nav-lang:hover { transform: translateX(calc(-1 * var(--tt-w, 200px) - 18px)) translateY(-1px); }
.tt-lbls { display: grid; align-items: center; }
.tt-lbls > span { grid-area: 1 / 1; transition: opacity 0.16s linear, transform 0.26s var(--ease-snap); }
.tt-lbls .tt-l--night { opacity: 0; transform: translateY(7px); }
body.night .tt-lbls .tt-l--day { opacity: 0; transform: translateY(-7px); }
body.night .tt-lbls .tt-l--night { opacity: 1; transform: none; }
body.tt-hero .theme-toggle { transform: scale(1.16); background: var(--cream-2); border-color: rgba(22,23,15,0.14); }
body.tt-hero .theme-toggle.is-night { background: #1b2147; border-color: rgba(255,255,255,0.2); }
body.tt-hero .theme-toggle::after { opacity: 0; animation: none; }
@keyframes ttNudge {
  0%, 62%, 100% { transform: translateX(0); }
  70% { transform: translateX(4px); }
  78% { transform: translateX(0); }
  86% { transform: translateX(3px); }
}
body.night .theme-toggle::after, body.tt-used .theme-toggle::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tt-wrap { animation: none !important; } }
@media (max-width: 780px) {
  .tt-nudge, .tt-shell { display: none; }
  body.tt-hero .tt-wrap { animation: none; }
  body.tt-hero button.nav-lang, body.tt-hero button.nav-lang:hover { transform: none; }
  body.tt-hero .theme-toggle { transform: none; background: var(--white); border-color: rgba(22,23,15,0.16); }
  body.tt-hero .theme-toggle.is-night { background: #1b2147; }
}

.theme-toggle {
  width: 60px; height: 32px; border-radius: 99px; position: relative; flex: none;
  background: var(--white); border: 1.5px solid rgba(22,23,15,0.16); padding: 0;
  transition: background 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft),
    transform 0.26s var(--ease-snap);
  z-index: 1;
  overflow: visible;
}
.theme-toggle::before {
  content: ""; position: absolute; inset: 0; border-radius: 99px; overflow: hidden; opacity: 0; transition: opacity 0.6s;
  background:
    radial-gradient(1.2px 1.2px at 14px 11px, rgba(255,255,255,0.9) 50%, transparent),
    radial-gradient(1px 1px at 22px 20px, rgba(255,255,255,0.7) 50%, transparent),
    radial-gradient(1.4px 1.4px at 10px 22px, rgba(255,255,255,0.6) 50%, transparent);
}
.theme-toggle .tt-knob {
  position: absolute; top: 50%; left: 4px; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 2px 6px rgba(0,0,0,0.22), inset 0 0 0 0 transparent;
  transition: left 0.42s var(--ease-back), background 0.5s, box-shadow 0.5s;
}
.theme-toggle::after {
  content: ""; position: absolute; inset: -5px; border-radius: 99px; pointer-events: none;
  border: 2px solid var(--green-deep); animation: ttRing 2.6s var(--ease-soft) infinite;
}
@keyframes ttRing {
  0% { transform: scale(0.92); opacity: 0; }
  35% { opacity: 0.85; }
  100% { transform: scale(1.22); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle::after { animation: none; opacity: 0; } }
.theme-toggle:hover { border-color: rgba(22,23,15,0.32); }
.theme-toggle.is-night { background: #1b2147; border-color: rgba(255,255,255,0.2); }
.theme-toggle.is-night::before { opacity: 1; }
.theme-toggle.is-night .tt-knob {
  left: 32px; background: #F3EFE2;
  box-shadow: inset -7px -2px 0 0 #1b2147, 0 0 12px rgba(243,239,226,0.55);
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 99px;
  background: var(--ink); color: var(--cream);
  transition: transform 0.3s var(--ease-back), box-shadow 0.3s, background 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--green { background: var(--green); color: var(--ink); box-shadow: 0 8px 0 -2px var(--green-deep); }
.btn--green:hover { box-shadow: 0 12px 0 -2px var(--green-deep); }
.btn--green:active { box-shadow: 0 4px 0 -2px var(--green-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(22,23,15,0.18); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--lg { font-size: 17px; padding: 18px 30px; }
.btn--xl { font-size: 19px; padding: 22px 40px; }
.btn--cta { background: var(--cream); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 8px 0 -2px var(--ink); }
.btn--cta:hover { box-shadow: 0 12px 0 -2px var(--ink); }
.btn--cta:active { box-shadow: 0 4px 0 -2px var(--ink); }
.btn .line-ic { width: 18px; height: 18px; border-radius: 5px; background: #06C755; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }

.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 2px solid var(--ink);
  background: var(--yellow);
  padding: 14px 0;
}
.marquee.green { background: var(--green); }
.marquee.pink { background: var(--pink); }
.marquee-track { display: inline-flex; gap: 40px; will-change: transform; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 40px;
}
.marquee-track span::after {
  content: "✳"; color: var(--ink); font-size: 18px;
}

.section { position: relative; padding-block: clamp(90px, 13vh, 170px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--green-ink);
  background: var(--white); border: 1px solid rgba(22,23,15,0.08);
  padding: 8px 15px; border-radius: 99px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.reveal { opacity: 0; transform: translateY(34px); }

.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 90px; overflow: hidden; }
.hero-bg-word {
  position: absolute; left: -2vw; bottom: 4%; transform: none;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(140px, 30vw, 440px); line-height: 0.8; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(22,23,15,0.09);
  pointer-events: none; user-select: none; z-index: 1; white-space: nowrap;
}
.hero-inner { position: relative; z-index: 6; text-align: left; max-width: 52%; }
.hero h1 {
  font-size: clamp(48px, 6.8vw, 104px); line-height: 0.92;
  margin: 22px 0 0; max-width: 11ch;
}
.hero h1 .swash { color: var(--green-deep); font-style: italic; font-family: var(--font-display); }
.hero-sub {
  font-size: clamp(17px, 2.1vw, 22px); color: var(--ink-soft); font-weight: 500;
  max-width: 38ch; margin: 26px 0 0; line-height: 1.5;
}
.hero-cta { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; margin-top: 36px; }
.hero-foot { margin-top: 30px; font-size: 14px; font-weight: 600; color: var(--ink-soft); display: flex; gap: 10px; justify-content: flex-start; align-items: center; }
.hero-foot .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }

.beat--hero { padding-bottom: clamp(92px, 13vh, 150px); }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  opacity: 0.5;
}

@media (max-height: 560px) { .scroll-hint { display: none; } }

.scroll-hint--beat { position: static; transform: none; left: auto; bottom: auto; margin-top: 32px; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 2px solid var(--ink-soft); border-radius: 99px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 99px; background: var(--ink-soft); animation: wheel 1.6s var(--ease-soft) infinite; }
@keyframes wheel { 0%{ opacity: 0; transform: translate(-50%,0);} 30%{opacity:1;} 100%{opacity:0; transform: translate(-50%,12px);} }

.scroll-hint .swipe { display: none; }
@media (max-width: 700px) {
  .scroll-hint .mouse { display: none; }
  .scroll-hint .swipe {
    display: block; width: 27px; height: 40px; position: relative;
    border: 2px solid var(--ink-soft); border-radius: 6px;
  }
  .scroll-hint .swipe::after {

    content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 11px; height: 2px; border-radius: 2px; background: var(--ink-soft); opacity: 0.55;
  }
  .scroll-hint .swipe .finger {
    position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 10px; border-radius: 99px; background: var(--ink-soft);
    animation: swipe 1.6s var(--ease-soft) infinite;
  }
}
@keyframes swipe { 0%{ opacity: 0; transform: translate(-50%,2px);} 30%{ opacity: 1;} 100%{ opacity: 0; transform: translate(-50%,-15px);} }

.float-shape { position: absolute; z-index: 2; pointer-events: none; }
.blob { border-radius: 50%; }
.shape-star { font-family: var(--font-display); }

.meaning { text-align: center; position: relative; }
.meaning .thai { font-family: var(--font-thai); font-weight: 700; color: var(--green-deep); font-size: clamp(60px, 14vw, 200px); line-height: 0.9; }
.meaning h2 { font-size: clamp(40px, 6.5vw, 92px); margin-top: 6px; }
.meaning p { max-width: 40ch; margin: 26px auto 0; font-size: clamp(17px,2vw,21px); color: var(--ink-soft); font-weight: 500; line-height: 1.5; }

.problem { background: var(--ink); color: var(--cream); border-radius: 44px; margin-inline: clamp(8px,2vw,20px); }
.problem .eyebrow { background: rgba(255,255,255,0.08); color: var(--green); border-color: rgba(255,255,255,0.12); }
.problem h2 { font-size: clamp(40px, 7vw, 104px); color: var(--cream); max-width: 14ch; }
.problem h2 em { color: var(--green); font-style: normal; }
.search-mock {
  background: var(--white); color: var(--ink); border-radius: var(--r-md); padding: 22px;
  max-width: 420px; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.search-bar { display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: 99px; padding: 12px 18px; font-weight: 600; color: var(--ink-soft); }
.search-bar .mag { width: 16px; height: 16px; border: 2px solid var(--ink-soft); border-radius: 50%; position: relative; }
.search-bar .mag::after { content:""; position:absolute; width:2px; height:6px; background: var(--ink-soft); bottom:-4px; right:-1px; transform: rotate(-45deg); }
.search-res { margin-top: 8px; padding: 14px 6px; border-bottom: 1px solid rgba(0,0,0,0.07); display: flex; gap: 12px; align-items: center; }
.search-res:last-child { border-bottom: none; }
.search-res .pin-ic { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(45deg); flex: none; }
.search-res .meta { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.search-res .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.search-res.you { opacity: 0.55; }
.search-res.you .pin-ic { background: repeating-linear-gradient(45deg,#ccc 0 6px,#ddd 6px 12px); }
.search-res .badge { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--cream); }

.prob-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 64px; }
.prob-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md); padding: 30px; }
.prob-card .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--green); }
.prob-card h3 { font-size: 24px; margin-top: 14px; color: var(--cream); line-height: 1.05; }
.prob-card p { margin-top: 12px; color: rgba(245,241,228,0.7); font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.prob-card .chip { display: inline-block; margin-top: 18px; font-size: 13px; font-weight: 700; font-family: var(--font-display); padding: 7px 13px; border-radius: 8px; background: rgba(245,226,18,0.16); color: var(--yellow); }
.prob-fix { margin-top: 54px; font-size: clamp(22px,3vw,34px); font-family: var(--font-display); font-weight: 700; color: var(--cream); text-align: center; }
.prob-fix b { color: var(--green); }

.how .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.how h2 { font-size: clamp(40px, 6.5vw, 92px); max-width: 13ch; }
.how-sub { max-width: 34ch; color: var(--ink-soft); font-size: 18px; font-weight: 500; line-height: 1.5; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 70px; }
.step {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-md);
  padding: 30px; box-shadow: 0 10px 0 -1px var(--ink); position: relative; overflow: hidden;
  transition: transform 0.32s var(--ease-soft), box-shadow 0.32s var(--ease-soft);
}
.step:hover { transform: translateY(-7px); box-shadow: 0 17px 0 -1px var(--ink); }
.step:nth-child(1) { background: var(--green); }
.step:nth-child(2) { background: var(--pink); }
.step:nth-child(3) { background: var(--yellow); }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(54px,7vw,86px); line-height: 0.8; color: var(--ink); opacity: 0.9; }
.step h3 { font-size: 26px; margin-top: 16px; }
.step p { margin-top: 12px; font-size: 15.5px; color: var(--ink-soft); font-weight: 500; line-height: 1.5; }
.chat-mini { margin-top: 20px; background: var(--white); border-radius: 16px; padding: 14px; border: 1.5px solid var(--ink); }
.chat-mini .from { font-size: 12px; font-weight: 700; color: var(--green-deep); display: flex; align-items: center; gap: 6px; }
.chat-mini .from::before { content:""; width: 7px; height:7px; border-radius:50%; background: var(--green); }
.bubble { font-size: 13.5px; font-weight: 600; padding: 9px 13px; border-radius: 13px; margin-top: 8px; max-width: 85%; line-height: 1.35; }
.bubble.in { background: var(--cream); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--green); margin-left: auto; border-bottom-right-radius: 4px; }
.step:nth-child(1) .bubble.out { background: var(--ink); color: var(--cream); }

.designs { text-align: center; }
.designs h2 { font-size: clamp(40px, 6.5vw, 92px); max-width: 16ch; margin-inline: auto; }
.designs p { max-width: 42ch; margin: 22px auto 0; color: var(--ink-soft); font-size: 18px; font-weight: 500; }
.tpl-row {
  display: flex; gap: 22px; margin-top: 56px; width: auto;
  overflow-x: auto; scroll-snap-type: x mandatory; cursor: grab;
  padding: 6px clamp(20px,5vw,72px) 26px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.tpl-row::-webkit-scrollbar { display: none; }
.tpl-row.dragging { cursor: grabbing; scroll-snap-type: none; }
.tpl {
  width: 250px; height: 420px; border-radius: 28px; flex: none; position: relative; overflow: hidden;
  border: 2px solid var(--ink); box-shadow: 0 16px 30px rgba(22,23,15,0.12);
  display: flex; flex-direction: column; padding: 18px; text-align: left;
  scroll-snap-align: center; user-select: none;
  transition: transform 0.32s var(--ease-soft), box-shadow 0.32s var(--ease-soft);
}
.tpl:hover { transform: translateY(-8px); box-shadow: 0 28px 46px rgba(22,23,15,0.22); }
.tpl .tpl-tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-display); }
.tpl .tpl-name { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 0.95; margin-top: auto; }
.tpl .tpl-meta { font-size: 13px; font-weight: 600; opacity: 0.7; margin-top: 8px; }
.tpl .tpl-btns { display: flex; gap: 7px; margin-top: 14px; }
.tpl .tpl-btns span { font-size: 11px; font-weight: 700; padding: 7px 11px; border-radius: 99px; background: rgba(0,0,0,0.1); }
.tpl-photo { position:absolute; inset:0; z-index:0; opacity: 0.9; }
.tpl > * { position: relative; z-index: 1; }

.drag-hint { display: flex; justify-content: center; margin-top: 34px; transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease-soft); }
.drag-hint.retired { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.drag-hint > * { pointer-events: none; }
.dh-glyph { position: relative; display: grid; place-items: center; width: 46px; height: 30px; color: var(--ink); opacity: 0.5; }
.dh-glyph > svg { width: 46px; height: 22px; }
.dh-hand { position: absolute; display: grid; place-items: center; width: 22px; height: 22px; animation: dhNudge 2.6s var(--ease-soft) infinite; }
.dh-hand svg { width: 22px; height: 22px; }
@keyframes dhNudge {
  0%, 12% { transform: translateX(0) scale(1); }
  26% { transform: translateX(0) scale(0.88); }
  52% { transform: translateX(11px) scale(0.88); }
  72% { transform: translateX(-9px) scale(0.88); }
  84% { transform: translateX(0) scale(1); }
  100% { transform: translateX(0) scale(1); }
}
.dh-text { align-self: center; margin-left: 9px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-soft); opacity: 0.72; }
@media (prefers-reduced-motion: reduce) { .dh-hand { animation: none; } }
@media (max-width: 560px) { .drag-hint { margin-top: 26px; } }

.tpl-row.live { gap: 34px; margin-top: 52px; padding: 30px 6px 40px; align-items: flex-start; }
.dcard { flex: none; width: 268px; display: flex; flex-direction: column; align-items: center; gap: 17px; text-decoration: none; color: var(--ink); scroll-snap-align: center; -webkit-tap-highlight-color: transparent; -webkit-user-drag: none; }
.dcard:hover { color: var(--ink); }
.phone {
  position: relative; width: 268px; padding: 11px; border-radius: 48px;
  background: linear-gradient(158deg, #2b2c20 0%, #16170f 52%, #090a05 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 0 0 1.5px rgba(255,255,255,0.05),
              0 34px 60px -22px rgba(22,23,15,0.55), 0 10px 24px -14px rgba(22,23,15,0.45);
  transition: transform 0.42s var(--ease-soft), box-shadow 0.42s var(--ease-soft);
}
.dcard:hover .phone {
  transform: translateY(-12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), inset 0 0 0 1.5px rgba(255,255,255,0.06),
              0 50px 78px -24px rgba(22,23,15,0.62), 0 16px 30px -14px rgba(22,23,15,0.5);
}
.phone-screen { position: relative; width: 246px; height: 510px; border-radius: 38px; overflow: hidden; background: var(--pv, #e9e5d8); clip-path: inset(0 round 38px); }
.phone-screen iframe {
  position: absolute; top: 0; left: 0; width: 370px; height: 767px; border: 0;
  border-radius: 57px; overflow: hidden;
  transform: scale(0.66486); transform-origin: top left;
  pointer-events: none; opacity: 0; transition: opacity 0.7s var(--ease-soft);
}
.phone-screen.loaded iframe { opacity: 1; }
.phone-screen.loaded .phone-skel { opacity: 0; }

/* The poster is visible from the moment it paints — no JS required. The live iframe
   fades in over it once it has actually booted. */
.phone-poster { position: absolute; border-radius: 38px; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 1; transition: opacity 0.45s var(--ease-soft); }
.phone-screen.posterready .phone-poster { opacity: 1; }
.phone-screen.posterready .phone-skel { opacity: 0; }
.phone-screen.loaded .phone-poster { opacity: 0; }
.phone-screen.live iframe { z-index: 3; }
.phone-skel { position: absolute; inset: 0; z-index: 1; background: var(--pv, #e9e5d8); transition: opacity 0.6s var(--ease-soft); overflow: hidden; }
.phone-skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-100%); animation: skelShine 1.5s var(--ease-soft) infinite;
}
@keyframes skelShine { to { transform: translateX(100%); } }
.phone-glass { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 20px; opacity: 0; background: linear-gradient(to top, rgba(9,10,5,0.55) 0%, rgba(9,10,5,0) 42%); transition: opacity 0.34s var(--ease-soft); }
.dcard:hover .phone-glass { opacity: 1; }
.pglabel { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.01em; color: var(--ink); background: var(--white); padding: 10px 17px; border-radius: 999px; box-shadow: 0 10px 22px -8px rgba(9,10,5,0.5); transform: translateY(8px); transition: transform 0.34s var(--ease-soft); }
.dcard:hover .pglabel { transform: translateY(0); }
.pglabel svg { width: 15px; height: 15px; }
.dcard-tag { position: absolute; top: -10px; left: 16px; z-index: 4; font-family: var(--font-display); font-weight: 800; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; box-shadow: 0 8px 18px -6px rgba(22,23,15,0.4); }
.dcard-tag.k-3d { background: var(--pink); color: #5a2b6b; }
.dcard-tag.k-motion { background: var(--yellow); color: var(--ink); }
.dcard-tag.k-link { background: var(--green); color: var(--green-ink); }
.dcard-foot { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.dcard-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; line-height: 1; }
.dcard-kind { font-size: 13px; font-weight: 600; color: var(--ink-soft); opacity: 0.72; }
@media (max-width: 560px) {
  .tpl-row.live { gap: 26px; }
  .dcard, .phone { width: 240px; }
  .phone-screen { width: 218px; height: 452px; }
  .phone-screen iframe { transform: scale(0.58919); border-radius: 64px; }
}
@media (prefers-reduced-motion: reduce) { .phone-skel::after { animation: none; } }

.features { position: relative; }
.feat-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.features h2 { font-size: clamp(38px, 5.5vw, 80px); max-width: 12ch; }
.features .lede { margin-top: 22px; font-size: 19px; color: var(--ink-soft); font-weight: 500; line-height: 1.5; max-width: 40ch; }
.feat-list { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
.feat-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1.5px solid rgba(22,23,15,0.12); }
.feat-item .ic { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 20px; }
.feat-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.2; }
.feat-item p { font-size: 15px; color: var(--ink-soft); margin-top: 5px; font-weight: 500; line-height: 1.5; }

.phone-stage { display: grid; place-items: center; position: relative; }
.phone-stage .phone {
  width: 300px; height: 610px; border-radius: 46px; background: var(--ink); padding: 11px;
  box-shadow: 0 40px 80px rgba(22,23,15,0.3), inset 0 0 0 2px rgba(255,255,255,0.06);
  position: relative; z-index: 2;
}
.phone-stage .phone-screen { width: 100%; height: 100%; border-radius: 36px; background: var(--pv, var(--cream)); overflow: hidden; position: relative; display: flex; flex-direction: column; clip-path: inset(0 round 36px); }
.phone-stage .phone-screen iframe { position: absolute; top: 0; left: 0; width: 370px; height: 783px; border: 0; border-radius: 48px; overflow: hidden; transform: scale(0.751351); transform-origin: top left; pointer-events: none; opacity: 0; transition: opacity 0.7s var(--ease-soft); }
.phone-stage .phone-screen.loaded iframe { opacity: 1; }
.phone-notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: var(--ink); border-radius: 99px; z-index: 5; }
.ps-hero { height: 230px; background: var(--green); position: relative; display: flex; align-items: flex-end; padding: 20px; }
.ps-hero .ps-cat { position: absolute; top: 18px; left: 18px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; background: var(--ink); color: var(--cream); padding: 5px 10px; border-radius: 99px; }
.ps-hero h5 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 0.92; color: var(--ink); }
.ps-body { padding: 18px; flex: 1; }
.ps-meta { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.ps-deal { margin-top: 12px; background: var(--yellow); border-radius: 12px; padding: 11px 14px; font-weight: 700; font-size: 13.5px; display: inline-block; white-space: nowrap; }
.ps-btns { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 18px; }
.ps-btns button { background: var(--ink); color: var(--cream); border-radius: 13px; padding: 13px 0; font-weight: 700; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ps-btns button .bi { font-size: 16px; }
.ps-foot { margin-top: auto; padding: 14px; text-align: center; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.ps-foot .blip { display: inline-block; width: 8px; height: 8px; border-radius: 50% 50% 50% 0; background: var(--green); transform: rotate(45deg); margin-right: 5px; }

.free { text-align: center; background: var(--green); border-radius: 44px; margin-inline: clamp(8px,2vw,20px); color: var(--ink); overflow: hidden; position: relative; }
.free .big { font-size: clamp(56px, 12vw, 180px); line-height: 0.86; }
.free p { font-size: clamp(18px,2.2vw,24px); max-width: 30ch; margin: 22px auto 0; font-weight: 600; }
.free-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 36px; max-width: 660px; margin-inline: auto; }
.free-list span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,253,247,0.5); color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 9px 16px 9px 10px; border-radius: 99px; }
.free-list .tick { width: 19px; height: 19px; border-radius: 50%; background: var(--ink); flex: none; position: relative; }
.free-list .tick::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.free-cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.free-cta-note { font-size: 14.5px; font-weight: 700; color: var(--ink); opacity: 0.62; letter-spacing: 0.01em; }

.sec-cta { margin-top: 38px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sec-cta.center { justify-content: center; }
.sec-cta-note { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.sec-cta-wrap { text-align: center; margin-top: 46px; }

.cta-band { background: var(--pink); border-radius: 44px; margin: 0 clamp(8px,2vw,20px); text-align: center; overflow: hidden; position: relative; }
.cta-band .wrap { padding-block: clamp(54px, 8vh, 100px); }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.02em; line-height: 1.0; color: var(--ink); }
.cta-band p { margin: 16px auto 0; max-width: 38ch; color: var(--ink); opacity: 0.72; font-weight: 500; font-size: clamp(16px,1.9vw,20px); }
.cta-band .sec-cta { justify-content: center; margin-top: 30px; }
.cta-band .sec-cta-note { color: var(--ink); opacity: 0.62; font-weight: 700; }

.faq h2 { font-size: clamp(38px, 6vw, 84px); text-align: center; max-width: 16ch; margin-inline: auto; }
.faq-list { max-width: 820px; margin: 56px auto 0; }
.faq-item { border-top: 2px solid var(--ink); padding: 4px 0; }
.faq-item:last-child { border-bottom: 2px solid var(--ink); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 6px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,2.6vw,28px); }
.faq-q .pl { width: 30px; height: 30px; flex: none; position: relative; transition: transform 0.4s var(--ease-back); }
.faq-q .pl::before, .faq-q .pl::after { content:""; position: absolute; background: var(--ink); border-radius: 99px; }
.faq-q .pl::before { width: 100%; height: 3px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .pl::after { height: 100%; width: 3px; left: 50%; top: 0; transform: translateX(-50%); transition: opacity 0.3s; }
.faq-item.open .faq-q .pl { transform: rotate(135deg); }

.final { text-align: center; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(46px, 9vw, 150px); max-width: 14ch; margin-inline: auto; }
.final p { font-size: clamp(18px,2.4vw,26px); margin: 24px auto 0; font-weight: 600; color: var(--ink-soft); }
.final-cta { display: flex; gap: 26px; align-items: center; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.qr-card { background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 16px; box-shadow: 0 14px 0 -2px var(--ink); }
.qr-card .qr { width: 116px; height: 116px; border-radius: 12px; display: grid; place-items: center; background:
  conic-gradient(from 0deg, var(--ink) 0 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) ;
  background-size: 18px 18px; background-color: var(--white); }
.qr-card .qr .core { width: 40px; height: 40px; border-radius: 8px 8px 8px 0; background: var(--green); border: 3px solid var(--ink); }
.qr-card .cap { font-size: 12px; font-weight: 700; margin-top: 9px; color: var(--ink-soft); }

footer { background: var(--ink); color: var(--cream); padding: 120px var(--pad) 40px; border-radius: 0; margin-top: 0; position: relative; z-index: 20; }

footer::before { content: ""; position: absolute; left: 0; right: 0; top: -220px; height: 220px; background: linear-gradient(to bottom, rgba(22,23,15,0), var(--ink)); pointer-events: none; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand .nav-logo { color: var(--cream); font-size: 44px; }
.foot-cta { margin-top: 22px; }
.foot-brand p { margin-top: 16px; color: rgba(245,241,228,0.6); max-width: 30ch; font-weight: 500; }
.foot-links { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h6 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); margin-bottom: 16px; font-weight: 800; }
.foot-col a { display: block; color: rgba(245,241,228,0.75); font-weight: 600; padding: 7px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--cream); }
.foot-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: rgba(245,241,228,0.55); }
.foot-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(60px, 20vw, 300px); line-height: 0.8; letter-spacing: -0.04em; color: rgba(245,241,228,0.06); text-align: center; margin-top: 50px; user-select: none; }

#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

#scroll-root { position: relative; width: 1px; height: 920vh; pointer-events: none; z-index: -1; }

.beats { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.beat {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: clamp(28px, 7vw, 130px); opacity: 0; will-change: opacity;
}
.beat.pos-center { justify-content: center; text-align: center; }
.beat.pos-left { justify-content: flex-start; text-align: left; }
.beat.pos-right { justify-content: flex-end; text-align: right; }
.beat-inner { position: relative; max-width: 600px; will-change: transform; }
.pos-center .beat-inner { max-width: 800px; }

.beat-inner::before {
  content: ""; position: absolute; inset: -70px -120px; z-index: -1;
  background: radial-gradient(62% 66% at 50% 50%, rgba(245,241,228,0.72) 0%, rgba(245,241,228,0.55) 26%, rgba(245,241,228,0.34) 48%, rgba(245,241,228,0.14) 66%, rgba(245,241,228,0) 84%);
}
.pos-left .beat-inner::before { inset: -70px -150px -70px -110px; }
.pos-right .beat-inner::before { inset: -70px -110px -70px -150px; }
.beat-h1, .beat-h2 { text-shadow: 0 1px 30px rgba(245,241,228,0.55); }
.beat-sub { text-shadow: 0 1px 18px rgba(245,241,228,0.7); }
/* day: a soft white halo traced around the journey copy so it stays readable
   wherever the street underneath goes dark (shadows, shopfronts, foliage) */
body:not(.night) .beat-h1,
body:not(.night) .beat-h2,
body:not(.night) .beat-sub,
body:not(.night) .thai-big,
body:not(.night) .beat .scroll-hint {
  text-shadow:
    0 0 2px rgba(255,255,255,0.32),
    0 0 10px rgba(255,255,255,0.28), 0 1px 22px rgba(245,241,228,0.45);
}

.beat-h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 7.2vw, 104px); line-height: 0.92; letter-spacing: -0.025em; }
.beat-h1 .hline { display: block; }

@media (min-width: 701px) { .beat-h1 .hline { white-space: nowrap; } }
.beat-h1 .swash { color: var(--green-deep); font-style: italic; }
.beat-h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 6vw, 92px); line-height: 1.04; letter-spacing: -0.02em; }
.beat-h2.huge { font-size: clamp(50px, 9vw, 138px); }
.beat-h2.huge + .beat-sub { margin-top: 30px; }
.beat-h2 em { color: var(--green-deep); font-style: normal; }
.beat-sub { font-size: clamp(16px, 1.9vw, 22px); color: var(--ink-soft); margin-top: 22px; max-width: 46ch; line-height: 1.5; font-weight: 500; }
.beat-sub.center { margin-inline: auto; }
.pos-center .beat-sub { margin-inline: auto; }
.pos-right .beat-sub { margin-left: auto; }

.beat-cta, .final-cta { display: flex; gap: 18px; margin-top: 32px; flex-wrap: wrap; }

.beat-cta { pointer-events: none; }
.pos-center .beat-cta { justify-content: center; }
.final-cta { align-items: center; justify-content: center; margin-top: 30px; }
.beat-final .qr-card { padding: 13px; }
.beat-final .qr-card .qr { width: 96px; height: 96px; }

.thai-big { display: block; font-family: var(--font-thai); font-weight: 700; color: var(--green-deep); font-size: clamp(54px, 10vw, 150px); line-height: 0.85; margin-bottom: 6px; }

.eyebrow--ghost { background: transparent; border: 1.5px solid rgba(22,23,15,0.22); color: var(--ink); }

.steps-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.step-chip { background: var(--white); border: 1.5px solid var(--ink); border-radius: 99px; padding: 12px 19px; font-weight: 600; font-size: 15px; box-shadow: 0 4px 0 -1px var(--ink); }
.step-chip b { color: var(--green-deep); margin-right: 7px; font-family: var(--font-display); }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pos-center .tag-row { justify-content: center; }
.tag-row span { font-family: var(--font-thai); background: var(--white); border: 1px solid rgba(22,23,15,0.12); border-radius: 99px; padding: 8px 15px; font-weight: 600; font-size: 14px; }

.beat-final .final-foot { margin-top: 30px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.journey { position: fixed; right: 32px; top: 50%; transform: translateY(-50%); height: 40vh; z-index: 80; display: none; align-items: center; }
@media (min-width: 1040px) { .journey { display: flex; } }
.journey-track { width: 4px; height: 100%; background: rgba(22,23,15,0.16); border-radius: 4px; position: relative; overflow: hidden; }
.journey-fill { position: absolute; inset: 0; background: var(--green-deep); border-radius: 4px; transform-origin: top center; transform: scaleY(0); }

.journey-dots { position: absolute; left: 0; top: 0; width: 4px; height: 100%; }
.journey-dot {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%) scale(1);
  width: 6px; height: 6px; padding: 0; border-radius: 50%;
  background: rgba(22,23,15,0.18); border: none;
  cursor: pointer; pointer-events: auto;
  transition: transform 0.4s var(--ease-back), background 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}
.journey-dot::after {
  content: attr(data-label);
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%) translateX(5px);
  font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}
.journey-dot:hover { transform: translate(-50%, -50%) scale(1.5); background: var(--ink); }
.journey-dot:hover::after { opacity: 0.85; transform: translateY(-50%) translateX(0); }
.journey-dot.reached { background: var(--green-deep); }
.journey-dot.current { transform: translate(-50%, -50%) scale(1.25); }
.journey-dot.current:hover { transform: translate(-50%, -50%) scale(1.5); }
.journey-label { position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--font-display); }

.nojs { padding: 40px; font-family: var(--font-display); font-size: 20px; }

.mprogress { display: none; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 95; background: transparent; opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease-soft); }
@media (max-width: 1039px) { .mprogress { display: block; } }
.mprogress.show { opacity: 1; }
.mprogress-fill { display: block; height: 100%; width: 0%; background: var(--green); opacity: 0.7; border-radius: 0 2px 2px 0; }
body.night .mprogress { background: transparent; }

@media (max-width: 700px) {
  .beat { padding: 24px 20px; align-items: center; }
  .beat-inner { max-width: 100%; }
  .beat.pos-left, .beat.pos-right, .beat.pos-center { justify-content: center; text-align: center; }
  .beat-sub, .pos-right .beat-sub { margin-inline: auto; }
  .beat-cta, .final-cta { justify-content: center; }

  .beat-h1 { font-size: clamp(40px, 12vw, 76px); }
  .beat-h2 { font-size: clamp(31px, 8.6vw, 60px); }
  .beat-h2.huge { font-size: clamp(44px, 15vw, 96px); }
  .beat-sub { font-size: clamp(15px, 4.2vw, 19px); max-width: 32ch; }
  .thai-big { font-size: clamp(46px, 18vw, 120px); }
  .steps-row { gap: 9px; }
  .step-chip { padding: 11px 15px; font-size: 14px; }

  .final-cta { flex-direction: column; gap: 18px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { max-width: 100%; }
  .hero h1 { max-width: 14ch; }
  .prob-cards, .steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .phone-stage { order: -1; }
  .how .head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --r-lg: 22px; }
  .hero-bg-word { font-size: 44vw; }
  .nav { padding: 12px 15px; }
  .nav-logo { font-size: 24px; }
  .btn { padding: 13px 17px; font-size: 14px; }
  .btn--lg { padding: 15px 22px; font-size: 15px; }
  .btn--xl { padding: 18px 30px; font-size: 17px; }
  .marquee-track span { font-size: 16px; }
  .theme-toggle { width: 52px; height: 30px; min-height: 0; overflow: visible; }
  .theme-toggle .tt-knob { width: 22px; height: 22px; }
  .theme-toggle.is-night .tt-knob { left: 23px; }
}
@media (max-width: 430px) {
  .nav-lang { display: none; }
  .nav-right { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.001ms !important; }
}

body { transition: background 1s var(--ease-soft); }
body.night { background: #0c1130; }

.beat-inner::before { transition: background 1s var(--ease-soft); }
.beat-h1, .beat-h2, .beat-sub, .thai-big,
.nav-logo, .eyebrow, .step-chip, .tag-row span, .scroll-hint,
.journey-label, .final-foot {
  transition: color 0.9s var(--ease-soft), background 0.9s var(--ease-soft), border-color 0.9s var(--ease-soft), box-shadow 0.9s var(--ease-soft);
}

body.night .beat-inner::before {
  background: radial-gradient(58% 62% at 50% 50%, rgba(9,12,38,0.78) 0%, rgba(9,12,38,0.46) 42%, rgba(9,12,38,0) 78%);
}
body.night .pos-left .beat-inner::before { inset: -70px -150px -70px -110px; }
body.night .pos-right .beat-inner::before { inset: -70px -110px -70px -150px; }
body.night .beat-h1, body.night .beat-h2 { text-shadow: 0 2px 34px rgba(5,8,24,0.8); }
body.night .beat-sub { text-shadow: 0 2px 22px rgba(5,8,24,0.85); }

body.night .beat-h1,
body.night .beat-h2 { color: #F4F0E3; }
body.night .beat-h1 .swash,
body.night .beat-h2 em { color: var(--green); }
body.night .beat-sub { color: rgba(244,240,227,0.82); }
body.night .thai-big { color: var(--green-lite, #AEE07F); }

body.night .nav-logo { color: #F4F0E3; }
body.night .nav-logo .blip { box-shadow: inset -2px -2px 0 rgba(0,0,0,0.25), 0 0 10px rgba(141,212,98,0.6); }
body.night .nav-lang { color: rgba(244,240,227,0.78); }

.nav-logo, .nav-logo .blip, .nav-lang,
.nav-links, .nav-links a {
  transition: color 0.45s var(--ease-soft), background 0.45s var(--ease-soft),
    border-color 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft);
}
.nav.nav--onlight .nav-logo { color: var(--ink); }
.nav.nav--ondark  .nav-logo { color: #F4F0E3; }
.nav.nav--onlight .nav-logo .blip { box-shadow: inset -2px -2px 0 rgba(0,0,0,0.12); }
.nav.nav--ondark  .nav-logo .blip { box-shadow: inset -2px -2px 0 rgba(0,0,0,0.25), 0 0 10px rgba(141,212,98,0.65); }
.nav.nav--onlight .nav-lang { color: var(--ink); background: rgba(255,253,247,0.55); border-color: rgba(22,23,15,0.10); }
.nav.nav--ondark  .nav-lang { color: #F4F0E3; background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); }
.nav.nav--ondark  .nav-lang:hover { background: #F4F0E3; color: var(--ink); border-color: #F4F0E3; }
.nav.nav--onlight .nav-links { background: rgba(255,253,247,0.6); border-color: rgba(22,23,15,0.07); }
.nav.nav--ondark  .nav-links { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.16); }
.nav.nav--onlight .nav-links a { color: var(--ink-soft); }
.nav.nav--ondark  .nav-links a { color: rgba(244,240,227,0.82); }
.nav.nav--onlight .nav-links a:hover { background: var(--cream); color: var(--ink); }
.nav.nav--ondark  .nav-links a:hover { background: rgba(255,255,255,0.18); color: #fff; }

body.night .eyebrow {
  background: rgba(255,255,255,0.08); color: var(--green); border-color: rgba(255,255,255,0.16);
}
body.night .eyebrow--ghost { background: transparent; border-color: rgba(244,240,227,0.3); color: #F4F0E3; }

.problem-band .eyebrow {
  background: transparent;
  border: 1.5px solid rgba(244,240,227,0.3);
  color: #F4F0E3;
}
.problem-band .eyebrow .dot { background: var(--green); }

body.night .step-chip {
  background: rgba(255,255,255,0.07); color: #F4F0E3; border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 0 -1px rgba(0,0,0,0.45);
}
body.night .step-chip b { color: var(--green); }

body.night .tag-row span {
  background: rgba(255,255,255,0.07); color: #F4F0E3; border-color: rgba(255,255,255,0.18);
}

body.night .scroll-hint { color: rgba(244,240,227,0.75); }
body.night .scroll-hint .mouse { border-color: rgba(244,240,227,0.6); }
body.night .scroll-hint .mouse::after { background: rgba(244,240,227,0.7); }
body.night .scroll-hint .swipe { border-color: rgba(244,240,227,0.6); }
body.night .scroll-hint .swipe::after,
body.night .scroll-hint .swipe .finger { background: rgba(244,240,227,0.7); }

body.night .journey-track { background: rgba(244,240,227,0.16); }
body.night .journey-label { color: rgba(244,240,227,0.6); }
body.night .journey-dot { background: rgba(244,240,227,0.22); border: none; }
body.night .journey-dot::after { color: rgba(244,240,227,0.7); }
body.night .journey-dot.reached { background: var(--green); }

body.night .final-foot { color: rgba(244,240,227,0.62); }

body.night .btn--ghost { color: #F4F0E3; border-color: rgba(244,240,227,0.3); }
body.night .btn--ghost:hover { background: #F4F0E3; color: var(--ink); }

.night-boot #loader { background: #0c1130; }
.night-boot .loader-mark { color: #F4F0E3; }
.night-boot .loader-cap { color: rgba(244,240,227,0.6); }
.night-boot .loader-dot { color: var(--green); }

.story {
  position: relative; z-index: 20; background: var(--cream);
  box-shadow: 0 -40px 80px rgba(22,23,15,0.18);
}
.story .section { padding-block: clamp(72px, 11vh, 150px); }
.sec-h { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.0; letter-spacing: -0.02em; }
.sec-h.center { text-align: center; margin-inline: auto; }
.sec-h.huge { font-size: clamp(48px, 9vw, 128px); }
.sec-h.light { color: var(--cream); }
.sec-h .hl { color: var(--green-deep); }
.problem-band .sec-h .hl { color: var(--green); }
.sec-lede { font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); font-weight: 500; line-height: 1.55; margin-top: 22px; max-width: 54ch; }
.sec-lede.center { text-align: center; margin-inline: auto; }

.intro { text-align: left; }
.intro .sec-h { max-width: 18ch; margin-top: 18px; }
.intro-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; }
.stat { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-md); padding: 22px; box-shadow: 0 8px 0 -1px var(--ink); transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft); }
.stat:hover { transform: translateY(-6px); box-shadow: 0 14px 0 -1px var(--ink); }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); display: block; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }

.problem-band { background: var(--ink); border-radius: 44px; margin-inline: clamp(8px,2vw,20px); }
.story .problem-band { padding-block: clamp(56px, 8vh, 104px); }
.problem-band .sec-h { max-width: 16ch; margin-top: 22px; }
.prob-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 40px; }
.problem-band .prob-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-md); padding: 30px; transition: transform 0.3s var(--ease-soft), border-color 0.3s, background 0.3s; }
.problem-band .prob-card:hover { transform: translateY(-6px); border-color: rgba(141,212,98,0.45); background: rgba(255,255,255,0.07); }
.problem-band .pc-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--green); }
.problem-band .prob-card h3 { font-size: 23px; margin-top: 14px; color: var(--cream); line-height: 1.05; font-family: var(--font-display); font-weight: 700; }
.problem-band .prob-card p { margin-top: 12px; color: rgba(245,241,228,0.72); font-size: 15.5px; line-height: 1.5; font-weight: 500; }

.how .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.how .sec-head .sec-lede { max-width: 34ch; margin-top: 0; }

.free-band { text-align: center; background: var(--green); border-radius: 44px; margin-inline: clamp(8px,2vw,20px); }
.free-band .sec-h { margin-top: 16px; }
.final-band { text-align: center; }
.final-band .sec-h { margin-top: 16px; }

.faq .faq-list { max-width: 820px; margin: 52px auto 0; }
.faq-item { border-top: 2px solid var(--ink); }
.faq-item:last-child { border-bottom: 2px solid var(--ink); }
.faq-q { width: 100%; background: none; border: none; list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 6px; text-align: left; color: inherit; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px,2.4vw,27px); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .pl { width: 28px; height: 28px; flex: none; position: relative; transition: transform 0.45s var(--ease-soft); }
.faq-q .pl::before, .faq-q .pl::after { content: ""; position: absolute; background: var(--ink); border-radius: 99px; }
.faq-q .pl::before { width: 100%; height: 3px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .pl::after { height: 100%; width: 3px; left: 50%; top: 0; transform: translateX(-50%); transition: opacity 0.3s, transform 0.45s var(--ease-soft); }
.faq-item.open .faq-q .pl { transform: rotate(135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.42s cubic-bezier(0.33, 0, 0.2, 1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { min-height: 0; overflow: hidden; padding: 0 6px 26px; font-size: 17px; color: var(--ink-soft); font-weight: 500; line-height: 1.55; max-width: 62ch; opacity: 0; transition: opacity 0.3s ease; }
.faq-item.open .faq-a-inner { opacity: 1; }

.story .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); }
.story .reveal.in-view { opacity: 1; transform: none; }
.story [data-stagger].in-view > * { animation: storyRise 0.7s var(--ease-soft) both; }
.story [data-stagger].in-view > *:nth-child(2) { animation-delay: 0.08s; }
.story [data-stagger].in-view > *:nth-child(3) { animation-delay: 0.16s; }
.story [data-stagger].in-view > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes storyRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.story .marquee-track { animation: storyMarquee 26s linear infinite; }
@keyframes storyMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .intro-stats { grid-template-columns: repeat(2,1fr); }
  .prob-grid { grid-template-columns: 1fr; }
  .story .feat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .story .reveal { opacity: 1; transform: none; }
  .story .marquee-track { animation: none; }
}

body.beats-gone #beats { display: none; }

body.beats-gone .vignette { opacity: 0; }
.vignette { transition: background 1.1s var(--ease-soft), opacity 0.6s var(--ease-soft); }

body.beats-gone .journey { opacity: 0; pointer-events: none; }
.journey { transition: opacity 0.5s var(--ease-soft); }

.outro {
  position: relative; z-index: 20; min-height: 200vh;
}
.outro-inner {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 0 clamp(20px,5vw,72px) clamp(48px,11vh,120px);
}

.outro-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--cream) 3%, rgba(245,241,228,0.82) 22%, rgba(245,241,228,0.28) 42%, rgba(245,241,228,0) 60%);
  transition: background 1s var(--ease-soft);
}
body.night .outro-inner::before {
  background: linear-gradient(to top, #0c1130 3%, rgba(12,17,48,0.84) 22%, rgba(12,17,48,0.32) 42%, rgba(12,17,48,0) 60%);
}
.outro-content { position: relative; max-width: 880px; }
.outro-h {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.98;
  font-size: clamp(34px, 5vw, 68px); margin-top: 16px;
}
.outro-h .hl { color: var(--green-deep); }
body.night .outro-h { color: #F4F0E3; }
body.night .outro-h .hl { color: var(--green); }
.outro-sub {
  font-family: var(--font-body); font-weight: 500; font-size: clamp(16px, 2vw, 21px);
  line-height: 1.5; color: var(--ink-soft); margin: 20px auto 0; max-width: 44ch;
}
body.night .outro-sub { color: rgba(244,240,227,0.82); }
.outro .final-cta { margin-top: 34px; }

@media (hover: hover) and (pointer: fine) {
  body.cursor-on, body.cursor-on * { cursor: none !important; }
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  opacity: 0; will-change: transform; transition: opacity 0.3s var(--ease-soft);
}
.cursor-ready .cursor { opacity: 1; }
.cursor--dot {
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--green-deep);
  transition: opacity 0.2s;
}
.cursor--ring {
  width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%;
  border: 1.5px solid rgba(22,23,15,0.5); background: rgba(141,212,98,0);
  transition: width 0.25s var(--ease-back), height 0.25s var(--ease-back),
              background 0.25s, border-color 0.25s, opacity 0.3s;
}

.cursor-hover.cursor-ready .cursor--ring {
  width: 50px; height: 50px; margin: -25px 0 0 -25px;
  background: rgba(141,212,98,0.22); border-color: var(--green);
}
.cursor-hover.cursor-ready .cursor--dot { opacity: 0; }

.cursor-down.cursor-ready .cursor--ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cursor-down.cursor-ready .cursor--dot { transform: scale(0.7); }

body.night .cursor--ring { border-color: rgba(245,241,228,0.55); }
body.night .cursor--dot { background: var(--green); }
body.night.cursor-hover .cursor--ring { border-color: var(--green); background: rgba(141,212,98,0.26); }
