/* ==========================================================================
   Brace · wood-fired pizza (design concept)
   Theme is locked to the brand's night-teal palette (no light mode on purpose).
   ========================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Colour */
  --bg: #2e4e54;
  --bg-deep: #223b40;
  --bg-raised: #385c63;
  --text: #e6e4e2;
  --text-muted: #c3c9c8;
  --accent: #f8a81f;
  --on-accent: #1d3236;
  --line: rgb(230 228 226 / 0.16);
  --shadow: 0 24px 60px -20px rgb(13 26 29 / 0.7);

  /* Type */
  --font-display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape: pills for controls, 16px for media and panels */
  --radius: 16px;
  --radius-pill: 999px;
  --radius-sheet: 4px; /* paper menu sheets only */

  /* Space */
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --section: clamp(72px, 10vw, 136px);
  --header-h: 68px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layers */
  --z-header: 50;
  --z-order-bar: 40;
  --z-grain: 90;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Flour-dust grain, fixed so it never repaints on scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-inline-size: 100%; block-size: auto; }
svg { flex-shrink: 0; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
:where(ul[role="list"]) { list-style: none; padding: 0; }
address { font-style: normal; }

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

.sprite { position: absolute; }

.visually-hidden {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { inset-block-start: 12px; }

.wrap {
  inline-size: 100%;
  max-inline-size: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.eyebrow {
  margin-block-end: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 44px;
  padding: 10px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: 600 0.9375rem/1 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.btn svg { inline-size: 18px; block-size: 18px; fill: currentColor; }
.btn:active { transform: scale(0.98); }

.btn--lg { min-block-size: 54px; padding-inline: 30px; font-size: 1rem; }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { box-shadow: 0 10px 30px -8px rgb(248 168 31 / 0.55); transform: translateY(-1px); }
.btn--accent:active { transform: scale(0.98); }

.btn--ghost { border-color: rgb(230 228 226 / 0.45); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); background: rgb(230 228 226 / 0.06); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease-out);
}
.icon-btn svg { inline-size: 20px; block-size: 20px; fill: currentColor; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: 0.35; cursor: default; border-color: var(--line); }

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

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-header);
  background: rgb(46 78 84 / 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-block-end: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-stuck { border-block-end-color: var(--line); }

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-block-size: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand__mark { inline-size: 26px; block-size: 26px; fill: var(--accent); }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: -0.04em;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  position: relative;
  padding-block: 6px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 767.98px) {
  .site-nav ul { gap: 18px; }
  .site-nav .btn { display: none; }

  .js .nav-toggle {
    display: inline-grid;
    place-items: center;
    inline-size: 48px;
    block-size: 48px;
    margin-inline-end: -8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .js .nav-toggle svg { inline-size: 28px; block-size: 28px; fill: currentColor; }

  .js .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg-deep);
    border-block-end: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a {
    display: block;
    padding-block: 14px;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .js .site-nav ul a::after { display: none; }
}

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

.hero {
  position: relative;
  padding-block: clamp(24px, 5vw, 48px) clamp(48px, 7vw, 80px);
}

.hero__copy { position: relative; z-index: 1; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 1.4rem + 4.6vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero__title .line { display: block; }
.hero__title em { font-style: normal; color: var(--accent); }

.hero__sub {
  max-inline-size: 38ch;
  margin-block-start: 24px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--text-muted);
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }

.hero__frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1;
  margin: 36px var(--gutter) 0;
  border-radius: var(--radius);
  background: var(--bg-deep);
}
.hero__frame picture { display: contents; }
.hero__img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  will-change: transform;
}
/* Teal falloff at the bottom so the fire settles into the page colour */
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(46 78 84 / 0.5), transparent 35%);
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero__frame {
    aspect-ratio: 16 / 9;
    margin-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  }
}

/* Desktop: headline over a wide framed photo. On scroll the frame opens to full bleed (motion.js). */
@media (min-width: 1024px) {
  .hero {
    --frame-x: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    --frame-bottom: 32px;
    display: grid;
    min-block-size: clamp(620px, calc(100dvh - var(--header-h)), 1000px);
    padding: 0;
  }
  .hero__copy {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: end;
    align-self: start;
    gap: 48px;
    padding-block: clamp(28px, 5vh, 64px) clamp(28px, 4vh, 44px);
  }
  .hero__sub { margin-block-start: 0; }
  .hero__frame {
    position: absolute;
    inset: 0;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
    clip-path: inset(var(--frame-top, 46%) var(--frame-x) var(--frame-bottom) var(--frame-x) round var(--radius));
  }
  .hero__frame::after {
    background: linear-gradient(to top, rgb(46 78 84 / 0.45), transparent 30%);
  }
}

.hero__caption { display: none; }

@media (min-width: 1024px) {
  .hero__caption {
    display: block;
    position: absolute;
    inset-inline-start: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
    inset-block-end: clamp(40px, 8vh, 88px);
    z-index: 1;
    max-inline-size: 12ch;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 1.6rem + 3.6vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-shadow: 0 4px 40px rgb(13 26 29 / 0.6);
  }
  .hero__caption em { font-style: normal; color: var(--accent); }
  @media (prefers-reduced-motion: no-preference) {
    .js .hero__caption { opacity: 0; }
  }
  .hero__frame::after {
    background:
      linear-gradient(to top, rgb(34 59 64 / 0.85), transparent 45%),
      linear-gradient(to right, rgb(34 59 64 / 0.55), transparent 50%);
  }
}

/* ---------- Signature pies ---------- */

.signature { padding-block: var(--section) calc(var(--section) * 0.8); }

.signature__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-block-end: clamp(24px, 4vw, 40px);
}
.signature__controls { display: none; gap: 8px; }

@media (min-width: 640px) {
  .js .signature__controls { display: flex; }
}

.signature__track {
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74vw, 320px);
  gap: 16px;
  margin: 0;
  padding: 8px var(--edge) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.signature__track::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .signature__track { grid-auto-columns: calc((100vw - 2 * var(--gutter) - 2 * 20px) / 2.4); gap: 20px; }
}
@media (min-width: 1024px) {
  .signature__track { grid-auto-columns: 330px; gap: 28px; }
}

.pie { display: flex; flex-direction: column; scroll-snap-align: start; }
.pie > img,
.pie__paper {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--bg-deep);
  transition: transform 0.5s var(--ease-out);
}
.pie > img { object-fit: cover; }
.pie:hover > img,
.pie:hover .pie__paper { transform: translateY(-6px); }

.pie__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding-block-start: 18px;
}
.pie__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pie__price {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--accent);
  line-height: 1.5;
}
.pie__desc { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.975rem; }
.pie__body .btn { grid-column: 1 / -1; justify-self: start; margin-block-start: 14px; }

/* The menu card: a sheet of the printed menu instead of a photo */
.pie__paper {
  display: grid;
  place-items: center;
  overflow: hidden;
}
.paper {
  position: relative;
  inline-size: 68%;
  aspect-ratio: 1 / 1.414;
  padding: 9% 9% 0;
  border-radius: var(--radius-sheet);
  background: var(--text);
  color: var(--on-accent);
  box-shadow: 0 18px 40px -16px rgb(13 26 29 / 0.8);
  transform: rotate(-4deg);
  transition: transform 0.6s var(--ease-out);
  font-size: clamp(0.5rem, 0.42rem + 0.35vw, 0.6875rem);
  line-height: 1.5;
}
/* a second sheet peeking out underneath */
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #cfd2cf;
  transform: rotate(7deg) translate(4%, 2%);
}
.pie:hover .paper { transform: rotate(-1deg) scale(1.03); }

.paper__brand {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-block-end: 1.4em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9em;
  letter-spacing: -0.04em;
  line-height: 1;
}
.paper__brand svg { inline-size: 0.8em; block-size: 0.8em; fill: #c77d0a; }
.paper__sec {
  margin-block: 1.2em 0.4em;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}
.paper ul { margin: 0; padding: 0; list-style: none; }
.paper li { display: flex; align-items: baseline; gap: 0.4em; }
.paper li::after { content: none; }
.paper li span:nth-child(2) {
  flex: 1;
  border-block-end: 1px dotted rgb(29 50 54 / 0.45);
  transform: translateY(-0.3em);
}

/* ---------- How we bake: three chapters ---------- */

.bake { padding-block: var(--section) calc(var(--section) * 0.6); }

.bake__heading { max-inline-size: 16ch; margin-block-end: clamp(40px, 6vw, 72px); }
.bake__heading span { display: block; color: var(--text-muted); }

.bake__steps {
  display: grid;
  gap: clamp(64px, 10vw, 112px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bake__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

/* The numbers are cut out of the oven fire */
.bake__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5.5rem, 3rem + 11vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--accent);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .bake__num {
    display: inline-block;
    padding-inline-end: 0.04em;
    /* zoomed into the brightest flames so every digit stays legible */
    background: url("../assets/img/craft-flames-900.webp") 66% 12% / 240% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.bake__num span {
  margin-inline-start: 0.04em;
  font-size: 0.36em;
  letter-spacing: -0.02em;
  vertical-align: 0.95em;
}

.bake__title {
  margin-block-start: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.bake__body { max-inline-size: 40ch; margin-block-start: 12px; color: var(--text-muted); }

.bake__img {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-deep);
}
.bake__img img {
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.bake__nav { display: none; }

@media (min-width: 768px) {
  .bake__step {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(48px, 6vw, 112px);
  }
}

/* Pinned mode (added by motion.js on desktop): chapters stack in one place and play on scroll */
@media (min-width: 1024px) {
  .bake--pinned { padding-block-end: 0; }
  .bake--pinned .bake__stage {
    display: grid;
    align-items: center;
    min-block-size: calc(100dvh - var(--header-h));
    padding-block: 24px;
  }
  .bake--pinned .bake__grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: auto auto;
    column-gap: clamp(48px, 6vw, 112px);
    align-items: center;
  }
  .bake--pinned .bake__steps {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .bake--pinned .bake__step { grid-area: 1 / 1; }
  .bake--pinned .bake__img {
    justify-self: end;
    inline-size: min(100%, calc(min(70dvh, 700px) * 0.8));
    background: transparent;
  }
  .bake--pinned .bake__step:first-child .bake__img { background: var(--bg-deep); }

  .bake--pinned .bake__nav {
    display: flex;
    gap: 28px;
    grid-column: 1;
    grid-row: 2;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
    color: var(--text-muted);
  }
  .bake__nav li { position: relative; padding-block-end: 8px; transition: color 0.3s; }
  .bake__nav li::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    block-size: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
  }
  .bake__nav li.is-active { color: var(--text); }
  .bake__nav li.is-active::after { transform: scaleX(1); }
}

/* ---------- Gallery: photos scattered on the table ---------- */

.gallery { padding-block: var(--section); overflow: clip; }
.gallery .h2 { margin-block-end: clamp(32px, 5vw, 56px); }

.gallery__table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  align-items: start;
}

.g { position: relative; }
.g a {
  display: block;
  block-size: 100%;
  padding: 7px;
  border-radius: var(--radius);
  background: var(--text);
  box-shadow: 0 20px 40px -18px rgb(13 26 29 / 0.85);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.g img {
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: var(--ar, 1);
  object-fit: cover;
  border-radius: calc(var(--radius) - 7px);
  background: var(--bg-deep);
}
.g:hover,
.g:focus-within { z-index: 3; }
.g a:hover,
.g a:focus-visible {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 30px 60px -20px rgb(13 26 29 / 0.9);
}

.g--table { --r: -1.5deg; --ar: 4 / 3; grid-column: span 2; }
.g--pull { --r: 2deg; --ar: 3 / 4; }
.g--oven { --r: -2deg; --ar: 3 / 4; }
.g--window { --r: 1.5deg; --ar: 1; }
.g--dome { --r: -1.5deg; --ar: 1; }
.g--dome img { object-position: 50% 70%; }
.g--board { --r: 1deg; --ar: 16 / 10; grid-column: span 2; order: 6; }

/* Desktop: a loose, overlapping spread on a 12-column table */
@media (min-width: 1024px) {
  .gallery__table {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(11, clamp(46px, 5vw, 68px));
    gap: 0 12px;
    align-items: stretch;
  }
  .g { order: 0; }
  .g a { padding: 10px; }
  .g img { aspect-ratio: auto; border-radius: calc(var(--radius) - 10px); }

  .g--table { --r: -3deg; grid-column: 1 / 6; grid-row: 2 / 7; }
  .g--pull { --r: 3.5deg; grid-column: 6 / 9; grid-row: 1 / 7; z-index: 1; }
  .g--oven { --r: -2deg; grid-column: 9 / 13; grid-row: 2 / 6; }
  .g--window { --r: 2.5deg; grid-column: 2 / 5; grid-row: 7 / 11; }
  .g--board { --r: -1.5deg; grid-column: 5 / 10; grid-row: 7 / 12; z-index: 1; }
  .g--dome { --r: 4deg; grid-column: 10 / 13; grid-row: 6 / 12; }
}

.lightbox {
  inline-size: min(92vw, 1200px);
  max-inline-size: none;
  max-block-size: 94dvh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-deep);
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: rgb(17 31 34 / 0.88); }
.lightbox__img {
  inline-size: 100%;
  max-block-size: calc(94dvh - 80px);
  object-fit: contain;
  background: #192d31;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.lightbox__count { min-inline-size: 4ch; text-align: center; color: var(--text-muted); }
.lightbox__close { margin-inline-start: auto; }

/* ---------- Reviews ---------- */

.reviews {
  padding-block: var(--section);
  background: var(--bg-deep);
  text-align: center;
}

.reviews__inner { display: grid; justify-items: center; }
.reviews__stage { display: grid; gap: 56px; inline-size: 100%; }

.review blockquote p {
  max-inline-size: 30ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.625rem, 1.05rem + 2.3vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.review figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin-block-start: 28px;
  font-size: 1rem;
}
.review figcaption span { color: var(--text-muted); }

.js .reviews__stage { gap: 0; }
.js .review {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s 0.5s;
}
.js .review.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--ease-out) 0.1s, transform 0.6s var(--ease-out) 0.1s, visibility 0s;
}

.reviews__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-block-start: 48px;
}
.reviews__count { min-inline-size: 5ch; color: var(--text-muted); }

/* ---------- Visit ---------- */

.visit { padding-block: var(--section); }

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.visit__lead { margin-block-start: 20px; max-inline-size: 42ch; color: var(--text-muted); }

.visit__contact { display: grid; gap: 14px; margin-block: 32px; }
.visit__contact li { display: flex; align-items: center; gap: 14px; font-size: 1.125rem; }
.visit__contact svg { inline-size: 22px; block-size: 22px; fill: var(--accent); }
.visit__contact a { text-decoration-color: rgb(248 168 31 / 0.6); text-underline-offset: 4px; }
.visit__contact a:hover { color: var(--accent); }

.hours {
  margin-block-end: 36px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-deep);
}
.hours__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 14px;
  font-size: 1rem;
  font-weight: 600;
}
.hours__title svg { inline-size: 20px; block-size: 20px; fill: var(--text-muted); }
.hours__list { display: grid; gap: 6px; }
.hours__list div { display: flex; justify-content: space-between; gap: 16px; padding-block: 4px; }
.hours__list dt { color: var(--text-muted); }
.hours__list .is-today dt,
.hours__list .is-today dd { color: var(--accent); font-weight: 600; }
.hours__list .is-today dt::after { content: " · today"; font-weight: 400; }

/* Map: Leaflet + OpenStreetMap tiles. Only the tiles are tinted teal, so the amber pin stays true. */
.visit__map {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg-deep);
  font-family: var(--font-body);
}
.visit__map.is-live .visit__map-fallback { display: none; }
.visit__map .leaflet-container,
.visit__map.leaflet-container { background: var(--bg-deep); font-family: var(--font-body); }
.visit__map .leaflet-tile-pane {
  filter: grayscale(1) invert(1) sepia(1) hue-rotate(135deg) saturate(1.3) brightness(0.95) contrast(1.05);
}
.visit__map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 500;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 0 70px rgb(34 59 64 / 0.65);
  pointer-events: none;
}
.visit__map .leaflet-control-zoom {
  border: 0;
  margin: 12px;
  box-shadow: none;
}
.visit__map .leaflet-control-zoom a {
  inline-size: 40px;
  block-size: 40px;
  line-height: 38px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--text);
}
.visit__map .leaflet-control-zoom a:hover { background: var(--bg-raised); color: var(--accent); }
.visit__map .leaflet-control-zoom-in { border-radius: 10px 10px 0 0 !important; }
.visit__map .leaflet-control-zoom-out { border-radius: 0 0 10px 10px !important; }
.visit__map.leaflet-container .leaflet-control-attribution {
  background: rgb(34 59 64 / 0.85);
  color: var(--text-muted);
  font-size: 0.6875rem;
}
.visit__map.leaflet-container .leaflet-control-attribution a { color: var(--text); }

.map-pin {
  display: grid;
  justify-items: center;
  gap: 4px;
  background: none;
  border: 0;
}
.map-pin svg {
  inline-size: 44px;
  block-size: 44px;
  fill: var(--accent);
  filter: drop-shadow(0 6px 10px rgb(13 26 29 / 0.6));
}
.map-pin span {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: 700 0.875rem/1.2 var(--font-body);
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgb(13 26 29 / 0.8);
}

@media (min-width: 900px) {
  .visit__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 112px); align-items: stretch; }
  .visit__info { align-self: center; }
  .visit__map { aspect-ratio: auto; min-block-size: 520px; }
}

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

.site-footer {
  padding-block: 56px 40px;
  background: var(--bg-deep);
  border-block-start: 1px solid var(--line);
}
.site-footer__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__links svg { inline-size: 18px; block-size: 18px; fill: currentColor; }
.site-footer__note { max-inline-size: 52ch; color: var(--text-muted); }
.site-footer__small { font-size: 0.875rem; color: var(--text-muted); }

.site-footer__social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer__social a {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.site-footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer__social a:active { transform: scale(0.95); }
.site-footer__social svg { inline-size: 20px; block-size: 20px; fill: currentColor; }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 64px; }
  .site-footer__grid nav,
  .site-footer__social { justify-self: end; }
  .site-footer__small { grid-column: 1 / -1; padding-block-start: 24px; border-block-start: 1px solid var(--line); }
}

/* ---------- Mobile order bar ---------- */

.order-bar {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: calc(16px + env(safe-area-inset-bottom));
  z-index: var(--z-order-bar);
  min-block-size: 54px;
  box-shadow: 0 12px 30px -10px rgb(13 26 29 / 0.8);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.order-bar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (min-width: 768px) {
  .order-bar { display: none; }
}

/* ---------- Motion (only when the visitor allows it, only when JS is on) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line,
  .js .hero__sub,
  .js .hero__ctas {
    animation: rise 0.9s var(--ease-out) both;
  }
  .js .hero__title .line:nth-child(2) { animation-delay: 0.08s; }
  .js .hero__sub { animation-delay: 0.18s; }
  .js .hero__ctas { animation-delay: 0.28s; }
  .js .hero__frame { animation: media-in 1.2s var(--ease-out) 0.05s both; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(0.5em); }
  to { opacity: 1; transform: none; }
}

@keyframes media-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.visit__demo { font-size: 0.875rem; color: var(--text-muted); }

.signature__foot { margin-block-start: clamp(24px, 4vw, 40px); }
.signature__track { position: relative; overflow-y: hidden; }
/* Keep the visually-hidden labels anchored inside the scroller, not the page */
.pie { position: relative; }

.site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

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

:root { --catbar-h: 56px; }

.menu-hero { padding-block: clamp(40px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.menu-hero__inner { display: grid; gap: 32px; align-items: end; }
.menu-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 2rem + 9vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
}
.menu-hero__sub { max-inline-size: 42ch; margin-block-start: 20px; color: var(--text-muted); }

.filters { display: none; }
.js .filters { display: block; }
.filters__label { margin-block-end: 10px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.filters__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
  padding: 8px 18px 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.chip svg { inline-size: 18px; block-size: 18px; fill: currentColor; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

@media (min-width: 1024px) {
  .menu-hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); }
}

/* Category bar: sticks under the header, scrolls sideways on small screens */
.catbar {
  position: sticky;
  inset-block-start: var(--header-h);
  z-index: 45;
  background: rgb(34 59 64 / 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.catbar__list {
  position: relative;
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar__list::-webkit-scrollbar { display: none; }

/* Edge fades hint that the bar scrolls; menu.js toggles each side when there is more to see */
@property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
.catbar__list {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
  transition: --fade-start 0.3s, --fade-end 0.3s;
}
.catbar__list.has-more-start { --fade-start: 40px; }
.catbar__list.has-more-end { --fade-end: 56px; }
.catbar__list a {
  position: relative;
  display: block;
  padding-block: 16px;
  min-block-size: var(--catbar-h);
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.catbar__list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  block-size: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.catbar__list a:hover { color: var(--text); }
.catbar__list a[aria-current="true"] { color: var(--text); }
.catbar__list a[aria-current="true"]::after { transform: scaleX(1); }
.catbar__list li.is-empty a { opacity: 0.4; }

/* List + sticky photo panel */
.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(32px, 5vw, 56px) var(--section);
}

.menu-cat { padding-block: 0 clamp(56px, 8vw, 88px); }
.menu-cat.is-filtered { display: none; }
.menu-cat__head { margin-block-end: 24px; }
.menu-cat__title {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  /* html already reserves the header; add room for the category bar */
  scroll-margin-block-start: calc(var(--catbar-h) + 12px);
}
.menu-cat__note { margin-block-start: 10px; color: var(--text-muted); }


.dish-list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }

.dish { position: relative; }
.dish.is-filtered { display: none; }
.dish__head { display: flex; align-items: baseline; gap: 12px; }
.dish__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3125rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color 0.2s;
}
.dish__lead {
  flex: 1;
  min-inline-size: 24px;
  border-block-end: 2px dotted rgb(230 228 226 / 0.25);
  transform: translateY(-5px);
}
.dish__price { font-weight: 600; font-size: 1.0625rem; color: var(--accent); white-space: nowrap; }
.dish__desc { max-inline-size: 52ch; margin-block-start: 4px; color: var(--text-muted); font-size: 0.975rem; }
.dish__tags { display: flex; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.dish__tags li { display: inline-flex; }
.dish__tags svg { inline-size: 18px; block-size: 18px; fill: var(--text-muted); }

.menu-panel { display: none; }

.menu-empty { padding-block: 24px 64px; }
.menu-empty[hidden] { display: none; }
.menu-empty__title { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; }
.menu-empty__body { margin-block: 8px 20px; color: var(--text-muted); }

@media (min-width: 768px) and (max-width: 1023.98px) {
  .dish-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}

@media (min-width: 1024px) {
  .js .menu-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(48px, 6vw, 112px);
    align-items: start;
  }
  .js .dish[data-img] { cursor: default; }
  .js .dish[data-img]:hover .dish__name { color: var(--accent); }

  .js .menu-panel {
    display: block;
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--catbar-h) + 28px);
  }
  .menu-panel__frame {
    position: relative;
    inline-size: 100%;
    block-size: min(calc(100dvh - var(--header-h) - var(--catbar-h) - 110px), 720px);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-deep);
  }
  .menu-panel__img {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease-out);
  }
  .menu-panel__img.is-shown { opacity: 1; transform: none; }
  .menu-panel__label {
    margin-block-start: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
  }
}

/* Notes */
.menu-notes { padding-block: var(--section); background: var(--bg-deep); }
.menu-notes__grid {
  display: grid;
  gap: 32px;
  grid-template-areas: "title" "legend" "allergen" "cta";
}
.menu-notes .h2 { grid-area: title; }
.legend { grid-area: legend; display: grid; gap: 14px; margin: 0; }
.legend div { display: flex; align-items: center; gap: 14px; }
.legend dt { display: inline-flex; }
.legend svg { inline-size: 24px; block-size: 24px; fill: var(--accent); }
.menu-notes__allergen { grid-area: allergen; max-inline-size: 52ch; color: var(--text-muted); }
.menu-notes__grid > .btn { grid-area: cta; justify-self: start; }

@media (min-width: 900px) {
  .menu-notes__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-areas: "title legend" "allergen legend" "cta legend";
    column-gap: clamp(48px, 7vw, 112px);
    align-items: start;
  }
  .legend { align-self: center; }
}
