:root {
  --ink: #e8ebe9;
  --muted: #8a9690;
  --bg: #0e1214;
  --bg-soft: #161c1f;
  --paper: #1a2124;
  --line: rgba(232, 235, 233, 0.12);
  --accent: #c9a45c;
  --accent-cool: #6eb8a8;
  --glass: rgba(180, 220, 230, 0.08);
  --on-accent: #121418;
  --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: 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 50% 40% at 80% 10%, rgba(110, 184, 168, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(201, 164, 92, 0.07), transparent 50%),
    linear-gradient(180deg, #0b0e10, var(--bg));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; font-size: 16px; }
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; }

.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: #060809; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--accent); 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(14, 18, 20, 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.3rem;
  display: inline-flex; align-items: baseline; gap: 0.45rem; color: #fff;
}
.brand small {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-cool); 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 { color: #fff; border-color: rgba(255,255,255,0.4); 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;
  filter: saturate(0.85) brightness(0.72);
  animation: ken 24s var(--ease) both;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 10, 12, 0.94) 0%, rgba(6, 10, 12, 0.62) 48%, rgba(6, 10, 12, 0.35) 100%),
    linear-gradient(to top, rgba(6, 10, 12, 0.55), transparent 40%);
}
.hero__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.frost {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 220, 230, 0.18), transparent 70%);
  filter: blur(8px); animation: mist 16s ease-in-out infinite;
}
.frost--1 { width: 280px; height: 180px; top: 12%; right: 8%; }
.frost--2 { width: 200px; height: 140px; bottom: 30%; left: 10%; animation-delay: -5s; }
.frost--3 { width: 160px; height: 120px; top: 40%; left: 40%; animation-delay: -9s; }
.stamp-ghost {
  position: absolute; right: 8%; bottom: 18%;
  font-family: var(--mono); font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 500; letter-spacing: 0.18em;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 92, 0.35);
  transform: rotate(-12deg); opacity: 0.55;
}
@keyframes mist {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-14px); }
}
@keyframes ken {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.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: 38rem;
}
.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(--accent-cool); margin-top: 0.35rem;
}
.hero h1 {
  font-family: var(--heading); font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.85rem;
}
.hero h1 em { font-style: normal; color: #d8c28a; }
.hero__lead { color: rgba(255,255,255,0.78); margin-bottom: 1.4rem; max-width: 32rem; }

.section { padding: 4.5rem 0; }
.section--slip { background: var(--bg-soft); border-top: 1px solid var(--line); }
.section__head { margin-bottom: 2rem; max-width: 36rem; }
.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; color: #fff;
}
.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-cool); margin-bottom: 0.5rem;
}
.eyebrow.light { color: var(--accent); }

/* Cooler glass window panes */
.cooler__frame {
  background: linear-gradient(180deg, #1a2226, #12181b);
  border: 1px solid rgba(232, 235, 233, 0.16);
  border-radius: 6px;
  padding: 0.85rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 30px 60px rgba(0,0,0,0.45);
}
.cooler__chrome {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.35rem 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line); margin-bottom: 0.85rem;
}
.cooler__chrome span:first-child { color: var(--accent-cool); }
.cooler__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.pane {
  position: relative; overflow: hidden;
  border: 1px solid rgba(180, 220, 230, 0.18);
  background: #0a0e10; min-height: 220px;
  transition: transform 0.3s var(--ease), border-color 0.2s;
}
.pane:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 164, 92, 0.55);
}
.pane img {
  width: 100%; height: 100%; min-height: 220px; object-fit: cover;
  filter: saturate(0.9) brightness(0.88);
  transition: transform 0.6s var(--ease), filter 0.3s;
}
.pane:hover img { transform: scale(1.05); filter: saturate(1) brightness(0.95); }
.pane__glass {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(125deg, rgba(220, 240, 245, 0.16) 0%, transparent 38%, transparent 62%, rgba(180, 220, 230, 0.08) 100%),
    linear-gradient(to top, rgba(6, 10, 12, 0.75), transparent 55%);
  box-shadow: inset 0 0 40px rgba(180, 220, 230, 0.06);
}
.pane__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: grid; gap: 0.15rem; padding: 0.9rem 1rem;
}
.pane__slot {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-cool);
}
.pane__meta strong {
  font-family: var(--heading); font-size: 1.15rem; font-weight: 600; color: #fff;
}
.pane__price {
  font-family: var(--mono); font-size: 0.82rem; color: var(--accent);
}
.pane--wide { grid-column: span 2; }
.pane--wide img { min-height: 240px; }

.slip-layout {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start;
}
.slip-layout h2 {
  font-family: var(--heading); font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0.4rem 0 0.7rem; color: #fff;
}
.slip-layout > .reveal > p { color: var(--muted); }
.hold-note {
  margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
}
.hold-note img { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: brightness(0.85); }
.hold-note p {
  padding: 0.75rem 1rem; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

.slip {
  position: relative;
  background:
    linear-gradient(180deg, #f4efe6 0%, #ebe3d4 100%);
  color: #1a1814;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 4px;
  display: grid; gap: 0.9rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  overflow: hidden;
}
.slip__stamp {
  position: absolute; top: 1.1rem; right: 1rem;
  font-family: var(--mono); font-weight: 500; font-size: 1.35rem;
  letter-spacing: 0.16em; color: transparent;
  -webkit-text-stroke: 1.5px rgba(180, 40, 40, 0.55);
  transform: rotate(-14deg);
  pointer-events: none;
  animation: stampIn 0.7s var(--ease) both;
}
@keyframes stampIn {
  from { opacity: 0; transform: rotate(-14deg) scale(1.4); }
  to { opacity: 1; transform: rotate(-14deg) scale(1); }
}
.slip__head {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #6a5e4e;
  padding-bottom: 0.75rem; border-bottom: 1px dashed rgba(26, 24, 20, 0.25);
  margin-bottom: 0.15rem;
}
.field { display: grid; gap: 0.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: #6a5e4e; }
.field input, .field select, .field textarea {
  padding: 0.75rem 0.9rem; border: 1px solid rgba(26, 24, 20, 0.18);
  border-radius: 4px; background: rgba(255,255,255,0.65); color: #1a1814;
}

.site-footer { background: #060809; color: rgba(255,255,255,0.65); padding: 1.75rem 0; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer .brand small { color: var(--accent); }

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

.hold-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.hold-cell {
  padding: 1.45rem 1.15rem 1.35rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.hold-cell:last-child { border-right: none; }
.hold-cell__code {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.hold-cell h3 {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.hold-cell p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.hours-cool {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.hours-cool > div > p { color: var(--muted); }
.hours-cool__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.hours-cool__meta dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.hours-cool__meta dd { font-weight: 500; }

.voice-slips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.voice-slip {
  margin: 0;
  padding: 1.15rem 1.05rem 1rem;
  border: 1px dashed var(--line);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.voice-slip__no {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.voice-slip p {
  font-family: var(--heading);
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.voice-slip figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .cooler__grid { grid-template-columns: 1fr 1fr; }
  .pane--wide { grid-column: span 2; }
  .slip-layout, .hours-cool, .hours-cool__meta { grid-template-columns: 1fr; }
  .hold-rail { grid-template-columns: 1fr 1fr; }
  .hold-cell:nth-child(2n) { border-right: none; }
  .voice-slips {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
  }
  .voice-slip {
    flex: 0 0 min(78vw, 16.5rem);
    scroll-snap-align: start;
  }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--bg); 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.35rem; }
  .cooler__grid { grid-template-columns: 1fr; }
  .pane--wide { grid-column: span 1; }
  .hold-rail { grid-template-columns: 1fr; }
  .hold-cell { border-right: none; }
}
