/* ==========================================================================
   DeCasa — Artisan Sourdough Bakery
   Hand-written CSS. No build step, no framework.
   Tested target: Safari 14+/iOS 14+, Chrome/Edge 90+, Firefox 88+, Samsung Internet.
   --------------------------------------------------------------------------
   0. Tokens              5. Values          10. Contact / form
   1. Reset & base        6. Story           11. Footer
   2. Utilities           7. Menu            12. Lightbox
   3. Header / nav        8. Process         13. Grain, motion, print
   4. Hero / ticker       9. Gallery
   ========================================================================== */

/* ======================= 0. NON-COLOUR TOKENS ============================
   The palette lives in css/themes/*.css and is linked BEFORE this file.
   Anything here is layout or motion, not colour.
   ======================================================================== */
:root {
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1200px;
  --gut: 22px;
  --radius: 3px;
  --radius-lg: 6px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --sect-y: clamp(72px, 10vw, 140px);
}

@media (min-width: 720px) { :root { --gut: 36px; } }
@media (min-width: 1100px) { :root { --gut: 48px; } }

/* ========================= 1. RESET & BASE =============================== */
*, *::before, *::after { box-sizing: border-box; }

/* A component's display rule must never resurrect a hidden element */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* offset for the sticky header when jumping to anchors */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(var(--c-ember), .16);
  text-rendering: optimizeLegibility;
}

/* A warm, subtly lit ground behind every section */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-page);
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; border-style: none; }
svg { fill: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: -.012em;
  font-variation-settings: 'SOFT' 20, 'WONK' 0;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button { background: none; border: 0; cursor: pointer; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { color: var(--cream); font-weight: 600; }
em { font-style: italic; }

::-moz-selection { background: var(--sel-bg); color: var(--sel-ink); }
::selection { background: var(--sel-bg); color: var(--sel-ink); }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Older browsers without :focus-visible still get a visible ring */
.no-focus-visible :focus { outline: 2px solid var(--flame); outline-offset: 3px; }

/* ============================ 2. UTILITIES =============================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
  padding-left: calc(var(--gut) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--gut) + env(safe-area-inset-right, 0px));
}

.section { padding-top: var(--sect-y); padding-bottom: var(--sect-y); position: relative; }

.u-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ember);
  color: var(--btn-ink);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 400;
  margin-bottom: .42em;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.5;
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.1em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow--center { justify-content: center; }
.rule {
  display: block;
  width: 44px; height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--ember-dk), rgba(var(--c-ember), 0));
}
.eyebrow--center .rule:last-child { background: linear-gradient(270deg, var(--ember-dk), rgba(var(--c-ember), 0)); }

.section-head { max-width: 620px; margin-bottom: clamp(38px, 5vw, 62px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head__lead { color: var(--muted); font-size: 17px; margin-bottom: 0; }

.link {
  color: var(--gold);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: color .2s var(--ease), background-size .3s var(--ease);
}
.link:hover, .link:focus { color: var(--flame); background-size: 0 1px; background-position: 100% 100%; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn__icon { flex: none; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--ember {
  background-color: var(--ember);
  background-image: var(--grad-btn);
  color: var(--btn-ink);
  box-shadow: var(--btn-shadow);
}
.btn--ember:hover {
  background-image: var(--grad-btn-hover);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--line-2);
  color: var(--cream);
  background-color: var(--tint-faint);
}
.btn--outline:hover {
  border-color: var(--ember);
  color: var(--flame);
  background-color: rgba(var(--c-ember), .09);
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 20px; font-size: 12px; }
.btn--block { width: 100%; }

/* ========================== 3. HEADER / NAV ============================== */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 20px 0;
  transition: padding .35s var(--ease), background-color .35s var(--ease),
              border-color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--head-fade);
  opacity: 1;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.site-head.is-stuck {
  padding: 11px 0;
  background-color: var(--head-bg);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(var(--c-shadow), .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.site-head.is-stuck::before { opacity: 0; }

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand__mark {
  flex: none;
  display: block;
  width: 38px; height: 38px;
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
.brand__mark img { width: 100%; height: 100%; display: block; }
.brand:hover .brand__mark { transform: rotate(-8deg); filter: brightness(1.08); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--cream);
}
.brand__sub {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted-dk);
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .07em;
  color: var(--cream-dim);
  padding: 6px 0;
  transition: color .22s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .32s var(--ease);
}
.nav__link:hover, .nav__link.is-current { color: var(--flame); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }

/* Hamburger ------------------------------------------------------------ */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  border-radius: 50%;
}
.nav-toggle__box { position: relative; display: block; width: 22px; height: 12px; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  position: absolute;
  left: 0;
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .34s var(--ease), opacity .2s var(--ease), width .34s var(--ease);
}
.nav-toggle__bar { top: 0; }
.nav-toggle__bar::before { content: ""; top: 5.5px; width: 16px; }
.nav-toggle__bar::after { content: ""; top: 11px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-11px) rotate(-90deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 96px 34px calc(40px + env(safe-area-inset-bottom, 0px));
    background: var(--grad-drawer);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .48s var(--ease-out), visibility .48s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: block;
    padding: 18px 2px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -.01em;
    color: var(--cream);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 30px; }
  .nav__foot { display: block; margin-top: auto; padding-top: 34px; }
}

.nav__foot { display: none; }
.nav__foot-tag {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
}
.nav__foot .link { font-size: 13.5px; }

/* Scrim behind the mobile drawer */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--scrim-nav);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.nav-scrim.is-on { opacity: 1; visibility: visible; }

/* ========================= 4. HERO / TICKER ============================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 104px;
  overflow: hidden;
  isolation: isolate;
}

/* The photo itself is chosen in css/hero-image.css. Using a background rather
   than an <img> is what lets a single custom property swap it. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-tall);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center var(--hero-focus, 46%);
  filter: var(--img-hero);
  transform: scale(1.06);
  animation: heroDrift 34s var(--ease) infinite alternate;
}
@media (min-width: 760px) {
  .hero__media { background-image: var(--hero-wide); }
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-1.4%, -1.6%, 0); }
}

/* Darkening layers: vignette + bottom fade + warm top wash */
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background: var(--veil-hero);
}

/* Ember light spilling from the bottom, like an open oven */
.hero__glow {
  position: absolute;
  left: 50%; bottom: -22%;
  z-index: 2;
  width: min(1400px, 150%);
  height: 62%;
  transform: translateX(-50%);
  background: var(--glow-hero);
  animation: flicker 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flicker {
  0%, 100% { opacity: var(--glow-hero-opacity); transform: translateX(-50%) scale(1); }
  22%      { opacity: 1;   transform: translateX(-50%) scale(1.035); }
  41%      { opacity: .74; transform: translateX(-50%) scale(.985); }
  63%      { opacity: .96; transform: translateX(-50%) scale(1.02); }
  80%      { opacity: .8;  transform: translateX(-50%) scale(.995); }
}

.hero__embers {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(54px, 9vh, 104px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: riseIn .9s var(--ease-out) .15s forwards;
}
.hero__eyebrow .rule { background: linear-gradient(90deg, var(--gold), rgba(var(--c-gold), 0)); width: 52px; }

.hero__title {
  margin: 0;
  overflow: hidden;
  line-height: .92;
}
.hero__title-line {
  display: block;
  font-size: clamp(62px, 15.5vw, 196px);
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--cream);
  font-variation-settings: 'SOFT' 34, 'WONK' 0, 'opsz' 144;
  text-shadow: var(--hero-title-shadow);
  background-image: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(105%);
  animation: lineUp 1.15s var(--ease-out) .22s forwards;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title-line { color: var(--cream); -webkit-text-fill-color: currentColor; }
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.hero__tagline {
  margin: clamp(6px, 1.2vw, 14px) 0 clamp(18px, 2.6vw, 28px);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.8vw, 30px);
  letter-spacing: .01em;
  color: var(--flame);
  opacity: 0;
  animation: riseIn .9s var(--ease-out) .62s forwards;
}

.hero__sub {
  margin: clamp(14px, 2vw, 22px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 2.1vw, 24px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: .005em;
  /* deliberately darker than the lead so it reads as a subtitle, not body copy */
  color: var(--gold);
  opacity: 0;
  animation: riseIn .9s var(--ease-out) .5s forwards;
}
.hero__sub em { font-style: italic; color: var(--ember); font-weight: 500; }

.hero__lead {
  max-width: 46ch;
  margin: clamp(10px, 1.4vw, 16px) 0 clamp(28px, 4vw, 40px);
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--hero-lead-ink);
  text-shadow: var(--hero-lead-shadow);
  opacity: 0;
  animation: riseIn .9s var(--ease-out) .62s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: riseIn .9s var(--ease-out) .76s forwards;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: clamp(30px, 4.4vw, 46px);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: riseIn .9s var(--ease-out) .9s forwards;
}
.hero__facts li { display: flex; align-items: center; gap: 11px; }
/* Phones stack the facts, so each one gets its own ember dash */
.hero__facts li::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--ember-dk);
  flex: none;
}
@media (max-width: 699px) {
  /* One fact per line so the dashes read as a list, not stray marks */
  .hero__facts { display: grid; gap: 8px; }
}
@media (min-width: 700px) {
  /* Wide enough for one line: dots sit between the items instead */
  .hero__facts li::before { display: none; }
  .hero__facts li + li::before {
    display: block;
    width: 4px; height: 4px;
    margin-right: 15px;
    border-radius: 50%;
  }
}

.hero__scroll {
  position: absolute;
  right: max(var(--gut), env(safe-area-inset-right, 0px));
  bottom: 92px;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  transition: color .25s var(--ease);
}
.hero__scroll:hover { color: var(--flame); }
.hero__scroll-line {
  display: block;
  width: 1px; height: 58px;
  background: linear-gradient(180deg, var(--line-2), rgba(var(--c-ember), .9));
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -60%; left: 0;
  width: 1px; height: 60%;
  background: var(--flame);
  animation: scrollDrop 2.1s var(--ease) infinite;
}
@keyframes scrollDrop { 0% { top: -60%; } 60%, 100% { top: 100%; } }
@media (min-width: 1024px) and (min-height: 620px) { .hero__scroll { display: flex; } }

/* Ticker --------------------------------------------------------------- */
.ticker {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(var(--c-line), .5);
  border-bottom: 1px solid rgba(var(--c-line), .34);
  background: var(--ticker-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: -webkit-max-content; width: max-content; animation: marquee 52s linear infinite; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__group span {
  padding: 0 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: var(--cream-dim);
  white-space: nowrap;
}
.ticker__group i { color: var(--ember); font-style: normal; font-size: 8px; opacity: .8; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ============================= 5. VALUES ================================ */
.values {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0;
  background: var(--grad-values);
  border-bottom: 1px solid var(--line);
}
.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 46px);
}
@media (min-width: 760px) { .values__grid { grid-template-columns: repeat(3, 1fr); } }

.value { position: relative; padding-left: 0; }
@media (min-width: 760px) {
  .value + .value { padding-left: clamp(28px, 3.4vw, 46px); border-left: 1px solid var(--line); }
}
.value__icon {
  display: inline-flex;
  color: var(--ember);
  margin-bottom: 18px;
}
.value__title {
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  margin-bottom: 10px;
}
.value__text { font-size: 15.2px; color: var(--muted); margin: 0; line-height: 1.7; }

/* ============================== 6. STORY ================================ */
.story { background: var(--ink-soft); }
.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
}
@media (min-width: 900px) { .story__grid { grid-template-columns: 0.92fr 1fr; } }

.story__media { position: relative; }

.frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-2);
  padding: 12px;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  box-shadow: var(--frame-inner);
}
.frame img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  filter: var(--img-frame);
}
.frame--tall img { aspect-ratio: 4 / 5; }
@supports not (aspect-ratio: 4 / 5) { .frame--tall img { height: 500px; } }
.frame__cap {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted-dk);
  font-style: italic;
}

.story__stamp {
  position: absolute;
  right: -18px;
  bottom: 42px;
  display: block;
  width: 150px;
  height: 150px;
  transform: rotate(-9deg);
  /* the file is already a cut-out circle, so the shadow follows its shape */
  -webkit-filter: drop-shadow(0 14px 26px rgba(var(--c-shadow), .55));
  filter: drop-shadow(0 14px 26px rgba(var(--c-shadow), .55));
}
.story__stamp img { width: 100%; height: 100%; display: block; }
@media (max-width: 560px) { .story__stamp { width: 104px; height: 104px; right: -10px; bottom: 56px; } }

.story__body .h2 { max-width: 15ch; }

.pullquote {
  margin: 34px 0;
  padding: 22px 0 22px 26px;
  border-left: 2px solid var(--ember-dk);
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--gold);
}

/* ============================== 7. MENU ================================= */
.menu { background: var(--ink); }
.menu::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--c-ember), 0), rgba(var(--c-ember), .4), rgba(var(--c-ember), 0));
}

/* Dish grid */
.dishes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .dishes { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  /* two columns: the wide card takes the full row on its own */
  .dish--wide { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .dishes { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  /* three columns: row one holds three cards, so the wide card takes the
     remaining two so it sits beside the buns instead of stranded below */
  .dish--wide { grid-column: span 2; }
}

.dish {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--grad-panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dish::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, rgba(var(--c-ember), 0), rgba(var(--c-flame), .75), rgba(var(--c-ember), 0));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.dish:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.dish:hover::before { opacity: 1; }

.dish__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(22px, 2.4vw, 30px);
}
/* Label sits above the name — product names are long and used to collide
   with the label when the two shared a row. */
/* Category label across the top, then the name and its price on one line.
   A grid keeps the price hard-right however long the name runs. */
.dish__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 16px;
  margin-bottom: 12px;
}
.dish__cat   { grid-column: 1 / -1; grid-row: 1; }
.dish__name  { grid-column: 1; grid-row: 2; }
.dish__price { grid-column: 2; grid-row: 2; justify-self: end; }
.dish__name {
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 500;
  letter-spacing: -.014em;
}
.dish__cat {
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
}
.dish__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  color: var(--ember);
  letter-spacing: -.01em;
}
.dish__price-note {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
.dish--feature .dish__price-note { color: var(--chip-ink-photo); }

.dish__mini {
  margin: -4px 0 16px;
  padding: 10px 13px;
  border-left: 2px solid var(--ember-dk);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(var(--c-ember), .07);
  font-size: 13.6px;
  line-height: 1.55;
  color: var(--cream-dim);
}
.dish__mini strong { color: var(--ember); }

.dish__allergen {
  margin: -6px 0 16px;
  font-size: 13.2px;
  line-height: 1.5;
  color: var(--muted);
}
.dish__allergen strong { color: var(--gold); }

.dish__desc { font-size: 14.8px; line-height: 1.68; color: var(--muted); margin-bottom: 18px; }
.dish__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.dish__notes li {
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dk);
  background: var(--chip-bg);
}

/* Featured photo cards */
.dish--feature { min-height: 420px; }
.dish--feature .dish__media { position: absolute; inset: 0; z-index: 0; }
.dish--feature .dish__media img {
  width: 100%; height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  filter: var(--img-card);
  transform: scale(1.01);
  transition: transform 1.1s var(--ease), filter .5s var(--ease);
}
.dish--feature:hover .dish__media img { transform: scale(1.07); filter: var(--img-card-hover); }
.dish--feature .dish__body {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: auto;
  background: var(--scrim-feature);
  /* enough clear space above the text that the photograph actually reads */
  padding-top: clamp(96px, 15vw, 165px);
}
.dish--feature .dish__desc { color: var(--scrim-ink); margin-bottom: 16px; }
.dish--feature .dish__notes li { background: var(--chip-bg-photo); border-color: var(--chip-border-photo); color: var(--chip-ink-photo); }

.dish__badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid var(--badge-border);
  border-radius: 100px;
  background: var(--badge-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--badge-ink);
}

.dish.is-hidden { display: none; }

.menu__foot {
  margin-top: clamp(30px, 4vw, 46px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* The plain boule has no photograph, so it gets a drawn one */
.dish--plain { overflow: hidden; }
.dish--plain .dish__desc + .dish__desc { margin-top: -6px; }
.dish__deco {
  position: absolute;
  right: -26px; bottom: -22px;
  z-index: 0;
  color: var(--ember);
  opacity: .1;
  pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.dish--plain:hover .dish__deco { transform: translate(-6px, -6px) rotate(-4deg); opacity: .16; }

/* Inclusions card — the seven flavours */
.dish__desc--wide { max-width: 62ch; }
.flavours {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 22px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
@media (min-width: 560px) { .flavours { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .flavours { grid-template-columns: repeat(3, 1fr); } }

.flavour {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.4px;
  color: var(--cream-dim);
  line-height: 1.4;
}
.flavour__dot {
  flex: none;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--ember);
  opacity: .75;
}
.flavour--star { color: var(--cream); font-weight: 500; }
.flavour--star .flavour__dot { opacity: 1; box-shadow: 0 0 0 3px rgba(var(--c-ember), .18); }
.flavour__tag {
  margin-left: 2px;
  margin-top: 2px;
  padding: 3px 9px;
  border: 1px solid var(--badge-border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--badge-ink);
  white-space: nowrap;
}

.flavour__name { display: inline; }
.flavour__what {
  display: block;
  color: var(--muted);
  font-size: 13.4px;
  font-style: italic;
}
.flavour--star .flavour__what { color: var(--gold); font-weight: 400; }

/* ========================== 8b. ORDERING =============================== */
.ordering {
  background: var(--grad-values);
  border-top: 1px solid var(--line);
}
.logistics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) { .logistics { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1080px) { .logistics { grid-template-columns: repeat(4, 1fr); } }

.logi {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--grad-panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.logi:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.logi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 20px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--ember);
}
.logi__kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-dk);
}
.logi__title { font-size: clamp(19px, 2vw, 23px); font-weight: 500; margin-bottom: 12px; }
.logi__text { font-size: 14.8px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.paylist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 16px;
}
.paylist__item {
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: var(--chip-bg);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.logi__note {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.4px;
  font-style: italic;
  color: var(--gold);
}

/* ============================= 9. GALLERY =============================== */
.gallery { background: var(--ink-soft); border-top: 1px solid var(--line); }

/* Three thumbnails only. Everything else stays in the DOM so the viewer can
   page through the whole set, but is never rendered as a tile. */
.grid-gal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 620px) {
  .grid-gal { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.tile--more { display: none; }

/* "+9 more" sits on the last thumbnail; added by js/main.js */
.tile__more {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: var(--radius-lg);
  background: rgba(var(--c-ground), .62);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  color: var(--cream);
  pointer-events: none;
  transition: background-color .3s var(--ease);
}
.tile__btn:hover .tile__more { background: rgba(var(--c-ground), .5); }
.tile__more-count {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1;
}
.tile__more-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.tile { position: relative; margin: 0; }
.tile__btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  cursor: -webkit-zoom-in;
  cursor: zoom-in;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.tile__btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  -o-object-fit: cover;
  object-fit: cover;
  filter: var(--img-tile);
  transition: transform 1.2s var(--ease), filter .45s var(--ease);
}
@supports not (aspect-ratio: 1 / 1) {
  .tile__btn img { height: 320px; }
}
.tile__btn:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile__btn:hover img { transform: scale(1.05); filter: var(--img-tile-hover); }

.tile__zoom {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--badge-border);
  border-radius: 50%;
  background: var(--badge-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--badge-ink);
  opacity: 0;
  transform: scale(.86);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile__btn:hover .tile__zoom, .tile__btn:focus .tile__zoom { opacity: 1; transform: scale(1); }

.tile__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 42px 20px 16px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--scrim-tile);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--gold);
  pointer-events: none;
}

/* ======================== 10. CONTACT / FORM ============================= */
.contact {
  position: relative;
  background: var(--grad-contact);
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 5.4vw, 76px);
  align-items: start;
}
@media (min-width: 940px) { .contact__grid { grid-template-columns: 1fr 1.06fr; } }

.info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 36px 0 30px;
}
@media (min-width: 520px) { .info { grid-template-columns: repeat(2, 1fr); gap: 26px 24px; } }
.info__item { display: flex; gap: 14px; align-items: flex-start; }
.info__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ember);
  background: var(--chip-bg);
}
.info__title {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-dk);
  margin-bottom: 6px;
}
.info__text { font-size: 14.6px; line-height: 1.6; color: var(--cream-dim); margin: 0; }

.contact__note {
  padding: 16px 20px;
  border-left: 2px solid var(--ember-dk);
  background: rgba(var(--c-ember), .06);
  font-size: 14.4px;
  color: var(--cream-dim);
  margin: 0;
}

/* Tabs — weekly order vs special request */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}
.tab {
  flex: 1 1 auto;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-bottom-color: transparent;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--tint-faint);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .22s var(--ease), background-color .22s var(--ease), border-color .22s var(--ease);
}
.tab:hover { color: var(--flame); }
.tab.is-active {
  background: var(--panel-2);
  border-color: var(--line-2);
  border-bottom-color: var(--panel-2);
  color: var(--ember);
}
.tabpanel[hidden] { display: none; }
.tabs + .tabpanel .form { border-top-left-radius: 0; border-top-right-radius: 0; }

.form__intro {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 16.5px;
  font-style: italic;
  color: var(--gold);
}

/* Story sign-off */
.signoff { margin-top: 26px; font-size: 15.4px; color: var(--muted); }
.signoff__name {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: var(--gold);
}

/* Form ----------------------------------------------------------------- */
.form {
  position: relative;
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--grad-form);
  box-shadow: var(--shadow);
}
.field { display: block; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field__label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.req { color: var(--ember); }
.opt { text-transform: none; letter-spacing: .02em; font-weight: 400; color: var(--muted-dk); font-size: 10.5px; }

.field__input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease);
}
.field__input::-webkit-input-placeholder { color: var(--muted-dk); }
.field__input::-moz-placeholder { color: var(--muted-dk); opacity: 1; }
.field__input:-ms-input-placeholder { color: var(--muted-dk); }
.field__input::placeholder { color: var(--muted-dk); opacity: 1; }
.field__input:hover { border-color: var(--input-border-hover); }
.field__input:focus {
  outline: none;
  border-color: var(--ember);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3px rgba(var(--c-ember), .16);
}
.field__input--area { resize: vertical; min-height: 108px; line-height: 1.65; }
.field__input--select { padding-right: 44px; cursor: pointer; }
.field__input--select option, .field__input--select optgroup { background: var(--select-bg); color: var(--cream); }
/* Date inputs on WebKit keep their own text colour otherwise */
.field__input[type="date"] { min-height: 50px; }
.field__input[type="date"]::-webkit-calendar-picker-indicator { -webkit-filter: invert(72%) sepia(24%) saturate(420%) hue-rotate(348deg); filter: invert(72%) sepia(24%) saturate(420%) hue-rotate(348deg); cursor: pointer; }
.field__input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.select-wrap { position: relative; }
.select-wrap__chev {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%);
  color: var(--ember);
  pointer-events: none;
}

/* Multi-item order picker */
.items-field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;            /* Safari/Firefox shrink fix for fieldset */
}
.items-field__legend { padding: 0; margin-bottom: 9px; }
.items-field__hint {
  margin: 10px 0 0;
  font-size: 12.4px;
  color: var(--muted-dk);
}

.items { display: grid; gap: 10px; }
.item-row {
  display: grid;
  grid-template-columns: 1fr 84px auto;
  gap: 8px;
  align-items: start;
}
.item-row__pick { min-width: 0; }
.item-row__qty { min-width: 0; }
.item-row__qty .field__input { text-align: center; padding-left: 8px; padding-right: 8px; }

.item-row__rm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 50px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--tint-faint);
  color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.item-row__rm:hover { color: var(--err); border-color: var(--err-border); background: rgba(var(--c-ember), .06); }
.item-row__rm[hidden] { display: none; }

/* Mini toggle — only rendered for the loaves that come in a mini size */
.mini-toggle {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  padding: 7px 12px 7px 9px;
  border: 1px dashed var(--line-2);
  border-radius: 100px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  justify-self: start;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.mini-toggle[hidden] { display: none; }
.mini-toggle:hover { border-color: var(--ember); background: rgba(var(--c-ember), .06); }
.mini-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.mini-toggle__box {
  flex: none;
  width: 17px; height: 17px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--input-bg);
  position: relative;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.mini-toggle__box::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--btn-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.4);
  opacity: 0;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.mini-toggle input:checked + .mini-toggle__box {
  background: var(--ember);
  border-color: var(--ember);
}
.mini-toggle input:checked + .mini-toggle__box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.mini-toggle input:focus-visible + .mini-toggle__box { outline: 2px solid var(--flame); outline-offset: 2px; }
.mini-toggle__text {
  font-size: 12.8px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cream-dim);
}
.mini-toggle__hint {
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--muted-dk);
}

/* Running total under the line items */
.items-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.items-total[hidden] { display: none; }
.items-total__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.items-total__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}

.add-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: none;
  color: var(--ember);
  font-size: 12.4px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.add-item:hover { color: var(--flame); border-color: var(--ember); background: rgba(var(--c-ember), .07); }
.add-item[hidden] { display: none; }

/* On a narrow phone the bake name gets truncated inside a shared row,
   so give the select the full width and drop quantity below it. */
@media (max-width: 560px) {
  .item-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .item-row:last-child { padding-bottom: 0; border-bottom: 0; }
  .item-row__pick { grid-column: 1 / -1; }
  .item-row__qty { justify-self: start; width: 92px; }
  .item-row__rm { height: 44px; }
}

.field__err {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--err);
  letter-spacing: .01em;
}
.field__input.is-invalid { border-color: var(--err-border); box-shadow: var(--err-ring); }

.form .btn { margin-top: 8px; }
.form__fine {
  margin: 14px 0 0;
  font-size: 12.2px;
  color: var(--muted-dk);
  text-align: center;
}

.form__fail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--err-border);
  border-radius: var(--radius);
  background: rgba(var(--c-ember), .07);
}
.form__fail-mark { flex: none; color: var(--err); }
.form__fail-text { margin: 0; font-size: 14px; color: var(--cream-dim); }

/* A submit button mid-send */
.btn[disabled] { opacity: .62; cursor: progress; }
.btn[disabled]:hover { transform: none; }

.field__hint {
  margin: 8px 0 0;
  font-size: 12.4px;
  color: var(--muted-dk);
}

/* What happens after the button is pressed */
/* The honeypot must be reachable in the DOM but invisible and unfocusable,
   so a person never meets it and a bot always does. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.turnstile:empty { display: none; }
.turnstile { margin: 18px 0 4px; }

.form__expect {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--chip-bg);
}
.form__expect-title {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
}
.form__expect-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: expect;
}
.form__expect-list li {
  position: relative;
  counter-increment: expect;
  padding-left: 30px;
  margin-bottom: 9px;
  font-size: 13.6px;
  line-height: 1.6;
  color: var(--cream-dim);
}
.form__expect-list li::before {
  content: counter(expect);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ember-dk);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--ember);
}
.form__expect-list li:last-child { margin-bottom: 0; }
.form__expect-note {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 12.6px;
  line-height: 1.55;
  color: var(--muted);
}

.form__done {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--ok-border);
  border-radius: var(--radius);
  background: var(--ok-bg);
}
.form__done-mark { flex: none; color: var(--ok-ink); }
.form__done-text { margin: 0; font-size: 14px; color: var(--cream-dim); }

/* ============================= 11. FOOTER =============================== */
.site-foot {
  position: relative;
  padding-top: clamp(56px, 7vw, 86px);
  background: var(--grad-foot);
  border-top: 1px solid var(--line);
}
.site-foot__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: clamp(40px, 5vw, 60px);
}
@media (min-width: 700px) { .site-foot__inner { grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; } }

.brand__name--foot { font-size: 34px; display: block; margin-bottom: 14px; }
.site-foot__tag { font-size: 14.4px; color: var(--muted); margin: 0; line-height: 1.7; }
.site-foot__h {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-dk);
  margin-bottom: 16px;
}
.site-foot__nav ul li { margin-bottom: 10px; font-size: 14.6px; }
.site-foot__col ul:not(.foot-links) li { margin-bottom: 10px; font-size: 14.6px; }

.foot-links { display: grid; gap: 12px; }
.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14.4px;
  color: var(--cream-dim);
  transition: color .2s var(--ease);
}
.foot-link__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--ember);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.foot-link__text {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  padding-bottom: 1px;
  transition: background-size .3s var(--ease);
}
.foot-link:hover { color: var(--flame); }
.foot-link:hover .foot-link__icon { color: var(--flame); border-color: var(--ember); background: rgba(var(--c-ember), .1); }
.foot-link:hover .foot-link__text { background-size: 100% 1px; }
@media (max-width: 420px) { .foot-link { font-size: 13.4px; } }

.site-foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 12.6px;
  color: var(--muted-dk);
}
.site-foot__base p { margin: 0; }
.site-foot__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  letter-spacing: .06em;
  transition: color .22s var(--ease);
}
.site-foot__top:hover { color: var(--flame); }
.site-foot__top svg { transition: transform .3s var(--ease); }
.site-foot__top:hover svg { transform: translateY(-3px); }

/* ============================ 12. LIGHTBOX ============================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 54px);
  padding-bottom: calc(clamp(16px, 4vw, 54px) + env(safe-area-inset-bottom, 0px));
  background: var(--lb-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; max-height: 100%; }
.lightbox__img {
  max-width: 100%;
  max-height: 76vh;
  max-height: 76svh;
  -o-object-fit: contain;
  object-fit: contain;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(.97);
  transition: transform .35s var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__cap {
  max-width: 60ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--cream-dim);
}

.lightbox__count {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lightbox__close, .lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--lb-btn-bg);
  color: var(--cream);
  transition: color .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { color: var(--flame); border-color: var(--ember); background: rgba(var(--c-ember), .14); }
.lightbox__close { top: calc(18px + env(safe-area-inset-top, 0px)); right: 18px; }
.lightbox__nav--prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox__nav--next { right: 14px; top: 50%; margin-top: -24px; }
@media (min-width: 800px) {
  .lightbox__close { top: 28px; right: 28px; }
  .lightbox__nav--prev { left: 28px; }
  .lightbox__nav--next { right: 28px; }
}

/* ==================== 13. GRAIN, MOTION, REVEALS, PRINT ================= */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 120;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate3d(0,0,0); }
  20%  { transform: translate3d(-4%,3%,0); }
  40%  { transform: translate3d(3%,-4%,0); }
  60%  { transform: translate3d(-3%,-2%,0); }
  80%  { transform: translate3d(4%,2%,0); }
  100% { transform: translate3d(0,0,0); }
}

/* Scroll reveals — only applied once JS confirms support */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; will-change: auto; }

/* Lock scrolling behind the drawer / lightbox */
body.is-locked { overflow: hidden; }

/* Reduce Motion: stop every animation, but never leave a strip of content
   frozen mid-scroll — the ticker becomes a plain, centred, wrapping list. */
@media (prefers-reduced-motion: reduce) {
  .ticker {
    -webkit-mask-image: none;
    mask-image: none;
    padding: 15px 0;
  }
  .ticker__track { width: auto; display: block; }
  .ticker__group { flex-wrap: wrap; justify-content: center; padding: 0 var(--gut); }
  .ticker__group + .ticker__group { display: none; }
  .ticker__group span { padding: 3px 16px; font-size: 14px; }

  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__title-line { transform: none; }
  .hero__eyebrow, .hero__tagline, .hero__lead, .hero__actions, .hero__facts { opacity: 1; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}

/* Coarse pointers: hover effects that need a mouse are wasted here */
@media (hover: none) {
  .dish:hover { transform: none; }
  .tile__btn:hover { transform: none; }
  .tile__zoom { opacity: 1; transform: scale(1); }
  .btn:hover { transform: none; }
}

/* Very small phones */
@media (max-width: 380px) {
  .btn { padding: 14px 20px; font-size: 12.5px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .brand__sub { display: none; }
}

/* Landscape phones — keep the hero from swallowing the screen */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 560px; padding-top: 84px; }
  .hero__title-line { font-size: clamp(46px, 9vw, 84px); }
}

@media print {
  body::before, .grain, .hero__embers, .hero__glow, .site-head, .ticker, .lightbox, .hero__scroll { display: none !important; }
  body { background: #fff; color: #111; }
  .hero { min-height: 0; padding-top: 20px; }
  .hero__veil { background: none; }
  h1, h2, h3 { color: #111; }
  .dish, .logi, .form { border-color: #ccc; background: #fff; }
  .dish__desc, .logi__text, .section-head__lead { color: #444; }
  a { color: #111; }
}
