:root {
  --ink: #1a2b36;
  --muted: #5a7180;
  --bg: #f3f8fb;
  --mist: #e7f1f6;
  --white: #ffffff;
  --line: rgba(26, 43, 54, 0.12);
  --sky: #2a8fbf;
  --sky-deep: #1a6f96;
  --sky-soft: #8ecceb;
  --mint: #3f9e8a;
  --on-sky: #f5fbff;
  --font: 'Anuphan', sans-serif;
  --heading: 'Kanit', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 920px;
  --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 100% 0%, rgba(42, 143, 191, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 0% 20%, rgba(63, 158, 138, 0.1), transparent 50%),
    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(--sky); 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: .55rem 1.25rem; background: #132430; color: #fff; font-size: .82rem; }
.demo-bar strong { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--sky-soft); font-weight: 500; }
.demo-bar__actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.demo-bar a { padding: .35rem .7rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); font-size: .78rem; font-weight: 500; }
.demo-bar a.is-primary { background: var(--sky); border-color: var(--sky); color: var(--on-sky); }

.site-header { position: sticky; top: var(--demo-h); z-index: 50; background: rgba(243, 248, 251, .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.25rem; display: inline-flex; align-items: baseline; gap: .45rem; }
.brand small { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-deep); font-weight: 500; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: .45rem .8rem; cursor: pointer; border-radius: var(--radius); color: var(--ink); }
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--muted); }
.nav-cta { background: var(--sky); color: var(--on-sky) !important; padding: .55rem 1.05rem; border-radius: var(--radius); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.4rem; font-weight: 700; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--sky { background: var(--sky); color: var(--on-sky); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .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 20s var(--ease) both; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14, 32, 42, .9) 0%, rgba(14, 32, 42, .5) 55%, rgba(14, 32, 42, .25) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 5rem 0 3.5rem; max-width: 34rem; margin-left: max(calc((100% - var(--max)) / 2), 1.25rem); width: min(100% - 2.5rem, 34rem); animation: rise .9s var(--ease) both; }
.hero__brand { font-family: var(--heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.hero__brand span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-soft); }
.hero h1 { font-family: var(--heading); font-size: clamp(2.2rem, 5.2vw, 3.4rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: .9rem; }
.hero h1 em { display: block; font-style: normal; color: var(--sky-soft); font-size: .72em; margin-top: .25rem; }
.hero__lead { color: rgba(255,255,255,.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; } }

.section { padding: 4.5rem 0; }
.section--mist { background: var(--mist); }
.section--form { background: linear-gradient(180deg, #dff0f7, #eef7fb); }
.section__head { margin-bottom: 2rem; max-width: 38rem; }
.section__head h2 { font-family: var(--heading); font-size: clamp(1.7rem, 3.2vw, 2.35rem); letter-spacing: -.02em; margin-bottom: .5rem; }
.section__head p { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-deep); margin-bottom: .5rem; }

/* BAG TICKET QUEUE */
.ticket-queue { display: grid; gap: 1rem; }
.ticket {
  display: grid; grid-template-columns: 1fr 7.5rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ticket:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(26, 43, 54, 0.08); }
.ticket--focus { border-color: color-mix(in srgb, var(--sky) 45%, var(--line)); }
.ticket__main { padding: 1.25rem 1.35rem; display: grid; gap: .4rem; position: relative; }
.ticket__main::after {
  content: ''; position: absolute; top: 12px; bottom: 12px; right: 0; width: 0;
  border-right: 2px dashed color-mix(in srgb, var(--ink) 16%, transparent);
}
.ticket__no { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--sky-deep); }
.ticket h3 { font-family: var(--heading); font-size: 1.25rem; }
.ticket__main > p { color: var(--muted); font-size: .95rem; }
.ticket__meta { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin-top: .35rem; }
.ticket__meta li {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--muted);
  padding: .25rem .5rem; background: var(--mist); border-radius: 999px;
}
.ticket__stub {
  display: grid; place-content: center; gap: .35rem; text-align: center; padding: 1rem .6rem;
  background: linear-gradient(180deg, #e8f5fb, #d7eef8); position: relative;
}
.ticket__stub::before, .ticket__stub::after {
  content: ''; position: absolute; left: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.ticket__stub::before { top: -8px; }
.ticket__stub::after { bottom: -8px; }
.section--mist .ticket__stub::before, .section--mist .ticket__stub::after { background: var(--mist); }
.ticket__stub span { font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; color: var(--sky-deep); }
.ticket__stub strong { font-family: var(--heading); font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.ticket__stub strong span { font-family: var(--font); font-size: .7rem; letter-spacing: 0; color: var(--muted); display: inline; }

.bagmenu { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.75rem; }
.bagchip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: .65rem 1rem;
  border-radius: 999px; cursor: pointer; font-weight: 600; transition: background .2s, border-color .2s, color .2s;
}
.bagchip:hover, .bagchip:focus-visible { background: var(--sky); border-color: var(--sky); color: var(--on-sky); }

.bag-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.bag-photos figure { margin: 0; }
.bag-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.bag-photos figcaption { margin-top: .5rem; font-size: .88rem; color: var(--muted); }

.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.zone { border-top: 2px solid var(--sky); padding-top: 1rem; }
.zone__code { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--mint); }
.zone h3 { font-family: var(--heading); font-size: 1.15rem; margin: .35rem 0 .4rem; }
.zone p { color: var(--muted); font-size: .92rem; }

.pickup { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
.pickup h2 { font-family: var(--heading); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: .4rem 0 .7rem; }
.pickup__hint { margin-top: 1rem; font-family: var(--mono); font-size: .78rem; color: var(--sky-deep); }
.form { background: var(--white); padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #f7fbfd; }

.site-footer { background: #132430; color: rgba(255,255,255,.75); padding: 1.75rem 0; }
/* Voice slips — ticket / docket */
.voice-slips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.voice-slip {
  margin: 0;
  padding: 1.15rem 1.05rem 1rem;
  border: 1px dashed var(--line);
  background: var(--slip-bg, var(--bg-soft, var(--paper, var(--panel, var(--dust, transparent)))));
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.voice-slip:nth-child(2n) { transform: rotate(0.45deg); }
.voice-slip:nth-child(2n+1) { transform: rotate(-0.4deg); }
.voice-slip__no {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.voice-slip p {
  font-family: var(--heading, var(--display, inherit));
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.voice-slip figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  margin-top: auto;
}
@media (max-width: 900px) {
  .voice-slips {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }
  .voice-slip {
    flex: 0 0 min(78vw, 16.5rem);
    scroll-snap-align: start;
    transform: none;
  }
}

.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer .brand { color: #fff; }

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



@media (max-width: 900px) {
  .pickup, .zones, .bag-photos,   .ticket { grid-template-columns: 1fr 6.5rem; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .ticket { grid-template-columns: 1fr; }
  .ticket__main::after { display: none; }
  .ticket__stub { flex-direction: row; display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.1rem; }
  .ticket__stub::before, .ticket__stub::after { top: 50%; transform: translateY(-50%); }
  .ticket__stub::before { left: -8px; top: 50%; }
  .ticket__stub::after { right: -8px; left: auto; top: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img, .hero__inner { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.rate-table {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white);
}
.rate-table__row {
  display: grid; grid-template-columns: 1.1fr 1.4fr 6.5rem; gap: .75rem; align-items: center;
  padding: .9rem 1.15rem; border-bottom: 1px solid var(--line);
}
.rate-table__row:last-child { border-bottom: 0; }
.rate-table__row--head {
  background: var(--ink-panel, #132430); color: #fff;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
}
.rate-table__row .mono, .rate-table__row span:last-child {
  text-align: right; font-variant-numeric: tabular-nums;
  font-family: var(--mono); font-weight: 600; color: var(--sky-deep);
}
.rate-table__row--head span:last-child { color: #fff; }
.rate-table__row.is-accent { background: linear-gradient(90deg, rgba(42, 143, 191, 0.1), transparent 70%); }
.rate-table__row.is-accent span:first-child { font-weight: 700; color: var(--sky-deep); }
.rate-note { margin-top: 1rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 720px) {
  .rate-table__row { grid-template-columns: 1fr auto; gap: .35rem 1rem; }
  .rate-table__row--head { display: none; }
  .rate-table__row span:nth-child(2) { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }
  .rate-table__row span:last-child { grid-column: 2; grid-row: 1; }
}
