:root {
  --ink: #1a2a32;
  --muted: #5a6e78;
  --bg: #eef4f7;
  --bg-soft: #e2ecf2;
  --paper: #ffffff;
  --line: rgba(26, 42, 50, 0.12);
  --accent: #3d7a8c;
  --accent-deep: #2a5a68;
  --mint: #7eb8a8;
  --held: #9aa8b0;
  --vip: #c4a35a;
  --on-accent: #f4fbfc;
  --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: 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% 40% at 90% 8%, rgba(126, 184, 168, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 30% at 5% 80%, rgba(61, 122, 140, 0.1), transparent 50%),
    linear-gradient(180deg, #f5f9fb 0%, var(--bg) 50%, #e6eef3 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: #122028; color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--mint); 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, 244, 247, 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.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(--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 { 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; filter: brightness(0.84) saturate(0.92);
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(14, 28, 36, 0.9) 0%, rgba(14, 28, 36, 0.5) 50%, rgba(14, 28, 36, 0.2) 100%);
}
.hero__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.grid-wash {
  position: absolute; inset: 0; opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black 0%, transparent 70%);
}
.air {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 184, 168, 0.28), transparent 70%);
  animation: float 12s var(--ease) infinite alternate;
}
.air--1 { width: 36vw; height: 36vw; right: -6%; bottom: 8%; }
.air--2 { width: 22vw; height: 22vw; left: 12%; top: 16%; animation-delay: -3s; }
.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto; padding: 4.5rem 0 3.5rem;
  animation: rise 0.9s var(--ease) both;
}
.hero__brand {
  font-family: var(--heading); font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.85rem;
}
.hero__brand span {
  display: inline-block; margin-left: 0.55rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 500; opacity: 0.85; vertical-align: middle;
}
.hero h1 {
  font-family: var(--heading); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.18;
  letter-spacing: -0.02em; max-width: 14ch; margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; font-weight: 500; color: var(--mint); }
.hero__lead { max-width: 34rem; color: rgba(255,255,255,0.88); margin-bottom: 1.4rem; }

.section { padding: 4.5rem 0; }
.section--soft { background: color-mix(in srgb, var(--bg-soft) 75%, transparent); }
.section--contact {
  background: linear-gradient(155deg, #1f4a56 0%, #122830 100%);
  color: #fff;
}
.section__head { margin-bottom: 2rem; max-width: 38rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.55rem;
}
.eyebrow.light { color: var(--mint); }
.section__head h2, .lanes h2, .contact h2 {
  font-family: var(--heading); font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.55rem;
}
.section__head p, .lanes > .reveal > p { color: var(--muted); }

.floor {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(26, 42, 50, 0.06);
}
.floor__legend {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.1rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.floor__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.swatch--stage { background: var(--ink); }
.swatch--open { background: var(--accent); }
.swatch--held { background: var(--held); }
.swatch--vip { background: var(--vip); }

.floor__stage {
  text-align: center; padding: 0.7rem;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  margin-bottom: 0.85rem; border-radius: 2px;
}
.floor__aisle {
  text-align: center; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.2em; color: var(--held); margin-bottom: 0.85rem;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  padding: 0.35rem 0;
}
.floor__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
.table-node {
  aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.25rem; cursor: pointer; padding: 0.5rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.table-node:hover:not(:disabled) { transform: scale(1.04); }
.table-node.is-on {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
}
.table-node--vip { border-color: var(--vip); background: color-mix(in srgb, var(--vip) 14%, white); }
.table-node--vip.is-on { background: var(--vip); color: #1a1810; box-shadow: 0 0 0 5px color-mix(in srgb, var(--vip) 22%, transparent); }
.table-node--held {
  border-color: var(--held); background: #e8eef1; color: var(--held); cursor: not-allowed;
}
.table-node__code {
  font-family: var(--mono); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em;
}
.table-node__meta {
  font-size: 0.62rem; line-height: 1.25; text-align: center; max-width: 7.5rem; opacity: 0.85;
}
.floor__note {
  margin-top: 1rem; font-size: 0.92rem; color: var(--muted);
}
.floor__note strong { color: var(--accent-deep); font-family: var(--mono); }

.zone-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.zone {
  border: 1px solid var(--line); background: var(--paper);
  padding: 0.55rem 0.95rem; border-radius: 999px; cursor: pointer;
  font-weight: 600; color: var(--muted);
}
.zone.is-active, .zone:hover {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}

.roster { display: flex; flex-direction: column; gap: 0.45rem; }
.roster-row {
  display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; align-items: center;
  padding: 0.95rem 1rem; border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.roster-row:hover, .roster-row.is-on {
  background: var(--paper); transform: translateX(4px);
}
.roster-row__code {
  font-family: var(--mono); font-weight: 600; color: var(--accent-deep);
}
.roster-row__body strong { display: block; font-family: var(--heading); font-size: 1.05rem; }
.roster-row__body small { color: var(--muted); }
.roster-row__seats {
  font-family: var(--mono); font-size: 0.85rem; color: var(--muted);
}

.lanes {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.lane-steps { margin-top: 1.5rem; display: grid; gap: 1rem; }
.lane-steps li {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.85rem; align-items: start;
}
.lane-steps span {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--accent); padding-top: 0.2rem;
}
.lane-steps strong { display: block; font-family: var(--heading); margin-bottom: 0.15rem; }
.lane-steps small { color: var(--muted); }
.lanes__visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
}
.lanes__visual img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  animation: softin 1s var(--ease) both;
}
.lanes__visual img:last-child { margin-top: 1.5rem; }


.contact {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start;
}
.contact 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; border-radius: var(--radius);
}
.field { margin-bottom: 0.95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field label {
  display: block; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.35rem; opacity: 0.8;
}
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.18); color: #fff; padding: 0.75rem 0.85rem; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 5rem; }
.field option { color: #1a1a1a; }

.site-footer {
  border-top: 1px solid var(--line); padding: 1.5rem 0; background: var(--bg-soft);
}
.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; }

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

.voice-path {
  list-style: none;
  margin: 0 auto;
  max-width: 42rem;
  width: 100%;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
#voices .section__head,
#voices header.section__head {
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
}

.voice-path::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 1px;
  background: var(--line);
}
.voice-path__step {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem 1.25rem;
  align-items: start;
  padding: 1.15rem 0;
  position: relative;
}
.voice-path__mark {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 0.2rem;
  background: var(--bg, transparent);
  position: relative;
  z-index: 1;
}
.voice-path__step p {
  font-family: var(--heading);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 0.55rem;
}
.voice-path__step cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .voice-path::before { left: 0.7rem; }
  .voice-path__step { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.65rem 1rem; }

  .floor__grid { grid-template-columns: repeat(2, 1fr); }
  .lanes, .contact,   .lanes__visual img:last-child { margin-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .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: 1px solid var(--line); padding: 0.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0.85rem; }
}
