:root {
  --ink: #152826;
  --muted: #5a706c;
  --bg: #eef3f1;
  --bg-soft: #e0ebe7;
  --paper: #f7fbf9;
  --line: rgba(21, 40, 38, 0.12);
  --accent: #1f7a6c;
  --accent-deep: #15584e;
  --mist: #8ec4b8;
  --sky: #c5e4de;
  --on-accent: #f4fffc;
  --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);
  line-height: 1.65;
  overflow-x: hidden;
  font-synthesis: none;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(142, 196, 184, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 30%, rgba(31, 122, 108, 0.1), transparent 50%),
    linear-gradient(180deg, #f5faf8 0%, var(--bg) 40%, #e4eeea 100%);
}

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

.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: var(--ink); color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--mist); 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: 8px; 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, 243, 241, 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.3rem;
  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: 8px; 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(--accent); color: var(--on-accent) !important;
  padding: 0.55rem 1.05rem; border-radius: 10px; font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.45rem; font-weight: 700; border-radius: 10px;
  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; }

.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(120deg, rgba(18, 42, 38, 0.9) 0%, rgba(18, 42, 38, 0.5) 50%, rgba(18, 42, 38, 0.22) 100%),
    linear-gradient(0deg, rgba(18, 42, 38, 0.45) 0%, transparent 40%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - 2.5rem, var(--max)); margin: 0 auto;
  padding: 4.5rem 0 3.75rem; max-width: 40rem;
  animation: rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.85rem; line-height: 1.15;
}
.hero__brand span {
  display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); margin-top: 0.35rem;
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.85rem;
}
.hero h1 em { font-style: normal; color: #b8ebe0; }
.hero__lead { color: rgba(255,255,255,0.84); margin-bottom: 1.4rem; max-width: 34rem; }

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

.section { padding: 4.5rem 0; }
.section--kit {
  background: linear-gradient(180deg, transparent, var(--bg-soft) 25%, var(--bg-soft));
}
.section--book {
  background: linear-gradient(155deg, #122824 0%, #1a3f38 100%);
  color: #eefaf6;
}
.section__head { margin-bottom: 2rem; max-width: 38rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em; margin: 0.35rem 0 0.65rem;
}
.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-deep); margin-bottom: 0.5rem;
}
.eyebrow.light { color: var(--mist); }

/* Brew path — numbered interactive steps */
.path { display: grid; gap: 1.5rem; }
.path__rail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem;
  position: relative;
}
.path__rail::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 28px; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--accent), var(--sky));
  z-index: 0;
}
.path-step {
  position: relative; z-index: 1;
  display: grid; gap: 0.2rem; text-align: left;
  width: 100%; padding: 1rem 1rem 1.1rem;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 14px; cursor: pointer; color: var(--ink);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.path-step:hover { transform: translateY(-3px); border-color: var(--accent); }
.path-step.is-on {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
  box-shadow: 0 14px 28px rgba(31, 122, 108, 0.22);
  animation: stepPop 0.35s var(--ease);
}
@keyframes stepPop {
  0% { transform: scale(0.97); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
.path-step__num {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  opacity: 0.75;
}
.path-step strong { font-family: var(--heading); font-size: 1.2rem; font-weight: 600; }
.path-step small { color: inherit; opacity: 0.75; font-size: 0.86rem; }

.path__stage {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(21, 40, 38, 0.06);
}
.path__media { background: #0f201c; min-height: 280px; }
.path__media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 280px;
  transition: opacity 0.35s var(--ease), transform 0.55s var(--ease);
}
.path__media img.is-flash { animation: flashIn 0.45s var(--ease); }
@keyframes flashIn {
  from { opacity: 0.35; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}
.path__copy { padding: 1.6rem 1.7rem; display: grid; gap: 0.65rem; align-content: start; }
.path__copy h3 {
  font-family: var(--heading); font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
}
.path__copy > p { color: var(--muted); }
.path__meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
  margin: 0.4rem 0 0.6rem; padding: 0.9rem 0;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.path__meta dt {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem;
}
.path__meta dd { font-weight: 600; font-size: 0.92rem; }

.kit-rail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem;
}
.kit-item {
  display: grid; gap: 0; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.kit-item:hover { transform: translateY(-4px); border-color: var(--accent); }
.kit-item img {
  width: 100%; aspect-ratio: 5/4; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.kit-item:hover img { transform: scale(1.04); }
.kit-item span { display: grid; gap: 0.2rem; padding: 0.95rem 1rem 1.1rem; }
.kit-item strong { font-family: var(--heading); font-size: 1.05rem; }
.kit-item small { color: var(--muted); font-size: 0.86rem; }
.kit-item em { font-style: normal; font-weight: 700; color: var(--accent); margin-top: 0.25rem; }

.book {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start;
}
.book h2 {
  font-family: var(--heading); font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.4rem 0 0.7rem; color: #fff;
}
.book > .reveal > p { color: rgba(238, 250, 246, 0.78); }
.book-summary {
  margin-top: 1rem; padding: 0.85rem 1rem;
  border: 1px dashed rgba(142, 196, 184, 0.45); border-radius: 10px;
}
.book-summary strong { color: var(--mist); }
.form {
  background: var(--paper); color: var(--ink); padding: 1.6rem;
  border-radius: 16px; display: grid; gap: 0.9rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.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(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  color: var(--ink);
}

.rate-table {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
}
.rate-table__row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.rate-table__row:last-child { border-bottom: 0; }
.rate-table__row--head {
  background: var(--accent-deep);
  color: var(--on-accent);
  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 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}
.rate-table__row--head span:last-child { color: rgba(244, 255, 252, 0.9); }
.rate-table__row.is-accent { background: rgba(142, 196, 184, 0.22); }
.rate-table__row.is-accent span:first-child { font-weight: 700; }
a.rate-table__row:hover { background: rgba(31, 122, 108, 0.08); }

.voice-roster { display: grid; gap: 0; border-top: 1px solid var(--line); }
.voice-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.voice-row__tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.2rem;
}
.voice-row__body p { margin: 0 0 0.35rem; }
.voice-row__body cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem; background: rgba(247, 251, 249, 0.8);
}
.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(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-in.reveal-stagger > * { opacity: 1; transform: none; }
.reveal.is-in.reveal-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.reveal.is-in.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal.is-in.reveal-stagger > *:nth-child(3) { transition-delay: 0.12s; }
.reveal.is-in.reveal-stagger > *:nth-child(4) { transition-delay: 0.16s; }

@media (max-width: 960px) {
  .path__rail { grid-template-columns: repeat(2, 1fr); }
  .path__rail::before { display: none; }
  .path__stage, .kit-rail, .book, .field-row, .path__meta { grid-template-columns: 1fr; }
  .path__meta { grid-template-columns: 1fr 1fr; }
  .kit-rail { grid-template-columns: repeat(2, 1fr); }
  .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; }
}

@media (max-width: 760px) {
  .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(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.5rem; border-radius: 10px; }
  .kit-rail { grid-template-columns: 1fr; }
}
