/* ====================================================================
   NOM NOM TAIWAN — base styles · MOBILE-FIRST
   Breakpoints: sm 768 / md 1024 / lg 1200
   ==================================================================== */

:root {
  --magenta: #E91E8C;
  --magenta-deep: #B8156D;
  --cream: #F4EFE6;
  --cream-warm: #EDE5D4;
  --ink: #0E0A0A;
  --ink-soft: #2A1F22;
  --orange: #E8763A;
  --gold: #E8B43A;

  --paper: var(--cream);
  --fg: var(--ink);
  --brand: var(--magenta);

  --font-display: "Boldonse", "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-tc: "Noto Serif TC", "Songti TC", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1480px;
  --pad-x: 20px;       /* mobile gutters */
  --section-y: 72px;   /* mobile vertical rhythm */
}

@media (min-width: 768px) {
  :root { --pad-x: 32px; --section-y: 100px; }
}
@media (min-width: 1200px) {
  :root { --pad-x: 40px; --section-y: 120px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html, body {
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 3px;
}

body {
  background-image:
    radial-gradient(rgba(14, 10, 10, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
}

a { color: inherit; text-decoration: none; }
button {
  font: inherit; cursor: pointer; border: none; background: none; color: inherit;
  /* Touch hit-target: WCAG 44x44 */
  min-height: 44px;
}

img, svg { display: block; max-width: 100%; }

img[loading="lazy"] { content-visibility: auto; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Type system ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.88;
  text-wrap: balance;
}

.tc {
  font-family: var(--font-tc);
  font-weight: 700;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.body-lg { font-size: 17px; line-height: 1.55; }
.body-xl { font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
@media (min-width: 768px) {
  .body-lg { font-size: 19px; }
  .body-xl { font-size: 22px; }
}

/* ---------- Brand tile (the "NOM" / character squares) ---------- */
/* 桃紅色底，白色字，文字上下左右置中 */

.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: 14px;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  text-align: center;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(233, 30, 140, 0.30);
  flex-shrink: 0;
}
.brand-tile.tile-tc {
  font-family: var(--font-tc);
  font-weight: 900;
  letter-spacing: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    padding 0.3s ease,
    backdrop-filter 0.35s ease;
}
.site-header > * { pointer-events: auto; }
.site-header.is-scrolled {
  background: rgba(244, 239, 230, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(14, 10, 10, 0.08);
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header.is-on-dark { color: var(--cream); }
.site-header.is-on-dark.is-scrolled {
  background: rgba(14, 10, 10, 0.65);
  border-bottom-color: rgba(244, 239, 230, 0.1);
}
.site-header .logo-mark,
.site-header nav a,
.site-header .order-btn {
  transition: opacity 0.2s ease, color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
@media (hover: hover) {
  .site-header nav a:hover { opacity: 0.6; }
  .site-header .order-btn:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
  }
}

.site-header .logo-mark {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) {
  .site-header { padding: 18px var(--pad-x); }
  .site-header .logo-mark { font-size: 18px; }
}

.site-header nav { display: none; }
@media (min-width: 1024px) {
  .site-header nav { display: block; }
  .site-header nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

.site-header .order-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
@media (min-width: 768px) {
  .site-header .order-btn { font-size: 11px; padding: 10px 18px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 96px 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 120px 0 60px; }
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
}
.hero-eyebrow .left, .hero-eyebrow .right {
  display: flex; gap: 14px; flex-wrap: wrap;
}
@media (min-width: 768px) {
  .hero-eyebrow { padding-bottom: 24px; font-size: 11px; }
  .hero-eyebrow .left, .hero-eyebrow .right { gap: 28px; }
}

.hero-title-wrap {
  position: relative;
  padding: 32px 0 0;
}
@media (min-width: 768px) {
  .hero-title-wrap { padding: 48px 0 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.84;
  position: relative;
  z-index: 3;
}

/* Inline TC characters in the hero title — magenta brand tile */
.hero-title .hero-tc {
  font-family: var(--font-tc);
  font-weight: 900;
  font-size: clamp(44px, 11vw, 180px);
  line-height: 1;
  color: #fff;
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.04em 0.16em 0.1em;
  border-radius: 0.12em;
  letter-spacing: 0;
  vertical-align: -0.04em;
  margin: 0 0.06em;
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.28);
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .hero-title .hero-tc { font-size: clamp(80px, 11vw, 200px); }
}

.hero-title .row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.hero-title .row .word {
  font-size: clamp(48px, 14vw, 220px);
  line-height: 0.84;
}
.hero-title .row.r1 { justify-content: flex-start; }
.hero-title .row.r2 { justify-content: flex-end; margin-top: 4px; }
.hero-title em { font-style: italic; color: var(--brand); }

@media (min-width: 768px) {
  .hero-title .row { gap: 16px; }
  .hero-title .row .word { font-size: clamp(96px, 14vw, 240px); }
  .hero-title .row.r2 { margin-top: -6px; }
}

/* Hero brand tile: the magenta NOM square */
.hero-tile {
  width: clamp(56px, 14vw, 200px);
  height: clamp(56px, 14vw, 200px);
  font-size: clamp(28px, 7vw, 110px);
  border-radius: 14px;
}
.hero-tile.tile-tc {
  font-size: clamp(36px, 9vw, 130px);
}
@media (min-width: 768px) {
  .hero-tile { border-radius: 22px; }
}

.hero-bottom {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .hero-bottom {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: end;
  }
}

.hero-tagline {
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 560px;
  text-wrap: pretty;
}
@media (min-width: 768px) { .hero-tagline { font-size: 20px; } }
@media (min-width: 1024px) { .hero-tagline { font-size: 22px; line-height: 1.4; } }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-meta .m-item .label {
  font-size: 10px;
  opacity: 0.6;
  margin-bottom: 4px;
}
.hero-meta .m-item .val {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: none;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .hero-meta { gap: 24px; font-size: 13px; }
  .hero-meta .m-item .val { font-size: 22px; }
}

/* Hero polaroid stack — desktop only. z-index:1 so they sit BEHIND the title text. */
.hero-poly { display: none; }
@media (min-width: 1024px) {
  .hero-poly {
    display: block;
    position: absolute;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .hero-poly.p1 { top: 60px;  right: 0;   transform: rotate(7deg); }
  .hero-poly.p2 { top: 360px; right: 22%; transform: rotate(-9deg); }
  .hero-poly.p3 { top: 600px; right: -2%; transform: rotate(4deg); }
}
@media (min-width: 1200px) {
  .hero-poly.p1 { top: 40px;  right: 2%; }
  .hero-poly.p2 { top: 380px; right: 26%; }
  .hero-poly.p3 { top: 620px; right: 0; }
}

/* Mobile-only polaroid carousel */
.hero-poly-mobile {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 24px calc(var(--pad-x) * -1) 0;
  padding: 8px var(--pad-x);
  scrollbar-width: none;
}
.hero-poly-mobile::-webkit-scrollbar { display: none; }
.hero-poly-mobile > * { scroll-snap-align: start; flex-shrink: 0; }
@media (min-width: 1024px) {
  .hero-poly-mobile { display: none; }
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--brand);
  color: #fff;
  padding: 16px 0;
  overflow: hidden;
  border-block: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
@media (min-width: 768px) {
  .marquee { padding: 22px 0; }
  .marquee-track { gap: 48px; font-size: 56px; }
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 32px;
}
.marquee-track .sep {
  opacity: 0.6;
  font-family: var(--font-tc);
  font-size: 26px;
}
@media (min-width: 768px) {
  .marquee-track .sep { font-size: 38px; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section heads ---------- */

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "num tc"
    "title title";
  gap: 16px 20px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 36px;
}
.section-head .num { grid-area: num; }
.section-head h2 { grid-area: title; }
.section-head .tc-mark { grid-area: tc; text-align: right; }

@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "num title tc";
    gap: 32px;
    padding-bottom: 36px;
    margin-bottom: 48px;
  }
}

.section-head .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 11vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.section-head h2 em { color: var(--brand); font-style: italic; }
.section-head .tc-mark {
  font-family: var(--font-tc);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}
@media (min-width: 768px) {
  .section-head .tc-mark { font-size: 28px; }
}

/* ---------- Menu ---------- */

.menu {
  padding: var(--section-y) 0;
  position: relative;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px 24px;
  position: relative;
}
@media (min-width: 768px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
}
@media (min-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(12, 1fr); gap: 64px 24px; }
  .menu-item.col-4 { grid-column: span 4; }
  .menu-item.col-6 { grid-column: span 6; }
}

.menu-item {
  position: relative;
  padding: 12px 0;
}

.menu-item .number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.menu-item .img-wrap {
  position: relative;
  margin-bottom: 18px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
@media (hover: hover) {
  .menu-item:hover .img-wrap {
    /* Inline rotation is overridden during hover */
    transform: rotate(0deg) scale(1.02) !important;
  }
}

.menu-item h3 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 4px;
}
.menu-item h3 em { color: var(--brand); font-style: italic; }
.menu-item .tc-name {
  font-family: var(--font-tc);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.menu-item .desc {
  font-size: 14px;
  line-height: 1.55;
  max-width: 38ch;
  opacity: 0.85;
}
.menu-item .price {
  position: absolute;
  top: 44px;
  right: -6px;
  z-index: 4;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px 9px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(233, 30, 140, 0.32);
  transform: rotate(6deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
@media (min-width: 768px) {
  .menu-item h3 { font-size: 36px; }
  .menu-item .tc-name { font-size: 22px; }
  .menu-item .price {
    font-size: 26px;
    padding: 10px 20px 11px;
    top: 50px;
  }
}
@media (hover: hover) {
  .menu-item:hover .price {
    transform: rotate(0deg) scale(1.08);
    box-shadow: 0 14px 30px rgba(233, 30, 140, 0.42);
  }
}

/* ---------- Polaroid ---------- */

.polaroid {
  background: #fffdf8;
  padding: 10px 10px 36px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 14px 28px rgba(14, 10, 10, 0.16),
    0 6px 10px rgba(14, 10, 10, 0.10);
  position: relative;
  display: inline-block;
  max-width: 100%;
}
@media (min-width: 768px) {
  .polaroid { padding: 12px 12px 44px; }
}
.polaroid .photo {
  width: 100%;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.polaroid .caption {
  position: absolute;
  left: 12px; right: 12px; bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #2a1f22;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .polaroid .caption { font-size: 10px; bottom: 14px; }
}

.polaroid.p-sm { width: 200px; }
.polaroid.p-md { width: 240px; }
.polaroid.p-lg { width: 100%; }
@media (min-width: 768px) {
  .polaroid.p-sm { width: 220px; }
  .polaroid.p-md { width: 280px; }
}

.placeholder {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}
@media (min-width: 768px) { .placeholder { font-size: 10px; } }
.placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.08) 0 6px,
    rgba(255,255,255,0) 6px 12px
  );
}
.placeholder span { position: relative; z-index: 1; line-height: 1.4; }

.ph-fries { background: linear-gradient(135deg, #E8763A, #C9531A); }
.ph-chicken { background: linear-gradient(135deg, #C58B3E, #8A5A22); }
.ph-fryer { background: linear-gradient(135deg, #1A1413, #3a2a1f); }
.ph-basket { background: linear-gradient(135deg, #B8156D, #7a0d48); }
.ph-bao { background: linear-gradient(135deg, #E8B43A, #B8852A); }
.ph-tea { background: linear-gradient(135deg, #2A1F22, #4a3438); }

/* Photo tweaks */
[data-photo="grid"] .polaroid {
  background: transparent; padding: 0; box-shadow: none;
}
[data-photo="grid"] .polaroid .caption {
  position: static; margin-top: 10px; padding: 0;
}
[data-photo="grid"] .menu-item .img-wrap { transform: none !important; }

[data-photo="bleed"] .polaroid {
  background: transparent; padding: 0; box-shadow: none;
}
[data-photo="bleed"] .polaroid .caption {
  position: static; margin-top: 10px; padding: 0; color: var(--ink);
}

/* ---------- Story ---------- */

.story {
  padding: var(--section-y) 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.story .section-head { border-color: var(--cream); color: var(--cream); }
.story .section-head h2 em { color: var(--brand); }

.story-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
@media (min-width: 1024px) {
  .story-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
  }
}

.story-text {
  display: flex; flex-direction: column; gap: 24px;
}
.story-text p {
  font-size: 16px; line-height: 1.6; max-width: 52ch;
}
.story-text p.lede {
  font-family: var(--font-display);
  font-size: 26px; line-height: 1.15;
  letter-spacing: -0.02em; max-width: 22ch;
}
.story-text p.lede em { color: var(--brand); font-style: italic; }
.story-tc {
  font-family: var(--font-tc);
  font-size: 17px; line-height: 1.85;
  font-weight: 400;
  opacity: 0.78;
  border-left: 2px solid var(--brand);
  padding-left: 18px;
  max-width: 42ch;
}
@media (min-width: 768px) {
  .story-text p { font-size: 18px; }
  .story-text p.lede { font-size: 32px; }
  .story-tc { font-size: 18px; padding-left: 20px; }
}

.story-poly-stack {
  position: relative;
  height: 520px;
  margin: 0 -8px;
}
.story-poly-stack .polaroid {
  position: absolute;
  max-width: calc(50% + 20px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.story-poly-stack .polaroid:nth-child(1) { top: 0; left: 0; transform: rotate(-6deg); z-index: 1; }
.story-poly-stack .polaroid:nth-child(2) { top: 100px; right: 0; transform: rotate(5deg); z-index: 2; }
.story-poly-stack .polaroid:nth-child(3) { bottom: 0; left: 22%; transform: rotate(-2deg); z-index: 3; }
@media (hover: hover) {
  .story-poly-stack .polaroid:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.02);
    z-index: 5;
  }
}

@media (min-width: 1024px) {
  .story-poly-stack { height: 540px; }
  .story-poly-stack .polaroid:nth-child(1) { left: 8%; }
  .story-poly-stack .polaroid:nth-child(2) { right: 6%; }
  .story-poly-stack .polaroid:nth-child(3) { left: 28%; }
}

/* Stats strip */
.story-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-top: 1px solid var(--cream);
  padding-top: 28px;
}
.story-stats .stat .n {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--brand);
}
.story-stats .stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0.8;
}
@media (min-width: 768px) {
  .story-stats { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 80px; padding-top: 32px; }
  .story-stats .stat .n { font-size: 64px; }
  .story-stats .stat .l { font-size: 11px; }
}

/* ---------- Find us ---------- */

.find {
  padding: var(--section-y) 0;
  background: var(--cream-warm);
  position: relative;
}

.find-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .find-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: stretch;
  }
}

.next-stop {
  background: var(--brand);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
@media (min-width: 768px) { .next-stop { padding: 32px; gap: 24px; } }
.next-stop::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}
.next-stop > * { position: relative; }

.next-stop .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 768px) { .next-stop .label { font-size: 11px; } }

.live-dot { display: inline-flex; align-items: center; gap: 8px; }
.live-dot::before {
  content: "";
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.next-stop h3 {
  font-family: var(--font-display);
  font-size: 40px; line-height: 0.92;
  letter-spacing: -0.03em; font-weight: 400;
}
@media (min-width: 768px) { .next-stop h3 { font-size: 56px; } }
.next-stop .addr { font-size: 15px; line-height: 1.5; opacity: 0.92; }

.next-stop .countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 20px;
}
.next-stop .countdown .c { text-align: center; }
.next-stop .countdown .n {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.next-stop .countdown .l {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
}
@media (min-width: 768px) {
  .next-stop .countdown .n { font-size: 44px; }
  .next-stop .countdown .l { font-size: 10px; letter-spacing: 0.16em; }
}

.next-stop .cta-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.next-stop .cta-row .btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-radius: 999px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}
.next-stop .cta-row .btn.primary { background: #fff; color: var(--ink); border: none; }
.next-stop .cta-row .btn.ghost { background: transparent; color: #fff; border: 1px solid #fff; }

/* Map */
.map-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--ink);
  overflow: hidden;
  min-height: 320px;
  border-radius: 4px;
  /* Allow pinch-zoom inside map */
  touch-action: pinch-zoom;
}
@media (min-width: 768px) { .map-card { min-height: 420px; } }
@media (min-width: 1024px) { .map-card { min-height: 520px; } }

.map-bg { position: absolute; inset: 0; }

.map-pin {
  position: absolute;
  width: 44px; height: 44px;            /* 44px touch target */
  margin-left: -22px; margin-top: -36px; /* center anchor */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.map-pin .head {
  width: 22px; height: 22px;
  background: var(--ink);
  border: 2px solid var(--cream);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.2s, width 0.2s, height 0.2s;
}
.map-pin.active .head, .map-pin:focus-visible .head {
  background: var(--brand);
  width: 26px; height: 26px;
  animation: pinBounce 1.4s ease-in-out infinite;
}
.map-pin .label {
  position: absolute;
  top: 0; left: 36px;
  background: var(--ink);
  color: var(--cream);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.map-pin.label-left .label {
  left: auto;
  right: 36px;
}
.map-pin.active .label { opacity: 1; background: var(--brand); }
/* Touch-equivalent for hover */
@media (hover: hover) {
  .map-pin:hover .label { opacity: 1; }
}
@keyframes pinBounce {
  0%, 100% { transform: rotate(-45deg) translateY(0); }
  50% { transform: rotate(-45deg) translateY(-4px); }
}

/* Schedule */
.schedule {
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}
@media (min-width: 768px) { .schedule { margin-top: 48px; } }

.schedule-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas:
    "day place status"
    "day time time";
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(14, 10, 10, 0.15);
  align-items: center;
  font-size: 13px;
  transition: background 0.2s;
}
.schedule-row .day { grid-area: day; }
.schedule-row .place { grid-area: place; }
.schedule-row .addr { display: none; }
.schedule-row .time { grid-area: time; }
.schedule-row .status { grid-area: status; }

@media (min-width: 1024px) {
  .schedule-row {
    grid-template-columns: 80px 1.2fr 1fr 1fr auto;
    grid-template-areas: "day place addr time status";
    gap: 24px;
    padding: 22px 0;
    font-size: 14px;
  }
  .schedule-row .addr { display: block; grid-area: addr; }
}

@media (hover: hover) {
  .schedule-row:hover { background: rgba(233, 30, 140, 0.06); }
}
.schedule-row.next {
  background: var(--brand);
  color: #fff;
  margin: 0 calc(var(--pad-x) * -0.5);
  padding-left: calc(var(--pad-x) * 0.5);
  padding-right: calc(var(--pad-x) * 0.5);
}
.schedule-row .day {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.schedule-row .place {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .schedule-row .place { font-size: 22px; } }
.schedule-row .addr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.schedule-row .time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.75;
}
@media (min-width: 1024px) { .schedule-row .time { font-size: 11px; opacity: 1; } }
.schedule-row .status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}
@media (min-width: 768px) { .schedule-row .status { font-size: 10px; } }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 28px;
}
@media (min-width: 768px) { .footer { padding: 80px 0 32px; } }

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
@media (min-width: 640px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.7;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

.footer .big {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-top: 40px;
  color: var(--brand);
}
.footer .big em { color: var(--cream); font-style: italic; }
@media (min-width: 768px) { .footer .big { margin-top: 56px; } }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 24px;
  opacity: 0.6;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; margin-top: 32px; }
}

/* ---------- Tone tweak ---------- */
[data-tone="playful"] .hero-title em::before { content: "★ "; }

/* ---------- Interactive polish ---------- */

/* Header order CTA — full transition target */
.site-header .order-btn { background: transparent; }

/* Section heads — TC mark subtle hover */
.section-head .tc-mark {
  transition: color 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) {
  .section-head:hover .tc-mark { color: var(--brand); transform: translateY(-2px); }
}

/* Hero meta items — divider feel on desktop */
@media (min-width: 768px) {
  .hero-meta .m-item {
    padding-left: 14px;
    border-left: 1px solid rgba(14, 10, 10, 0.18);
  }
  .hero-meta .m-item:first-child { padding-left: 0; border-left: 0; }
}

/* Story stat number — pop on view */
.story-stats .stat .n {
  transition: transform 0.3s ease, color 0.3s ease;
}
@media (hover: hover) {
  .story-stats .stat:hover .n { transform: translateY(-3px); }
}

/* Map pins — bigger touch + clear active state */
.map-pin:focus { outline: none; }
.map-pin .head { transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease; }
@media (hover: hover) {
  .map-pin:hover .head { background: var(--brand); }
}

/* Next-stop CTA — promote inline-styled buttons to first-class */
.next-stop button {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
@media (hover: hover) {
  .next-stop button:hover { transform: translateY(-2px); }
}

/* Schedule row — clearer NEXT chip */
.schedule-row.next .status {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
  font-weight: 700;
}

/* Footer — newsletter hint pointer */
.footer ul li {
  transition: color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .footer ul li:hover { color: var(--brand); transform: translateX(3px); cursor: pointer; }
}

/* Order ahead button in hero header — make text pop */
.order-btn { white-space: nowrap; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .live-dot::before { animation: none; }
  .map-pin.active .head { animation: none; }
}
