/* Mintproof motion: the scroll film, hero staging, heading masks.
 *
 * Without script (or under reduced motion) the film reads as a numbered list
 * beside the card and its price receipt. `html.is-live` is added by script
 * only, and is the one switch that stages anything hidden or pinned.
 */

/* Rule: never smooth-scroll while a pin is measured. */
html.film-scroll-instant { scroll-behavior: auto !important; }

/* Reveals that slide in from the side start past the edge; clip them so the
   page never gains a horizontal scroll. `clip`, not `hidden`: no scroll
   container, so the pinned film and sticky nav behave as before. */
html.is-live main { overflow-x: clip; }

/* Hero: staged hidden only while its entrance is about to play. */
html.is-live [data-hero-in] { visibility: hidden; }
/* The scan result sheet loops in and out on its own without script; with the
   entrance playing it lands once, after the scan, and stays. */
html.is-live [data-hero-in="sheet"] { animation: none !important; }
[data-hero-scroll], [data-hero-phone] { will-change: transform; }

/* Heading word masks. The padding keeps descenders out of the clip. */
.mp-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.mp-w > span { display: inline-block; will-change: transform; }

/* ------------------------------------------------------------- the film */
.mp-film {
  --line: rgba(255,255,255,.12); --soft: rgba(255,255,255,.66); --faint: rgba(255,255,255,.45);
  position: relative; color: #fff; margin-top: 48px;
  background:
    radial-gradient(760px 520px at 66% 52%, rgba(199,236,255,.10), transparent 62%),
    radial-gradient(620px 460px at 22% 90%, rgba(255,211,230,.08), transparent 60%),
    radial-gradient(1000px 640px at 60% 50%, #23242b, #15161A 72%);
}
.mp-film-stage {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 92px max(20px, calc(50vw - 580px)) 40px;
}
html.is-live .mp-film.is-mounted .mp-film-stage { height: 100vh; height: 100svh; }
.mp-film-copy { position: relative; z-index: 3; }
.mp-eyebrow { font-size: 12px; font-weight: 700; color: #FFF1B8; letter-spacing: .08em; }
.mp-film-copy h2 { font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -.045em; margin: 10px 0 20px; text-wrap: balance; }
.mp-beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mp-beat { position: relative; padding: 12px 0 12px 50px; border-top: .5px solid var(--line); }
.mp-beat:last-child { border-bottom: .5px solid var(--line); }
.mp-beat::before {
  content: attr(data-n); position: absolute; left: 0; top: 11px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,.25);
  transition: background .3s, color .3s, border-color .3s;
}
.mp-beat b { display: block; font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.mp-beat-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.3,1); }
.mp-beat-body > p { overflow: hidden; margin: 0; padding-top: 6px; color: var(--soft); font-size: 15px; line-height: 1.55; max-width: 38ch; }
html.is-live .mp-film.is-mounted .mp-beat { opacity: .4; transition: opacity .4s; }
html.is-live .mp-film.is-mounted .mp-beat-body { grid-template-rows: 0fr; }
html.is-live .mp-film.is-mounted .mp-beat-body > p { padding-top: 0; }
html.is-live .mp-film.is-mounted .mp-beat.is-on { opacity: 1; }
html.is-live .mp-film.is-mounted .mp-beat.is-on .mp-beat-body { grid-template-rows: 1fr; }
html.is-live .mp-film.is-mounted .mp-beat.is-on .mp-beat-body > p { padding-top: 6px; }
html.is-live .mp-film.is-mounted .mp-beat.is-on::before { background: var(--holo); color: #15161A; border-color: transparent; }
html.is-live .mp-film.is-mounted .mp-beat.is-past::before { content: '✓'; color: #7EE0C8; border-color: rgba(126,224,200,.5); }
.mp-rail { display: none; height: 3px; margin-top: 18px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; }
.mp-rail i { display: block; height: 100%; background: var(--holo); }
html.is-live .mp-film.is-mounted .mp-rail { display: block; }
.mp-film-note { display: block; margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--faint); max-width: 40ch; }

.mp-film-scene { position: relative; height: 100%; min-height: 560px; }
.mp-rig {
  --ch: min(58vh, 520px); --cw: calc(var(--ch) * 63 / 88);
  position: absolute; left: 30%; top: 54%; height: var(--ch); width: var(--cw); translate: -50% -50%; perspective: 1600px;
}
.mp-card-hold { position: absolute; inset: 0; z-index: 2; transform-style: preserve-3d; }

/* the card */
.mp-tcg { --mx: 50%; --my: 50%; --o: .3; position: relative; width: 100%; height: 100%; border-radius: 4.6% / 3.3%; overflow: hidden;
  box-shadow: 0 2px 0 rgba(255,255,255,.12) inset, 0 34px 70px rgba(0,0,0,.55); background: #2a2420;
  /* Blend the foil against the card only. Without its own group WebKit blends
     through the 3D-transformed holder and bleaches the card. */
  isolation: isolate; }
.mp-tcg img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.mp-holo, .mp-glare { position: absolute; inset: 0; pointer-events: none; }
.mp-holo { mix-blend-mode: soft-light; opacity: calc(.12 + var(--o) * .5); background: repeating-linear-gradient(110deg,#FFD3E6 0%,#C7ECFF 7%,#D6FFE4 14%,#FFF1B8 21%,#EBD4FF 28%,#FFD3E6 35%); background-size: 400% 400%; background-position: var(--mx) var(--my); }
.mp-glare { mix-blend-mode: overlay; opacity: calc(var(--o) * .9); background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,255,255,.8) 6%, rgba(255,255,255,.35) 24%, rgba(0,0,0,.4) 92%); }
/* the printing tell: the right edge of the art box, spotlit */
.mp-tell { position: absolute; left: 82%; top: 10.6%; width: 10%; height: 40%; border-radius: 6px; border: 3px solid #FFF1B8;
  box-shadow: 0 0 0 2000px rgba(11,11,13,.5), 0 0 22px rgba(255,241,184,.8); z-index: 3; }
.mp-tell-label { position: absolute; right: -6px; top: calc(100% + 10px); white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: #15161A; background: #FFF1B8; border-radius: 999px; padding: 5px 10px; }

/* scanner */
.mp-vf { position: absolute; inset: -7%; pointer-events: none; z-index: 4; }
.mp-vf i { position: absolute; width: 16%; aspect-ratio: 1; border: 4px solid #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,.5)); }
.mp-vf .tl { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.mp-vf .tr { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.mp-vf .bl { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.mp-vf .br { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.mp-laser { position: absolute; left: 3%; right: 3%; top: -4%; height: 3px; border-radius: 3px; z-index: 5; background: var(--accent-strong); box-shadow: 0 0 22px 4px rgba(214,75,46,.75); }
.mp-laser::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 90px; background: linear-gradient(transparent, rgba(214,75,46,.18)); }
.mp-mesh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.mp-mesh line { stroke: #fff; stroke-width: 2; opacity: .85; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(214,75,46,.9)); }
.mp-mesh circle { fill: var(--accent-strong); stroke: #fff; stroke-width: 5; }
.mp-idtag { position: absolute; left: 50%; top: -14%; translate: -50% 0; z-index: 6; white-space: nowrap;
  display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 999px; background: #fff; color: #15161A;
  font-size: 13px; font-weight: 600; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.mp-idtag b { color: var(--up-text); }

/* callouts beside the card */
.mp-co { position: absolute; box-sizing: border-box; left: calc(100% + 44px); width: min(330px, 27vw); z-index: 6; }
.mp-co-id { top: 8%; display: grid; gap: 12px; }
.mp-co-print, .mp-co-price, .mp-co-roi, .mp-co-total { top: 4%; }
.mp-co-total { margin-left: 30px; }
.mp-id { position: relative; display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: .5px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mp-id::before { content: ''; position: absolute; right: 100%; top: 50%; width: 52px; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7)); }
.mp-id span { min-width: 76px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.mp-id b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

.mp-panel { background: #fff; color: #15161A; border-radius: 22px; padding: 18px 20px; box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 .5px rgba(0,0,0,.06); }
.mp-panel.is-dark { background: rgba(255,255,255,.08); color: #fff; border: .5px solid rgba(255,255,255,.18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.mp-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6E6C67; text-transform: uppercase; }
.mp-panel.is-dark .mp-k { color: #FFF1B8; }
.mp-print-q { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.mp-print-opts { display: flex; gap: 8px; margin-top: 12px; }
.mp-opt { flex: 1; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.08); border: .5px solid rgba(255,255,255,.2); }
.mp-opt > div { height: 100%; box-sizing: border-box; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.mp-opt b { display: block; font-size: 22px; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
[data-part="print-pick"] { --on: 1; position: relative; background: rgba(255,255,255, var(--on)); color: rgb(calc(255 - var(--on) * 234), calc(255 - var(--on) * 233), calc(255 - var(--on) * 229)); }
[data-part="print-pick"]::after { content: '✓'; position: absolute; right: 10px; top: 8px; font-weight: 800; color: var(--up-text); opacity: var(--on); }
.mp-print-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--soft); }

.mp-pill { display: inline-flex; gap: 6px; align-items: center; padding: 4px 9px; border-radius: 999px; background: #E7F5F2; font-size: 11px; font-weight: 700; color: var(--up-text); letter-spacing: .06em; }
.mp-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.mp-big { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.mp-odo { display: inline-flex; font-weight: 700; line-height: 1.1; height: 1.1em; overflow: hidden; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.mp-odo-col { display: inline-flex; flex-direction: column; will-change: transform; }
.mp-odo-col i { font-style: normal; height: 1.1em; display: block; text-align: center; }
.mp-odo .mp-dim { opacity: .16; }
.mp-co-price .mp-odo { font-size: clamp(40px, 4vw, 54px); }
.mp-unit { font-size: 13px; font-weight: 600; color: #6E6C67; }
.mp-delta { font-size: 13px; margin-top: 4px; }
.mp-delta b { color: var(--up-text); }
.mp-spark { display: block; width: 100%; height: 56px; margin-top: 10px; overflow: visible; }
.mp-spark polyline { fill: none; stroke: #1E9A7E; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mp-ladder { margin-top: 8px; }
.mp-ladder > div { display: flex; justify-content: space-between; padding: 8px 0; border-top: .5px solid rgba(0,0,0,.1); font-size: 14px; }
.mp-ladder .mp-k { padding-bottom: 6px; border: 0; display: flex; justify-content: space-between; }
.mp-ladder em { font-style: normal; color: #6E6C67; }
.mp-ladder strong { font-variant-numeric: tabular-nums; }
.mp-ladder strong small { font-size: 10px; color: var(--up-text); font-weight: 700; margin-left: 4px; }

.mp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mp-tile { background: #F7F3EA; border-radius: 14px; padding: 10px 12px; }
.mp-tile span:not([class]) { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; color: #6E6C67; }
.mp-tile b { display: block; font-size: 22px; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mp-tile-gem { display: flex; align-items: center; gap: 10px; }
.mp-ring { width: 40px; height: 40px; flex: none; transform: rotate(-90deg); }
.mp-ring circle { fill: none; stroke-width: 6; }
.mp-ring .t { stroke: rgba(21,22,26,.1); }
.mp-ring .f { stroke: var(--up); stroke-linecap: round; }
.mp-tile .mp-odo { display: inline-flex; font-size: 22px; margin-top: 2px; }
.mp-verdict { margin-top: 10px; border-radius: 16px; background: #1E9A7E; color: #fff; padding: 14px 16px; }
.mp-verdict .mp-k { color: rgba(255,255,255,.8); }
.mp-verdict .mp-odo { font-size: clamp(38px, 3.8vw, 50px); margin-top: 2px; }
.mp-ev { font-size: 13px; color: rgba(255,255,255,.9); margin-top: 2px; }

.mp-binder {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1;
  width: calc(var(--cw) * .34 * 3 + 2 * 10px + 2 * 18px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; border-radius: 20px;
  background: linear-gradient(180deg, #2b2c34, #1c1d23); border: .5px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.mp-pocket { aspect-ratio: 63 / 88; border-radius: 7px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); overflow: hidden; }
.mp-pocket img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-pocket-center { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,241,184,.5); }
.mp-co-total .mp-odo { font-size: clamp(40px, 4vw, 54px); }
.mp-total-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: .5px solid rgba(0,0,0,.1); font-size: 14px; color: #6E6C67; }
.mp-total-row b { color: #15161A; font-variant-numeric: tabular-nums; }
.mp-total-row b.up { color: var(--up-text); }

/* Static composition (no script, reduced motion): the card beside its price. */
.mp-film:not(.is-mounted) .mp-vf, .mp-film:not(.is-mounted) .mp-laser, .mp-film:not(.is-mounted) .mp-mesh,
.mp-film:not(.is-mounted) .mp-idtag, .mp-film:not(.is-mounted) .mp-co-id, .mp-film:not(.is-mounted) .mp-tell,
.mp-film:not(.is-mounted) .mp-co-print, .mp-film:not(.is-mounted) .mp-co-roi, .mp-film:not(.is-mounted) .mp-binder,
.mp-film:not(.is-mounted) .mp-co-total { display: none; }

/* mid widths: narrower copy column so the callouts stay on screen */
@media (min-width: 901px) and (max-width: 1240px) {
  .mp-film-stage { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 28px; }
  .mp-rig { --ch: min(50vh, 420px); left: 30%; }
  .mp-co { left: calc(100% + 36px); width: min(290px, 28vw); }
  .mp-co-total { width: min(260px, 26vw); }
}

/* narrow screens: copy on top, card in the middle, callout underneath */
@media (max-width: 900px) {
  .mp-film { margin-top: 32px; }
  .mp-film-stage { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 72px 16px 24px; align-content: start; }
  .mp-film:not(.is-mounted) .mp-film-stage { padding-bottom: 330px; }
  .mp-film-scene { min-height: 0; height: auto; position: static; }
  .mp-rig { --ch: min(27svh, 240px); left: 50%; top: auto; bottom: calc(30px + min(35svh, 290px)); translate: -50% 0; }
  .mp-co { left: 50%; top: calc(100% + 22px); translate: -50% 0; width: min(350px, calc(100vw - 32px)); }
  .mp-film:not(.is-mounted) .mp-rig { position: relative; left: auto; bottom: auto; translate: none; margin: 28px auto 0; }
  .mp-co-id, .mp-co-print, .mp-co-price, .mp-co-roi, .mp-co-total { top: calc(100% + 22px); }
  .mp-co-total { margin-left: 0; }
  .mp-co-id { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mp-id { flex-direction: column; gap: 2px; padding: 9px 12px; }
  .mp-id::before { display: none; }
  .mp-id b { font-size: 15px; }
  .mp-panel { padding: 14px 16px; border-radius: 18px; }
  .mp-co-price .mp-odo, .mp-co-total .mp-odo { font-size: 36px; }
  .mp-spark { height: 26px; margin-top: 4px; }
  .mp-ladder { margin-top: 4px; }
  .mp-ladder > div { padding: 5px 0; font-size: 13px; }
  .mp-ladder .mp-k { padding-bottom: 2px; }
  .mp-tiles { gap: 6px; margin-top: 8px; }
  .mp-tile { padding: 7px 10px; }
  .mp-tile b, .mp-tile .mp-odo { font-size: 18px; }
  .mp-ring { width: 30px; height: 30px; }
  .mp-verdict { padding: 10px 14px; margin-top: 8px; }
  .mp-verdict .mp-odo { font-size: 34px; }
  .mp-print-q { font-size: 17px; }
  .mp-print-note { font-size: 12.5px; margin-top: 8px; }
  .mp-opt b { font-size: 19px; }
  .mp-total-row { padding: 7px 0; font-size: 13px; }
  .mp-idtag { font-size: 12px; top: 4%; }
  html.is-live .mp-film.is-mounted .mp-eyebrow, html.is-live .mp-film.is-mounted .mp-film-note { display: none; }
  html.is-live .mp-film.is-mounted .mp-film-copy h2 { font-size: 20px; margin: 0 0 6px; }
  html.is-live .mp-film.is-mounted .mp-beat { padding-top: 6px; padding-bottom: 6px; }
  html.is-live .mp-film.is-mounted .mp-beat::before { top: 5px; }
  html.is-live .mp-film.is-mounted .mp-beat-body > p { font-size: 14px; line-height: 1.45; }
  html.is-live .mp-film.is-mounted .mp-beat { display: none; border: 0; }
  html.is-live .mp-film.is-mounted .mp-beat.is-on { display: block; opacity: 1; }
  html.is-live .mp-film.is-mounted .mp-rail { margin-top: 10px; }
}
/* Landscape phones (short and wide): the copy keeps one line at the top; the
   card, binder and callouts are sized to the height left under it, and the
   callout is centred on the card so a tall panel never runs off the bottom. */
@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .mp-film-stage { padding: 68px 16px 8px; }
  .mp-rig { --ch: 40svh; left: 26%; top: 66%; bottom: auto; translate: -50% -50%; }
  html.is-live .mp-film.is-mounted .mp-film-copy h2 { display: none; }
  html.is-live .mp-film.is-mounted .mp-beat-body { display: none; }
  /* Fixed offset, not translate: GSAP folds the CSS translate property into
     its own transform when it first touches the panel. */
  .mp-co { left: calc(100% + 28px); top: calc(50% - 30svh); translate: none; width: min(320px, 46vw); }
  .mp-co-id, .mp-co-print, .mp-co-price, .mp-co-roi, .mp-co-total { top: calc(50% - 30svh); }
  .mp-co-total { margin-left: 26px; }
  .mp-co-id { grid-template-columns: 1fr 1fr; }
  .mp-spark { display: none; }
  .mp-panel { padding: 12px 14px; }
  .mp-tiles { margin-top: 6px; }
  .mp-tile { padding: 5px 9px; }
  .mp-verdict { margin-top: 6px; padding: 8px 12px; }
  .mp-verdict .mp-odo { font-size: 28px; }
  .mp-ladder > div { padding: 4px 0; }
  .mp-co-price .mp-odo, .mp-co-total .mp-odo { font-size: 30px; }
  .mp-binder { gap: 6px; padding: 10px; border-radius: 14px; width: calc(var(--cw) * .34 * 3 + 2 * 6px + 2 * 10px); }
  .mp-idtag { top: 4%; font-size: 11px; padding: 5px 10px; }
  .mp-film:not(.is-mounted) .mp-rig { margin-left: 16px; }
}
