/* =====================================================================
   junction.css — Chilli Junction
   A single, premium, minimalist ivory design system.

   Replaces the previous jewel-tone stack (base/pavsarts/tanjore/genz/
   animations). It styles BOTH the new editorial layout AND every
   component rendered at runtime by the JS modules (menu cards, cart
   drawer, order summary, events, modal, toast) — their class names are
   preserved so all functionality keeps working untouched.

   Palette:  warm ivory ground · soft near-black ink · dried-chilli red
             accent · earthy clay brown. Accent used sparingly.
   Type:     Cormorant Garamond (display) · General Sans (body).
   ===================================================================== */

/* ------------------------------------------------------------------ */
/*  Tokens                                                            */
/* ------------------------------------------------------------------ */
:root {
  /* Morning Ritual palette (from morning glory.jpg):
     cream ground · coffee-brown ink · gold-tone accent. */
  --ivory:        #F5F2E7;   /* Background Cream (spec) */
  --ivory-2:      #ECE5D3;   /* alternating section — deeper cream */
  --cream:        #FCFAF1;   /* raised surfaces / cards */
  --ink:          #3C2D1E;   /* headings / strong text (deep coffee) */
  --ink-2:        #604B35;   /* Text Coffee Brown (spec) — body */
  --ink-faint:    #94856A;   /* muted labels */
  --line:         #E4DBC6;   /* hairlines, dividers */
  --line-strong:  #D2C5A8;

  /* Accent — Accent Gold Tone (spec). The deep gold reads as TEXT on cream;
     the light gold is for keylines and fills. Used sparingly. */
  --chilli:       #8A6A33;   /* accent text / active states / prices */
  --chilli-deep:  #6F5326;   /* hover / pressed */
  --gold:         #B69664;   /* Accent Gold Tone (spec) — keylines, fills */
  --clay:         #6E5638;   /* secondary muted brown */

  /* Footer (deep coffee, still warm) */
  --umber:        #2A2015;
  --umber-text:   #ECE3CF;

  /* Legacy aliases — some inline styles in markup reference these */
  --cc-mirchi:    var(--chilli);
  --cc-saffron:   var(--chilli);
  --cc-haldi:     var(--clay);

  /* Type */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'General Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;

  --maxw: 1200px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--chilli); color: var(--cream); }

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

/* ------------------------------------------------------------------ */
/*  Layout primitives                                                 */
/* ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, var(--sp-7));
}
.section--alt { background: var(--ivory-2); }

/* Section header */
.section-header { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-header--center { margin-inline: auto; text-align: center; }

.decorator {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--chilli);
  margin-bottom: 1rem;
}
.section-header--center .decorator::before,
.section-header--center .decorator::after {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--line-strong);
  vertical-align: middle;
  margin-inline: 0.7rem;
}

.section-header__lede {
  margin-top: 1rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 60ch;
}
.section-header--center .section-header__lede { margin-inline: auto; }

/* Display headings — neutralises the old .lorry-text stroke treatment */
h1, h2, h3, .lorry-text {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  /* hard-reset legacy lorry styling */
  -webkit-text-stroke: 0;
  text-shadow: none;
  text-transform: none;
}
.lorry-text { font-weight: 600; }
.lorry-text--lg { font-size: clamp(2.8rem, 8vw, 5.2rem); }
.lorry-text--md { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* Divider — recolours the existing paisley SVG into a quiet centred rule */
.paisley-divider {
  display: block;
  width: min(420px, 70%);
  height: 26px;
  margin: clamp(1rem, 4vw, 2.5rem) auto;
  opacity: 0.8;
}
.paisley-divider line { stroke: var(--line-strong); stroke-width: 1; }
.paisley-divider circle { fill: var(--line-strong); }
.paisley-divider path { fill: none; stroke: var(--clay); stroke-width: 1; opacity: 0.6; }
.paisley-divider .gem-r, .paisley-divider .gem-g, .paisley-divider .gem-b { fill: var(--chilli); stroke: none; }

/* Scroll reveal (driven by app.js adding .is-visible) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }
.reveal--delay-4 { transition-delay: 0.32s; }

/* Decorative jewel corners from old theme — silenced */
.gem-corner, .royal-stamp .gem-corner { display: none !important; }

/* Generic helpers used in markup */
.muted, .faint { color: var(--ink-faint); }
.center { text-align: center; }
.meme { font-size: 0.92rem; color: var(--ink-faint); line-height: 1.6; }
.meme a { color: var(--chilli); text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ */
/*  Buttons                                                           */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95em 1.8em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn--cta { padding: 1.05em 2.1em; }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--chilli); border-color: var(--chilli); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--ink); }

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ------------------------------------------------------------------ */
/*  Navigation                                                        */
/* ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, #E7DCC4 94%, transparent);  /* slightly darker than the page */
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line-strong);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: auto;
}
.nav__brand-dot { color: var(--chilli); margin-inline: 0.06em; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--chilli);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cart {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.nav__cart:hover { border-color: var(--ink); }
.nav__cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.35rem;
  background: var(--chilli);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.72rem;
}
.nav__cart-count[data-count="0"] { background: var(--line-strong); color: var(--ink-2); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.nav__hamburger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ------------------------------------------------------------------ */
/*  Ticker — kept functional, made quiet & editorial                  */
/* ------------------------------------------------------------------ */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);      /* blends into the page */
  overflow: hidden;
}
.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  padding-block: 0.55rem;
  animation: ticker-scroll 72s linear infinite;   /* slow, calm drift */
}
.ticker__item {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);            /* slightly darker than before */
  padding-inline: 1.4rem;
  position: relative;
}
.ticker__item::after {
  content: "·";
  position: absolute;
  right: -0.15rem;
  color: var(--chilli);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------ */
/*  Hero                                                              */
/* ------------------------------------------------------------------ */
.section--hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0;
  color: var(--ink);
  isolation: isolate;
}

/* Utility: a section that fills one screen, content vertically centred. */
.section--full { min-height: 100svh; display: flex; align-items: center; }
.section--full > .container { width: 100%; }

/* Feature section: full-bleed photo underlay + cream wash + text, like the hero. */
.section--feature {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5rem);
  color: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.feature-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.feature-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(96deg, rgba(245,242,231,0.95) 0%, rgba(245,242,231,0.72) 42%, rgba(245,242,231,0.34) 100%),
    linear-gradient(180deg, var(--ivory) 0%, rgba(245,242,231,0) 26%, rgba(245,242,231,0) 70%, var(--ivory) 100%);
}
.feature-copy { max-width: 600px; }

/* Right-aligned variant: photo on the LEFT only; the right half fades to
   blank cream (like the hero), and the copy sits on that clean right side. */
.section--feature-right .feature-copy { margin-left: auto; }

@media (min-width: 761px) {
  .section--feature-right .feature-bg {
    -webkit-mask-image:
      linear-gradient(90deg, #000 0%, #000 36%, transparent 60%),
      linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(90deg, #000 0%, #000 36%, transparent 60%),
      linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
            mask-composite: intersect;
  }
  .section--feature-right .feature-scrim { display: none; }
}

@media (max-width: 760px) {
  .feature-scrim,
  .section--feature-right .feature-scrim {
    background:
      linear-gradient(180deg, rgba(245,242,231,0.55) 0%, rgba(245,242,231,0.82) 55%, var(--ivory) 100%);
  }
  .section--feature-right .feature-copy { margin-left: 0; }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Swap assets/hero-main.jpg to change the hero photo. */
  background-image: url('../assets/hero-main.jpg');
  background-size: cover;
  background-position: center 55%;
  /* Fade the photo's own edges so it melts into the cream page. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Cream wash: heavy on the left (legible dark text) + fades top & bottom
     into the page so nothing reads as a hard dark block. */
  background:
    linear-gradient(96deg, rgba(247,242,231,0.95) 0%, rgba(247,242,231,0.70) 40%, rgba(247,242,231,0.34) 100%),
    linear-gradient(180deg, var(--ivory) 0%, rgba(247,242,231,0) 26%, rgba(247,242,231,0) 70%, var(--ivory) 100%);
}
.section--hero .container { width: 100%; }
.hero {
  padding-block: clamp(3rem, 9vw, 6rem);
  max-width: 880px;
}
.hero__eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--chilli);
  margin-bottom: 1.3rem;
}
.hero__title {
  color: var(--ink);
  font-size: clamp(3rem, 8.5vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero__title em { font-style: italic; color: var(--chilli); }
.hero__tagline {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 400;
  color: var(--ink-2);
  max-width: 46ch;
}
.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.section--hero .meme { color: var(--ink-faint); }

/* ------------------------------------------------------------------ */
/*  Story / About — two column editorial                             */
/* ------------------------------------------------------------------ */
.story-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  background: none;
}
/* No frame — the photo feathers into the cream page, the same way the hero does. */
.story-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 48%, #000 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 100% 100% at 50% 48%, #000 70%, transparent 100%);
}
.story__lede {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.story__lede em { font-style: italic; color: var(--chilli); }
.story__body { color: var(--ink-2); margin-bottom: 1.2rem; max-width: 52ch; }
.royal-stamp {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ */
/*  Philosophy — numbered manifesto rows                             */
/* ------------------------------------------------------------------ */
.principles { border-top: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: baseline;
  padding-block: clamp(1.1rem, 2.6vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}
.principle__num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 500;
  color: var(--chilli);
  font-feature-settings: "lnum";
  min-width: 2.5ch;
}
.principle__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.principle__body { color: var(--ink-2); max-width: 56ch; }
@media (min-width: 760px) {
  .principle { grid-template-columns: auto 0.9fr 1.1fr; }
  .principle__num { grid-row: span 1; }
}
/* Mobile: number spans both rows so title + body stack cleanly to its right
   (stops the rows skewing) and the whole block is tightened up. */
@media (max-width: 759px) {
  .principle { gap: 0.35rem 1.1rem; padding-block: 1.3rem; align-items: start; }
  .principle__num { grid-row: 1 / span 2; font-size: 1.5rem; }
  .principle__title { grid-column: 2; font-size: 1.35rem; margin-bottom: 0.3rem; }
  .principle__body { grid-column: 2; font-size: 0.95rem; }
  .section-header { margin-bottom: 1.6rem; }
}

/* How To Order — editorial step columns (not a list/table) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.step::before {
  content: "";
  display: block;
  width: 30px; height: 2px;
  background: var(--chilli);
  margin-bottom: 1.1rem;
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.step__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.45rem; }
.step__body { color: var(--ink-2); font-size: 0.93rem; line-height: 1.55; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.6rem; } }
@media (max-width: 440px) { .steps { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ------------------------------------------------------------------ */
/*  Menu — typographic, image optional                                */
/* ------------------------------------------------------------------ */
.leadtime-note {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.leadtime-note--block { display: block; }

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.2rem;
}
.menu-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.6rem 0.1rem;
  position: relative;
  transition: color 0.2s var(--ease);
}
.menu-tab span[aria-hidden] { font-size: 0.95em; filter: grayscale(0.2); }
.menu-tab::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 2px;
  background: var(--chilli);
  transition: width 0.25s var(--ease);
}
.menu-tab:hover { color: var(--ink); }
.menu-tab.is-active { color: var(--ink); }
.menu-tab.is-active::after { width: 100%; }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile default; desktop uses staggered masonry below */
}
.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transform-origin: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.menu-card:hover {
  transform: scale(1.05);
  box-shadow: 0 34px 70px -28px rgba(60,45,30,0.55);
  border-color: var(--line-strong);
  z-index: 5;
}
.menu-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--ivory-2);
  transition: transform 0.6s var(--ease);
}
.menu-card:hover .menu-card__thumb { transform: scale(1.06); }
.menu-card__thumb--placeholder {
  background-image:
    linear-gradient(155deg, rgba(255,252,244,0.5), rgba(182,150,100,0.12)),
    url('../assets/dish.jpg');
}
.menu-card__info { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }

.menu-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.menu-card__diet { display: inline-flex; }

.badge {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: none;
  border-radius: 0;
  padding: 0;
}
.badge--bestseller, .badge--chef, .badge--mirchi { color: var(--chilli); }
.badge--soldout { color: var(--ink-faint); }

.menu-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.14;
  margin-bottom: 0.25rem;
}
.menu-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 0.7rem;
}
.menu-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}
.menu-card__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--chilli);
}
.menu-card__price-unit {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: 0.4rem;
}
.menu-card__add {
  flex: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0.32rem 0.8rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.menu-card__add:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Desktop: staggered masonry of square-ish blocks (NOT an aligned grid).
   Cards flow down columns with varied heights, so rows never line up.
   PC only — the phone keeps its compact rows below. */
@media (min-width: 641px) {
  .menu-grid {
    display: block;
    column-count: 2;
    column-gap: clamp(1.2rem, 2.2vw, 1.8rem);
  }
  /* Borderless cards on a soft shadow — editorial and quiet. */
  .menu-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    width: 100%;
    margin: 0 0 clamp(1.2rem, 2.2vw, 1.8rem);
    border: none;
    border-radius: 8px;
    box-shadow: 0 16px 38px -26px rgba(60,45,30,0.42);
  }
  .menu-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 34px 66px -28px rgba(60,45,30,0.5);
    border-color: transparent;
  }
  /* Square image blocks, with an occasional taller one to stagger the columns. */
  .menu-card__thumb { aspect-ratio: 1 / 1; }
  .menu-card:nth-child(5n+2) .menu-card__thumb { aspect-ratio: 3 / 4; }
  .menu-card:nth-child(5n+4) .menu-card__thumb { aspect-ratio: 4 / 3; }

  .menu-card__info { padding: 1.1rem 1.3rem 1.2rem; }
  .menu-card__name { font-size: clamp(1.3rem, 1.5vw, 1.6rem); letter-spacing: -0.01em; }
  .menu-card__desc {            /* full text on desktop → varied card heights */
    display: block;
    -webkit-line-clamp: initial;
    overflow: visible;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }
  /* A thin rule lifts the price/Add row into something more considered. */
  .menu-card__meta { margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--line); }
  .menu-card__price { font-size: 1.25rem; }
  .menu-card__add {
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--chilli) 55%, transparent);
    border-radius: 0;
    padding: 0 0 2px;
    color: var(--chilli);
    background: none;
  }
  .menu-card__add:hover { background: none; color: var(--ink); border-color: var(--ink); }
  .menu-state { column-span: all; }
}
@media (min-width: 1040px) { .menu-grid { column-count: 3; } }

/* Phone: compact rows with a small thumbnail so 4+ dishes fit on screen.
   Placed AFTER the base card rules so it wins the cascade on mobile. */
@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr; gap: 0; }
  .menu-card {
    flex-direction: row;
    align-items: center;
    gap: 1.05rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0.95rem 0;
    overflow: visible;
  }
  .menu-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .menu-card__thumb {
    order: 0;
    flex: none;
    width: 82px;
    height: 82px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
  }
  .menu-card:hover .menu-card__thumb { transform: none; }
  .menu-card__info { order: 1; padding: 0; }
  .menu-card__tags { margin-bottom: 0.2rem; gap: 0.45rem; }
  .menu-card__name { font-size: 1.15rem; line-height: 1.2; margin-bottom: 0.2rem; }
  .menu-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.35rem;
  }
  .menu-card__meta { margin-top: 0.25rem; gap: 0.6rem; }
  .menu-card__price { font-size: 1.1rem; }
  .menu-card__add { padding: 0.34rem 0.8rem; font-size: 0.66rem; }
}

/* diet + spice marks */
.diet-mark { display: inline-block; width: 13px; height: 13px; border-radius: 2px; border: 1.5px solid currentColor; position: relative; }
.diet-mark--veg { color: #4f7a3a; }
.diet-mark--nonveg { color: var(--chilli); }
.diet-mark--egg { color: #b9892f; }
.diet-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }

/* Menu empty / loading / error states */
.menu-state { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; }
.menu-state__title { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-2); margin-bottom: 0.5rem; }
.loading-pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ------------------------------------------------------------------ */
/*  Signature carousel — VT Station style, large image-led slides     */
/* ------------------------------------------------------------------ */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ivory-2);
}
.carousel__track { position: relative; aspect-ratio: 16 / 8; }
@media (max-width: 700px) { .carousel__track { aspect-ratio: 3 / 4; } }

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease);
}
.carousel__slide.is-active { opacity: 1; visibility: visible; }
.carousel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40,30,18,0.66) 0%, rgba(40,30,18,0.25) 45%, transparent 72%);
}
.carousel__caption {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(1.5rem, 5vw, 3.5rem);
  right: 1.5rem;
  max-width: 32ch;
  color: var(--cream);
}
.carousel__eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #E6CF9E; margin-bottom: 0.5rem; }
.carousel__title { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; line-height: 1.04; color: var(--cream); }
.carousel__desc { margin-top: 0.6rem; color: rgba(255,248,235,0.9); font-size: 1rem; }

.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  color: var(--ink);
  border-radius: 999px;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.45);
  transition: background 0.2s var(--ease);
}
.carousel__btn:hover { background: var(--cream); }
.carousel__btn--prev { left: 1rem; }
.carousel__btn--next { right: 1rem; }

.carousel__dots {
  position: absolute; bottom: 1rem; right: clamp(1.5rem, 5vw, 4rem); z-index: 3;
  display: flex; gap: 0.5rem;
}
.carousel__dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,248,235,0.45); transition: background 0.2s var(--ease), width 0.2s var(--ease); }
.carousel__dot.is-active { background: var(--cream); width: 22px; }

@media (max-width: 700px) {
  .carousel__scrim { background: linear-gradient(180deg, transparent 28%, rgba(40,30,18,0.74) 100%); }
  .carousel__btn { display: none; }
}

/* ------------------------------------------------------------------ */
/*  Animated steam-engine logo mark, "Chilli Junction"                 */
/*  A big old-school black locomotive with gold trim, puffing smoke.    */
/* ------------------------------------------------------------------ */
.brand-logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-logo__mark { width: clamp(48px, 6.5vw, 62px); height: auto; flex: none; overflow: visible; }

.brand-logo__engine { fill: #1F1B16; }                 /* old black engine */
.brand-logo__trim   { fill: var(--gold); }             /* gold band */
.brand-logo__wheels circle { fill: #2A241C; }
.brand-logo__wheels .hub { fill: var(--gold); }
.brand-logo__rail { stroke: var(--line-strong); stroke-width: 1.6; stroke-linecap: round; }

.brand-logo__chug { transform-origin: center bottom; animation: train-chug 0.9s steps(2, end) infinite; }
.brand-logo__smoke circle { fill: #9A9081; }
.brand-logo__smoke circle:nth-child(1) { animation: smoke 2.4s ease-out infinite; }
.brand-logo__smoke circle:nth-child(2) { animation: smoke 2.4s ease-out 0.5s infinite; }
.brand-logo__smoke circle:nth-child(3) { animation: smoke 2.4s ease-out 1s infinite; }

@keyframes train-chug { 0%,100% { transform: translateY(0); } 50% { transform: translateY(0.6px); } }
@keyframes smoke {
  0%   { opacity: 0; transform: translate(0, 1px) scale(0.6); }
  35%  { opacity: 0.85; }
  100% { opacity: 0; transform: translate(-3px, -6px) scale(1.25); }
}

/* Footer locomotive — larger, light wheels for the dark footer ground. */
.site-footer__brand-line .brand-logo__mark { width: 58px; }
.site-footer__brand-line .brand-logo__engine { fill: #0F0C09; }
.site-footer__brand-line .brand-logo__wheels circle { fill: #3A332A; }
.site-footer__brand-line .brand-logo__wheels .hub { fill: var(--gold); }
.site-footer__brand-line .brand-logo__rail { stroke: rgba(236,227,207,0.3); }

/* ------------------------------------------------------------------ */
/*  Events — one left-to-right moving carousel                         */
/* ------------------------------------------------------------------ */
.section--events { background: var(--ivory-2); }
.events-bg, .events-scrim, .events-group__pip { display: none; }

.events-marquee {
  position: relative;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: 0.5rem;
  /* swipeable: it auto-drifts (js) AND can be pushed/dragged by hand */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  /* feather the two ends so cards slide in/out softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.events-marquee::-webkit-scrollbar { display: none; }
.events-marquee__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: max-content;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.event-card {
  flex: 0 0 auto;
  width: clamp(240px, 76vw, 300px);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.event-card--linked:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(60,45,30,0.5); border-color: var(--line-strong); }
.event-card--past { opacity: 0.78; }

.event-card__poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--ivory-2);
}
.event-card__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s var(--ease); }
.event-card__slide.is-active { opacity: 1; }
.event-card__dots { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.event-card__dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,248,235,0.55); }
.event-card__dot.is-active { background: var(--cream); }

.event-card__date {
  position: absolute;
  top: 8px; left: 8px;
  display: grid;
  justify-items: center;
  padding: 0.3rem 0.5rem;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  border-radius: var(--radius);
  line-height: 1;
}
.event-card__day { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--chilli); }
.event-card__mon { font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px; }

/* Status badge — replaces the separate Coming Up / Past groups */
.event-card__status {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--chilli);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}
.event-card__status--past { background: rgba(60,45,30,0.7); }

.event-card__body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.event-card__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.08; }
.event-card__meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.event-card__desc { font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.event-card__tag {
  align-self: flex-start;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chilli);
  border: none; border-radius: 0; padding: 0;
}
.event-card__tag--past { color: var(--ink-faint); }
.event-card__cue { margin-top: 0.3rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--chilli); }
.events-empty { color: var(--ink-faint); font-size: 0.95rem; padding: 1.2rem clamp(1.25rem, 5vw, 3rem); }

/* legacy mobile-rotator class (JS disabled) — keep harmless */
.events-grid--rotator { display: flex; }

/* Reduced motion: stop the auto-scroll, let people swipe the carousel. */
@media (prefers-reduced-motion: reduce) {
  .events-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .events-marquee__track { animation: none !important; }
}

/* ------------------------------------------------------------------ */
/*  Reservations / Order — two column                                 */
/* ------------------------------------------------------------------ */
.order-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
/* Combined order section: steps row above a single, centred form. */
.order-steps { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.order-form-col--solo { max-width: 620px; margin-inline: auto; }
.order-aside { position: sticky; top: 96px; }
.order-aside__title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin-bottom: 1rem; }
.order-aside__list { list-style: none; display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.order-aside__list li { display: grid; gap: 0.2rem; padding-left: 1.1rem; border-left: 2px solid var(--line-strong); }
.order-aside__list dt, .order-aside__k {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--chilli); font-weight: 600;
}
.order-aside__v { color: var(--ink-2); }

.order-banner {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  min-height: 180px;
  margin-bottom: 1.5rem;
}

.order-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

/* order summary inside the form */
.order-summary-inline {
  background: var(--ivory-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.8rem;
}
.order-summary__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 0.8rem; }
.order-summary__list { display: grid; gap: 0.2rem; }
.order-summary__empty { color: var(--ink-faint); font-size: 0.9rem; }
.order-summary__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.order-summary__row:last-child { border-bottom: none; }
.order-summary__row-name { font-weight: 500; }
.order-summary__qty { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem; }
.order-summary__qty button {
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.95rem; line-height: 1;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.order-summary__qty button:hover { border-color: var(--ink); color: var(--ink); }
.order-summary__row-price { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.order-summary__total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 0.9rem; padding-top: 0.9rem;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.order-summary__total .faint { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.1em; }

/* form fields — flat minimalist */
.field { margin-bottom: 1.2rem; display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
  width: 100%;
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--chilli);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chilli) 14%, transparent);
}
.field textarea { resize: vertical; min-height: 88px; }
.field__help { font-size: 0.78rem; color: var(--ink-faint); }
.field__error { font-size: 0.78rem; color: var(--chilli); min-height: 0; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--chilli); }
.field--row { grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.field--row input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--chilli); margin-top: 0.2rem; }
.field--row label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.88rem; color: var(--ink-2); }

.order-form .btn--cta { width: 100%; margin-top: 0.6rem; }
.order-status--error { color: var(--chilli) !important; font-weight: 500; }

/* ------------------------------------------------------------------ */
/*  Find Us                                                           */
/* ------------------------------------------------------------------ */
.find-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.find-details { display: grid; gap: 1.6rem; align-content: start; }
.find-block dt {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--chilli); margin-bottom: 0.35rem;
}
.find-block dd { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }
.find-block dd a:hover { color: var(--chilli); }
.find-map {
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(122,90,63,0.05) 18px, rgba(122,90,63,0.05) 36px),
    var(--ivory-2);
  border: 1px solid var(--line);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-faint);
  padding: 2rem;
}
.find-map__label { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-2); }
.find-map small { display: block; margin-top: 0.4rem; font-size: 0.8rem; letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ */
/*  Footer — organised columns                                        */
/* ------------------------------------------------------------------ */
.site-footer {
  background: var(--umber);
  color: var(--umber-text);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.site-footer .container { display: grid; gap: clamp(2rem, 5vw, 3rem); }

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
}
@media (max-width: 760px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .site-footer__top { grid-template-columns: 1fr; } }

.site-footer__brand { display: grid; gap: 0.9rem; align-content: start; }
.site-footer__brand-line {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer__brand-line .nav__brand-dot { color: var(--gold); }
.site-footer__tag { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; font-style: italic; color: #E8DCC8; max-width: 28ch; }

.footer-col { align-content: start; }
.footer-col__head { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col li, .footer-col a { font-size: 0.92rem; line-height: 1.5; color: var(--umber-text); opacity: 0.82; }
.footer-col a { transition: opacity 0.2s var(--ease), color 0.2s var(--ease); }
.footer-col a:hover { opacity: 1; color: var(--gold); }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(232,220,200,0.16);
}
.site-footer__legal { font-size: 0.8rem; color: rgba(232,220,200,0.6); }
.parent-ref { cursor: help; border-bottom: 1px dotted rgba(232,220,200,0.4); }
.parent-ref:hover { color: var(--gold); }
.site-footer__minor { display: flex; gap: 1.4rem; }
.site-footer__minor a { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--umber-text); opacity: 0.8; transition: opacity 0.2s var(--ease), color 0.2s var(--ease); }
.site-footer__minor a:hover { opacity: 1; color: var(--gold); }

/* ------------------------------------------------------------------ */
/*  Cart drawer                                                       */
/* ------------------------------------------------------------------ */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 200;
  width: min(400px, 92vw);
  height: 100dvh;
  background: var(--cream);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -30px rgba(40,26,16,0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease);
}
.cart-drawer.is-open { transform: none; }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.cart-drawer__close { font-size: 1.6rem; line-height: 1; color: var(--ink-2); padding: 0.2rem 0.4rem; }
.cart-drawer__close:hover { color: var(--chilli); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.cart-drawer__body .order-summary__empty { color: var(--ink-faint); }
.cart-drawer__foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: 0.8rem; }
.cart-drawer__foot .btn { width: 100%; }

/* ------------------------------------------------------------------ */
/*  Confirmation modal                                                */
/* ------------------------------------------------------------------ */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 1.5rem;
  background: rgba(34,24,16,0.55);
  backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; }
.modal__card {
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  max-width: 480px;
  width: 100%;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
  box-shadow: 0 30px 80px -40px rgba(40,26,16,0.7);
}
.modal__title { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin-bottom: 0.6rem; }
.modal__order-id {
  display: inline-block;
  margin: 0.8rem 0 1.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--chilli);
  background: var(--ivory-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
}
.modal__summary { text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 0.9rem; margin-bottom: 1rem; display: grid; gap: 0.35rem; }
.modal__summary-pickup { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.3rem; }
.modal__summary-row { display: flex; justify-content: space-between; gap: 1rem; }
.modal__summary-total { border-top: 1px solid var(--line-strong); margin-top: 0.4rem; padding-top: 0.5rem; font-weight: 600; }
.modal__emailnote { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1.2rem; }
.modal__close { width: 100%; }

/* ------------------------------------------------------------------ */
/*  Toast                                                             */
/* ------------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%; bottom: 2rem;
  transform: translate(-50%, 1.5rem);
  z-index: 400;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ */
/*  Responsive                                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .story-layout, .order-wrap, .find-layout { grid-template-columns: 1fr; }
  .order-aside { position: static; }
  .story-figure { aspect-ratio: 4 / 3; }
  /* Stacked layout: feather top + bottom into the cream, exactly like the hero. */
  .story-figure img {
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(180deg, transparent 0%, #000 15%, #000 85%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-composite: intersect;
  }
}

@media (max-width: 760px) {
  .nav__hamburger { display: flex; position: relative; z-index: 120; }
  /* hamburger turns into an X while the menu is open */
  .nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Full-screen menu. NOTE: the nav's backdrop-filter makes it the containing
     block for this fixed element, so `inset:0` would only fill the header bar.
     Size it in viewport units instead so it truly covers the screen, with a
     solid cream background (no see-through onto the page). */
  .nav__links {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 110;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3.5vh, 1.8rem);
    padding: calc(env(safe-area-inset-top) + 4rem) 1.5rem calc(env(safe-area-inset-bottom) + 2rem);
    background: #F5F2E7;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { font-size: 1.05rem; }
  .nav__links a::after { display: none; }   /* drop the underline animation in the overlay */

  /* Cart opens as a full-screen sheet that rises up the screen — not a
     narrow drawer pinned to the right. */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    border-left: none;
    transform: translateY(100%);
  }
  .cart-drawer.is-open { transform: none; }
}

@media (max-width: 460px) {
  .brand-logo__mark { width: 42px; }
  .nav__brand { font-size: 0.9rem; letter-spacing: 0.12em; }
  .nav__inner { gap: 0.75rem; }
  .nav__cart { padding: 0.4rem 0.6rem; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
