/* Caveat 500–700, variable, OFL 1.1 (Google Fonts v23), self-hosted: cyrillic + latin subsets */
@font-face { font-family: Caveat; src: url(/static/fonts/Caveat-cyrillic.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Caveat; src: url(/static/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; }
/* dems landing — stage 3: one night of one file (.studio/stage3-story.md).
   Chapters I–V + dawn on /v2. Loaded after site.css and stage2.css. */

.hand { font-family: Caveat, "Segoe Print", "Bradley Hand", cursive; font-weight: 700; letter-spacing: 0; }

/* ---------- chapter caption: «Глава I · Папка · 23:58» ---------- */
.chap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 16px; font: 600 12px/16px Benzin; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.chap__name { color: var(--fg-2); }
.chap__t { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.chap__t::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7cf60a; box-shadow: 0 0 10px rgba(124, 246, 10, 0.7); }

.trend__sub { margin: -20px 0 32px; }

/* ---------- Chapter I · the folder + two friends ---------- */
.problem__scene { position: relative; }
.folder li.is-hero { background: rgba(124, 246, 10, 0.07); box-shadow: inset 2px 0 0 #7cf60a; }
.folder li.is-hero b { color: var(--fg); }
.friends { position: absolute; z-index: 2; right: -8px; top: -28px; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.friend { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 18px; background: rgba(38, 38, 40, 0.92); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.friend__ava { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #3a3a3e; font: 600 12px/1 Benzin; color: var(--fg-2); }
.friend__body { display: grid; font: 400 14px/18px Benzin; color: var(--fg); }
.friend__body b { font: 600 11px/14px Benzin; color: var(--fg-3); }
.js-motion .friend { opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(900ms + var(--i) * 700ms); }
.js-motion .is-in .friend, .js-motion .problem__scene.is-in .friend { opacity: 1; transform: none; }
@media (max-width: 767px) { .friends { right: 4px; top: -36px; } }

/* ---------- Chapter II · another ear: flipping cassettes ---------- */
.ear__head { max-width: 760px; }
.ear__viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); }
.ear__viewport::-webkit-scrollbar { display: none; }
.ear__tapes { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 280px); gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.tape { scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
.tape__card { position: relative; display: block; width: 100%; aspect-ratio: 43 / 32; padding: 0; border: 0; background: none; color: inherit; perspective: 900px; rotate: var(--tilt); transition: rotate 400ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.tape__face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 700ms cubic-bezier(0.3, 1.25, 0.4, 1); transform-style: preserve-3d; }
.tape__face--front img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.7)); }
/* the paper label of the generated tapes sits in the top band (about 18–82 % × 10–28 %) */
.tape__note { position: absolute; left: var(--lx); top: var(--ly); width: var(--lw); height: var(--lh); translate: -50% -50%; rotate: var(--lr); display: flex; align-items: center; justify-content: center; text-align: center; font-size: clamp(14px, 1.3vw, 19px); line-height: 1; color: #24324e; white-space: nowrap; }
.tape__face--back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 16px 16px 14px; border-radius: 10px; text-align: left; color: #2a2620; background: #e9dfc6 linear-gradient(170deg, rgba(255, 255, 255, 0.35), rgba(120, 96, 60, 0.18)); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(80, 60, 30, 0.25); }
.tape__story { font-size: 18px; line-height: 1.15; text-wrap: pretty; }
.tape__who { font: 600 12px/16px Benzin; color: #2a2620; }
.tape__who span { display: block; font: 600 10px/14px Benzin; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(42, 38, 32, 0.6); }
.tape__card[aria-pressed="true"] { rotate: 0deg; }
.tape__card[aria-pressed="true"] .tape__face--front { transform: rotateY(-180deg); }
.tape__card[aria-pressed="true"] .tape__face--back { transform: rotateY(0deg); }
.tape__card:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 12px; }
.tape__cap { display: grid; gap: 2px; padding-left: 4px; }
.tape__cap b { font: 600 16px/22px Benzin; }
.tape__cap span { font: 400 13px/18px Benzin; color: var(--fg-3); }
.ear__outro { max-width: 720px; margin-top: 40px; font: 500 18px/28px Benzin; color: var(--fg); text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) {
  .tape__card { cursor: pointer; }
  .tape__card:hover { rotate: 0deg; }
  .tape__card:not([aria-pressed="true"]):hover .tape__face--front { transform: translateY(-6px); }
}
@media (min-width: 1024px) {
  .ear__viewport { overflow: visible; }
  .ear__tapes { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .tape__story { font-size: 17px; }
  .ear__outro { font-size: 22px; line-height: 32px; }
}
@media (min-width: 1280px) { .tape__story { font-size: 19px; } }

/* ---------- Chapter III · the road ---------- */
.road__stage { position: relative; }
.road__pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-scene); background: #0b0f16; margin: 0 calc(var(--gutter) * -1); }
.road__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.road__img--dawn { opacity: 0; }
.road__window { position: absolute; left: 85.6%; top: 60.6%; width: 9%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 120, 0.75), rgba(190, 246, 80, 0.25) 45%, transparent); mix-blend-mode: screen; opacity: 0; }
.road__svg { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; } /* the moth flies in front of the things on the road */
/* walked road: dotted like footsteps of light, revealed by the mask as the moth flies */
.road__lit { fill: none; stroke: rgba(214, 255, 150, 0.5); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0.1 14; }
.road__reveal { fill: none; stroke: #fff; stroke-width: 24; stroke-linecap: round; stroke-dasharray: 0 99999; }
.road__trail circle { fill: #eaffb8; }
.road__halo { fill: rgba(220, 255, 140, 0.55); }
.road__lamp { fill: #fbffe8; }
.road__wing { fill: rgba(246, 255, 220, 0.55); stroke: rgba(255, 255, 255, 0.45); stroke-width: 0.7; }
.road__obj { position: absolute; height: auto; translate: -50% -88%; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.6)); }
.road__obj--1 { width: 12%; left: 22%; top: 93%; rotate: -8deg; }
.road__obj--2 { width: 6.5%; left: 51%; top: 74%; rotate: 6deg; }
.road__obj--3 { width: 2.6%; left: 79.5%; top: 62.5%; }
.road__pin { position: absolute; display: grid; place-items: center; width: 28px; height: 28px; translate: -50% -50%; border-radius: 50%; font: 600 11px/1 Benzin; color: #111; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.road__pin--1 { left: 22%; top: 70%; }
.road__pin--2 { left: 51%; top: 62%; }
.road__pin--3 { left: 79.5%; top: 52%; }
.road__pin.is-on { background: #fff; box-shadow: 0 0 0 6px rgba(124, 246, 10, 0.25), 0 0 24px rgba(124, 246, 10, 0.6); }
.road__steps { display: grid; gap: 12px; margin-top: 16px; }
.road__card { border-radius: 20px; }
.road__card .how2__go { margin-top: 8px; }
.road__step.is-on .road__card { border-color: rgba(255, 255, 255, 0.5); }

@media (max-width: 767px) { .road__pic { border-radius: 0; } }
@media (min-width: 768px) { .road__pic { margin: 0; } }
@media (min-width: 1024px) {
  /* the cards climb the sky with the road: 01 low on the left, 03 high above the house */
  .road__steps { position: absolute; inset: 0; margin: 0; pointer-events: none; }
  .road__step { position: absolute; width: 27%; pointer-events: auto; }
  .road__step--1 { left: 3%; top: 26%; }
  .road__step--2 { left: 35%; top: 12%; }
  .road__step--3 { left: 67%; top: 4%; }
  .road__card { padding: 20px; background: rgba(10, 12, 18, 0.62); border-color: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
  .road__card .how2__title { margin-top: 4px; }
  .js-motion .road__step { opacity: 0.45; transition: opacity 500ms var(--ease-out); }
  .js-motion .road__step.is-on { opacity: 1; }
}
@media (min-width: 1280px) { .road__step { width: 25%; } .road__step--2 { left: 37%; } .road__step--3 { left: 71%; } }

/* ---------- Chapter IV · inside: one turning glass card on the open-door painting ----------
   Desktop / tablet: painting fills the block (16:9, grows with content); heading top right, the card below,
   leaving the door and the lit window visible on the left. Phone: painting on top, heading in the sky,
   the card stands on the grass. Slides are stacked in one grid cell, so the card keeps the height of the
   longest reason and never jumps. Controls mirror the hero show: progress dashes, count, back / pause / next. */
.inside__scene { position: relative; overflow: hidden; margin: 0 calc(var(--gutter) * -1); background: #06080c; isolation: isolate; }
.inside__door-img { position: absolute; z-index: -2; left: 0; top: 0; width: 100%; height: 520px; object-fit: cover; object-position: 22% 50%; }
.inside__scene::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 520px;
  background: linear-gradient(to bottom, rgba(6, 8, 12, 0.6) 0%, rgba(6, 8, 12, 0) 34%, rgba(6, 8, 12, 0) 52%, #06080c 100%); }
.inside__body { position: relative; display: flex; flex-direction: column; padding: 32px var(--gutter) 24px; }
.inside__head { max-width: 560px; }
.inside__head .t-section { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6); }
.inside__head .t-sub { color: rgba(255, 255, 255, 0.8); margin-top: 12px; }

.ishow { margin-top: 220px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(12, 12, 14, 0.66);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); overflow: hidden; touch-action: pan-y; }
.ishow__slides { display: grid; }
.ishow__slide { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden;
  transition: opacity 360ms var(--ease-out), visibility 0s linear 360ms; }
.ishow__slide.is-on { opacity: 1; visibility: visible; transition: opacity 420ms var(--ease-out) 80ms, visibility 0s; }
.ishow__art { position: relative; order: -1; height: 190px; }
.ishow__glow { position: absolute; left: 50%; top: 52%; width: 220px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(190, 246, 110, 0.18), rgba(255, 200, 120, 0.06) 55%, transparent); }
.ishow__img { position: absolute; left: 50%; top: 50%; height: auto; translate: -50% -50%; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.55));
  transition: transform 700ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 400ms var(--ease-out); }
.ishow__slide:not(.is-on) .ishow__img { opacity: 0; transform: translateY(18px) rotate(-10deg) scale(0.88); }
.ishow__copy { display: grid; gap: 8px; padding: 0 20px 4px; }
.ishow__slide:not(.is-on) .ishow__copy { transform: translateY(10px); }
.ishow__copy { transition: transform 420ms var(--ease-out); }
.ishow__n { font: 600 12px/16px Benzin; letter-spacing: 0.02em; color: #7cf60a; }
.ishow__t { font: 700 22px/28px Benzin; letter-spacing: -0.01em; text-wrap: balance; }
.ishow__x { font: 400 15px/22px Benzin; color: var(--fg-2); text-wrap: pretty; max-width: 480px; }

/* the thing per reason */
.ishow__slide--ears .ishow__img--a { width: 168px; }
.ishow__slide--notes .ishow__img--a { width: 136px; rotate: 6deg; }
.ishow__slide--flask .ishow__img--a { width: 92px; }
.ishow__slide--tapes .ishow__img--a { width: 160px; translate: -72% -62%; rotate: -10deg; }
.ishow__slide--tapes .ishow__img--b { width: 140px; translate: -26% -30%; rotate: 8deg; }
.ishow__slide--ear .ishow__img--a { width: 140px; rotate: 6deg; }

.ishow__bar { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 8px; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ishow__dots { display: flex; }
.ishow__dot { width: 32px; height: 44px; display: grid; place-items: center; }
.ishow__dot i { position: relative; display: block; width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.ishow__dot i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.ishow__dot.is-done i::after { transform: scaleX(1); }
.ishow__dot.is-on i::after { transform: scaleX(var(--p, 1)); }
.ishow__dot:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.92); outline-offset: -6px; border-radius: 8px; }
.ishow__count { margin-left: auto; font: 600 13px/16px Benzin; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.ishow__count b { color: #fff; font-weight: 600; }
.ishow__nav { display: flex; gap: 6px; }
.ishow__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04); color: #fff; transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 120ms var(--ease-out); }
.ishow__btn svg { width: 20px; height: 20px; }
.ishow__btn:active { transform: scale(0.94); }
.ishow__btn--play .ishow__i-play { display: none; }
.ishow__btn--play[aria-pressed="true"] { background: #fff; color: #12141a; border-color: transparent; }
.ishow__btn--play[aria-pressed="true"] .ishow__i-play { display: block; }
.ishow__btn--play[aria-pressed="true"] .ishow__i-pause { display: none; }
@media (hover: hover) and (pointer: fine) {
  .ishow__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); }
  .ishow__btn--play[aria-pressed="true"]:hover { background: #d9d9d9; }
}
.ishow__btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.92); outline-offset: 2px; }
@media (max-width: 479px) {
  .ishow__count { display: none; }  /* the dashes already show where you are */
  .ishow__bar { justify-content: space-between; padding: 8px 10px 10px 6px; }
  .ishow__dot { width: 26px; }
  .ishow__dot i { width: 18px; }
  .ishow__nav { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ishow__slide, .ishow__slide.is-on, .ishow__img, .ishow__copy { transition: none; }
  .ishow__btn--play { display: none; }
}
@media (prefers-reduced-transparency: reduce) { .ishow { background: #121214; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* tablet and up: the painting fills the block */
@media (min-width: 768px) {
  /* 16:9 of the scene width as a minimum, grows with the card (aspect-ratio + overflow:hidden would not grow) */
  .inside__scene { margin: 0; border-radius: var(--r-scene); display: flex; min-height: calc((min(100vw, 1248px) - 2 * var(--gutter)) * 0.5625); }
  .inside__door-img, .inside__scene::before { height: 100%; }
  .inside__door-img { object-position: 0% 50%; }
  .inside__scene::before { background:
      linear-gradient(to right, rgba(6, 8, 12, 0) 18%, rgba(6, 8, 12, 0.45) 45%, rgba(6, 8, 12, 0.7) 75%),
      linear-gradient(to bottom, rgba(6, 8, 12, 0) 60%, rgba(6, 8, 12, 0.55) 100%); }
  .inside__body { flex: 1; gap: 28px; padding: 40px; }
  .inside__head { align-self: flex-end; width: 58%; max-width: 560px; }
  .ishow { margin-top: auto; margin-left: auto; width: 82%; }
  .ishow__slide { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; }
  .ishow__art { order: 0; height: 220px; }
  .ishow__copy { padding: 28px 0 8px 28px; }
  .ishow__bar { padding: 8px 16px 12px 20px; margin-top: 8px; }
}
@media (min-width: 1024px) {
  .inside__body { padding: 56px 56px 48px; }
  .inside__head { width: 54%; }
  .inside__head .t-section { font-size: 44px; line-height: 48px; }
  .ishow { width: 82%; max-width: 820px; }
  .ishow__slide { grid-template-columns: minmax(0, 1fr) 240px; }
  .ishow__art { height: 250px; }
  .ishow__copy { padding: 36px 0 8px 36px; gap: 12px; }
  .ishow__t { font-size: 28px; line-height: 34px; }
  .ishow__x { font-size: 16px; line-height: 24px; }
  .ishow__slide--ears .ishow__img--a { width: 210px; }
  .ishow__slide--notes .ishow__img--a { width: 170px; }
  .ishow__slide--flask .ishow__img--a { width: 116px; }
  .ishow__slide--tapes .ishow__img--a { width: 196px; }
  .ishow__slide--tapes .ishow__img--b { width: 170px; }
  .ishow__slide--ear .ishow__img--a { width: 176px; }
  .ishow__glow { width: 280px; }
}

@media (min-width: 1280px) {
  .inside__head { width: 46%; }
  .ishow { width: 74%; }
  .ishow__slide { grid-template-columns: minmax(0, 1fr) 280px; }
}

/* ---------- Chapter V · the journal: closes the page under the final strip ----------
   One list in one card with hairlines between questions (not nine separate boxes); notebook numbers in
   the hand font; the page with the lyrics and the mug stand beside it on desktop. */
.final2 { padding-bottom: 0; }
.journal { padding-top: 56px; }
.journal__grid { display: grid; gap: 28px; }
.journal__side .t-section { font-size: 30px; line-height: 36px; }
.journal__side .t-sub { margin-top: 10px; }
.journal__art { display: none; }
.journal__list { max-width: none; margin: 0; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); overflow: hidden; }
.journal__list details { border: 0; border-radius: 0; background: none; }
.journal__list details + details { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.journal__list summary { justify-content: flex-start; gap: 12px; min-height: 64px; padding: 14px 20px; border-radius: 0; }
.journal__list summary::after { margin-left: auto; }
.journal__list details[open] summary { padding-bottom: 8px; }
.journal__no { flex: none; min-width: 34px; font-size: 22px; line-height: 1; color: #b6f36a; }
.journal__q { flex: 1 1 auto; }
.journal__list details p { padding: 0 20px 20px 66px; }
@media (max-width: 767px) { .journal__list details p { padding-left: 20px; } .journal__list summary { padding: 14px 16px; } }
@media (min-width: 768px) { .journal { padding-top: 72px; } }
@media (min-width: 1024px) {
  .journal__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .journal__side { position: sticky; top: 112px; }
  .journal__side .t-section { font-size: 36px; line-height: 40px; }
  .journal__art { display: block; position: relative; height: 260px; margin-top: 32px; }
  .journal__page { position: absolute; width: 170px; left: 0; top: 0; rotate: -7deg; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.6)); }
  .journal__mug { position: absolute; width: 116px; left: 150px; top: 96px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.6)); }
  .journal__list summary { padding: 16px 28px; min-height: 68px; }
  .journal__list details p { padding: 0 28px 24px 74px; }
}

/* ---------- Dawn: the epilogue warms up ---------- */
.dawn { position: relative; isolation: isolate; }
.dawn::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 70%; background: radial-gradient(70% 60% at 70% 0%, rgba(255, 196, 110, 0.12), rgba(124, 246, 10, 0.05) 50%, transparent 80%); pointer-events: none; }
.qrb__obj--vinyl { z-index: 1; width: 13%; left: 24%; top: -4%; rotate: -6deg; }

/* ---------- Final: the boiling strip (stop-motion "boil": same picture repainted, 4 frames × 0.4 s) ---------- */
/* .final2__inner overrides the .wrap side padding; give it back so the strip lines up with the page grid */
.final2__inner { padding-left: var(--gutter); padding-right: var(--gutter); }
.boil { position: relative; isolation: isolate; width: 100%; justify-self: stretch; display: grid; place-items: center; min-height: 300px; aspect-ratio: 1600 / 386; overflow: hidden; border-radius: var(--r-scene); background: #10131a; }
.boil__frames { position: absolute; inset: 0; z-index: -1; }
/* a soft dark pool under the words keeps the white text readable on the bright green strokes */
.boil__frames::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 75% at 50% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0)); }
.boil__f { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.boil__f:first-child { opacity: 1; }
/* each frame is on for a quarter of the 1.6 s cycle; negative delays line them up 0.4 s apart. No fades: hard cuts, like film */
.js-motion .boil.is-live .boil__f { animation: boil 1.6s step-end infinite; }
.js-motion .boil.is-live .boil__f:nth-child(2) { animation-delay: -1.2s; }
.js-motion .boil.is-live .boil__f:nth-child(3) { animation-delay: -0.8s; }
.js-motion .boil.is-live .boil__f:nth-child(4) { animation-delay: -0.4s; }
@keyframes boil { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
.boil__copy { display: grid; justify-items: center; gap: 24px; padding: 40px 24px; text-align: center; }
.boil__copy .t-section { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }
@media (max-width: 767px) { .boil { width: auto; margin: 0 calc(var(--gutter) * -1); border-radius: 0; aspect-ratio: auto; min-height: 320px; } }
@media (min-width: 1024px) { .boil__copy .t-section { font-size: 44px; line-height: 48px; } }

@media (prefers-reduced-motion: reduce) {
  .tape__face, .tape__card, .lab, .road__pin { transition: none; }
}
