:root {
  --ink: #1a2e35;
  --muted: #5a727a;
  --bg: #e8f2f4;
  --bg-soft: #d5e8ec;
  --paper: #f7fbfc;
  --sky: #7eb8c9;
  --teal: #0f7a8a;
  --teal-deep: #0a5c68;
  --mist: #c5e3ea;
  --line: rgba(26, 46, 53, 0.12);
  --font: 'Anuphan', sans-serif;
  --heading: 'Kanit', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1100px;
  --demo-h: 48px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 80% -10%, rgba(126, 184, 201, 0.45), transparent 55%),
    radial-gradient(ellipse 40% 35% at 0% 40%, rgba(15, 122, 138, 0.08), transparent 50%),
    linear-gradient(180deg, #f2f8fa 0%, var(--bg) 50%, #dceef2 100%);
  line-height: 1.65;
  overflow-x: hidden;
  font-synthesis: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; font-size: 16px; }
ul, ol { list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.mono { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; font-weight: 500; }

.demo-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; padding: 0.55rem 1.25rem;
  background: #10262c; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--sky); font-weight: 500;
}
.demo-bar__actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.demo-bar a {
  padding: 0.35rem 0.7rem; border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius); font-size: 0.78rem; font-weight: 500;
}
.demo-bar a.is-primary { background: var(--teal); border-color: var(--teal); color: #fff; }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(232, 242, 244, 0.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); position: relative;
}
.brand {
  font-family: var(--heading); font-weight: 700; font-size: 1.35rem;
  display: inline-flex; align-items: baseline; gap: 0.45rem;
}
.brand small {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); font-weight: 500;
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: 0.45rem 0.8rem; cursor: pointer; border-radius: var(--radius); color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--teal); color: #fff !important;
  padding: 0.55rem 1.05rem; border-radius: var(--radius); font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.4rem; font-weight: 700; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--air { background: var(--teal); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); background: transparent; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-weight: 700; color: var(--teal-deep); }

.hero {
  position: relative; min-height: min(90dvh, 820px);
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  animation: ken 24s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(16, 38, 44, 0.9) 0%, rgba(16, 38, 44, 0.45) 50%, rgba(15, 122, 138, 0.35) 100%);
}
.hero__mist {
  position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(transparent, rgba(232, 242, 244, 0.25));
  pointer-events: none; z-index: 1;
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto; padding: 4.5rem 0 3.5rem;
  animation: rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 700; margin-bottom: 0.85rem;
}
.hero__brand span {
  display: inline-block; margin-left: 0.55rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; vertical-align: middle; color: var(--mist); font-weight: 500;
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(2.2rem, 5.5vw, 3.55rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; max-width: 12ch;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: #b8e6f0; }
.hero__lead { max-width: 36ch; font-size: 1.05rem; color: rgba(255,255,255,0.88); margin-bottom: 1.5rem; }

.section { padding: 5rem 0; }
.section--sky { background: linear-gradient(180deg, transparent, rgba(126,184,201,0.18), transparent); }
.section--visit { padding-bottom: 6rem; }
.section__head { margin-bottom: 2.25rem; max-width: 36rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.65rem;
}
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.55rem;
}
.section__head p { color: var(--muted); }

/* Route map — signature */
.route-board {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem 2rem;
  overflow: hidden;
  min-height: 380px;
}
.route-board::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 70%, rgba(126,184,201,0.2), transparent 30%),
    radial-gradient(circle at 75% 30%, rgba(15,122,138,0.1), transparent 28%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(26,46,53,0.04) 27px, rgba(26,46,53,0.04) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(26,46,53,0.04) 27px, rgba(26,46,53,0.04) 28px);
  pointer-events: none;
}
.route-path {
  position: absolute; inset: 8% 4% auto; width: 92%; height: auto;
  z-index: 1; pointer-events: none;
}
.route-path__line {
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 8;
  animation: dash 28s linear infinite;
}
.pulse {
  fill: var(--teal);
  animation: pulse 2.4s var(--ease) infinite;
}
.stops-map {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 11rem;
}
.pin a {
  display: block;
  background: rgba(247, 251, 252, 0.95);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem 0.9rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  min-height: 140px;
}
.pin a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 122, 138, 0.15);
}
.pin__code {
  display: inline-block;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
  background: var(--teal); color: #fff; padding: 0.2rem 0.45rem; border-radius: 4px;
  margin-bottom: 0.55rem;
}
.pin strong { display: block; font-family: var(--heading); font-size: 1.05rem; margin-bottom: 0.3rem; }
.pin p { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.pin--2 a { border-color: var(--teal); }
.pin--3 a { background: color-mix(in srgb, var(--sky) 18%, white); }

.stop-seq {
  display: grid; gap: 0;
}
.stop-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: center;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
}
.stop-card:first-child { border-top: 1px solid var(--line); }
.stop-card__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius);
}
.stop-card__body .mono { color: var(--teal); display: block; margin-bottom: 0.35rem; }
.stop-card h3 { font-family: var(--heading); font-size: 1.35rem; margin-bottom: 0.35rem; }
.stop-card p { color: var(--muted); max-width: 42ch; margin-bottom: 0.65rem; }

.windows {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.window {
  text-align: left; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.2rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.window:hover { transform: translateY(-2px); }
.window.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 122, 138, 0.15);
}
.window .mono { color: var(--teal); display: block; margin-bottom: 0.45rem; }
.window strong { display: block; font-family: var(--heading); font-size: 1.15rem; margin-bottom: 0.35rem; }
.window p { color: var(--muted); font-size: 0.92rem; }


.visit-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.contact-ids { margin-top: 1rem; color: var(--muted); }
.visit-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px); padding: 1.6rem; display: grid; gap: 1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent;
}

.site-footer {
  background: #10262c; color: #e8f2f4; padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer .brand small { color: var(--sky); }
.footer__lede { color: rgba(232,242,244,0.65); margin-top: 0.6rem; max-width: 28ch; }
.site-footer h4 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 0.75rem;
}
.site-footer a { display: block; color: rgba(232,242,244,0.8); margin-bottom: 0.4rem; font-size: 0.92rem; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(232,242,244,0.15);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: rgba(232,242,244,0.5);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes ken {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes dash {
  to { stroke-dashoffset: -400; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; r: 7; }
  50% { opacity: 0.55; r: 11; }
}

.voice-path {
  list-style: none;
  margin: 0 auto;
  max-width: 42rem;
  width: 100%;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
#voices .section__head,
#voices header.section__head {
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
}

.voice-path::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 1px;
  background: var(--line);
}
.voice-path__step {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem 1.25rem;
  align-items: start;
  padding: 1.15rem 0;
  position: relative;
}
.voice-path__mark {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  padding-top: 0.2rem;
  background: var(--bg, transparent);
  position: relative;
  z-index: 1;
}
.voice-path__step p {
  font-family: var(--heading);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 0.55rem;
}
.voice-path__step cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .voice-path::before { left: 0.7rem; }
  .voice-path__step { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.65rem 1rem; }

  .stops-map, .windows, .visit-split, .footer__grid { grid-template-columns: 1fr; }
  .stops-map { margin-top: 2rem; }
  .route-path { position: relative; inset: auto; width: 100%; margin-bottom: 0.5rem; }
  .route-board { min-height: 0; }
  .stop-card { grid-template-columns: 120px 1fr; gap: 1rem; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1rem; gap: 0.35rem;
  }
  .nav.is-open { display: flex; }
  .nav-cta { text-align: center; }
}
