/* British Bacon · the journey: from the night kitchen to the morning table.
   Loaded after site.css on every page. */

/* Caveat (SIL Open Font License, see assets/fonts/caveat-OFL.txt) for the handwritten notes. */
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* While Caveat loads, a local handwriting font stands in at a matching size. */
@font-face {
  font-family: "Hand Fallback";
  src: local("Segoe Print"), local("Bradley Hand"), local("Marker Felt"), local("Noteworthy");
  size-adjust: 74%;
}

:root {
  --header-h: 76px;
  --f-hand: "Caveat", "Hand Fallback", cursive;
  --hand-scale: 1.34;
  --muted: #DBD4C9;
  --dim: #ADA69B;
  --morning: #F4EDE1;
  --kraft: #E4CFA4;
}
@media (max-width: 720px) { :root { --header-h: 66px; } }

/* Sticky scenes need the page itself to scroll, so clip sideways overflow instead of hiding it. */
body { overflow-x: clip; font-size: 17.5px; line-height: 1.65; }
.lede { line-height: 1.55; }
.section-head p:not(.eyebrow) { font-size: 19px; line-height: 1.55; }
.ai-chip { color: #F5F1EA; }

/* ---------- Smooth scrolling: no live blurs or blend modes ----------
   Blurring whatever is behind an element, and blending layers, are redone by the graphics
   card on every frame of a scroll. Solid colours and pre-made images look the same and cost nothing. */
.site-header { background: rgba(13, 12, 11, .95); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled { background: rgba(13, 12, 11, .98); }
.ai-chip, .round-btn { background: rgba(13, 12, 11, .8); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- Pages glide into each other (browsers that support it) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* ---------- Handwriting and stamps: the butcher's touch ---------- */
.hand { font-family: var(--f-hand); font-weight: 600; font-size: calc(20px * var(--hand-scale)); line-height: 1.2; letter-spacing: 0; text-transform: none; }
.scribble { display: inline-block; width: 44px; height: 24px; vertical-align: middle; flex: none; }
.stamp { width: 120px; height: 120px; color: var(--accent); font-family: var(--f-display); letter-spacing: .04em; }

.price-tag { position: relative; display: inline-block; width: fit-content; align-self: flex-start; flex: none; padding: 9px 14px 9px 27px; background: var(--kraft); color: #1A1512; font-size: 20px; border-radius: 3px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); rotate: -3deg; transform-origin: 20% 50%; transition: rotate .35s var(--ease); }
.price-tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #1A1512; opacity: .55; }
.product-card:hover .price-tag { rotate: 2deg; }

/* ---------- Scenes ---------- */
.scene { position: relative; padding: clamp(72px, 10vw, 140px) 0; }

/* ---------- Scene 1 · the pan (pinned; cooks as you scroll) ---------- */
.cook { position: relative; --cook: 1; --heat: .35; --c1: 1; --c2: 1; --c3: 1; }
.cook-stage { position: relative; background: var(--bg); display: grid; align-items: center; min-height: min(820px, calc(100svh - var(--header-h))); padding: clamp(20px, 3vw, 40px) 0; overflow: hidden; }
.cook-stage::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px; background: radial-gradient(closest-side, rgba(255, 90, 54, .22), transparent); opacity: calc(.36 + var(--heat) * .64); will-change: opacity; pointer-events: none; }
.cook.is-pinned { height: 215svh; }
.cook.is-pinned .cook-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); min-height: 0; }
.cook-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.cook h1 { font-size: clamp(54px, 8.4vw, 124px); line-height: .9; font-stretch: 80%; }
.cook .lede { margin-top: 26px; }

.cook-word { display: inline-grid; }
.cook-word > * { grid-area: 1 / 1; font-style: normal; color: var(--accent); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.cook-word i { opacity: 0; transform: translateY(.4em); }
.cook[data-stage="0"] .cook-word i:nth-child(1), .cook[data-stage="1"] .cook-word i:nth-child(2) { opacity: 1; transform: none; }
.cook[data-stage="1"] .cook-word i:nth-child(1), .cook[data-stage="2"] .cook-word i { opacity: 0; transform: translateY(-.4em); }
.cook[data-stage="0"] .cook-word em, .cook[data-stage="1"] .cook-word em { opacity: 0; transform: translateY(.4em); }

.cook-hint { display: none; align-items: center; gap: 8px; margin-top: 30px; color: var(--muted); font-size: calc(21px * var(--hand-scale)); transition: opacity .4s; }
.cook.is-pinned .cook-hint { display: inline-flex; }
.cook.is-pinned:not([data-stage="0"]) .cook-hint { opacity: 0; }
.cook-hint .scribble { width: 24px; height: 32px; color: var(--accent); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 6px; } }

.cook-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: min(620px, calc(100svh - var(--header-h) - 90px)); justify-self: end; }
.cook .pan { mix-blend-mode: normal; filter: none; }
.cook .pan-glow { inset: 4%; animation: none; filter: none; opacity: calc(.3 + var(--heat) * .7); scale: calc(1 + var(--heat) * .1); background: radial-gradient(closest-side, rgba(255, 120, 60, .5), transparent); will-change: opacity, scale; }
.cook .rasher::before { content: ""; position: absolute; inset: 10% -8% -6% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent 80%); }
.cook .rasher img { transition: none; filter: none; will-change: opacity; }
.cook .rasher .raw { transform: none; }
.cook .rasher .crisp { transform: none; }
.cook .r1 .crisp { opacity: var(--c1); } .cook .r1 .raw { opacity: calc(1 - var(--c1) * var(--c1) * var(--c1)); }
.cook .r2 .crisp { opacity: var(--c2); } .cook .r2 .raw { opacity: calc(1 - var(--c2) * var(--c2) * var(--c2)); }
.cook .r3 .crisp { opacity: var(--c3); } .cook .r3 .raw { opacity: calc(1 - var(--c3) * var(--c3) * var(--c3)); }
.cook.is-hot .rasher img { animation: sizzle .16s steps(2) infinite; }
.cook.is-hot .r2 img { animation-delay: -.05s; }
.cook.is-hot .r3 img { animation-delay: -.1s; }
@keyframes sizzle { 50% { translate: .7px -.5px; } }

.steam { position: absolute; inset: 0; pointer-events: none; opacity: var(--heat); }
.steam i { will-change: transform, opacity; position: absolute; bottom: 44%; width: 16%; height: 50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 244, 230, .2), transparent 72%); animation: steam 4.6s ease-in infinite; }
.steam i:nth-child(1) { left: 24%; }
.steam i:nth-child(2) { left: 39%; animation-delay: -1.2s; }
.steam i:nth-child(3) { left: 54%; animation-delay: -2.5s; }
.steam i:nth-child(4) { left: 32%; animation-delay: -3.4s; }
@keyframes steam { 0% { transform: translateY(24%) scaleX(.6); opacity: 0; } 22% { opacity: 1; } 100% { transform: translate(10%, -95%) scaleX(1.6); opacity: 0; } }

.cook-notes { position: absolute; left: -2%; top: 3%; z-index: 3; display: grid; pointer-events: none; }
.cook-notes p { grid-area: 1 / 1; display: inline-flex; align-items: end; gap: 8px; white-space: nowrap; font-size: calc(23px * var(--hand-scale)); color: var(--ink); opacity: 0; transform: translateY(10px) rotate(-5deg); transition: opacity .4s, transform .5s var(--ease); }
.cook-notes .scribble { color: var(--accent); width: 54px; height: 30px; margin-bottom: -10px; }
.cook-notes .scribble-underline { position: absolute; left: 0; bottom: -12px; width: 100%; height: 12px; margin: 0; }
.cook[data-stage="0"] .cook-notes p:nth-child(1), .cook[data-stage="1"] .cook-notes p:nth-child(2), .cook[data-stage="2"] .cook-notes p:nth-child(3) { opacity: 1; transform: rotate(-5deg); }

.cook-rail { position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 3; display: grid; grid-template-columns: repeat(3, auto); gap: 7px 26px; padding: 11px 16px 9px; border-radius: 16px; background: rgba(13, 12, 11, .9); border: 1px solid var(--line-2); font-size: 12.5px; }
.cook-rail-track { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--raise-3); overflow: hidden; }
.cook-rail-track i { display: block; height: 100%; width: 100%; transform: scaleX(var(--cook)); transform-origin: left center; will-change: transform; border-radius: inherit; background: linear-gradient(90deg, #F2A7A0, var(--accent) 60%, #B8381C); }
.cook-rail b { font-weight: 600; color: var(--dim); transition: color .3s; }
.cook-rail b:nth-of-type(2) { text-align: center; }
.cook-rail b:nth-of-type(3) { text-align: right; }
.cook[data-stage="0"] .cook-rail b:nth-of-type(1), .cook[data-stage="1"] .cook-rail b:nth-of-type(2), .cook[data-stage="2"] .cook-rail b:nth-of-type(3) { color: var(--ink); }

/* ---------- Scene 2 · why dry-cured ---------- */
.duel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(12px, 2.4vw, 32px); align-items: stretch; margin-bottom: clamp(56px, 7vw, 96px); }
.duel-side { position: relative; display: grid; grid-template-columns: minmax(96px, 170px) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: center; padding: clamp(20px, 3vw, 38px); border-radius: 28px; background: var(--raise); border: 1px solid var(--line); }
.duel-side.is-ours { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 90, 54, .22), transparent 60%), var(--raise); border-color: rgba(255, 90, 54, .4); box-shadow: 0 40px 120px -50px rgba(255, 90, 54, .5); }
.duel-img { aspect-ratio: 3 / 4; display: grid; place-items: center; }
.duel-img img { max-height: 230px; width: auto; transform: rotate(-12deg); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.is-theirs .duel-img img { filter: grayscale(.8) brightness(.78) contrast(.9) drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.duel-side figcaption { display: grid; gap: 10px; justify-items: start; color: var(--muted); font-size: 16.5px; }
.duel-side strong { font: 750 clamp(30px, 3.4vw, 46px)/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.duel-vs { align-self: center; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 800 18px/1 var(--f-display); color: var(--dim); }
.duel-note { position: absolute; right: 22px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--dim); rotate: -3deg; }
.duel-note .scribble { width: 40px; height: 22px; }
.duel .stamp { position: absolute; right: -16px; top: -26px; width: clamp(92px, 9vw, 128px); height: auto; rotate: 12deg; opacity: .95; }

.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.facts li { position: relative; padding-top: 26px; border-top: 1px solid var(--line-2); }
.fact-num { position: absolute; top: -24px; left: 0; padding-right: 14px; background: var(--bg); font-size: calc(36px * var(--hand-scale)); line-height: 1; color: var(--accent); }
.facts h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 10px; }
.facts p { color: var(--muted); font-size: 16.5px; max-width: 30em; }

/* ---------- Scene 3 · the film, with its own light on the wall ---------- */
.film-scene { overflow: hidden; }
.film-ambient { position: absolute; inset: -12%; opacity: .5; pointer-events: none; }
.film-ambient img { width: 100%; height: 100%; object-fit: cover; }
.film-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 24%, transparent 72%, var(--bg) 100%); pointer-events: none; }
.film-scene .wrap { position: relative; z-index: 1; }
.film-scene .film-frame { max-width: 540px; box-shadow: 0 50px 160px -40px rgba(255, 150, 80, .4), var(--shadow); }

/* ---------- Night turns to morning ---------- */
.sunrise { position: relative; margin-block: -1px; overflow: hidden; display: grid; align-items: end; min-height: clamp(520px, 90vh, 860px); padding-bottom: clamp(44px, 6vw, 88px); background: linear-gradient(180deg, #0D0C0B 0%, #1C0F0A 20%, #4A1E10 38%, #B4481F 54%, #F08A4B 66%, #F9C99A 79%, #F4EDE1 95%); }
.sunrise-sun { will-change: translate, opacity; position: absolute; left: 50%; top: 56%; width: min(78vw, 760px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 240, 204, .95), rgba(255, 196, 128, .55) 46%, transparent 70%); pointer-events: none; }
.sunrise::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, rgba(244, 237, 225, 0), #F4EDE1 78%); pointer-events: none; }
.sunrise-copy { position: relative; z-index: 1; text-align: center; }
.sunrise-copy h2 { font-size: clamp(44px, 7.4vw, 108px); color: #1A1512; }
.sunrise-copy .hand { margin-bottom: 10px; font-size: calc(28px * var(--hand-scale)); color: #7A2E12; }
@supports (animation-timeline: view()) {
  .sunrise-sun { animation: sun-up linear both; animation-timeline: view(); animation-range: entry 10% cover 62%; }
  @keyframes sun-up { from { translate: -50% 4%; opacity: .25; } to { translate: -50% -50%; opacity: 1; } }
}

/* ---------- The morning table: warm, light sections ---------- */
.t-morning {
  --bg: #F4EDE1; --bg-2: #EEE5D5; --raise: #FFFBF5; --raise-2: #F1E8DA; --raise-3: #E6DBCA;
  --ink: #1A1512; --muted: #4B4239; --dim: #776C60;
  --line: rgba(26, 21, 18, .12); --line-2: rgba(26, 21, 18, .24);
  --accent: #CF3D16; --accent-2: #B5330F; --accent-ink: #FFF8F0; --accent-soft: rgba(207, 61, 22, .1);
  --ok: #1F7A4A;
  background: var(--bg); color: var(--ink); color-scheme: light;
}
.t-paper {
  --bg: #ECE1CD; --bg-2: #E5D8C1; --raise: #FBF6EC; --raise-2: #F0E6D4; --raise-3: #E2D5BE;
  background-color: var(--bg);
  background-image: url("../img/paper-noise.webp");
  background-size: 120px 120px;
}
.t-morning.box-section { background-color: var(--bg); }
.t-morning a:hover { color: var(--accent); }
.t-morning .btn-light:hover { background: #000; color: var(--bg); }
.t-morning .btn-primary:hover, .t-morning .badge { color: var(--accent-ink); }
.t-morning .product-card, .t-morning .post-card, .t-morning .box-item, .t-morning .box-summary { border-color: transparent; box-shadow: 0 1px 0 rgba(26, 21, 18, .05), 0 26px 54px -34px rgba(70, 45, 20, .45); }
.t-morning .product-card:hover, .t-morning .post-card:hover { border-color: transparent; box-shadow: 0 1px 0 rgba(26, 21, 18, .05), 0 34px 64px -30px rgba(70, 45, 20, .55); }
.t-morning .price-tag::before { background: var(--raise); opacity: 1; box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, .4); }
.t-morning .progress span { background: linear-gradient(90deg, var(--accent), #F08A4B); }

/* ---------- "How do you like it?" ---------- */
.doneness { --done: .5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 190px) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; margin-top: clamp(48px, 7vw, 96px); padding: clamp(24px, 4vw, 56px); border-radius: 32px; background: var(--raise); box-shadow: 0 1px 0 rgba(26, 21, 18, .05), 0 40px 80px -44px rgba(70, 45, 20, .5); }
.doneness-ask .hand { color: var(--accent); font-size: calc(24px * var(--hand-scale)); margin-bottom: 4px; }
.doneness-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin-top: 22px; background: transparent; cursor: pointer; }
.doneness-range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #F3B9AE 0%, #E2703A 52%, #6E2A11 100%); }
.doneness-range::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #F3B9AE 0%, #E2703A 52%, #6E2A11 100%); }
.doneness-range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: #FFFBF5; border: 3px solid #1A1512; box-shadow: 0 6px 14px rgba(40, 24, 10, .35); transition: scale .15s var(--ease); }
.doneness-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #FFFBF5; border: 3px solid #1A1512; box-shadow: 0 6px 14px rgba(40, 24, 10, .35); }
.doneness-range:active::-webkit-slider-thumb { scale: 1.12; }
.doneness-range:focus-visible { outline: none; }
.doneness-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.doneness-range:focus-visible::-moz-range-thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.doneness-scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--dim); }
.doneness-visual { position: relative; aspect-ratio: 3 / 4; border-radius: 26px; background: radial-gradient(120% 90% at 50% 20%, #2E2824, #141210); box-shadow: 0 30px 50px -28px rgba(40, 24, 10, .7); rotate: -3deg; overflow: hidden; }
.doneness-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(255, 120, 60, calc(.08 + var(--done) * .22)), transparent); pointer-events: none; }
.doneness-visual img { position: absolute; inset: 9% 16%; width: 68%; height: 82%; object-fit: contain; rotate: calc(-16deg + var(--done) * 8deg); }
.d-raw { opacity: calc(1 - var(--done) * 1.7); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
.d-crisp { opacity: calc(.5 + var(--done) * 1.1); scale: calc(1 - var(--done) * .05); filter: brightness(calc(1.14 - var(--done) * .4)) saturate(calc(.92 + var(--done) * .3)) drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
.doneness-picks { display: grid; }
.pick { grid-area: 1 / 1; display: grid; gap: 16px; align-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s, transform .45s var(--ease), visibility 0s .35s; }
.pick.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.pick-label { font-size: calc(26px * var(--hand-scale)); color: var(--accent); }
.pick-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.pick-row img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.pick h4 { font: 750 22px/1.15 var(--f-display); letter-spacing: -.02em; }
.pick h4 a { text-decoration: none; }
.pick-tip { margin-top: 5px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html:not(.js) .doneness-range, html:not(.js) .doneness-scale, html:not(.js) .doneness-visual { display: none; }
html:not(.js) .doneness { grid-template-columns: 1fr; }
html:not(.js) .doneness-picks { gap: 28px; }
html:not(.js) .pick { grid-area: auto; opacity: 1; visibility: visible; transform: none; }

.seg legend { grid-column: 1 / -1; float: none; margin-bottom: 6px; padding: 0 4px; }

/* ---------- Morning back to evening ---------- */
.dusk { margin-block: -1px; height: clamp(150px, 22vw, 270px); background: linear-gradient(180deg, #F4EDE1 0%, #EDBE92 28%, #8E3C1D 60%, #1C0F0A 86%, #0D0C0B 100%); }

/* ---------- Closing · story and regions ---------- */
.story-scene { padding-top: clamp(40px, 6vw, 80px); }
.story-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.story-years { display: flex; flex-wrap: wrap; gap: .1em .22em; margin-bottom: 28px; font: 800 clamp(60px, 8.6vw, 124px)/.85 var(--f-display); font-stretch: 75%; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 90, 54, .65); user-select: none; }
.story-years span:last-child:not(:first-child) { -webkit-text-stroke-color: rgba(245, 241, 234, .35); }
.story-copy p:not(.eyebrow) { margin: 18px 0 26px; color: var(--muted); font-size: 18px; max-width: 34em; }
.region-cards.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.is-compact .region-card { padding: 20px; gap: 8px; }
.is-compact .region-card h3 { font-size: 22px; }
.is-compact .region-card > p:not(.region-line):not(.region-here) { display: none; }
.region-line { color: var(--muted); font-size: 14.5px; }

/* ---------- Basket drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 7, 6, .62); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%); display: flex; flex-direction: column; background: var(--raise); border-left: 1px solid var(--line-2); box-shadow: -40px 0 120px -40px rgba(0, 0, 0, .8); transform: translateX(102%); transition: transform .4s var(--ease); outline: none; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 22px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; align-content: start; padding: 18px 22px 28px; }
.drawer-lines { list-style: none; display: grid; gap: 14px; }
.drawer-lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.drawer-lines img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--raise-2); }
.drawer-lines a { display: block; font-weight: 600; text-decoration: none; line-height: 1.3; }
.drawer-lines span { color: var(--dim); font-size: 14px; }
.drawer-lines b { font-variant-numeric: tabular-nums; }
.drawer-progress .progress { margin-top: 4px; }
.drawer-progress p { color: var(--muted); font-size: 14px; }
.drawer .totals { margin: 4px 0 6px; }
.drawer-keep { justify-self: center; margin-top: 4px; font-size: 15px; }
.drawer-open { overflow: hidden; }
.fly-rasher { position: fixed; left: 0; top: 0; z-index: 200; width: 46px; height: auto; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); will-change: transform, opacity; }

/* ---------- Greeting by time of day ---------- */
.cook-greeting { margin-bottom: 14px; font-size: calc(24px * var(--hand-scale)); color: var(--accent-2); rotate: -2deg; transform-origin: left center; opacity: 0; transition: opacity .6s .3s; }
.cook-greeting:empty { display: none; }
.cook-greeting.is-in { opacity: 1; }
html[data-daypart="morning"] .cook-stage { background: radial-gradient(130% 70% at 50% 118%, #6B2A14 0%, #2A150D 38%, var(--bg) 76%); }
html[data-daypart="evening"] .cook-stage { background: radial-gradient(130% 70% at 50% 118%, #3A180C 0%, #1A0E09 40%, var(--bg) 76%); }
.doneness-timer { margin-top: 22px; font-size: 15.5px; }
.footer-sign { width: 100%; font-size: calc(20px * var(--hand-scale)); color: var(--muted); rotate: -1deg; }

/* ---------- The bacon timer ---------- */
.timer-page { position: relative; padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.timer-page::before { content: ""; position: absolute; right: -10%; top: -20%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(255, 90, 54, .16), transparent); pointer-events: none; }
.timer-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.timer-copy h1 { font-size: clamp(44px, 6.4vw, 88px); }
.timer-copy .lede { margin: 20px 0 8px; }
.timer-copy .seg { max-width: 460px; }
.timer-seg { grid-template-columns: repeat(2, 1fr); }
.timer-steps { list-style: none; display: grid; gap: 14px; margin: 26px 0 18px; max-width: 520px; }
.timer-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--muted); font-size: 16px; transition: opacity .3s; }
.timer-steps li > span { font-size: calc(28px * var(--hand-scale)); line-height: 1; color: var(--accent); }
.timer-steps strong { color: var(--ink); font-weight: 600; }
.timer-steps b { font-variant-numeric: tabular-nums; }
.timer-page[data-phase] .timer-steps li { opacity: .4; }
.timer-page[data-phase="0"] .timer-steps li:nth-child(2), .timer-page[data-phase="1"] .timer-steps li:nth-child(3), .timer-page[data-phase="2"] .timer-steps li:nth-child(4), .timer-page[data-phase="done"] .timer-steps li { opacity: 1; }
.timer-face { display: grid; justify-items: center; gap: 6px; text-align: center; }
.timer-dial { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.timer-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.timer-ring circle { fill: none; stroke-width: 1.6; }
.timer-ring-bg { stroke: var(--raise-3); }
.timer-ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .3s linear; }
.timer-cook { position: absolute; inset: 7%; --cook: 0; --c1: 0; --c2: 0; --c3: 0; --heat: .1; }
.timer-cook .cook-visual { max-width: none; width: 100%; }
.timer-phase { min-height: 1.3em; margin-top: 14px; font-size: calc(28px * var(--hand-scale)); color: var(--accent-2); }
.timer-clock { font: 750 clamp(72px, 12vw, 128px)/.95 var(--f-display); font-stretch: 80%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.timer-page[data-phase="done"] .timer-clock { color: var(--accent); }
.timer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.timer-sound { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 999px; color: var(--dim); font-size: 14px; }
.timer-sound .icon { width: 18px; height: 18px; }
.timer-sound[aria-pressed="false"] { text-decoration: line-through; opacity: .7; }
.timer-flash { animation: timer-flash .9s ease 2; }
@keyframes timer-flash { 50% { background: rgba(255, 90, 54, .16); } }

/* ---------- A small surprise: type "bacon" ---------- */
.rain { position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; }
.rain img { position: absolute; top: -140px; width: 54px; height: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4)); animation: rain-fall linear forwards; }
@keyframes rain-fall { to { transform: translateY(calc(100vh + 300px)) rotate(var(--spin, 400deg)); } }

/* ---------- Payments row and card badges ---------- */
.pay-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pay-badges li { display: block; line-height: 0; }
.pay-badges svg { width: 48px; height: 32px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(245, 241, 234, .16), 0 6px 14px -8px rgba(0, 0, 0, .6); }
.pay-center { display: flex; justify-content: center; margin-top: 12px; }
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); }
.footer-pay-copy p { color: var(--dim); font-size: 14px; max-width: 46em; }
.footer-pay-copy .footer-pay-title { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; color: var(--ink); font-size: 15.5px; font-weight: 600; }
.footer-pay-title .icon { width: 18px; height: 18px; color: var(--ok); }
.footer-company { color: var(--muted); }
.footer-company strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer pills ---------- */
.since-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-brand .since-row .since { margin-top: 0; white-space: nowrap; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1080px) {
  .story-split { grid-template-columns: minmax(0, 1fr); }
  .doneness { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .doneness-visual { display: none; }
}
@media (max-width: 960px) {
  .timer-grid { grid-template-columns: minmax(0, 1fr); }
  .timer-face { order: -1; }
  .timer-dial { width: min(78vw, 340px); }
  .timer-copy h1 { font-size: clamp(38px, 10vw, 60px); }
  .cook-greeting { margin-bottom: 8px; font-size: calc(20px * var(--hand-scale)); }
  .cook-stage { align-items: start; }
  .cook-grid { grid-template-columns: 1fr; gap: 6px; }
  .cook h1 { font-size: clamp(46px, 12.6vw, 84px); }
  .cook .lede { margin-top: 16px; }
  .cook .hero-ctas { margin-top: 20px; }
  .cook-hint { display: none !important; }
  .cook-visual { justify-self: center; max-width: min(520px, 92vw, calc(100svh - var(--header-h) - 372px)); min-width: 220px; margin-top: 4px; }
  .cook-notes { left: 8%; top: -1%; }
  .cook-notes p { font-size: calc(19px * var(--hand-scale)); }
  .cook-notes .scribble-arrow-right { display: none; }
  .duel { grid-template-columns: 1fr; }
  .duel-vs { justify-self: center; margin: -6px 0; }
  .facts { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 720px) {
  .cook .tag { display: none; }
  .cook .lede { font-size: 16.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .cook .btn-lg { height: 52px; padding: 0 22px; }
  .cook-rail { gap: 6px 18px; padding: 9px 13px 7px; font-size: 12px; }
  .scene { padding: 64px 0; }
  .duel-side { grid-template-columns: 92px minmax(0, 1fr); border-radius: 22px; }
  .duel-img img { max-height: 150px; }
  .duel-note { position: static; margin-top: 4px; grid-column: 1 / -1; justify-self: end; }
  .duel .stamp { right: -6px; top: -30px; width: 86px; }
  .sunrise { min-height: 78vh; }
  .snap-row { display: grid; grid-auto-flow: column; grid-auto-columns: 76%; grid-template-columns: none !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 30px; -webkit-overflow-scrolling: touch; }
  .snap-row::-webkit-scrollbar { display: none; }
  .snap-row > * { scroll-snap-align: center; }
  .js .snap-row .reveal { opacity: 1; transform: none; animation: none; }
  .doneness { grid-template-columns: 1fr; border-radius: 24px; }
  .region-cards.is-compact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .is-compact .region-card { padding: 16px; border-radius: 18px; }
  .is-compact .region-card h3 { font-size: 19px; }
  .is-compact .region-card .btn { padding: 0 12px; font-size: 13.5px; max-width: 100%; }
  .is-compact .region-card, .is-compact .region-card form { min-width: 0; }
  .story-years { font-size: clamp(52px, 17vw, 80px); }
  .drawer-panel { top: auto; left: 0; width: 100%; max-height: 88dvh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 24px 24px 0 0; transform: translateY(102%); }
}
@media (max-width: 720px) and (max-height: 700px) {
  .cook h1 { font-size: clamp(40px, 11.4vw, 60px); }
  .cook .lede { -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .steam, .cook-hint { display: none !important; }
  .cook.is-hot .rasher img { animation: none; }
}
@media print {
  .drawer, .steam, .cook-rail, .cook-notes, .cook-hint, .sunrise-sun, .dusk { display: none !important; }
  .sunrise, .t-morning, .t-paper { background: #fff !important; }
}
