/* mm-pitch.css: the MadeMirror pitch landing (index.html). Liquid Mirror, ink theme with paper records.
   Mobile first: base rules are the phone layout; wider layouts are added with min-width queries.
   Content is visible by default; JS adds .js to <html> and only then hides .rv until revealed. */
/* Metric-matched local fallback for Archivo (measured in Edge: width 99%, ascent 88, descent 21 per 100px), so the
   swap to the web font does not reflow the hero lede and buttons. Unlayered so it overrides the token stack. */
@font-face { font-family: 'Archivo Fallback'; src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Roboto'); size-adjust: 99%; ascent-override: 88.9%; descent-override: 21.2%; line-gap-override: 0%; }
:root { --mm-f-display: 'Archivo', 'Archivo Fallback', ui-sans-serif, system-ui, sans-serif; }

@layer mm.pitch {

/* ---------------- page ---------------- */
body { min-width: 320px; }
main > section { position: relative; }
.mm-container { width: min(100% - 2 * var(--mm-gutter), var(--mm-maxw)); margin-inline: auto; }
.mm-h2 em, .mm-h3 em { white-space: normal; }
.lbl { font: 500 13px/1.35 var(--mm-f-display); letter-spacing: 0; color: var(--mm-fg-3); }
.lbl b { font-weight: 600; color: var(--mm-fg-1); }
.lbl--strong { color: var(--mm-fg-1); }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--mm-z-nav);
  display: flex; align-items: center; gap: 16px;
  height: calc(60px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--mm-gutter) 0;
  border-bottom: 1px solid transparent;
  transition: background-color var(--mm-t-sheet) var(--mm-ease-out), border-color var(--mm-t-sheet) var(--mm-ease-out);
}
.nav.solid {
  background: rgb(10 10 12 / .62); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-color: var(--mm-hair-1); box-shadow: var(--mm-glass-edge);
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--mm-fg-1); }
.wordmark b { font: 600 13px/1 var(--mm-f-display); font-stretch: 125%; letter-spacing: .3em; }
.wordmark span { display: none; font-size: var(--mm-fs-small); color: var(--mm-fg-3); }
.wordmark .i { width: 18px; height: 18px; color: var(--mm-fg-2); }
.nav-links { display: none; }
.nav-cta { margin-left: auto; padding-inline: 16px; }

/* ---------------- hero (phone) ---------------- */
.pitch-hero {
  --hero-stage: clamp(296px, 52svh, 540px);
  /* The phone crop: image rows .2 to .2 + --band fill the stage from 40px down to the headline.
     mm-pitch.js layout() reads --band, so the <img> and the canvas frame the face identically. */
  --band: .468;
  --ph: calc((var(--hero-stage) - 44px) / var(--band));
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 100svh;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  background: var(--mm-ink-0);
}
.hero-photo {
  position: absolute; z-index: 0; max-width: none;
  width: calc(var(--ph) * 1.5); height: var(--ph);
  left: clamp(calc(100% - var(--ph) * 1.5), calc(50% - var(--ph) * 1.002), 0px); top: calc(40px - var(--ph) * .2);
  object-fit: cover; filter: saturate(.9) brightness(.9);
  /* 292-byte placeholder: on a slow network the hero reads as a portrait loading, not a black void */
  background: #3a302c url("data:image/webp;base64,UklGRhwBAABXRUJQVlA4IBABAAAQBwCdASokABgAPrVSn00nJKKiJWzI4BaJQBaja+3tloJSj6UOiRGZZIWHiILJFzAZ94tamUHPdiKAX0NGc4vhAAD+/DWKStZuvPQEXA+rFzu5QTP3o2EtJyfX+1vTOeHo3bmSblUt/rWm8iAM+b2p5eNaRnHAoTbMGP/2E42v7Juf2jA/MUNA/sFEDySAgiOAg8CP5zkVNstTPEGCSgPGIGl6n0Q9xJuRKNtycnrJbjooLIbNbyP4L7Y+EyJjSGqtDqt97gcFyiBhV0OCv4HQABJdjz54KVx3BohknmuU59DKnG5UxZyzRvlNFtk/LUI6CwC2+oR4qCOy3rbhTCNtBWKSus0fQRMu9aliCw4AAA==") 0 0 / 100% 100% no-repeat;
}
/* The veil matches the canvas grade: a top fade under the nav and a fade to ink above the headline. */
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(10 10 12 / .85), rgb(10 10 12 / .47) 72px, transparent 130px, transparent calc(var(--hero-stage) - 120px), rgb(10 10 12 / .62) calc(var(--hero-stage) - 52px), var(--mm-ink-0) calc(var(--hero-stage) + 30px)); }
/* The canvas fades in over the photo; the photo is hidden only after the fade (.swapped), so the hero never dips to black. */
.hero-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; transition: opacity 420ms var(--mm-ease-out); }
.pitch-hero.painted .hero-canvas { opacity: 1; }
.pitch-hero.swapped .hero-photo { visibility: hidden; }
.pitch-hero.swapped .hero-veil { display: none; }
@media (max-width: 899px) and (max-height: 800px) { .pitch-hero { --band: .5; } }
@media (max-width: 899px) and (max-height: 700px) { .pitch-hero { --band: .52; } }

.hero-copy { position: relative; z-index: 3; margin-top: var(--hero-stage); padding-inline: var(--mm-gutter); }
.hero-copy h1 { margin: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 500 13px/1.3 var(--mm-f-display); color: var(--mm-fg-2); }
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mm-shade); transition: background-color var(--mm-t-shade) var(--mm-ease-out); }
.hero-leadin { display: block; font-size: 17px; line-height: 1.25; color: var(--mm-fg-2); margin-bottom: 8px; }
.hero-display { display: block; font-size: clamp(44px, 12.4vw, 64px); }
.hero-lede { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--mm-fg-2); max-width: 44ch; }
.hero-lede-desk { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions .button { min-width: 180px; }
@media (max-width: 899px) and (max-height: 700px) { .hero-lede { margin-top: 10px; } .hero-actions { margin-top: 14px; } }

/* kinetic letters: the shade washes across the display line */
.k { display: inline-block; color: var(--mm-fg-1); transition: color 320ms var(--mm-ease-out) calc(var(--i) * 24ms), transform 700ms var(--mm-ease-expo); }
.k.lit { color: var(--mm-accent-text); }
.intro .k:not(.lit) { transform: translateY(.05em); }
.kw { display: inline-block; white-space: nowrap; }

/* the mirror line */
.seam { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 0; transform: translateX(var(--seam-px, -40px)); pointer-events: none; }
.seam::before {
  content: ""; position: absolute; left: -.5px; width: 1px; top: var(--seam-top, 64px); bottom: var(--seam-bottom, 200px);
  background: linear-gradient(180deg, transparent, rgb(237 237 241 / .85) 10%, #fff 50%, rgb(201 201 208 / .85) 90%, transparent);
  box-shadow: 0 0 6px rgb(255 255 255 / .25);
}
.seam-tags { position: absolute; left: 0; top: var(--tags-top, 76px); }
.seam-tags span {
  position: absolute; top: 0; white-space: nowrap; padding: 6px 8px; border-radius: var(--mm-r-chip);
  background: var(--mm-ink-0); color: var(--mm-silver-1); box-shadow: inset 0 0 0 1px var(--mm-line-2), 0 4px 14px -6px rgb(0 0 0 / .7);
  font: 500 10px/1 var(--mm-f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.seam-tags { transition: opacity var(--mm-t-state) var(--mm-ease-out); }
.pitch-hero.scrolled .seam-tags { opacity: 0; }
/* The shade tag reads in silver (about 16:1 on its ink chip, AA at 12px on any shade) and carries the shade as a dot,
   instead of shade-colored text that dropped to about 4.6:1 and read faint on phones. */
.seam-tags .seam-after { right: 8px; display: inline-flex; align-items: center; gap: 6px; }
.seam-tags .seam-after::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mm-shade); box-shadow: 0 0 0 1px rgb(237 237 241 / .5); transition: background-color var(--mm-t-shade) var(--mm-ease-out); }
.seam-tags span:last-child { left: 8px; }
.seam-handle {
  --mm-shade: var(--mm-shade);
  position: absolute; left: -26px; top: var(--handle-y, 60%); width: 52px; height: 52px; margin-top: -26px; padding: 1.5px;
  border: 0; border-radius: 50%; background: var(--mm-chrome); color: var(--mm-silver-1);
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / .8); pointer-events: auto; cursor: ew-resize; touch-action: none;
  transition: transform var(--mm-t-press) var(--mm-ease-out);
}
.seam-handle > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #25252b, var(--mm-ink-1) 70%); }
.seam-handle::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--mm-shade-ink); opacity: .8; transition: border-color var(--mm-t-shade) var(--mm-ease-out); }
.seam-handle:active { transform: scale(.94); }
.seam-handle:focus-visible { outline-offset: 7px; border-radius: 50%; }

/* where scroll timelines exist, the mirror line and handle are clipped at the nav's lower edge as the page scrolls */
@supports (animation-timeline: scroll()) {
  .seam { --nav-h: calc(60px + env(safe-area-inset-top)); animation: mm-seam-clip linear both; animation-timeline: scroll(root block); animation-range: 0 100svh; }
  @keyframes mm-seam-clip {
    from { clip-path: inset(0 -100vw 0 -100vw); }
    to { clip-path: inset(calc(100svh + var(--nav-h)) -100vw 0 -100vw); }
  }
}

/* callouts (>= 1100 only, decorative duplicates of the readout) */
.callouts, .callout { display: none; }

/* dock: readout, ribbon, readout strip */
.hero-dock { position: relative; z-index: 3; display: grid; gap: 14px; margin-top: 30px; padding-inline: var(--mm-gutter); }
.readout { display: flex; align-items: center; gap: 14px; min-width: 0; }
.readout .mm-swatch { --mm-sw-size: 40px; transition: --sw var(--mm-t-shade) var(--mm-ease-out); }
.readout-text { display: grid; gap: 4px; min-width: 0; }
.readout-text strong { font: 500 19px/1.1 var(--mm-f-display); white-space: nowrap; }
.readout-text .mm-mono-num { color: var(--mm-fg-2); }
.readout-try { display: none; }
.ribbon-meta { display: none; }
.ribbon {
  position: relative; display: flex; height: 52px; margin-inline: calc(4px - var(--mm-gutter));
  border-radius: var(--mm-r-pill); touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.ribbon button {
  position: relative; flex: 1 1 0; min-width: 44px; height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--c); cursor: pointer; touch-action: pan-y;
  transition: transform var(--mm-t-pop) var(--mm-ease-out), flex-grow var(--mm-t-sheet) var(--mm-ease-drawer), border-radius var(--mm-t-pop) var(--mm-ease-out);
}
.ribbon button:first-of-type { border-radius: var(--mm-r-pill) 0 0 var(--mm-r-pill); }
.ribbon button:last-of-type { border-radius: 0 var(--mm-r-pill) var(--mm-r-pill) 0; }
@media (min-width: 360px) { .ribbon { margin-inline: 0; } }
.ribbon button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgb(255 255 255 / .3), rgb(255 255 255 / 0) 42%, rgb(0 0 0 / .18)); }
.ribbon button[aria-checked="true"] { z-index: 1; border-radius: 10px; transform: scaleY(1.1); box-shadow: 0 0 0 2px var(--mm-ink-0), 0 0 0 4px var(--mm-silver-1); }
.ribbon button:focus-visible { outline-offset: 6px; z-index: 2; }
.ribbon-cursor { position: absolute; top: -8px; bottom: -8px; left: 0; width: 1px; background: var(--mm-silver-1); transform: translateX(var(--cx, 0)); opacity: 0; pointer-events: none; transition: opacity var(--mm-t-state) var(--mm-ease-out); }
.ribbon.hovering .ribbon-cursor { opacity: .9; }

.mm-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 4px 0 0; }
.mm-readout div { display: grid; gap: 3px; padding-left: 12px; border-left: 1px solid var(--mm-hair-2); }
.mm-readout dt { font: 500 12px/1.3 var(--mm-f-display); color: var(--mm-fg-3); }
.mm-readout dd { margin: 0; font: 500 12px/1.3 var(--mm-f-display); color: var(--mm-fg-1); }

/* Phone and tablet: the shade ribbon comes straight under the photo, so a shopper can play with shades on the first
   screen; the headline and buttons follow, then the product readout. The dock's children join the hero's column
   (display: contents) and are ordered; mm-pitch.js ends the photo stage at the ribbon (stageEnd). */
@media (max-width: 899px) {
  .pitch-hero { --hero-stage: clamp(268px, 45svh, 500px); }
  .hero-dock { display: contents; }
  .ribbon-wrap, .readout, .mm-readout { position: relative; z-index: 3; }
  .ribbon-wrap { order: 1; margin-top: calc(var(--hero-stage) - 6px); padding-inline: var(--mm-gutter); }
  .hero-copy { order: 2; margin-top: 20px; }
  .readout { order: 3; margin-top: 26px; padding-inline: var(--mm-gutter); }
  .mm-readout { order: 4; margin: 14px var(--mm-gutter) 0; }
}

/* Short or narrow phones keep the honesty labels (Camera, Catalog) and drop Source and Paint. */
@media (max-width: 379px), (max-height: 700px) and (max-width: 899px) {
  .mm-readout div:nth-child(1), .mm-readout div:nth-child(2) { display: none; }
}
@media (max-width: 649px) {
  .seam-tags span { padding: 7px 9px; font-size: 12px; letter-spacing: .1em; }
  .strip .strip-tile em { letter-spacing: .06em; }
}
@media (max-width: 399px) {
  .hero-actions > .mm-btn--line { flex: 1 1 100%; }
}
@media (min-width: 650px) {
  .readout-try { display: inline-flex; margin-left: auto; }
  .ribbon { margin-inline: 0; height: 56px; padding: 4px; border: 1px solid var(--mm-hair-2); background: rgb(10 10 12 / .55); }
  .ribbon button { min-width: 0; }
  .ribbon button[aria-checked="true"] { flex-grow: 2.2; transform: none; }
  .mm-readout { display: flex; flex-wrap: wrap; gap: 0; }
  .mm-readout div { padding: 0 18px; }
  .mm-readout div:first-child { padding-left: 0; border-left: 0; }
}

/* ---------------- hero (desktop) ---------------- */
@media (min-width: 900px) {
  .nav { height: calc(68px + env(safe-area-inset-top)); gap: 32px; }
  .seam { --nav-h: calc(68px + env(safe-area-inset-top)); }
  .wordmark span { display: inline; }
  .pitch-hero { display: block; height: 100svh; min-height: 640px; max-height: 1080px; padding: 0; }
  .hero-photo { inset: 0; width: 100%; height: 100%; object-position: 68% 10%; }
  .hero-veil { background: linear-gradient(90deg, var(--mm-ink-0) 18%, rgb(10 10 12 / .2) 62%, transparent), linear-gradient(0deg, var(--mm-ink-0), transparent 34%); }
  .hero-copy { position: absolute; left: var(--mm-gutter); top: clamp(104px, 18vh, 210px); width: min(46vw, 700px); margin: 0; padding: 0; }
  .hero-leadin { font-size: var(--mm-fs-leadin); margin-bottom: clamp(10px, 1.6vh, 20px); }
  .hero-display { font-size: clamp(46px, 6.5vw, 104px); }
  .hero-lede { font-size: var(--mm-fs-lead); max-width: 46ch; margin-top: clamp(18px, 3vh, 30px); }
  .hero-lede-phone, .hero-eyebrow { display: none; }
  .hero-lede-desk { display: inline; }
  .hero-actions { gap: 12px; margin-top: clamp(22px, 3.6vh, 38px); }
  .hero-dock {
    position: absolute; left: var(--mm-gutter); right: var(--mm-gutter); bottom: clamp(18px, 3vh, 30px); margin: 0; padding: 0;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); column-gap: 40px; row-gap: 12px; align-items: end;
  }
  .readout { grid-row: 1 / span 2; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 6px; align-self: end; padding-bottom: 2px; }
  .readout .mm-swatch { --mm-sw-size: 44px; }
  .readout-text strong { font-size: 22px; }
  .readout-try { grid-column: 2; margin: 0; min-height: 32px; font-size: 14px; }
  .ribbon-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
  .ribbon { height: 48px; }
  .mm-readout { grid-column: 2; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .ribbon-meta { display: none; }
  .hero-copy { top: clamp(96px, 15vh, 140px); }
}
@media (min-width: 1100px) {
  .nav-links { display: flex; gap: 4px; margin-left: auto; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 500 var(--mm-fs-ui)/1 var(--mm-f-display); color: var(--mm-fg-2); text-decoration: none; transition: color var(--mm-t-state) var(--mm-ease-out); }
  .nav-cta { margin-left: 8px; }
  .callouts:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity var(--mm-t-pop) var(--mm-ease-out); }
  .callouts path { fill: none; stroke: var(--mm-hair-3); stroke-width: 1; }
  .callouts circle { fill: var(--mm-fg-1); }
  .callout:not([hidden]) { display: grid; gap: 4px; justify-items: end; text-align: right; position: absolute; z-index: 3; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity var(--mm-t-pop) var(--mm-ease-out); }
  .callout span { font: 500 12px/1 var(--mm-f-display); color: var(--mm-fg-3); }
  .callout b { font: 500 13px/1.2 var(--mm-f-display); color: var(--mm-fg-1); white-space: nowrap; }
  .pitch-hero.at-rest .callouts, .pitch-hero.at-rest .callout { opacity: .92; }
}
@media (min-width: 900px) and (pointer: coarse) {
  .ribbon { height: 56px; }
  .ribbon button { min-height: 44px; }
  .readout-try { min-height: 44px; padding-block: 6px; display: inline-flex; align-items: center; }
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--mm-fg-1); }
}

/* ---------------- shared section rhythm ---------------- */
/* No content-visibility: every section renders on load (cheap DOM; the canvases paint lazily from mm-pitch.js), so the
   page height never jumps while scrolling and full-page captures, PDFs and print are never blank. */
/* One rhythm: each section opens and closes with --mm-section; .pour needs no top rule because the edge list
   already ends on one. */
/* phones get a tighter opening than --mm-section's 72px floor; from about 800px wide it is the same rhythm */
.pour, .handoff, .edge, .pilot { padding-block: max(48px, var(--mm-section) - 24px); }
@media (min-width: 800px) { .pour, .handoff, .edge, .pilot { padding-block: var(--mm-section); } }
.handoff, .edge, .pilot { border-top: 1px solid var(--mm-hair-1); }
.mm-h2 { max-width: 18ch; }

/* ---------------- the pour (stacked: phone, tablet, reduced motion) ---------------- */
.pour-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 5vw, 64px); }
@media (min-width: 900px) {
  .pour-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(40px, 6vw, 112px); }
  .pour.is-pinned .pour-head { margin-bottom: 0; }
}
.pour-track { position: relative; }
.pour-sentinels { display: none; }
.pour-grid { display: grid; gap: 20px; grid-template-areas: "stage" "left" "paper"; }
.pour-left { grid-area: left; display: grid; gap: 18px; align-content: start; min-width: 0; }
.pour-layers { display: none; }
.pour-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pour-tabs .mm-chip { min-width: 0; min-height: 44px; padding: 0 6px; }
.pour-tabs .mm-chip[aria-selected="true"] { border-color: var(--mm-fg-1); background: var(--mm-surface-3); }
.pour-steps { display: grid; }
.pour-step { grid-area: 1 / 1; display: grid; gap: 10px; align-content: start; opacity: 0; visibility: hidden; transition: opacity var(--mm-t-pop) var(--mm-ease-out), visibility 0s linear var(--mm-t-pop); }
.pour-step.on { opacity: 1; visibility: visible; transition: opacity var(--mm-t-pop) var(--mm-ease-out); }
.pour-step p { color: var(--mm-fg-2); max-width: 44ch; }
.pour:not(.has-js) .pour-step:first-child { opacity: 1; visibility: visible; }
.pour-replay { justify-self: start; gap: 8px; padding-inline: 4px; }
.pour-replay.is-pause .i { display: none; }

.pour-stage-wrap { grid-area: stage; margin: 0; display: grid; gap: 10px; justify-items: start; min-width: 0; }
.pour-stage-wrap figcaption { max-width: 48ch; }
.pour-stage { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 74svh; overflow: hidden; border-radius: var(--mm-r-media); background: var(--mm-ink-2); box-shadow: inset 0 0 0 1px var(--mm-hair-1); }
.pour-stage :is(img, canvas) { position: absolute; inset: 0; width: 100%; height: 100%; }
.pour-photo { object-fit: cover; object-position: 66% 42%; transform: scale(1.3); transform-origin: 66% 42%; }
.pour-stage canvas { opacity: 0; transition: opacity 420ms var(--mm-ease-out); }
.pour-stage.painted canvas { opacity: 1; }

/* paper column: the receipt and the after-delivery card share one cell, so nothing shifts between steps */
.pour-paper { grid-area: paper; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; min-width: 0; }
.pour-paper > * { grid-area: 1 / 1; }
.slip, .ask { border-radius: var(--mm-r-card); background: var(--mm-bg); color: var(--mm-fg-1); box-shadow: var(--mm-shadow-product); }

.slip {
  position: relative; padding: 26px 22px 20px; transform-origin: 50% 0;
  -webkit-mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 16px 12px repeat-x, linear-gradient(#000, #000) 0 6px / 100% calc(100% - 6px) no-repeat;
  mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 16px 12px repeat-x, linear-gradient(#000, #000) 0 6px / 100% calc(100% - 6px) no-repeat;
  transition: transform 520ms var(--mm-ease-drawer), opacity 420ms var(--mm-ease-out), filter 420ms var(--mm-ease-out);
}
.slip-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--mm-hair-2); }
.slip-head .mm-h3 { margin-top: 4px; font-size: 28px; }
.slip-lines { margin: 0; padding: 0; list-style: none; }
.slip-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--mm-hair-1); transition: opacity 320ms var(--mm-ease-out); }
.slip-name { display: grid; gap: 1px; min-width: 0; }
.slip-name b { font: 500 14px/1.25 var(--mm-f-display); }
.slip-name small { font-size: 12.5px; line-height: 1.3; color: var(--mm-fg-2); }
.slip-price { color: var(--mm-fg-1); }
.slip-line .mm-swatch { transition: opacity 320ms var(--mm-ease-out); }
.slip-confidence { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; }
.slip-confidence .mm-mono { color: var(--mm-fg-1); }
.slip-alt { flex-basis: 100%; font-size: 12.5px; color: var(--mm-fg-2); }
.slip-alt b { font-weight: 500; color: var(--mm-fg-1); }
.slip-pending { display: none; }
.slip-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-top: 14px; transition: opacity 320ms var(--mm-ease-out); }
.slip-total .mm-mono, .slip-total .lbl { white-space: nowrap; }
/* AED totals are wider than the old dollar ones; the figure stays the hero but leaves the label on one line. */
.slip-sum { font: var(--mm-w-number) 34px/1 var(--mm-f-display); font-stretch: 112%; letter-spacing: -.01em; white-space: nowrap; margin-left: auto; }

/* step states (JS sets data-step on .pour; without JS the full receipt shows).
   Lines not reached yet keep their space (no layout shift) but show as a labelled empty slot, not as ghost text. */
.pour.has-js .slip [data-step] { opacity: .14; }
.pour.has-js .slip [data-pending]:not(.on) { position: relative; opacity: 1; background: none; border-radius: 0; border-block: 1px dashed var(--mm-hair-3); }
.pour.has-js .slip [data-pending]:not(.on) > * { visibility: hidden; }
.pour.has-js .slip [data-pending]:not(.on)::after { content: attr(data-pending); position: absolute; inset: 0; display: grid; place-items: center start; padding: 0; font-size: 12px; line-height: 1.3; color: var(--mm-fg-3); }
.pour.has-js .slip .slip-total[data-pending]:not(.on) { padding: 10px 12px; }
.pour.has-js .slip .slip-line--base[data-step] { opacity: 1; }
.pour.has-js .slip .slip-line--base:not(.on) .mm-swatch { opacity: .3; }
.pour.has-js .slip .slip-line--base:not(.on) .slip-confidence { position: relative; }
.pour.has-js .slip .slip-line--base:not(.on) .slip-confidence > * { visibility: hidden; }
.pour.has-js .slip .slip-line--base:not(.on) .slip-confidence::after { content: "A confidence label comes with the shade"; position: absolute; inset: 0; display: grid; place-items: center start; border-block: 1px dashed var(--mm-hair-3); font-size: 12px; line-height: 1.3; color: var(--mm-fg-3); }
.pour.has-js .slip .slip-line--base:not(.on) .slip-pending { display: inline; font-style: normal; }
.pour.has-js .slip .slip-line--base:not(.on) .slip-ready { display: none; }
.pour.has-js .slip [data-step].on { opacity: 1; }
.slip-line--base .slip-confidence { transition: opacity 320ms var(--mm-ease-out); }

.ask {
  position: relative; z-index: 1; align-self: end; display: grid; gap: 14px; padding: 22px; margin-top: 0;
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.98);
  transition: opacity 360ms var(--mm-ease-out), transform 520ms var(--mm-ease-expo), visibility 0s linear 520ms;
}
.ask-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ask .mm-h3 { font-size: 24px; }
.ask-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mm-fg-2); }
.ask-item b { font-weight: 500; color: var(--mm-fg-1); }
.ask-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-answers .mm-chip { min-height: 44px; }
.ask-result { min-height: 3em; font-size: 14px; line-height: 1.45; color: var(--mm-fg-2); }
.ask-result b { font-weight: 500; color: var(--mm-fg-1); }
.ask .mm-link { justify-self: start; }
/* step 4: the answer card is laid over the lower half of the receipt, which stays readable above it (paper on paper,
   no ghosting); both share one grid cell, so nothing below moves */
.pour[data-step="4"] .slip { transform: scale(.96); filter: brightness(.8); }
.pour[data-step="4"] .ask { box-shadow: 0 -24px 48px -16px rgb(0 0 0 / .6), var(--mm-shadow-product); }
.pour[data-step="4"] .ask { opacity: 1; visibility: visible; transform: none; transition: opacity 360ms var(--mm-ease-out), transform 520ms var(--mm-ease-expo); }

/* ---------------- the pour (pinned, desktop with motion) ---------------- */
@media (min-width: 900px) {
  /* scroll runway per moment (was 56svh): a shorter page, same pinned story */
  .pour.is-pinned { --pour-run: 44svh; }
  .pour.is-pinned .pour-track { height: calc(4 * var(--pour-run) + 100svh); }
  .pour.is-pinned .pour-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: 40px; }
  .pour.is-pinned .pour-sentinels { display: block; position: absolute; inset: 0; pointer-events: none; }
  .pour.is-pinned .pour-sentinels i { position: absolute; left: 0; width: 1px; height: var(--pour-run); }
  .pour.is-pinned .pour-sentinels i[data-s="1"] { top: 50svh; }
  .pour.is-pinned .pour-sentinels i[data-s="2"] { top: calc(50svh + var(--pour-run)); }
  .pour.is-pinned .pour-sentinels i[data-s="3"] { top: calc(50svh + 2 * var(--pour-run)); }
  .pour.is-pinned .pour-sentinels i[data-s="4"] { top: calc(50svh + 3 * var(--pour-run)); }
  .pour.is-pinned .pour-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); grid-template-areas: "left stage paper"; align-items: center; gap: clamp(24px, 3vw, 48px); }
  .pour.is-pinned .pour-tabs, .pour.is-pinned .pour-replay { display: none; }
  .pour.is-pinned .pour-layers { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .pour-layers li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--mm-hair-1); font: 500 14px/1.2 var(--mm-f-display); color: var(--mm-fg-3); transition: color var(--mm-t-state) var(--mm-ease-out); }
  .pour-layers li i { position: relative; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--mm-hair-3); overflow: hidden; }
  .pour-layers li i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform var(--mm-t-layer) var(--mm-ease-out); }
  .pour-layers li b { font: 450 var(--mm-fs-mono-num)/1 var(--mm-f-mono); color: var(--mm-fg-3); }
  .pour-layers li.on { color: var(--mm-fg-1); }
  .pour-layers li.on i::after { transform: scale(1); }
  .pour-layers li.on b { color: var(--mm-fg-2); }
  .pour.is-pinned .pour-steps { margin-top: 28px; }
  /* pinned: inactive steps are transparent but stay in the accessibility tree (the tabs are hidden here) */
  .pour.is-pinned .pour-step { visibility: visible; pointer-events: none; }
  .pour.is-pinned .pour-step.on { pointer-events: auto; }
  .pour.is-pinned .pour-step { transform: translateY(10px); transition: opacity var(--mm-t-pop) var(--mm-ease-out), transform 360ms var(--mm-ease-out), visibility 0s linear var(--mm-t-pop); }
  .pour.is-pinned .pour-step.on { transform: none; transition: opacity var(--mm-t-pop) var(--mm-ease-out) 80ms, transform 360ms var(--mm-ease-out) 80ms; }
  .pour.is-pinned .pour-step .mm-h3 { font-size: clamp(26px, 2.3vw, 33px); } /* heavier weight: keeps step 4 on one line at 1280-1440 */
  .pour.is-pinned .pour-stage { aspect-ratio: auto; height: min(70svh, 680px); max-height: none; }
  .pour.is-pinned { padding-bottom: clamp(24px, 3vw, 48px); }
}
@media (min-width: 900px) and (max-height: 820px) {
  .pour.is-pinned .slip { padding: 20px 20px 16px; }
  .pour.is-pinned .slip-line { padding: 6px 0; }
  .pour.is-pinned .slip-head .mm-h3 { font-size: 24px; }
  .pour.is-pinned .slip-sum { font-size: 30px; }
}
@media (max-width: 599px) {
  .pour-stage { aspect-ratio: 1 / 1; }
}
/* receipt: on a phone the five middle products read as one grouped line; wider screens list each one */
.slip-line--group { display: none; }
.slip-dots { display: inline-flex; width: 22px; justify-content: center; }
.slip-dots i { flex: none; width: 12px; height: 12px; margin-left: -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--mm-paper-1); }
.slip-dots i:first-child { margin-left: 0; }
@media (max-width: 599px) {
  .slip-line--each { display: none; }
  .slip-line--group { display: grid; }
  /* One card with step tabs: tabs and the step line on top, then the painted photo (step 1) or the receipt
     (steps 2 to 4) in a single cell, so the four moments take one screen instead of three. Without JS both stack. */
  .pour.has-js .pour-grid { grid-template-areas: "left" "card"; gap: 18px; }
  .pour.has-js .pour-stage-wrap, .pour.has-js .pour-paper { grid-area: card; transition: opacity var(--mm-t-pop) var(--mm-ease-out), visibility 0s linear 0s; }
  .pour.has-js .ask { gap: 10px; padding: 20px; }
  /* the receipt tightens so it and the 1:1 photo share one height; the photo fills whatever is left */
  .pour.has-js .pour-stage-wrap { align-self: stretch; }
  .pour.has-js .pour-stage { aspect-ratio: auto; height: 100%; min-height: 300px; }
  .slip { padding: 20px 18px 16px; }
  .slip-head { padding-bottom: 10px; }
  .slip-head .mm-h3 { font-size: 24px; }
  .slip-line { padding: 7px 0; }
  .slip-confidence { margin-top: 5px; }
  .slip-alt { flex-basis: auto; }
  .slip-total { margin-top: 10px; }
  .slip-sum { font-size: 30px; }
  .pour.has-js .ask-result { min-height: 1.45em; }
  .pour.has-js .ask .mm-link { display: none; } /* the merchant view is the next section */
  .pour.has-js:is([data-step="0"], [data-step="1"]) .pour-paper,
  .pour.has-js:not([data-step="0"]):not([data-step="1"]) .pour-stage-wrap { opacity: 0; visibility: hidden; transition: opacity var(--mm-t-pop) var(--mm-ease-out), visibility 0s linear var(--mm-t-pop); }
  .pour.has-js .pour-left { gap: 14px; }
}
@media (max-width: 599px) and (prefers-reduced-motion: reduce) {
  .pour.has-js .pour-stage-wrap, .pour.has-js .pour-paper { transition: none; }
}
@media (max-width: 359px) { .slip-total { flex-wrap: wrap; } }
@media (min-width: 600px) and (max-width: 899px) {
  .shopper-photo { aspect-ratio: 21 / 9; }
  .pour-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "stage paper" "left paper"; align-items: start; column-gap: 24px; }
}

/* ---------------- handoff ---------------- */
.handoff-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 5vw, 56px); }
.handoff-title { max-width: 20ch; font-size: clamp(29px, 3.4vw, 46px); } /* 29px floor: keeps two lines at 390 with the heavier Bodoni */
.act-sent { display: grid; justify-items: start; gap: 2px; margin: -4px 0 0; font-size: 14px; line-height: 1.45; color: var(--mm-fg-2); }
.act-sent[hidden] { display: none; }
.act-sent b { font-weight: 500; color: var(--mm-fg-1); }
#cells { scroll-margin-top: 96px; }
@media (min-width: 900px) { .act-sent { display: none; } }
.experience-grid { display: grid; gap: 16px; }
.side { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--mm-hair-2); border-radius: var(--mm-r-sheet); background: var(--mm-ink-1); }
.side--merchant { border-color: transparent; background: linear-gradient(var(--mm-ink-1), var(--mm-ink-1)) padding-box, var(--mm-chrome-soft) border-box; }
.side-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.side .mm-link { align-self: flex-start; margin-top: auto; }
.shopper-photo { position: relative; margin: 0; border-radius: var(--mm-r-inner); overflow: hidden; aspect-ratio: 2 / 1; background: var(--mm-ink-2); }
.shopper-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 420ms var(--mm-ease-out); }
.shopper-photo.painted canvas { opacity: 1; }
.shopper-cap { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: var(--mm-r-chip); background: var(--mm-ink-0); font: 500 13px/1.2 var(--mm-f-display); color: var(--mm-fg-1); }
.shopper-dots { display: inline-flex; }
.shopper-dots i { width: 10px; height: 10px; margin-left: -3px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--mm-ink-0); }
.shopper-dots i:first-child { margin-left: 0; }
.acts { display: grid; gap: 8px; }
/* phone: the four actions sit two by two, label over value */
@media (max-width: 599px) {
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts .mm-act { grid-template-columns: minmax(0, 1fr) 18px; align-content: center; gap: 2px 8px; min-height: 64px; padding: 10px 12px; }
  .acts .mm-act .lbl, .acts .mm-act .act-v { grid-column: 1; }
  .acts .mm-act .i { grid-column: 2; grid-row: 1 / span 2; }
  .shopper-photo { aspect-ratio: 5 / 2; }
  .side { gap: 14px; padding: 18px; }
}
.mm-act {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 56px; margin: 0; padding: 0 16px;
  border: 1px solid var(--mm-hair-2); border-radius: var(--mm-r-card); background: var(--mm-ink-2); color: var(--mm-fg-1); text-align: left; cursor: pointer;
  touch-action: manipulation; transition: transform var(--mm-t-press) var(--mm-ease-out), border-color var(--mm-t-state) var(--mm-ease-out);
}
.mm-act:active { transform: scale(.98); }
.mm-act .act-v { font: 500 15px/1.25 var(--mm-f-display); }
.mm-act .i { color: var(--mm-fg-3); transition: transform var(--mm-t-pop) var(--mm-ease-out), color var(--mm-t-state) var(--mm-ease-out); }
.mm-act.sent { border-color: var(--mm-shade-ink); }
@media (hover: hover) and (pointer: fine) {
  .mm-act:hover { border-color: var(--mm-hair-3); }
  .mm-act:hover .i { transform: translateX(3px); color: var(--mm-fg-1); }
}

.cells { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--mm-hair-1); }
.cell { display: grid; gap: 6px; align-content: start; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--mm-hair-1); }
.cell:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--mm-hair-1); }
.cell dd { margin: 0; font: var(--mm-w-number) clamp(32px, 3.4vw, 46px)/1 var(--mm-f-display); font-stretch: 118%; letter-spacing: -.01em; transition: color 160ms var(--mm-ease-out); }
.cell.hit dd { color: var(--mm-shade-ink); }
.bands { display: grid; gap: 8px; }
.bands-title { margin-bottom: 2px; }
.band { display: grid; grid-template-columns: 64px minmax(0, 1fr) 76px; align-items: center; gap: 12px; min-height: 28px; font: 500 13px/1 var(--mm-f-display); color: var(--mm-fg-2); }
.band i { position: relative; height: 8px; border-radius: 2px; background: var(--mm-hair-1) repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(237 237 241 / .07) calc(10% - 1px) 10%); overflow: hidden; }
.band i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--mm-chrome-soft); border-radius: 2px; transition: width 420ms var(--mm-ease-out); }
.band.hit i::after { background: var(--mm-shade); }
.band b { font-weight: 450; color: var(--mm-fg-1); text-align: right; white-space: nowrap; }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding-top: 22px; }
.strip-tile { position: relative; height: 40px; border-radius: var(--mm-r-chip); background: var(--sw); }
.strip-tile span { position: absolute; left: 6px; bottom: 5px; font: 450 11px/1 var(--mm-f-mono); color: rgb(10 10 12 / .9); }
.strip-tile em { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font: 450 11px/1 var(--mm-f-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-fg-1); }
.strip-tile:nth-child(n+5) span { color: rgb(255 255 255 / .88); }
.strip-tile.is-flag { box-shadow: 0 0 0 2px var(--mm-ink-1), 0 0 0 4px var(--mm-fg-1); }
.strip-tile.is-review { outline: 1px dashed var(--mm-fg-2); outline-offset: 3px; }
.strip-tile.is-review em { color: var(--mm-fg-2); bottom: auto; top: calc(100% + 8px); }
.strip { padding-bottom: 22px; }
@media (max-width: 599px) { .strip { display: none; } }
.fly-dot { position: fixed; left: 0; top: 0; z-index: var(--mm-z-toast); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--mm-shade); box-shadow: 0 0 0 3px color-mix(in oklab, var(--mm-shade) 30%, transparent); pointer-events: none; }

@media (min-width: 600px) {
  .side { padding: 28px; }
  .cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cell { padding: 14px 14px 14px 0; }
  .cell + .cell { padding-left: 14px; border-left: 1px solid var(--mm-hair-1); }
}
@media (min-width: 900px) {
  .handoff-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(40px, 6vw, 112px); }
  .experience-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .shopper-photo { aspect-ratio: 16 / 9; }
}

/* ---------------- edge: one heading, three short lines ---------------- */
.edge { padding-bottom: 0; }
.edge .mm-h2 { max-width: 20ch; }
.edge-grid { display: grid; gap: 28px; }
.edge-points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mm-hair-2); }
.edge-points li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--mm-hair-1); font: 500 17px/1.3 var(--mm-f-display); color: var(--mm-fg-1); }
.edge-points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--mm-shade); transition: background-color var(--mm-t-shade) var(--mm-ease-out); }
@media (min-width: 1000px) {
  .edge-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 112px); align-items: end; }
  .edge-points li { font-size: 19px; }
}

/* ---------------- pilot ---------------- */
.weeks { margin-top: clamp(24px, 5vw, 64px); }
@media (min-width: 1100px) {
  .pilot-head .mm-h2 { max-width: none; }
  .pilot-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 112px); align-items: end; }
  .pilot-head .weeks { margin-top: 0; padding-bottom: 6px; }
}
.weeks-scale { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-bottom: 1px solid var(--mm-hair-2); }
.weeks-scale span { padding: 0 0 10px; font: 450 11px/1 var(--mm-f-mono); letter-spacing: .12em; color: var(--mm-fg-3); border-left: 1px solid var(--mm-hair-1); padding-left: 6px; }
.weeks-bars { display: grid; gap: 12px; padding-top: 14px; }
@media (min-width: 600px) { .weeks-bars { gap: 18px; padding-top: 18px; } }
.wk { position: relative; display: grid; gap: 4px; padding: 14px 8px 0 var(--from); }
.wk::before { content: ""; position: absolute; top: 0; left: var(--from); width: var(--span); height: 3px; border-radius: 2px; background: var(--mm-silver-3); }
.wk--setup { --from: 0%; --span: 25%; }
.wk--ab { --from: 25%; --span: 75%; }
.wk--ab::before { background: var(--mm-shade); transition: background-color var(--mm-t-shade) var(--mm-ease-out); }
.wk--readout { --from: 87.5%; --span: 12.5%; padding-left: 0; text-align: right; justify-items: end; }
.wk--readout::before { background: var(--mm-fg-1); }
.wk b { font: 500 15px/1.3 var(--mm-f-display); }
.pilot-line { margin-top: clamp(24px, 3vw, 40px); }

/* ---------------- end ---------------- */
.end { padding-block: 0 clamp(48px, 8vw, 112px); text-align: center; }
.end-display { margin: 0; font-size: clamp(42px, 9vw, 140px); } /* 42px floor: keeps "Try it. Then" on one line at 390 with the heavier display weight */
.end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
/* a static echo of the hero ribbon */
.end-ribbon { display: flex; height: 12px; max-width: 420px; margin: 56px auto 0; border-radius: var(--mm-r-pill); overflow: hidden; }
.end-ribbon i { flex: 1 1 0; background: var(--c); }
@media (max-width: 599px) {
  .end-actions .mm-btn { flex: 1 1 auto; }
  .end-ribbon { margin-top: 28px; }
}

/* ---------------- footer ---------------- */
.foot-meta { margin-left: auto; font-size: var(--mm-fs-small); color: var(--mm-fg-3); }
.foot-note { flex: 1 1 100%; max-width: 68ch; padding-bottom: 16px; border-bottom: 1px solid var(--mm-hair-1); font-size: var(--mm-fs-small); line-height: 1.5; color: var(--mm-fg-2); }
.foot-note b { font-weight: 600; color: var(--mm-fg-1); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mm-hair-1); }
@media (max-width: 599px) { .foot { padding-top: 20px; } }

/* ---------------- reveals (content visible by default) ---------------- */
.rv { transition: opacity 520ms var(--mm-ease-expo), transform 520ms var(--mm-ease-expo); }
.js .rv:not(.in) { opacity: 0; transform: translateY(14px); }

/* ---------------- reduced motion, transparency ---------------- */
@media (prefers-reduced-motion: reduce) {
  .k, .intro .k:not(.lit) { transform: none !important; transition: color 160ms linear; }
  .js .rv:not(.in), .rv { opacity: 1; transform: none; transition: none; }
  .pour-step, .pour-step.on { transition: opacity 160ms linear; transform: none !important; }
  .slip, .ask, .pour[data-step="4"] .ask { transition: opacity 150ms linear, filter 150ms linear, visibility 0s; transform: none !important; }
  .pour[data-step="4"] .slip { transform: none; }
  .callouts, .callout { transition: none; }
  .seam-handle, .mm-act { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.solid { background: var(--mm-ink-0); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .ribbon button { forced-color-adjust: none; outline: 1px solid CanvasText; }
  .seam::before { background: CanvasText; }
  .side, .mm-act { border: 1px solid CanvasText; }
}

/* ---------------- light below the hero ----------------
   The hero stays ink. Every section after it, and the footer, reads on porcelain with graphite text: the same
   paper tokens as .mm-paper, so the shared components (chips, tags, links, buttons, swatches) recolor themselves.
   Only the few rules that named ink or silver directly are restated here. */
main > section:not(.pitch-hero), .foot {
  color-scheme: light;
  --mm-bg: var(--mm-paper-0); --mm-surface-1: var(--mm-paper-1); --mm-surface-2: var(--mm-paper-2); --mm-surface-3: #D9D9DF;
  --mm-fg-1: var(--mm-graphite-1); --mm-fg-2: var(--mm-graphite-2); --mm-fg-3: var(--mm-graphite-3); --mm-fg-4: #8A8A94;
  --mm-hair-1: var(--mm-rule-1); --mm-hair-2: var(--mm-rule-2); --mm-hair-3: var(--mm-rule-3);
  --mm-accent-text: var(--mm-shade-ink-paper); --mm-focus: var(--mm-graphite-1);
  --mm-shadow-product: 0 24px 48px -26px rgb(18 18 22 / .26), 0 4px 12px -6px rgb(18 18 22 / .10);
  color: var(--mm-fg-1);
}
main > section:not(.pitch-hero) { background: var(--mm-bg); }
/* the footer is a centered container: its porcelain runs edge to edge without widening the page */
.foot { background: var(--mm-bg); box-shadow: 0 0 0 100vmax var(--mm-bg); clip-path: inset(0 -100vmax); }
/* the fixed nav stays ink; a denser glass keeps its silver links readable over the porcelain sections */
.nav.solid { background: rgb(10 10 12 / .88); }
@media (prefers-reduced-transparency: reduce) { .nav.solid { background: var(--mm-ink-0); } }

/* the pour */
.pour-stage { background: var(--mm-paper-2); }
.pour-layers li[data-layer="4"] { --c: var(--mm-graphite-1); }
.pour .slip, .pour .ask { background: var(--mm-paper-1); }
.pour .slip { box-shadow: inset 0 0 0 1px var(--mm-rule-1); }
.pour .ask { box-shadow: inset 0 0 0 1px var(--mm-rule-1), var(--mm-shadow-product); }
.pour[data-step="4"] .slip { filter: brightness(.95); }
.pour[data-step="4"] .ask { box-shadow: inset 0 0 0 1px var(--mm-rule-1), 0 -20px 40px -18px rgb(18 18 22 / .22), var(--mm-shadow-product); }

/* handoff */
.side { background: var(--mm-paper-1); }
.side--merchant {
  background: linear-gradient(var(--mm-paper-1), var(--mm-paper-1)) padding-box,
    linear-gradient(135deg, rgb(18 18 22 / .10), rgb(18 18 22 / .30) 40%, rgb(18 18 22 / .08) 55%, rgb(18 18 22 / .26)) border-box;
}
.shopper-photo { background: var(--mm-paper-2); }
.shopper-cap { background: var(--mm-paper-1); }
.shopper-dots i { box-shadow: 0 0 0 1.5px var(--mm-paper-1); }
.mm-act { background: var(--mm-paper-0); }
.mm-act.sent { border-color: var(--mm-accent-text); }
.cell.hit dd { color: var(--mm-accent-text); }
.band i { background: var(--mm-hair-1) repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(18 18 22 / .07) calc(10% - 1px) 10%); }
.band i::after { background: linear-gradient(90deg, #8B8B95, #5E5E68); }
.band.hit i::after { background: var(--mm-shade); }
.strip-tile.is-flag { box-shadow: 0 0 0 2px var(--mm-paper-1), 0 0 0 4px var(--mm-fg-1); }

/* pilot */
.wk::before { background: var(--mm-graphite-3); }
.wk--ab::before { background: var(--mm-shade); }
.wk--readout::before { background: var(--mm-fg-1); }
}
