/* Potful home page (2026-12-03 redesign): the opening and the scroll scenes.
   Opening, about 4.5 s, once per visit: "Potful" appears → a screen-wide pot rises from below → a screen-wide lid comes
   down from above → the letters drop into the steaming soup one by one, each with a splash and a few herbs → the lid
   settles ajar → the headline appears on the pot and the menu bar slides in.
   The resting styles below are the FINISHED picture (that is what Reduce Motion shows); the movement only exists inside
   @media (prefers-reduced-motion: no-preference). */

/* ------------------------------------------------------------------ the opening */
.entry {
  --sh: max(100vh, 600px);
  --rimY: calc(var(--sh) * 0.58);                       /* centre line of the soup */
  --nameY: calc(var(--sh) * 0.38);                      /* centre of the big name */
  --nameS: clamp(64px, min(19vw, 24vh), 210px);
  --rx: calc(50vw - var(--lip));                        /* soup: half width (the rim reaches both screen edges) */
  --ry: clamp(22px, min(6vw, 9vh), 84px);               /* soup: half height */
  --lip: clamp(10px, 1.5vw, 22px);
  --rx2: calc(var(--rx) + var(--lip));                  /* rim: half width */
  --ry2: calc(var(--ry) + var(--lip) * 0.55);
  --lidH: clamp(64px, min(14vw, 20vh), 190px);
  /* the lid closes over the whole opening; while the letters fall it waits just above the name */
  --lidLift: calc(var(--nameY) - var(--rimY) - var(--nameS) * 0.55 - 6px - var(--ry) * 1.06);
  --drop: calc(var(--rimY) - var(--nameY));
  --body: #c2412d;
  --rimc: #d9573f;
  position: relative;
  height: var(--sh);
  margin-top: -65px;                                    /* the menu bar floats over the top of the opening */
  overflow: hidden;
  isolation: isolate;
}
@supports (height: 100svh) { .entry { --sh: max(100svh, 600px); } }
.e-stage { position: absolute; inset: 0; }
.e-stage > * { position: absolute; }

/* the inside of the pot: rim, a dark inner wall, the soup with herbs and bubbles */
.e-back {
  z-index: 1; left: 0; right: 0;
  top: calc(var(--rimY) - var(--ry2));
  height: calc(var(--ry2) * 2);
  background:
    radial-gradient(var(--rx) var(--ry) at 50% 50%, #e2742f 0%, #d0602a 55%, #b9471f 97%, transparent 99.5%),
    radial-gradient(calc(var(--rx) + var(--lip) * 0.35) calc(var(--ry) + var(--lip) * 0.25) at 50% 50%, #8f2d1f 99%, transparent 99.6%),
    radial-gradient(var(--rx2) var(--ry2) at 50% 50%, var(--rimc) 99%, transparent 99.6%);
}
.e-bit { position: absolute; width: clamp(5px, 0.8vw, 11px); height: clamp(3px, 0.45vw, 6px); border-radius: 40%; background: #56683d; transform: rotate(var(--r, 20deg)); }
.e-bit.c { background: #f1d99b; width: clamp(5px, 0.7vw, 9px); height: clamp(5px, 0.7vw, 9px); border-radius: 30%; }
.e-bit.b1 { left: 31%; top: 44%; --r: 25deg; } .e-bit.b2 { left: 42%; top: 60%; --r: -35deg; } .e-bit.b3 { left: 58%; top: 40%; --r: 60deg; }
.e-bit.b4 { left: 66%; top: 57%; } .e-bit.b5 { left: 72%; top: 46%; --r: -10deg; } .e-bit.b6 { left: 36%; top: 53%; } .e-bit.b7 { left: 52%; top: 64%; --r: 80deg; }
.e-bub { position: absolute; width: clamp(6px, 1vw, 14px); height: clamp(4px, 0.6vw, 9px); border-radius: 50%; border: 1.5px solid rgba(255, 214, 170, 0.75); opacity: 0; }
.e-bub.u1 { left: 40%; top: 47%; } .e-bub.u2 { left: 61%; top: 52%; } .e-bub.u3 { left: 49%; top: 42%; }

/* the front: the lower half of the rim, then the pot's body down to the bottom of the screen */
.e-lip {
  z-index: 4; left: 0; right: 0; top: var(--rimY); height: var(--ry2);
  background: radial-gradient(var(--rx2) var(--ry2) at 50% 0, var(--rimc) 99.4%, transparent 100%);
  -webkit-mask-image: radial-gradient(var(--rx) var(--ry) at 50% 0, transparent 99.4%, #000 100%);
  mask-image: radial-gradient(var(--rx) var(--ry) at 50% 0, transparent 99.4%, #000 100%);
}
.e-front {
  z-index: 4; top: var(--rimY); bottom: 0;
  left: 0; right: 0;                                    /* edge to edge: no gaps at the sides */
  background: var(--body);
  -webkit-mask-image: radial-gradient(var(--rx2) var(--ry2) at 50% 0, transparent 99.4%, #000 100%);
  mask-image: radial-gradient(var(--rx2) var(--ry2) at 50% 0, transparent 99.4%, #000 100%);
}
/* a soft enamel shine down the left side */
.e-front::before { content: ""; position: absolute; left: 5%; top: calc(var(--ry2) + 4%); width: clamp(8px, 1.2vw, 18px); height: 38%; border-radius: 99px; background: #e07560; opacity: 0.55; }

/* the lid: as wide as the pot (the screen), resting slightly ajar */
.e-lid {
  z-index: 6; left: 0; right: 0;
  /* resting: the band reaches the front edge of the opening, flat, so no soup shows */
  top: calc(var(--rimY) + var(--ry) * 1.06 - var(--lidH));
  height: var(--lidH);
  transform: none;
  transform-origin: 50% 100%;
}
.e-knob { position: absolute; left: 50%; top: 0; width: clamp(40px, 7vw, 96px); height: 26%; border-radius: 99px; background: var(--ink); transform: translateX(-50%); }
.e-dome { position: absolute; left: 0; right: 0; top: 20%; bottom: 10%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--body); }
.e-dome::after { content: ""; position: absolute; left: 18%; top: 26%; width: 26%; height: 14%; border-top: clamp(4px, 0.7vw, 9px) solid #e07560; border-radius: 50% 50% 0 0 / 100% 100% 0 0; transform: rotate(-8deg); opacity: 0.9; }
.e-band { position: absolute; left: 0; right: 0; bottom: 0; height: max(14%, 9px); border-radius: 0; background: #a9352a; }

/* steam: only from the open soup during the opening (none once the lid is on) */
.e-steam { z-index: 2; left: calc(50% - var(--rx) * 0.75); width: calc(var(--rx) * 1.5); bottom: calc(var(--sh) - var(--rimY)); height: clamp(90px, 24vh, 240px); fill: none; stroke: #d6c6ae; stroke-width: 6; stroke-linecap: round; opacity: 0; }

/* the name: in the finished picture the letters are in the soup */
.e-name { z-index: 3; left: 0; right: 0; top: var(--nameY); transform: translateY(-50%); text-align: center; white-space: nowrap; font: 700 var(--nameS) / 1 var(--serif); letter-spacing: -0.02em; color: var(--ink); visibility: hidden; }
.e-l { position: relative; display: inline-block; }
.e-l b { display: inline-block; font-weight: 700; }
/* a splash where each letter lands: soup drops, a ripple, two herb sprinkles */
.e-sp { position: absolute; left: 50%; top: calc(50% + var(--drop) - var(--ry) * 0.15); width: 0; height: 0; pointer-events: none; }
.e-sp u, .e-sp em, .e-sp s { position: absolute; left: 0; top: 0; opacity: 0; }
.e-sp u { width: clamp(6px, 0.9vw, 12px); height: clamp(6px, 0.9vw, 12px); margin: clamp(-6px, -0.45vw, -3px); border-radius: 50%; background: #e2742f; }
.e-sp u:nth-child(1) { --dx: -1.6; --dy: -2.2; } .e-sp u:nth-child(2) { --dx: -0.8; --dy: -3.2; } .e-sp u:nth-child(3) { --dx: 0.1; --dy: -3.8; }
.e-sp u:nth-child(4) { --dx: 0.9; --dy: -3; } .e-sp u:nth-child(5) { --dx: 1.7; --dy: -2; }
.e-sp em { width: clamp(6px, 0.9vw, 12px); height: clamp(3px, 0.4vw, 5px); border-radius: 40%; background: #56683d; }
.e-sp em:nth-of-type(1) { --dx: -1.1; --dy: -4.2; --r: 160deg; } .e-sp em:nth-of-type(2) { --dx: 1.3; --dy: -3.6; --r: -140deg; }
.e-sp s { width: calc(var(--nameS) * 0.55); height: calc(var(--ry) * 0.42); margin-left: calc(var(--nameS) * -0.275); margin-top: calc(var(--ry) * -0.21); border-radius: 50%; border: 2px solid rgba(255, 222, 190, 0.85); }

/* the headline on the pot */
.e-copy { z-index: 7; position: absolute; left: 0; right: 0; top: calc(var(--rimY) + var(--ry2) + max(2.5vh, 14px)); padding: 0 24px; text-align: center; color: #fbe6d3; }
.e-copy h1 { margin: 0 auto 6px; max-width: 16em; font-size: clamp(28px, min(5vw, 7vh), 64px); line-height: 1.08; letter-spacing: -0.02em; color: #fbe6d3; }
.e-copy p { margin: 0; font: 500 clamp(16px, 1.6vw, 20px) / 1.4 var(--sans); color: #f6d6c6; }
.e-fade { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, var(--counter)); pointer-events: none; }
.e-cue { z-index: 8; position: absolute; left: 50%; bottom: 10px; display: flex; flex-direction: column; align-items: center; gap: 0; transform: translateX(-50%); color: var(--ink-soft); font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.e-cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* the movement */
@media (prefers-reduced-motion: no-preference) {
  /* 1. the name appears, letter by letter */
  .e-name { visibility: visible; }
  .e-l { animation: e-in 0.55s cubic-bezier(0.23, 1, 0.32, 1) calc(0.2s + var(--i) * 0.07s) both; }
  /* 2. the pot rises from below the screen */
  .e-back, .e-lip, .e-front, .e-steam { animation: e-rise 0.95s cubic-bezier(0.22, 1.08, 0.36, 1) 0.95s both; }
  .e-steam { animation: e-rise 0.95s cubic-bezier(0.22, 1.08, 0.36, 1) 0.95s both, e-steam 4.4s linear 0.95s both; }
  .e-steam path { animation: e-wisp 2.2s ease-in-out infinite; }
  .e-steam path:nth-child(2) { animation-delay: -0.6s; } .e-steam path:nth-child(3) { animation-delay: -1.3s; } .e-steam path:nth-child(4) { animation-delay: -1.8s; }
  .e-bub { animation: e-bub 1.6s ease-out 2s infinite; }
  .e-bub.u2 { animation-delay: 2.5s; } .e-bub.u3 { animation-delay: 2.9s; }
  /* 3. the lid comes down from above, waits above the name, then settles on the pot */
  .e-lid { animation: e-lid 2.9s 1.35s both; }
  /* 4. the letters drop in, one by one */
  .e-l b { animation: e-fall 0.62s both; animation-delay: calc(2.4s + var(--i) * 0.16s); }
  .e-l:nth-child(odd) b { --tilt: -14deg; } .e-l:nth-child(even) b { --tilt: 12deg; }
  .e-sp u, .e-sp em { animation: e-drop 0.62s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(2.88s + var(--i) * 0.16s); }
  .e-sp s { animation: e-ripple 0.8s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(2.86s + var(--i) * 0.16s); }
  /* 5. the headline and the way down */
  .e-copy { animation: e-up 0.75s cubic-bezier(0.23, 1, 0.32, 1) 4.15s both; }
  .e-cue { animation: e-cue-in 0.6s ease-out 4.8s both; }
  .e-cue svg { animation: e-bob 1.6s ease-in-out 5.4s infinite; }
  /* the menu bar arrives once the pot is done */
  body:has(.entry) .top { animation: e-top 0.6s cubic-bezier(0.23, 1, 0.32, 1) 4.3s both; }
}
@keyframes e-in { from { opacity: 0; transform: translateY(28px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes e-rise { from { transform: translateY(calc(var(--sh) - var(--rimY) + var(--ry2) + 30px)); } to { transform: none; } }
@keyframes e-steam { 0%, 22% { opacity: 0; } 34%, 66% { opacity: 0.8; } 76%, 100% { opacity: 0; } }
@keyframes e-wisp { 0%, 100% { transform: translateY(0); opacity: 0.55; } 50% { transform: translateY(-9%); opacity: 1; } }
@keyframes e-bub { 0% { opacity: 0; transform: scale(0.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes e-lid {
  0% { transform: translateY(calc(var(--rimY) * -1 - var(--ry) - 40px)) rotate(0deg); animation-timing-function: cubic-bezier(0.22, 1.1, 0.36, 1); }
  27% { transform: translateY(var(--lidLift)) rotate(-1deg); }
  33% { transform: translateY(calc(var(--lidLift) + 5px)) rotate(-0.5deg); }
  39%, 79% { transform: translateY(var(--lidLift)) rotate(0deg); animation-timing-function: cubic-bezier(0.55, 0, 0.75, 0.4); }
  91% { transform: translateY(0) rotate(-1.5deg); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  96% { transform: translateY(0) rotate(0.6deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes e-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
  18% { transform: translateY(calc(var(--nameS) * -0.09)) rotate(calc(var(--tilt) * -0.3)); animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.35); }
  78% { opacity: 1; }
  100% { transform: translateY(calc(var(--drop) + var(--nameS) * 0.5)) rotate(var(--tilt)); opacity: 0; }
}
@keyframes e-drop {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  12% { opacity: 1; }
  55% { opacity: 1; transform: translate(calc(var(--dx) * var(--ry) * 0.5), calc(var(--dy) * var(--ry) * 0.5)) scale(1) rotate(var(--r, 0deg)); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * var(--ry) * 0.7), calc(var(--ry) * -0.2)) scale(0.8) rotate(var(--r, 0deg)); }
}
@keyframes e-ripple { 0% { opacity: 0.9; transform: scale(0.25); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes e-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes e-cue-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes e-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes e-top { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .entry { --rimY: calc(var(--sh) * 0.5); --nameY: calc(var(--sh) * 0.3); }
  .e-copy { padding: 0 18px; }
}

/* ------------------------------------------------------------------ scroll scenes
   Without JavaScript or with Reduce Motion: plain sections, one under the other.
   With JavaScript (home.js adds .scenes-on to <html>): each scene is tall, its content stays pinned under the menu bar,
   and scrolling plays it: home.js sets --p (0 → 1 through the scene) and, on each [data-step], --vis and --off. */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scene { position: relative; padding: 72px 0; }
.sc-pin { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 20px; text-align: center; }
.sc-title { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 24px; }
.sc-step h2 { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -0.025em; margin: 10px 0 8px; }
.sc-step p { margin: 0; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 20px); }
.sc-step img { width: clamp(200px, 30vw, 380px); height: auto; }
.sc-dots { display: none; }
.sc-phone { position: relative; width: clamp(190px, 22vw, 290px); aspect-ratio: 390 / 844; margin: 0 auto; border: 9px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px rgba(90, 59, 34, 0.18); }
.sc-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-phone img + img { opacity: 0; }
.sc-says { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.sc-says b { display: block; font: 700 clamp(22px, 2.6vw, 32px) / 1.15 var(--serif); letter-spacing: -0.015em; }
.sc-says span { color: var(--ink-soft); }
.sc-counts { display: flex; justify-content: center; gap: clamp(18px, 6vw, 80px); margin: 0 0 22px; }
.sc-counts p { margin: 0; color: var(--ink-soft); font-weight: 600; }
.sc-counts .n { display: block; font: 700 clamp(44px, 7vw, 96px) / 1 var(--serif); letter-spacing: -0.03em; color: var(--tomato); font-variant-numeric: tabular-nums; }
.sc-parade { overflow: hidden; margin: 8px -20px 26px; }
.sc-row { display: flex; gap: clamp(10px, 1.6vw, 20px); width: max-content; padding: 6px 20px; }
.sc-row img { width: clamp(96px, 12vw, 170px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--paper); box-shadow: 0 10px 22px rgba(90, 59, 34, 0.14); }
.sc-row img:nth-child(even) { margin-top: clamp(16px, 2.6vw, 34px); }
.sc-chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.sc-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 600; }
.sc-chips .ic { color: var(--orange); }
.sc-side { display: none; }

.scenes-on .scene { padding: 0; }
.scenes-on .sc-what { height: 210vh; }
.scenes-on .sc-inside { height: 250vh; }
.scenes-on .sc-all { height: 170vh; }
.scenes-on .sc-pin { position: sticky; top: 65px; height: calc(100vh - 65px); max-width: none; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
@supports (height: 100svh) { .scenes-on .sc-pin { height: calc(100svh - 65px); } }

/* scene 1: three short truths, one at a time, each with its drawing */
.scenes-on .sc-what .sc-steps { position: relative; width: min(980px, 100%); height: min(74vh, 660px); }
.scenes-on .sc-what .sc-step {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: var(--vis, 0);
  transform: translateY(calc(var(--off, 0) * -70px));
}
.scenes-on .sc-what .sc-step img { width: clamp(190px, min(30vw, 42vh), 400px); transform: rotate(calc(var(--off, 0) * -6deg)) scale(calc(0.9 + var(--vis, 0) * 0.1)); }
.scenes-on .sc-what .sc-step h2 { transform: translateY(calc(var(--off, 0) * -24px)); }
.scenes-on .sc-dots { display: flex; flex-direction: column; gap: 10px; position: absolute; left: max(20px, 4vw); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; }
.scenes-on .sc-dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background 200ms, transform 200ms; }
.scenes-on .sc-dots li.on { background: var(--orange); transform: scale(1.35); }

/* scene 2: the phone stays, the screens change, captions slide in from alternating sides */
.scenes-on .sc-inside .sc-title { margin-bottom: 18px; }
.scenes-on .sc-phone { width: clamp(180px, min(22vw, 30vh), 290px); transform: rotate(calc((var(--p, 0) - 0.5) * 4deg)); }
.scenes-on .sc-phone img { opacity: var(--vis, 0); transform: scale(calc(1.04 - var(--vis, 0) * 0.04)); }
.scenes-on .sc-says { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.scenes-on .sc-says li {
  position: absolute; top: 50%; width: min(300px, 30vw); text-align: left;
  opacity: var(--vis, 0);
}
.scenes-on .sc-says li:nth-child(odd) { right: calc(50% + min(14vw, 19vh) + 40px); text-align: right; transform: translate(calc(var(--off, 0) * -60px), -50%); }
.scenes-on .sc-says li:nth-child(even) { left: calc(50% + min(14vw, 19vh) + 40px); transform: translate(calc(var(--off, 0) * 60px), -50%); }

/* scene 3: numbers count up, dishes parade past, the extras pop in */
.scenes-on .sc-row { transform: translateX(calc(var(--p, 0) * -40%)); }
.scenes-on .sc-chips li { opacity: 0; transform: translateY(14px) scale(0.92); transition: opacity 320ms cubic-bezier(0.23, 1, 0.32, 1), transform 320ms cubic-bezier(0.23, 1, 0.32, 1); }
.scenes-on .sc-chips li.on { opacity: 1; transform: none; }
.scenes-on .sc-side { display: block; position: absolute; top: 24%; width: clamp(120px, 13vw, 210px); height: auto; }
.scenes-on .sc-side.l { left: max(-30px, calc(50% - 640px)); transform: translateY(calc(-50% + (0.5 - var(--p, 0)) * 120px)) rotate(-6deg); }
.scenes-on .sc-side.r { right: max(-30px, calc(50% - 640px)); transform: translateY(calc(-50% + (var(--p, 0) - 0.5) * 120px)) rotate(7deg); }

@media (max-width: 720px) {
  .scenes-on .sc-what { height: 200vh; }
  .scenes-on .sc-inside { height: 240vh; }
  .scenes-on .sc-dots { display: none; }
  .scenes-on .sc-inside .sc-pin { justify-content: flex-start; padding-top: 28px; }
  .scenes-on .sc-phone { width: min(46vw, 30vh); }
  .scenes-on .sc-says { inset: auto 0 0 0; height: 30%; }
  .scenes-on .sc-says li, .scenes-on .sc-says li:nth-child(odd), .scenes-on .sc-says li:nth-child(even) {
    left: 20px; right: 20px; width: auto; top: 0; text-align: center; transform: translateY(calc(var(--off, 0) * -30px));
  }
  .scenes-on .sc-side { display: none; }
  .sc-counts { gap: 16px; }
}

/* the closing panel: the finished dinner */
.closing-panel .table-pic { width: min(360px, 100%); height: auto; aspect-ratio: 1; border-radius: 50%; border: 0; box-shadow: none; object-fit: cover; }

/* texts never overlap at a hand-over: they show only once they are clearly the current step (pictures keep their cross-fade) */
.scenes-on .sc-says li { opacity: clamp(0, calc(var(--vis, 0) * 2 - 1), 1); }
.scenes-on .sc-what .sc-step { opacity: 1; }
.scenes-on .sc-what .sc-step img { opacity: var(--vis, 0); }
.scenes-on .sc-what .sc-step h2, .scenes-on .sc-what .sc-step p { opacity: clamp(0, calc(var(--vis, 0) * 2 - 1), 1); }
.sc-step img { display: block; margin: 0 auto; }
/* the scroll hint sits on the red pot: cream, and left out where the screen is too short for it */
.e-cue { color: #fbe6d3; opacity: 0.85; }
@media (max-height: 760px) { .e-cue { display: none; } }

/* the lid's rim is an oval exactly the size of the pot's rim: at rest it lies right on it and hides the whole opening */
.e-lidrim {
  position: absolute; left: 0; right: 0;
  top: calc(100% - var(--ry) * 1.06 - var(--ry2));
  height: calc(var(--ry2) * 2);
  border-radius: 50%;
  background: var(--body);
  box-shadow: inset 0 calc(var(--lip) * -0.7) 0 #a9352a;
}
.e-band { display: none; }
/* the dome ends above the middle of the lid's oval rim and is as wide as the oval is there, so no corners stick out */
.e-dome { left: 6.5vw; right: 6.5vw; bottom: calc(var(--ry) * 1.06 + var(--ry2) * 0.5); }

/* leaving the opening: on the first scroll the pot sinks a little slower than the page and melts into the fade
   (translate, so it never fights the opening animation's transforms; home.js sets --ep from 0 to 1) */
.scenes-on .e-stage, .scenes-on .e-copy { translate: 0 calc(var(--ep, 0) * 34vh); }
/* the scroll hint sits in the fade at the bottom (cream there), so it is brown again */
.e-cue { color: var(--ink-soft); opacity: 1; }
.e-fade { height: 20%; }
@media (max-width: 720px) { .e-fade { height: 28%; } }
/* the scroll hint fades away as soon as you scroll */
.scenes-on .e-cue > * { opacity: clamp(0, calc(1 - var(--ep, 0) * 6), 1); }

/* ---- more life (2026-12-03): blobs, doodles, self-drawing underlines, taped notes, a circled zero, steam ---- */
/* the drawing sits on a soft colour blob that slowly changes shape; little doodles float around it */
.sc-art { position: relative; display: block; width: max-content; margin: 0 auto; }
.sc-art img { position: relative; z-index: 1; }
.sc-art::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 52%; width: 92%; aspect-ratio: 1;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: var(--blob, #dfe5d0);
  transform: translate(-50%, -50%) scale(calc(0.6 + var(--vis, 1) * 0.4)) rotate(calc(var(--off, 0) * 50deg));
}
.sc-what .sc-step[data-step="1"] { --blob: #f6ddc5; }
.sc-what .sc-step[data-step="2"] { --blob: #f6e6b6; }
.dd { position: absolute; z-index: 2; width: clamp(22px, 2.6vw, 36px); height: clamp(22px, 2.6vw, 36px); background: center / contain no-repeat; }
.dd-leaf { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 27C5 14 13 6 27 5c-1 14-9 22-22 22z' fill='%2356683d'/%3E%3Cpath d='M6 26 18 14' stroke='%23dfe5d0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.dd-drop { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3c5 8 9 12 9 17a9 9 0 0 1-18 0c0-5 4-9 9-17z' fill='%23e2742f'/%3E%3C/svg%3E"); }
.dd-star { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3v26M3 16h26M7 7l18 18M25 7 7 25' stroke='%23af521c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.dd-swirl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M10 29c-6-6 8-9 2-15S16 3 22 3' fill='none' stroke='%23c9b79c' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.dd-dot { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='10' cy='12' r='5' fill='%23f1d99b'/%3E%3Ccircle cx='22' cy='22' r='4' fill='%23c2412d'/%3E%3C/svg%3E"); }
.dd-dash { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 22c6-2 9-10 20-12' fill='none' stroke='%23c2412d' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M8 28c5-1 8-4 12-5' fill='none' stroke='%23c2412d' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* the key word is underlined by hand: the line draws itself while the step arrives */
.sc-step .mk { position: relative; white-space: nowrap; }
.sc-step .mk svg { position: absolute; left: -2%; width: 104%; bottom: -0.16em; height: 0.34em; overflow: visible; }
.sc-step .mk path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--vis, 1)); }

/* taped paper notes next to the phone, one per screen */
.sc-tags { display: none; }
.sc-tag svg { width: 46px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.t-timer b { font: 700 clamp(26px, 2.6vw, 34px) / 1 var(--serif); font-variant-numeric: tabular-nums; color: var(--tomato); }
.t-timer .tick { display: inline-block; width: 12px; height: 12px; margin-left: 8px; border-radius: 50%; background: var(--tomato); }

/* the circled zero */
.sc-counts .zero { position: relative; }
.sc-counts .ring { position: absolute; left: 50%; top: -0.12em; width: clamp(84px, 11vw, 150px); height: auto; transform: translateX(-50%) rotate(-6deg); fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; overflow: visible; pointer-events: none; }
.sc-counts .ring path { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* steam over the dish parade */
.sc-steam { display: block; width: min(640px, 80%); height: clamp(40px, 6vh, 70px); margin: -6px auto -10px; fill: none; stroke: #d6c6ae; stroke-width: 4; stroke-linecap: round; }
/* the finished dinner steams */
.plates { position: relative; }
.dinner-steam { position: absolute; left: 50%; top: 4%; width: clamp(80px, 9vw, 130px); height: auto; transform: translateX(-50%); fill: none; stroke: #eadfce; stroke-width: 4; stroke-linecap: round; opacity: 0.7; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .sc-art::before { animation: blob-morph 9s ease-in-out infinite; }
  .sc-art img { animation: art-float 5.5s ease-in-out infinite; }
  .dd { animation: dd-float 6s ease-in-out infinite; }
  .sc-steam path, .dinner-steam path { animation: e-wisp 2.6s ease-in-out infinite; }
  .sc-steam path:nth-child(2), .dinner-steam path:nth-child(2) { animation-delay: -0.9s; }
  .sc-steam path:nth-child(3), .dinner-steam path:nth-child(3) { animation-delay: -1.7s; }
  .sc-steam path:nth-child(4) { animation-delay: -2.2s; }
  .t-timer .tick { animation: tick 1s steps(2, jump-none) infinite; }
  .table-pic { animation: art-float 6s ease-in-out infinite; }
}
@keyframes blob-morph {
  0%, 100% { border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; }
  33% { border-radius: 56% 44% 42% 58% / 44% 56% 46% 54%; }
  66% { border-radius: 42% 58% 56% 44% / 58% 42% 52% 48%; }
}
@keyframes art-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes dd-float { 0%, 100% { rotate: 0deg; scale: 1; } 50% { rotate: 14deg; scale: 1.12; } }
@keyframes tick { 0% { opacity: 1; } 100% { opacity: 0.15; } }

/* with the scroll scenes on: doodles drift outward as a step leaves, tags pop in, the ring draws itself */
.scenes-on .dd { translate: calc(var(--off, 0) * var(--dx) * 1px) calc(var(--off, 0) * var(--dy) * 1px); opacity: var(--vis, 1); }
.scenes-on .sc-what .sc-step img { width: clamp(210px, min(32vw, 44vh), 430px); }
.scenes-on .sc-tags { display: block; position: absolute; inset: 0; pointer-events: none; }
.scenes-on .sc-tag {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 9px;
  background: #fffaf0; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 18px rgba(90, 59, 34, 0.12);
  font: italic 500 clamp(15px, 1.4vw, 18px) / 1.2 var(--serif); color: var(--ink);
  opacity: clamp(0, calc(var(--vis, 0) * 2 - 1), 1);
  transform: rotate(var(--rot, -4deg)) scale(calc(0.8 + clamp(0, calc(var(--vis, 0) * 2 - 1), 1) * 0.2));
}
.scenes-on .sc-tag::before { content: ""; position: absolute; left: 50%; top: -9px; width: 44px; height: 16px; transform: translateX(-50%) rotate(3deg); background: rgba(241, 217, 155, 0.75); }
.scenes-on .sc-tag em { font-weight: 700; color: var(--tomato); }
.scenes-on .sc-tag[data-step="0"] { left: calc(50% + min(11vw, 15vh) - 10px); top: 22%; --rot: 5deg; }
.scenes-on .sc-tag[data-step="1"] { right: calc(50% + min(11vw, 15vh) - 10px); top: 26%; --rot: -5deg; }
.scenes-on .sc-tag[data-step="2"] { left: calc(50% + min(11vw, 15vh) - 14px); top: 64%; --rot: -3deg; }
.scenes-on .sc-counts .ring path { stroke-dashoffset: calc(1 - clamp(0, calc((var(--p, 1) - 0.42) * 3), 1)); }
@media (max-width: 720px) {
  .scenes-on .sc-tag { font-size: 13px; padding: 7px 10px 6px; }
  .scenes-on .sc-tag[data-step="0"], .scenes-on .sc-tag[data-step="2"] { left: auto; right: 6px; }
  .scenes-on .sc-tag[data-step="1"] { right: auto; left: 6px; }
  .scenes-on .sc-tag[data-step="0"] { top: 14%; } .scenes-on .sc-tag[data-step="1"] { top: 30%; } .scenes-on .sc-tag[data-step="2"] { top: 44%; }
  .dd { width: 20px; height: 20px; }
}
/* each blob belongs to its step: hidden while that step is not on stage */
.scenes-on .sc-art::before { opacity: var(--vis, 1); }
/* the drawings have a cream background: "darken" lets the blob behind show through it (cream on cream stays invisible) */
.sc-art img { mix-blend-mode: darken; }

/* ---- a living background (2026-12-04): paper grain, faint kitchen doodles, soft colour washes, and a page colour
   that changes scene by scene (home.js paints it from the scroll; without the script it simply stays cream) ---- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background-color: var(--counter); pointer-events: none; }
.backdrop i { position: absolute; display: block; }
.bd-wash { inset: -20%; }
.bd-wash::before, .bd-wash::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; }
.bd-wash::before { right: 4%; top: 2%; background: radial-gradient(closest-side, rgba(226, 116, 47, 0.17), rgba(226, 116, 47, 0.06) 55%, transparent); }
.bd-wash::after { left: 2%; bottom: 0; background: radial-gradient(closest-side, rgba(86, 104, 61, 0.13), rgba(86, 104, 61, 0.04) 55%, transparent); }
.bd-doodles { left: 0; right: 0; top: 0; height: calc(100% + 360px); opacity: 0.085; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' fill='none' stroke='%233a2a20' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='rotate(-22 52 60)'%3E%3Cpath d='M52 104V80'/%3E%3Cpath d='M52 80C34 62 38 26 52 20C66 26 70 62 52 80'/%3E%3Cpath d='M52 80C45 62 46 30 52 20C58 30 59 62 52 80'/%3E%3C/g%3E%3Cpath d='M196 74C196 50 214 34 240 32C238 56 222 72 196 74Z'/%3E%3Cpath d='M199 71L224 46'/%3E%3Ccircle cx='120' cy='34' r='5'/%3E%3Ccircle cx='134' cy='40' r='5'/%3E%3Ccircle cx='127' cy='53' r='5'/%3E%3Cg transform='rotate(28 118 162)'%3E%3Cellipse cx='118' cy='140' rx='11' ry='15'/%3E%3Cpath d='M118 155V198'/%3E%3C/g%3E%3Cpath d='M272 132C262 140 250 150 252 166C254 180 290 180 292 166C294 150 282 140 272 132Z'/%3E%3Cpath d='M272 136C267 150 267 165 272 178'/%3E%3Cpath d='M272 132V124'/%3E%3Cpath d='M42 234C56 240 66 258 92 266C72 280 46 266 40 240Z'/%3E%3Cpath d='M42 234C38 226 44 220 52 224'/%3E%3Cpath d='M186 248V272M174 260H198' stroke='%23af521c'/%3E%3Ccircle cx='300' cy='276' r='21'/%3E%3Cpath d='M300 259V293M285 268L315 284M285 284L315 268'/%3E%3Cpath d='M318 64C306 52 330 44 318 30C310 22 320 14 326 12' stroke='%23af521c'/%3E%3Cg transform='rotate(-14 194 330)'%3E%3Cpath d='M194 312V352M186 312V326C186 332 202 332 202 326V312M194 312V326'/%3E%3C/g%3E%3Ccircle cx='96' cy='322' r='2.5' fill='%233a2a20'/%3E%3Ccircle cx='262' cy='218' r='2.5' fill='%233a2a20'/%3E%3Ccircle cx='26' cy='150' r='2.5' fill='%233a2a20'/%3E%3C/svg%3E") 0 0 / 360px 360px repeat; }
.bd-grain { inset: 0; opacity: 0.55; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.25 0 0 0 0 0.16 1.4 0 0 0 -0.55'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 240px 240px repeat; }
@media (max-width: 720px) { .bd-doodles { background-size: 280px 280px; opacity: 0.075; } }
@media (prefers-reduced-motion: no-preference) {
  .bd-wash::before { animation: wash-a 26s ease-in-out infinite alternate; }
  .bd-wash::after { animation: wash-b 32s ease-in-out infinite alternate; }
}
@keyframes wash-a { to { transform: translate(-22vw, 18vh) scale(1.12); } }
@keyframes wash-b { to { transform: translate(18vw, -16vh) scale(0.92); } }
/* the page itself lets the backdrop show; the menu bar and the opening's fade take on the current page colour */
body:has(.backdrop) { background: var(--counter); }
body:has(.backdrop) .top { background: rgba(var(--bgc, 246, 239, 226), 0.9); }
body:has(.backdrop) .top.scrolled { background: rgba(var(--bgc, 246, 239, 226), 0.96); }
.e-fade { background: linear-gradient(transparent, var(--bgc, var(--counter))); }
/* the drawings are cut out now (transparent), so they need no blending; their blobs are a deeper shade of the page colour */
.sc-art img { mix-blend-mode: normal; }
.sc-what .sc-step[data-step="0"] { --blob: #f1c8a3; }
.sc-what .sc-step[data-step="1"] { --blob: #eed58c; }
.sc-what .sc-step[data-step="2"] { --blob: #cbd8b2; }
/* the pot melts into the background itself (grain and doodles show through), not into a flat colour band */
.e-fade { display: none; }
.entry { -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
@media (max-width: 720px) { .entry { -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); } }
/* the scroll hint now sits right after the opening, pulled up into its faded bottom */
.e-cue { position: relative; left: 50%; bottom: auto; width: max-content; margin: -50px 0 10px; }
