/* =========================================================
   Abhinav Caterers - polish layer (loads LAST)
   Tokens, spacing rhythm, fuse hover, nav wordmark fade,
   ticket rail, planner pickers, focus rings, reduced motion.
   Rules live in /DESIGN.md. Change tokens here, not values.
========================================================= */

/* ---------- named tokens ---------- */
:root {
  --edge: 5vw;                                   /* left/right page margin */
  --sec-open: clamp(4.5rem, 11vh, 7.5rem);       /* space above a section's content */
  --sec-close: clamp(2.5rem, 6vh, 4rem);         /* space below it */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .2s;
  --t-med: .45s;
  --t-slow: .7s;
  --r-pill: 999px;
  --r-card: 20px;
  --r-control: 10px;
  --fuse: #b9740f;                               /* burning line on cream buttons */
  --fuse-glow: #ffd877;
  --paper: var(--cream);                         /* kitchen-ticket paper */
  --paper-ink: #13221c;
  --paper-dim: #5b5444;
  --hole: #0a1813;                               /* punched holes on tickets */
}
@supports (height: 1svh) {
  :root {
    --sec-open: clamp(4.5rem, 11svh, 7.5rem);
    --sec-close: clamp(2.5rem, 6svh, 4rem);
  }
}
@media (max-width: 560px) { :root { --edge: 20px; } }

/* ---------- one even rhythm between sections (no dead gaps) ---------- */
.section { padding: var(--sec-open) var(--edge) var(--sec-close); scroll-margin-top: 96px; }
.contact-section { padding-top: clamp(1.5rem, 4vh, 2.5rem); }
.sig-block { background: linear-gradient(180deg, #091814, #0a1813); }

/* ---------- accessibility basics ---------- */
html :focus-visible { outline: 2px solid var(--gold) !important; outline-offset: 3px !important; }
html main:focus { outline: 0 !important; }
.skip {
  position: absolute; left: 12px; top: -70px; z-index: 300; background: var(--cream); color: #13221c;
  padding: 11px 18px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; transition: top var(--t-fast);
}
.skip:focus { top: 12px; }
.mn-hit { background: linear-gradient(90deg, rgba(205, 168, 106, .18), transparent 70%); box-shadow: inset 3px 0 0 var(--gold); padding-left: 10px; }

/* ---------- nav wordmark fades out when the hero title passes under it ---------- */
.nav .brand-text { transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s; }
.nav.brand-away .brand-text { opacity: 0; transform: translateY(-12px); visibility: hidden; transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }

/* ---------- fuse hover on "Plan an Event" ---------- */
.plan-btn { position: relative; overflow: hidden; isolation: isolate; }
.plan-btn::after {                                   /* the burning line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--fuse);
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease; z-index: 1; pointer-events: none;
}
.plan-btn::before {                                  /* the spark at its head */
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 6px; opacity: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(circle 4px at 100% 50%, var(--fuse-glow), rgba(255, 216, 119, 0) 100%);
  transform: translateX(-100%);
}
.plan-btn .fz-w, .plan-btn .fz { margin-left: 0; }   /* beats ".primary span { margin-left: 10px }" */
.plan-btn .fz-w { white-space: nowrap; }
.plan-btn .fz { transition: color .12s linear; }
@media (hover: hover) {
  .plan-btn:hover::after { transform: scaleX(1); transition: transform 620ms linear; }
  .plan-btn:hover::before { animation: fuse-spark 620ms linear forwards; }
  .plan-btn:hover .fz { color: var(--fuse); transition-delay: var(--d, 0ms); }
}
.plan-btn:focus-visible::after { transform: scaleX(1); transition: transform 620ms linear; }
.plan-btn:focus-visible::before { animation: fuse-spark 620ms linear forwards; }
.plan-btn:focus-visible .fz { color: var(--fuse); transition-delay: var(--d, 0ms); }
.plan-btn:active { transform: scale(.97); }
@keyframes fuse-spark {
  0% { transform: translateX(-100%); opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(0); opacity: 0; }
}

/* =========================================================
   TICKET RAIL  (a taste of the menu)
========================================================= */
.tk-wrap { --tk-w: 224px; --tk-h: 296px; position: relative; margin: 6px calc(var(--edge) * -1) 0; }
.tk-wrap::before {                                   /* the steel rail */
  content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; z-index: 0;
  background: linear-gradient(#7d8b84, #404d47); box-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}
.tk-rail {
  list-style: none; margin: 0; position: relative; z-index: 1; display: flex; gap: 16px;
  padding: 0 calc(50% - var(--tk-w) / 2) 70px;       /* first and last ticket can reach the middle at any width */
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.tk-rail::-webkit-scrollbar { display: none; }
.tk-rail.dragging { user-select: none; -webkit-user-select: none; }
.tk { flex: none; width: var(--tk-w); position: relative; padding-top: 16px; scroll-snap-align: center; }
.tk-wire { position: absolute; left: 50%; top: 0; width: 1px; height: 60px; background: #8c9a92; z-index: 0; }
.tk-card {
  position: relative; z-index: 1; height: var(--tk-h); padding: 26px 18px 14px; display: flex; flex-direction: column;
  background: var(--paper); color: var(--paper-ink); border-radius: 3px; text-align: left;
  transform: rotate(var(--tilt, 0deg)); transform-origin: 50% 0;
  box-shadow: 0 14px 26px -16px rgba(0, 0, 0, .75);
  transition: transform .56s var(--ease), box-shadow .56s var(--ease);
}
.tk-card::before {                                   /* perforated top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: radial-gradient(circle at 5px 0, var(--hole) 3px, transparent 3.6px) repeat-x; background-size: 10px 10px;
}
.tk-clip {
  position: absolute; left: 50%; top: -13px; width: 36px; height: 26px; transform: translateX(-50%);
  background: linear-gradient(#aab5af, #67746d); border-radius: 4px 4px 7px 7px; box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}
.tk-clip::after { content: ""; position: absolute; left: 50%; top: 5px; width: 14px; height: 2px; background: rgba(0, 0, 0, .28); transform: translateX(-50%); border-radius: 2px; }
.tk-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--paper-dim); letter-spacing: .03em; }
.tk-rule { border: 0; border-top: 1px dashed rgba(19, 34, 28, .38); margin: 10px 0; }
.tk-name { font: 600 31px/.92 'Cormorant Garamond', Georgia, serif; margin: 4px 0 6px; letter-spacing: -.01em; }
.tk-te { font: 400 15px/1.45 'Noto Sans Telugu', 'DM Sans', sans-serif; color: var(--paper-dim); margin: 0; }
.tk-foot { margin-top: auto; padding-top: 6px; border-top: 1px dashed rgba(19, 34, 28, .38); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--paper-dim); }
.tk-open {
  min-height: 44px; padding: 0 2px; white-space: nowrap; flex: none; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--paper-ink); text-decoration: underline; text-decoration-color: var(--fuse); text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.tk-open:hover { color: var(--fuse); }
.tk.active .tk-card { transform: translateY(40px) rotate(0deg); box-shadow: 0 26px 34px -16px rgba(0, 0, 0, .85); animation: tk-swing 1s var(--ease) both; }
@keyframes tk-swing {
  0% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  42% { transform: translateY(40px) rotate(calc(var(--tilt, 0deg) * -.7)); }
  72% { transform: translateY(40px) rotate(calc(var(--tilt, 0deg) * .22)); }
  100% { transform: translateY(40px) rotate(0deg); }
}
/* Standard / All Events switch above the ticket rail */
.tk-modes { display: flex; flex-wrap: wrap; gap: 10px; margin: -14px 0 30px; }
.tk-modes button {
  min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); background: transparent; border: 1px solid var(--line);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tk-modes button:hover { border-color: var(--gold); }
.tk-modes button[aria-checked="true"] { background: var(--cream); color: var(--paper-ink); border-color: var(--cream); }
.tk-rail.swap { animation: tk-swap .5s var(--ease) both; }
@keyframes tk-swap { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.tk-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.tk-status { margin: 0; min-width: 11ch; text-align: center; font-size: 13px; color: var(--muted); }
.tk-arrow {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--ink);
  background: transparent; border: 1px solid var(--line); transition: border-color var(--t-fast), background var(--t-fast);
}
.tk-arrow:hover { border-color: var(--gold); background: rgba(205, 168, 106, .1); }
.tk-arrow:disabled { opacity: .35; pointer-events: none; }
.tk-arrow svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .tk-wrap { --tk-w: 240px; --tk-h: 336px; } .tk-name { font-size: 33px; } }
/* mouse + wide screen: the rail starts at the page margin instead of the middle */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .tk-rail { padding-left: var(--edge); padding-right: var(--edge); }
}
/* heading and note stack on small screens (also tidies Gallery) */
@media (max-width: 700px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head p { max-width: 42ch; }
}

/* =========================================================
   PLANNER: meal tiles + diya time slots
========================================================= */
.qf-pick { min-width: 0; }
.qf-legend { display: block; font-size: 12px; color: #aeb8b0; margin-bottom: 8px; }
.qf-grid.has-pickers .qf-synced { display: none; }   /* the real <select>s stay in the page and stay in sync */
.qp-meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
.qp-meal {
  text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-height: 62px; padding: 12px 14px;
  background: #0a1b16; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.qp-meal b { display: block; font-size: 15px; font-weight: 600; }
.qp-meal small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.qp-meal:hover { border-color: rgba(205, 168, 106, .6); }
.qp-meal[aria-checked="true"] {
  border-color: var(--gold); background: linear-gradient(135deg, rgba(205, 168, 106, .18), rgba(16, 37, 30, .8));
}
.qp-meal[aria-checked="true"] b { color: var(--gold); }
/* ---------- service & preferences ---------- */
.quote-form .qf-sub { margin: 30px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.qf-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.qf-set legend { padding: 0; margin-bottom: 8px; font-size: 12px; color: #aeb8b0; }
.qf-help { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.qf-note { color: var(--ink); }
.qf-note strong { color: var(--gold); font-weight: 600; }
.qf-pair { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px 28px; align-items: start; }

/* choice cards: native radios, so keyboard arrows and form behaviour come for free */
.qs-spice { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.qs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; }
.qs-opt { position: relative; display: block; cursor: pointer; }
.qf-grid .qs-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; border: 0; cursor: pointer; }
.qs-card {
  display: flex; flex-direction: column; gap: 3px; height: 100%; min-height: 78px; padding: 12px 14px;
  background: #0a1b16; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.qs-card b { font-size: 15px; font-weight: 600; color: var(--ink); }
.qs-card small { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.qs-opt:hover .qs-card { border-color: rgba(205, 168, 106, .6); }
.qs-opt input:checked + .qs-card { border-color: var(--gold); background: linear-gradient(135deg, rgba(205, 168, 106, .18), rgba(16, 37, 30, .8)); }
.qs-opt input:checked + .qs-card b { color: var(--gold); }
.qs-opt input:focus-visible + .qs-card { outline: 2px solid var(--gold); outline-offset: 3px; }

/* spice: one to four chillies, gold when chosen (no new hues) */
.qs-chillies { display: flex; gap: 3px; height: 26px; margin-bottom: 5px; color: var(--muted); }
.chilli { width: 26px; height: 26px; fill: currentColor; opacity: .55; transition: opacity var(--t-fast), color var(--t-fast); }
.qs-opt input:checked + .qs-card .qs-chillies { color: var(--gold); }
.qs-opt input:checked + .qs-card .chilli { opacity: 1; }

/* service boys: - [ 0 ] + */
.qs-step { display: flex; align-items: center; gap: 10px; }
.qs-step button {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  font: inherit; font-size: 22px; line-height: 1; color: var(--ink); background: transparent; border: 1px solid var(--line);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.qs-step button:hover { border-color: var(--gold); background: rgba(205, 168, 106, .1); }
.qf-grid .qs-step input { width: 84px; margin: 0; text-align: center; font-size: 18px; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qs-step input::-webkit-outer-spin-button, .qs-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 700px) { .qf-pair { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .qs-two { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .qp-meals { grid-template-columns: 1fr 1fr; }
  .qp-slots { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 7px; }
  .qp-slot { min-height: 84px; }
}

/* =========================================================
   REDUCED MOTION: final states at once, no loops
========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee div { animation: none !important; }
  .plan-btn::before { display: none; }
  .plan-btn:hover::after, .plan-btn:focus-visible::after { transform: scaleX(1); }
  .tk.active .tk-card { animation: none !important; }
    .tk-rail.swap { animation: none !important; }
}

/* taste panel under the ticket rail */
.tk-panel { margin-top: 40px; padding: 26px 30px 30px; background: rgba(16, 37, 30, .6); border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 110px; animation: mnIn .45s cubic-bezier(.2, .7, .2, 1) both; }
.tk-panel[hidden] { display: none; }
.tk-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.tk-panel-head h3 { margin: 0; font: 600 34px/1 'Cormorant Garamond', Georgia, serif; color: var(--gold); }
.tk-panel-head h3 small { margin-left: 12px; font: 400 12px 'DM Sans', sans-serif; color: var(--muted); letter-spacing: .06em; }
.tk-panel-head span { display: flex; gap: 10px; align-items: center; }
.tk-panel-full, .tk-panel-close { font: inherit; font-size: 13px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; transition: border-color .2s; }
.tk-panel-full:hover, .tk-panel-close:hover { border-color: var(--gold); }
.tk.opened .tk-open { color: var(--fuse); }
@media (max-width: 640px) {
  .tk-panel { padding: 20px 18px 22px; }
  .tk-panel-head h3 { font-size: 28px; }
}

:root { --spring: cubic-bezier(.34, 1.45, .5, 1); }   /* easing that overshoots slightly = bouncy */

/* STAGE LAYOUT: [empty] [plate 560px] [spice scale] */
.builder .stage { display: grid; grid-template-columns: minmax(0, 1fr) min(92vw, 560px) minmax(150px, 1fr); align-items: start; }
.builder .stage .tabs { grid-column: 1 / -1; }            /* plate-type tabs span the full width */
.builder .stage #vessel { grid-column: 2; }               /* plate stays in the middle */
.builder .stage .spice-scale { grid-column: 3; grid-row: 2; align-self: center; width: 100%; max-width: 190px; padding-left: 10px; }
.spice-scale legend { margin-bottom: 10px; font-size: 11px; letter-spacing: .19em; text-transform: uppercase; font-weight: 700; color: var(--gold); }

.ss-body { display: flex; gap: 6px; height: 300px; }

/* THE RAIL */
.ss-rail { position: relative; flex: none; width: 58px; cursor: grab; touch-action: none; user-select: none; }
.ss-line { position: absolute; left: 50%; top: 12.5%; bottom: 12.5%; width: 6px; margin-left: -3px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.ss-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--lvl, 1) / 3 * 100%);                 /* 0, 33%, 66%, 100% of the line */
  background: linear-gradient(to top, var(--gold), var(--fuse)); border-radius: var(--r-pill);
  transition: height 560ms var(--ease);
}
.ss-dot {
  position: absolute; left: 50%; bottom: calc(12.5% + var(--i) * 25%);   /* --i is 0..3, set inline in the HTML */
  width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%;
  background: var(--bg); border: 2px solid rgba(245, 239, 227, .28);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.ss-dot.on { background: var(--gold); border-color: var(--gold); }

/* THE MIRCHI */
.ss-mirchi {
  position: absolute; left: 50%; bottom: calc(12.5% + var(--lvl, 1) * 25%); width: 0; height: 0;
  transition: bottom 560ms var(--spring);                 /* sliding = a transition on "bottom" */
}
.ss-rail.drag .ss-mirchi { transition-duration: 160ms; }  /* snappier while dragging */
.ss-pic {
  position: absolute; left: -22px; bottom: -22px; width: 44px; height: 44px; color: var(--gold);
  scale: calc(.9 + var(--lvl, 1) * .16);                  /* hotter = bigger */
  transform-origin: 70% 30%;
  transition: scale 560ms var(--spring), color var(--t-med);
  filter: drop-shadow(0 0 calc(var(--lvl, 1) * 3px) rgba(185, 116, 15, .95));   /* hotter = more glow */
}
.ss-pic .chilli { width: 44px; height: 44px; opacity: 1; display: block; color: inherit; }
.spice-scale[data-level="3"] .ss-pic { color: var(--fuse-glow); }
.ss-hit .ss-pic { animation: ss-shake 620ms var(--ease); }
@keyframes ss-shake {                                     /* bigger wiggle at higher levels */
  0%   { rotate: 0deg; }
  18%  { rotate: calc(var(--lvl, 1) * -5deg - 5deg); }
  38%  { rotate: calc(var(--lvl, 1) * 5deg + 5deg); }
  58%  { rotate: calc(var(--lvl, 1) * -3deg - 2deg); }
  78%  { rotate: calc(var(--lvl, 1) * 2deg + 1deg); }
  100% { rotate: 0deg; }
}

/* FLAME WISPS: rise once per choice (not a loop) */
.ss-heat { position: absolute; left: 0; bottom: 24px; width: 0; height: 0; pointer-events: none; }
.ss-heat i {
  position: absolute; bottom: 0; width: 7px; height: 12px; margin-left: -3px; opacity: 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(to top, var(--fuse), var(--fuse-glow));
}
.ss-heat i:nth-child(1) { left: -10px; }
.ss-heat i:nth-child(2) { left: 2px; }
.ss-heat i:nth-child(3) { left: 13px; }
.spice-scale[data-level="0"] .ss-heat i { display: none; }                       /* Mild: no flames */
.spice-scale[data-level="1"] .ss-heat i:nth-child(n+2) { display: none; }        /* Medium: 1 */
.spice-scale[data-level="2"] .ss-heat i:nth-child(n+3) { display: none; }        /* Hot: 2 */
.ss-hit .ss-heat i { animation: ss-rise 900ms var(--ease) both; }
.ss-hit .ss-heat i:nth-child(2) { animation-delay: 90ms; }
.ss-hit .ss-heat i:nth-child(3) { animation-delay: 180ms; }
@keyframes ss-rise {
  0%   { opacity: 0; transform: translateY(6px) scale(.6); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px) scale(1.1); }
}

/* LABELS: 4 equal rows, so each one lines up with its dot */
.ss-stops { flex: 1; min-width: 0; display: flex; flex-direction: column-reverse; }   /* column-reverse puts Mild at the bottom */
.ss-stop { position: relative; flex: 1 1 0; display: flex; align-items: center; cursor: pointer; }
.ss-stop input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; border: 0; cursor: pointer; }  /* invisible radio covers the label */
.ss-card { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 12px; border: 1px solid transparent; transition: border-color var(--t-fast), background var(--t-fast); }
.ss-card b { font-size: 15px; font-weight: 600; color: var(--muted); transition: color var(--t-fast); }
.ss-card small { font-size: 11.5px; line-height: 1.35; color: var(--muted); opacity: .8; }
.ss-stop:hover .ss-card { border-color: rgba(205, 168, 106, .45); }
.ss-stop input:checked + .ss-card { border-color: var(--gold); background: rgba(205, 168, 106, .12); }   /* + means "the next sibling" */
.ss-stop input:checked + .ss-card b { color: var(--gold); }
.ss-stop input:focus-visible + .ss-card { outline: 2px solid var(--gold); outline-offset: 3px; }

/* hidden-but-announced text for screen readers */
.ss-read { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* narrow screens: scale drops under the plate */
@media (max-width: 1100px) {
  .builder .stage { grid-template-columns: minmax(0, 1fr); }
  .builder .stage #vessel { grid-column: 1; }
  .builder .stage .spice-scale { grid-column: 1; grid-row: auto; justify-self: center; max-width: 280px; padding-left: 0; margin-bottom: 8px; }
  .spice-scale legend { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ss-mirchi, .ss-pic, .ss-fill { transition: none !important; }
  .ss-heat i { display: none !important; }
}

/* gallery: narrow tile for portrait phone videos */
/* Gallery: one swipeable row, normal-size tiles */
.video-grid {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.video-tile, .video-tile.large, .video-tile.portrait {
  height: 480px; flex: 0 0 300px; scroll-snap-align: start;
}
.video-tile.large { flex-basis: 420px; }
.video-tile.portrait { flex-basis: 270px; }
.video-caption b { font-size: 22px; line-height: 1.1; }
@media (max-width: 560px) {
  .video-tile, .video-tile.large, .video-tile.portrait { flex-basis: 78%; height: 440px; }
}

/* plate stage becomes: [small gap] [plate] [thermometer] */
.builder .stage { display: grid; grid-template-columns: minmax(0, .5fr) min(92vw, 560px) minmax(220px, 1fr); align-items: start; }
.builder .stage .tabs { grid-column: 1 / -1; }
.builder .stage #vessel { grid-column: 2; }
.builder .stage .spice-scale { grid-column: 3; grid-row: 2; align-self: center; width: 100%; max-width: 250px; padding-left: 6px; }
.spice-scale legend { margin-bottom: 12px; font-size: 11px; letter-spacing: .19em; text-transform: uppercase; font-weight: 700; color: var(--gold); }

.ss-body { display: flex; gap: 8px; align-items: flex-start; }

/* colour of the chosen band: used for the knob's ring and glow */
.spice-scale { --hc: var(--heat-1); }
.spice-scale[data-level="1"] { --hc: var(--heat-2); }
.spice-scale[data-level="2"] { --hc: var(--heat-3); }
.spice-scale[data-level="3"] { --hc: var(--heat-ember); }

/* THE THERMOMETER (100 x 380, drawn 1:1 so the knob lines up with the bands) */
.ss-thermo { position: relative; flex: none; width: 100px; height: 380px; cursor: grab; touch-action: none; user-select: none; }
.ss-thermo.drag { cursor: grabbing; }
.ss-svg { display: block; overflow: visible; }
.ss-outline { fill: var(--ink); opacity: .92; }
.ss-glass { fill: var(--glass); }
.ss-b0 { fill: var(--heat-0); } .ss-b1 { fill: var(--heat-1); } .ss-b2 { fill: var(--heat-2); }
.ss-b3 { fill: var(--heat-3); } .ss-b4 { fill: var(--heat-4); }
/* the dim layer hides the bands above the chosen level; it shrinks upward as the level rises */
.ss-cover {
  fill: var(--glass); opacity: .72;
  transform-box: fill-box; transform-origin: 50% 0;
  transform: scaleY(calc((3 - var(--lvl, 1)) / 4));
  transition: transform 560ms var(--ease);
}
.ss-shine { fill: #fff; opacity: .16; }
.ss-shine-arc { fill: none; stroke: #fff; stroke-opacity: .22; stroke-width: 2.4; stroke-linecap: round; }
.ss-skull { fill: var(--ink); }
.ss-skull .ss-eye { fill: var(--heat-4); }
.ss-bones { stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; fill: none; }
.ss-ticks rect { fill: var(--ink); opacity: .9; }

/* THE MIRCHI KNOB: rides up the tube to the chosen band, grows and glows with the heat */
.ss-mirchi {
  position: absolute; left: 50px; top: calc(237.5px - var(--lvl, 1) * 65px); width: 0; height: 0;
  transition: top 560ms var(--spring);                    /* sliding = a transition on "top" */
}
.ss-thermo.drag .ss-mirchi { transition-duration: 160ms; }
.ss-knob {
  position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--glass); border: 2px solid var(--hc);
  box-shadow: 0 0 calc(6px + var(--lvl, 1) * 5px) var(--hc), 0 3px 10px rgba(0, 0, 0, .45);
  scale: calc(.92 + var(--lvl, 1) * .09);                 /* hotter = a little bigger */
  transition: scale 560ms var(--spring), border-color var(--t-med), box-shadow var(--t-med);
}
.ss-knob svg { display: block; transform-origin: 70% 30%; }
.ss-hit .ss-knob svg { animation: ss-shake 620ms var(--ease); }
@keyframes ss-shake {                                     /* bigger wiggle at higher levels */
  0%   { rotate: 0deg; }
  18%  { rotate: calc(var(--lvl, 1) * -6deg - 6deg); }
  38%  { rotate: calc(var(--lvl, 1) * 6deg + 6deg); }
  58%  { rotate: calc(var(--lvl, 1) * -4deg - 3deg); }
  78%  { rotate: calc(var(--lvl, 1) * 2deg + 2deg); }
  100% { rotate: 0deg; }
}

/* flame wisps above the knob: rise once per choice (not a loop) */
.ss-heat { position: absolute; left: 0; top: -26px; width: 0; height: 0; pointer-events: none; }
.ss-heat i {
  position: absolute; bottom: 0; width: 7px; height: 12px; margin-left: -3px; opacity: 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: linear-gradient(to top, var(--fuse), var(--fuse-glow));
}
.ss-heat i:nth-child(1) { left: -11px; }
.ss-heat i:nth-child(2) { left: 1px; }
.ss-heat i:nth-child(3) { left: 13px; }
.spice-scale[data-level="0"] .ss-heat i { display: none; }                       /* Mild: no flames */
.spice-scale[data-level="1"] .ss-heat i:nth-child(n+2) { display: none; }        /* Medium: 1 */
.spice-scale[data-level="2"] .ss-heat i:nth-child(n+3) { display: none; }        /* Hot: 2, Extra hot: 3 */
.ss-hit .ss-heat i { animation: ss-rise 900ms var(--ease) both; }
.ss-hit .ss-heat i:nth-child(2) { animation-delay: 90ms; }
.ss-hit .ss-heat i:nth-child(3) { animation-delay: 180ms; }
@keyframes ss-rise {
  0%   { opacity: 0; transform: translateY(6px) scale(.6); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px) scale(1.1); }
}

/* LABELS: four equal rows (65px each), so each one sits beside its colour band */
.ss-stops { flex: 1; min-width: 0; margin-top: 10px; height: 260px; display: flex; flex-direction: column-reverse; }
.ss-stop { position: relative; flex: 1 1 0; display: flex; align-items: center; cursor: pointer; }
.ss-stop input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; border: 0; cursor: pointer; }
.ss-card { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 12px; border: 1px solid transparent; transition: border-color var(--t-fast), background var(--t-fast); }
.ss-card b { font-size: 16px; font-weight: 700; color: var(--muted); transition: color var(--t-fast); }
.ss-card small { font-size: 11.5px; line-height: 1.35; color: var(--muted); opacity: .8; }
.ss-stop:hover .ss-card { border-color: rgba(205, 168, 106, .45); }
.ss-stop input:checked + .ss-card { border-color: var(--gold); background: rgba(205, 168, 106, .12); }   /* + means "the next sibling" */
.ss-stop input:checked + .ss-card b { color: var(--gold); }
.ss-stop input:focus-visible + .ss-card { outline: 2px solid var(--gold); outline-offset: 3px; }

/* hidden-but-announced text for screen readers */
.ss-read { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* not enough room beside the plate (needs about 1280px): thermometer goes under it */
@media (max-width: 1279px) {
  .builder .stage { grid-template-columns: minmax(0, 1fr); }
  .builder .stage #vessel { grid-column: 1; }
  .builder .stage .spice-scale { grid-column: 1; grid-row: auto; justify-self: center; max-width: 250px; padding-left: 0; margin-bottom: 8px; }
  .spice-scale legend { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ss-mirchi, .ss-knob, .ss-cover { transition: none !important; }
  .ss-heat i { display: none !important; }
}

/* =========================================================
   GALLERY: portrait phone videos
   Small screens: swipe row, narrow tall tiles for the phone clips.
   Wide screens (1100px+): all five tiles sit in one row, no swiping needed.
========================================================= */
.video-tile.portrait { flex: 0 0 min(70%, 250px); }
@media (min-width: 1100px) {
  .video-grid { overflow: visible; scroll-snap-type: none; }
  .video-tile, .video-tile.large, .video-tile.portrait { flex: 1 1 0; min-width: 0; height: auto; aspect-ratio: 9 / 16; }
  .video-tile video { position: absolute; inset: 0; width: 100%; height: 100%; }
  .video-caption { left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; }
  .video-caption b { font-size: 20px; line-height: 1.1; }
  .video-caption span { font-size: 10.5px; }
}

/* Gallery: same size tiles, swipe sideways */
.video-grid {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.video-tile, .video-tile.large, .video-tile.portrait {
  flex: 0 0 min(82%, 520px);
  height: 440px;
  aspect-ratio: auto;
  scroll-snap-align: start;
}
.video-tile video { width: 100%; height: 100%; object-fit: cover; }

/* Gallery: drag cursor + arrow buttons */
.video-grid { cursor: grab; }
.video-grid.dragging { cursor: grabbing; scroll-snap-type: none; }
.video-grid.dragging video { pointer-events: none; }
.gal-arrows { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.gal-arrows button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); font-size: 20px; cursor: pointer; transition: .2s;
}
.gal-arrows button:hover { background: var(--cream); color: #13221c; }

/* ===== Spice meter: below the plate, centred, all screen sizes ===== */
.builder .stage { display: block; }              /* plate is centred again */

.spice-meter {
  max-width: 640px; min-width: 0; margin: 8px auto 0; padding: 14px 18px 18px;
  border: 1px solid var(--line); border-radius: 20px;
  background: rgba(255, 255, 255, .03); text-align: center;
}
.spice-meter legend {
  padding: 0 10px; font-size: 11px; letter-spacing: .19em;
  text-transform: uppercase; font-weight: 700; color: var(--gold);
}
.sp-hint { margin: 2px 0 14px; font-size: 12.5px; color: var(--muted); }
.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sp-opt { position: relative; display: block; cursor: pointer; }
.sp-opt input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.sp-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%;
  padding: 12px 8px; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, background .2s, transform .2s;
}
.sp-card b { font-size: 15px; font-weight: 700; color: var(--ink); }
.sp-card small { font-size: 11.5px; line-height: 1.35; color: var(--muted); }

/* four mirchis: the first 1, 2, 3 or 4 light up */
.sp-chilies { display: flex; gap: 2px; margin-bottom: 2px; }
.sp-c { width: 18px; height: 18px; opacity: .18; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.sp-opt.l1 .sp-c:nth-child(-n+1),
.sp-opt.l2 .sp-c:nth-child(-n+2),
.sp-opt.l3 .sp-c:nth-child(-n+3),
.sp-opt.l4 .sp-c:nth-child(-n+4) { opacity: 1; filter: none; }

.sp-opt:hover .sp-card { border-color: rgba(205, 168, 106, .5); transform: translateY(-2px); }
.sp-opt input:checked + .sp-card {
  border-color: var(--gold); background: rgba(205, 168, 106, .14);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}
.sp-opt input:checked + .sp-card b { color: var(--gold); }
.sp-opt input:focus-visible + .sp-card { outline: 2px solid var(--gold); outline-offset: 3px; }
.sp-read { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* phones: 2 x 2 cards */
@media (max-width: 560px) {
  .spice-meter { margin: 8px 12px 0; padding: 14px 12px; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .sp-card, .sp-c { transition: none; }
  .sp-opt:hover .sp-card { transform: none; }
}

/* gallery: touch screens swipe, so the arrow buttons are only for mouse users */
@media (hover: none) { .gal-arrows { display: none; } }

/* ===== touch screens (phones, tablets, foldables): every tap target is at least 44px ===== */
@media (pointer: coarse) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .cin-skip { min-height: 44px; padding-inline: 20px; }
  .mn-chip { min-height: 44px; }
  .tab { min-height: 44px; }
  .back { padding: 12px 10px; margin-left: -10px; }
   .nav nav a, .footer-links a, a[href^="tel:"], a[href^="mailto:"] { display: inline-block; padding-block: 15px; }
  .nav .brand { display: flex; align-items: center; padding-block: 0; }
}

/* ===== Default items outside the plate (plates, glasses, tissues, spoons, mineral water) ===== */
.plate-extras { width: min(92vw, 560px); box-sizing: border-box; margin: 0 auto 24px; padding: 14px 16px 16px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }
.plate-extras[hidden] { display: none; }
.pe-title { margin: 0 0 12px; font-size: 11px; letter-spacing: .19em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.pe-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; }
.pe-item { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; font-size: 12px; line-height: 1.25; color: var(--ink); }
.pe-item svg { width: 48px; height: 48px; overflow: visible; }
.pe-item.new { animation: pe-pop .5s cubic-bezier(.34, 1.45, .5, 1) both; }
@keyframes pe-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- ticket photos ---------- */
.tk-img {
  flex: 1 1 0; min-height: 84px; width: 100%; margin: 10px 0 10px;
  object-fit: cover; border-radius: 3px; display: block;
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.tk.has-img .tk-te {                       /* two lines of dish names when there is a photo, so the photo gets room */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tk-wrap { --tk-h: 340px; }
@media (min-width: 768px) { .tk-wrap { --tk-h: 372px; } }

/* ---------- our story ---------- */
.story-section {
  background: none;
}

.story-head { text-align: center; }
.story-pill { display: inline-block; padding: 9px 18px; border: 1px solid rgba(205, 168, 106, .5);
  border-radius: var(--r-pill); }
.story-head h2 { margin: 22px 0 18px; }
.story-orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.story-orn i { display: block; width: clamp(50px, 9vw, 110px); height: 1px; background: rgba(205, 168, 106, .5); }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; margin-top: 56px; align-items: stretch; }
.story-photo { margin: 0; position: relative; display: flex; }
.story-photo img { flex: 1; width: 100%; min-height: clamp(460px, 42vw, 620px); object-fit: cover; object-position: center top;
  border-radius: 999px 999px var(--r-card) var(--r-card);
  border: 4px solid var(--gold); outline: 1px solid rgba(205, 168, 106, .45); outline-offset: 10px;
  filter: saturate(1.28) contrast(1.06) brightness(1.04);
  box-shadow: var(--shadow); }
.story-badge { position: absolute; right: -10px; bottom: 18px; width: 108px; height: 108px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--gold); box-shadow: var(--shadow); }
.story-badge small { font-size: 10px; letter-spacing: .22em; color: var(--gold); font-weight: 700; }
.story-badge b { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 600; line-height: 1; color: var(--ink); }

.story-copy { display: flex; flex-direction: column; justify-content: center; }
.story-copy .lead { margin: 0 0 20px; max-width: 30ch; color: var(--ink); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; }
.story-copy .story-text { margin: 0; max-width: 46ch; color: var(--muted); font-size: 17px; line-height: 1.8; }
.story-quote { margin: 36px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--gold); max-width: 46ch; }
.story-quote p { margin: 0 0 10px; color: var(--ink); font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; }
.story-quote cite { font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.story-facts { list-style: none; margin: 80px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-facts li { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.story-facts li:last-child { border-right: 0; }
.story-facts b { display: block; font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 5vw, 64px);
  font-weight: 600; line-height: 1; color: var(--ink); }
.story-facts span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .story-photo { max-width: 400px; margin: 0 auto; }
  .story-photo img { min-height: 0; aspect-ratio: 4 / 5; }
  .story-copy { text-align: center; align-items: center; }
  .story-quote { text-align: left; }
}
@media (max-width: 560px) {
  .story-facts { grid-template-columns: 1fr; }
  .story-facts li { border-right: 0; border-bottom: 1px solid var(--line); }
  .story-facts li:last-child { border-bottom: 0; }
}

/* ---------- matching centred headers, sections 01 to 04 ---------- */
.split-section > .section-label,
.gallery-section > .section-label,
.sig-block > .section-label,
.menu-block > .section-label {
  display: table; margin: 0 auto; padding: 9px 18px;
  border: 1px solid rgba(205, 168, 106, .5); border-radius: var(--r-pill);
}

.section-head { flex-direction: column; align-items: center; text-align: center; gap: 0; margin: 22px 0 40px; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 52ch; margin: 18px 0 0; }

/* the same leaf ornament under every heading */
.section-head h2::after,
.split-section .split-content h2::after {
  content: ""; display: block; width: 260px; height: 22px; margin: 24px auto 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20'%3E%3Cpath d='M16 1c2 4 2 8 0 12-2-4-2-8 0-12zM6 6c3 1 6 4 7 8-4-1-7-4-7-8zM26 6c-3 1-6 4-7 8 4-1 7-4 7-8zM3 17h26' fill='none' stroke='%23cda86a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 34px 22px no-repeat,
    linear-gradient(rgba(205, 168, 106, .5), rgba(205, 168, 106, .5)) left center / 90px 1px no-repeat,
    linear-gradient(rgba(205, 168, 106, .5), rgba(205, 168, 106, .5)) right center / 90px 1px no-repeat;
}

/* 01: heading on top, text centred under it */
.split-section .split-content { grid-template-columns: 1fr; gap: 0; margin-top: 22px; text-align: center; }
.split-section .split-content > div:last-child { margin: 24px auto 0; max-width: 62ch; }

/* 03: the two menu buttons sit in the middle too */
.tk-modes { justify-content: center; margin: 0 0 30px; }

/* story photo: show the full portrait */
.story-grid { grid-template-columns: .9fr 1.1fr; align-items: center; }
.story-photo { display: block; width: 100%; max-width: 520px; justify-self: center; }
.story-photo img { height: auto; min-height: 0; aspect-ratio: 4 / 5; object-position: center 20%; }

/* founder label + name */
.story-role { font-size: 12px; letter-spacing: .19em; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.story-name { margin: 10px 0 18px; font-family: 'Cormorant Garamond', serif; font-size: clamp(34px, 4vw, 54px);
  line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.story-copy .story-text { max-width: 52ch; margin: 0 0 16px; }

/* Our Story on phones and tablets: photo on top, story below */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 36px; }
  .story-photo { max-width: 340px; margin: 0 auto; }
  .story-photo img { aspect-ratio: 4 / 5; outline-offset: 8px; }
  .story-badge { width: 92px; height: 92px; right: -4px; bottom: 14px; }
  .story-badge b { font-size: 28px; }

  .story-copy { align-items: stretch; text-align: left; }
  .story-role, .story-name { text-align: center; }
  .story-name { margin-bottom: 20px; }
  .story-copy .story-text { max-width: none; font-size: 16px; line-height: 1.75; }
  .story-quote { max-width: none; margin-top: 28px; }
  .story-quote p { font-size: 24px; }
}

/* page flow: Taste, Menus, Moments, Foundation, Contact */
#home { display: flex; flex-direction: column; }
#home > * { min-width: 0; }
#home > .marquee { order: 1; }
#signature { order: 2; }
#menu { order: 3; }
#gallery { order: 4; }
#story { order: 5; }
#contact { order: 6; }
#about { display: none; }
.contact-section .story-head { margin-bottom: 44px; }
.contact-card > .ct-side { align-self: center; }

/* contact details */
.ct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; align-content: center; }
.ct-item { display: flex; gap: 16px; align-items: flex-start; }
.ct-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  border: 1px solid rgba(205, 168, 106, .45); background: rgba(205, 168, 106, .08); color: var(--gold); }
.ct-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.ct-item small { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .16em; font-weight: 700; color: var(--gold); }
.ct-item strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.6; }
.ct-item a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 16px;
  line-height: 1.5; text-decoration: none; transition: color var(--t-fast); }
.ct-item a:hover { color: var(--gold); }
/* follow us */
.ct-follow { border-top: 1px solid var(--line); padding-top: 22px; }
.ct-follow h3 { margin: 0 0 6px; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; }
.ct-follow p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.ct-social { display: flex; gap: 12px; }
.ct-social a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(205, 168, 106, .45); color: var(--gold);
  transition: background var(--t-fast), color var(--t-fast); }
.ct-social a:hover { background: var(--gold); color: var(--bg); }
.ct-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }

.ct-map {
  position: relative;
  height: clamp(260px, 30vw, 340px);
  margin: 0 0 28px;
  padding: 10px;                                   /* the frame thickness */
  border: 1px solid rgba(205, 168, 106, .45);      /* gold border, same as the icons */
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 0 0 6px rgba(205, 168, 106, .06), var(--shadow);  /* soft outer ring + depth */
}
.ct-map iframe {
  display: block; width: 100%; height: 100%; border: 0;
  border-radius: calc(var(--r-card) - 10px);       /* rounded inside the frame */
  filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95) contrast(.9);
}

/* ---------- footer (4 columns; tokens only) ---------- */
.site-footer { display: block; border-top: 1px solid var(--line); background: var(--bg2); padding: var(--sec-open) var(--edge) 0; }
.ft-grid { display: grid; grid-template-columns: 1.35fr .8fr .9fr 1.2fr; gap: clamp(28px, 4vw, 64px); max-width: 1240px; margin: 0 auto; }
.ft-col h3 { margin: 0 0 22px; padding-bottom: 12px; position: relative; font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.ft-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--gold); }
.ft-logo { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.ft-logo img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(205, 168, 106, .45); }
.ft-logo b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.ft-logo em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.ft-brand > p { margin: 18px 0 22px; max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.7; }
.ft-social { display: flex; gap: 12px; }
.ft-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--gold);
  border: 1px solid rgba(205, 168, 106, .45); transition: background var(--t-fast), color var(--t-fast); }
.ft-social a:hover { background: var(--gold); color: var(--bg); }
.ft-social svg, .ft-ticks svg, .ft-reach svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ft-social svg { width: 20px; height: 20px; }
.ft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ft-list a { color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.6; transition: color var(--t-fast); }
.ft-list a:hover { color: var(--gold); }
.ft-list > li > a { display: inline-flex; align-items: center; min-height: 44px; }
.ft-ticks li { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--muted); font-size: 15px; }
.ft-ticks svg { flex: none; width: 18px; height: 18px; color: var(--gold); }
.ft-reach { gap: 10px; }
.ft-reach li { display: flex; align-items: flex-start; gap: 14px; }
.ft-reach svg { flex: none; width: 20px; height: 20px; margin-top: 12px; color: var(--gold); }
.ft-reach li > span { display: grid; }
.ft-reach li > span a { display: inline-flex; align-items: center; min-height: 44px; }
.ft-reach a[href^="mailto:"] { overflow-wrap: anywhere; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  max-width: 1240px; margin: clamp(32px, 5vw, 56px) auto 0; padding: 22px 0; border-top: 1px solid var(--line); }
.ft-bottom p { margin: 0; color: var(--muted); font-size: 13px; }
.ft-bottom .ft-tag { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; color: var(--gold); }
@media (max-width: 980px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .ft-grid { grid-template-columns: 1fr; gap: 36px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
}

.ct-map::after {
  content: "SAHEB NAGAR . VANASTHALIPURAM . HYDERABAD";
  position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%);
  padding: 6px 14px; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  color: var(--gold); background: var(--bg);
  border: 1px solid rgba(205, 168, 106, .45); border-radius: var(--r-pill);
}

/* =========================================================
   TOP INFO STRIP + PAGE BACKGROUND
========================================================= */
:root {
  --top-h: 40px;
  --topbar-bg: #050f0c;   /* header strip + footer base: one calm, deep green */
  --bar-bg: linear-gradient(180deg, #0a1c17 0%, var(--topbar-bg) 100%);
  --foot-bg: radial-gradient(70% 90% at 50% 0%, rgba(205, 168, 106, .09), transparent 70%), linear-gradient(180deg, var(--bg2) 0%, var(--topbar-bg) 100%);
  --foot-rule: linear-gradient(90deg, transparent, rgba(205, 168, 106, .6) 50%, transparent);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23cda86a' stroke-opacity='.13'%3E%3Cg transform='translate(70 70)'%3E%3Cpath d='M0-34C9-18 9-8 0 0C-9-8-9-18 0-34Z' transform='rotate(0)'/%3E%3Cpath d='M0-34C9-18 9-8 0 0C-9-8-9-18 0-34Z' transform='rotate(90)'/%3E%3Cpath d='M0-34C9-18 9-8 0 0C-9-8-9-18 0-34Z' transform='rotate(180)'/%3E%3Cpath d='M0-34C9-18 9-8 0 0C-9-8-9-18 0-34Z' transform='rotate(270)'/%3E%3Cpath d='M0-34C9-18 9-8 0 0C-9-8-9-18 0-34Z' transform='rotate(45) scale(.55)'/%3E%3Cpath d='M0-34C9-18 9-8 0 0C-9-8-9-18 0-34Z' transform='rotate(135) scale(.55)'/%3E%3Cpath d='M0-34C9-18 9-8 0 0C-9-8-9-18 0-34Z' transform='rotate(225) scale(.55)'/%3E%3Cpath d='M0-34C9-18 9-8 0 0C-9-8-9-18 0-34Z' transform='rotate(315) scale(.55)'/%3E%3Ccircle r='3'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23cda86a' fill-opacity='.18'%3E%3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='140' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='140' r='1.6'/%3E%3Ccircle cx='140' cy='140' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='40' viewBox='0 0 48 40'%3E%3Cpath d='M24 8l8 12-8 12-8-12z' fill='none' stroke='%23cda86a' stroke-opacity='.28'/%3E%3Ccircle cx='0' cy='20' r='1.5' fill='%23cda86a' fill-opacity='.25'/%3E%3Ccircle cx='48' cy='20' r='1.5' fill='%23cda86a' fill-opacity='.25'/%3E%3C/svg%3E");
}
@media (max-width: 560px) { :root { --top-h: 44px; } }

/* ---------- top strip ---------- */
.topbar {
  position: relative; z-index: 41; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--edge);
   background-color: var(--topbar-bg);
   background-image: none; background-image: var(--pattern), var(--pattern), var(--bar-bg);   /* same gold lotus on green as the footer */
  background-size: 90px 90px, 90px 90px, auto;
  background-position: center, center, 0 0;
  border-bottom: 1px solid rgba(205, 168, 106, .35);
  color: var(--ink); font-size: 13px; letter-spacing: .02em;
  transition: opacity .9s ease;
}
html.cin-js:not(.cin-navin):not(.cin-done) .topbar { opacity: 0; pointer-events: none; }  /* hidden during the intro, like the nav */
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.tb-right { display: flex; align-items: center; gap: 28px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--top-h);
  padding-block: 0 !important; color: var(--ink); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--gold);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* the hero slides up under BOTH the strip and the nav, so it stays full-screen */
.hero-cinema { margin-top: calc((var(--nav-h) + var(--top-h)) * -1); }

/* tablet: everything in one smaller row. phone: only the phone number. */
@media (max-width: 900px) { .topbar { font-size: 12px; gap: 10px; } .tb-right { gap: 16px; } }
@media (max-width: 700px) {
  .topbar .tb-left, .topbar .tb-mail { display: none; }
  .topbar { justify-content: center; font-size: 13px; }
}

.nav {
  background-color: rgba(7, 20, 17, .96);
  background-image: none;
}
/* ---------- page background: gold lotus pattern on the green ---------- */
body { background-color: var(--bg); background-image: none; }

/* sections that had a flat colour now let the pattern show through */
.sig-block, .gallery-section, .contact-section, .split-section { background: none; }
.menu-block { background: none; }
.contact-card { background: rgba(16, 37, 30, .45); }
.mn-drop-card { background: rgba(16, 37, 30, .6); }

/* ---------- footer bottom strip ---------- */
.site-footer .ft-bottom {
  max-width: none;
  margin: clamp(32px, 5vw, 56px) calc(var(--edge) * -1) 0;   /* stretch edge to edge */
  padding: 14px var(--edge);
  min-height: 56px;
  border-top: 1px solid rgba(205, 168, 106, .35);
   background: rgba(5, 15, 12, .6);
}

/* ---------- whole footer: calm solid green, soft gold glow, no pattern behind text ---------- */
.site-footer {
  position: relative;
  border-top: 0;
    background-color: var(--topbar-bg);
    background-image: var(--foot-bg);
}
.site-footer::before {            /* gold hairline that fades out at both ends, with a small diamond in the middle */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--foot-rule);
}
.site-footer::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

/* =========================================================
   SERVICES STRIP (marquee): gold, so it reads as a highlight
========================================================= */
.marquee {
  padding: 20px 0;
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .2em;
  border-block: 1px solid rgba(205, 168, 106, .4);
  background: linear-gradient(180deg, rgba(205, 168, 106, .1), rgba(205, 168, 106, .03));
  box-shadow: inset 0 0 40px rgba(205, 168, 106, .06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee div span i { font-style: normal; margin: 0 .35em; color: var(--cream); text-shadow: 0 0 12px rgba(205, 168, 106, .8); }
@media (max-width: 560px) { .marquee { font-size: 12px; padding: 16px 0; } }

/* =========================================================
   [CHANGE 1] CONTACT DETAILS: nothing runs off the card on phones
========================================================= */
.contact-section { overflow-x: clip; }
.contact-card > * { min-width: 0; }
.ct-item > div { min-width: 0; flex: 1 1 auto; }
.ct-item a, .ct-item strong { overflow-wrap: anywhere; }
.ct-item a + a { border-top: 1px dashed var(--line); }

@media (max-width: 900px) {
  .contact-card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ct-list { gap: 12px; }
  .ct-item { align-items: center; gap: 14px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: var(--r-card); background: rgba(7, 20, 17, .35); }
  .ct-follow { border-top: 0; padding-top: 10px; }
}
@media (max-width: 560px) {
  .contact-card { padding: 20px 14px; border-radius: 22px; }
  .ct-item { gap: 12px; padding: 12px; }
  .ct-ico { width: 44px; height: 44px; border-radius: 12px; }
  .ct-item small { font-size: 10px; }
  .ct-item a, .ct-item strong { font-size: 15px; }
  .ct-item a[href*="@"] { font-size: 14px; }
  .ct-follow h3 { font-size: 26px; }
  .ct-map::after { width: max-content; max-width: calc(100% - 16px); white-space: normal; text-align: center;
    font-size: 9px; letter-spacing: .08em; line-height: 1.4; }
}

/* =========================================================
   [CHANGE 2] SOCIAL BUTTONS (footer + "Follow Us"): icon + name, gold pill
========================================================= */
.ft-social, .ct-social { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-social a, .ct-social a {
  width: auto; height: 48px; display: inline-flex; align-items: center; gap: 10px;
  padding: 0 18px 0 8px; border-radius: var(--r-pill);
  border: 1px solid rgba(205, 168, 106, .45);
  background: linear-gradient(180deg, rgba(205, 168, 106, .14), rgba(205, 168, 106, .04));
  color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.ft-social a svg, .ct-social a svg {
  flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
}
.ft-social a:hover, .ct-social a:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); transform: translateY(-2px); }
.ft-social a:hover svg, .ct-social a:hover svg { background: var(--bg); color: var(--gold); }
.ft-social a:focus-visible, .ct-social a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 560px) {
  .ft-social, .ct-social { display: grid; grid-template-columns: 1fr 1fr; }
  .ft-social a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ft-social a, .ct-social a { justify-content: center; padding: 0 14px 0 8px; }
}

/* PLANNER: event type tiles (same look as the meal tiles) */
.ep-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ep-type {
  display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  min-height: 62px; padding: 12px 14px; background: #0a1b16; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.ep-type b { font-size: 15px; font-weight: 600; }
.ep-ico { flex: none; display: grid; place-items: center; color: var(--muted); transition: color var(--t-fast); }
.ep-type:hover { border-color: rgba(205, 168, 106, .6); }
.ep-type[aria-checked="true"] {
  border-color: var(--gold); background: linear-gradient(135deg, rgba(205, 168, 106, .18), rgba(16, 37, 30, .8));
}
.ep-type[aria-checked="true"] b, .ep-type[aria-checked="true"] .ep-ico { color: var(--gold); }
.ep-type.pop { animation: ep-pop 450ms var(--ease); }
@keyframes ep-pop { 40% { transform: scale(.97); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ep-type.pop { animation: none; } }

/* [FOOTER ON PHONES] shorter, tidier, two columns for the link lists */
@media (max-width: 560px) {
  .site-footer { padding-top: clamp(3rem, 9svh, 4.5rem); }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .ft-grid > .ft-brand, .ft-grid > .ft-col:last-child { grid-column: 1 / -1; }
  .ft-col h3 { font-size: 24px; margin-bottom: 12px; }
  .ft-list { gap: 0; }
  .ft-ticks li { gap: 10px; font-size: 14px; }
  .ft-list a { font-size: 14px; }
  .ft-brand > p { max-width: none; }
  .ft-reach { gap: 2px; }
  .site-footer .ft-bottom {
    flex-direction: column; align-items: center; text-align: center; gap: 6px;
    padding: 18px var(--edge) calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- no sideways wobble on phones ---------- */
html, body { max-width: 100%; overflow-x: clip; }

.qr-pdf-note { margin: 14px 0 10px; color: var(--muted); font-size: 14px; }

/* ---------- meal first, then Standard / All Events menu ---------- */
.mf { margin-bottom: 20px; }
.mf .mf-grid { margin-top: 6px; }
.mf-price { color: var(--gold) !important; font-weight: 700; font-size: 13px !important; }
.mf-need { margin: 10px 0 0; color: var(--gold); font-size: 14px; }
.mf-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.mf-counts-l { font-size: 13px; font-weight: 600; color: var(--gold); margin-right: 4px; }
.mf-chip { padding: 4px 11px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 12px; color: var(--muted); transition: color var(--t-fast), border-color var(--t-fast); }
.mf-chip.done { border-color: var(--gold); color: var(--gold); }
.mf-std { max-width: 1280px; margin: 18px auto 0; padding: 16px 20px; border: 1px solid var(--gold); border-radius: var(--r-card); background: rgba(16, 37, 30, .7); text-align: left; }
.mf-std p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.mf-std .mf-std-h { font: 600 26px 'Cormorant Garamond', Georgia, serif; color: var(--gold); }
.mf-toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; width: min(440px, calc(100vw - 2 * var(--edge, 20px))); transform: translateX(-50%);
  padding: 14px 18px; border: 1px solid var(--gold); border-radius: var(--r-card); background: var(--card); box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  color: var(--ink); font-size: 14px; line-height: 1.5; text-align: center; }
.mf-toast.show { animation: mf-pop .45s var(--ease) both; }
@keyframes mf-pop { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .mf-toast.show { animation: none; } }
.mf-link { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 14px; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.mf-toast .mf-link { display: block; width: 100%; min-height: 0; margin-top: 6px; padding: 8px 0; text-align: center; }
.mf .qf-help { margin-bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .mf-chip { transition: none; } }

/* CHANGE 1: before a meal is chosen, show only Back + title + the meal card */
#planner.await-meal > :not(.back):not(h2):not(.sub):not(#mf):not(.mf-wait) { display: none !important; }
/* when the steps open, they drop in */
#planner.mf-opening > :not([data-reveal]):not(.back):not(h2):not(.sub):not(#mf):not(.mf-wait) { animation: rise .7s var(--ease) both; }
#mf { scroll-margin-top: 110px; }   /* the sticky nav must not cover the meal card */
@media (prefers-reduced-motion: reduce) { #planner.mf-opening > * { animation: none !important; } }

/* CHANGE 2: the line under Standard Menu / All Events Menu */
.mf-line { margin: 14px 0 0; padding: 12px 16px; border-left: 2px solid var(--gold); border-radius: 0 var(--r-control) var(--r-control) 0;
  background: rgba(16, 37, 30, .7); font-size: 14.5px; line-height: 1.6; color: var(--ink); text-align: left; }


/* CHANGE 5: planner background = gold light from the top + lotus pattern + soft green fade */
.planner {
  background-color: var(--bg);
  background-image:
    radial-gradient(70% 38% at 50% 0%, rgba(205, 168, 106, .13), transparent 72%),
    var(--pattern),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-position: center top, center top, center;
}

/* the medallion + hint under the meal card */
.mf-wait { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto; color: var(--gold); }
.mf-wait::before { content: ""; width: 1px; height: clamp(28px, 6vh, 56px); background: linear-gradient(transparent, var(--gold)); opacity: .5; }
.mf-wait svg { box-sizing: content-box; padding: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.mf-wait p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---- Device polish: comfortable tap targets on touch, clearer hit areas on desktop/iPad ---- */
.nav nav a { padding: 14px 4px; }
.cin-skip { min-height: 44px; }
@media (pointer: coarse) {
  .mn-chip { min-height: 44px; }
  .nav nav a, .footer-links a, .ft-grid a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (pointer: coarse) { .footer-links a, .ft-grid a { min-width: 44px; } }

/* founder: lotus background only behind the photo, plain area for the text */
.story-photo { isolation: isolate; }
.story-photo::before {
  content: ""; position: absolute; inset: -28px; z-index: -1;
  border-radius: 36px;
  background-color: var(--topbar-bg);
  background-image: var(--pattern), var(--pattern), var(--foot-bg);
  border: 1px solid rgba(205, 168, 106, .3);
}
@media (max-width: 900px) { .story-photo::before { inset: -16px; border-radius: 28px; } }
.story-copy .story-text { color: #e0dacb; }

/* page order: Taste, Menus, Events, Foundation, Contact */
#home { display: flex; flex-direction: column; }
#home > .hero-cinema { order: 0 !important; }
#home > .marquee { order: 1 !important; }
#home > #signature { order: 2 !important; }
#home > #menu { order: 3 !important; }
#home > #gallery { order: 4 !important; }
#home > #story { order: 5 !important; }
#home > #contact { order: 6 !important; }

/* ---------- several meals: one tab per ticked meal (in "Pick your dishes") ---------- */
.meal-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1280px; margin: 0 auto 18px; }
.mt-tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px 8px 18px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: #0a1b16;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.mt-tab:hover { border-color: rgba(205, 168, 106, .6); }
.mt-tab .mt-n {
  min-width: 26px; height: 26px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #0c1d18; background: var(--gold);
}
.mt-tab.empty .mt-n { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.mt-tab.active { border-color: var(--gold); background: linear-gradient(135deg, rgba(205, 168, 106, .22), rgba(16, 37, 30, .85)); }
.mt-tab.active .mt-name { color: var(--gold); }
.mt-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 560px) { .meal-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; } .mt-tab { flex: none; white-space: nowrap; } }

/* ---------- step 1: a Standard / All Events choice for each ticked Lunch or Dinner ---------- */
.mf-rows { display: grid; gap: 18px; }
.mf-row-meal { color: var(--gold); font-weight: 700; margin-right: 4px; }
.mf-type { margin-top: 4px; }
.mf-keep { color: var(--gold); }
.meal-tabs[hidden] { display: none; }
.mf-counts { max-width: 1280px; margin: 0 auto 14px; }

/* service staff: one row per chosen meal (name on the left, - [ n ] + on the right) */
.qs-step[hidden] { display: none; }
.staff-rows { display: grid; gap: 10px; margin-bottom: 4px; }
.staff-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-control, 10px);
}
.staff-meal { font-weight: 600; color: var(--ink); }
.staff-row .qs-step { flex: none; }

/* highlighted tip (e.g. "Not sure? Leave it at 0 ..."): gold edge, raised ground, main text colour */
.qf-help.qf-tip {
  margin-top: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.6; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r-control, 10px);
}

/* ================= Step 1 groups, one card per meal, boys + girls staff ================= */
.qf-grid .qf-sub { grid-column: 1 / -1; margin: 14px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.qf-grid .qf-sub:first-child { margin-top: 0; }
.qf-sub[hidden], .mt-rows[hidden] { display: none; }

.mt-rows { display: grid; gap: 10px; }
.mt-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.3fr) minmax(120px, 1fr); gap: 14px; align-items: end;
  padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-control, 10px); }
.mt-name { align-self: center; font-size: 16px; font-weight: 600; color: var(--gold); }
.qf-grid .mt-field { display: block; margin: 0; font-size: 12px; color: var(--muted); }
.qf-grid .mt-field select, .qf-grid .mt-field input { margin-top: 6px; }
.mt-same { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 640px) {
  .mt-row { grid-template-columns: 1fr 1fr; }
  .mt-name { grid-column: 1 / -1; }
}

.qf-field > .qf-legend { margin-bottom: 6px; }
.staff-hint { margin: 0 0 16px; }
.staff-rows { margin-top: 0; }
.staff-pair { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.staff-who { display: flex; align-items: center; gap: 10px; }
.staff-who-l { min-width: 46px; font-size: 13px; color: var(--muted); }
.staff-row .qs-step { gap: 6px; }
.staff-row .qs-step input { width: 58px; }
@media (max-width: 640px) {
  .staff-row { align-items: flex-start; }
  .staff-pair { width: 100%; justify-content: space-between; }
}

/* serving style: one row per meal */
.style-rows { display: grid; gap: 22px; }
.style-meal { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 600; color: var(--gold); }

/* ---- Device comfort: phones, iPad, Android tablets ---- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, select, input, textarea, label, summary, [role="button"], [role="radio"] { touch-action: manipulation; }
@media (pointer: coarse) {
  /* 16px stops iPhone and iPad zooming in when a field is tapped (the old rule only covered phones under 700px) */
  .qf-grid input, .qf-grid select, .qf-grid textarea, .ls-vendor input { font-size: 16px; }
}
@media (max-width: 700px) {
  /* keep the confirmation and PDF button clear of the iPhone home bar */
  #quote-result { scroll-margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
#quote-result .outline { min-height: 44px; margin-top: 14px; }

/* ===== service staff: pick the meal first, then boys and girls for that meal ===== */
.staff-meals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.staff-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.staff-chip.on { border-color: var(--gold); background: rgba(205,168,106,.14); color: var(--gold); }
.staff-badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: #0a1b16; font-size: 12px; font-style: normal; font-weight: 700; text-align: center; }
.staff-badge[hidden] { display: none; }
.staff-pick { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-control, 10px); }
.staff-for { display: block; margin: 0 0 10px; font-weight: 600; color: var(--gold); }
.staff-empty { margin: 0; font-size: 14px; color: var(--muted); }
.staff-pick .staff-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.staff-pick .staff-who { display: block; font-size: 12px; color: var(--muted); }
.staff-pick .staff-who-l { display: block; min-width: 0; }
.staff-pick .staff-who select { margin-top: 6px; }

/* ===== smaller step numbers (01-09) so the page is shorter ===== */
.svc .svc-block, #quote-form { padding: 20px 24px; column-gap: 24px; grid-template-columns: 170px 1fr; }
.svc .svc-block::before, #quote-form::before, .step-head::before { font-size: 40px; }
.svc .svc-block > h3, #quote-form > h3 { font-size: 24px; margin-top: 8px; }
.step-head > h3 { font-size: 30px; }
.svc .svc-block:not(:last-child)::after, #quote-form::after, .builder::after { height: 12px; left: 36px; }
@media (max-width: 860px) {
  .svc .svc-block, #quote-form { grid-template-columns: auto 1fr; padding: 16px; column-gap: 12px; }
  .svc .svc-block::before, #quote-form::before { font-size: 34px; grid-column: 1; grid-row: 1; align-self: center; }
  .svc .svc-block > h3, #quote-form > h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 22px; align-self: center; }
  .svc .svc-block > .svc-note, #quote-form > .svc-note { grid-column: 1 / -1; grid-row: 2; margin: 8px 0 12px; }
  .svc .svc-block > .qf-grid, .svc .svc-block > .spice-meter, #quote-form > .qf-grid { grid-column: 1 / -1; grid-row: 3; }
  .step-head::before { font-size: 34px; }
  .step-head > h3 { font-size: 24px; }
}

#gallery,
#signature {
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(205, 168, 106, .20), transparent 70%),
    radial-gradient(45% 40% at 100% 100%, rgba(60, 141, 134, .20), transparent 70%),
    radial-gradient(rgba(205, 168, 106, .24) 1px, transparent 1.6px) 0 0 / 26px 26px;
}

