:root {
  --ink: #1c2e2a;
  --muted: #5a726c;
  --bg: #eef5f2;
  --bg-soft: #e0ebe6;
  --paper: #f7fbf9;
  --line: rgba(28, 46, 42, 0.12);
  --accent: #2f7a6b;
  --accent-deep: #1f564c;
  --mist: #b7d4cb;
  --on-accent: #f4fffb;
  --font: 'Anuphan', sans-serif;
  --heading: 'Kanit', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1040px;
  --demo-h: 48px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}

*, *::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 55% 40% at 85% 8%, rgba(183, 212, 203, 0.55), transparent 55%),
    radial-gradient(ellipse 40% 30% at 5% 70%, rgba(47, 122, 107, 0.08), transparent 50%),
    linear-gradient(180deg, #f4faf7 0%, var(--bg) 40%, #e8f1ed 100%);
}

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: #142420; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: #9fd0c2; 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(--accent); border-color: var(--accent); color: var(--on-accent); }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(238, 245, 242, 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.25rem;
  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-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(--accent); color: var(--on-accent) !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--primary { background: var(--accent); color: var(--on-accent); }
.btn--ghost { border-color: rgba(255,255,255,0.55); color: #fff; background: rgba(20,36,32,0.22); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.hero {
  position: relative; min-height: min(92vh, 820px);
  display: grid; align-items: end; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(16, 36, 32, 0.78) 0%, rgba(16, 36, 32, 0.4) 55%, rgba(16, 36, 32, 0.2) 100%),
    linear-gradient(to top, rgba(16, 36, 32, 0.5), transparent 42%);
}
.hero__fx { position: absolute; inset: 0; pointer-events: none; }
.mist {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 212, 203, 0.35), transparent 70%);
  filter: blur(30px); animation: drift 12s ease-in-out infinite;
}
.mist--1 { width: 280px; height: 280px; top: 18%; right: 12%; }
.mist--2 { width: 220px; height: 220px; bottom: 20%; left: 8%; animation-delay: 3s; opacity: 0.7; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 12px); }
}
.path-ghost {
  position: absolute; right: 8%; bottom: 28%;
  font-family: var(--mono); font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.18em; color: rgba(255,255,255,0.18);
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto; padding: 5rem 0 4rem;
}
.hero__brand {
  font-family: var(--heading); font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 0.85rem;
}
.hero__brand span {
  display: block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: #b7d4cb; margin-top: 0.35rem;
}
.hero h1 {
  font-family: var(--heading); font-weight: 600;
  font-size: clamp(1.55rem, 3.4vw, 2.3rem); line-height: 1.25;
  max-width: 16ch; margin-bottom: 0.9rem;
}
.hero h1 em { font-style: normal; color: #cfe8df; }
.hero__lead { max-width: 38ch; color: rgba(244,255,251,0.88); font-size: 1.05rem; }

.section { padding: 5rem 0; }
.section__head { margin-bottom: 1.75rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.55rem;
}
.eyebrow.light { color: #9fd0c2; }
.section__head h2, .note__copy h2, .contact h2 {
  font-family: var(--heading); font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  line-height: 1.25; margin-bottom: 0.55rem;
}
.section__head p, .note__copy > p, .contact > div > p { color: var(--muted); max-width: 48ch; }

.path-track {
  display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.75rem;
}
.path-track__line {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--mist), transparent);
  transform-origin: left; animation: draw 1.4s var(--ease) both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.path-track__label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--muted);
}

.path { display: flex; flex-direction: column; gap: 0; }
.step { position: relative; }
.step + .step { margin-top: 0; }
.step a {
  display: grid; grid-template-columns: 72px 180px 1fr;
  gap: 1.25rem; align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}
.step a:hover { background: rgba(47, 122, 107, 0.04); }
.step__num {
  font-family: var(--heading); font-size: 2rem; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.step__media {
  overflow: hidden; aspect-ratio: 4/3;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.step__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.step a:hover .step__media img { transform: scale(1.05); }
.step__tag {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.3rem;
}
.step__copy h3 {
  font-family: var(--heading); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.35rem;
}
.step__copy p { color: var(--muted); max-width: 42ch; }
.step__dur {
  display: inline-block; margin-top: 0.55rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--ink);
}

.section--note { padding-top: 2rem; }
.note {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.path-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.35rem;
}
.chip {
  border: 1px solid var(--line); background: var(--paper);
  padding: 0.55rem 0.95rem; cursor: pointer; border-radius: var(--radius);
  color: var(--muted); font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip.is-active, .chip:hover {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.note__aside { position: relative; overflow: hidden; }
.note__aside img { width: 100%; height: 340px; object-fit: cover; }
.note__aside p {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(16,36,32,0.72), transparent);
  color: #f4fffb; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
}

.section--contact {
  background:
    linear-gradient(155deg, #142420 0%, #1c3530 50%, #102420 100%);
  color: #f4fffb;
}
.contact {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start;
}
.contact strong { color: #b7d4cb; }
.form {
  background: rgba(244,255,251,0.05); border: 1px solid rgba(244,255,251,0.14);
  padding: 1.5rem; display: grid; gap: 1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(244,255,251,0.7);
}
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(244,255,251,0.22);
  background: rgba(244,255,251,0.08); color: #f4fffb;
  padding: 0.75rem 0.85rem; border-radius: var(--radius);
}
.field option { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line); padding: 1.5rem 0; background: var(--bg-soft);
}
/* Voice strip — soft quotes */
.voice-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.voice-strip__item {
  margin: 0;
  padding: 1.55rem 1.4rem 1.45rem 1.5rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--accent, var(--gold, var(--blush, var(--coral, var(--teal, var(--cyan, var(--line)))))));
  background: transparent;
}
.voice-strip__item:nth-child(even) {
  border-left-color: color-mix(in srgb, var(--accent, var(--gold, var(--blush, var(--line)))) 55%, transparent);
}
.voice-strip__item p {
  font-family: var(--heading, var(--brand, var(--display, inherit)));
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.45;
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-weight: 500;
}
.voice-strip__item cite {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}
@media (max-width: 720px) {
  .voice-strip { grid-template-columns: 1fr; }
  .voice-strip__item { padding-inline: 0 0.25rem; border-left-width: 2px; padding-left: 1.1rem; }
}

.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(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }



@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 1.25rem; border-top: 1px solid var(--line); }
  .nav-cta { margin: 0.5rem 1.25rem 0.75rem; text-align: center; }
  .step a { grid-template-columns: 56px 1fr; gap: 0.85rem; }
  .step__media { grid-column: 1 / -1; clip-path: none; aspect-ratio: 16/9; }
 .note, .contact, .field-row,   .note__aside img { height: 240px; }
  .path-ghost { display: none; }
}
