/* Stoveside, stoveside.app. The page is one range seen from above. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-latin.woff2) format("woff2");
  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;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cedarville Cursive";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cedarville-cursive.woff2) format("woff2");
}

:root {
  /* The light app icon, made into an appliance */
  --steel: #cfd4da;
  --steel-hi: #e7eaed;
  --steel-lo: #aab2bb;
  --steel-deep: #8e97a1;
  --iron: #131518;
  --iron-2: #23272c;
  --iron-soft: #3d434a;
  --flame: #1e63d8;
  --cone: #7db8ff;
  --flame-n: #3f8cff;
  --cone-n: #a9dcff;
  /* The dark icon */
  --molasses: #2a1810;
  --molasses-2: #3a2418;
  --linen: #efeae1;
  --linen-soft: #cdbfae;
  /* The recipe grid's sugar stages */
  --s1: #f9edc0;
  --s2: #f3d688;
  --s3: #e8b352;
  --s4: #cd7d2f;
  --finish: #3a1c0f;
  --butter: #f7e9b5;
  --caramel: #8a4513;
  --porcelain: #fafaf7;
  --ink: #24140c;
  --ink-soft: #5a4226;
  --rule: #e6e0d4;
  /* Book cloth */
  --check: #be2424;
  --buffalo: #ab2328;
  --enamel: #1f3355;
  --ticking: #27476b;
  --rule-blue: #8fb0d6;

  --rail: 92px;
  --gutter: clamp(16px, 4vw, 56px);
  --wide: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --hand: "Cedarville Cursive", "Snell Roundhand", cursive;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-bottom: var(--rail); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.45;
  color: var(--iron);
  background: var(--steel);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--rail);
  overflow-x: clip;
}
h1, h2, p, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--cone); color: var(--iron); }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 4px; border-radius: 8px; }
.defs { position: absolute; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--iron); color: var(--linen); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

html { scrollbar-color: var(--steel-deep) var(--steel); }

/* Brushed steel: fine horizontal grain plus a soft overhead highlight */
.splash, .sect--snap, .sect--cook, .sect--plan {
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .45), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(19, 21, 24, .025) 0 1px, transparent 1px 5px),
    var(--steel);
}

/* ---------- Burner ---------- */

.burner { position: relative; display: block; aspect-ratio: 1; width: 100%; }
.burner svg { width: 100%; height: 100%; overflow: visible; }
.burner .grate { fill: var(--iron); }
.burner .fingers { stroke: var(--iron); }
.burner .cap { fill: var(--iron); }
.burner .fl-f { fill: var(--flame); }
.burner .fl-c { fill: var(--cone); }
.burner .fl-s {
  transform-box: view-box;
  transform-origin: 50px 34px;
  transform: scale(0);
  opacity: 0;
  transition: transform .34s var(--ease), opacity .2s linear;
  transition-delay: calc(var(--i) * 42ms);
}
.burner.is-lit .fl-s { transform: scale(1); opacity: 1; }
.burner.is-out .fl-s { transition-duration: .22s, .22s; transition-delay: calc(var(--i) * 38ms); }
.burner .fl-k {
  transform-box: view-box;
  transform-origin: 50px 36px;
}
.burner.is-lit .fl-k { animation: flicker calc(1.1s + var(--i) * 97ms) ease-in-out calc(var(--i) * -173ms) infinite alternate; }
@keyframes flicker {
  0% { transform: scale(1, 1); }
  35% { transform: scale(.94, 1.07); }
  70% { transform: scale(1.04, .93); }
  100% { transform: scale(.97, 1.03); }
}
/* A flame under the pointer flickers hard, like a draft caught it */
.burner.is-lit .fl-g:hover .fl-s { animation: stir .3s linear infinite alternate; animation-composition: add; }
@keyframes stir {
  0% { transform: scale(1.08, .85) rotate(-7deg); }
  50% { transform: scale(.9, 1.3) rotate(5deg); }
  100% { transform: scale(1.05, 1.12) rotate(-3deg); }
}
/* A blue glow on the iron when lit */
.burner svg { position: relative; z-index: 1; }
.burner::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 140, 255, .42) 20%, transparent 70%);
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.burner.is-lit::before { opacity: 1; }

.burner--giant { cursor: pointer; border-radius: 12px; }
.burner--giant:hover .cap { fill: #2a2e34; }

.hob { position: relative; aspect-ratio: 1; }
.hob > .burner { position: absolute; inset: 0; }
.dish { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.dish svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 14px 14px rgba(19, 21, 24, .32)); }

/* Steam: soft white puffs that rise and fade */
.steam { position: absolute; z-index: 2; width: 22%; aspect-ratio: 1; pointer-events: none; }
.steam i {
  position: absolute; left: 15%; top: 0; width: 70%; height: 100%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 55%, #fff 0 22%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0) 70%);
  filter: blur(5px) drop-shadow(0 2px 4px rgba(19, 21, 24, .18));
  opacity: 0;
  animation: steam 3.3s cubic-bezier(.3, .6, .4, 1) infinite;
}
.steam i:nth-child(2) { animation-delay: 1.1s; }
.steam i:nth-child(3) { animation-delay: 2.2s; }
@keyframes steam {
  0% { transform: translate(0, 0) scale(.35, .45); opacity: 0; }
  18% { opacity: 1; }
  55% { transform: translate(calc(var(--drift, 40%) * .4), -120%) scale(1.1, 1.5); }
  100% { transform: translate(var(--drift, 40%), -250%) scale(1.9, 2.3); opacity: 0; }
}

/* ---------- Splash: the back guard and the cooktop ---------- */

.splash {
  position: relative;
  min-height: calc(100svh - var(--rail));
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(24px, 3.4vw, 56px);
  padding: 0 var(--gutter) clamp(16px, 2vw, 28px);
  max-width: 1600px;
  margin: 0 auto;
}
.splash::before {
  /* Brushed steel runs the full width even when the layout stops growing */
  content: ""; position: absolute; inset: 0 -50vw; z-index: -1; background: inherit;
}
.splash__panel {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  margin-top: clamp(16px, 2.4vw, 28px);
  padding: clamp(22px, 2.6vw, 36px) clamp(22px, 3vw, 44px);
  border-radius: 26px;
  color: var(--linen);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .09), transparent 38%),
    linear-gradient(180deg, #1c1f24, #0e1013);
  box-shadow:
    inset 0 0 0 3px #59616b,
    inset 0 0 0 5px #1a1d21,
    inset 0 2px 0 5px rgba(255, 255, 255, .06),
    0 2px 0 rgba(255, 255, 255, .7),
    0 24px 40px -22px rgba(19, 21, 24, .6);
}
.splash h1 {
  font-size: clamp(38px, 4.3vw, 68px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.splash h1 em { font-style: normal; color: var(--cone); }
.splash__copy > p {
  margin-top: 14px;
  max-width: 54ch;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.4;
  color: #c9ced4;
}
.splash__act { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 22px; }
.splash__devices { font-size: 15px; font-weight: 600; color: #9aa3ad; }

/* Range clock, set into the panel */
.clock { grid-column: 1; grid-row: 1; justify-self: end; align-self: start; margin-top: clamp(14px, 1.8vw, 24px);
  width: clamp(64px, 6vw, 92px); aspect-ratio: 1; border-radius: 50%; padding: 5px;
  background: conic-gradient(from 210deg, #f4f6f8, #8e97a1, #e7eaed, #6c747d, #f4f6f8);
  box-shadow: 0 8px 16px -6px rgba(19, 21, 24, .55);
}
.clock__face { position: relative; width: 100%; height: 100%; border-radius: 50%;
  background:
    repeating-conic-gradient(from -1deg, var(--iron) 0 2deg, transparent 2deg 30deg) center / 100% 100%,
    radial-gradient(circle, var(--porcelain) 0 58%, #ece6d8 100%);
  -webkit-mask: radial-gradient(circle, #000 0 100%);
}
.clock__face::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle, var(--porcelain) 0 70%, #f1ecdf 100%); }
.clock__face i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 3px; background: var(--iron); }
.clock__h { width: 6%; height: 26%; margin-left: -3%; }
.clock__m { width: 4%; height: 36%; margin-left: -2%; }
.clock__s { width: 1.6%; height: 40%; margin-left: -.8%; background: var(--flame) !important; }
.clock__face b { position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; margin: -4.5% 0 0 -4.5%; border-radius: 50%; background: var(--flame); }

/* The nameplate: a chrome badge on the back guard */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 800; letter-spacing: -.03em;
}
.brand img { border-radius: 11px; box-shadow: 0 4px 10px rgba(19, 21, 24, .3); }
.guard {
  grid-column: 1 / -1; grid-row: 1;
  margin-inline: -50vw;
  background: #dde1e5;
  border-bottom: 3px solid var(--steel-deep);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .6), 0 10px 16px -10px rgba(19, 21, 24, .25);
}
.plate {
  grid-column: 1; grid-row: 1; align-self: start; justify-self: start;
  margin: clamp(20px, 2.6vw, 34px) 0 clamp(20px, 2.6vw, 34px);
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--iron);
  background: #eef0f2;
  box-shadow: inset 0 0 0 2px var(--steel-deep), 0 8px 16px -8px rgba(19, 21, 24, .4);
}
.plate img { width: clamp(34px, 3vw, 44px); height: auto; border-radius: 10px; }

/* Cooktop */
.cooktop--hero {
  position: relative; z-index: 3;
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding-top: clamp(20px, 2.4vw, 32px);
}
.burner--giant { grid-column: 1; grid-row: 2 / 4; align-self: center; justify-self: center; width: min(100%, 600px, calc(100svh - var(--rail) - 150px)); margin-top: 12px; }
.hob--skillet, .hob--kettle { width: min(100%, calc(100svh - var(--rail) - 520px)); min-width: 180px; justify-self: center; }
.hob--kettle .steam { left: 76%; top: 0; width: 30%; margin-left: -6%; --drift: 25%; }

/* ---------- Store button ---------- */

.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--iron);
  background: var(--linen);
  box-shadow: inset 0 -2px 0 rgba(19, 21, 24, .18), 0 10px 22px -10px rgba(0, 0, 0, .7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
}
.store svg { width: 24px; height: auto; fill: currentColor; }
.store small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; opacity: .78; }
.store:hover { transform: translateY(-2px); background: #fff; box-shadow: inset 0 -2px 0 rgba(19, 21, 24, .18), 0 16px 28px -12px rgba(0, 0, 0, .6); }
.store:active { transform: translateY(1px); }
.store--small {
  font-size: 15px; padding: 9px 14px; gap: 8px; border-radius: 999px;
  background: var(--iron); color: var(--linen);
}
.store--small svg { width: 15px; }
.store--small:hover { background: var(--iron-2); }
.store--big { font-size: 26px; padding: 16px 30px 16px 24px; border-radius: 20px; }
.store--big svg { width: 28px; }

/* ---------- Sections ---------- */

.sect {
  position: relative;
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding: clamp(80px, 10vw, 150px) max(var(--gutter), calc((100% - var(--wide)) / 2));
}
.sect--cook { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sect h2 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
  margin-bottom: 22px;
}
.sect__text p { max-width: 46ch; color: var(--iron-soft); font-size: clamp(17px, 1.3vw, 19px); text-wrap: pretty; }
.sect__text p + p { margin-top: 14px; }
/* Panel seams between stretches of cooktop */
.sect--snap::before, .sect--cook::before, .sect--plan::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(19, 21, 24, .14) 12%, rgba(19, 21, 24, .14) 88%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}

.replay, .mix {
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  color: var(--iron);
  background: #eef0f2;
  box-shadow: inset 0 0 0 2px var(--steel-deep), 0 6px 14px -8px rgba(19, 21, 24, .45);
  transition: transform .25s var(--ease);
}
.replay svg, .mix svg { width: 20px; height: 20px; }
.replay:hover, .mix:hover { transform: translateY(-2px); }
.replay:active svg { transform: rotate(-200deg); transition: transform .4s var(--ease); }

/* ---------- Snap scene ---------- */

.snapscene { position: relative; aspect-ratio: 7 / 7.2; }
.hob--snap { position: absolute; width: 26%; right: -7%; top: -8%; }
.card {
  position: absolute; right: -3%; bottom: -2%; width: 42%; z-index: 2;
  padding: 3% 3.4% 3.6%;
  aspect-ratio: 5 / 3.7;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(var(--lh) - 1px), var(--rule-blue) calc(var(--lh) - 1px) var(--lh)) 0 calc(var(--lh) * 1.9) / 100% 100% no-repeat,
    linear-gradient(90deg, transparent 9%, rgba(190, 36, 36, .45) 9% calc(9% + 1.5px), transparent 0),
    #fbf8ef;
  --lh: clamp(18px, 1.85vw, 27px);
  border-radius: 3px;
  color: #1f3355;
  font-family: var(--hand);
  transform: rotate(4deg);
  box-shadow: 0 2px 3px rgba(19, 21, 24, .12), 0 22px 30px -16px rgba(19, 21, 24, .45);
  transition: transform .8s var(--ease), opacity .6s;
  cursor: pointer;
}
.card:hover { transform: rotate(2deg) translateY(-6px); }
.card__stain { position: absolute; right: 9%; top: 34%; width: 32%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 179, 82, .22) 0 52%, rgba(205, 125, 47, .28) 60%, transparent 66%); }
.card__title { font-size: clamp(17px, 1.75vw, 26px); line-height: var(--lh); padding-left: 10%; }
.card__from { font-size: clamp(12px, 1.1vw, 16px); line-height: calc(var(--lh) * .9); padding-left: 10%; opacity: .8; }
.card__lines li { font-size: clamp(10px, 1vw, 15px); line-height: var(--lh); padding-left: 10%; white-space: nowrap; transition: opacity .4s, transform .6s var(--ease), filter .4s; }
.card__lines s { text-decoration-color: var(--check); text-decoration-thickness: 2px; }
.card__fix { color: var(--check); display: inline-block; transform: rotate(-6deg) translateY(-.35em); }

/* The recipe website: tap it and the share sheet picks Stoveside */
.site {
  position: absolute; left: -1%; bottom: -4%; width: 40%; z-index: 2;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--porcelain);
  font-size: clamp(7px, .72vw, 10.5px);
  transform: rotate(-3deg);
  box-shadow: 0 2px 3px rgba(19, 21, 24, .12), 0 22px 30px -16px rgba(19, 21, 24, .45);
  transition: transform .8s var(--ease);
}
.site:hover { transform: rotate(-1deg) translateY(-6px); }
.site__bar { display: flex; align-items: center; gap: .5em; padding: .8em 1em; background: #e6e2d8; }
.site__bar i { width: .8em; height: .8em; border-radius: 50%; background: #c9c3b6; flex: none; }
.site__bar span {
  flex: 1; min-width: 0; margin-left: .6em; padding: .35em .9em; border-radius: 999px;
  background: var(--porcelain); color: var(--iron-soft); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site__page { display: grid; gap: .55em; padding: 1em 1.4em 1.5em; }
.site__name { font-size: .85em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--check); }
.site__title { font-size: 1.6em; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.site__pic { aspect-ratio: 16 / 6; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: #c9955f; }
.site__pic svg { height: 125%; width: auto; }
.site__story { height: .55em; border-radius: 3px; background: #e3ded3; }
.site__story:last-child { width: 64%; }
.site__share {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: .8em; padding: 1.1em 1.4em;
  background: #f1ede4; border-radius: 12px 12px 0 0; font-weight: 700; color: var(--ink);
  box-shadow: 0 -10px 20px -12px rgba(19, 21, 24, .4);
  transform: translateY(105%); transition: transform .45s var(--ease);
}
.site__app { display: block; width: 3.4em; border-radius: 22%; }
.site__app img { display: block; width: 100%; border-radius: 22%; }
.snapscene[data-state="share"] .site__share { transform: none; }
.snapscene[data-state="share"] .site__app { animation: pick .5s .75s ease-out both; }
@keyframes pick { 0% { box-shadow: 0 0 0 0 rgba(30, 99, 216, 0); } 40% { transform: scale(.88); } 100% { transform: none; box-shadow: 0 0 0 .35em rgba(30, 99, 216, .6); } }

/* "Tap" tags on the two ways in */
.tap {
  position: absolute; z-index: 3; right: 6%; top: -1em;
  font-family: var(--display); font-size: clamp(11px, .95vw, 14px); font-weight: 800; letter-spacing: 0;
  padding: .4em .85em; border-radius: 999px;
  background: var(--iron); color: var(--linen);
  pointer-events: none;
  animation: nudge 1.8s ease-in-out infinite;
  transition: opacity .3s;
}
.site .tap { top: auto; bottom: 7%; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.snapscene:not([data-state="idle"]):not([data-state="grid"]) .tap { opacity: 0; }
.card:focus-visible, .site:focus-visible { outline: 3px solid var(--flame); outline-offset: 4px; }

.tablet {
  position: absolute; left: 0; top: 0; width: 82%; aspect-ratio: 4 / 3; z-index: 1;
  padding: 1.6%;
  border-radius: 6%/8%;
  background: linear-gradient(145deg, #2f343b, #0d0e10 40%);
  box-shadow: inset 0 0 0 1.5px #5d646d, 0 30px 50px -24px rgba(19, 21, 24, .65);
  transform: rotate(-2deg);
}
.tablet__screen { position: relative; width: 100%; height: 100%; border-radius: 4.6%/6.2%; overflow: hidden; background: var(--porcelain); }

.viewfinder { position: absolute; inset: 0; background: #0d0e10; display: grid; place-items: center; transition: opacity .3s; }
.viewfinder__frame { position: relative; width: 62%; aspect-ratio: 5 / 3.4; }
.viewfinder__frame span { position: absolute; width: 14%; aspect-ratio: 1; border: 3px solid var(--s2); }
.viewfinder__frame span:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.viewfinder__frame span:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.viewfinder__frame span:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.viewfinder__frame span:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.viewfinder__frame::before { content: ""; position: absolute; inset: 8%; background: #fbf8ef; opacity: .9; transform: rotate(-6deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 13%, var(--rule-blue) 13% 14%); }
.viewfinder__shutter { position: absolute; right: 4%; top: 50%; width: 9%; aspect-ratio: 1; margin-top: -4.5%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #0d0e10, 0 0 0 6px #fff; transition: transform .15s; }
.reading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--porcelain); opacity: 0; transition: opacity .3s; }
.reading__burner { width: clamp(56px, 7vw, 92px); }
.reading p { font-weight: 700; color: var(--ink-soft); font-size: clamp(13px, 1.2vw, 17px); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

/* States driven by main.js */
.snapscene[data-state="flash"] .flash { animation: flash .5s ease-out; }
.snapscene[data-state="flash"] .viewfinder__shutter { transform: scale(.85); }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.snapscene[data-state="share"] .viewfinder,
.snapscene[data-state="read"] .viewfinder,
.snapscene[data-state="grid"] .viewfinder { opacity: 0; }
.snapscene[data-state="read"] .reading { opacity: 1; }
.snapscene[data-source="card"][data-state="read"] .card__lines li { opacity: .35; filter: blur(.3px); }
.snapscene[data-source="card"][data-state="grid"] .card { transform: rotate(7deg) translate(8%, 12%); }
.snapscene[data-source="link"][data-state="grid"] .site { transform: rotate(-6deg) translate(-6%, 12%); }

/* ---------- The recipe grid (the app's own) ---------- */

.sheet {
  position: absolute; inset: 0;
  padding: 4.4% 4.4% 3%;
  color: var(--ink);
  font-size: clamp(8px, 1.02vw, 14.5px);
  opacity: 0;
  transition: opacity .3s;
  display: flex; flex-direction: column; gap: .9em;
}
.snapscene[data-state="grid"] .sheet { opacity: 1; }
.sheet__head { display: flex; justify-content: space-between; align-items: end; gap: 1em; }
.sheet__title { font-size: 2.3em; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sheet__meta { color: var(--ink-soft); font-weight: 500; margin-top: .35em; display: flex; gap: 1.1em; flex-wrap: wrap; }
.sheet__meta b { font-weight: 700; color: var(--ink); }
.sheet__first { background: #f3efe4; border-radius: 10px; padding: .6em .9em; display: flex; gap: .8em; align-items: baseline; }
.sheet__first b { font-weight: 800; color: var(--caramel); }
.grid {
  display: grid;
  grid-template-columns: max-content repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: minmax(2.35em, auto);
  column-gap: .4em; row-gap: .3em;
  flex: 1;
}
.grid__name { grid-column: 1; display: flex; align-items: center; gap: .45em; padding: 0 .6em 0 .2em; font-weight: 600; white-space: nowrap; z-index: 1;
  opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .5s var(--ease); transition-delay: calc(var(--r) * 70ms); }
.grid__name b { font-weight: 800; font-variant-numeric: lining-nums tabular-nums; min-width: 2.3em; }
.grid__pour { align-self: center; height: 3px; border-radius: 4px; background: var(--s3); margin-left: -.4em;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); transition-delay: calc(400ms + var(--r) * 70ms); }
.grid__step {
  border-radius: 10px; padding: .45em .55em; display: flex; flex-direction: column; justify-content: center; gap: .15em; overflow: hidden;
  font-weight: 700; line-height: 1.1; z-index: 1;
  clip-path: inset(0 100% 0 0 round 10px);
  transition: clip-path .7s var(--ease);
  transition-delay: calc(900ms + var(--c) * 260ms);
}
.grid__step span { font-weight: 500; font-size: .86em; opacity: .85; }
.grid__step--finish { color: var(--butter); }
.is-built .grid__name { opacity: 1; transform: none; }
.is-built .grid__pour { transform: scaleX(1); }
.is-built .grid__step { clip-path: inset(0 0 0 0 round 10px); }

/* ---------- Pour band (quiet passage) ---------- */

.pour {
  position: relative;
  padding: clamp(64px, 8vw, 116px) max(var(--gutter), calc((100% - var(--wide)) / 2));
  background:
    radial-gradient(80% 120% at 85% 10%, rgba(255, 255, 255, .5), transparent 60%),
    var(--butter);
  color: var(--ink);
  overflow: clip;
}
.pour__line { font-size: clamp(36px, 5.6vw, 92px); font-weight: 800; letter-spacing: -.04em; line-height: 1; max-width: 15ch; text-wrap: balance; }
.pour__b { display: block; color: var(--caramel); margin-top: .18em; font-size: .62em; letter-spacing: -.03em; max-width: 22ch; }
.pour__demo { margin-top: clamp(28px, 4vw, 52px); max-width: 860px; display: flex; align-items: center; font-size: clamp(16px, 1.8vw, 26px); font-weight: 700; }
.pour__name { flex: none; padding: .45em .8em; border-radius: 12px; background: var(--s1); color: #5c2c0a; }
.pour__track { flex: 1; height: 8px; position: relative; margin: 0 -.2em; }
.pour__track i { position: absolute; inset: 0; border-radius: 6px; background: var(--caramel); transform: scaleX(var(--p, 0)); transform-origin: left; }
.pour__block { flex: none; padding: .9em 1.4em; border-radius: 14px; background: var(--s2); position: relative; transition: box-shadow .3s; }
.pour.is-met .pour__block { box-shadow: 0 0 0 4px var(--caramel); }

/* ---------- Cook scene ---------- */

.cookscene { position: relative; aspect-ratio: 7 / 6.8; }
.hob--pot { position: absolute; width: 47%; left: 0; top: 0; }
.hob--pan { position: absolute; width: 40%; left: 3.5%; bottom: 0; }
.hob--pot .steam { left: 40%; top: 30%; width: 26%; --drift: -10%; }
.bubbles { position: absolute; inset: 33%; border-radius: 50%; overflow: hidden; }
.bubbles i { position: absolute; width: 14%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); opacity: 0; animation: bubble 1.7s ease-out infinite; }
.bubbles i:nth-child(1) { left: 20%; top: 30%; }
.bubbles i:nth-child(2) { left: 60%; top: 20%; animation-delay: .3s; }
.bubbles i:nth-child(3) { left: 45%; top: 60%; animation-delay: .7s; }
.bubbles i:nth-child(4) { left: 70%; top: 55%; animation-delay: 1s; }
.bubbles i:nth-child(5) { left: 25%; top: 65%; animation-delay: 1.25s; }
.bubbles i:nth-child(6) { left: 50%; top: 35%; animation-delay: .5s; }
@keyframes bubble { 0% { transform: scale(.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.dish--kettle .lid { transform-box: view-box; transform-origin: 50px 50px; animation: rattle 3.3s linear infinite; }
@keyframes rattle {
  0%, 78%, 100% { transform: none; }
  81% { transform: rotate(5deg) translate(.4px, -.3px); }
  84% { transform: rotate(-4deg) translate(-.3px, .3px); }
  87% { transform: rotate(3deg); }
  90% { transform: rotate(-2deg); }
}
.dish--skillet .rise { transform-box: view-box; transform-origin: 50px 50px; animation: rise 2.8s ease-in-out infinite alternate; }
@keyframes rise { to { transform: scale(1.035); } }
.dish--pan .sizzle { animation: sizzle .18s steps(2) infinite; }
@keyframes sizzle { 50% { transform: translate(.4px, -.5px); } }

.phone {
  position: absolute; right: 2%; top: 4%; width: 44%; aspect-ratio: 9 / 19.2; z-index: 2;
  padding: 2.6%;
  border-radius: 15%/7%;
  background: linear-gradient(145deg, #2f343b, #0d0e10 40%);
  box-shadow: inset 0 0 0 1.5px #5d646d, 0 34px 50px -24px rgba(19, 21, 24, .7);
  transform: rotate(-4deg);
}
.phone__screen { position: relative; height: 100%; border-radius: 12.5%/5.8%; overflow: hidden; background: var(--porcelain);
  padding: 22% 0 0; display: flex; flex-direction: column; font-size: clamp(9px, 1.08vw, 15.5px); }
.phone__screen::before { content: ""; position: absolute; top: 3.4%; left: 50%; width: 30%; height: 3.6%; margin-left: -15%; border-radius: 999px; background: #0d0e10; }
.phone__recipe { padding: 0 8%; font-weight: 700; color: var(--ink-soft); font-size: .95em; }
.steps { flex: 1; display: flex; gap: 10%; transition: transform .7s var(--ease); margin-top: 6%; }
.step { flex: none; width: 74%; display: flex; flex-direction: column; gap: .7em; }
.step:first-child { margin-left: 8%; }
.step__n { font-size: .85em; font-weight: 700; color: var(--caramel); }
.step__t { font-size: 2.7em; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.step__d { font-size: 1.15em; line-height: 1.35; color: var(--ink); }
.step__uses { display: flex; flex-wrap: wrap; gap: .4em; }
.step__uses span { background: var(--s1); color: #5c2c0a; font-weight: 600; font-size: .86em; padding: .3em .6em; border-radius: 8px; }
.step__timer { align-self: start; display: inline-flex; align-items: center; gap: .5em; padding: .55em .9em .55em .6em; border-radius: 999px; background: var(--finish); color: var(--butter); font-weight: 700; font-size: .92em; transition: transform .2s; }
.step__timer svg { width: 1.3em; height: 1.3em; }
.step__timer.is-tapped { transform: scale(.92); }
.phone__dots { display: flex; gap: .45em; justify-content: center; padding: 6% 0 8%; }
.phone__dots i { width: .5em; height: .5em; border-radius: 50%; background: var(--rule); transition: background .3s, width .3s; }
.phone__dots i.is-on { background: var(--caramel); width: 1.4em; border-radius: 99px; }

.eggs { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.egg-timer { position: absolute; width: 15%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transform: translate(var(--fx, 0), var(--fy, 0)) scale(.2); opacity: 0;
  transition: transform .9s var(--ease), opacity .3s; }
.egg-timer.is-out { transform: translate(0, 0) scale(1); opacity: 1; }
.egg-timer.is-gone { transform: translate(0, 40px) scale(.6); opacity: 0; transition-duration: .5s; }
.egg-timer svg { width: 100%; overflow: visible; filter: drop-shadow(0 10px 10px rgba(19, 21, 24, .3)); }
.egg-timer text { font-family: var(--display); font-weight: 800; font-size: 22px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.egg-timer span { font-size: clamp(11px, 1vw, 14px); font-weight: 700; background: var(--porcelain); color: var(--ink); padding: 2px 9px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgba(19, 21, 24, .4); }
.egg-timer.is-ringing svg { animation: ring .12s linear infinite alternate; }
.egg-timer .rays { opacity: 0; }
.egg-timer.is-ringing .rays { opacity: 1; }
@keyframes ring { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

/* ---------- Share scene (the dark range) ---------- */

.sect--share {
  color: var(--linen);
  background:
    radial-gradient(90% 60% at 70% 20%, rgba(239, 234, 225, .07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(239, 234, 225, .025) 0 1px, transparent 1px 3px),
    var(--molasses);
}
.sect--share .sect__text p { color: var(--linen-soft); }
.sect--share :focus-visible { outline-color: var(--cone-n); }
.sharescene { position: relative; aspect-ratio: 7 / 5.6; }
.books { position: absolute; inset: 0; }
.burner--dark .grate { fill: var(--linen); }
.burner--dark .fingers { stroke: var(--linen); }
.burner--dark .cap { fill: var(--linen); }
.burner--dark .fl-f { fill: var(--flame-n); }
.burner--dark .fl-c { fill: var(--cone-n); }
.sect__act { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.sect__act .mix { margin-top: 0; }
.sect__burner { width: clamp(96px, 9vw, 132px); flex: none; }
.book {
  position: absolute; width: 34%; aspect-ratio: 3 / 4;
  border-radius: 3px 8px 8px 3px;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .22), inset 8px 0 6px -2px rgba(255, 255, 255, .12), 6px 6px 0 -1px #e9e0cc, 7px 7px 0 -1px #cbbfa6, 0 26px 34px -18px rgba(0, 0, 0, .8);
  display: grid; place-items: center;
  transform: translate(var(--x0, 0), 60px) rotate(var(--r0, 0deg)); opacity: 0;
  transition: transform 1s var(--ease), opacity .5s;
  transition-delay: calc(var(--i) * 120ms);
}
.is-in .book { transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)); opacity: 1; }
.book__label { max-width: 78%; text-align: center; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(11px, 1.15vw, 17px); padding: .5em .7em; }
.book--patterned .book__label { background: #f5efe2; color: var(--ink); border-radius: 3px; box-shadow: 0 0 0 2px rgba(36, 20, 12, .15), 0 3px 0 rgba(0, 0, 0, .12); }
.book--plain .book__label { color: #f5efe2; border-top: 2px solid rgba(245, 239, 226, .55); border-bottom: 2px solid rgba(245, 239, 226, .55); border-radius: 0; }

.pie {
  position: absolute; right: 0; bottom: 4%; width: 54%; z-index: 4;
  border-radius: 14px; overflow: hidden;
  background: var(--porcelain); color: var(--ink);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .85);
  transform: translateY(40px) rotate(2deg); opacity: 0;
  transition: transform 1s var(--ease) .7s, opacity .5s .7s;
  font-size: clamp(10px, 1vw, 14.5px);
}
.is-in .pie { transform: rotate(2deg); opacity: 1; }
.pie__band {
  display: flex; justify-content: space-between; align-items: center; gap: 1em;
  height: 3em; padding: 0 .8em;
  background:
    repeating-linear-gradient(0deg, rgba(190, 36, 36, .55) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(90deg, rgba(190, 36, 36, .55) 0 14px, transparent 14px 28px),
    #fafaf7;
}
.pie__band span { background: #f5efe2; padding: .25em .6em; border-radius: 3px; font-weight: 800; font-size: .95em; box-shadow: 0 0 0 1.5px rgba(36, 20, 12, .2); }
.pie__band b { background: var(--porcelain); padding: .25em .7em; border-radius: 999px; font-weight: 700; font-size: .9em; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.pie__body { display: grid; grid-template-columns: 40% 1fr; gap: 1em; padding: 1em; align-items: start; }
.pie__pic { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e9dfcb; }
.pie__pic svg { width: 100%; height: 100%; }
.pie__title { font-size: 2em; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pie__origin { margin-top: .4em; color: var(--ink-soft); font-weight: 500; }
.pie__reacts { display: flex; flex-wrap: wrap; gap: .45em; margin-top: 1em; }
.react { display: inline-flex; align-items: center; gap: .35em; padding: .3em .65em .3em .45em; border-radius: 999px; background: #f3efe4; font-weight: 700;
  transform: scale(0); transition: transform .5s var(--ease); transition-delay: calc(1.6s + var(--i) * 260ms); }
.is-in .react { transform: scale(1); }
.react svg { width: 1.5em; height: 1.5em; }
.react b { font-variant-numeric: tabular-nums; }

.invite {
  position: absolute; left: 30%; top: -2%; width: 36%; z-index: 3;
  padding: 1.1em; border-radius: 16px;
  background: var(--porcelain); color: var(--ink);
  font-size: clamp(10px, .95vw, 14px);
  box-shadow: 0 26px 36px -18px rgba(0, 0, 0, .8);
  transform: translateY(-30px) rotate(-3deg); opacity: 0;
  transition: transform 1s var(--ease) .45s, opacity .5s .45s;
}
.is-in .invite { transform: rotate(-3deg); opacity: 1; }
.invite p { font-weight: 600; line-height: 1.2; }
.invite p b { font-weight: 800; }
.invite__qr { margin: .8em auto; width: 58%; aspect-ratio: 1; }
.invite__qr svg { width: 100%; height: 100%; }
.invite__people { display: flex; flex-direction: column; gap: .35em; }
.invite__people li { display: flex; align-items: center; gap: .5em; font-weight: 600;
  opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .5s var(--ease); transition-delay: calc(2.2s + var(--i) * 450ms); }
.is-in .invite__people li { opacity: 1; transform: none; }
.invite__people i { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85em; color: var(--porcelain); }
.invite__people small { color: var(--ink-soft); font-weight: 500; font-size: 1em; }

/* ---------- Plan scene ---------- */

.planscene { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.sheetpan {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6%;
  padding: 7%;
  border-radius: 22px;
  background: linear-gradient(145deg, #eef1f3, #c2c9d0);
  box-shadow: inset 0 0 0 6px #d9dee3, inset 0 0 0 8px #b3bbc4, inset 0 10px 18px rgba(19, 21, 24, .12), 0 26px 40px -24px rgba(19, 21, 24, .55);
  transform: rotate(-2deg);
}
.meal { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  transition: transform .6s var(--ease), opacity .4s; }
.meal svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 10px rgba(19, 21, 24, .28)); }
.meal span { font-weight: 700; font-size: clamp(12px, 1.05vw, 15px); line-height: 1.15; }
.meal.is-leaving { transform: translateY(-30px) rotate(-20deg) scale(.6); opacity: 0; }
.meal.is-coming { transform: translateY(30px) rotate(20deg) scale(.6); opacity: 0; }

.notepad {
  position: relative;
  padding: 52px 22px 18px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, var(--check) 0 44px, transparent 44px),
    repeating-linear-gradient(180deg, transparent 0 33px, #dbe5ef 33px 34px) 0 52px / 100% calc(100% - 52px) no-repeat,
    #fdfbf5;
  color: var(--ink);
  box-shadow: 0 2px 2px rgba(19, 21, 24, .1), 0 26px 34px -20px rgba(19, 21, 24, .55);
  transform: rotate(2.5deg);
}
.notepad__head { position: absolute; left: 22px; top: 10px; color: var(--porcelain); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.notepad__head { line-height: 24px; }
.notepad__list li { animation: line-in .45s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.notepad__list .item { width: 100%; display: flex; align-items: center; gap: 10px; height: 34px; font-size: clamp(14px, 1.1vw, 16px); text-align: left; border-radius: 6px; }
.notepad__list .item:hover .box { border-color: var(--check); }
@keyframes line-in { from { opacity: 0; transform: translateX(14px); } }
.notepad__list li b { font-weight: 800; font-variant-numeric: lining-nums tabular-nums; min-width: 5em; }
.notepad__list li.is-merged b { color: var(--flame); }
.notepad__list li .box { width: 18px; height: 18px; flex: none; border-radius: 5px; border: 2px solid #b4a99a; transition: background .2s, border-color .2s; }
.notepad__list li.is-done { color: #7a6558; }
.notepad__list li.is-done span { text-decoration: line-through; text-decoration-color: var(--check); text-decoration-thickness: 2px; }
.notepad__list li.is-done .box { background: var(--check); border-color: var(--check);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fafaf7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.notepad__list button { display: contents; text-align: left; }

/* ---------- Close ---------- */

.close {
  position: relative;
  display: grid; justify-items: center; text-align: center;
  padding: clamp(90px, 12vw, 170px) var(--gutter) clamp(90px, 10vw, 150px);
  color: var(--linen);
  background:
    radial-gradient(50% 50% at 50% 34%, rgba(63, 140, 255, .18), transparent 70%),
    var(--molasses);
  overflow: clip;
}
.close__ring { width: clamp(220px, 32vw, 440px); margin-bottom: clamp(16px, 3vw, 36px); }
.close__ring .fl-f { fill: var(--flame-n); }
.close__ring .fl-c { fill: var(--cone-n); }
.close__ring .cap { fill: var(--linen); }
/* The closing burner sways like a low gas flame: each flame leans, stretches a little and flutters, all on its own clock */
.close__ring.is-lit .fl-k {
  transform-origin: 50px 37px;
  animation: lean calc(1.8s + var(--i) * 173ms) cubic-bezier(.45, .05, .55, .95) calc(var(--i) * -317ms) infinite alternate,
             flare calc(3.2s + var(--i) * 211ms) ease-in-out calc(var(--i) * -523ms) infinite,
             flutter calc(.32s + var(--i) * 37ms) linear calc(var(--i) * -41ms) infinite alternate;
  animation-composition: replace, add, add;
}
.close__ring .fl-c { transform-box: view-box; transform-origin: 50px 35.5px; }
.close__ring.is-lit .fl-c { animation: cone calc(.9s + var(--i) * 83ms) ease-in-out calc(var(--i) * -97ms) infinite alternate; }
.close__ring.is-lit::before { animation: breathe 2.6s ease-in-out infinite alternate; }
@keyframes lean {
  0% { transform: rotate(-3.5deg); }
  35% { transform: rotate(2deg); }
  60% { transform: rotate(-1deg); }
  100% { transform: rotate(4deg); }
}
@keyframes flare {
  0%, 100% { transform: scale(1, .95); }
  22% { transform: scale(.97, 1.1); }
  48% { transform: scale(1.01, .99); }
  70% { transform: scale(.95, 1.14); }
  85% { transform: scale(1, 1.02); }
}
@keyframes flutter {
  from { transform: scale(1.015, .985); }
  to { transform: scale(.985, 1.02); }
}
@keyframes cone {
  from { transform: scale(.92, .88); opacity: .85; }
  to { transform: scale(1.04, 1.08); opacity: 1; }
}
@keyframes breathe {
  from { opacity: .75; transform: scale(.96); }
  to { opacity: 1; transform: scale(1.04); }
}
.close__ring::before { inset: 4%; background: radial-gradient(circle, rgba(63, 140, 255, .5), transparent 70%); }
.close h2 { font-size: clamp(52px, 8vw, 96px); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.close p { margin: 18px 0 34px; font-size: clamp(18px, 1.6vw, 22px); color: var(--linen-soft); }

.foot {
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: #1e110b; color: var(--linen-soft); font-size: 15px;
}
.foot .brand { color: var(--linen); font-size: 20px; margin-right: auto; }
.foot .brand img { border-radius: 8px; }

/* ---------- Knob rail ---------- */

.knobs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--rail) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; justify-content: center; align-items: center; gap: clamp(18px, 6vw, 96px);
  background: #e2e6e9;
  border-top: 3px solid var(--steel-deep);
  box-shadow: 0 -14px 30px -18px rgba(19, 21, 24, .45);
}
.knob { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--iron); padding: 8px; border-radius: 16px; }
.knob__dial { width: 60px; height: 60px; overflow: visible; filter: drop-shadow(0 5px 6px rgba(19, 21, 24, .3)); }
.knob__ticks { stroke: var(--iron-soft); stroke-width: 2; stroke-linecap: round; transition: stroke .3s; }
.knob__turn { transform-box: view-box; transform-origin: 32px 32px; transform: rotate(var(--rot, 0deg)); transition: transform .7s var(--ease); }
.knob__turn circle { fill: #f4f5f7; stroke: var(--steel-deep); stroke-width: 2; }
.knob__grip { fill: #fff; stroke: var(--steel-deep); stroke-width: 2; }
.knob__ptr { fill: var(--iron); transition: fill .3s; }
.knob:hover { --rot: -30deg; }
.knob.is-on { --rot: -115deg; }
.knob.is-on .knob__ptr { fill: var(--flame); }
.knob.is-on .knob__ticks { stroke: var(--flame); }
.knob__label { position: relative; }
.knob.is-on .knob__label { color: #1a55bd; }
.knob.is-on .knob__label::before {
  content: ""; position: absolute; left: 50%; top: -14px; width: 8px; height: 11px; margin-left: -4px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, var(--cone) 0 30%, var(--flame) 32%);
  animation: pilot 1s ease-in-out infinite alternate;
}
@keyframes pilot { to { transform: scaleY(1.25) translateY(-1px); } }

/* ---------- Narrow screens ---------- */

@media (max-width: 1000px) {
  .sect, .sect--cook { grid-template-columns: minmax(0, 1fr); }
  .sect--cook .sect__text { order: -1; }
  .planscene { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .notepad { transform: rotate(1deg); }
  .cookscene { max-width: 640px; width: 100%; justify-self: center; }
  .snapscene, .sharescene { max-width: 720px; width: 100%; justify-self: center; }
}

@media (max-width: 760px) {
  :root { --rail: 74px; }
  body { font-size: 17px; }
  .splash { min-height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .plate { margin-top: 16px; padding: 7px 16px 7px 7px; }
  .clock { grid-column: 1; grid-row: 1; width: 52px; margin-top: 16px; }
  .splash__panel { grid-column: 1; grid-row: 2; margin-top: 14px; padding: 22px 20px 24px; border-radius: 22px; }
  .burner--giant { grid-column: 1; grid-row: 3; width: min(86%, 420px); margin-top: 26px; }
  .cooktop--hero { grid-column: 1; grid-row: 4; padding-top: 18px; }
  .hob--skillet, .hob--kettle { width: 100%; min-width: 0; }
  .knobs { gap: 4px; justify-content: space-around; }
  .knob { flex-direction: column; gap: 4px; font-size: 13px; padding: 4px 6px; }
  .knob__dial { width: 40px; height: 40px; }
  .knob.is-on .knob__label::before { display: none; }
  .snapscene { aspect-ratio: 7 / 10.4; }
  .card { width: 56%; right: -2%; bottom: 0; }
  .site { width: 50%; left: -2%; bottom: 1%; font-size: clamp(5.5px, 1.75vw, 8.5px); }
  .tap { font-size: 11px; }
  .tablet { width: 100%; top: 12%; }
  .hob--snap { width: 30%; right: -3%; top: -3%; }
  .sheet { font-size: clamp(6.5px, 2.15vw, 10px); }
  .cookscene { aspect-ratio: 7 / 8.6; }
  .hob--pot { width: 62%; }
  .hob--pan { width: 46%; left: 0; bottom: 4%; }
  .phone { width: 52%; top: 18%; }
  .phone__screen { font-size: clamp(8px, 2.4vw, 11px); }
  .egg-timer { width: 19%; }
  .sharescene { aspect-ratio: 7 / 10.5; }
  .book { width: 44%; }
  .invite { left: auto; right: 0; top: 0; width: 52%; }
  .pie { width: 86%; right: 4%; bottom: -2%; }
  .sheetpan { padding: 6%; }
  .pour__demo { font-size: 15px; }
  .pour__block { padding: .7em .9em; }
  .foot { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .steam, .bubbles { display: none; }
}
