/* Medium Bar Bkk — Neon Signal theme (see ../design.md) */

:root {
  --bg: #111013;
  --ink: #f2ede6;
  --muted: #8f8a82;
  --neon: #fb6e23;
  --line: #282520;
  --dim: #2b2620;
  --glow: 0 0 6px rgba(251, 110, 35, .9), 0 0 24px rgba(251, 110, 35, .55), 0 0 70px rgba(251, 110, 35, .3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--neon); text-decoration: none; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

/* ---------- scroll progress tube ---------- */
.progress-tube {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #1c1a17;
  z-index: 60;
}
.tube-fill {
  width: 100%;
  height: 0%;
  background: var(--neon);
  box-shadow: 2px 0 10px rgba(251, 110, 35, .7);
}
@media (max-width: 700px) { .progress-tube { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(17, 16, 19, .82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav-brand {
  font-family: "Anton", sans-serif;
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: var(--ink);
}
.nav-brand span {
  font-family: "IBM Plex Mono", monospace;
  font-size: .62rem;
  color: var(--neon);
  letter-spacing: .28em;
  vertical-align: .18em;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s, text-shadow .2s;
}
.nav-links a:hover { color: var(--neon); text-shadow: 0 0 12px rgba(251, 110, 35, .8); }
.nav-links .nav-ig { color: var(--neon); }
@media (max-width: 560px) {
  .nav-links a:not(.nav-ig) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.25rem 4rem;
  position: relative;
}

.eye { width: clamp(84px, 11vw, 120px); margin-bottom: 1.5rem; overflow: visible; }
.eye-group { transform-origin: 60px 60px; transition: transform .1s ease-in; }
.eye.blink .eye-group { transform: scaleY(.06); }
.eye-outline {
  fill: none;
  stroke: var(--neon);
  stroke-width: 5;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(251, 110, 35, .55));
}
.eye-pupil { fill: var(--neon); }

.hero-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.neon {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(4.2rem, 17vw, 12.5rem);
  line-height: 1;
  letter-spacing: .04em;
  margin: .5rem 0 1.5rem;
  user-select: none;
}
.neon span {
  color: var(--dim);
  -webkit-text-stroke: 1px #3a332a;
  transition: none;
}
.neon span.lit {
  color: var(--neon);
  -webkit-text-stroke: 0;
  text-shadow: var(--glow);
}
.neon span.flicker { animation: flicker .45s steps(2, jump-none) both; }
@keyframes flicker {
  0%   { color: var(--dim); text-shadow: none; }
  30%  { color: var(--neon); text-shadow: var(--glow); }
  45%  { color: var(--dim); text-shadow: none; }
  60%  { color: var(--neon); text-shadow: var(--glow); }
  75%  { color: #7c3a13; text-shadow: 0 0 4px rgba(251,110,35,.4); }
  100% { color: var(--neon); text-shadow: var(--glow); }
}

.hero-sub {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
}

.status-chip {
  margin-top: 1.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  color: var(--muted);
}
.status-chip.open {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 14px rgba(251, 110, 35, .35), inset 0 0 8px rgba(251, 110, 35, .12);
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.8rem; justify-content: center; }
.btn {
  display: inline-block;
  background: var(--neon);
  color: var(--bg);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .8rem 1.6rem;
  transition: box-shadow .2s, transform .2s;
}
.btn:hover { box-shadow: var(--glow); transform: translateY(-2px); }
.btn-ghost {
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--muted);
  border-bottom: 1px solid var(--muted);
  padding-bottom: .15rem;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--neon); border-color: var(--neon); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 1px;
  height: 44px;
  background: var(--line);
  overflow: hidden;
}
.scroll-hint span {
  display: block;
  width: 100%;
  height: 14px;
  background: var(--neon);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: translateY(-16px); }
  100% { transform: translateY(46px); }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  font-family: "Anton", sans-serif;
  font-size: clamp(1.3rem, 3.4vw, 2.2rem);
  letter-spacing: .08em;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  will-change: transform;
}
.marquee-track span { padding-right: .5em; }

/* ---------- sections ---------- */
.section {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 3rem);
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 760px) { .section-grid { grid-template-columns: 1fr; } }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: .8rem;
}
h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.body-copy {
  color: var(--muted);
  max-width: 32rem;
  margin-bottom: 1rem;
  font-style: normal;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.on {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.on.lightup { animation: lightup .5s steps(2, jump-none) both; }
@keyframes lightup {
  0% { opacity: 0; }
  35% { opacity: 1; }
  50% { opacity: .25; }
  65% { opacity: 1; }
  80% { opacity: .6; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.on.lightup, .neon span.flicker, .scroll-hint span { animation: none; }
}

/* ---------- vintage TV ---------- */
.tv {
  justify-self: center;
  width: min(100%, 380px);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #17151a;
}
.tv-screen {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #000;
}
.tv-screen canvas { width: 100%; height: 100%; display: block; }
.tv-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.35) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.tv-caption {
  position: absolute;
  top: .6rem; right: .8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--neon);
  text-shadow: 0 0 8px rgba(251, 110, 35, .8);
}
.tv-base {
  height: 8px;
  margin: 10px auto 0;
  width: 40%;
  border-radius: 4px;
  background: var(--line);
}

/* ---------- menu ---------- */
.drinks {
  list-style: none;
  max-width: 40rem;
  margin-top: 2.5rem;
}
.drinks li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: .9rem .4rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease;
}
.drinks li:hover { padding-left: 1rem; }
.drinks li:hover .drink-name { color: var(--neon); text-shadow: 0 0 14px rgba(251, 110, 35, .55); }
.drink-name {
  font-family: "Anton", sans-serif;
  font-size: 1.25rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: color .2s, text-shadow .2s;
}
.drink-dots { flex: 1; border-bottom: 1px dotted #3a352e; transform: translateY(-4px); }
.drink-price {
  font-family: "IBM Plex Mono", monospace;
  font-size: .85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.drink-price::before { content: "฿"; margin-right: .15em; color: #5c564d; }
.menu-note {
  margin-top: 1.4rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  color: #5c564d;
}

.menu-group { max-width: 40rem; margin-top: 3rem; }
.group-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: .4rem;
}
.drinks.compact { margin-top: 0; }
.drinks.compact .drink-name { font-size: 1.05rem; }
.drink-sub {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: none;
  color: var(--muted);
  margin-top: .15rem;
}
.classics-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem 2rem;
  margin-top: .8rem;
}
.classics-grid li {
  font-family: "Anton", sans-serif;
  font-size: 1.05rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem 0;
  border-bottom: 1px solid #1d1b18;
  transition: color .2s, text-shadow .2s;
}
.classics-grid li:hover { color: var(--neon); text-shadow: 0 0 14px rgba(251, 110, 35, .55); }
@media (max-width: 560px) { .classics-grid { grid-template-columns: 1fr; } }

/* ---------- hours ---------- */
.hours {
  justify-self: center;
  width: min(100%, 340px);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
}
.hours-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.hours dl div {
  display: flex;
  justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px solid #1d1b18;
  font-family: "IBM Plex Mono", monospace;
  font-size: .8rem;
  color: var(--muted);
}
.hours dl div:last-child { border-bottom: 0; }
.hours dl div.today {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(251, 110, 35, .5);
}
.hours dl div.today dt::after { content: " ●"; font-size: .6em; vertical-align: .25em; }
.hours dd { font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
  color: #5c564d;
  font-family: "IBM Plex Mono", monospace;
  font-size: .74rem;
  letter-spacing: .08em;
}
.footer p { margin-bottom: .5rem; }
.footer-brand {
  font-family: "Anton", sans-serif;
  font-size: 1.4rem;
  letter-spacing: .14em;
  color: var(--dim);
  -webkit-text-stroke: 1px #3a332a;
}
