:root {
  --ink: #2a1c22;
  --muted: #6d5560;
  --bg: #f6e9e6;
  --bg-soft: #efe0dc;
  --paper: #fff7f5;
  --rose: #c94b5a;
  --rose-deep: #9e3140;
  --mint: #2f7a6a;
  --peach: #f0a898;
  --line: rgba(42, 28, 34, 0.12);
  --font: 'Anuphan', sans-serif;
  --heading: 'Prompt', '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 50% 38% at 100% 0%, rgba(201, 75, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 32% at 0% 35%, rgba(47, 122, 106, 0.1), transparent 50%),
    linear-gradient(180deg, #faf0ed 0%, var(--bg) 50%, #ecdcd8 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(--rose); outline-offset: 3px; }
.mono { font-family: var(--mono); letter-spacing: 0.06em; 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: #2a1418; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--peach); 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(--rose); border-color: var(--rose); color: #fff; }

.site-header {
  position: sticky; top: var(--demo-h); z-index: 50;
  background: rgba(246, 233, 230, 0.93); 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.28rem;
  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(--rose-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 a:hover { color: var(--ink); }
.nav-cta {
  background: var(--rose); 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--warm { background: var(--rose); 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; }

.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(115deg, rgba(42, 20, 28, 0.92) 0%, rgba(42, 20, 28, 0.55) 55%, rgba(42, 20, 28, 0.22) 100%);
}
.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.2rem; font-weight: 700;
  margin-bottom: 1rem; display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap;
}
.hero__brand span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--peach);
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(2.15rem, 5vw, 3.3rem);
  line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 0.9rem;
}
.hero h1 em {
  display: block; font-style: normal; color: var(--peach);
  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.05); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.strip__inner {
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; padding: 1.1rem 0;
}
.strip__label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--rose-deep);
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
}
.live-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--mint);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 122, 106, 0.45); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.section { padding: 4.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--accent { background: #3a1c24; color: #fff; }
.section__head { margin-bottom: 2rem; max-width: 40rem; }
.section__head h2 {
  font-family: var(--heading); font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em; 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(--rose-deep); margin-bottom: 0.5rem;
}
.eyebrow.light { color: var(--peach); }

/* PANEL MENU — checklist rows */
.panel-list {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}
.panel-list li + li { border-top: 1px solid var(--line); }
.panel-list a {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  transition: background 0.2s var(--ease);
}
.panel-list a:hover { background: #fff0ec; }
.panel-list__check {
  width: 1.15rem; height: 1.15rem; border: 1.5px solid var(--ink);
  border-radius: 3px; position: relative; flex-shrink: 0;
}
.panel-list a:hover .panel-list__check {
  background: var(--rose); border-color: var(--rose);
}
.panel-list a:hover .panel-list__check::after {
  content: ''; position: absolute; left: 3px; top: 0; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.panel-list__code {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em;
  color: var(--mint); display: block; margin-bottom: 0.2rem;
}
.panel-list__body strong {
  font-family: var(--heading); font-size: 1.1rem; display: block; margin-bottom: 0.2rem;
}
.panel-list__body small { color: var(--muted); font-size: 0.88rem; }
.panel-list__meta {
  text-align: right; display: grid; gap: 0.15rem; min-width: 7.5rem;
}
.panel-list__meta em {
  font-style: normal; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.panel-list__meta b { font-size: 0.92rem; font-weight: 600; }
.panel-list__price {
  font-family: var(--heading); font-weight: 700; font-size: 1.15rem;
  color: var(--rose-deep); min-width: 5.5rem; text-align: right;
}

.markers {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start;
}
.markers__copy h2 {
  font-family: var(--heading); font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em; margin-bottom: 0.5rem;
}
.markers__copy p { color: var(--muted); }
.marker-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.25rem;
}
.marker-grid > div {
  border-top: 1.5px solid var(--ink); padding-top: 0.7rem;
}
.marker-grid dt {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mint); margin-bottom: 0.2rem;
}
.marker-grid dd { font-weight: 500; }

.tat {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-bottom: 2.5rem;
}
.tat article {
  padding: 1.35rem 1.25rem;
  border-top: 3px solid var(--rose);
  background: var(--paper);
}
.tat .mono { color: var(--mint); display: block; margin-bottom: 0.55rem; }
.tat strong {
  font-family: var(--heading); font-size: 1.15rem; display: block; margin-bottom: 0.35rem;
}
.tat p { color: var(--muted); font-size: 0.92rem; }


.book {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.5rem; align-items: start;
}
.book h2 {
  font-family: var(--heading); font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}
.book p { color: rgba(255,255,255,0.78); }
.form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 1.5rem; display: grid; gap: 0.9rem;
}
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--peach);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.85rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.22); background: rgba(0,0,0,0.25); color: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.site-footer {
  border-top: 1px solid var(--line); padding: 1.5rem 0; background: var(--paper);
}
.footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; font-size: 0.88rem; 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-roster {
  display: grid;
  gap: 0;
}
.voice-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.85rem 1.5rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.voice-row:first-child { border-top: 1px solid var(--line); }
.voice-row__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peach);
  padding-top: 0.25rem;
}
.voice-row__body p {
  font-family: var(--heading);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 0.55rem;
}
.voice-row__body cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .voice-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .panel-list a {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "check body"
      "check meta"
      "check price";
  }
  .panel-list__check { grid-area: check; align-self: start; margin-top: 0.25rem; }
  .panel-list__body { grid-area: body; }
  .panel-list__meta { grid-area: meta; text-align: left; }
  .panel-list__price { grid-area: price; text-align: left; }
  .markers, .book, .tat { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .marker-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .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.75rem 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; }
  .hero__inner { margin-left: 1.25rem; }
}
