/* ==========================================================================
   Kaffee Lane — stylesheet (dark)
   Near-black ground, warm cream type, one gold accent. Food photography is the
   only colour on the page, so every image gets depth: a pointer-driven 3D tilt,
   a blurred "ambilight" glow of its own colours behind it, and a lift on hover.
   Items flagged `cutout: true` (transparent PNG/WebP) drop the frame and float.
   ========================================================================== */

:root {
  --bg:         #0A0908;
  --bg-2:       #100E0C;
  --surface:    #171512;
  --surface-2:  #201D19;
  --surface-3:  #2A2621;
  --line:       rgba(255, 236, 205, .09);
  --line-2:     rgba(255, 236, 205, .16);
  --text:       #F4ECDF;
  --text-soft:  #BDB2A2;
  --text-faint: #80776A;
  --gold:       #D9A55B;
  --gold-hi:    #F0C98A;
  --gold-soft:  rgba(217, 165, 91, .14);
  --rust:       #C4553A;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-full: 999px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
a { color: var(--gold-hi); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--gold); color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* faint film grain + warm top light over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(217,165,91,.10), transparent 70%),
    radial-gradient(800px 500px at 100% 100%, rgba(196,85,58,.05), transparent 70%);
}

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 9, 8, .78); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-head__in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, var(--gold-hi), var(--gold)); color: var(--bg);
  display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 700;
  box-shadow: 0 4px 18px rgba(217,165,91,.28);
}
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.brand__sub { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-top: -1px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: var(--r-full); font-size: 14.5px; font-weight: 500; color: var(--text-soft); transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.is-active { background: var(--surface-3); color: var(--gold-hi); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(145deg, var(--gold-hi), var(--gold)); color: #1A1208; box-shadow: 0 6px 24px rgba(217,165,91,.25); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(217,165,91,.38); }
.btn--ghost { color: var(--text); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }

/* ==========================================================================
   Depth system — shared by tiles, hero, showcase and modal
   JS sets --rx / --ry (tilt degrees) and --mx / --my (pointer %, for the sheen).
   ========================================================================== */
.depth { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; perspective: 1000px; }
.depth__body {
  position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
}
.depth.is-live .depth__body { transition: transform .08s linear; }

/* the photo, framed, lifted toward the viewer */
.photo, .photo__frame, .photo__glow { display: block; }
.photo {
  position: relative; transform-style: preserve-3d;
  transform: translateZ(0);
  transition: transform .5s var(--ease);
}
.photo__glow {
  position: absolute; inset: 8% 6% -4%; z-index: 0; border-radius: inherit;
  background-size: cover; background-position: center;
  filter: blur(34px) saturate(1.5); opacity: .45;
  transform: translateZ(-30px) scale(.94);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.photo__frame {
  position: relative; z-index: 1; overflow: hidden; border-radius: var(--r-md);
  background: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 22px 40px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04);
}
.photo__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
/* soft vignette so photo edges sink into the dark */
.photo__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35));
}
/* moving specular sheen that follows the pointer */
.photo__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,240,215,.16), transparent 45%);
  transition: opacity .35s;
}

.depth.is-live .photo, .depth:focus-visible .photo { transform: translateZ(46px); }
.depth.is-live .photo__glow { opacity: .75; transform: translateZ(-30px) scale(1.02); }
.depth.is-live .photo__frame img { transform: scale(1.06); }
.depth.is-live .photo__frame::before { opacity: 1; }

/* cut-out mode: transparent images float free of any frame */
.photo--cutout .photo__frame { background: transparent; box-shadow: none; overflow: visible; }
.photo--cutout .photo__frame::after { display: none; }
.photo--cutout .photo__frame img {
  object-fit: contain;
  filter: drop-shadow(0 26px 22px rgba(0,0,0,.75)) drop-shadow(0 6px 6px rgba(0,0,0,.5));
}
.photo--cutout .photo__glow { inset: 30% 18% 0; opacity: .35; }
.depth.is-live .photo--cutout { transform: translateZ(70px) translateY(-8px); }
.depth.is-live .photo--cutout .photo__frame img { transform: scale(1.08) rotate(-2deg); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; }
.hero__in {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 88px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); letter-spacing: -.035em; }
.hero h1 em { font-style: italic; color: var(--gold-hi); }
.hero__lede { font-size: 18.5px; color: var(--text-soft); max-width: 32em; margin: 24px 0 34px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 32px; margin: 44px 0 0; flex-wrap: wrap; }
.hero__meta dt { font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); }
.hero__meta dd { margin: 4px 0 0; font-family: var(--serif); font-size: 20px; font-weight: 600; }

/* layered hero scene — three photos at different depths */
.scene { position: relative; aspect-ratio: 1 / 1.05; }
.scene .depth__body { position: absolute; inset: 0; }
.scene__layer { position: absolute; transform-style: preserve-3d; }
.scene__layer .photo__frame { width: 100%; height: 100%; }
.scene__main  { inset: 14% 20% 8% 10%; transform: translateZ(40px); }
.scene__main .photo__frame { border-radius: var(--r-lg); }
.scene__back  { width: 42%; aspect-ratio: 1; top: 0; right: 0; transform: translateZ(-40px) rotate(6deg); }
.scene__front { width: 40%; aspect-ratio: 1; bottom: 0; left: 0; transform: translateZ(110px) rotate(-5deg); }
.scene__back .photo__frame, .scene__front .photo__frame { border-radius: 50%; border: 5px solid var(--bg); }
.scene__tag {
  position: absolute; z-index: 5; right: 4%; bottom: 14%; transform: translateZ(140px);
  background: rgba(23,21,18,.86); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 12px 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}
.scene__tag strong { display: block; font-family: var(--serif); font-size: 17px; }
.scene__tag span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .scene__main { animation: bob 7s ease-in-out infinite; }
  .scene__front { animation: bob2 6s ease-in-out infinite; }
  .scene__back { animation: bob3 8s ease-in-out infinite; }
}
@keyframes bob  { 50% { transform: translateZ(40px) translateY(-10px); } }
@keyframes bob2 { 50% { transform: translateZ(110px) rotate(-5deg) translateY(-14px); } }
@keyframes bob3 { 50% { transform: translateZ(-40px) rotate(6deg) translateY(8px); } }

/* ---------------------------------------------------------------- marquee */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 16px 0; }
.strip__row { display: flex; gap: 44px; white-space: nowrap; width: max-content; animation: slide 40s linear infinite; }
.strip__row span { font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--text-soft); }
.strip__row span::after { content: "✦"; margin-left: 44px; color: var(--gold); font-style: normal; font-size: 11px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__row { animation: none; } }

/* ---------------------------------------------------------------- sections */
.sec { padding: 96px 0; }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec__head { max-width: 660px; margin-bottom: 52px; }
.sec__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.028em; }
.sec__head p { font-size: 17.5px; color: var(--text-soft); margin-top: 16px; }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head--center .eyebrow::after { content: ""; width: 26px; height: 1.5px; background: var(--gold); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 28px; transition: transform .3s var(--ease), border-color .3s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pillar__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--gold-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 20px; }
.pillar h3 { font-size: 21px; margin-bottom: 10px; }
.pillar p { color: var(--text-soft); font-size: 15.5px; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.signature .photo__frame { aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.numlist { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: n; }
.numlist li { counter-increment: n; position: relative; padding: 0 0 20px 48px; color: var(--text-soft); font-size: 15.5px; }
.numlist li::before {
  content: counter(n); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold-hi); font-family: var(--serif); font-size: 14px; font-weight: 600;
  display: grid; place-items: center;
}
.numlist b { color: var(--text); font-weight: 600; }

/* home showcase — a few real items, same depth treatment as the menu */
.showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.show { display: block; color: var(--text); }
.show .photo__frame { aspect-ratio: 1; }
.show__txt { padding: 16px 4px 0; transform: translateZ(20px); }
.show__city { font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); }
.show h3 { font-size: 18px; margin-top: 4px; }

.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.visit dl { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.visit dt { font-family: var(--serif); font-size: 19px; margin-bottom: 14px; }
.visit dd { margin: 0 0 8px; color: var(--text-soft); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.visit dd b { font-weight: 600; color: var(--text); text-align: right; }

.callout {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 60px 48px; text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(217,165,91,.20), transparent 70%), var(--surface);
  border: 1px solid var(--line-2);
}
.callout h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.callout p { color: var(--text-soft); max-width: 44em; margin: 16px auto 30px; font-size: 17px; }

/* ---------------------------------------------------------------- footer */
.foot { background: #050404; border-top: 1px solid var(--line); color: var(--text-faint); padding: 56px 0 32px; font-size: 14.5px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot h4 { color: var(--text); font-size: 13px; font-family: var(--sans); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.foot a { color: var(--text-faint); display: block; padding: 4px 0; }
.foot a:hover { color: var(--gold-hi); }
.foot__bar { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ==========================================================================
   MENU PAGE — ordering-portal layout
   ========================================================================== */
.menu-head { padding: 48px 0 30px; }
.menu-head h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -.03em; }
.menu-head p { color: var(--text-soft); max-width: 46em; margin: 14px 0 0; font-size: 16.5px; }
.menu-tools { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 300px; max-width: 420px; position: relative; }
.search input {
  width: 100%; padding: 12px 16px 12px 42px; font: inherit; font-size: 15px; color: var(--text);
  border: 1.5px solid var(--line-2); border-radius: var(--r-full); background: var(--surface);
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.search::before { content: "⌕"; position: absolute; left: 16px; top: 50%; transform: translateY(-52%); font-size: 20px; color: var(--text-faint); pointer-events: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 15px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; background: var(--surface); color: var(--text-soft); border: 1.5px solid var(--line); transition: all .15s; }
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: #1A1208; }

.rail { position: sticky; top: 68px; z-index: 50; background: rgba(10,9,8,.85); backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.rail__in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rail__in::-webkit-scrollbar { display: none; }
.rail button {
  flex: none; padding: 15px 16px 13px; border-bottom: 2px solid transparent; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--text-faint); display: flex; align-items: center; gap: 8px; transition: color .15s, border-color .15s;
}
.rail button:hover { color: var(--text); }
.rail button.is-on { color: var(--gold-hi); border-bottom-color: var(--gold); }
.rail button em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-faint); background: var(--surface-2); border-radius: var(--r-full); padding: 1px 7px; }

.cat { padding: 64px 0 8px; scroll-margin-top: 128px; }
.cat__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cat__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.028em; }
.cat__region { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); }
.cat__blurb { color: var(--text-soft); max-width: 58em; margin: 10px 0 36px; font-size: 15.5px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.tile { display: block; width: 100%; text-align: left; color: var(--text); }
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile__card { border-color: var(--gold); }
.tile__card {
  position: relative; height: 100%; display: flex; flex-direction: column; transform-style: preserve-3d;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 12px 18px;
  transition: border-color .3s, box-shadow .4s var(--ease);
}
.tile.is-live .tile__card { border-color: var(--line-2); box-shadow: 0 40px 60px -30px rgba(0,0,0,.9); }
.tile .photo__frame { aspect-ratio: 4 / 3.3; }
.tile__flag {
  position: absolute; top: 20px; left: 20px; z-index: 4; transform: translateZ(70px);
  background: var(--rust); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-full); box-shadow: 0 6px 14px rgba(0,0,0,.5);
}
.tile__time {
  position: absolute; top: 20px; right: 20px; z-index: 4; transform: translateZ(70px);
  background: rgba(10,9,8,.72); backdrop-filter: blur(6px); color: var(--text); border: 1px solid var(--line-2);
  font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-full);
}
.tile__body { padding: 16px 6px 0; display: flex; flex-direction: column; flex: 1; transform: translateZ(24px); }
.tile__city { font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.tile h3 { font-size: 17px; line-height: 1.25; margin-bottom: 7px; }
.tile__desc { font-size: 13.3px; color: var(--text-soft); line-height: 1.5; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile__price { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.tile__view {
  font-size: 12.5px; font-weight: 600; color: var(--gold-hi); display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-full); border: 1px solid var(--line-2); transition: all .2s;
}
.tile.is-live .tile__view { background: var(--gold); border-color: var(--gold); color: #1A1208; }
.tile__allerg { font-size: 11px; color: var(--text-faint); margin-top: 10px; }

.empty { text-align: center; padding: 90px 20px; color: var(--text-faint); }
.empty strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--text); margin-bottom: 8px; }

/* ---------------------------------------------------------------- modal */
.modal[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal__veil { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.modal__box {
  position: relative; width: min(980px, 100%); max-height: min(90vh, 900px);
  display: grid; grid-template-columns: 380px 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 50px 100px rgba(0,0,0,.8); animation: pop .35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .modal__box { animation: none; } }

.modal__media {
  position: relative; background: #000; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; overflow: hidden; min-height: 100%;
}
.modal__media .photo { position: absolute; inset: 0; }
.modal__media .photo__frame { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
.modal__media .photo__frame::after { background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.92)); }
.modal__media .photo__glow { display: none; }
.modal__media.is-cutout .photo__frame { inset: 6% 6% 38%; }
.modal__cap { position: relative; z-index: 3; }
.modal__city { font-size: 10.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.modal__cap h2 { font-size: 30px; margin: 6px 0 10px; letter-spacing: -.022em; }
.modal__facts { display: flex; gap: 8px; flex-wrap: wrap; }
.modal__facts span { font-size: 12px; color: var(--text-soft); background: rgba(10,9,8,.7); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: var(--r-full); backdrop-filter: blur(6px); }
.modal__facts b { color: var(--text); font-weight: 600; }

.modal__main { display: flex; flex-direction: column; min-height: 0; max-height: min(90vh, 900px); }
.modal__x {
  position: absolute; top: 14px; right: 14px; z-index: 10; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,9,8,.7); border: 1px solid var(--line-2); color: var(--text); font-size: 16px; display: grid; place-items: center;
}
.modal__x:hover { border-color: var(--gold); color: var(--gold-hi); }
.modal__tabs { display: flex; gap: 2px; padding: 8px 64px 0 26px; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; }
.modal__tabs button { padding: 14px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-faint); border-bottom: 2px solid transparent; white-space: nowrap; }
.modal__tabs button:hover { color: var(--text); }
.modal__tabs button.is-on { color: var(--gold-hi); border-bottom-color: var(--gold); }
.modal__body { padding: 26px 28px 34px; overflow-y: auto; }
.pane[hidden] { display: none; }
.modal__tabs[hidden], .modal__back[hidden] { display: none; }
.modal__back { color: var(--gold-hi) !important; margin-right: 8px; }

/* flavour list for cards with variants */
.flavours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.flavour {
  display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px;
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.flavour:hover, .flavour:focus-visible { border-color: var(--gold); background: var(--surface-2); outline: none; }
.flavour:active { transform: scale(.98); }
.flavour__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.flavour__name { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.25; }
.flavour__price { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--gold-hi); white-space: nowrap; }
.flavour__flag { align-self: flex-start; background: var(--rust); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-full); }
.flavour__desc { font-size: 13.3px; color: var(--text-soft); line-height: 1.5; }
.flavour__foot { margin-top: auto; padding-top: 4px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: var(--text-faint); }
.flavour__go { font-size: 12px; font-weight: 600; color: var(--gold-hi); white-space: nowrap; }
.pane h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; }
.lede { font-size: 16.5px; color: var(--text-soft); }

.ing { list-style: none; padding: 0; margin: 0; column-count: 2; column-gap: 30px; }
.ing li { padding: 8px 0 8px 18px; position: relative; font-size: 14.3px; break-inside: avoid; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.ing li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.ing li.is-head { font-weight: 700; color: var(--gold-hi); padding-left: 0; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; border-bottom-color: rgba(217,165,91,.35); }
.ing li.is-head::before { display: none; }
.ing li.is-head { break-after: avoid; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 20px 44px; font-size: 14.6px; color: var(--text-soft); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px;
  background: var(--gold-soft); color: var(--gold-hi); font-family: var(--serif); font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.steps li:last-child { padding-bottom: 0; }
.steps b { color: var(--text); font-weight: 600; }

.note { background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 20px; font-size: 14.5px; color: var(--text); }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 6px 0 0; }
.meta-grid div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.meta-grid dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.meta-grid dd { margin: 5px 0 0; font-size: 15px; font-weight: 500; }
.tagrow { display: flex; gap: 7px; flex-wrap: wrap; }
.tag { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-full); padding: 4px 11px; font-size: 12px; font-weight: 600; color: var(--text-soft); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .tiles, .showcase { grid-template-columns: repeat(3, 1fr); }
  .hero__in { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .scene { max-width: 520px; width: 100%; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .signature .photo { max-width: 440px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .modal__box { grid-template-columns: 300px 1fr; }
}
@media (max-width: 760px) {
  .tiles, .showcase { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .grid-3, .visit { grid-template-columns: 1fr; }
  .sec { padding: 64px 0; }
  .wrap { padding-inline: 16px; }
  .site-head__in { height: 60px; padding-inline: 16px; gap: 8px; }
  .site-head__in > .btn { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 18px; }
  .brand__mark { width: 34px; height: 34px; font-size: 16px; }
  .nav { gap: 0; }
  .nav a { padding: 7px 9px; font-size: 13px; }
  .rail { top: 60px; }
  .rail__in { padding-inline: 16px; }
  .cat { padding-top: 44px; scroll-margin-top: 112px; }
  .tile__card { padding: 8px 8px 14px; border-radius: var(--r-md); }
  .tile__flag, .tile__time { top: 14px; }
  .tile__flag { left: 14px; } .tile__time { right: 14px; }
  .tile__body { padding: 12px 4px 0; }
  .tile h3 { font-size: 15px; }
  .tile__desc { display: none; }
  .tile__price { font-size: 17px; }
  .tile__view { padding: 4px 9px; font-size: 11.5px; }
  .tile__allerg { display: none; }
  .modal { padding: 0; }
  .modal__box { grid-template-columns: 1fr; grid-template-rows: auto 1fr; width: 100%; height: 100%; max-height: 100vh; border-radius: 0; border: 0; }
  .modal__media { min-height: 44vh; padding: 20px; }
  .modal__main { max-height: none; min-height: 0; }
  .modal__cap h2 { font-size: 24px; }
  .modal__tabs { padding: 0 16px; }
  .modal__body { padding: 20px 18px 30px; }
  .ing { column-count: 1; }
  .meta-grid { grid-template-columns: 1fr; }
  .flavours { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 16.5px; }
  .nav a { padding: 7px 7px; font-size: 12.5px; }
  .tile__time { display: none; }
}
/* touch screens get the lift without the pointer tilt */
/* ==========================================================================
   Touch & scroll depth — for the portrait touch screen (no mouse, no gyro)
   Hover lift above is keyed to .is-live, which depth.js sets for a real mouse
   only, so nothing gets "stuck" lifted after a tap.
   ========================================================================== */

/* 1. Scroll reveal: cards rise out of the screen tilted back, then settle.
   Only armed when JS runs and motion is allowed (html.fx), so content is never
   hidden for anyone else. */
.fx .reveal {
  opacity: 0;
  transform: perspective(900px) translateY(70px) rotateX(24deg) scale(.94);
  transform-origin: 50% 100%;
  transition:
    opacity .7s var(--ease) var(--delay, 0ms),
    transform 1s var(--ease) var(--delay, 0ms);
}
.fx .reveal.is-in { opacity: 1; transform: none; }
/* the photo arrives slightly after its card, so it reads as a separate layer */
.fx .reveal .photo { transition: transform 1.1s var(--ease) calc(var(--delay, 0ms) + 120ms); }
.fx .reveal:not(.is-in) .photo { transform: translateZ(0) translateY(26px) scale(.9); }
.fx .reveal .photo__glow { transition: opacity 1.4s var(--ease) calc(var(--delay, 0ms) + 250ms); }
.fx .reveal:not(.is-in) .photo__glow { opacity: 0; }

/* 2. Scroll parallax inside each photo frame: the food drifts against its frame
   as the list moves under your finger. Uses the individual `translate`
   property so it never fights the hover/press `transform`. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .photo__frame img {
      scale: 1.16;
      animation: photo-drift linear both;
      animation-timeline: view();
    }
    .photo--cutout .photo__frame img { scale: 1; animation-name: cutout-drift; }
  }
}
@keyframes photo-drift  { from { translate: 0 -7%; } to { translate: 0 7%; } }
@keyframes cutout-drift { from { translate: 0 10px; } to { translate: 0 -10px; } }

/* 3. Press: the card sinks, the photo pushes toward you, the glow flares. */
.tile__card, .show .depth__body { transition: transform .5s var(--ease), border-color .3s, box-shadow .4s var(--ease), scale .18s var(--ease); }
.tile.is-pressed .tile__card, .show.is-pressed .depth__body { scale: .965; border-color: var(--gold); }
.depth.is-pressed .photo { transform: translateZ(60px); transition-duration: .18s; }
.depth.is-pressed .photo__glow { opacity: .95; transform: translateZ(-30px) scale(1.08); transition-duration: .18s; }
.depth.is-pressed .photo__frame::before { opacity: 1; }
.tile.is-pressed .tile__view { background: var(--gold); border-color: var(--gold); color: #1A1208; }

/* touch screens: kill the grey tap flash, keep text selection off the tiles */
.tile, .show, .chip, .rail button { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }

/* ==========================================================================
   Portrait kiosk — large vertical touch screen (e.g. 1080×1920)
   Read from a step back and operated with a finger: fewer, bigger columns,
   larger type, fat touch targets, and a stacked recipe view that uses the
   screen's height instead of its width.
   ========================================================================== */
@media (orientation: portrait) and (min-width: 900px) {
  body { font-size: 18px; }
  .wrap, .site-head__in, .rail__in { max-width: none; padding-inline: 44px; }

  .site-head__in { height: 92px; }
  .brand__mark { width: 50px; height: 50px; font-size: 23px; border-radius: 13px; }
  .brand__name { font-size: 28px; }
  .brand__sub { font-size: 12px; }
  .nav a { padding: 12px 22px; font-size: 19px; }
  .btn { padding: 16px 28px; font-size: 18px; }
  .btn--sm { padding: 13px 22px; font-size: 16px; }

  /* menu header + controls */
  .menu-head { padding: 56px 0 36px; }
  .menu-head h1 { font-size: 64px; }
  .menu-head p { font-size: 21px; max-width: 40em; }
  .search { max-width: 560px; flex-basis: 100%; }
  .search input { padding: 20px 24px 20px 58px; font-size: 20px; }
  .search::before { left: 22px; font-size: 26px; }
  .chip { padding: 14px 24px; font-size: 17px; }

  .rail { top: 92px; }
  .rail button { padding: 24px 24px 21px; font-size: 20px; gap: 10px; }
  .rail button em { font-size: 14px; padding: 2px 10px; }

  /* sections + tiles */
  .cat { padding-top: 72px; scroll-margin-top: 170px; }
  .cat__head h2 { font-size: 50px; }
  .cat__region { font-size: 22px; }
  .cat__blurb { font-size: 20px; margin-bottom: 40px; }

  .tiles { grid-template-columns: repeat(3, 1fr); gap: 32px 26px; }
  .tile__card { padding: 14px 14px 22px; border-radius: 26px; }
  .tile .photo__frame { aspect-ratio: 1 / 1; border-radius: 18px; }
  .tile__flag, .tile__time { top: 26px; font-size: 13px; padding: 6px 13px; }
  .tile__flag { left: 26px; } .tile__time { right: 26px; }
  .tile__body { padding: 20px 8px 0; }
  .tile__city { font-size: 13px; }
  .tile h3 { font-size: 25px; margin-bottom: 10px; }
  .tile__desc { font-size: 16px; -webkit-line-clamp: 2; }
  .tile__price { font-size: 30px; }
  .tile__view { font-size: 16px; padding: 11px 18px; }
  .tile__allerg { font-size: 13.5px; margin-top: 14px; }

  /* recipe view: photo on top, recipe below, nearly full height */
  .modal { padding: 48px; }
  .modal__box {
    grid-template-columns: 1fr; grid-template-rows: 36vh 1fr;
    width: 100%; max-width: 1000px; height: min(88vh, 1680px); max-height: none;
  }
  .modal__media { padding: 36px; }
  .modal__cap h2 { font-size: 48px; }
  .modal__city { font-size: 14px; }
  .modal__facts span { font-size: 16px; padding: 7px 15px; }
  .modal__main { max-height: none; }
  .modal__x { width: 60px; height: 60px; font-size: 24px; top: 22px; right: 22px; }
  .modal__tabs { padding: 6px 36px 0; }
  .modal__tabs button { padding: 22px 22px; font-size: 20px; }
  .modal__body { padding: 36px 40px 48px; }
  .pane h4 { font-size: 14px; }
  .lede { font-size: 22px; }
  .ing { column-count: 1; }
  .ing li { font-size: 19px; padding: 12px 0 12px 24px; }
  .ing li::before { top: 23px; width: 8px; height: 8px; }
  .ing li.is-head { font-size: 14px; }
  .steps li { font-size: 19px; padding-left: 58px; padding-bottom: 26px; }
  .steps li::before { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
  .note { font-size: 19px; padding: 22px 26px; }
  .meta-grid dt { font-size: 13px; }
  .meta-grid dd { font-size: 20px; }
  .tag { font-size: 15px; padding: 7px 14px; }
  .flavours { gap: 16px; }
  .flavour { padding: 20px 22px; gap: 9px; border-radius: 18px; }
  .flavour__name, .flavour__price { font-size: 24px; }
  .flavour__flag { font-size: 12px; padding: 4px 10px; }
  .flavour__desc { font-size: 16.5px; }
  .flavour__foot { font-size: 14px; }
  .flavour__go { font-size: 16px; }

  /* home page */
  .hero__in { grid-template-columns: 1fr; padding: 64px 44px 80px; }
  .hero h1 { font-size: 88px; }
  .hero__lede { font-size: 24px; }
  .scene { max-width: 780px; }
  .sec__head { max-width: 900px; }
  .sec__head h2 { font-size: 56px; }
  .sec__head p { font-size: 22px; }
  .showcase { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .show h3 { font-size: 28px; }
  .show__city { font-size: 13px; }
  .grid-3 { grid-template-columns: 1fr; }
  .pillar h3 { font-size: 28px; }
  .pillar p { font-size: 19px; }
  .split { grid-template-columns: 1fr; }
  .signature .photo { max-width: none; }
  .signature .photo__frame { aspect-ratio: 16 / 11; }
  .numlist li { font-size: 19px; }
  .visit { grid-template-columns: 1fr 1fr; }
  .visit dd { font-size: 18px; }
}
