/* dealow.app. Same language as the extension's first-run page (extension/static/onboarding.css): a sheet of paper,
   Dealow tearing through it, torn-paper controls, plum headlines with one orange brush stroke, a clay landscape at the
   end. Brand colours: mint, butter, peach and lavender are shapes only, never text. */

@font-face {
  font-family: "Dealow Rounded";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; 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;
}
@font-face {
  font-family: "Dealow Rounded";
  src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
  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;
}

:root {
  --ink: #34365A;
  --ink-soft: #5F5E7A;
  --line: rgba(52, 54, 90, 0.16);
  --paper: #FFF6EB;
  --paper-deep: #F9E9D6;
  --sheet: #FFF2E2;
  --card: #FFFDF8;
  --periwinkle: #7A8BDD;
  --lavender: #C9BCEE;
  --lavender-surface: #EEE8FA;
  --mint: #A3DDC8;
  --mint-surface: #E6F5EE;
  --positive: #1F6B52;
  --butter: #FFD45E;
  --peach: #FFB3A4;
  --peach-soft: #FFD9B8;
  --plum: #55307A;
  --plum-deep: #45256A;
  --plum-ink: #2B2350;
  --orange: #F26B1D;

  --font: "Dealow Rounded", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: drop-shadow(0 10px 18px rgba(90, 62, 40, 0.14));

  /* Torn edges, shared with the extension. */
  --torn: polygon(0 7%, 2% 0, 6% 6%, 11% 1%, 16% 7%, 22% 0, 28% 5%, 35% 1%, 42% 7%, 49% 0, 56% 6%, 63% 1%, 70% 7%, 77% 0, 84% 5%, 90% 1%, 96% 6%, 100% 2%, 99.2% 30%, 100% 55%, 99.4% 80%, 100% 96%, 96% 100%, 91% 94%, 85% 100%, 79% 95%, 72% 100%, 65% 94%, 58% 100%, 51% 95%, 44% 100%, 37% 94%, 30% 100%, 23% 95%, 16% 100%, 10% 94%, 4% 100%, 0 95%, 0.8% 70%, 0 45%, 0.6% 22%);
  --torn-patch: polygon(4% 4%, 22% 0, 40% 6%, 60% 1%, 80% 5%, 97% 0, 100% 20%, 95% 42%, 100% 64%, 96% 86%, 100% 100%, 78% 95%, 58% 100%, 38% 94%, 18% 100%, 0 96%, 5% 74%, 0 52%, 6% 30%, 0 12%);
  --torn-fine: polygon(0 10%, 8% 0, 20% 8%, 34% 0, 50% 9%, 66% 0, 80% 8%, 92% 0, 100% 12%, 98% 50%, 100% 90%, 90% 100%, 76% 92%, 60% 100%, 44% 91%, 28% 100%, 12% 92%, 0 100%, 2% 50%);
  /* The clip portholes: a torn paper rim, and the hole torn through it. Both on the same square. */
  --torn-ring: polygon(99.0% 49.3%, 95.3% 56.8%, 97.4% 63.4%, 94.5% 67.5%, 93.1% 74.0%, 86.6% 77.7%, 84.2% 86.2%, 77.9% 87.2%, 72.5% 94.6%, 65.6% 94.7%, 58.1% 98.2%, 51.9% 96.8%, 48.1% 98.9%, 40.7% 98.3%, 34.6% 97.0%, 27.8% 91.6%, 21.7% 89.8%, 19.5% 85.0%, 11.3% 80.6%, 9.2% 75.6%, 5.0% 69.8%, 2.9% 62.0%, 1.1% 57.7%, 0.6% 49.9%, 1.4% 42.4%, 6.2% 35.9%, 4.3% 30.5%, 8.6% 26.4%, 10.4% 20.1%, 17.9% 14.2%, 22.9% 9.0%, 28.5% 6.9%, 33.8% 3.4%, 41.2% 1.0%, 46.5% 0.5%, 51.6% 1.4%, 60.7% 1.2%, 66.8% 6.3%, 72.4% 5.8%, 75.9% 10.1%, 82.4% 13.4%, 86.9% 17.8%, 91.2% 23.3%, 95.2% 29.9%, 97.0% 35.1%, 99.0% 43.5%);
  --torn-hole: polygon(93.0% 49.8%, 91.1% 58.0%, 90.9% 63.3%, 87.9% 68.1%, 84.7% 75.8%, 80.2% 78.3%, 76.6% 84.2%, 67.9% 86.5%, 61.8% 91.8%, 56.1% 91.9%, 51.2% 92.3%, 43.5% 90.2%, 37.8% 90.8%, 32.4% 88.0%, 24.7% 85.2%, 20.0% 80.0%, 15.1% 75.3%, 13.2% 68.9%, 8.1% 61.8%, 7.7% 55.5%, 7.4% 50.6%, 9.7% 44.3%, 9.6% 35.9%, 13.4% 30.1%, 15.9% 23.3%, 19.8% 22.1%, 26.0% 14.5%, 32.5% 12.2%, 35.3% 9.5%, 44.4% 9.1%, 48.6% 7.3%, 58.3% 8.0%, 61.9% 9.1%, 67.3% 13.2%, 75.8% 16.2%, 79.7% 20.6%, 84.3% 23.8%, 87.2% 29.6%, 90.3% 35.5%, 90.6% 42.6%);
  --torn-bottom: polygon(0 0, 100% 0, 100% 96%, 94% 99%, 87% 96.5%, 80% 100%, 72% 97%, 64% 99.5%, 56% 96.5%, 48% 100%, 40% 97%, 32% 99.5%, 24% 96.5%, 16% 100%, 8% 97%, 0 99.5%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--plum-ink);
  background: radial-gradient(120% 70% at 50% 0%, #FFF8EE 0%, var(--paper) 50%, var(--paper-deep) 100%) fixed, var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}
/* Nothing inside may make the page wider than the screen; clip (unlike hidden) leaves the sticky header working. */
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--plum); color: #fff; font-weight: 800; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  /* The first layer is the "Nope." scene's wash (see .nope-wash), so the header turns with the page and never shows a band. */
  background:
    linear-gradient(rgb(var(--wash, 255 246 235) / var(--wash-a, 0)), rgb(var(--wash, 255 246 235) / var(--wash-a, 0))),
    linear-gradient(rgba(255, 246, 235, 0.92), rgba(255, 246, 235, 0.76));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand { justify-self: start; }
.brand img { height: clamp(30px, 3.2vw, 40px); width: auto; }

/* The sections as the extension's stepper: torn tabs joined by short dashes, the one you are on in peach. */
.nav-tabs { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-tabs li { display: flex; align-items: center; filter: drop-shadow(0 4px 8px rgba(90, 62, 40, 0.12)); }
.nav-tabs li + li::before { content: ""; width: clamp(12px, 1.4vw, 22px); height: 2.5px; margin: 0 clamp(6px, 0.8vw, 10px); border-radius: 2px; background: var(--plum-ink); }
.nav-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px 10px 10px;
  font-weight: 800; font-size: 16px; color: var(--plum-ink); text-decoration: none; white-space: nowrap;
  background: var(--sheet); clip-path: var(--torn-fine);
  transition: background 0.18s, transform 0.18s;
}
.nav-tab:hover { background: #FFE9D2; transform: translateY(-1px); }
.nav-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lavender); color: var(--plum-ink); transition: background 0.18s, color 0.18s; }
.nav-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-ic.fill { fill: currentColor; stroke: none; }
.nav-tab[aria-current="true"] { background: var(--peach-soft); }
.nav-tab[aria-current="true"] .nav-dot, .dock-tab[aria-current="true"] .nav-dot { background: var(--orange); color: #fff; }

/* The one plum button, a pill with a soft lavender halo. Until Dealow is in the Chrome Web Store it is a disabled
   "Get extension": the same pill, quieter, and it doesn't lift when you point at it. */
.vote {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; font-family: inherit; font-size: inherit;
  font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #6A3F98 0%, var(--plum) 55%, var(--plum-deep) 100%);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(201, 188, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(69, 37, 106, 0.28);
  transition: transform 0.18s, box-shadow 0.18s;
}
.vote:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(201, 188, 238, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 22px rgba(69, 37, 106, 0.32); }
.vote:active { transform: translateY(0); }
.vote:disabled {
  cursor: default; color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, #AB9BD3 0%, #9784C6 55%, #8873BA 100%);
  box-shadow: 0 0 0 4px rgba(201, 188, 238, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px rgba(69, 37, 106, 0.16);
}
.vote:disabled:hover { transform: none; }
.vote-ic { width: 1.2em; height: 1.2em; }
.vote svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vote-heart { width: 1.25em; height: 1.25em; }
/* Butter sparkles instead of an "opens elsewhere" arrow; they twinkle when you point at the button. */
.vote .vote-spark { width: 1.05em; height: 1.05em; fill: var(--butter); stroke: none; overflow: visible; }
.vote-spark path { transform-box: fill-box; transform-origin: center; transition: transform 0.25s; }
.vote:hover .vote-spark path { animation: twinkle 0.9s ease-in-out infinite; }
.vote:hover .vote-spark .vote-spark-sm { animation-delay: 0.3s; }
@keyframes twinkle { 50% { transform: scale(0.6) rotate(20deg); } }
@keyframes beat { 30% { transform: scale(1.3); } 60% { transform: scale(0.92); } }
.vote-top { justify-self: end; padding: 10px 18px 11px 16px; font-size: 15px; }

/* ---------- shared type ---------- */
.title {
  margin: 0;
  font-weight: 900; font-style: italic; letter-spacing: -0.02em; line-height: 1.14;
  font-size: clamp(38px, 5.4vw, 72px);
  color: var(--plum-ink);
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-weight: 900; font-style: italic; letter-spacing: -0.015em; line-height: 1.08;
  font-size: clamp(30px, 3.6vw, 48px);
  text-wrap: balance;
}
/* One brush stroke under the marked words, drawn in when it comes into view. */
.mark { position: relative; white-space: nowrap; }
.mark::after, .mark::before {
  content: ""; position: absolute; left: -0.06em; right: -0.04em; pointer-events: none;
  transform-origin: left center; transform: rotate(-1.5deg);
}
/* Kept tight under the baseline so a stroke on the first line of a two-line headline clears the second. */
.mark::after { bottom: 0.03em; height: 0.12em; border-radius: 0.1em 0.2em 0.08em 0.18em; background: var(--orange); }
.mark::before { bottom: -0.05em; left: 0.05em; right: -0.1em; height: 0.045em; border-radius: 1em; background: var(--peach); opacity: 0.8; }

.lead { margin: 0; font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); max-width: 36em; text-wrap: pretty; }
.body { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); text-wrap: pretty; }

.stamp {
  display: inline-block; margin: 0; padding: 6px 18px 7px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.02em; color: var(--plum);
  background: #FBE1C2; clip-path: var(--torn-fine);
}

/* ---------- hero ---------- */
.hero {
  position: relative; scroll-margin-top: 96px;
  display: grid; justify-items: center; gap: clamp(8px, 2vh, 24px);
  padding: clamp(4px, 2vh, 24px) 16px clamp(36px, 6vh, 64px);
  text-align: center;
  isolation: isolate;
}
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; width: clamp(110px, 13vw, 200px); filter: drop-shadow(0 8px 10px rgba(90, 62, 40, 0.1)); }
.cloud-left { left: 6%; top: 22%; animation: drift 14s ease-in-out infinite alternate; }
.cloud-right { right: 7%; top: 52%; width: clamp(90px, 10vw, 160px); animation: drift 17s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift { to { translate: 18px -4px; } }

/* The rift: the same 880×480 clip the extension plays, feathered into the page. */
.rift {
  position: relative; order: -1;
  width: min(100%, 880px, calc(34vh * 11 / 6));
  aspect-ratio: 11 / 6;
  -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask: radial-gradient(closest-side, #000 72%, transparent 100%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.rift > img, .rift > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rift > video, .rift > .rift-anim { opacity: 0; transition: opacity 0.2s; }
.rift[data-playing="true"] > :is(video, .rift-anim) { opacity: 1; }
/* No clip on this device: the last frame pops out of the paper instead. */
.rift[data-fallback="true"] > .rift-still { animation: rift-pop 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.2) both; }
@keyframes rift-pop {
  0% { opacity: 0; transform: translateY(28px) scale(0.86) rotate(-2deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

.hero-text { display: grid; justify-items: center; gap: 18px; max-width: 940px; margin-top: calc(-1 * clamp(0px, 3vh, 36px)); }
@media (min-width: 961px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; justify-items: start;
    column-gap: clamp(8px, 2vw, 32px); max-width: 1280px; margin: 0 auto;
    padding: clamp(16px, 4vh, 48px) clamp(32px, 4vw, 64px) clamp(40px, 7vh, 80px);
    text-align: left;
  }
  .hero .rift { order: 0; justify-self: center; width: min(100%, 680px, calc(58vh * 11 / 6)); }
  .hero-text { justify-items: start; margin-top: 0; }
  .hero .title { font-size: clamp(44px, 4.6vw, 70px); }
  .hero .lead { max-width: 30em; }
  .cloud-left { left: 1%; top: auto; bottom: -2%; width: clamp(90px, 9vw, 140px); }
  .cloud-right { right: 3%; top: 62%; }
}

/* ---------- clips: short videos in torn-paper portholes, each with a caption scrap, then the vote ---------- */
.clips {
  position: relative; isolation: isolate;
  /* One column as wide as the screen, never as wide as its content: on phones the carousel holds three clips side by
     side, and an auto column grew to fit them, which made the whole page wider than the phone (iOS Safari zoomed out). */
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(22px, 3vw, 36px);
  padding: clamp(52px, 7vw, 88px) 16px clamp(56px, 8vw, 96px);
  text-align: center; scroll-margin-top: 80px;
}
/* A deeper sheet, torn along the top, so the clips read as their own page. */
.clips::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #F7E2C9 0%, #FBEBDA 45%, var(--paper) 100%);
  clip-path: polygon(0 18px, 5% 6px, 11% 16px, 18% 4px, 26% 14px, 33% 2px, 41% 12px, 49% 5px, 57% 15px, 65% 3px, 73% 13px, 81% 4px, 88% 14px, 94% 5px, 100% 12px, 100% 100%, 0 100%);
}
.clips-head { display: grid; justify-items: center; gap: 12px; max-width: 640px; }
.clips-rail { position: relative; width: min(100%, 1120px); min-width: 0; }
.clips-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 44px); }
.clip { position: relative; display: grid; justify-items: center; --tone-a: #E6DDF9; --tone-b: #B7A6EA; --tone-label: #D9CEF4; }
.clip[data-tone="peach"] { --tone-a: #FFE4CC; --tone-b: #F5AE84; --tone-label: #FFD1AA; }
.clip[data-tone="butter"] { --tone-a: #FFF4CC; --tone-b: #FFCF5C; --tone-label: #FFEA98; }
.clip:nth-child(1) { rotate: -2deg; }
.clip:nth-child(2) { rotate: 1.5deg; }
.clip:nth-child(3) { rotate: -1deg; }
.clip-frame { position: relative; width: 100%; aspect-ratio: 1; filter: var(--shadow); }
.clip-frame::before { content: ""; position: absolute; inset: 0; background: var(--sheet); clip-path: var(--torn-ring); }
.clip-hole { position: absolute; inset: 0; overflow: hidden; clip-path: var(--torn-hole); background: linear-gradient(160deg, var(--tone-a), var(--tone-b)); }
/* The hole is deeper at its edge. */
.clip-hole::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 52%, rgba(52, 54, 90, 0.22) 76%); pointer-events: none; }
.clip-poster { position: absolute; left: 14%; top: 12%; width: 72%; height: 70%; object-fit: contain; }
/* A frame from the clip fills the whole hole. Pick frames with the face above the middle, clear of the play button. */
.clip-poster.clip-photo { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: clamp(54px, 5vw, 68px); aspect-ratio: 1; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: var(--plum-ink); cursor: pointer;
  box-shadow: 0 6px 16px rgba(52, 54, 90, 0.25), 0 0 0 7px rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease;
}
.clip-play svg { width: 42%; margin-left: 8%; fill: currentColor; }
.clip-play:hover { transform: scale(1.07); }
.clip-play:focus-visible { outline: 3px solid var(--plum); outline-offset: 6px; }
.clip-label {
  position: relative; z-index: 1; margin: -13% 0 0; padding: 12px 24px 14px; max-width: 12em;
  font-weight: 900; font-style: italic; letter-spacing: -0.01em; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.12; color: var(--plum-ink);
  background: var(--tone-label); clip-path: var(--torn-patch); rotate: -3deg;
}
.clip:nth-child(2) .clip-label { rotate: 2deg; }
.clips-arrow, .clips-dots { display: none; }

/* ---------- the clip player ----------
   One clip at a time on a torn sheet, story style: thin bars on top, tap to pause, swipe for the next clip, the corner
   curls up on the next one when a clip ends, and the last clip ends on the vote. main.js runs it. Nothing sits over the
   bottom 15% of the video, where the clips have their captions. */
.reel {
  padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; overscroll-behavior: contain;
  /* As wide as the video can be while the whole sheet still fits the screen's height. */
  width: min(92vw, 420px, calc((100vh - 110px) * 9 / 16 + 32px));
  width: min(92vw, 420px, calc((100dvh - 110px) * 9 / 16 + 32px));
  filter: drop-shadow(0 18px 30px rgba(43, 35, 80, 0.35));
}
.reel [hidden] { display: none !important; }
/* The page behind stays put while a clip is open. */
:root:has(.reel[open]) { overflow: hidden; scrollbar-gutter: stable; }
.reel::backdrop { background: rgba(43, 35, 80, 0.62); backdrop-filter: blur(5px); animation: veil-in 0.35s ease-out both; }
.reel[data-closing="true"]::backdrop { animation: veil-out 0.3s ease-in both; }
@keyframes veil-in { from { opacity: 0; } }
@keyframes veil-out { to { opacity: 0; } }
/* The sheet is drawn behind the content, so its torn edge never cuts the label or the close button. */
.reel-paper { position: relative; isolation: isolate; display: grid; padding: 26px 16px 18px; rotate: -0.6deg; transform-origin: 50% 50%; }
.reel-paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--card);
  clip-path: polygon(0.0% 2.4px, 4.5% 4.9px, 9.1% 4.6px, 13.6% 6.6px, 18.2% 1.9px, 22.7% 1.8px, 27.3% 5.1px, 31.8% 4.6px, 36.4% 2.1px, 40.9% 4.8px, 45.5% 2.8px, 50.0% 5.4px, 54.5% 0.8px, 59.1% 1.6px, 63.6% 6.3px, 68.2% 2.5px, 72.7% 1.8px, 77.3% 5.6px, 81.8% 4.4px, 86.4% 1.0px, 90.9% 3.9px, 95.5% 4.6px, 100.0% 2.7px, calc(100% - 2.6px) 16.7%, calc(100% - 0.5px) 33.3%, calc(100% - 1.3px) 50.0%, calc(100% - 0.3px) 66.7%, calc(100% - 0.8px) 83.3%, 100.0% calc(100% - 5.9px), 95.5% calc(100% - 2.8px), 90.9% calc(100% - 6.9px), 86.4% calc(100% - 3.1px), 81.8% calc(100% - 4.3px), 77.3% calc(100% - 6.1px), 72.7% calc(100% - 4.8px), 68.2% calc(100% - 0.8px), 63.6% calc(100% - 4.1px), 59.1% calc(100% - 4.4px), 54.5% calc(100% - 1.3px), 50.0% calc(100% - 0.7px), 45.5% calc(100% - 6.1px), 40.9% calc(100% - 3.6px), 36.4% calc(100% - 1.4px), 31.8% calc(100% - 3.2px), 27.3% calc(100% - 1.5px), 22.7% calc(100% - 5.6px), 18.2% calc(100% - 3.5px), 13.6% calc(100% - 0.7px), 9.1% calc(100% - 5.7px), 4.5% calc(100% - 0.6px), 0.0% calc(100% - 3.1px), 0.1px 83.3%, 3.0px 66.7%, 0.5px 50.0%, 2.1px 33.3%, 0.4px 16.7%);
}
.reel-label {
  position: absolute; z-index: 6; left: -10px; top: -14px; max-width: 78%; margin: 0; padding: 9px 22px 11px 18px;
  font-weight: 900; font-style: italic; font-size: 18px; line-height: 1.1; color: var(--plum-ink);
  background: var(--tone-label, #D9CEF5); clip-path: var(--torn-patch); rotate: -3deg;
  filter: drop-shadow(0 3px 4px rgba(43, 35, 80, 0.18));
}
.reel-close {
  position: absolute; z-index: 6; top: -14px; right: -14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--sheet); color: var(--plum-ink); cursor: pointer;
  box-shadow: 0 4px 12px rgba(43, 35, 80, 0.3); transition: transform 0.15s ease;
}
.reel-close:hover { transform: rotate(90deg) scale(1.06); }

/* The video, its poster under it (so a clip never flashes black while it loads) and the whole-area play/pause button. */
.reel-stage {
  position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 14px; background: #1E1A33;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.reel-stage::before {
  content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 84px; pointer-events: none;
  background: linear-gradient(rgba(20, 14, 36, 0.38), rgba(20, 14, 36, 0));
}
.reel-poster, .reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-video { background: transparent; }
.reel-toggle {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reel-toggle:focus-visible { outline: 3px solid var(--butter); outline-offset: -4px; border-radius: 14px; }
:root:not([data-kbd]) .reel-toggle:focus-visible { outline: none; }
.reel-bars { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; pointer-events: none; }
.reel-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.38); overflow: hidden; }
.reel-bars i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.reel-badge {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255, 253, 248, 0.94); color: var(--plum-ink);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.3), 0 8px 20px rgba(30, 20, 50, 0.3);
  opacity: 0; transform: scale(0.6); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.reel-badge svg { width: 30px; height: 30px; fill: currentColor; }
.reel-badge-pause { display: none; }
.reel[data-paused="true"] .reel-badge { opacity: 1; transform: none; }
.reel-mute {
  position: absolute; z-index: 3; top: 20px; right: 4px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; background: transparent; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.reel-mute svg, .reel-unmute svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reel-mute svg { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: rgba(30, 26, 51, 0.48); }
.reel-speaker { fill: currentColor; }
.reel-cross { display: none; }
.reel[data-muted="true"] .reel-mute .reel-waves { display: none; }
.reel[data-muted="true"] .reel-mute .reel-cross { display: inline; }
.reel-unmute {
  position: absolute; z-index: 3; top: 24px; left: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--card); color: var(--plum-ink);
  font: 800 14px/1 var(--font); box-shadow: 0 6px 16px rgba(30, 20, 50, 0.3); cursor: pointer;
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.reel-unmute svg { width: 20px; height: 20px; stroke-width: 2.2; }
.reel-unmute .reel-cross { display: inline; }
.reel-error {
  position: absolute; z-index: 2; left: 16px; right: 16px; top: 50%; translate: 0 -50%; margin: 0; padding: 12px 14px;
  border-radius: 12px; background: var(--card); color: var(--plum-ink); font-weight: 800; text-align: center;
}

/* "Up next": the next clip waits under the corner, which curls back as a flap of paper. main.js sizes both to the stage. */
.reel-peel { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.reel-under { position: absolute; inset: 0; pointer-events: auto; clip-path: polygon(100% 100%, 100% 100%, 100% 100%); }
.reel-under-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-under::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(315deg, rgba(25, 18, 48, 0.9) 0%, rgba(25, 18, 48, 0.6) 32%, rgba(25, 18, 48, 0) 62%);
}
.reel-go { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.reel-go:focus-visible { outline: 3px solid var(--butter); outline-offset: -4px; }
.reel-up {
  position: absolute; z-index: 1; right: 16px; bottom: 18px; max-width: 60%; display: grid; justify-items: end; gap: 6px;
  text-align: right; color: #fff; pointer-events: none;
}
.reel-up-kicker { font-weight: 800; font-size: 11px; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase; color: var(--butter); }
.reel-up-label { font-weight: 900; font-style: italic; font-size: 21px; line-height: 1.1; text-wrap: balance; }
.reel-up-row { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 10px; margin-top: 4px; }
.reel-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; line-height: 1; }
.reel-count svg { width: 22px; height: 22px; rotate: -90deg; fill: none; stroke-width: 3; }
.reel-count-track { stroke: rgba(255, 255, 255, 0.3); }
.reel-count-ring { stroke: var(--butter); stroke-linecap: round; stroke-dasharray: 56.55; stroke-dashoffset: 0; }
.reel-peel[data-held="true"] .reel-count svg { display: none; }
.reel-stay {
  pointer-events: auto; min-height: 36px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, 0.65); border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); color: #fff; font: 800 13px/1 var(--font); cursor: pointer;
}
.reel-flap {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  transform-origin: 100% 100%; transform: scale(0); filter: drop-shadow(-5px -5px 9px rgba(30, 20, 10, 0.35));
}

/* After the last clip: the vote, big, on a fresh sheet. */
.reel-end {
  position: absolute; inset: 0; z-index: 5; display: grid; align-content: center; justify-items: center; gap: 12px;
  padding: 22px 18px; text-align: center; background: radial-gradient(120% 80% at 50% 28%, #FFFDF8 0%, var(--sheet) 72%);
}
.reel-end-art { width: min(46%, 170px); height: auto; filter: drop-shadow(0 10px 14px rgba(90, 62, 40, 0.18)); }
.reel-end-title { margin: 0; font-weight: 900; font-style: italic; font-size: clamp(21px, 6vw, 27px); line-height: 1.12; color: var(--plum-ink); text-wrap: balance; }
.vote-reel { justify-content: center; width: 100%; min-height: 56px; font-size: 19px; gap: 10px; }
.reel-end-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; font-size: 15px; color: var(--plum-ink); }
.reel-again {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; background: transparent;
  color: var(--plum); font: 800 15px/1 var(--font); cursor: pointer;
}
.reel-again svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Previous / next beside the sheet on computers. Touch screens swipe; the buttons stay there for screen readers. */
.reel-arrow {
  position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: var(--card); color: var(--plum-ink); cursor: pointer;
  box-shadow: 0 6px 16px rgba(43, 35, 80, 0.3); transition: transform 0.15s ease;
}
.reel-arrow[data-dir="-1"] { left: -72px; }
.reel-arrow[data-dir="1"] { right: -72px; }
.reel-arrow:hover { transform: scale(1.08); }
@media (hover: none), (pointer: coarse), (max-width: 620px) {
  .reel-arrow { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); box-shadow: none; }
}

/* The label, close and mute land a beat after the sheet. */
.reel[data-opening="true"] .reel-label { animation: tape-on 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.22s both; }
.reel[data-opening="true"] :is(.reel-close, .reel-mute) { animation: pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) 0.34s both; }
.reel[data-opening="true"] .reel-bars { animation: rise-in 0.4s ease-out 0.3s both; }
@keyframes tape-on { from { opacity: 0; transform: translate(-14px, -10px) rotate(-10deg) scale(1.2); } }
.reel-close svg, .clips-arrow svg, .reel-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Phones: one clip at a time on a swipeable rail, with arrows and dots. */
@media (max-width: 760px) {
  .clips-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 0 10px; }
  .clips-track::-webkit-scrollbar { display: none; }
  .clip { flex: 0 0 100%; padding: 0 14%; scroll-snap-align: center; rotate: 0deg; }
  .clip .clip-frame { rotate: -1.5deg; }
  .clips-arrow {
    position: absolute; top: 40%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: #fff; color: var(--plum-ink); cursor: pointer; box-shadow: 0 4px 12px rgba(52, 54, 90, 0.18);
  }
  .clips-arrow[data-dir="-1"] { left: 2px; }
  .clips-arrow[data-dir="1"] { right: 2px; }
  .clips-dots { display: flex; gap: 10px; margin-top: -8px; }
  .clips-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--lavender); transition: background 0.2s, scale 0.2s; }
  .clips-dots span[data-on="true"] { background: var(--plum); scale: 1.15; }
}

/* The vote block: the button and the ask on one torn sheet, three butter sparks pointing at it. */
.vote-row { position: relative; margin-top: clamp(8px, 1.6vw, 18px); filter: var(--shadow); scroll-margin-top: 120px; }
.vote-sheet {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px);
  padding: clamp(16px, 2vw, 22px) clamp(26px, 3vw, 40px) clamp(16px, 2vw, 22px) clamp(18px, 2vw, 24px);
  /* A torn scrap of paper, not a ribbon: a pale deckled rim with the sheet a few pixels inside it, both torn in pixels
     so the edge stays fine whatever the width. The shadow comes from .vote-row, outside the clipped layers. */
  position: relative; isolation: isolate;
}
.vote-sheet::before, .vote-sheet::after { content: ""; position: absolute; z-index: -1; }
.vote-sheet::before { inset: 0; background: #FFFDF8; clip-path: polygon(0.0% 1.5px, 1.6% 6.4px, 3.1% 6.3px, 4.7% 0.2px, 6.2% 6.0px, 7.8% 3.7px, 9.4% 1.0px, 10.9% 4.3px, 12.5% 1.8px, 14.1% 0.2px, 15.6% 1.3px, 17.2% 0.5px, 18.8% 3.7px, 20.3% 2.6px, 21.9% 1.7px, 23.4% 5.2px, 25.0% 3.1px, 26.6% 1.4px, 28.1% 2.0px, 29.7% 3.6px, 31.2% 1.1px, 32.8% 2.4px, 34.4% 3.3px, 35.9% 4.4px, 37.5% 1.9px, 39.1% 0.7px, 40.6% 0.2px, 42.2% 3.4px, 43.8% 3.9px, 45.3% 3.1px, 46.9% 2.6px, 48.4% 3.8px, 50.0% 2.1px, 51.6% 0.3px, 53.1% 2.9px, 54.7% 3.7px, 56.2% 1.7px, 57.8% 0.1px, 59.4% 0.8px, 60.9% 0.3px, 62.5% 0.6px, 64.1% 1.8px, 65.6% 0.4px, 67.2% 2.5px, 68.8% 3.7px, 70.3% 1.3px, 71.9% 1.6px, 73.4% 4.3px, 75.0% 0.8px, 76.6% 1.1px, 78.1% 2.7px, 79.7% 0.0px, 81.2% 1.7px, 82.8% 4.3px, 84.4% 2.3px, 85.9% 7.7px, 87.5% 3.5px, 89.1% 3.6px, 90.6% 1.8px, 92.2% 4.7px, 93.8% 0.9px, 95.3% 4.5px, 96.9% 0.7px, 98.4% 7.6px, 100.0% 2.8px, calc(100% - 1.1px) 11.1%, calc(100% - 1.6px) 22.2%, calc(100% - 3.8px) 33.3%, calc(100% - 2.1px) 44.4%, calc(100% - 0.4px) 55.6%, calc(100% - 1.5px) 66.7%, calc(100% - 3.7px) 77.8%, calc(100% - 0.1px) 88.9%, 100.0% calc(100% - 2.4px), 98.4% calc(100% - 6.4px), 96.9% calc(100% - 4.4px), 95.3% calc(100% - 3.1px), 93.8% calc(100% - 1.7px), 92.2% calc(100% - 3.5px), 90.6% calc(100% - 3.5px), 89.1% calc(100% - 1.0px), 87.5% calc(100% - 4.4px), 85.9% calc(100% - 3.6px), 84.4% calc(100% - 3.3px), 82.8% calc(100% - 2.3px), 81.2% calc(100% - 5.5px), 79.7% calc(100% - 1.2px), 78.1% calc(100% - 4.3px), 76.6% calc(100% - 4.2px), 75.0% calc(100% - 4.3px), 73.4% calc(100% - 1.0px), 71.9% calc(100% - 0.9px), 70.3% calc(100% - 2.8px), 68.8% calc(100% - 3.8px), 67.2% calc(100% - 2.9px), 65.6% calc(100% - 0.4px), 64.1% calc(100% - 4.1px), 62.5% calc(100% - 3.4px), 60.9% calc(100% - 0.8px), 59.4% calc(100% - 1.5px), 57.8% calc(100% - 4.4px), 56.2% calc(100% - 1.8px), 54.7% calc(100% - 3.3px), 53.1% calc(100% - 0.6px), 51.6% calc(100% - 4.1px), 50.0% calc(100% - 0.7px), 48.4% calc(100% - 4.4px), 46.9% calc(100% - 1.6px), 45.3% calc(100% - 8.0px), 43.8% calc(100% - 2.9px), 42.2% calc(100% - 4.2px), 40.6% calc(100% - 3.9px), 39.1% calc(100% - 0.9px), 37.5% calc(100% - 1.3px), 35.9% calc(100% - 2.6px), 34.4% calc(100% - 1.9px), 32.8% calc(100% - 4.1px), 31.2% calc(100% - 2.1px), 29.7% calc(100% - 4.1px), 28.1% calc(100% - 4.1px), 26.6% calc(100% - 2.4px), 25.0% calc(100% - 0.1px), 23.4% calc(100% - 7.4px), 21.9% calc(100% - 0.8px), 20.3% calc(100% - 3.3px), 18.8% calc(100% - 1.5px), 17.2% calc(100% - 2.5px), 15.6% calc(100% - 0.5px), 14.1% calc(100% - 1.1px), 12.5% calc(100% - 3.5px), 10.9% calc(100% - 2.5px), 9.4% calc(100% - 4.1px), 7.8% calc(100% - 2.8px), 6.2% calc(100% - 2.3px), 4.7% calc(100% - 2.0px), 3.1% calc(100% - 2.2px), 1.6% calc(100% - 3.1px), 0.0% calc(100% - 4.2px), 2.5px 88.9%, 3.8px 77.8%, 0.5px 66.7%, 0.3px 55.6%, 0.3px 44.4%, 3.5px 33.3%, 0.7px 22.2%, 3.0px 11.1%); }
.vote-sheet::after {
  inset: 3px; background: radial-gradient(120% 140% at 28% 0%, #FFF7EC 0%, var(--sheet) 70%);
  clip-path: polygon(0.0% 3.7px, 1.6% 5.9px, 3.1% 1.7px, 4.7% 0.5px, 6.2% 1.8px, 7.8% 4.3px, 9.4% 2.8px, 10.9% 2.1px, 12.5% 6.5px, 14.1% 2.4px, 15.6% 2.5px, 17.2% 1.5px, 18.8% 1.5px, 20.3% 2.6px, 21.9% 0.3px, 23.4% 2.9px, 25.0% 1.8px, 26.6% 0.7px, 28.1% 1.3px, 29.7% 0.8px, 31.2% 4.9px, 32.8% 2.3px, 34.4% 1.3px, 35.9% 1.2px, 37.5% 3.1px, 39.1% 1.0px, 40.6% 3.1px, 42.2% 3.3px, 43.8% 2.2px, 45.3% 2.4px, 46.9% 0.7px, 48.4% 0.2px, 50.0% 0.1px, 51.6% 2.7px, 53.1% 3.2px, 54.7% 2.2px, 56.2% 3.0px, 57.8% 3.9px, 59.4% 5.5px, 60.9% 0.8px, 62.5% 3.8px, 64.1% 0.4px, 65.6% 0.7px, 67.2% 3.3px, 68.8% 1.7px, 70.3% 1.8px, 71.9% 3.6px, 73.4% 3.6px, 75.0% 1.7px, 76.6% 3.3px, 78.1% 1.0px, 79.7% 1.6px, 81.2% 2.2px, 82.8% 3.3px, 84.4% 2.5px, 85.9% 2.2px, 87.5% 1.0px, 89.1% 0.3px, 90.6% 2.2px, 92.2% 2.2px, 93.8% 1.8px, 95.3% 0.0px, 96.9% 3.1px, 98.4% 3.5px, 100.0% 2.7px, calc(100% - 1.8px) 11.1%, calc(100% - 0.3px) 22.2%, calc(100% - 1.9px) 33.3%, calc(100% - 2.2px) 44.4%, calc(100% - 2.1px) 55.6%, calc(100% - 6.8px) 66.7%, calc(100% - 3.5px) 77.8%, calc(100% - 3.1px) 88.9%, 100.0% calc(100% - 2.4px), 98.4% calc(100% - 1.3px), 96.9% calc(100% - 1.2px), 95.3% calc(100% - 1.4px), 93.8% calc(100% - 1.7px), 92.2% calc(100% - 1.9px), 90.6% calc(100% - 1.0px), 89.1% calc(100% - 0.4px), 87.5% calc(100% - 1.1px), 85.9% calc(100% - 2.0px), 84.4% calc(100% - 1.9px), 82.8% calc(100% - 2.3px), 81.2% calc(100% - 3.4px), 79.7% calc(100% - 3.4px), 78.1% calc(100% - 3.9px), 76.6% calc(100% - 0.2px), 75.0% calc(100% - 1.1px), 73.4% calc(100% - 0.6px), 71.9% calc(100% - 0.4px), 70.3% calc(100% - 1.6px), 68.8% calc(100% - 6.9px), 67.2% calc(100% - 2.6px), 65.6% calc(100% - 3.9px), 64.1% calc(100% - 6.0px), 62.5% calc(100% - 0.6px), 60.9% calc(100% - 1.9px), 59.4% calc(100% - 2.3px), 57.8% calc(100% - 3.3px), 56.2% calc(100% - 2.4px), 54.7% calc(100% - 6.7px), 53.1% calc(100% - 0.8px), 51.6% calc(100% - 1.3px), 50.0% calc(100% - 2.1px), 48.4% calc(100% - 1.7px), 46.9% calc(100% - 2.6px), 45.3% calc(100% - 3.7px), 43.8% calc(100% - 3.5px), 42.2% calc(100% - 3.9px), 40.6% calc(100% - 1.5px), 39.1% calc(100% - 5.3px), 37.5% calc(100% - 2.9px), 35.9% calc(100% - 2.1px), 34.4% calc(100% - 5.0px), 32.8% calc(100% - 1.7px), 31.2% calc(100% - 2.4px), 29.7% calc(100% - 1.0px), 28.1% calc(100% - 2.7px), 26.6% calc(100% - 0.7px), 25.0% calc(100% - 2.3px), 23.4% calc(100% - 2.1px), 21.9% calc(100% - 1.7px), 20.3% calc(100% - 3.7px), 18.8% calc(100% - 2.6px), 17.2% calc(100% - 0.3px), 15.6% calc(100% - 1.6px), 14.1% calc(100% - 5.2px), 12.5% calc(100% - 3.9px), 10.9% calc(100% - 2.8px), 9.4% calc(100% - 1.1px), 7.8% calc(100% - 5.9px), 6.2% calc(100% - 2.1px), 4.7% calc(100% - 5.5px), 3.1% calc(100% - 0.6px), 1.6% calc(100% - 1.2px), 0.0% calc(100% - 3.0px), 2.1px 88.9%, 1.4px 77.8%, 1.1px 66.7%, 2.0px 55.6%, 3.2px 44.4%, 6.5px 33.3%, 2.3px 22.2%, 0.6px 11.1%);
}

.vote-hero { min-height: 70px; padding: 0 30px 0 26px; font-size: clamp(21px, 2.2vw, 27px); gap: 14px; }
.vote-note {
  display: flex; align-items: center; gap: 12px; margin: 0;
  padding-left: clamp(18px, 2.4vw, 30px); border-left: 2px solid var(--line);
  font-weight: 800; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.2; color: var(--plum-ink); text-align: left;
}
.vote-note span { max-width: 9.5em; }
.sparks {
  position: absolute; left: clamp(-58px, -4.6vw, -40px); top: 50%; z-index: 1;
  width: clamp(38px, 4vw, 52px); translate: 0 -50%;
  fill: none; stroke: #FFC23D; stroke-width: 6; stroke-linecap: round;
}

/* On desktops the ask is the hero's last row, across both columns, sitting on the torn edge between the hero and the
   clips: half of it in each. The hero is lifted over the clips so the edge passes behind it. */
@media (min-width: 961px) {
  .hero { z-index: 1; }
  .hero > .vote-row {
    grid-column: 1 / -1; justify-self: center;
    margin: clamp(0px, 1vh, 10px) 0 calc(-1 * (clamp(40px, 7vh, 80px) + 46px));
  }
  .hero .vote-note span { max-width: none; white-space: nowrap; }
  .hero + .clips { padding-top: calc(clamp(52px, 7vw, 88px) + 52px); }
}

/* ---------- demo: the video on a sheet of the same paper as the cards, after "How it works" ---------- */
.demo {
  position: relative; isolation: isolate;
  width: min(100% - 32px, 1080px); margin: clamp(64px, 9vw, 112px) auto 0; padding-bottom: clamp(44px, 7vw, 88px);
  /* Room for the sticky header and the bubble that sits above the frame. */
  scroll-margin-top: 140px;
}
/* A torn lavender band runs behind the lower half of the video, edge to edge. */
.demo::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; bottom: 0;
  width: 100vw; translate: -50% 0;
  background: linear-gradient(180deg, var(--lavender) 0%, #D9CEF4 55%, var(--lavender-surface) 100%);
  clip-path: polygon(0 14px, 4% 4px, 9% 12px, 15% 2px, 21% 10px, 28% 0, 34% 9px, 41% 3px, 48% 12px, 55% 1px, 62% 9px, 69% 2px, 76% 11px, 83% 3px, 89% 10px, 95% 1px, 100% 8px, 100% 100%, 0 100%);
}
.demo-frame {
  width: 100%; padding: clamp(8px, 1.4vw, 14px);
  background: var(--card); border-radius: clamp(16px, 2vw, 24px);
  filter: var(--shadow); transform: rotate(-0.4deg);
}
/* A comment pinned to the video, the same bubble Dealow talks in on the shop page ("Found it for less!"). */
.comment {
  position: absolute; z-index: 1; top: clamp(-30px, -2.4vw, -18px); left: clamp(10px, 4%, 40px);
  margin: 0; padding: 10px 20px 12px;
  font-weight: 900; font-style: italic; letter-spacing: -0.01em; line-height: 1.1;
  font-size: clamp(17px, 2vw, 26px); color: var(--plum-ink);
  background: #fff; border: 2px solid var(--lavender); border-radius: 18px;
  box-shadow: 0 8px 18px rgba(90, 62, 40, 0.14);
  transform: rotate(-2.5deg);
}
/* The tail points down into the video. */
.comment::after {
  content: ""; position: absolute; left: 30px; bottom: -9px;
  width: 16px; height: 16px; background: #fff;
  border: solid var(--lavender); border-width: 0 2px 2px 0; border-bottom-right-radius: 4px;
  transform: rotate(45deg);
}
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: clamp(10px, 1.4vw, 16px); background: var(--paper-deep); }
/* Phones get the tall cut, made for a phone screen; computers the wide one. */
.demo-tall { display: none; aspect-ratio: 9 / 16; }
@media (max-width: 640px) {
  .demo-wide { display: none; }
  .demo-tall { display: block; }
  .demo-frame { width: min(100%, 400px); margin-inline: auto; }
  .comment { left: max(0px, calc(50% - 200px - 6px)); }
}

/* ---------- the idea: "Nope." A price tag, Dealow, and the cheaper price under it ----------
   Without script (or with reduced motion) the section is one picture: the last frame, the cheaper price revealed.
   With script it is taller than the screen, the stage stays pinned, and the scroll plays the frames on a canvas. The
   prices are text laid over the frames: the old one rides the torn halves, the new one sits on the mint tag. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* While the scene plays the page itself changes with it: warm while he weighs the price, deeper at "Nope.", mint at the
   reveal. One wash over the whole screen, behind everything, fading in as the scene arrives and out as you scroll on,
   so there is no edge anywhere. main.js sets --wash (the colour) and --wash-a (its strength). */
.nope-wash {
  position: fixed; left: 0; right: 0; top: 0; z-index: -1;
  height: 100vh; height: 100lvh;
  pointer-events: none;
  background: rgb(var(--wash, 255 246 235) / var(--wash-a, 0));
}

.nope-stage {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center;
  gap: clamp(16px, 3vw, 48px);
  max-width: 1180px; margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px);
}
.nope { scroll-margin-top: var(--top-h, 72px); } /* the tabs land on the first beat, just under the header */
.nope[data-scrub] { height: 200vh; height: 200svh; }
.nope[data-scrub] .nope-stage {
  position: sticky; top: var(--top-h, 72px);
  height: calc(100vh - var(--top-h, 72px)); height: calc(100svh - var(--top-h, 72px));
  padding-block: 2vh;
}

/* The scene: the frames feathered into the page at the edges, as the hero's tear is. Its own units (cqw) size the text. */
.nope-scene {
  position: relative; justify-self: center;
  width: min(100%, 640px); aspect-ratio: 1;
  container-type: inline-size;
}
.nope[data-scrub] .nope-scene { width: min(100%, 640px, calc(100svh - var(--top-h, 72px) - 4vh)); }
.nope-still, .nope-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
          mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 94%, transparent);
          mask-composite: intersect;
}
.nope-canvas { display: none; }
.nope[data-scrub] .nope-canvas { display: block; }
.nope[data-drawn] .nope-still { visibility: hidden; }

/* The prices. The old one is split along the crack into two layers (main.js sets each one's clip and transform). */
.nope-old, .nope-new, .nope-half { position: absolute; inset: 0; pointer-events: none; }
.nope-half { transform-origin: 0 0; will-change: transform; }
.nope-price {
  position: absolute; translate: -50% -50%;
  font-weight: 900; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; color: var(--plum-ink);
}
.nope-old .nope-price { left: 53.5%; top: 69%; font-size: 10.6cqw; }
.nope-new .nope-price { left: 54.2%; top: 68%; font-size: 8.4cqw; }
.nope[data-scrub] .nope-new { opacity: 0; }

/* The saving: a butter sticker slapped on once the cheaper price is out. */
.nope-badge {
  position: absolute; left: 68%; top: 83%; margin: 0;
  padding: 1.8cqw 3.4cqw 2cqw;
  font-weight: 900; font-size: clamp(14px, 4.8cqw, 30px); line-height: 1; white-space: nowrap; color: var(--plum-ink);
  background: var(--butter); clip-path: var(--torn-patch);
  translate: -50% -50%; rotate: -5deg;
  filter: drop-shadow(0 6px 10px rgba(90, 62, 40, 0.18));
}
.nope[data-scrub] .nope-badge { opacity: 0; scale: 0.6; transition: opacity 0.2s, scale 0.35s cubic-bezier(0.2, 0.9, 0.25, 1.4); }
.nope[data-scrub] .nope-badge[data-on] { opacity: 1; scale: 1; }


/* What he thinks, beat by beat. On computers a cloud to the left of him, trailing dots towards his head. */
.nope-think { justify-self: end; padding-right: clamp(0px, 1vw, 16px); }
.nope-bubble {
  position: relative; margin: 0; padding: 0.6em 1.1em 0.66em;
  font-weight: 900; font-style: italic; letter-spacing: -0.015em; line-height: 1.1;
  font-size: clamp(28px, 3.3vw, 46px); color: var(--plum-ink); text-wrap: balance;
  background: var(--card); border-radius: 1.4em;
  box-shadow: 0 0 0 1px var(--line), 0 18px 34px -16px rgba(52, 54, 90, 0.35);
}
.nope-bubble::before, .nope-bubble::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 8px 14px -8px rgba(52, 54, 90, 0.3);
}
.nope-bubble::before { width: 0.5em; height: 0.5em; right: -0.55em; bottom: 0.15em; }
.nope-bubble::after { width: 0.28em; height: 0.28em; right: -0.95em; bottom: -0.15em; }
.nope-line { display: inline-block; }
.nope-line[data-pop] { animation: think-pop 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.3) both; }
@keyframes think-pop { from { opacity: 0; transform: translateY(10px) scale(0.9); } }

/* ---------- how ---------- */
.how {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px);
  text-align: center;
}
.how-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); counter-reset: none; }
.how-step { display: grid; justify-items: center; gap: 14px; position: relative; }
/* The dash between tabs, like the extension's stepper. */
.how-step + .how-step::before {
  content: ""; position: absolute; top: 24px; left: calc(-1 * clamp(16px, 3vw, 40px) / 2 - 14px);
  width: 28px; height: 3px; border-radius: 2px; background: var(--plum-ink);
}
.how-tab {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 12px 14px;
  font-weight: 800; font-size: 18px;
  background: var(--sheet); clip-path: var(--torn-fine);
  filter: var(--shadow);
}
.how-step:first-child .how-tab { background: var(--peach-soft); }
.how-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lavender); color: var(--plum-ink); font-size: 15px; font-weight: 900; }
.how-step:first-child .how-n { background: var(--orange); color: #fff; }
.how-step p { margin: 0; max-width: 22em; font-size: 17px; color: var(--ink); text-wrap: pretty; }
/* The trail and the stop pictures are for phones only. */
.how-trail, .how-art { display: none; }

/* ---------- get ---------- */
.get {
  position: relative; isolation: isolate;
  display: grid; justify-items: center;
  /* The hills are drawn 2000×404 at max(100vw, 1100px) wide; the words end above their torn top edge. */
  padding: clamp(56px, 8vw, 96px) 16px calc(max(100vw, 1100px) * 0.19);
  text-align: center;
}
.get-text { display: grid; justify-items: center; gap: 18px; max-width: 760px; }
.vote-get { margin-top: 4px; min-height: 56px; padding: 0 26px 0 22px; font-size: clamp(18px, 1.8vw, 21px); gap: 12px; }
.get-pose { width: clamp(130px, 14vw, 190px); margin-bottom: 4px; filter: drop-shadow(0 14px 16px rgba(90, 62, 40, 0.16)); }
.get .scene { top: auto; height: 100%; }
.hills { position: absolute; left: 50%; bottom: 0; width: max(100%, 1100px); max-width: none; transform: translateX(-50%); }
.cloud-get { right: 10%; top: 18%; width: clamp(100px, 11vw, 170px); animation: drift 15s ease-in-out -3s infinite alternate; }

/* Dealow breathes while he waits: a slow squash from the feet up and a small bob, never enough to read as a jump. */
.get-pose { transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  45% { transform: translateY(-5px) scale(0.985, 1.025); }
  60% { transform: translateY(-5px) scale(0.99, 1.02); }
}

/* ---------- arrival (main.js sets the beats) ----------
   1. rift:  blank paper. Dealow tears through the middle of the screen, nothing else is there.
   2. burst: as he breaks out, a ring ripples across the sheet and scraps fly. He glides to his place, and everything
             the ripple reaches pops up, nearest first. main.js gives each piece its --pop delay from its distance.
   3. done:  the animation rules drop away; every piece already sits where it would anyway. */
:root[data-arrival="rift"] :is(.top > *, .nav-tabs li, .hero-text > *, .hero > .vote-row, .hero .cloud, .rift > .rift-still, main > section:not(.hero)) { opacity: 0; }
:root[data-arrival="rift"] .rift, :root[data-arrival="burst"] .rift { position: relative; z-index: 3; }
:root[data-arrival="rift"] .rift { transform: translate(var(--fx, 0px), var(--fy, 0px)) scale(1.06); }
:root[data-arrival="burst"] .rift { transition: transform 0.95s cubic-bezier(0.25, 0.8, 0.25, 1); }
/* The header's tabs come in one by one, so the nav itself is just there. */
:root[data-arrival="rift"] .top > .nav { opacity: 1; }

:root[data-arrival="burst"] :is(.brand, .clips-head > *) { animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) var(--pop, 0s) both; }
:root[data-arrival="burst"] .hero > .vote-row { animation: vote-in 0.85s cubic-bezier(0.2, 0.9, 0.3, 1) var(--pop, 0s) both; }
:root[data-arrival="burst"] .hero > .vote-row .vote-heart { animation: beat 0.6s ease-out calc(var(--pop, 0s) + 0.7s) both; }
:root[data-arrival="burst"] .hero > .vote-row .sparks { animation: sparks-in 0.5s ease-out calc(var(--pop, 0s) + 0.55s) both; }
:root[data-arrival="burst"] .top > .vote { animation: pop-big 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) var(--pop, 0s) both; }
:root[data-arrival="burst"] .top > .vote .vote-heart { animation: beat 0.6s ease-out calc(var(--pop, 0s) + 0.5s) both; }
:root[data-arrival="burst"] .top > .vote .vote-spark path { animation: twinkle 0.5s ease-in-out calc(var(--pop, 0s) + 0.6s) 2; }
:root[data-arrival="burst"] .nav-tabs li { animation: tab-drop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) var(--pop, 0s) both; }
:root[data-arrival="burst"] .hero .title .w { display: inline-block; animation: word-up 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) var(--pop, 0s) both; }
:root[data-arrival="burst"] .hero .mark::after,
:root[data-arrival="burst"] .hero .mark::before { animation: stroke 0.5s cubic-bezier(0.3, 0.8, 0.3, 1) var(--stroke, 0.4s) both; }
:root[data-arrival="burst"] .hero .lead { animation: rise-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--pop, 0s) both; }
:root[data-arrival="burst"] .hero .cloud { animation: cloud-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) var(--pop, 0s) both; }
:root[data-arrival="burst"] .hero .cloud-right { --from: 40px; }
:root[data-arrival="burst"] main > section:not(.hero) { animation: sheet-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--pop, 0s) both; }
:root[data-arrival="burst"] .clip { animation: pop 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.1) var(--pop, 0s) both; }

@keyframes vote-in {
  0% { opacity: 0; transform: translateY(70px) rotate(-3deg) scale(0.86); }
  45% { opacity: 1; }
  70% { transform: translateY(-6px) rotate(0.8deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes sparks-in {
  0% { opacity: 0; transform: translateX(12px) scale(0.4); }
  100% { opacity: 1; }
}
@keyframes pop {
  0% { opacity: 0; transform: translateY(16px) scale(0.6); }
  55% { opacity: 1; transform: translateY(-3px) scale(1.05); }
  100% { opacity: 1; transform: none; }
}
@keyframes pop-big {
  0% { opacity: 0; transform: scale(0.3) rotate(-8deg); }
  50% { opacity: 1; transform: scale(1.14) rotate(3deg); }
  75% { transform: scale(0.96) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes tab-drop {
  0% { opacity: 0; transform: translateY(-26px) rotate(-7deg); }
  60% { opacity: 1; transform: translateY(3px) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes word-up {
  0% { opacity: 0; transform: translateY(0.5em) rotate(5deg) scale(0.85); }
  60% { opacity: 1; transform: translateY(-0.06em) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes cloud-in { from { opacity: 0; transform: translateX(var(--from, -40px)) scale(0.8); } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(70px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes stroke { from { transform: rotate(-1.5deg) scaleX(0); } }

/* The burst: rings that ripple out from the tear, and paper scraps thrown off it. Built and removed by main.js. */
.burst { position: fixed; left: 0; top: 0; z-index: 5; width: 0; height: 0; pointer-events: none; }
.burst-ring {
  position: absolute; left: calc(-1 * var(--r)); top: calc(-1 * var(--r)); width: calc(2 * var(--r)); height: calc(2 * var(--r));
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 86%, rgba(201, 188, 238, 0.55) 92%, rgba(255, 217, 184, 0.4) 96%, transparent 100%);
  animation: ring 1.1s cubic-bezier(0.15, 0.6, 0.3, 1) both;
}
.burst-ring + .burst-ring { animation-delay: 0.16s; animation-duration: 1.25s; }
@keyframes ring { from { transform: scale(0.06); opacity: 1; } 70% { opacity: 0.85; } to { transform: scale(1); opacity: 0; } }
.scrap {
  position: absolute; left: calc(-0.5 * var(--s)); top: calc(-0.5 * var(--s)); width: var(--s); height: calc(var(--s) * 0.8);
  background: var(--c); clip-path: var(--torn-fine); filter: drop-shadow(0 2px 2px rgba(90, 62, 40, 0.18));
  animation: fling var(--t, 1s) cubic-bezier(0.15, 0.7, 0.35, 1) both;
}
@keyframes fling {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(0.3); }
  12% { opacity: 1; }
  70% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 46px)) rotate(calc(var(--rot) * 1.4)) scale(0.9); }
}

/* Below the hero, sections rise in once as they come into view. */
[data-reveal] { transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-reveal="hidden"] { opacity: 0; transform: translateY(20px); }
.how-step[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.clips-rail[data-reveal] { transition-delay: 0.08s; }
.how-step[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal="shown"] .mark::after, [data-reveal="shown"] .mark::before { animation: stroke 0.45s cubic-bezier(0.3, 0.8, 0.3, 1) 0.3s both; }

/* ---------- the dock: phones get the sections at the bottom, never a menu bar at the top ---------- */
.dock { display: none; }
@media (max-width: 960px) {
  .top { grid-template-columns: 1fr; }
  .nav, .vote-top { display: none; }
  .dock {
    position: fixed; z-index: 15; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 6px;
    width: min(calc(100% - 20px), 460px); padding: 8px 8px 9px;
    translate: -50% 0;
    filter: drop-shadow(0 10px 18px rgba(69, 37, 106, 0.22));
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s;
  }
  /* The torn sheet sits on its own layer so the shadow follows the torn edge. */
  .dock::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sheet); clip-path: var(--torn-fine); }
  .dock[data-shown="false"] { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
  .dock-tabs { display: flex; flex: 1; margin: 0; padding: 0; list-style: none; }
  .dock-tabs li { flex: 1; }
  .dock-tab {
    display: grid; justify-items: center; gap: 3px; padding: 5px 2px 6px;
    font-weight: 800; font-size: 11.5px; line-height: 1.1; color: var(--plum-ink); text-decoration: none; text-align: center;
    border-radius: 14px; transition: background 0.18s;
  }
  .dock-tab .nav-dot { width: 30px; height: 30px; }
  .dock-tab[aria-current="true"] { background: var(--peach-soft); }
  /* Room at the very end so the dock never sits on the last words. */
  .get { padding-bottom: calc(max(100vw, 1100px) * 0.19 + 70px); }
}

/* ---------- narrow ---------- */
@media (max-width: 640px) {
  .vote-sheet { flex-direction: column; gap: 14px; padding: 20px 20px 18px; }
  .vote-hero { min-height: 62px; width: 100%; padding: 0 22px; }
  .vote-note { padding: 0; border: 0; font-size: 16px; }
  .vote-note span { max-width: none; }
  .sparks { left: 50%; top: -10px; translate: -50% -100%; rotate: 90deg; width: 36px; }
  .vote-row { width: min(100%, 400px); margin-top: 34px; }
}
@media (max-width: 860px) {
  /* Phones: one column. His thought sits above him, its dots trailing down to his head, and the pinned scene stays
     clear of the dock at the bottom. */
  .nope-stage { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .nope-think { justify-self: center; padding: 0; }
  .nope-bubble { font-size: clamp(24px, 6.6vw, 34px); }
  .nope-bubble::before { right: auto; left: 52%; bottom: -0.55em; }
  .nope-bubble::after { right: auto; left: 60%; bottom: -1em; }
  .nope[data-scrub] { height: 230svh; }
  .nope[data-scrub] .nope-stage {
    grid-template-rows: auto auto; align-content: center;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .nope[data-scrub] .nope-scene { width: min(100%, 560px, calc(100svh - var(--top-h, 72px) - 76px - env(safe-area-inset-bottom) - 7.5rem)); }
  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .how-step + .how-step::before { top: -18px; left: 50%; width: 3px; height: 14px; transform: translateX(-50%); }
}
@media (max-width: 760px) {
  /* A storybook strip: picture and note side by side, swapping sides, joined by a dotted trail that draws as you scroll. */
  .how-map { position: relative; margin-top: 26px; }
  .how-trail {
    display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  }
  .how-trail-line { fill: none; stroke: var(--plum); stroke-opacity: 0.5; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.1 11; }
  .how-trail-reveal { fill: none; stroke: #fff; stroke-width: 26; stroke-dasharray: 1 1; stroke-dashoffset: var(--trail, 0); }
  .how-steps { position: relative; z-index: 1; margin: 0; grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .how-step {
    grid-template-columns: 136px minmax(0, 1fr); grid-template-areas: "art tab" "art text";
    align-items: center; justify-items: start; gap: 8px 14px; text-align: left;
  }
  .how-step:nth-child(2) { grid-template-columns: minmax(0, 1fr) 136px; grid-template-areas: "tab art" "text art"; justify-items: end; text-align: right; }
  .how-step + .how-step::before { display: none; }
  .how-tab { grid-area: tab; align-self: end; gap: 9px; padding: 9px 16px 10px 10px; font-size: 16px; }
  .how-n { width: 26px; height: 26px; font-size: 13px; }
  .how-step p { grid-area: text; align-self: start; font-size: 15px; line-height: 1.45; }

  .how-art { grid-area: art; display: block; position: relative; width: 136px; height: 128px; }
  .how-art > * { position: absolute; }
  .how-pose { height: auto; filter: drop-shadow(0 6px 8px rgba(90, 62, 40, 0.18)); }
  /* 1: a price tag, and Dealow peeking up from under the page. */
  .how-art-1 .how-pose { left: 4px; bottom: 0; width: 118px; }
  .how-price {
    top: 2px; right: -6px; padding: 6px 12px 7px 22px; rotate: 9deg;
    font-weight: 900; font-size: 17px; color: var(--plum-ink); background: var(--butter);
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); filter: drop-shadow(0 3px 4px rgba(90, 62, 40, 0.2));
  }
  .how-price::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--card); }
  /* 2: Dealow looking around at other shops' prices. */
  .how-art-2 .how-pose { left: 18px; bottom: 0; width: 100px; }
  .how-sign {
    padding: 4px 9px 5px; font-weight: 800; font-size: 12.5px; color: var(--plum-ink);
    background: var(--card); clip-path: var(--torn-fine); filter: drop-shadow(0 2px 3px rgba(90, 62, 40, 0.2));
  }
  .how-sign-1 { top: 0; left: -4px; rotate: -8deg; }
  .how-sign-2 { top: 14px; right: -8px; rotate: 6deg; background: #E2F5EA; color: #1F5A3E; }
  .how-sign-3 { top: 64px; right: -14px; rotate: -4deg; }
  /* 3: the answer card, and Dealow cheering beside it. */
  .how-art-3 .how-pose { right: -2px; bottom: 0; width: 82px; }
  .how-offer {
    top: 8px; left: -4px; display: grid; gap: 1px; padding: 7px 12px 8px; rotate: -6deg;
    background: var(--card); border-radius: 10px; box-shadow: inset 4px 0 0 var(--mint), 0 4px 10px -2px rgba(52, 54, 90, 0.25);
  }
  .how-offer b { font-weight: 900; font-size: 16px; color: var(--plum-ink); }
  .how-offer small { font-weight: 800; font-size: 11px; color: #2F6B4F; }

  /* Each stop pops in once, when the drawn trail reaches it (main.js sets data-on). Without the script it is all there. */
  .how-map[data-trail] .how-step > * { transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25); }
  .how-map[data-trail] .how-art > * { transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
  .how-map[data-trail] .how-art > :nth-child(2) { transition-delay: 0.12s; }
  .how-map[data-trail] .how-art > :nth-child(3) { transition-delay: 0.2s; }
  .how-map[data-trail] .how-art > :nth-child(4) { transition-delay: 0.08s; }
  .how-map[data-trail] .how-step > .how-tab { transition-delay: 0.1s; }
  .how-map[data-trail] .how-step > p { transition-delay: 0.18s; }
  .how-map[data-trail] .how-step:not([data-on]) .how-art > * { opacity: 0; transform: translateY(14px) scale(0.5); }
  .how-map[data-trail] .how-step:not([data-on]) > :is(.how-tab, p) { opacity: 0; transform: translateX(-18px); }
  .how-map[data-trail] .how-step:nth-child(2):not([data-on]) > :is(.how-tab, p) { transform: translateX(18px); }
}
@media (max-width: 520px) {
  .cloud-left { top: 6%; left: -2%; }
  .cloud-right { top: 40%; right: -4%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal="hidden"] { opacity: 1; transform: none; }
  :root[data-arrival] :is(.top > *, .nav-tabs li, .hero-text > *, .hero > .vote-row, .hero .cloud, .rift > .rift-still, main > section) { opacity: 1; }
  :root[data-arrival] .rift { transform: none; }
  .burst { display: none; }
}
