:root {
  --ink: #0f1b2d;
  --muted: #5a6b82;
  --bg: #eef3f9;
  --bg-soft: #e2eaf4;
  --blue: #1d6fd4;
  --blue-deep: #1557a8;
  --blue-soft: #7eb6ff;
  --sky: #d6e8fb;
  --white: #fff;
  --line: rgba(15, 27, 45, 0.12);
  --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);
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(29, 111, 212, 0.12), transparent 50%),
    linear-gradient(180deg, #f5f8fc 0%, var(--bg) 50%, #e8eff7 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(--blue); 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: #0b1626; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--blue-soft); 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(--blue); border-color: var(--blue); color: #fff; }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(238, 243, 249, 0.94); 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(--blue-deep); 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-cta {
  background: var(--blue); 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--blue { background: var(--blue); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,0.45); background: transparent; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-weight: 700; color: var(--blue-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;
  animation: ken 22s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11, 22, 38, 0.94) 0%, rgba(15, 40, 75, 0.72) 45%, rgba(29, 111, 212, 0.28) 100%);
}
.hero__inner {
  position: relative; z-index: 1; padding: 5rem 0 3.5rem; max-width: 40rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  width: min(100% - 2.5rem, 40rem);
  animation: rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: 1.4rem; 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(--blue-soft);
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.9rem; font-weight: 700;
}
.hero h1 em {
  display: block; font-style: normal; color: var(--blue-soft);
  font-size: 0.72em; margin-top: 0.25rem;
}
.hero__lead { color: rgba(255,255,255,0.88); margin-bottom: 1.5rem; font-size: 1.05rem; }

@keyframes ken { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: #0f1b2d; color: #fff; }
.section__head { margin-bottom: 2.5rem; max-width: 36rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.22; font-weight: 700;
}
.section__head p { color: var(--muted); margin-top: 0.5rem; }
.section--ink .section__head p { color: rgba(255,255,255,0.7); }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-deep); margin-bottom: 0.5rem;
}
.eyebrow.light { color: var(--blue-soft); }
.tag {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-deep); font-weight: 500;
}

.path-section { position: relative; }
.milestones {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 0;
}
.milestones::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--blue-soft));
  border-radius: 999px;
  opacity: 0.35;
}

.mile {
  display: grid;
  grid-template-columns: 64px 1fr 220px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  position: relative;
}
.mile + .mile { border-top: 1px dashed rgba(29, 111, 212, 0.25); }

.mile__marker {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  position: relative; z-index: 1;
}
.mile__num {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  color: #fff; background: var(--blue);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-content: center;
  box-shadow: 0 0 0 6px var(--bg);
}
.mile__pin {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(126, 182, 255, 0.35);
}

.mile__body h3 {
  font-family: var(--heading); font-size: 1.55rem; font-weight: 700;
  margin-bottom: 0.4rem; letter-spacing: -0.02em;
}
.mile__body > p { color: var(--muted); margin-bottom: 0.75rem; }
.mile__body ul { display: grid; gap: 0.35rem; }
.mile__body li {
  padding-left: 1.1rem; position: relative; font-size: 0.95rem; font-weight: 500;
}
.mile__body li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--blue);
}

.mile__photo {
  border-radius: var(--radius); overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 12px 28px rgba(15, 27, 45, 0.12);
  transform: rotate(-1.5deg);
}
.mile:nth-child(even) .mile__photo { transform: rotate(1.5deg); }
.mile__photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.lesson-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.lesson-strip figure {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line);
}
.lesson-strip img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.lesson-strip figcaption {
  padding: 0.9rem 1rem; font-size: 0.9rem; font-weight: 500; color: var(--muted);
}

.pkg-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.pkg {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.35rem;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.pkg--accent {
  background: linear-gradient(160deg, #1557a8, #1d6fd4);
  color: #fff; border-color: transparent;
}
.pkg--accent .tag { color: var(--blue-soft); }
.pkg--accent p { color: rgba(255,255,255,0.8); }
.pkg--accent .price { color: #fff; }
.pkg--accent .text-link { color: #fff; }
.pkg h3 {
  font-family: var(--heading); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
}
.pkg p { color: var(--muted); font-size: 0.95rem; }
.price {
  font-family: var(--heading); font-size: 1.55rem; font-weight: 700;
  color: var(--blue-deep); margin: 0.4rem 0 0.55rem;
}


.book-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.contact-ids { margin-top: 1rem; color: rgba(255,255,255,0.7); }
.book-form {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.9rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; background: rgba(255,255,255,0.08); color: #fff;
}
.field option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 72px; }

.site-footer {
  background: #0b1626; color: rgba(255,255,255,0.72); padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--blue-soft); }
.footer__lede { margin-top: 0.75rem; max-width: 28rem; }
.footer__grid h4 {
  font-family: var(--heading); color: #fff; margin-bottom: 0.75rem; font-size: 1rem;
}
.footer__grid a { display: block; margin-bottom: 0.4rem; color: rgba(255,255,255,0.7); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono); font-size: 0.72rem;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.24s; }

.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(--blue);
  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; }

  .mile { grid-template-columns: 56px 1fr; }
  .mile__photo { grid-column: 2; max-width: 280px; }
  .lesson-strip, .pkg-row, .book-split, .footer__grid { grid-template-columns: 1fr; }
  .milestones::before { left: 24px; }
}
@media (max-width: 800px) {
  .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 a { padding: 0.65rem 0.25rem; }
  .hero__inner { margin-left: 1.25rem; }
}
