:root {
  --ink: #163028;
  --muted: #5a736a;
  --bg: #e6f2ec;
  --bg-soft: #d2e6dc;
  --paper: #f5fbf8;
  --sky: #8ec4b0;
  --leaf: #1a7a58;
  --leaf-deep: #125c42;
  --haze: #c3ddd2;
  --line: rgba(22, 48, 40, 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(142, 196, 176, 0.42), transparent 55%),
    radial-gradient(ellipse 40% 35% at 0% 40%, rgba(26, 122, 88, 0.08), transparent 50%),
    linear-gradient(180deg, #f0f8f4 0%, var(--bg) 50%, #d8ebe3 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(--leaf); 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: #0e2820; 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(--leaf); border-color: var(--leaf); color: #fff; }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(230, 242, 236, 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(--leaf); 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(--leaf); 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(--leaf); 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; }

.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(14, 40, 32, 0.88) 0%, rgba(14, 40, 32, 0.45) 50%, rgba(14, 40, 32, 0.2) 100%),
    linear-gradient(0deg, rgba(14, 40, 32, 0.5) 0%, transparent 42%);
}
.hero__inner {
  position: relative; z-index: 2; padding: 5rem 0 3.5rem; max-width: 36rem;
  margin-left: max(calc((100% - var(--max)) / 2), 1.25rem);
  width: min(100% - 2.5rem, 36rem);
  animation: rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: 1.35rem; 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(--sky);
}
.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;
}
.hero h1 em {
  display: block; font-style: normal; color: #c8ebd9;
  font-size: 0.7em; margin-top: 0.3rem;
}
.hero__lead { color: rgba(255,255,255,0.86); margin-bottom: 1.5rem; }

@keyframes ken { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes dashDraw { to { stroke-dashoffset: 0; } }
@keyframes pulseSoft {
  0%, 100% { opacity: 0.55; r: 6; }
  50% { opacity: 1; r: 8; }
}

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--book { background: linear-gradient(180deg, var(--bg) 0%, var(--haze) 100%); }
.section__head { margin-bottom: 2.25rem; max-width: 36rem; }
.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(--leaf); margin-bottom: 0.5rem;
}

/* CLIP ROUTE — numbered yard stops */
.route-board {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem 1.75rem;
  overflow: hidden;
}
.route-svg {
  width: 100%; height: auto; display: block; margin-bottom: 1.5rem;
}
.route-svg__dust {
  stroke: rgba(26, 122, 88, 0.12); stroke-width: 18; stroke-linecap: round;
}
.route-svg__line {
  stroke: var(--leaf); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: dashDraw 2.2s var(--ease) 0.2s forwards;
}
.pulse {
  fill: var(--leaf);
  animation: pulseSoft 2.8s ease-in-out infinite;
}
.pulse:nth-child(3) { animation-delay: 0.3s; }
.pulse:nth-child(4) { animation-delay: 0.6s; }
.pulse:nth-child(5) { animation-delay: 0.9s; }
.pulse:nth-child(6) { animation-delay: 1.2s; }

.stops {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.stop a {
  display: grid; gap: 0.35rem;
  padding: 1rem 0.85rem;
  border-top: 3px solid var(--sky);
  background: linear-gradient(180deg, rgba(142, 196, 176, 0.12), transparent);
  min-height: 100%;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.stop a:hover { transform: translateY(-3px); border-color: var(--leaf); }
.stop__n {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--leaf); font-weight: 500;
}
.stop strong {
  font-family: var(--heading); font-size: 1.05rem; font-weight: 600;
}
.stop p { font-size: 0.88rem; color: var(--muted); }

.edge-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem;
}
.edge {
  display: grid; gap: 0;
  transition: transform 0.2s var(--ease);
}
.edge:hover { transform: translateY(-3px); }
.edge img {
  width: 100%; aspect-ratio: 5/3; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.edge__meta {
  padding: 1rem 0.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.edge__meta .mono { color: var(--leaf); display: block; margin-bottom: 0.25rem; }
.edge__meta strong {
  display: block; font-family: var(--heading); font-size: 1.2rem; margin-bottom: 0.2rem;
}
.edge__meta p { color: var(--muted); font-size: 0.92rem; }

.tempo-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.tempo {
  padding: 1.4rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.tempo:hover { border-color: var(--leaf); transform: translateY(-2px); }
.tempo--featured {
  background: var(--leaf-deep); color: #fff; border-color: var(--leaf-deep);
}
.tempo--featured p { color: rgba(255,255,255,0.72); }
.tempo--featured .mono { color: var(--sky); }
.tempo .mono { color: var(--leaf); display: block; margin-bottom: 0.45rem; }
.tempo h3 {
  font-family: var(--heading); font-size: 1.25rem; margin-bottom: 0.35rem;
}
.tempo p { color: var(--muted); font-size: 0.92rem; }

.book-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.contact-ids { margin: 1rem 0 1.25rem; color: var(--muted); }
.book-photo img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius);
}
.book-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem;
}
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: #fff;
  padding: 0.75rem 0.85rem; border-radius: var(--radius); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 5rem; }

.rate-table {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius);
}
.rate-table__row {
  display: grid;
  grid-template-columns: 1.1fr 1.55fr 7.5rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.rate-table__row:last-child { border-bottom: 0; }
.rate-table__row--head {
  background: var(--leaf-deep);
  color: rgba(245, 251, 248, 0.92);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rate-table__row .mono,
.rate-table__row span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--leaf-deep);
}
.rate-table__row--head span:last-child { color: rgba(245, 251, 248, 0.92); }
.rate-table__row.is-accent {
  background: linear-gradient(90deg, rgba(26, 122, 88, 0.12), transparent 70%);
}
.rate-table__row.is-accent span:first-child { font-weight: 700; }
.include-list {
  list-style: none;
  margin: 1.15rem 0 0;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.include-list li {
  padding-left: 1.1rem;
  position: relative;
}
.include-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--leaf);
}
.rate-note { margin-top: 0.85rem; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) {
  .rate-table__row { grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
  .rate-table__row--head { display: none; }
  .rate-table__row span:nth-child(2) { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; }
  .rate-table__row span:last-child { grid-column: 2; grid-row: 1; }
}

.site-footer {
  background: #0e2820; color: rgba(240, 248, 244, 0.85); padding: 3rem 0 1.5rem;
}
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: var(--sky); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.footer__lede { margin-top: 0.65rem; color: rgba(240, 248, 244, 0.62); max-width: 22rem; }
.footer__grid h4 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 0.75rem;
}
.footer__grid a { display: block; margin-bottom: 0.4rem; font-size: 0.92rem; }
.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.12);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(240, 248, 244, 0.45);
}

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

@media (max-width: 960px) {
  .stops { grid-template-columns: repeat(2, 1fr); }
  .edge-strip, .tempo-row, .book-split, .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); 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; }
  .nav-cta { text-align: center; }
  .hero__inner { margin-left: 1.25rem; }
  .stops { grid-template-columns: 1fr; }
}
