:root {
  --ink: #2a1c14;
  --muted: #7a5a48;
  --bg: #f3ebe2;
  --bg-soft: #e8d8c8;
  --paper: #fff9f3;
  --line: rgba(42, 28, 20, 0.14);
  --accent: #b86a2e;
  --accent-deep: #8a4a1c;
  --steam: #d9c4a8;
  --on-accent: #fff8f0;
  --font: 'Anuphan', sans-serif;
  --heading: 'Prompt', '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: 6px;
}

*, *::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% 35% at 10% 10%, rgba(184, 106, 46, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 95% 60%, rgba(217, 196, 168, 0.45), transparent 50%),
    repeating-linear-gradient(180deg, transparent, transparent 39px, rgba(42, 28, 20, 0.03) 39px, rgba(42, 28, 20, 0.03) 40px),
    var(--bg);
}

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: #241610; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: #e0b889; 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(243, 235, 226, 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-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(0,0,0,0.18); }
.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(105deg, rgba(24, 14, 8, 0.78) 0%, rgba(24, 14, 8, 0.45) 48%, rgba(24, 14, 8, 0.25) 100%),
    linear-gradient(to top, rgba(24, 14, 8, 0.55), transparent 45%);
}
.hero__fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.steam {
  position: absolute; bottom: 10%; width: 120px; height: 220px;
  background: radial-gradient(ellipse at center, rgba(255,245,230,0.28), transparent 70%);
  filter: blur(18px); opacity: 0.55; animation: rise 9s var(--ease) infinite;
}
.steam--1 { left: 12%; animation-delay: 0s; }
.steam--2 { left: 28%; width: 160px; height: 280px; animation-delay: 2.2s; opacity: 0.4; }
.steam--3 { left: 48%; width: 100px; height: 200px; animation-delay: 4s; }
@keyframes rise {
  0% { transform: translateY(40px) scale(0.9); opacity: 0; }
  35% { opacity: 0.5; }
  100% { transform: translateY(-180px) scale(1.15); opacity: 0; }
}
.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, 3.1rem);
  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: #e8c9a0; margin-top: 0.35rem;
}
.hero h1 {
  font-family: var(--heading); font-weight: 600;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem); line-height: 1.25;
  max-width: 16ch; margin-bottom: 0.9rem;
}
.hero h1 em { font-style: normal; color: #f0d2ad; }
.hero__lead { max-width: 38ch; color: rgba(255,248,240,0.88); font-size: 1.05rem; }

.section { padding: 5rem 0; }
.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: #e0b889; }
.section__head { margin-bottom: 1.75rem; }
.board-head h2, .notes__copy h2, .contact h2, .section__head h2 {
  font-family: var(--heading); font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  line-height: 1.25; margin-bottom: 0.55rem;
}
.board-head p, .notes__copy > p, .contact > div > p { color: var(--muted); max-width: 46ch; }

.board-shell {
  margin-top: 2.25rem;
  display: grid; grid-template-columns: 72px 1fr; gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
.board-rail {
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: space-evenly;
  gap: 1.5rem; padding: 1.5rem 0;
  background: linear-gradient(180deg, #3a2418, #2a1c14);
  color: #e0b889;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em;
}
.steam-list { display: flex; flex-direction: column; }
.steam-list > li + li { border-top: 1px dashed rgba(42, 28, 20, 0.16); }
.steam-row {
  display: grid; grid-template-columns: 28px 64px 1fr auto;
  gap: 0.85rem; align-items: center;
  padding: 1.15rem 1.25rem 1.15rem 0.85rem;
  transition: background 0.25s var(--ease);
  position: relative;
}
.steam-row:hover, .steam-row:focus-visible {
  background: linear-gradient(90deg, rgba(184, 106, 46, 0.08), transparent 70%);
}
.steam-row__plume {
  width: 10px; height: 42px; border-radius: 999px;
  background: linear-gradient(to top, rgba(184, 106, 46, 0.55), rgba(217, 196, 168, 0.15));
  filter: blur(0.5px);
  animation: plume 3.6s ease-in-out infinite;
}
.steam-list > li:nth-child(2) .steam-row__plume { animation-delay: 0.4s; }
.steam-list > li:nth-child(3) .steam-row__plume { animation-delay: 0.8s; }
.steam-list > li:nth-child(4) .steam-row__plume { animation-delay: 1.2s; }
.steam-list > li:nth-child(5) .steam-row__plume { animation-delay: 1.6s; }
@keyframes plume {
  0%, 100% { transform: scaleY(0.85); opacity: 0.55; }
  50% { transform: scaleY(1.15); opacity: 1; }
}
.steam-row__code {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--accent-deep);
}
.steam-row__body h3 {
  font-family: var(--heading); font-size: 1.08rem; font-weight: 600; margin-bottom: 0.2rem;
}
.steam-row__body p { color: var(--muted); font-size: 0.92rem; }
.steam-row__meta {
  text-align: right; display: flex; flex-direction: column; gap: 0.2rem;
}
.steam-row__meta em {
  font-style: normal; font-family: var(--heading); font-weight: 700; font-size: 1.05rem;
}
.steam-row__meta small {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted);
}

.section--notes { padding-top: 1rem; }
.notes {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
.ticks { margin-top: 1.25rem; display: grid; gap: 0.55rem; }
.ticks li {
  padding-left: 1.2rem; position: relative; color: var(--ink); font-weight: 500;
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.55rem;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--accent);
}
.notes__visual {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.notes__visual img { width: 100%; height: 320px; object-fit: cover; }
.notes__visual p {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(24,14,8,0.75), transparent);
  color: #fff8f0; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
}

.section--contact {
  background:
    linear-gradient(160deg, #2a1c14 0%, #3a2418 55%, #241610 100%);
  color: #fff8f0;
}
.contact {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start;
}
.contact strong { color: #f0d2ad; }
.form {
  background: rgba(255,249,243,0.06); border: 1px solid rgba(255,248,240,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(255,248,240,0.7);
}
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(255,248,240,0.22);
  background: rgba(255,249,243,0.08); color: #fff8f0;
  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; }
  .board-shell { grid-template-columns: 1fr; }
  .board-rail {
    writing-mode: horizontal-tb; transform: none;
    flex-direction: row; padding: 0.75rem 1rem; justify-content: space-between;
  }
  .steam-row { grid-template-columns: 18px 52px 1fr; gap: 0.55rem; }
  .steam-row__meta { grid-column: 2 / -1; flex-direction: row; justify-content: space-between; text-align: left; }
 .notes, .contact, .field-row,   .notes__visual img { height: 240px; }
  .hero__inner { padding: 4.5rem 0 3rem; }
}
