:root {
  --ink: #1a2f38;
  --muted: #5a7380;
  --bg: #eef6f8;
  --bg-soft: #e2eef2;
  --paper: #f7fbfc;
  --line: rgba(26, 47, 56, 0.12);
  --accent: #0e7490;
  --accent-deep: #155e75;
  --accent-bar: #67e8f9;
  --on-accent: #f0fdff;
  --font: 'Anuphan', sans-serif;
  --heading: 'Kanit', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1080px;
  --demo-h: 48px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 8px;
}

*, *::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);
  line-height: 1.65;
  overflow-x: hidden;
  font-synthesis: none;
  background:
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(14, 116, 144, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(103, 232, 249, 0.12), transparent 50%),
    var(--bg);
}

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(--accent); outline-offset: 3px; }

.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: #0f2430; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--accent-bar); 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: 4px; font-size: 0.78rem; font-weight: 500;
}
.demo-bar a.is-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(238, 246, 248, 0.92); 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.1em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: 0.45rem 0.8rem; cursor: pointer; border-radius: 4px; 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-cta {
  background: var(--accent); color: var(--on-accent) !important;
  padding: 0.55rem 1.15rem; border-radius: var(--radius); font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.5rem; 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--primary { background: var(--accent); color: var(--on-accent); }
.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 {
  display: inline-block; margin-top: 1.25rem; font-weight: 700; color: var(--accent);
}

.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;
  animation: ken 24s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15, 36, 48, 0.9) 0%, rgba(15, 36, 48, 0.5) 55%, rgba(15, 36, 48, 0.2) 100%);
}
.hero__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.path-arc {
  position: absolute; left: 45%; top: 20%; width: 42%; height: 55%;
  border: 2px dashed rgba(103, 232, 249, 0.35); border-radius: 50% 40% 60% 30%;
  animation: arcPulse 6s ease-in-out infinite;
}
.pin {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-bar); box-shadow: 0 0 0 6px rgba(103, 232, 249, 0.2);
  animation: pinPop 3.5s ease-in-out infinite;
}
.pin--1 { left: 52%; top: 32%; }
.pin--2 { left: 68%; top: 48%; animation-delay: 0.6s; }
.pin--3 { left: 78%; top: 62%; animation-delay: 1.2s; }
.hero__inner {
  position: relative; z-index: 2; padding: 5rem 0 3.5rem; max-width: 38rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  width: min(100% - 2.5rem, 38rem);
  animation: rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: 1.3rem; font-weight: 700;
  margin-bottom: 1rem; display: flex; gap: 0.5rem; align-items: baseline;
}
.hero__brand span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-bar);
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.9rem;
}
.hero h1 em {
  display: block; font-style: normal; color: var(--accent-bar);
  font-size: 0.72em; margin-top: 0.25rem;
}
.hero__lead { color: rgba(255,255,255,0.88); margin-bottom: 1.5rem; }

@keyframes ken { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes arcPulse {
  0%, 100% { opacity: 0.4; transform: rotate(-2deg); }
  50% { opacity: 0.85; transform: rotate(2deg); }
}
@keyframes pinPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: #0f2430; color: #fff; }
.section__head { margin-bottom: 2.25rem; max-width: 38rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.5rem;
}
.section__head p { color: var(--muted); }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}
.eyebrow.light { color: var(--accent-bar); }

/* AREA WALK LINE — sequential stops */
.walk-line {
  display: grid; gap: 0;
  border-left: 2px solid rgba(14, 116, 144, 0.25);
  margin-left: 1.1rem;
}
.walk-line li { position: relative; }
.walk-line li::before {
  content: ''; position: absolute; left: -1.2rem; top: 1.35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.walk-line li.is-active::before {
  background: var(--accent); transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(14, 116, 144, 0.15);
}
.walk-line button {
  width: 100%; text-align: left; background: transparent; border: none;
  display: grid; grid-template-columns: 3.2rem 1fr auto; gap: 1rem; align-items: center;
  padding: 1.1rem 1rem 1.1rem 1.5rem; cursor: pointer; color: inherit;
  border-radius: 12px; transition: background 0.2s var(--ease);
}
.walk-line button:hover, .walk-line li.is-active button {
  background: rgba(14, 116, 144, 0.07);
}
.walk-line__n {
  font-family: var(--mono); font-size: 0.85rem; color: var(--accent); font-weight: 500;
}
.walk-line__body strong {
  font-family: var(--heading); font-size: 1.15rem; display: block; line-height: 1.25;
}
.walk-line__body small { color: var(--muted); font-size: 0.88rem; }
.walk-line__meta {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em;
}

/* SPLIT MAP + STOPS */
.split {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0;
  width: min(100% - 2.5rem, var(--max)); margin-inline: auto;
  border: 1px solid var(--line); background: var(--paper); overflow: hidden;
  border-radius: 18px;
}
.split__map {
  position: relative; min-height: 420px; background: #c5d8df;
}
.split__map img {
  width: 100%; height: 100%; object-fit: cover; min-height: 420px;
  transition: opacity 0.35s var(--ease);
}
.split__pins { position: absolute; inset: 0; }
.map-pin {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  background: rgba(255,255,255,0.92); color: var(--ink);
  border: 2px solid var(--accent); transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.map-pin.is-active {
  background: var(--accent); color: #fff; transform: scale(1.15);
}
.map-pin[data-map-pin="1"] { left: 18%; top: 62%; }
.map-pin[data-map-pin="2"] { left: 34%; top: 40%; }
.map-pin[data-map-pin="3"] { left: 52%; top: 55%; }
.map-pin[data-map-pin="4"] { left: 68%; top: 32%; }
.map-pin[data-map-pin="5"] { left: 82%; top: 48%; }
.split__caption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  padding: 0.65rem 0.9rem; border-radius: 6px;
  background: rgba(15, 36, 48, 0.82); color: #fff;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; width: fit-content; max-width: calc(100% - 2rem);
}
.split__note { padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.split__note h2 {
  font-family: var(--heading); font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.2; margin-bottom: 0.75rem;
}
.split__note > p { color: var(--muted); margin-bottom: 1.25rem; }
.air-list { display: grid; gap: 0.5rem; }
.air-list li {
  position: relative; padding-left: 1.2rem; font-weight: 500;
}
.air-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent);
}

.corridors { display: grid; gap: 0.75rem; }
.corridor-row {
  display: grid; grid-template-columns: 7.5rem 1.2fr 1fr 140px;
  gap: 1rem; align-items: center;
  padding: 0.85rem 1rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.corridor-row:hover {
  border-color: var(--accent); transform: translateX(4px);
}
.corridor-row__tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.corridor-row strong { font-family: var(--heading); font-size: 1.1rem; }
.corridor-row span { color: var(--muted); font-size: 0.92rem; }
.corridor-row img {
  width: 140px; height: 88px; object-fit: cover; border-radius: 10px; justify-self: end;
}

.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem; align-items: start; }
.contact h2 {
  font-family: var(--heading); font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.contact > .reveal > p { color: rgba(255,255,255,0.75); }
.form {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16);
  padding: 1.5rem; display: grid; gap: 1rem; border-radius: 14px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-bar);
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; padding: 0.75rem 0.85rem; border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field option { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line); padding: 1.5rem 0; background: var(--bg-soft);
}
.footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted);
}

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


.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(--accent);
  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: 960px) {
  .voice-path::before { left: 0.7rem; }
  .voice-path__step { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.65rem 1rem; }

  .split { grid-template-columns: 1fr; }
  .corridor-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1rem;
  }
  .corridor-row img {
    grid-column: 1 / -1; width: 100%; height: 140px; justify-self: stretch;
  }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border: 1px solid var(--line); padding: 0.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.35rem; border-radius: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .hero__inner { margin-left: 1.25rem; }
  .walk-line button { grid-template-columns: 2.5rem 1fr; }
  .walk-line__meta { grid-column: 2; }
}
