/* ============================================================
   Chè & Café — Homepage
   ============================================================ */

/* --- Custom properties --- */
:root {
  --cream:    #f9f6f0;
  --ink:      #191815;
  --ink-mid:  #62605d;
  --accent:   #a14721;
  --card-bg:  #fdfcfa;
  --rule:     #e8e3da;
  --surface-alt: #f1ece1;

  --flavor-coffee:   #4a3226;
  --flavor-blended:  #8a6a48;
  --flavor-matcha:   #4f7a54;
  --flavor-desserts: #8a3226;
  --flavor-milktea:  #a3803f;
  --flavor-fruittea: #b0512c;
  --flavor-smoothie: #a13f5c;
  --flavor-waffle:   #a3823f;

  --font: 'Raleway', sans-serif;

  --nav-h:        4rem;
  --quicknav-h:   3rem;
  --section-pad:  clamp(3rem, 8vw, 6rem);
  --rail-pad:     max(clamp(1.25rem, 5vw, 3rem), calc((100% - 1440px) / 2));
  --card-w:       clamp(190px, 62vw, 265px);
}

@supports (color: oklch(0% 0 0)) {
  :root {
    --cream:   oklch(97.2% 0.009 80);
    --ink:     oklch(11%  0.006 80);
    --ink-mid: oklch(49%  0.006 80);
    --accent:  oklch(51%  0.13  42);
    --card-bg: oklch(99.2% 0.004 80);
    --rule:    oklch(90%  0.007 80);
    --surface-alt: oklch(94.5% 0.011 80);

    --flavor-coffee:   oklch(36% 0.05 45);
    --flavor-blended:  oklch(44% 0.07 58);
    --flavor-matcha:   oklch(46% 0.09 150);
    --flavor-desserts: oklch(42% 0.13 22);
    --flavor-milktea:  oklch(46% 0.08 75);
    --flavor-fruittea: oklch(46% 0.14 38);
    --flavor-smoothie: oklch(44% 0.12 345);
    --flavor-waffle:   oklch(46% 0.07 82);
  }
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Cross-page transitions --- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-fade-out 375ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-new(root) {
  animation: page-fade-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-fade-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
  padding-inline: var(--rail-pad);
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-mark {
  flex-shrink: 0;
  display: block;
}

.nav-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.2s ease-out;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.nav-link--current {
  color: var(--ink);
  padding-bottom: 0.3rem;
  border-bottom: 1.5px solid var(--accent);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  scale: 1.08;
  animation: hero-settle 8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-settle {
  from { scale: 1.08; }
  to   { scale: 1; }
}

/* --- Homepage moment --- */
.moment {
  padding-block: var(--section-pad);
  padding-inline: var(--rail-pad);
  border-top: 1px solid var(--rule);
  background: var(--surface-alt);
}

.moment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 3rem);
}

.moment-num {
  display: block;
  font-family: 'Italiana', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.moment-num--coffee { color: var(--flavor-coffee); }
.moment-num--matcha { color: var(--flavor-matcha); }
.moment-num--che    { color: var(--flavor-desserts); }

.moment-heading {
  font-family: 'Italiana', serif;
  font-size: clamp(1.375rem, 2.6vw, 1.625rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.625rem;
}

.moment-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-mid);
}

@media (min-width: 768px) {
  .moment-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
  }
}

/* --- Category sections --- */
.category {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--rule);
  timeline-scope: --rail;
}

.category-label {
  padding-inline: var(--rail-pad);
  font-family: 'Italiana', serif;
  font-size: clamp(2.375rem, 9.5vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: clamp(1.75rem, 4.5vw, 3rem);
}

/* --- Scroll rail --- */
.scroll-rail {
  display: flex;
  align-items: stretch;
  gap: 1.125rem;
  overflow-x: auto;
  padding-block: 0.25rem;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--rail-pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  scroll-timeline-name: --rail;
  scroll-timeline-axis: inline;
}

/* Spacers replace padding-inline — more reliable in overflow-x flex containers */
.scroll-rail::before,
.scroll-rail::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: var(--rail-pad);
}

.scroll-rail::-webkit-scrollbar {
  display: none;
}

.scroll-rail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Drink card --- */
.drink-card {
  flex-shrink: 0;
  width: var(--card-w);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.card-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgb(25 24 21 / 0.05), 0 10px 22px -14px rgb(25 24 21 / 0.22);
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.drink-card:hover .card-photo img {
  transform: scale(1.045);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
}

.card-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: break-word;
}

.card-sub {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* --- Scroll depth indicator --- */
.rail-track {
  height: 1px;
  background: var(--rule);
  margin-inline: var(--rail-pad);
  margin-top: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
}

.rail-fill {
  height: 100%;
  width: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
}

@supports (animation-timeline: scroll()) {
  .rail-fill {
    animation: rail-progress linear both;
    animation-timeline: --rail;
  }

  @keyframes rail-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* --- Rail CTA --- */
.rail-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  scroll-snap-align: start;
  padding-inline: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(2rem, 5vw, 3rem);
  gap: 0.375rem;
  color: var(--ink-mid);
  transition: color 0.2s ease-out;
}

.cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.cta-arrow {
  font-size: 1.375rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.rail-cta:hover {
  color: var(--ink);
}

.rail-cta:hover .cta-arrow {
  transform: translateX(5px);
}

.rail-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --- Reviews --- */
.reviews {
  background: var(--surface-alt);
}

.reviews .category-label {
  margin-bottom: 0.75rem;
}

.reviews-lede {
  padding-inline: var(--rail-pad);
  margin-bottom: clamp(1.75rem, 4.5vw, 3rem);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink-mid);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem clamp(1.5rem, 4vw, 2.5rem);
  padding-inline: var(--rail-pad);
}

.review-card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.review-quote-mark {
  font-family: 'Italiana', serif;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  flex-grow: 1;
}

.review-meta {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-stars {
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.review-byline {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.review-source {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
}

.reviews-cta {
  padding-inline: var(--rail-pad);
}

/* --- Menu index --- */
.menu-index {
  padding-block: var(--section-pad);
  padding-inline: var(--rail-pad);
  border-top: 1px solid var(--rule);
}

.menu-index-label {
  font-family: 'Italiana', serif;
  font-size: clamp(2.375rem, 9.5vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--ink);
}

.menu-index-lede {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
}

.menu-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 4.5vw, 2.5rem);
}

.menu-index-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: 1rem;
  overflow: hidden;
  color: var(--cream);
  transition: translate 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease-out;
}

.menu-index-tile--coffee   { background: var(--flavor-coffee); }
.menu-index-tile--blended  { background: var(--flavor-blended); }
.menu-index-tile--matcha   { background: var(--flavor-matcha); }
.menu-index-tile--desserts { background: var(--flavor-desserts); }
.menu-index-tile--milktea  { background: var(--flavor-milktea); }
.menu-index-tile--fruittea { background: var(--flavor-fruittea); }
.menu-index-tile--smoothie { background: var(--flavor-smoothie); }
.menu-index-tile--waffle   { background: var(--flavor-waffle); }

.tile-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgb(253 252 250 / 0.8);
  margin-bottom: 0.5rem;
  transition: translate 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile-name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
  overflow-wrap: break-word;
  transition: translate 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.125rem;
  line-height: 1;
  opacity: 0;
  translate: -6px 6px;
  transition: opacity 0.25s ease-out, translate 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-index-tile:hover,
.menu-index-tile:focus-visible {
  translate: 0 -3px;
}

.menu-index-tile:active {
  translate: 0 -1px;
  filter: brightness(0.9);
}

.menu-index-tile:hover .tile-num,
.menu-index-tile:focus-visible .tile-num,
.menu-index-tile:hover .tile-name,
.menu-index-tile:focus-visible .tile-name {
  translate: 0 -2px;
}

.menu-index-tile:hover .tile-arrow,
.menu-index-tile:focus-visible .tile-arrow {
  opacity: 1;
  translate: 0 0;
}

.menu-index-tile:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: -6px;
}

/* --- Menu index: scroll-in reveal ---
   Uses the `scale` individual property (not `transform`) so it never
   fights the translate-based hover/active lift above: CSS animations
   win the cascade over plain :hover/:active rules on the same property,
   so entrance motion and interaction motion must live on separate axes.

   One-shot via IntersectionObserver (adds `.is-revealed`, then
   unobserves) rather than `animation-timeline: view()`: a scroll-linked
   timeline is continuously scrubbed by scroll position, so it always
   plays in reverse when scrolled back past — tiles would wink out of a
   row you're trying to compare. `.js` gates the hidden starting state so
   visitors without JS simply see the tiles immediately, never stuck
   invisible. */
@media (prefers-reduced-motion: no-preference) {
  .js .menu-index-tile {
    --reveal-delay: 0ms;
    opacity: 0;
    scale: 0.96;
    transition:
      translate 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.2s ease-out,
      opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
      scale 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay);
  }

  .js .menu-index-tile.is-revealed {
    opacity: 1;
    scale: 1;
  }

  .js .menu-index-tile:nth-child(2) { --reveal-delay: 90ms; }
  .js .menu-index-tile:nth-child(3) { --reveal-delay: 180ms; }
  .js .menu-index-tile:nth-child(4) { --reveal-delay: 270ms; }
  .js .menu-index-tile:nth-child(5) { --reveal-delay: 360ms; }
  .js .menu-index-tile:nth-child(6) { --reveal-delay: 450ms; }
  .js .menu-index-tile:nth-child(7) { --reveal-delay: 540ms; }
  .js .menu-index-tile:nth-child(8) { --reveal-delay: 630ms; }
}

/* --- Visit --- */
.visit {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--rule);
  background: var(--surface-alt);
}

.visit .category-label {
  margin-bottom: 0.75rem;
}

.visit-lede {
  padding-inline: var(--rail-pad);
  margin-bottom: clamp(1.75rem, 4.5vw, 3rem);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink-mid);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  padding-inline: var(--rail-pad);
}

.visit-hours {
  max-width: 26rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgb(25 24 21 / 0.05), 0 10px 22px -14px rgb(25 24 21 / 0.22);
}

.visit-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
}

.visit-hours-row + .visit-hours-row {
  border-top: 1px solid var(--rule);
}

.visit-hours-row.is-today {
  background: rgb(25 24 21 / 0.04);
}

.visit-hours-row dt {
  color: var(--ink);
  font-weight: 600;
}

.visit-hours-row.is-today dt {
  font-weight: 700;
}

.visit-hours-row dd {
  color: var(--ink-mid);
  letter-spacing: 0.02em;
}

.visit-detail {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
}

.visit-detail + .visit-detail {
  margin-top: 0.375rem;
}

.visit-icon {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
}

a.visit-detail {
  transition: color 0.2s ease-out;
}

a.visit-detail:hover,
a.visit-detail:focus-visible {
  color: var(--accent);
  outline: none;
}

.visit-cta {
  margin-top: 1.5rem;
}

.visit-map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgb(25 24 21 / 0.05), 0 10px 22px -14px rgb(25 24 21 / 0.22);
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

@media (min-width: 768px) {
  .visit-grid {
    grid-template-columns: 2fr 3fr;
    align-items: start;
  }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  padding-inline: var(--rail-pad);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-name {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-info {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  line-height: 1.6;
}

.footer-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  transition: color 0.2s ease-out;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer-social-link {
  display: inline-flex;
  color: var(--ink-mid);
  transition: color 0.2s ease-out;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.footer-social-icon {
  width: 1.375rem;
  height: 1.375rem;
}

/* ============================================================
   Menu page
   ============================================================ */

.menu-intro {
  padding-block: clamp(2.25rem, 6vw, 3.75rem) clamp(1.5rem, 4vw, 2.25rem);
  padding-inline: var(--rail-pad);
}

.menu-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.625rem;
  animation: fade-in-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.menu-lede {
  max-width: 42ch;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.6;
  animation: fade-in-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

/* --- Category quick-nav --- */
.menu-quicknav {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--cream);
  border-block: 1px solid var(--rule);
}

.quicknav-rail {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
  padding-inline: var(--rail-pad);
  padding-block: 0.875rem;
  scrollbar-width: none;
}

.quicknav-rail::-webkit-scrollbar {
  display: none;
}

.quicknav-link {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-mid);
  padding-bottom: 0.25rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.quicknav-link:hover,
.quicknav-link:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
  outline: none;
}

/* --- Sections --- */
.menu-main {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.menu-section {
  padding-block: var(--section-pad);
  padding-inline: var(--rail-pad);
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--nav-h) + var(--quicknav-h) + 1rem);
}

.menu-section-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.menu-section-label {
  font-family: 'Italiana', serif;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.menu-section-sub {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* --- Card grids (Coffee / Matcha / Chè / Waffles) --- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.75rem 1.25rem;
}

.menu-item-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgb(25 24 21 / 0.05), 0 10px 22px -14px rgb(25 24 21 / 0.22);
  margin-bottom: 0.75rem;
}

.menu-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-item:hover .menu-item-photo img {
  transform: scale(1.045);
}

.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.menu-item-name {
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: break-word;
}

.menu-item-price {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.menu-item-viet {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--ink-mid);
}

.menu-item-ingredients {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--ink-mid);
}

.menu-item-note {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Waffles & Croffles — plated, landscape crop */
.menu-grid--feature-sm {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2rem 1.5rem;
}

.menu-grid--feature-sm .menu-item-photo {
  aspect-ratio: 4 / 3;
}

/* --- Footnotes --- */
.menu-footnote {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 46rem;
}

.menu-footnote-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.menu-footnote-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.menu-footnote-price {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

.menu-footnote-block .menu-footnote-title {
  display: block;
  margin-bottom: 0.375rem;
}

.menu-footnote-list {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-mid);
}

/* ============================================================
   About page
   ============================================================ */

.about-intro {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.25rem);
  padding-inline: var(--rail-pad);
}

.about-title {
  font-family: 'Italiana', serif;
  font-size: clamp(2.375rem, 9.5vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: 0.75rem;
  animation: fade-in-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.1s;
}

.about-lede {
  max-width: 42ch;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.6;
  animation: fade-in-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

.story-row {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: var(--section-pad);
  padding-inline: var(--rail-pad);
  border-top: 1px solid var(--rule);
}

.story-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--rule);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-label {
  font-family: 'Italiana', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.875rem;
}

.story-text p {
  max-width: 52ch;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
}

.story-acronym {
  margin-top: 1.25rem;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-mid);
}

.story-acronym-letter {
  color: var(--accent);
  font-weight: 700;
}

.story-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-block: var(--section-pad);
  padding-inline: var(--rail-pad);
  border-top: 1px solid var(--rule);
}

.story-block .story-label {
  margin-bottom: 0;
}

.story-block p {
  max-width: 60ch;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
}

.story-pullquote {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  padding-inline: var(--rail-pad);
  border-top: 1px solid var(--rule);
}

.story-pullquote p {
  max-width: 34ch;
  font-family: 'Italiana', serif;
  font-size: clamp(1.75rem, 5.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--ink-mid);
  transition: color 0.2s ease-out;
}

.story-cta:hover,
.story-cta:focus-visible {
  color: var(--ink);
  outline: none;
}

.story-cta:hover .cta-arrow,
.story-cta:focus-visible .cta-arrow {
  transform: translateX(5px);
}

.story-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .story-row {
    flex-direction: row;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .story-row > * {
    flex: 1;
  }

  .story-row--reverse {
    flex-direction: row-reverse;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Scroll-in reveal: one-shot via IntersectionObserver, same technique
   as .menu-index-tile (see that comment for why one-shot + `.js` gating). --- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .js .reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  @view-transition {
    navigation: none;
  }

  .hero-img,
  .about-title,
  .about-lede,
  .menu-title,
  .menu-lede {
    animation: none;
  }

  .card-photo img,
  .cta-arrow,
  .menu-item-photo img,
  .menu-index-tile,
  .reveal,
  .tile-num,
  .tile-name,
  .tile-arrow {
    transition: none;
  }
}

/* --- Desktop refinements --- */
@media (min-width: 1024px) {
  :root {
    --card-w: 260px;
  }

  .scroll-rail {
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.25rem 1.75rem;
  }

  .menu-index-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
