/* Boi Makes Pizza — ordering site
   Follows the BMP Brand Manual and Website Brief v2.
   Two themes for review: dark (Burnt ground) and light (Mozz ground). */

@font-face { font-family: 'AMSI Pro Ultra'; src: url(../assets/fonts/AmsiPro-Ultra.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Bestie Seventy'; src: url(../assets/fonts/BestieSeventy.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(../assets/fonts/SpaceGrotesk-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(../assets/fonts/SpaceGrotesk-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(../assets/fonts/SpaceGrotesk-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(../assets/fonts/SpaceMono-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url(../assets/fonts/SpaceMono-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Brand colours (manual 03) */
  --burnt: #130908;
  --mozz: #FDFCF4;
  --highlighted: #EFE52A;
  --honey: #E84E18;

  --f-title: 'AMSI Pro Ultra', 'Arial Black', Impact, sans-serif;
  --f-accent: 'Bestie Seventy', 'Marker Felt', cursive;
  --f-ui: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;

  --r-btn: 8px;
  --r-card: 16px;
  --line: 2px;
  --gutter: 16px;
  --max: 1200px;
  --snap: 150ms;
}

/* Light: Mozz ground, Burnt ink. Primary buttons are Burnt fill, Mozz text. */
:root[data-theme="light"] {
  --bg: var(--mozz);
  --fg: var(--burnt);
  --mute: #5F5652;
  --ink: var(--burnt);
  --surface: #F4F1E4;
  --btn-bg: var(--burnt);
  --btn-fg: var(--mozz);
  --block-bg: var(--burnt);
  --block-fg: var(--mozz);
  --warn: #B23A0E;
  --tex: url(../assets/img/tex-paper.jpg);
  --grain: url("data:image/svg+xml,%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 values='0 0 0 0 .07 0 0 0 0 .035 0 0 0 0 .03 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-veil: rgba(253, 252, 244, .62);
  --map-ground: #ECE8DA;
  --map-block: #DDD7C5;
  --map-road: #FDFCF4;
  color-scheme: light;
}

/* Dark: Burnt ground, Mozz ink. The button rule reversed: Mozz fill, Burnt text. */
:root[data-theme="dark"] {
  --bg: var(--burnt);
  --fg: var(--mozz);
  --mute: #B5ABA4;
  --ink: var(--mozz);
  --surface: #1F1412;
  --btn-bg: var(--mozz);
  --btn-fg: var(--burnt);
  --block-bg: var(--mozz);
  --block-fg: var(--burnt);
  --warn: #F27A4E;
  --tex: url(../assets/img/tex-dark.jpg);
  --grain: url("data:image/svg+xml,%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 values='0 0 0 0 .99 0 0 0 0 .99 0 0 0 0 .96 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-veil: rgba(19, 9, 8, .94);
  --map-ground: #241816;
  --map-block: #33231F;
  --map-road: #4A3632;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Home: the page eases to the next look as you scroll (proximity, so the rest scrolls freely). */
html:has(.look) { scroll-snap-type: y mandatory; scroll-padding-top: var(--nav-h); }
/* Home reads as pages: the cover, the Meet the Bois page, one page per pizza, then the rest. Each stops the scroll. */
.cover--home, .books, .credits, .footer { scroll-snap-align: start; }
/* The page ground has a tooth: BMP's paper (or dark wall) texture under a veil, plus fine grain, pinned to
   the screen so it never tiles visibly. Blocks that paint the page colour use the same stack. */
html { background: var(--bg); }
html { --ground: var(--grain) 0 0 / 220px repeat fixed, linear-gradient(var(--tex-veil), var(--tex-veil)) fixed, var(--tex) center / cover no-repeat fixed, var(--bg); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  font: 400 16px/1.45 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
[hidden] { display: none !important; }

.on-light { display: none; }
:root[data-theme="light"] .on-light { display: block; }
:root[data-theme="light"] .on-dark { display: none; }

.skip { position: absolute; inset-inline-start: 8px; inset-block-start: -60px; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 14px; border-radius: var(--r-btn); z-index: 50; }
.skip:focus { inset-block-start: 8px; }

/* ---------- Type (manual 04) ---------- */
.title, h1, .h1 { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; line-height: 0.9; letter-spacing: 0.005em; margin: 0; }
h1, .h1 { font-size: clamp(44px, 9vw, 104px); }
.h2 { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; line-height: 0.95; font-size: clamp(32px, 5vw, 52px); margin: 0; }
.h3 { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; line-height: 1; font-size: 28px; margin: 0; }
/* Bestie's capitals stand much taller than AMSI's at the same size, so it runs smaller to match. */
.bestie { font-family: var(--f-accent); font-weight: 400; text-transform: uppercase; font-size: 0.62em; line-height: 1; display: inline-block; transform: rotate(-4deg); letter-spacing: 0.01em; }
.label { font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; margin: 0; }
.mono { font-family: var(--f-mono); text-transform: uppercase; font-size: 14px; letter-spacing: 0.04em; }
.lede { font-size: 18px; max-width: 34ch; margin: 0; }
.mute { color: var(--mute); }
.chip { display: inline-block; background: var(--highlighted); color: var(--burnt); font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }

/* ---------- Motion ---------- */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --nav-h: 64px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-btn);
  font-family: var(--f-mono); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: var(--line) solid var(--ink);
  transition: transform var(--snap) var(--ease), background-color var(--snap), color var(--snap), border-color var(--snap);
}
.btn svg { transition: transform 200ms var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn--primary:hover { background: var(--highlighted); border-color: var(--highlighted); color: var(--burnt); }
.btn--secondary { background: transparent; color: var(--fg); }
.btn--secondary:hover { background: var(--fg); color: var(--bg); }
.btn--block { width: 100%; min-height: 56px; font-size: 16px; }
.btn--lg { min-height: 56px; padding: 0 24px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; color: var(--fg); }
.on-ink .btn--primary { background: var(--mozz); color: var(--burnt); border-color: var(--mozz); }
.on-ink .btn--primary:hover { background: var(--highlighted); border-color: var(--highlighted); }
.on-ink .btn--secondary { color: var(--mozz); border-color: var(--mozz); }
.on-ink .btn--secondary:hover { background: var(--mozz); color: var(--burnt); }
.linkbtn { background: none; border: 0; padding: 4px 0 4px 10px; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; letter-spacing: inherit; text-transform: inherit; }

/* Hover: the scribble. A hand-drawn Highlighted marker loop (two round-capped strokes) scrawls in under the
   words, left to right in four steps (~12 fps, like the brand moments). No underlines, no blocks.
   Names get a fat scribble; small links a thinner one. Keyboard focus on the list rows shows the same. */
:root { --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 28 5, 52 19, 78 11 S 128 4, 152 12 S 186 17, 197 9' fill='none' stroke='%23EFE52A' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 19 C 46 13, 92 22, 132 16 S 176 13, 192 17' fill='none' stroke='%23EFE52A' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E"); }
.books__name, .acc__name, .menu-item__open .h3, .footer__cols a, .back, .linkbtn, .summary__show, .nav__links a {
  width: fit-content; text-decoration: none; background: var(--scribble) 0 100% / 0% .42em no-repeat; transition: background-size 180ms steps(4, end);
}
.books__name, .acc__name, .menu-item__open .h3 { padding-block-end: .34em; margin-block-end: -.34em; background-size: 0% .46em; }
.books__item:is(:hover, :focus-visible) .books__name,
.acc__open:is(:hover, :focus-visible) .acc__name,
.menu-item__open:is(:hover, :focus-visible) .h3 { background-size: 100% .46em; }
.footer__cols a:hover, .back:hover, .linkbtn:hover, .summary__show:hover, .nav__links a:hover, .nav__links a[aria-current="page"] { background-size: 100% .6em; }
.nav__links a { background-position: 8px calc(100% - 4px); background-size: 0% 10px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { background-size: calc(100% - 16px) 10px; }
.books__item:is(:hover, :focus-visible) :is(.books__no, .books__price) { color: var(--fg); }
@media (prefers-reduced-motion: reduce) {
  .books__name, .acc__name, .menu-item__open .h3, .footer__cols a, .back, .linkbtn, .summary__show, .nav__links a { transition: none; }
}

.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-btn); border: var(--line) solid var(--ink); background: transparent; color: var(--fg); cursor: pointer; padding: 0; transition: background-color var(--snap), color var(--snap); }
.icon-btn:hover { background: var(--fg); color: var(--bg); }
.add-btn { position: relative; width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: var(--r-btn); border: var(--line) solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; font-family: var(--f-mono); font-weight: 700; font-size: 15px; padding: 0; flex: none; transition: transform var(--snap) var(--ease), background-color var(--snap), border-color var(--snap); }
.add-btn:hover { background: var(--highlighted); border-color: var(--highlighted); color: var(--burnt); transform: rotate(90deg); }
.add-btn--has:hover { transform: none; }
.add-btn__q { position: absolute; inset-block-start: -9px; inset-inline-end: -9px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--fg); color: var(--bg); font-size: 12px; display: grid; place-items: center; border: 2px solid var(--bg); }

/* Segmented control: the selected option is ink (or the one Highlighted hit when marked). */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: var(--line) solid var(--ink); border-radius: var(--r-btn); overflow: hidden; }
.seg button { min-height: 48px; border: 0; background: transparent; color: var(--fg); font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; padding: 0 10px; transition: background-color var(--snap), color var(--snap); }
.seg button:not([aria-pressed="true"]):not([disabled]):hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.seg button[disabled] { opacity: .4; cursor: not-allowed; }
.seg button + button { border-inline-start: var(--line) solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.seg--hit button[aria-pressed="true"] { background: var(--highlighted); color: var(--burnt); }
.on-ink .seg { border-color: var(--mozz); }
.on-ink .seg button { color: var(--mozz); }
.on-ink .seg button + button { border-color: var(--mozz); }
.on-ink .seg button[aria-pressed="true"] { background: var(--mozz); color: var(--burnt); }

.opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 14px; border: var(--line) solid var(--ink); border-radius: var(--r-btn); background: transparent; color: var(--fg); font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: background-color var(--snap), color var(--snap); }
.opt:hover:not(.opt--on) { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.opt--on { background: var(--highlighted); color: var(--burnt); border-color: var(--highlighted); }
.flavours { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.flavour { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 6px 0 14px; border: var(--line) solid var(--ink); border-radius: var(--r-btn); transition: background-color var(--snap), border-color var(--snap); }
.flavour__name { font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.flavour .stepper { border: 0; }
.flavour--on { background: var(--highlighted); border-color: var(--highlighted); }
.flavour--on .flavour__name, .flavour--on .flavour__sum, .flavour--on .stepper button, .flavour--on .stepper output { color: var(--burnt); }
.flavour__name { flex: 1; }
.flavour__sum { font-size: 13px; }
.flavour-total { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 14px 0 0; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--fg) 40%, transparent); border-radius: var(--r-btn); font-weight: 700; }
.flavour-total .label { color: var(--mute); }
.mix-line { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 6px; padding: 3px 8px; border-radius: 6px; background: var(--highlighted); color: var(--burnt); font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; width: fit-content; }
.mix-line svg { width: 14px; height: 14px; flex: none; }
.sheet__foot .btn[disabled] { opacity: .45; cursor: not-allowed; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block-start: 10px; }

.stepper { display: inline-flex; align-items: center; border: var(--line) solid var(--ink); border-radius: var(--r-btn); flex: none; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; border-radius: 6px; }
.stepper button:hover:not([disabled]) { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-family: var(--f-mono); font-weight: 700; }
.stepper--solid { background: var(--btn-bg); border-color: var(--btn-bg); }
.stepper--solid button, .stepper--solid output { color: var(--btn-fg); }
.stepper--solid button:hover:not([disabled]) { background: color-mix(in srgb, var(--btn-fg) 14%, transparent); }
.stepper--solid button { height: 44px; width: 40px; }

/* ---------- Status bar + nav ---------- */
.status { background: var(--burnt); color: var(--mozz); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px var(--gutter); border-block-end: 1px solid rgba(253, 252, 244, 0.18); }
.status__text { margin: 0; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 479px) { .status__more { display: none; } }
.status__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mozz); margin-inline-end: 8px; vertical-align: 1px; animation: pulse 2.4s infinite; }
.status__dot--closed { background: var(--honey); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(253, 252, 244, .5); } 70% { box-shadow: 0 0 0 7px rgba(253, 252, 244, 0); } 100% { box-shadow: 0 0 0 0 rgba(253, 252, 244, 0); } }
.theme-toggle { display: inline-flex; border: 1px solid rgba(253, 252, 244, 0.6); border-radius: 999px; background: transparent; padding: 2px; cursor: pointer; min-height: 32px; }
.theme-toggle span { font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mozz); padding: 4px 10px; border-radius: 999px; }
:root[data-theme="dark"] .theme-toggle [data-t="dark"],
:root[data-theme="light"] .theme-toggle [data-t="light"] { background: var(--mozz); color: var(--burnt); }

/* The nav sits on the same textured ground as the page (pinned, so the texture lines up and there is no
   seam) with no rule; a soft shadow separates it from what scrolls under. */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); background: var(--ground); box-shadow: 0 10px 24px -14px rgba(19, 9, 8, .35); display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); }
.nav__logo { display: block; padding-block: 8px; flex: none; }
/* The nav carries the BMP icon mark; the full wordmark lives in the footer. */
.nav__logo img { width: auto; height: 34px; }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav__links a { font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 12px 8px; position: relative; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cart { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--fg); border-radius: var(--r-btn); }
.nav__cart:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.nav__count { position: absolute; inset-block-start: 2px; inset-inline-end: 0; min-width: 20px; height: 20px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-fg); font-family: var(--f-mono); font-weight: 700; font-size: 12px; display: grid; place-items: center; padding: 0 4px; }
.nav__count.is-bump { animation: bump 400ms var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
/* Phones: the Order button stays in the nav at every width; Menu/Visit text links show from 760 px. */
.nav__order { display: inline-flex; min-height: 40px; padding: 0 12px; font-size: 13px; }
.nav__links { display: none; }
@media (min-width: 760px) {
  :root { --nav-h: 72px; }
  .nav { gap: 16px; }
  .nav__logo img { height: 40px; }
  .nav__links { display: flex; gap: 16px; }
  .nav__links a { font-size: 14px; }
  .nav__order { min-height: 44px; padding: 0 16px; font-size: 14px; }
}

/* ---------- Layout ---------- */
main { display: block; outline: none; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; padding-block-end: 14px; border-block-end: var(--line) solid var(--ink); margin-block-end: 20px; }
.section-head p { margin: 0; }
/* Texture behind brand sections only, never under forms. A veil keeps it quiet. */
.textured { background: linear-gradient(var(--veil), var(--veil)), var(--tex) center / cover, var(--bg); }
:root[data-theme="light"] { --veil: rgba(253, 252, 244, 0.55); }
:root[data-theme="dark"] { --veil: rgba(19, 9, 8, 0.86); }
@media (min-width: 760px) { :root { --gutter: 32px; } .section { padding-block: 96px; } .section--tight { padding-block-start: 32px; } }

/* Scroll reveal: only hides when JS runs and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- The look book (home + visit) ----------
   Photography leads. A cover, one spread per Boi, drinks, then where the shop is.
   Brand moments step at ~12 fps (brief v2); controls still snap in 150 ms. */

/* Cover: one full-bleed flash photo with the headline and the two ways to order set on it. */
.cover { position: relative; isolation: isolate; display: grid; align-items: end; min-height: max(560px, calc(100svh - var(--nav-h) - 30px)); background: var(--burnt); color: var(--mozz); overflow: hidden; }
.cover__photo, .cover__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover__photo { z-index: -2; }
.cover__photo img { object-fit: cover; object-position: 50% 0%; }
/* Below 1200 px the photo has no empty side for the type. The type comes first on Burnt (so Order is
   above the fold), then the photo runs full width down to the tape, which cuts across its foot. */
@media (max-width: 1199px) {
  .cover { display: grid; align-items: start; min-height: 0; }
  .cover::before, .cover::after { display: none; }
  .cover .cover__body { order: -1; padding-block: 28px 32px; max-width: none; }
  .cover__photo { position: relative; z-index: 0; aspect-ratio: 4 / 5; }
  .cover__photo img { object-position: 50% 30%; }
}
@media (min-width: 760px) and (max-width: 1199px) {
  .cover__photo { aspect-ratio: 16 / 10; }
  .cover__photo img { object-position: 50% 35%; }
  .cover .cover__body { padding-block: 40px 40px; }
  .cover .cover__body h1 { font-size: clamp(44px, 8.5cqi, 96px); }
}
@media (min-width: 1200px) { .cover__photo img { object-position: 70% 30%; } }
/* Scrims keep type legible on a flash photo; they are the only gradients on the page. */
.cover::before, .cover::after { content: ''; position: absolute; inset-inline: 0; z-index: -1; pointer-events: none; }
.cover::before { inset-block-start: 0; height: 22%; background: linear-gradient(rgba(19, 9, 8, .55), rgba(19, 9, 8, 0)); }
.cover::after { inset-block-end: 0; height: 78%; background: linear-gradient(rgba(19, 9, 8, 0), rgba(19, 9, 8, .5) 38%, rgba(19, 9, 8, .9)); }
.cover__body { position: relative; padding: 96px var(--gutter) 84px; max-width: 820px; container-type: inline-size; min-width: 0; }
/* Sized from the column: "NOTHING" is ~4.45em wide in AMSI, so 20cqi always fits. */
.cover h1 { font-size: clamp(48px, 20cqi, 150px); }
.cover .bestie { font-size: 0.7em; margin-block: .08em .62em; }
.cover__line { margin: 0 0 22px; max-width: 36ch; font-size: 18px; color: rgba(253, 252, 244, .9); }
/* Home cover: the photo, one line saying what and where, one button. The type always sits on the photo,
   at every width, so nothing stacks above it. */
@media (max-width: 1199px) {
  .cover.cover--home { align-items: end; min-height: max(520px, calc(100svh - var(--nav-h) - 30px)); }
  .cover--home .cover__photo { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; }
  .cover--home .cover__photo img { object-position: 50% 30%; }
  .cover--home .cover__body { order: 0; padding-block-start: 96px; }
}
.cover__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cover__actions .btn { flex: 1 1 100%; }
.cover .btn--primary { background: var(--mozz); color: var(--burnt); border-color: var(--mozz); }
.cover .btn--secondary { color: var(--mozz); border-color: var(--mozz); }
.cover .btn--secondary:hover { background: var(--mozz); color: var(--burnt); }
@media (prefers-reduced-motion: no-preference) {
  .cover__photo img { animation: settle 1400ms var(--ease) both; }
  .cover__body > * { animation: rise 700ms var(--ease) both; }
  .cover__body > :nth-child(2) { animation-delay: 90ms; }
  .cover__body > :nth-child(3) { animation-delay: 180ms; }
  .cover__body > :nth-child(4) { animation-delay: 270ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (min-width: 760px) {
  .cover__body { padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-block-end: 112px; }
  .cover__actions .btn { flex: none; }
  .cover--visit .cover__photo img { object-position: 50% 40%; }
}

/* A look: one or more photos of the Boi's pizza, with the description as a card laid over the photo's edge. */
.look { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: calc(100svh - var(--nav-h)); padding-block: 16px; overflow-x: clip; scroll-snap-align: start; scroll-snap-stop: always; }
.look__photo { position: relative; margin: 0; overflow: hidden; background: var(--surface); }
/* Every look uses the same 4:5 portrait frame, so the book reads as one set. Each photo is cropped to it
   around its own focus point (`pos` in js/data.js). */
/* A look never takes more than one screen: the photo shrinks (keeping 4:5) so photo + card fit under the nav. */
/* Each look is exactly one screen under the nav. On phones the photo takes the full width and whatever height
   the card leaves; it crops around its focus point (`pos` in js/data.js). */
.look__photo { width: 100%; height: 100%; min-height: 0; }
.look__photo img { width: 100%; height: 100%; object-fit: cover; }
.look__photo--art { display: grid; place-items: center; background: linear-gradient(rgba(19, 9, 8, .8), rgba(19, 9, 8, .8)), url(../assets/img/tex-dark.jpg) center / cover, var(--burnt); }
.look__photo.look__photo--art img { width: auto; height: auto; max-width: 62%; max-height: 78%; object-fit: contain; transform: rotate(-9deg); }
.look--1 .look__photo--art img { max-width: 72%; transform: rotate(5deg); }
.slot__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--mute); }
.slot__brief { font-size: 20px; font-weight: 500; max-width: 24ch; }

/* Gallery: a native horizontal scroller with snap, so phones swipe; buttons and arrow keys step it. */
.look__track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.look__track::-webkit-scrollbar { display: none; }
.look__track:focus-visible { outline: 3px solid var(--highlighted); outline-offset: -3px; }
.look__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.look__nav { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 2; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(19, 9, 8, .78); color: var(--mozz); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.look__arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color var(--snap), color var(--snap); }
.look__arrow:hover:not([disabled]) { background: var(--mozz); color: var(--burnt); }
.look__arrow[disabled] { opacity: .35; cursor: default; }
.look__arrow--next svg { transform: rotate(180deg); }
.look__count { min-width: 44px; text-align: center; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.look__nav :focus-visible { outline-color: var(--mozz); }

/* The card. Phones: it just catches the foot of the photo, inset from the edges. The photo leads. */
.look__copy { position: relative; z-index: 1; display: grid; align-content: start; gap: 8px; margin: -28px calc(var(--gutter) + 12px) 0; padding: 16px 18px 18px; background: var(--bg); border: 3px solid var(--ink); border-radius: 0; container-type: inline-size; }
.look__kicker { margin: 0; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.look__on { margin: 0; font-size: 15px; line-height: 1.4; color: var(--mute); max-width: 34ch; }
.look__title { margin: 0; font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 14cqi, 64px); line-height: .88; max-width: 10ch; }
.look__title:focus { outline: none; }
.look__line { margin: 0; font-size: 17px; font-weight: 500; max-width: 26ch; }
.look__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block-start: 6px; }
.look__add svg { margin-inline-end: 2px; }
.look .stepper--solid button { height: 52px; width: 48px; }

/* The photo arrives like a print coming off the press: stepped, ~12 fps. Visible by default. */
@media (prefers-reduced-motion: no-preference) {
  .js .look:not(.in) .look__photo img { clip-path: inset(0 0 100% 0); }
  .js .look.in .look__photo img { clip-path: inset(0); transition: clip-path 660ms steps(8, end); }
  .js .look:not(.in) .look__copy { opacity: 0; transform: translateY(24px); }
  .js .look.in .look__copy { transition: opacity 500ms var(--ease) 380ms, transform 500ms var(--ease) 380ms; }
}

/* From 720 px: a 12-column spread. The photo takes most of the width; the card sits beside its foot and
   only tucks over the photo's inner edge. The looks alternate: photo left, then right. */
@media (min-width: 720px) {
  .look { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); column-gap: 32px; align-items: end; padding: 28px 0; }
  .look__photo { align-self: stretch; }
  .look__photo, .look__copy { grid-row: 1; }
  .look__copy { margin: 0; padding: 22px 22px 24px; width: clamp(280px, 30vw, 400px); max-width: none; margin-block-end: 40px; }
  .look--0 .look__photo { grid-column: 1 / 11; }
  .look--0 .look__copy { grid-column: 9 / 13; justify-self: end; margin-inline: 0 var(--gutter); }
  .look--1 .look__photo { grid-column: 3 / 13; }
  .look--1 .look__copy { grid-column: 1 / 5; justify-self: start; margin-inline: var(--gutter) 0; }
}

/* Accessories: the drinks, and the next look on its way. */
/* Half & half and Drinks share one page: one screen, the two lists side by side from 900 px. */
.acc { min-height: calc(100svh - var(--nav-h)); display: grid; align-content: center; gap: 48px 120px; padding-block: 56px; scroll-snap-align: start; }
.acc .acc__title { font-size: clamp(48px, 11vw, 112px); line-height: .86; }
.acc__col { display: grid; align-content: start; }
/* Each row: name (and detail) on the left, price and add on the right. */
.acc .acc__list { display: grid; grid-template-columns: minmax(0, 1fr); }
.acc .acc__item, .acc .acc__item + .acc__item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; row-gap: 6px; padding: 24px 0; border-inline-start: 0; }
.acc .acc__title { margin-block-end: 6px; }
.acc .acc__intro { margin-block: 12px 28px; }
.acc .acc__item > :not(.acc__buy) { grid-column: 1; }
.acc .acc__buy { grid-column: 2; grid-row: 1 / span 2; margin: 0; gap: 16px; }
.acc .acc__item { row-gap: 4px; }
.acc .acc__item > :first-child:has(+ .acc__buy) { grid-row: 1 / span 2; align-self: center; }
@media (max-width: 899px) { .acc { gap: 40px; padding-block: 32px; } .acc .acc__item, .acc .acc__item + .acc__item { padding-block: 16px; } .acc .acc__name { font-size: 22px; } .acc .acc__intro, .acc .acc__item--half .acc__detail { display: none; } .acc .acc__title { font-size: 44px; margin-block-end: 12px; } }
@media (min-width: 900px) { .acc { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; } }
.acc__title { margin: 0; font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 8vw, 72px); line-height: .9; }
.acc__list { list-style: none; margin: 0; padding: 0; border-block-start: var(--line) solid var(--ink); }
.acc__item { display: grid; gap: 6px; padding-block: 18px; border-block-end: var(--line) solid var(--ink); }
.acc__name { font-family: var(--f-title); text-transform: uppercase; font-size: 32px; line-height: 1; }
.acc__detail { font-size: 13px; color: var(--mute); }
.acc__intro { margin: 10px 0 18px; color: var(--mute); font-size: 17px; }

.acc__open { display: grid; gap: 4px; padding: 0; border: 0; background: none; color: inherit; text-align: start; font: inherit; cursor: pointer; }

.acc__item--half .acc__detail { font-size: 14px; color: var(--mute); }
.acc__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 6px; }
.acc__buy .mono { font-weight: 700; }
@media (min-width: 900px) {
  .acc__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acc__item { padding: 22px 24px 22px 0; }
  .acc__item + .acc__item { padding-inline-start: 24px; border-inline-start: var(--line) solid var(--ink); }
}

/* Credits: the back page, set in the inverse of the page so it closes the book. */
.credits { --bg: var(--block-bg); --fg: var(--block-fg); --ink: var(--block-fg); --btn-bg: var(--block-fg); --btn-fg: var(--block-bg); --mute: color-mix(in srgb, var(--block-fg) 72%, var(--block-bg)); background: var(--bg); color: var(--fg); padding-block: 72px; }
.credits__inner { display: grid; gap: 32px; align-items: center; }
/* Slices at the shop is one page that fits the screen, so the scroll stops once on it and once on the footer. */
.credits { min-height: calc(100svh - var(--nav-h)); display: grid; align-content: center; box-sizing: border-box; }
.credits .credits__photo { max-height: calc(100svh - var(--nav-h) - 128px); }
.credits__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.credits__photo picture, .credits__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.credits__photo--art { display: grid; place-items: center; background: linear-gradient(rgba(19, 9, 8, .8), rgba(19, 9, 8, .8)), url(../assets/img/tex-dark.jpg) center / cover, var(--burnt); }
.credits__photo--art picture, .look__photo--art picture { display: contents; }
.credits__photo.credits__photo--art img { width: auto; height: auto; max-width: 58%; max-height: 70%; margin-inline: auto; object-fit: contain; transform: rotate(-9deg); }
.credits__body { display: grid; gap: 20px; }
.credits__title { margin: 0; font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 8vw, 80px); line-height: .9; }
.credits .hours { margin: 0 !important; }
.credits__line { margin: 0; font-size: 20px; line-height: 1.4; }
.credits :focus-visible { outline-color: var(--fg); }
@media (min-width: 900px) {
  .credits { padding-block: 64px; }
  .credits__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
}
.menu-item__buy .menu-item__price { margin-inline-end: auto; }

/* The brand tape: one per layout, edge to edge, angled 4°, crops mid-word at the screen edges. Static.
   It lives inside the foot of the cover. The strip and a page-coloured block hung under it rotate together
   as one band, so the photo stops exactly at the tape's lower edge at any width, with nothing to compute:
   above the tape is photo, below it is page. The cover's overflow clips the band at the sides and bottom. */
.tape { position: absolute; z-index: 3; inset-inline: 0; inset-block-end: 0; height: 0; pointer-events: none; }
.tape__band { position: absolute; inset-inline: -10%; inset-block-end: calc(26px + 5vw); transform: rotate(-4deg); }
.tape__band::after { content: ''; position: absolute; inset-inline: 0; inset-block-start: 100%; height: 60vw; background: var(--ground); }
.tape__strip { height: 52px; background: var(--highlighted); display: flex; align-items: center; gap: 40px; overflow: hidden; }
.tape__strip img { flex: none; height: 26px; width: auto; }
.tape__strip img:first-child { margin-inline-start: -90px; }
/* Home cover: just the photo and one button, sat above the tape. */
.cover--home::before, .cover--home::after { display: none !important; }
.cover--home .cover__body { padding-block-end: calc(26px + 5vw + 52px + 8vw); }
@media (min-width: 760px) { .cover--home .cover__body { padding-block-end: calc(26px + 5vw + 52px + 5vw); } }
/* The button sits centred under the slice, on the photo's vertical axis, just above the tape's middle. */
.cover--home .cover__body { justify-self: stretch; max-width: none; padding-inline: var(--gutter) !important; display: grid; justify-items: center; }
.cover--home .cover__actions { justify-content: center; width: 100%; }
@media (min-width: 760px) { .cover--home .cover__actions .btn { min-width: 280px; justify-content: center; } }

/* The look book's title page: a headline on the left, an index of the looks on the right (stacked on phones).
   It starts under the tape, so its top padding clears the strip. */
.books { padding-block: 40px 24px; }
.books__inner { display: grid; gap: 32px; }
.books__kicker { margin: 0 0 14px; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.books__intro { container-type: inline-size; min-width: 0; }
/* Sized from the column, like the cover: "MEET THE" is ~4.6em wide in AMSI, so 19cqi always fits. */
.books__title { margin: 0 0 .42em; font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 19cqi, 128px); line-height: .88; }
.books__title .bestie { font-size: .8em; margin-block: .06em .3em; }
.books__line { margin: 0; font-size: 18px; max-width: 32ch; color: var(--mute); }
.books__index ol { list-style: none; margin: 0; padding: 0; border-block-start: var(--line) solid var(--ink); }
.books__index li { border-block-end: var(--line) solid var(--ink); }
.books__item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; width: 100%; min-height: 56px; padding: 14px 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.books__no, .books__price { font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.books__name { font-family: var(--f-title); text-transform: uppercase; font-size: 28px; line-height: 1; }

@media (min-width: 900px) {
  .books { padding-block-end: 40px; }
  .books__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
  .books__name { font-size: 32px; }
}

/* The cut-out keyline is Fresh Mozz, so it stays inside the four brand colours. */
/* A whole pie, shown round, so it can't be mistaken for a slice. Half & half is two halves of one disc. */
/* A Boi's picture: its real flash photo, square-cornered like every photo on the site. No rings, no circles. */
.tile { position: relative; display: block; flex: none; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.tile > img { transition: transform 400ms var(--ease); }
.tile > img, .tile__blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__blank { background: var(--surface); }
.tile--none { display: grid; place-items: center; border-radius: var(--r-btn); border-style: dashed; background: transparent; text-align: center; font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); line-height: 1.3; }
.tile--sheet { width: calc(100% + 40px); margin: -16px -20px 0; aspect-ratio: 4 / 3; }
.tile--line { width: 52px; }
.acc__tile { width: 64px; }
.cutout img { filter: drop-shadow(2px 0 0 #FDFCF4) drop-shadow(-2px 0 0 #FDFCF4) drop-shadow(0 2px 0 #FDFCF4) drop-shadow(0 -2px 0 #FDFCF4); }

.hours { width: 100%; border-collapse: collapse; font-family: var(--f-mono); }
.hours caption { text-align: start; padding-block-end: 8px; }
.hours .status__dot, .zonebar .status__dot { background: var(--fg); animation: none; }
.hours .status__dot--closed, .zonebar .status__dot--closed { background: var(--honey); }
.hours th, .hours td { text-align: start; padding: 12px 0; border-block-end: var(--line) solid var(--ink); font-size: 15px; }
.hours th { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.hours td { text-align: end; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Menu ---------- */
.menu__head { display: grid; gap: 18px; padding-block: 28px 18px; }
.menu__head .h1 { font-size: clamp(48px, 9vw, 96px); }
.zonebar { display: grid; gap: 10px; max-width: 46ch; }
.zonebar__text { margin: 0; color: var(--mute); }
.zonebar__text b { color: var(--fg); font-weight: 700; }
.zonebar__closed { margin: 0; padding: 10px 12px; border: var(--line) solid var(--honey); border-radius: var(--r-btn); font-weight: 500; }
@media (min-width: 760px) {
  .menu__head { grid-template-columns: 1fr auto; align-items: end; padding-block: 48px 24px; }
  .zonebar { justify-items: end; text-align: end; }
}
.catnav { position: sticky; top: var(--nav-h); z-index: 6; display: flex; gap: 8px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; background: var(--ground); border-block-end: var(--line) solid var(--ink); }
.catnav button { flex: none; white-space: nowrap; min-height: 40px; padding: 0 14px; border-radius: 999px; border: var(--line) solid var(--ink); background: transparent; color: var(--fg); font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color var(--snap), color var(--snap); }
.catnav button span { opacity: .6; }
.catnav button[aria-current="true"] { background: var(--fg); color: var(--bg); }
.menu__sec { scroll-margin-top: calc(var(--nav-h) + 64px); padding-block-start: 56px; }
.menu__sec + .menu__sec { margin-block-start: 24px; }
.menu__sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-block-end: 18px; }
.menu__sechead p { margin: 0; font-size: 13px; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { display: grid; gap: 10px; padding-block: 18px; border-block-end: var(--line) solid var(--ink); }
.menu-item__open { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; background: none; border: 0; padding: 0; color: inherit; text-align: start; cursor: pointer; font: inherit; }
.menu-item__open.menu-item__open--plain { grid-template-columns: minmax(0, 1fr); }
.menu-item__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.menu-item__num { font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.menu-item__tag { font-weight: 500; }
.menu-item__on { color: var(--mute); font-size: 15px; line-height: 1.35; }
.menu-item__size, .look__size { font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.look__size { margin: 0; }
.menu-item__img { width: 96px; height: 96px; }
/* Pies on the menu lead with a full-width 4:3 photo, edge to edge of the row (and of the card on desktop). */
.menu-item__open.menu-item__open--photo { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.menu-item--pie .menu-item__img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.menu-item--pie .menu-item__buy { padding-inline-start: 0; }
.menu-item__open:hover .menu-item__img img { transform: scale(1.04); }

.menu-item__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline-start: 110px; }
.menu-item__price { font-weight: 700; font-size: 16px; }
.menu-item--drink { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.menu-item--drink .menu-item__buy { padding-inline-start: 0; gap: 16px; }
.menu-item--half .menu-item__buy { padding-inline-start: 0; }
.menu-item--half .menu-item__text > * { max-width: 30ch; }
@media (min-width: 900px) {
  .menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block-start: 14px; }
  .menu__sec { padding-block-start: 88px; }
  .menu__sec + .menu__sec { margin-block-start: 32px; }
  .menu-item { border: var(--line) solid var(--ink); border-radius: var(--r-card); overflow: hidden; padding: 18px; align-content: space-between; transition: border-color 200ms, transform 250ms var(--ease); }
  .menu-item:hover { transform: translateY(-3px); }
  .menu-item__open { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .menu-item__img { width: 150px; height: 150px; }
  .menu-item--pie .menu-item__img { width: calc(100% + 36px); height: auto; margin: -18px -18px 0; }
  .menu-item--pie .menu-item__buy { padding-inline-start: 0; }
  .menu-item__buy { padding-inline-start: 170px; }
  .menu-list--drinks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-item--drink { grid-template-columns: 1fr; gap: 18px; }
  .menu-item--drink .menu-item__buy { justify-content: space-between; }
}
.note { display: grid; gap: 6px; padding-block: 28px 40px; color: var(--mute); font-size: 15px; }
.note p { margin: 0; }

/* Sticky cart bar follows the thumb. */
.cartbar { position: fixed; inset-inline: var(--gutter); inset-block-end: max(16px, env(safe-area-inset-bottom)); z-index: 30; max-width: 560px; margin-inline: auto; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px 0 10px; border-radius: var(--r-btn); background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-family: var(--f-mono); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: var(--line) solid var(--btn-bg); transition: background-color var(--snap), border-color var(--snap); }
.cartbar:not([hidden]) { animation: rise 300ms var(--ease); }
.cartbar:hover { background: var(--highlighted); border-color: var(--highlighted); color: var(--burnt); }
.cartbar__count { min-width: 36px; height: 36px; border-radius: 6px; background: var(--btn-fg); color: var(--btn-bg); display: grid; place-items: center; }
.cartbar:hover .cartbar__count { background: var(--burnt); color: var(--highlighted); }
.cartbar__total { margin-inline-start: auto; }
/* Room for the fixed cart bar goes inside the footer, so nothing shows below it. */
body.has-cartbar .footer__inner { padding-block-end: calc(100px + max(16px, env(safe-area-inset-bottom))); }

/* Toast: one confirmation, above the cart bar. */
.toast > span { display: inline-flex; align-items: center; gap: 8px; }
.toast { position: fixed; inset-inline: var(--gutter); inset-block-end: calc(max(16px, env(safe-area-inset-bottom)) + 72px); z-index: 40; max-width: 420px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; min-height: 52px; border-radius: var(--r-btn); background: var(--highlighted); color: var(--burnt); font-weight: 500; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
body:not(.has-cartbar) .toast { inset-block-end: max(16px, env(safe-area-inset-bottom)); }
.toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.toast:empty { display: none; }
.toast__act { flex: none; min-height: 36px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 6px; border: 2px solid var(--burnt); background: transparent; color: var(--burnt); font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.toast__act:hover { background: var(--burnt); color: var(--highlighted); }

/* ---------- Sheet ---------- */
.sheet { border: 0; padding: 0; margin: 0; margin-block-start: auto; margin-inline: auto; width: 100%; max-width: 560px; max-height: 92dvh; background: var(--bg); color: var(--fg); border-radius: 20px 20px 0 0; border: var(--line) solid var(--ink); border-block-end: 0; overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: up 260ms var(--ease); }
.sheet::backdrop { background: rgba(19, 9, 8, 0.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes up { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) { .sheet { margin-block: auto; border-radius: 20px; border-block-end: var(--line) solid var(--ink); max-height: 88vh; } }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.sheet__grab { display: flex; justify-content: space-between; align-items: center; }
.sheet__img { display: block; }

@keyframes spin-in { from { transform: rotate(-30deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet .h1 { font-size: 48px; }
.sheet .lede { font-size: 19px; }
.facts { margin: 0; display: grid; border-block-start: var(--line) solid var(--ink); }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding-block: 12px; border-block-end: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.facts dt { font-size: 12px; padding-block-start: 3px; color: var(--mute); }
.facts dd { margin: 0; font-size: 15px; }
.sheet__foot { display: flex; gap: 10px; align-items: center; padding: 14px 20px max(16px, env(safe-area-inset-bottom)); border-block-start: var(--line) solid var(--ink); background: var(--bg); }
.sheet__foot .stepper button { height: 52px; }
.sheet__foot .btn--block { flex: 1; min-height: 56px; font-size: 15px; padding: 0 12px; }

/* ---------- Cart, checkout, track ---------- */
.narrow { max-width: 620px; margin-inline: auto; padding: 20px var(--gutter) 56px; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block: 8px 12px; }
.page-head p { margin: 0; font-size: 13px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; min-height: 44px; }

.line-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 14px; border-block-end: var(--line) solid var(--ink); }
.line-item:first-of-type { border-block-start: var(--line) solid var(--ink); }
.line-item__img { display: grid; place-items: center; }
.line-item__img img { max-height: 56px; width: auto; margin-inline: auto; }
.line-item__drink { width: 44px; height: 44px; border-radius: 50%; border: var(--line) solid var(--ink); display: grid; place-items: center; font-family: var(--f-title); font-size: 20px; }
.line-item__name { font-family: var(--f-title); text-transform: uppercase; font-size: 22px; line-height: 1; }
.line-item__sub { font-size: 13px; margin-block-start: 4px; }
.line-item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-item__total { font-size: 14px; font-weight: 700; }
.totals { font-family: var(--f-mono); margin-block: 20px; }
.totals div { display: flex; justify-content: space-between; padding-block: 6px; }
.totals .grand { border-block-start: var(--line) solid var(--ink); margin-block-start: 6px; padding-block-start: 12px; font-weight: 700; font-size: 20px; }
.totals .help { margin-block-start: 6px; }
.nudge { padding-block: 34px 8px; }
.nudge__title { margin: 0; font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: 32px; line-height: 1; }
.nudge__sub { margin: 6px 0 14px; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .btn { min-height: 44px; font-size: 13px; padding: 0 14px 0 10px; gap: 6px; }
.empty { text-align: center; padding-block: 48px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty img { width: 64px; }
.empty h1:focus { outline: none; }
#cart-title:focus { outline: none; }

.closed-note .status__dot { flex: none; }
.closed-note { display: flex; align-items: center; gap: 4px; margin: 4px 0 14px; padding: 12px 14px; border: var(--line) solid var(--honey); border-radius: var(--r-btn); font-weight: 500; }
.summary { border: var(--line) solid var(--ink); border-radius: var(--r-btn); margin-block: 4px 16px; }
.summary summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px; cursor: pointer; list-style: none; font-weight: 700; }
.summary summary::-webkit-details-marker { display: none; }
.summary__show { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.summary[open] .summary__show { font-size: 0; }
.summary[open] .summary__show::after { content: 'Hide'; font-size: 12px; }
.summary ul { list-style: none; margin: 0; padding: 4px 14px 0; border-block-start: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; }
.summary .back { padding-inline: 14px; }

.step-head { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1; }
.step-head__num { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: var(--line) solid var(--ink); border-radius: 50%; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: 0; transition: background-color 200ms, color 200ms; }
.step-head__done { margin-inline-start: auto; display: none; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.is-done > .step-head .step-head__num { background: var(--fg); color: var(--bg); }
.is-done > .step-head .step-head__done { display: inline-flex; }

.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.methods.is-bad .method { border-color: var(--warn); }
.method { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 104px; padding: 14px; border: var(--line) solid var(--ink); border-radius: var(--r-btn); background: transparent; color: var(--fg); text-align: start; cursor: pointer; font: inherit; transition: background-color var(--snap), color var(--snap); }
.method:hover:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.method__name { font-family: var(--f-title); text-transform: uppercase; font-size: 24px; line-height: 1; }
.method__sub { font-size: 14px; color: var(--mute); line-height: 1.3; }
.method__price { margin-block-start: auto; padding-block-start: 6px; font-weight: 700; font-size: 14px; }
.method[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.method[aria-pressed="true"] .method__sub { color: inherit; opacity: .75; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.opt-tag { font-weight: 400; color: var(--mute); letter-spacing: .06em; text-transform: lowercase; }
.input { min-height: 52px; width: 100%; border: var(--line) solid var(--ink); border-radius: var(--r-btn); background: var(--bg); color: var(--fg); padding: 0 14px; font-size: 17px; transition: box-shadow var(--snap); }
.input:focus { outline: none; box-shadow: 0 0 0 3px var(--highlighted); }
.input::placeholder { color: var(--mute); opacity: 0.7; }
.input.is-bad, .input-group.is-bad, .map.is-bad { border-color: var(--warn); }
.input--code { max-width: 180px; letter-spacing: 0.4em; font-family: var(--f-mono); font-size: 22px; }
.input-group { display: flex; border: var(--line) solid var(--ink); border-radius: var(--r-btn); overflow: hidden; }
.input-group:focus-within { box-shadow: 0 0 0 3px var(--highlighted); }
.input-group .input { border: 0; border-radius: 0; min-width: 0; }
.input-group .input:focus { box-shadow: none; }
.input-group__prefix { display: grid; place-items: center; padding: 0 12px; font-family: var(--f-mono); font-weight: 700; border-inline-end: var(--line) solid var(--ink); }
.input-group .btn { border: 0; border-inline-start: var(--line) solid var(--ink); border-radius: 0; min-height: 52px; white-space: nowrap; padding: 0 14px; font-size: 13px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.form-section { padding-block: 24px; border-block-end: var(--line) solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.help { margin: 0; font-size: 15px; color: var(--mute); }
.ok { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.err { margin: 0; color: var(--warn); font-weight: 500; font-size: 15px; }
.err::before { content: '! '; font-family: var(--f-mono); font-weight: 700; }
.err--sum { margin-block-end: 14px; padding: 12px 14px; border: var(--line) solid var(--warn); border-radius: var(--r-btn); }

/* Delivery map: Leaflet fills the frame; the pin is fixed at its centre and the customer moves the map under it. */
.map { position: relative; height: 280px; border: var(--line) solid var(--ink); border-radius: var(--r-card); overflow: hidden; background: var(--map-ground); isolation: isolate; }
.map.is-bad { border-color: var(--warn); }
.map__canvas { position: absolute; inset: 0; z-index: 0; background: var(--map-ground); }
.map__canvas:focus-visible { outline: 3px solid var(--highlighted); outline-offset: -3px; }
.map .leaflet-control-attribution { font-size: 10px; }
.map__pin { position: absolute; z-index: 500; inset-inline-start: 50%; inset-block-start: 50%; transform: translate(-50%, -100%); pointer-events: none; opacity: .55; transition: opacity var(--snap); }
.map__pin svg { display: block; }
.map.has-pin .map__pin { opacity: 1; }
.map__pin::after { content: ''; position: absolute; inset-inline-start: 50%; inset-block-end: -3px; width: 8px; height: 4px; margin-inline-start: -4px; border-radius: 50%; background: rgba(19, 9, 8, .45); }
.map__use { position: absolute; z-index: 600; inset-inline-end: 10px; inset-block-end: 22px; }
.map__use.btn { background: var(--bg); min-height: 40px; font-size: 12px; padding: 0 12px; gap: 6px; }
.map.is-loading .map__pin { opacity: .3; }
.map-search { margin-block-end: 2px; }
.map-search gmp-place-autocomplete { width: 100%; color-scheme: light dark; }
.zone { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; margin: 0; padding: 12px 14px; border: var(--line) solid var(--ink); border-radius: var(--r-btn); }
.zone__label { font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); flex-basis: 100%; }
.zone__name { font-family: var(--f-title); text-transform: uppercase; font-size: 22px; line-height: 1; }
.zone__fee { margin-inline-start: auto; font-weight: 700; }
.zone--wait { border-style: dashed; color: var(--mute); }
.zone--out { display: grid; gap: 4px; border-color: var(--honey); }
.zone--out p { margin: 0; }
.zone .linkbtn { padding: 0; }
.zone--out > p:first-child { font-weight: 700; }
.zone--out.is-bad { border-color: var(--warn); }
.map__street { margin: 0; padding: 10px 12px; border-radius: var(--r-btn); background: var(--surface); font-weight: 500; font-size: 15px; }
.map__street::before { content: 'Pin address · '; font-family: var(--f-mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.map__fallback { position: absolute; z-index: 600; inset: 0; margin: 0; display: grid; place-items: center; padding: 24px 24px 80px; text-align: center; color: var(--mute); }
.map.is-off .map__pin { display: none; }
@media (prefers-reduced-motion: no-preference) { .map.has-pin .map__pin svg { animation: drop 360ms var(--ease); transform-origin: bottom center; } }

.pay { display: flex; flex-direction: column; gap: 10px; }
.pay label { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; border: var(--line) solid var(--ink); border-radius: var(--r-btn); cursor: pointer; font-weight: 500; transition: background-color var(--snap); }
.pay label:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.pay label > span { display: flex; flex-direction: column; gap: 2px; }
.pay input { width: 20px; height: 20px; accent-color: var(--burnt); margin: 0; flex: none; }
.pay label:has(input:checked) { background: var(--highlighted); color: var(--burnt); border-color: var(--highlighted); }
.pay label small { font-size: 13px; font-weight: 400; opacity: .8; }
.pay label:has(input:focus-visible) { outline: 3px solid var(--fg); outline-offset: 2px; }

.steps { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: var(--r-btn); font-family: var(--f-mono); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; color: var(--mute); border: var(--line) dashed color-mix(in srgb, var(--fg) 30%, transparent); }
.steps li .box { width: 22px; height: 22px; border: var(--line) solid currentColor; border-radius: 50%; flex: none; display: grid; place-items: center; }
.steps li.done { color: var(--fg); border-style: solid; border-color: var(--ink); }
.steps li.done .box { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.steps li.now { background: var(--highlighted); color: var(--burnt); border-color: var(--highlighted); }
.steps li.now .box { border-color: var(--burnt); }
@media (prefers-reduced-motion: no-preference) { .steps li.now .box { animation: blink 1.2s ease-in-out infinite; } }
@keyframes blink { 50% { background: var(--burnt); } }
.receipt { padding: 14px 16px; border: var(--line) solid var(--ink); border-radius: var(--r-btn); margin-block-end: 14px; }
.receipt p { margin: 4px 0 0; }
.rate .seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.signoff { display: flex; align-items: center; gap: 12px; margin-block-start: 28px; color: var(--mute); }
.signoff img { width: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--burnt); color: var(--mozz); }
:root[data-theme="light"] .footer .on-dark { display: block; }
:root[data-theme="light"] .footer .on-light { display: none; }
.footer { border-block-start: 1px solid rgba(253, 252, 244, .18); }
.footer__inner { max-width: var(--max); margin-inline: auto; padding: 56px var(--gutter) 40px; display: grid; gap: 40px; }
.footer__brand img { width: 220px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.footer__cols div { display: flex; flex-direction: column; gap: 6px; }
.footer__cols .label { color: #B5ABA4; margin-block-end: 4px; font-size: 12px; }
.footer__cols p { margin: 0; }
.footer__cols a { text-decoration: none; min-height: 32px; display: flex; align-items: center; width: fit-content; }

.footer :focus-visible { outline-color: var(--mozz); }
.footer__sign { display: flex; align-items: center; gap: 16px; }
.footer__sign img { width: 88px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 280px 1fr; } .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } .footer__sign { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Visit ---------- */
/* A practical page: status + where + two actions up top, the shop photo, then four square cards. */
.visit { display: grid; gap: 28px; padding-block: 32px 72px; }
.visit__head { display: grid; gap: 12px; align-content: start; }
.visit__title { margin: 0 0 18px; font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 12vw, 120px); line-height: .88; }
.visit__title .bestie { display: block; margin-block-start: -.05em; padding-block-end: .12em; font-size: .7em; text-transform: none; color: var(--accent, var(--fg)); }
.visit__status { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.visit__status .status__dot { background: var(--fg); animation: none; }
.visit__status .status__dot--closed { background: var(--honey); }
.visit__where { margin: 0; font-size: 18px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 8px; }
.visit__photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 3px solid var(--ink); }
.visit__photo picture, .visit__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.visit__grid { display: grid; gap: 16px; }
.visit__card { border: 3px solid var(--ink); padding: 20px; display: grid; gap: 10px; align-content: start; }
.visit__card p { margin: 0; }
.visit__card > p:not(.label) { color: var(--mute); line-height: 1.45; }
.visit__card .linkbtn { padding-inline-start: 0; justify-self: start; font-weight: 700; }
.visit__h { margin: 0; font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: .95; }
.visit__card .hours th, .visit__card .hours td { padding: 10px 0; white-space: nowrap; }
.visit__card .hours tr:last-child th, .visit__card .hours tr:last-child td { border-block-end: 0; }
.visit__card .hours .is-today th, .visit__card .hours .is-today td { color: var(--fg); }
.visit__today { display: inline-block; margin-inline-start: 6px; padding: 2px 6px; background: #EFE52A; color: #130908; font-size: 11px; letter-spacing: .1em; }
.visit__talk { list-style: none; margin: 0; padding: 0; display: grid; }
.visit__talk a { display: block; padding: 10px 0; border-block-end: var(--line) solid var(--ink); font-weight: 700; text-decoration: none; }
.visit__talk li:last-child a { border-block-end: 0; }
.visit__talk a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) {
  .visit { grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 40px; padding-block: 56px 96px; align-items: end; }
  .visit__grid { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Page turns on home: a stack of prints. Each pizza page sticks under the nav and the next one slides up
   over it, landing from a slight tilt, while the one underneath sinks back and darkens. The other pages
   rise in. Without scroll-driven animation the pages still stack (no tilt or dimming); with reduced
   motion they simply scroll. */
.stack { position: relative; overflow-x: clip; }
.books, .acc, .credits { overflow-x: clip; }
.stack__mark { position: absolute; inset-inline-start: 0; width: 1px; height: calc(100svh - var(--nav-h)); inset-block-start: calc(var(--i) * (100svh - var(--nav-h))); pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
.stack .look { scroll-snap-align: none; }
.look__dim { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .stack .look { position: sticky; top: var(--nav-h); background: var(--ground); box-shadow: 0 -24px 60px rgba(19, 9, 8, .45); }
  .stack .look:first-child { box-shadow: none; }
  @supports (animation-timeline: view()) {
    .js .look:not(.in) .look__photo img, .js .look.in .look__photo img { clip-path: none; transition: none; }
    .js .look:not(.in) .look__copy, .js .look.in .look__copy { opacity: 1; transform: none; transition: none; }
    /* Arriving: the print lands from a tilt; its photo settles from a light zoom. */
    .stack .look:not(:first-child) { animation: print-in linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; transform-origin: 30% 100%; }
    .stack .look:not(:first-child) .look__photo img { animation: photo-zoom linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    /* Covered: driven by the next print's arrival. */
    .look__dim { display: block; position: absolute; inset: 0; z-index: 5; background: #130908; pointer-events: none; opacity: 0; animation: dim linear both; animation-timeline: var(--next); animation-range: entry 0% entry 100%; }
    .look:has(.look__dim) > :not(.look__dim) { animation: sink linear both; animation-timeline: var(--next); animation-range: entry 0% entry 100%; }
    .acc__title, .books__title, .credits__title { animation: title-in linear both; animation-timeline: view(); animation-range: entry 20% entry 100%; }
    .acc__list, .acc__intro, .credits__photo { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 35% entry 100%; }
  }
}
@keyframes print-in { from { rotate: 5deg; translate: 0 6%; } to { rotate: 0deg; translate: 0 0; } }
@keyframes photo-zoom { from { scale: 1.18; } to { scale: 1; } }
@keyframes dim { to { opacity: .72; } }
@keyframes sink { to { scale: .92; } }
@keyframes title-in { from { transform: translateY(60%) scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise-in { from { transform: translateY(80px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Phones: more air between sections. */
@media (max-width: 759px) {
  .books { padding-block: 72px 56px; }
  .credits { padding-block: 40px; }
  .credits__inner { gap: 28px; }
  .credits .credits__photo { aspect-ratio: auto; height: 38svh; max-height: none; }
  .menu__sec { padding-block-start: 80px; }
  .menu__sec + .menu__sec { margin-block-start: 32px; }
  .menu__sechead { margin-block-end: 24px; }
  .menu-list { display: grid; gap: 28px; }
  .visit { gap: 44px; padding-block: 40px 96px; }
  .visit__grid { gap: 20px; }
  .footer__inner { row-gap: 48px; }
  /* The cover fills the screen under the nav: the slice in front of the sign, full bleed. */
  .cover.cover--home { min-height: calc(100svh - var(--nav-h)); }
  .cover--home .cover__photo img { object-position: 35% 40%; }
}
