/* 點樣搵維修兵團 (order/index.html).
 * Hero and story: the learn site's dark studio, one luminous CTA colour (--cta) as the only bright
 * button. Ordering (part B): a bright daylight theme, the moment you order everything wakes up.
 * Type (Eddie 2026-09-30: small words too small, big words could be bigger): body text never
 * under 16px on phones, 17.5px for reading text; headings a step larger than the first demo.
 * Phones: picture on top, words under it, a thumb nav at the bottom with Fixes Baby in its right
 * corner. Desktop: words left, picture right. */

:root {
  --bg: #060a13;
  --ink: #eef3fb;
  --ink-2: #c3cfdf;
  --ink-3: #8795aa;
  --line: rgba(170, 195, 230, 0.18);
  --glass: rgba(12, 18, 30, 0.66);
  --cyan: #5fe6ff;
  --lime: #c8ff5a;
  --amber: #ffb84d;
  --cta: linear-gradient(100deg, #6ff7ff 0%, #b8ff5c 55%, #e9ff7a 100%);
  --cta-glow: 0 0 0 1px rgba(214, 255, 150, 0.6), 0 10px 40px -6px rgba(140, 255, 200, 0.6), 0 0 80px -12px rgba(110, 240, 255, 0.5);
  --sans: "Noto Sans TC", "PingFang HK", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 72px;
  --top-h: 60px;
  --baby: 80px; /* room kept for Fixes Baby in the nav's right corner */
  --fxc-bottom: calc(var(--safe-b) + 4px);
  --fxc-right: 12px;
  color-scheme: dark;
}
/* The quote close-up, the receipt and the end emblem use the whole screen: Fixes Baby steps aside
   there (it comes back for the end's fold-in). */
:root:has(body[data-scene="flow-quote"]), :root:has(body.viewing) { --fxc-visibility: hidden; }
/* This page points at Fixes Baby itself; its pop-up greeting would cover the demo. */
.fxc-teaser { display: none !important; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
/* Nothing here is text to copy; dragging a card or the 3D never selects words. */
body { overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: background-color 0.9s var(--ease), color 0.6s var(--ease); }
img, svg { -webkit-user-drag: none; }
button { font: inherit; color: inherit; -webkit-user-select: none; user-select: none; }
h1, h2 { margin: 0; }

/* ---------------------------------------------------------------- */
/* Backgrounds and 3D layers                                          */
/* ---------------------------------------------------------------- */

.bg { position: fixed; inset: 0; background: radial-gradient(120% 70% at 50% 18%, #0e1d38 0%, #070c17 55%, #04070d 100%); transition: opacity 0.9s var(--ease); }
.bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0; transition: opacity 1.2s var(--ease); }
.bg-a { width: 80vmax; height: 80vmax; left: -30vmax; top: -40vmax; background: radial-gradient(circle, #8ff2ff 0%, transparent 62%); }
.bg-b { width: 80vmax; height: 80vmax; right: -30vmax; bottom: -45vmax; background: radial-gradient(circle, #dcff8a 0%, transparent 62%); }
body[data-part="flow"] { background: #eef5ff; color: #0b1426; }
body[data-part="flow"] .bg { background: linear-gradient(165deg, #f5fbff 0%, #eaf2ff 50%, #f4ffec 100%); }
body[data-part="flow"] .bg i { opacity: 0.5; }
body[data-part="flow"] .bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(40, 90, 160, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(40, 90, 160, 0.06) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 100%); }

.story-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.story-canvas.on { opacity: 1; }

/* The learn engine's washer. Hidden unless a scene asks for it (body[data-machine]). */
.machine { position: fixed; z-index: 3; left: 0; right: 0; top: 0; height: 64%; opacity: 0; visibility: hidden; overflow: hidden;
  transition: opacity 0.7s var(--ease), visibility 0s 0.7s, transform 1.1s var(--ease), border-radius 1.1s var(--ease), box-shadow 1.1s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.machine canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.machine .callouts { position: absolute; inset: 0; pointer-events: none; }
body[data-machine]:not([data-machine=""]) .machine { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease) 0.15s, visibility 0s, transform 1.1s var(--ease), border-radius 1.1s var(--ease), box-shadow 1.1s var(--ease); }
body[data-machine="show"] .machine { animation: machine-in 1.2s var(--ease) both; }
@keyframes machine-in { 0% { transform: scale(0.35); filter: brightness(3) blur(10px); } 60% { filter: brightness(1.4) blur(0); } 100% { transform: none; filter: none; } }
/* 2026 年 10 月: the machine goes into the Learn site's window. */
body[data-machine="framed"] .machine { transform-origin: 50% 0; transform: translateY(calc(var(--top-h) + var(--safe-t) + 4px)) scale(0.72); border-radius: 22px; -webkit-mask-image: none; mask-image: none;
  box-shadow: 0 0 0 1px rgba(125, 235, 255, 0.55), 0 30px 90px -20px rgba(40, 140, 255, 0.55), 0 0 70px -10px rgba(110, 240, 255, 0.45); }
.m-url { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(10, 16, 28, 0.94); border-bottom: 1px solid rgba(125, 235, 255, 0.25);
  opacity: 0; transform: translateY(-100%); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.m-url i { width: 9px; height: 9px; border-radius: 50%; background: rgba(170, 195, 230, 0.35); }
.m-url span { margin-left: 10px; flex: 1; padding: 4px 12px; border-radius: 99px; background: rgba(125, 235, 255, 0.1); font: 600 14px/1.2 var(--mono); color: var(--cyan); letter-spacing: 0.02em; }
body[data-machine="framed"] .m-url { opacity: 1; transform: none; transition-delay: 0.6s; }
.m-cap { position: absolute; z-index: 2; left: 50%; top: calc(var(--top-h) + var(--safe-t) + 8px); margin: 0; transform: translate(-50%, 8px); padding: 8px 18px; border-radius: 99px; white-space: nowrap;
  font-size: 17px; font-weight: 700; letter-spacing: 0.08em; color: #06131f; background: var(--lime); box-shadow: 0 0 30px -4px rgba(200, 255, 90, 0.8); opacity: 0; transition: opacity 0.4s, transform 0.5s var(--pop); }
.m-cap.in { opacity: 1; transform: translate(-50%, 0); }
body:not([data-machine="show"]) .m-cap { display: none; }
[data-q] { display: none; }
.m-load { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 12px; font-size: 16px; color: var(--ink-2); text-align: center; }
body.m-loading .m-load, body.m-failed .m-load { display: grid; }
body.m-loading #machineCanvas { opacity: 0; } /* drawing each look once, behind the loader */
.spin { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(125, 235, 255, 0.2); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; margin: 0 auto; }
.m-load-bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(125, 235, 255, 0.15); overflow: hidden; }
.m-load-bar b { display: block; width: 40%; height: 100%; background: var(--cta); animation: loadbar 1.3s ease-in-out infinite; }
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* The quote step: the same washer, in a dark panel under the words, with the quote lines. */
body[data-machine="quote"] .machine { top: var(--q-top, 190px); left: 12px; right: 12px; height: auto; bottom: calc(var(--nav-h) + var(--safe-b) + 6px); border-radius: 24px; -webkit-mask-image: none; mask-image: none; background: #0a0e17;
  box-shadow: 0 40px 100px -30px rgba(10, 60, 160, 0.6), 0 0 0 1px rgba(125, 235, 255, 0.5), 0 0 50px -12px rgba(110, 240, 255, 0.5); }
body[data-machine="quote"] [data-q] { display: flex; }
body[data-machine="quote"] .qlines[data-q] { display: grid; }
.m-quote-head { position: absolute; z-index: 2; left: 0; right: 0; top: 0; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 15px; font-weight: 700; color: #eaf1fb; border-bottom: 1px solid rgba(125, 235, 255, 0.2); background: rgba(10, 16, 28, 0.92); }
.m-quote-head em { font-style: normal; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: rgba(200, 255, 90, 0.15); color: var(--lime); }
.qlines { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; list-style: none; margin: 0; padding: 8px; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(10, 16, 28, 0.94); border-top: 1px solid rgba(125, 235, 255, 0.2); }
.qlines button { width: 100%; min-height: 58px; text-align: left; border: 1px solid rgba(125, 235, 255, 0.2); background: rgba(20, 30, 50, 0.75); border-radius: 14px; padding: 8px 10px; cursor: pointer; color: #eaf1fb;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.qlines i { grid-row: span 2; font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(125, 235, 255, 0.15); color: var(--cyan); }
.qlines b { font-size: 15px; white-space: nowrap; }
.qlines span { grid-column: 2; font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qlines button.on { background: linear-gradient(135deg, rgba(111, 247, 255, 0.22), rgba(184, 255, 92, 0.18)); border-color: rgba(200, 255, 90, 0.75); box-shadow: 0 0 20px -4px rgba(184, 255, 92, 0.6); }
.qlines button.on i { background: var(--cta); color: #06210e; }

/* Bright part labels (Eddie: eye-catching points; see-through parts lighter but still a focus). */
.machine .fx-dot { width: 16px; height: 16px; left: -8px; top: -8px; background: var(--c, #c8ff5a); border: 3px solid #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, #c8ff5a) 35%, transparent), 0 0 22px var(--c, #c8ff5a); }
.machine .fx-lead { background: var(--c, #c8ff5a); height: 2px; box-shadow: 0 0 6px var(--c, #c8ff5a); }
.machine .fx-label { font-size: 16px; font-weight: 900; padding: 6px 12px; border-radius: 10px; color: #06131f; background: var(--c, #c8ff5a); border: 0; box-shadow: 0 8px 26px -6px var(--c, #c8ff5a); }
.machine .fx-callout.behind .fx-label { color: #06131f; background: var(--c, #c8ff5a); border: 2px dashed rgba(6, 19, 31, 0.45); opacity: 0.92; }
.machine .fx-callout.behind .fx-dot { background: transparent; border-color: var(--c, #c8ff5a); }

.flash { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f4ffd8 20%, rgba(200, 255, 120, 0.5) 40%, rgba(120, 220, 255, 0) 70%); }
.flash.go { animation: flash 1.1s var(--ease) forwards; }
@keyframes flash { 0% { opacity: 0; } 18% { opacity: var(--a, 0.6); } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- */
/* Fixes Baby: the page grows out of it, and folds back into it        */
/* ---------------------------------------------------------------- */

body.collapsing :is(.end-copy, .bg, .story-canvas, .top, .nav), body.bursting :is(.deck, .bg, .top, .nav) { transform-origin: var(--bx, 90%) var(--by, 90%); }
body.bursting :is(.deck, .bg, .top, .nav) { animation: burst 1.25s var(--ease) both; }
@keyframes burst {
  0% { transform: scale(0.04); opacity: 0; filter: blur(12px) brightness(2.2); clip-path: circle(0% at var(--bx) var(--by)); }
  60% { opacity: 1; filter: blur(0) brightness(1.15); }
  100% { transform: none; filter: none; clip-path: circle(150% at var(--bx) var(--by)); }
}
/* The end: everything is drawn into Fixes Baby and stays gone; the emblem comes out after. */
body.collapsing :is(.end-copy, .bg, .story-canvas, .top, .nav) { animation: suck 1s cubic-bezier(0.6, 0, 0.8, 0.3) both; }
body.collapsed :is(.end-copy, .bg, .story-canvas, .top, .nav) { visibility: hidden; }
@keyframes suck {
  0% { transform: none; filter: none; opacity: 1; }
  100% { transform: scale(0.02); opacity: 0; filter: blur(8px) brightness(2.5); }
}
body.baby-glow::after { content: ""; position: fixed; z-index: 9999; left: var(--bx); top: var(--by); width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(200, 255, 90, 0.6) 30%, rgba(110, 240, 255, 0) 70%); animation: glowpop 1s var(--ease) forwards; }
@keyframes glowpop { 0% { transform: scale(0.2); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
.sparks { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.sparks i { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px rgba(200, 255, 120, 0.9), 0 0 30px 8px rgba(110, 240, 255, 0.5); opacity: 0;
  animation: spark 1.1s cubic-bezier(0.3, 0, 0.3, 1) both; }
@keyframes spark {
  0% { transform: translate(var(--x0), var(--y0)) scale(0.4); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--x1), var(--y1)) scale(1.2); opacity: 0; }
}

/* ---------------------------------------------------------------- */
/* Top bar and bottom nav                                             */
/* ---------------------------------------------------------------- */

.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 16px 0; display: flex; align-items: center; gap: 14px; }
.logo { flex: none; display: block; }
.logo img { display: block; height: 28px; width: auto; }
body[data-part="flow"] .logo img { content: url(../images/fixes-logo-dark-hi.webp); }
.track { flex: 1; display: flex; gap: 0; max-width: 280px; margin-left: auto; }
.track i { flex: 1; height: 2px; border-radius: 0; background: rgba(160, 190, 230, 0.22); transition: background 0.4s; }
.track i.done { background: rgba(125, 235, 255, 0.55); }
.track i.now { height: 3px; border-radius: 3px; background: var(--cta); box-shadow: 0 0 10px rgba(180, 255, 140, 0.8); }
body[data-part="flow"] .track i { background: rgba(20, 60, 120, 0.14); }
body[data-part="flow"] .track i.done { background: #4aa6ff; }
.top-btn { flex: none; min-height: 40px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 99px; padding: 8px 14px; font-size: 15px; font-weight: 700; cursor: pointer; }

.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding: 0 var(--baby) var(--safe-b) 14px; display: flex; align-items: center; gap: 10px; transition: opacity 0.4s; }
body[data-part="hero"] .nav, body[data-part="end"] .nav { opacity: 0; pointer-events: none; }
.nav-btn { position: relative; width: 50px; height: 50px; flex: none; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: inherit; cursor: pointer; display: grid; place-items: center; transition: transform 0.15s, opacity 0.3s; }
.nav-btn:active { transform: scale(0.94); }
.nav-btn > svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn.next { background: var(--cta); color: #06210e; border: 0; box-shadow: var(--cta-glow); }
.nav-btn:disabled { opacity: 0.3; cursor: default; }
body[data-part="flow"] .nav-btn:not(.next) { background: rgba(255, 255, 255, 0.8); border-color: rgba(20, 60, 120, 0.14); color: #10233f; }
/* Play / pause: the middle button, with the reading countdown as a ring round it. */
.nav-btn.play { width: 58px; height: 58px; border: 0; background: rgba(10, 18, 32, 0.72); }
body[data-part="flow"] .nav-btn.play { background: #10233f; border: 0; color: #fff; }
.play .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.play .ring circle { fill: none; stroke-width: 3; }
.play .ring-bg { stroke: rgba(160, 190, 230, 0.28); }
.play .ring-fg { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 157.08; stroke-dashoffset: 157.08; filter: drop-shadow(0 0 4px rgba(200, 255, 90, 0.7)); }
.nav:not(.auto) .play .ring-fg { opacity: 0; }
/* A finger on the 3D machine holds the countdown: the ring stops and shows it is waiting. */
.nav.held .play .ring-fg { stroke: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)); }
.play .ico { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; fill: #fff; stroke: none; transition: opacity 0.2s, transform 0.25s var(--pop); }
.play .ico-play { opacity: 0; transform: scale(0.6); margin-left: -10px; }
.play.is-paused .ico-pause { opacity: 0; transform: scale(0.6); }
.play.is-paused .ico-play { opacity: 1; transform: none; }
.play.is-paused { box-shadow: 0 0 0 2px var(--lime), 0 0 22px rgba(200, 255, 90, 0.45); }
.nav-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-left: 4px; font-size: 15px; line-height: 1.25; font-weight: 500; color: var(--ink-2); }
#navLabel { display: flex; flex-direction: column; }
.nav-mid b { font-weight: 700; color: var(--ink); white-space: nowrap; }
.nav-mid small { font-size: 14px; white-space: nowrap; }
.nav-state { display: none; font-size: 13px; font-weight: 700; color: var(--lime); }
body.paused .nav-state { display: block; }
body[data-part="flow"] .nav-mid { color: #3b4960; }
body[data-part="flow"] .nav-mid b { color: #10233f; }
body[data-part="flow"] .nav-state { color: #2f7d00; }
/* Paused: everything that moves by itself holds still. */
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
/* Tearing the receipt pack is the reader's own doing: it plays even while the story is paused. */
body.paused .deckbox *, body.paused .deckbox *::before, body.paused .deckbox *::after { animation-play-state: running !important; }
.pause-flash { position: fixed; z-index: 30; left: 50%; top: 45%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: rgba(6, 12, 24, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; pointer-events: none; }
.pause-flash svg { grid-area: 1 / 1; width: 40px; height: 40px; fill: #fff; }
.pause-flash .ico-play, .pause-flash.is-paused .ico-pause { display: none; }
.pause-flash.is-paused .ico-play { display: block; }
.pause-flash.go { animation: pause-flash 0.7s var(--ease) both; animation-play-state: running !important; }
@keyframes pause-flash { 0% { opacity: 0; transform: scale(0.7); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }

/* ---------------------------------------------------------------- */
/* Scenes and type                                                    */
/* ---------------------------------------------------------------- */

.deck { position: fixed; inset: 0; z-index: 5; }
.sc { position: absolute; inset: calc(var(--top-h) + var(--safe-t)) 0 calc(var(--nav-h) + var(--safe-b)); padding: 8px 20px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s 0.5s; }
.sc.on { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease), visibility 0s; }
.sc-hero { inset: 0; padding: calc(var(--top-h) + var(--safe-t)) 20px calc(84px + var(--safe-b)); }
.sc-hero::before, .sc-story::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--nav-h) - var(--safe-b)); height: 62%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 19, 0), rgba(6, 10, 19, 0.82) 45%, rgba(6, 10, 19, 0.95)); }
.sc-hero::before { bottom: 0; }

.kicker { margin: 0 0 14px; font-size: 16px; letter-spacing: 0.08em; color: var(--cyan); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.sc-story .kicker::before, .sc-hero .kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
body[data-part="flow"] .kicker { color: #0a58ff; letter-spacing: 0.08em; }
.step { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--cta); color: #06210e; font-size: 14px; letter-spacing: 0; box-shadow: 0 0 16px rgba(160, 255, 150, 0.8); }
.copy h1 { font-size: clamp(40px, 10.6vw, 88px); line-height: 1.12; font-weight: 900; letter-spacing: 0; }
.copy h2 { font-size: clamp(32px, 9vw, 60px); line-height: 1.2; font-weight: 900; letter-spacing: 0; }
.copy p { margin: 18px 0 0; font-size: 17.5px; line-height: 1.72; color: var(--ink-2); max-width: 30em; letter-spacing: 0.01em; }
body[data-part="flow"] .copy p { color: #33415a; }
.copy .lead { font-size: 18px; }
.sc-story .copy, .sc-hero .copy { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.75); }

/* Words come up only once the picture has settled (.told), line after line. */
.copy > * { opacity: 0; transform: translateY(16px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.sc.told .copy > * { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
.sc.told .copy > *:nth-child(2) { transition-delay: 0.3s; }
.sc.told .copy > *:nth-child(3) { transition-delay: 0.7s; }
.sc.told .copy > *:nth-child(4) { transition-delay: 1.05s; }
.sc.told .copy > *:nth-child(5) { transition-delay: 1.35s; }
.sc-flow.told .copy > *:nth-child(n) { transition-delay: 0s; }
.sc-flow.told .copy > *:nth-child(2) { transition-delay: 0.15s; }
.sc-flow.told .copy > *:nth-child(3) { transition-delay: 0.3s; }

/* The one bright button. */
.cta { position: relative; min-height: 60px; border: 0; border-radius: 99px; padding: 17px 32px; font-size: 19px; font-weight: 900; letter-spacing: 0.04em; color: #051a0b; cursor: pointer;
  background: var(--cta); box-shadow: var(--cta-glow); overflow: hidden; isolation: isolate; transition: transform 0.2s var(--pop); }
.cta span { position: relative; z-index: 1; }
.cta::before { content: ""; position: absolute; inset: -2px; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.85) 45%, transparent 60%); transform: translateX(-120%); animation: sheen 3.4s ease-in-out infinite; z-index: 0; }
.cta:hover { transform: translateY(-2px) scale(1.02); }
.cta:active { transform: scale(0.97); }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Ways in: full-width cards, big enough to hit with a thumb (Eddie: the first demo's were small). */
/* Hero: two ways in, numbered. 1 (why so fast) is the big, bright one; 2 (the flow) follows. */
.routes { display: grid; gap: 12px; margin-top: 26px; max-width: 520px; }
.route { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; min-height: 72px; padding: 12px 14px 12px 12px; text-align: left; cursor: pointer; color: #fff; overflow: hidden;
  border-radius: 20px; border: 1px solid rgba(160, 200, 240, 0.26); background: linear-gradient(135deg, rgba(20, 34, 58, 0.8), rgba(12, 20, 34, 0.72)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s, transform 0.2s var(--pop), box-shadow 0.25s; }
.route .rn { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px; font-weight: 900; border: 1.5px solid rgba(160, 200, 240, 0.45); color: var(--ink); }
.route b { grid-column: 2; font-size: 19px; font-weight: 800; }
.route small { grid-column: 2; font-size: 15px; color: var(--ink-3); margin-top: 2px; }
.route .ra { grid-column: 3; grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.route .ra svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.route:hover { border-color: rgba(200, 255, 90, 0.6); transform: translateY(-1px); }
.route:active { transform: scale(0.98); }
.route.r1 { min-height: 96px; padding: 16px 16px 16px 14px; border: 0; color: #06210e; background: var(--cta); box-shadow: var(--cta-glow), 0 18px 50px -18px rgba(170, 255, 120, 0.75); }
.route.r1 .rn { width: 52px; height: 52px; font-size: 26px; border: 0; background: #06210e; color: var(--lime); }
.route.r1 b { font-size: 24px; font-weight: 900; }
.route.r1 small { color: rgba(6, 33, 14, 0.75); font-weight: 600; }
.route.r1 .ra { width: 44px; height: 44px; border: 0; background: rgba(6, 33, 14, 0.12); }
.route.r1::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-120%); animation: route-sheen 3.6s 1.2s var(--ease) infinite; }
@keyframes route-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* Hero */
.sc-hero .copy { max-width: 680px; }
.sc-hero .cta { margin-top: 24px; width: 100%; max-width: 420px; font-size: 20px; min-height: 64px; }

/* ---------------------------------------------------------------- */
/* Part A                                                             */
/* ---------------------------------------------------------------- */

.year { position: absolute; left: 0; right: 0; top: 2%; text-align: center; font-family: var(--mono); font-weight: 700; font-size: clamp(84px, 25vw, 200px); line-height: 1; letter-spacing: -0.04em; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity 0.8s var(--ease); }
.sc.on .year { opacity: 1; }
/* A hollow year behind the scene; the solid lime counter is the focal point. */
.year span { display: inline-block; color: transparent; -webkit-text-stroke: 1.5px rgba(200, 230, 255, 0.6); }
.year span.tick { animation: tick 0.55s var(--ease); }
@keyframes tick { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.counter { position: absolute; left: 0; right: 0; top: calc(2% + clamp(88px, 26vw, 206px)); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.counter .count-row b { font-family: var(--mono); font-size: clamp(32px, 9vw, 54px); color: var(--lime); text-shadow: 0 0 24px rgba(190, 255, 120, 0.55); font-variant-numeric: tabular-nums; }
.counter { padding: 0 20px; }

.bursts { position: absolute; left: 0; right: 0; top: calc(2% + clamp(96px, 27vw, 214px)); list-style: none; margin: 0; padding: 0 20px; display: flex; justify-content: center; gap: 14px; }
.bursts li { border-radius: 16px; border: 1px solid rgba(200, 255, 90, 0.55); background: rgba(20, 34, 16, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center;
  opacity: 0; transform: scale(0.6); transition: opacity 0.4s, transform 0.6s var(--pop), box-shadow 0.4s; box-shadow: 0 0 40px -8px rgba(200, 255, 90, 0.7); }
.bursts button { display: block; min-height: 48px; padding: 10px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.bursts small { display: block; font-size: 15px; color: var(--ink-2); }
.bursts b { font-size: 18px; color: var(--lime); }
.bursts .b2 { border-color: rgba(255, 130, 60, 0.75); background: rgba(40, 16, 8, 0.55); box-shadow: 0 0 48px -6px rgba(255, 110, 50, 0.8); }
.bursts .b2 b { color: #ffa13a; }
.bursts li.on { box-shadow: 0 0 0 2px currentColor, 0 0 50px -4px rgba(200, 255, 90, 0.9); color: var(--lime); }
.bursts .b2.on { color: #ffa13a; }
/* A breakthrough's details: a see-through window where the words will go, so the core stays in view. */
.bpanel { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 14px; max-width: 460px; margin: 0 auto; padding: 18px 48px 20px 20px; border-radius: 20px; overflow: hidden;
  background: rgba(8, 16, 26, 0.5); border: 1px solid rgba(200, 255, 90, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), inset 0 0 40px -20px rgba(200, 255, 90, 0.5);
  opacity: 0; transform: translateY(24px) scale(0.97); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.5s var(--pop); }
.bpanel.open { opacity: 1; transform: none; pointer-events: auto; }
.bpanel.hot { border-color: rgba(255, 130, 60, 0.7); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), inset 0 0 40px -18px rgba(255, 110, 50, 0.6); }
.bp-date { margin: 0 0 6px; font-size: 15px; color: var(--lime); font-weight: 500; }
.bpanel.hot .bp-date { color: #ffa13a; }
.bpanel h3 { margin: 0; font-size: clamp(24px, 6.6vw, 34px); line-height: 1.25; font-weight: 900; color: #fff; }
.bpanel p:not(.bp-date) { margin: 10px 0 0; font-size: 17px; line-height: 1.65; color: var(--ink); }
.bpanel .bp-hold { display: none; font-size: 14px !important; color: var(--ink-2) !important; }
.bpanel.pinned .bp-hold { display: block; }
.bp-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 16px; cursor: pointer; }
.bp-time { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; color: var(--lime); transform-origin: 0 50%; transform: scaleX(0); }
.bpanel.hot .bp-time { color: #ffa13a; }
.bpanel.open.timed .bp-time { animation: bp-time var(--bp-ms, 4000ms) linear both; }
.bpanel.pinned .bp-time { opacity: 0; }
@keyframes bp-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.sc-surge.panel-open .copy { opacity: 0; }
.sc-surge.b1 .b1, .sc-surge.b2 .b2 { opacity: 1; transform: none; }

.url-line { display: inline-block; margin-top: 16px !important; padding: 8px 16px; border-radius: 99px; font: 700 17px/1.3 var(--mono) !important; color: var(--cyan) !important; border: 1px solid rgba(95, 230, 255, 0.45); background: rgba(95, 230, 255, 0.08); letter-spacing: 0.02em !important; }

.sc-you, .sc-crew { justify-content: center; }
.gains, .proof { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.gains li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 14px; padding: 13px 16px; border-radius: 16px; background: rgba(12, 18, 30, 0.86); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gains i { grid-row: span 2; font-style: normal; font-family: var(--mono); font-size: 15px; color: var(--lime); }
.gains b { font-size: 20px; color: #fff; }
.gains span { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.proof li { padding: 12px 16px; border-left: 3px solid var(--amber); background: linear-gradient(90deg, rgba(40, 30, 14, 0.9), rgba(12, 18, 30, 0.8)); border-radius: 0 14px 14px 0; }
.proof b { display: block; font-size: 18px; color: #fff; }
.proof span { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.sc-crew .cta { margin-top: 22px; }

/* ---------------------------------------------------------------- */
/* Part B                                                             */
/* ---------------------------------------------------------------- */

.sc-flow { justify-content: flex-start; }
.sc-flow .vis { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; }
.sc-flow .copy { flex: none; }

/* Chat mock */
.phone { width: min(360px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 30px 80px -30px rgba(30, 70, 140, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 700; font-size: 16px; background: linear-gradient(90deg, #0b1426, #12305a); color: #fff; }
.phone-head img { height: 16px; width: auto; }
.wa-head { background: #008069; }
.chat { list-style: none; margin: 0; padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; min-height: 0; }
.chat li { position: relative; max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 16px; line-height: 1.5; visibility: hidden; opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.35s, transform 0.45s var(--pop); }
.chat li.in, .chat li.typing { visibility: visible; opacity: 1; transform: none; }
.chat .me { align-self: flex-end; background: #d9fdd3; color: #111b21; border-bottom-right-radius: 4px; }
.chat .ref { font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; color: #0a58ff; }
.chat .me .ref { font-size: 0.9em; color: #1f7a3a; }
.chat .bot { align-self: flex-start; background: #fff; color: #111b21; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(30, 60, 110, 0.08); }
/* Every message keeps its place from the start (Eddie 2026-10-01: the box drifted as lines came
   in); a reply being typed is a small dots bubble in the corner of its own place. */
.chat li.typing { color: transparent; background: none; box-shadow: none; }
.chat li.typing .ref { color: transparent; }
.chat li.typing::after { content: "• • •"; position: absolute; left: 0; top: 0; width: 62px; height: 38px; display: grid; place-items: center; border-radius: 16px; border-bottom-left-radius: 4px; background: #fff; box-shadow: 0 2px 8px rgba(30, 60, 110, 0.08); color: #8696a0; letter-spacing: 2px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.link-card { border: 1px solid #b7e7ff; background: linear-gradient(135deg, #f1fbff, #efffe6) !important; }
.link-card b { display: block; color: #0a58ff; }
.link-card small { color: #4a5870; font-size: 15px; }

/* Where the model sticker is */
.where { width: min(600px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 14px; }
.guide { position: relative; margin: 0; justify-self: center; width: 100%; display: grid; gap: 8px; justify-items: center; }
.guide-img { width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #f6efe2; border: 1px solid #fff; box-shadow: 0 24px 60px -28px rgba(30, 70, 140, 0.6); }
.guide img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--zo, 50% 50%); transform: scale(var(--zs, 1)); transition: transform 0.9s var(--ease, cubic-bezier(.2,.7,.2,1)), transform-origin 0.9s var(--ease, cubic-bezier(.2,.7,.2,1)); -webkit-user-drag: none; }
/* Under the picture, never over it (Eddie 2026-10-01: the caption covered the guide). */
.guide figcaption { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(6, 20, 40, 0.82); color: #fff; }
.guide[data-z="1"] { --zs: 2; --zo: 4% 22%; }
.guide[data-z="2"] { --zs: 2; --zo: 96% 22%; }
.guide[data-z="3"] { --zs: 2; --zo: 4% 76%; }
.guide[data-z="4"] { --zs: 2; --zo: 96% 76%; }
.where-list .tip { grid-template-columns: 1fr; background: #eaf6ff; border-color: #b7e7ff; }
.where-list .tip b { color: #0a58ff; }
.where-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.where-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.78); border: 1px solid #fff; box-shadow: 0 14px 40px -24px rgba(30, 70, 140, 0.5); opacity: 0.4; transform: translateX(8px); transition: opacity 0.4s, transform 0.5s var(--pop); }
.where-list li.lit { opacity: 1; transform: none; }
.where-list i { grid-row: span 2; font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--cta); color: #06210e; }
.where-list b { font-size: 17px; }
.where-list span { font-size: 15px; color: #4a5870; }
.where-list li:not(.tip) { align-items: center; }
.where-list li:not(.tip) i { grid-row: auto; }

/* Teaser: a strip of film rolls in from the right and stops with the video window in the middle. */
.sc-teaser { justify-content: flex-start; padding-left: 0; padding-right: 0; }
.sc-teaser::before { top: calc(-1 * var(--top-h) - var(--safe-t)); height: auto; background: rgba(6, 10, 19, 0.8); }
.sc-teaser .copy { padding: 0 20px; }
.film { --fw: min(84vw, 760px); --fg: 12px; position: relative; flex: 1; min-height: 0; overflow: hidden; }
.film-strip { position: absolute; left: 50%; top: 50%; display: flex; gap: var(--fg); padding: 20px var(--fg); background: #0d0f14; border-radius: 4px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  transform: translate(calc(-4 * (var(--fw) + var(--fg)) - var(--fw) / 2 - var(--fg) + 115vw), -50%); }
.film-strip::before, .film-strip::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 9px, #e9e2d0 9px 21px, transparent 21px 30px); opacity: 0.55; border-radius: 2px; }
.film-strip::before { top: 5px; }
.film-strip::after { bottom: 5px; }
.frame { position: relative; flex: none; width: var(--fw); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: #1b2030; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: sepia(0.55) saturate(0.7) brightness(0.8); -webkit-user-drag: none; }
.frame.win img { filter: none; }
.sc-teaser.rolled .film-strip { transform: translate(calc(-4 * (var(--fw) + var(--fg)) - var(--fw) / 2 - var(--fg)), -50%); transition: transform 2.6s cubic-bezier(0.16, 0.84, 0.3, 1); }
.sc-teaser .frame:not(.win) { transition: opacity 0.8s var(--ease); }
.sc-teaser.playing .frame:not(.win) { opacity: 0.35; }
.frame.win { transition: box-shadow 0.8s var(--ease); }
.sc-teaser.playing .frame.win { box-shadow: 0 0 0 2px #5fe6ff, 0 0 60px -6px rgba(95, 230, 255, 0.55); }
.yt { position: absolute; inset: 0; }
.yt a { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; background: rgba(0, 0, 0, 0.35); }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity 0.6s var(--ease); }
.yt iframe.ready { opacity: 1; }
.film-acts { flex: none; display: flex; justify-content: center; gap: 12px; padding: 0 20px; opacity: 0; transition: opacity 0.6s var(--ease); }
.sc-teaser.told .film-acts { opacity: 1; }
.film-acts button { min-height: 52px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.t-sound { background: #5fe6ff; color: #04202a; border: 0; }
.t-sound svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.t-sound .waves { fill: none; stroke-width: 2; stroke-linecap: round; }
.t-sound.on { background: transparent; color: #5fe6ff; border: 1.5px solid #5fe6ff; }
.t-skip { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); }
@media (prefers-reduced-motion: reduce) { .sc-teaser.rolled .film-strip { transition: none; } }

/* WhatsApp hand-off */
.handoff { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; width: min(680px, 100%); }
.phone.mini { width: 100%; }
.wa-btn { margin: 26px 14px; padding: 12px; border-radius: 12px; background: #25d366; color: #fff; text-align: center; font-weight: 700; font-size: 15px; box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.8); }
.handoff.sent .wa-btn { animation: press 0.5s var(--ease); }
@keyframes press { 40% { transform: scale(0.92); } }
.beam { position: relative; width: 44px; height: 4px; border-radius: 4px; background: rgba(10, 88, 255, 0.12); overflow: hidden; }
.beam i { position: absolute; top: 0; width: 14px; height: 4px; border-radius: 4px; background: var(--cta); box-shadow: 0 0 10px #b8ff5c; left: -14px; }
.handoff.sent .beam i { animation: beam 1s var(--ease) infinite; }
.handoff.sent .beam i:nth-child(2) { animation-delay: 0.33s; }
.handoff.sent .beam i:nth-child(3) { animation-delay: 0.66s; }
@keyframes beam { to { left: 100%; } }
.phone.wa { opacity: 0.35; transform: scale(0.94); transition: opacity 0.6s 0.6s, transform 0.8s 0.6s var(--pop); }
.handoff.sent .phone.wa { opacity: 1; transform: none; }
.phone.wa .chat { min-height: 170px; }

/* Quote: the words sit on top; the washer panel (.machine) fills the rest. */
.sc-quote .copy p { max-width: 26em; }

/* Order */
.order-card { width: min(520px, 100%); display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.8); border: 1px solid #fff; box-shadow: 0 24px 60px -28px rgba(30, 70, 140, 0.5); }
.oc-title { margin: 0; font-weight: 900; font-size: 19px; }
.order-card label { display: grid; gap: 6px; font-size: 14px; color: #4a5870; }
.oc-field { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: #f3f7fc; border: 1px solid #dbe6f2; font-size: 17px; color: #0b1426; }
.oc-field:empty::after { content: ""; width: 1px; height: 20px; background: #0a58ff; animation: blink 0.8s infinite; }
.oc-btn { min-height: 54px; border-radius: 99px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #051a0b; background: var(--cta); box-shadow: var(--cta-glow); transition: transform 0.25s var(--pop); }
.order-card.pressing .oc-btn { transform: scale(0.95); }
.order-card.booked .oc-btn span { display: none; }
.order-card.booked .oc-btn::after { content: attr(data-done); }
.oc-after { margin: 0; font-size: 16px; color: #1d6b00; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.5s var(--pop); }
.order-card.booked .oc-after { opacity: 1; transform: none; }
.journey { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.journey li { position: relative; padding: 30px 4px 0; text-align: center; opacity: 0.35; transition: opacity 0.4s; }
.journey li i { position: absolute; top: 4px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #dbe6f2; border: 2px solid #fff; transition: background 0.4s, box-shadow 0.4s; }
.journey li:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: calc(50% + 12px); right: calc(-50% + 12px); height: 2px; background: #dbe6f2; }
.journey li.lit { opacity: 1; }
.journey li.lit i { background: var(--cta); box-shadow: 0 0 14px #b8ff5c; }
.journey li.lit:not(:last-child)::after { background: linear-gradient(90deg, #6ff7ff, #b8ff5c); }
.journey b { font-size: 15px; }

/* Receipt: a card drawn from the deck; tilt to see its foil catch the light, tap to read flat. */
.deckbox { position: relative; width: min(420px, 100%); height: 100%; min-height: 280px; display: grid; place-items: center; }
/* Hand-drawn note: a loop of an arrow, pointing at the tear line. */
.scribble { position: absolute; z-index: 3; left: 46%; bottom: 89%; pointer-events: none; color: #ff5a3c; transition: opacity 0.3s; }
@keyframes scribble { to { stroke-dashoffset: 0; } }
.pack.opening .pack-body { animation: pack-away 0.9s 0.25s var(--ease) forwards; }
@keyframes pack-away { to { transform: translateY(70%) scale(0.92); opacity: 0; } }
.pack.opening { pointer-events: none; }
.deckbox.drawn .scribble { opacity: 0; }
.deckbox.drawn .pack { position: absolute; }
.rcard-in.from-pack { animation: pack-card 1.1s 0.35s var(--ease) both; }
@keyframes pack-card { 0% { transform: translateY(16%) scale(0.4) rotateX(28deg); opacity: 0; } 18% { opacity: 1; } 62% { transform: translateY(-2%) scale(1.03) rotateX(-4deg); } 100% { transform: none; } }
.card-slot { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; perspective: 1100px; }
.rcard { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; pointer-events: auto; position: relative; height: min(100%, 560px); aspect-ratio: 600 / 1010; max-width: 86vw; cursor: pointer; touch-action: none; outline: none;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; }
.rcard-in { position: absolute; inset: 0; transform-style: preserve-3d; animation: draw-card 1.3s var(--ease) both; }
@keyframes draw-card {
  0% { transform: translateY(45%) rotateY(180deg) rotateZ(-10deg) scale(0.55); }
  45% { transform: translateY(-10%) rotateY(180deg) rotateZ(4deg) scale(0.92); }
  100% { transform: none; }
}
.rcard-front, .rcard-back { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rcard-front { background: #fff; box-shadow: 0 40px 80px -30px rgba(10, 60, 160, 0.65), 0 0 0 1px rgba(10, 88, 255, 0.14); }
.rcard-front svg { width: 100%; height: 100%; display: block; }
/* A card bends a little: darker at the edges, light across the middle. */
.rcard-front::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10, 30, 70, 0.14), transparent 14%, transparent 86%, rgba(10, 30, 70, 0.16)); }
.foil { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0.2;
  background: repeating-linear-gradient(115deg, #ff7ad9 0%, #ffd36b 7%, #9dff7a 14%, #5fe6ff 21%, #9c8bff 28%, #ff7ad9 35%); background-size: 300% 300%; background-position: var(--mx) var(--my); }
.glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 25%, transparent 55%); }
.rcard-back { transform: rotateY(180deg); background: radial-gradient(circle at 50% 40%, #16335e, #0b1426 70%); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(125, 235, 255, 0.45), 0 30px 60px -20px rgba(10, 60, 160, 0.6); }
.rcard-back img { width: 70%; height: auto; }

/* Receipt viewer */
.viewer { position: fixed; inset: 0; z-index: 10000; background: rgba(5, 10, 20, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; color: #eaf1fb; }
.viewer[hidden] { display: none; }
.viewer-bar { flex: none; display: flex; gap: 8px; padding: calc(10px + var(--safe-t)) 12px 10px; justify-content: flex-end; }
.vbtn { min-height: 44px; border: 1px solid rgba(160, 190, 230, 0.3); background: rgba(20, 30, 50, 0.85); color: #fff; border-radius: 99px; padding: 10px 18px; font-size: 16px; font-weight: 700; cursor: pointer; }
.vbtn[data-act="download"] { background: var(--cta); color: #051a0b; border: 0; box-shadow: var(--cta-glow); }
.vbtn.close { width: 44px; padding: 0; margin-left: auto; order: 9; }
.viewer-bar .vbtn:first-child { margin-left: 0; }
.viewer-pane { flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; touch-action: none; }
.viewer-inner { width: min(600px, 94vw); max-height: 100%; transform-origin: 50% 50%; will-change: transform; transition: transform 0.25s var(--ease); }
.viewer-inner svg { width: 100%; height: auto; max-height: calc(100vh - 130px); display: block; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.viewer-hint { flex: none; margin: 0; padding: 8px 0 calc(12px + var(--safe-b)); text-align: center; font-size: 15px; color: var(--ink-3); }

/* ---------------------------------------------------------------- */
/* End: fold into Fixes Baby, then the Fixes emblem                    */
/* ---------------------------------------------------------------- */

.sc-end { justify-content: center; }
.finale { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: calc(var(--top-h) + var(--safe-t)) 20px calc(90px + var(--safe-b)); pointer-events: none; visibility: hidden; }
body.finale-on .finale { visibility: visible; pointer-events: auto; }
body.finale-on .sc-end::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 50% 40%, rgba(40, 110, 200, 0.45), transparent 70%); animation: fadein 1.4s var(--ease) both; }
@keyframes fadein { from { opacity: 0; } }
.emblem { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; width: min(90vw, 640px); perspective: 900px; touch-action: none; }
/* Sharp on phones (Eddie 2026-10-01: the end logo was soft on iPhone): iOS draws a layer at the size
   it starts an animation with, so the emblem never scales up from small or blurs on its way in;
   it fades and wipes in at full size, and its glow sits on the flat parent. */
.emblem { filter: drop-shadow(0 20px 40px rgba(60, 170, 255, 0.35)); }
.emblem-in { position: relative; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; }
.emblem-in img { display: block; width: 100%; height: auto; }
/* The light only lands on the logo itself: the logo's own shape is the mask. */
.sheen { position: absolute; inset: 0; pointer-events: none; -webkit-mask: url(../images/fixes-logo-white-hi.webp) center / 100% 100% no-repeat; mask: url(../images/fixes-logo-white-hi.webp) center / 100% 100% no-repeat;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(115deg, transparent 20%, rgba(111, 247, 255, 0.55) 40%, rgba(255, 255, 255, 0.95) 48%, rgba(233, 255, 122, 0.6) 56%, transparent 75%);
  background-size: 100% 100%, 260% 100%; background-position: 0 0, 120% 0; mix-blend-mode: overlay; animation: emblem-sheen 3.6s 1.2s ease-in-out infinite; }
@keyframes emblem-sheen { 0% { background-position: 0 0, 120% 0; } 45%, 100% { background-position: 0 0, -40% 0; } }
body.finale-on .emblem-in { animation: emblem-in 1.6s var(--ease) both; }
@keyframes emblem-in {
  0% { opacity: 0; clip-path: circle(0% at 12% 50%); }
  40% { opacity: 1; clip-path: circle(35% at 12% 50%); }
  100% { opacity: 1; clip-path: circle(150% at 12% 50%); }
}
body.finale-on .emblem::after { content: ""; position: absolute; inset: -20% -10%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(200, 255, 120, 0.4) 45%, transparent); opacity: 0; animation: emblem-flare 1.6s var(--ease); }
.emblem { position: relative; }
@keyframes emblem-flare { 0% { opacity: 0; transform: scale(0.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
.finale-acts { width: min(440px, 100%); display: grid; gap: 4px; opacity: 0; transform: translateY(20px); }
body.finale-on .finale-acts { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) 2.4s, transform 0.9s var(--ease) 2.4s; }
.finale-acts .cta { width: 100%; }

.print-only { display: none; }
@media print {
  body > *:not(.print-only) { display: none !important; }
  html, body { height: auto; overflow: visible; background: #fff; }
  .print-only { display: block; }
  .print-only svg { width: 100%; height: auto; }
}

/* ---------------------------------------------------------------- */
/* Desktop: words left, picture right                                 */
/* ---------------------------------------------------------------- */

@media (min-width: 900px) {
  :root { --top-h: 76px; --nav-h: 88px; --baby: 110px; --fxc-right: 28px; --fxc-bottom: calc(var(--safe-b) + 12px); }
  .top { padding: 0 40px; }
  .logo img { height: 34px; }
  .nav { justify-content: flex-start; padding-left: 40px; }
  .nav-mid { flex: 0 1 300px; margin-left: 12px; }
  .sc { padding: 12px 6vw 28px; }
  .sc-hero { padding: 0 8vw; justify-content: center; }
  .sc-hero .copy { max-width: 760px; }
  .copy p { font-size: 19px; }
  .copy .lead { font-size: 20px; }
  .sc-hero::before, .sc-story::before { top: 0; bottom: 0; height: auto; right: auto; width: 62%; background: linear-gradient(90deg, rgba(6, 10, 19, 0.92), rgba(6, 10, 19, 0.7) 55%, rgba(6, 10, 19, 0)); }
  .routes { grid-template-columns: 1.25fr 1fr; max-width: 720px; align-items: stretch; }
  .sc-story { justify-content: center; }
  .sc-story .copy { max-width: 540px; }
  /* The year sits over the words, in the left column, clear of the 3D on the right. */
  .sc-story { justify-content: flex-end; padding-bottom: 7vh; }
  .year { left: 6vw; right: auto; top: 3%; text-align: left; font-size: clamp(120px, 12vw, 190px); }
  .counter { left: 6vw; right: auto; top: calc(3% + clamp(126px, 12.6vw, 200px)); align-items: flex-start; padding: 0; }
  .bursts { left: 6vw; right: auto; top: calc(3% + clamp(130px, 13vw, 204px)); padding: 0; justify-content: flex-start; }
  .machine { left: 38%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%); mask-image: linear-gradient(90deg, transparent, #000 14%); }
  body[data-machine="framed"] .machine { transform: translateY(calc(var(--top-h) + 10px)) scale(0.76); }
  .m-cap { top: calc(var(--top-h) + 16px); }
  .sc-you .copy, .sc-crew .copy { max-width: 820px; }
  .gains { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: repeat(3, 1fr); }
  .proof li { border-left: 0; border-top: 3px solid var(--amber); border-radius: 0 0 14px 14px; background: linear-gradient(180deg, rgba(255, 184, 77, 0.12), transparent); }
  .sc-flow { flex-direction: row; align-items: center; gap: 5vw; justify-content: center; }
  .sc-flow .copy { flex: 0 1 440px; }
  .sc-flow .vis { flex: 0 1 620px; height: 100%; }
  .sc-quote { justify-content: flex-start; }
  body[data-machine="quote"] .machine { top: calc(var(--top-h) + 20px); left: calc(6vw + 480px); right: 6vw; bottom: calc(var(--nav-h) + 12px); }
  .qlines { grid-template-columns: repeat(4, 1fr); }
  .sc-end .copy { max-width: 760px; margin: 0 auto; text-align: center; }
  .finale { gap: 44px; }
  .finale-acts { width: min(620px, 100%); }
}

@media (max-width: 899px) {
  .sc-flow { gap: 12px; }
  .sc-flow .copy h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .sc-flow .vis { place-items: start center; padding-top: 16px; }
  .sc-flow .vis > * { margin-top: 4vh; }
  .handoff { grid-template-columns: 1fr; grid-template-rows: auto 22px auto; justify-items: center; }
  .handoff .phone.mini { width: min(320px, 100%); }
  .handoff .phone.mini:first-child .wa-btn { margin: 14px; }
  .beam { width: 4px !important; height: 22px; }
  .beam i { width: 4px; height: 8px; left: 0 !important; top: -8px; }
  .handoff.sent .beam i { animation-name: beam-v; }
  @keyframes beam-v { to { top: 100%; } }
  .sc-flow .copy p { font-size: 17px; margin-top: 8px; }
  .wa-btn { margin: 20px 8px; font-size: 14px; }
  .chat li { font-size: 15px; }
  .phone.mini .chat li { font-size: 14px; }
  .where { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; }
  .where-list { gap: 7px; }
  .where-list li { padding: 8px 10px; }
  .where-list b { font-size: 15.5px; }
  .where-list span { font-size: 13.5px; }
}
@media (max-height: 720px) and (max-width: 899px) {
  .copy h2 { font-size: 28px; }
  .copy p { font-size: 16px; line-height: 1.6; }
  .gains span, .proof span { font-size: 15px; }
  .gains li, .proof li { padding: 9px 12px; }
  .year { font-size: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.end-tag { margin: -12px 0 0; font-size: 18px; font-weight: 500; letter-spacing: 0.2em; color: var(--ink-2); text-align: center; opacity: 0; }
body.finale-on .end-tag { opacity: 1; transition: opacity 1s var(--ease) 1.6s; }
@media (min-width: 900px) { .machine .fx-label { font-size: 18px; } }

@media (min-width: 900px) {
  .film { --fw: min(60vw, 880px); }
  .sc-teaser { justify-content: flex-start; padding-bottom: 14px; }
  .sc-teaser::before { top: calc(-1 * var(--top-h) - var(--safe-t)); width: auto; right: 0; background: rgba(6, 10, 19, 0.8); }
  .sc-teaser .copy { max-width: none; text-align: center; }
  .sc.sc-teaser .copy .kicker { justify-content: center; }
}
@media (min-width: 900px) {
  .bpanel { left: 6vw; right: auto; width: min(480px, 40vw); margin: 0; bottom: 7vh; }
}
.pack.tearing .scribble { opacity: 0; }

/* ---------------------------------------------------------------- */
/* Round 4 (Eddie 2026-10-01)                                          */
/* ---------------------------------------------------------------- */

/* Language: 中 / EN / 日, small but plain to see, in the top bar. */
.lang { flex: none; display: flex; padding: 3px; gap: 2px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lang button { min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 99px; background: none; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--cta); color: #06210e; }
body[data-part="flow"] .lang { background: rgba(255, 255, 255, 0.8); border-color: rgba(20, 60, 120, 0.14); }
body[data-part="flow"] .lang button { color: #3b4960; }
body[data-part="flow"] .lang button[aria-pressed="true"] { color: #06210e; }
.track { order: 0; }
.top-btn .short { display: none; }
html[lang="ja"] .copy h1 { font-size: clamp(36px, 9.6vw, 80px); }
html[lang="en"] .copy h2, html[lang="ja"] .copy h2 { font-size: clamp(28px, 7.6vw, 54px); }

/* The way to the text version (for search; the animated page is where people read). */
.textver { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 4px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.textver svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.textver:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.4); }
.finale-acts .textver { justify-self: center; margin-top: 10px; }

/* 2020: Fixes Japan (Eddie 2026-10-01). The same window as the 2026 breakthroughs, in the
   AI blue-to-violet of Fixes' own AI back office, branching off the count so the column isn't one
   neat stack, and never over the count's words. */
.count-row { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 2px 10px; margin: 0; }
.counter .count-row small { font-size: 17px; font-weight: 500; color: var(--ink-2); }
.jp-node { --jp-a: #4f8bff; --jp-b: #a46bff; position: relative; z-index: 3; width: min(100%, 470px); margin: 20px 0 0; padding: 16px 20px 18px; border-radius: 20px; text-align: left;
  background: linear-gradient(135deg, rgba(20, 26, 60, 0.72), rgba(28, 14, 52, 0.72)) padding-box, linear-gradient(120deg, var(--jp-a), var(--jp-b)) border-box;
  border: 1px solid transparent; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), 0 0 50px -12px rgba(120, 110, 255, 0.75), inset 0 0 40px -20px rgba(150, 110, 255, 0.7);
  opacity: 0; transform: translateY(14px) scale(0.94); pointer-events: none; transition: opacity 0.35s, transform 0.6s var(--pop); }
.jp-node.on { opacity: 1; transform: none; }
.jp-node::before { content: ""; position: absolute; left: 50%; top: -20px; width: 2px; height: 20px; background: linear-gradient(var(--jp-a), var(--jp-b)); }
.jp-date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font-size: 16px; font-weight: 500; color: #a9b8ff; }
.jp-mode { font-size: 13px; font-weight: 900; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 99px; background: linear-gradient(90deg, var(--jp-a), var(--jp-b)); color: #fff; }
.jp-node h3 { margin: 0; font-size: clamp(28px, 7.4vw, 36px); line-height: 1.2; font-weight: 900; color: #fff; }
.jp-lead { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: #d9d2ff; }
.jp-note { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.sc-growth.jp .count-row b { color: #b9a4ff; text-shadow: 0 0 24px rgba(130, 110, 255, 0.7); }
@media (min-width: 900px) {
  /* Desktop: the window steps out to the right of the count, joined by an elbow line. */
  .jp-node { margin: 26px 0 0 64px; }
  .jp-node::before { left: -40px; top: -26px; width: 40px; height: calc(26px + 34px); background: none; border: 2px solid; border-image: linear-gradient(var(--jp-a), var(--jp-b)) 1; border-top: 0; border-right: 0; }
}

/* Breakthroughs: what each one changed, said on the button too. */
.bursts em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 10px; border-radius: 99px; background: rgba(200, 255, 90, 0.16); color: var(--lime); }
.bursts .b2 em { background: rgba(255, 140, 60, 0.18); color: #ffb36b; }
.bp-date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bp-mode { font-size: 13px; font-weight: 900; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 99px; background: var(--lime); color: #06210e; }
.bpanel.hot .bp-mode { background: linear-gradient(90deg, #ffb84d, #ff6a3d); color: #2a0a00; }

/* Phones */
@media (max-width: 899px) {
  /* The progress line runs along the bottom of the top bar; the bar keeps logo, language, skip. */
  .top { gap: 8px; }
  .logo img { height: 24px; }
  .track { position: absolute; left: 16px; right: 16px; bottom: 0; max-width: none; margin: 0; }
  .lang { margin-left: auto; }
  .lang button { min-width: 30px; height: 28px; padding: 0 6px; }
  .top-btn { min-height: 36px; padding: 6px 12px; font-size: 14px; }
  .top-btn .long { display: none; }
  .top-btn .short { display: inline; }

  /* Flow steps: words higher and closer to the picture; the picture fits the room above the nav. */
  .sc-flow { padding-top: 4px; gap: 10px; }
  .sc-flow .copy .kicker { margin-bottom: 8px; }
  .sc-flow .vis { place-items: start center; padding-top: 0; overflow: visible; }
  .sc-flow .vis > * { margin-top: 0; }
  .vis > .fit { width: 100%; display: grid; justify-items: center; transform-origin: 50% 0; }
  .sc.measure .chat li { display: block !important; }
  .sc.measure .vis > .fit { transform: none !important; height: auto !important; margin-bottom: 0 !important; }
  .where { align-items: start; }
  .guide figcaption { font-size: 12px; }

  /* 2026: the machine stands mid-screen while it shows itself, then moves up for the words. */
  body[data-machine]:not([data-machine=""]) .machine { transition: opacity 0.9s var(--ease) 0.15s, visibility 0s, transform 1.1s var(--ease), translate 1.1s var(--ease), border-radius 1.1s var(--ease), box-shadow 1.1s var(--ease); }
  body.m-centre[data-machine="show"] .machine { translate: 0 17vh; }
}
@media (min-width: 900px) {
  .lang { margin-left: 8px; }
}
@media (max-width: 899px) {
  body.m-centre[data-machine="show"] .machine { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 80%, transparent); }
}
/* English runs longer: smaller flow headings on phones leave the picture its room. */
@media (max-width: 899px) {
  html[lang="en"] .sc-flow .copy h2 { font-size: clamp(22px, 6.4vw, 32px); }
  html[lang="en"] .sc-flow .copy p { font-size: 15px; line-height: 1.5; }
}

/* ---------------------------------------------------------------- */
/* Round 5 (Eddie 2026-10-01)                                         */
/* ---------------------------------------------------------------- */

/* The 3D machine takes the fingers: where it is on screen, a drag turns it (main.js stops the
   page swipe there); words and buttons still take taps. */
body[data-machine]:not([data-machine=""]) .deck { pointer-events: none; }
body[data-machine]:not([data-machine=""]) .sc.on .copy,
body[data-machine]:not([data-machine=""]) .sc.on button,
body[data-machine]:not([data-machine=""]) .sc.on a { pointer-events: auto; }
.machine canvas { cursor: grab; }
.machine canvas:active { cursor: grabbing; }
/* A quiet line saying how: one finger turns, two zoom and move. Gone once they have. */
.m-gx { position: absolute; z-index: 2; left: 50%; top: calc(var(--top-h) + var(--safe-t) + 14px); transform: translateX(-50%); margin: 0; display: none; gap: 6px; white-space: nowrap;
  padding: 5px 12px; border-radius: 99px; font-size: 12px; color: rgba(225, 235, 250, 0.78); background: rgba(6, 12, 24, 0.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none;
  opacity: 0; transition: opacity 0.6s var(--ease) 1.2s; }
.m-gx > span { display: inline-flex; gap: 5px; align-items: baseline; }
.m-gx b { font-weight: 800; color: #fff; }
.m-gx b:not(:first-child) { margin-left: 8px; }
.m-gx .gx-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .m-gx .gx-touch { display: none; } .m-gx .gx-mouse { display: inline-flex; } }
body[data-machine="show"] .m-gx, body[data-machine="framed"] .m-gx { display: flex; opacity: 1; }
body[data-machine="framed"] .m-gx { top: 44px; }
body.gx-known .m-gx { opacity: 0; transition-delay: 0s; }

/* The sound switch: speaker and words, off by default. */
.snd { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.snd svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.snd .spk { fill: currentColor; stroke: none; }
.snd .waves { display: none; }
.snd.on { color: #06210e; background: var(--cta); border-color: transparent; }
.snd.on .waves { display: inline; }
.snd.on .mute { display: none; }
body[data-part="flow"] .snd:not(.on) { background: rgba(255, 255, 255, 0.8); border-color: rgba(20, 60, 120, 0.14); color: #3b4960; }

/* Teaser: the date and the name of the film, 網站全面升級 highlighted. */
.sc-teaser .copy h2 .hl { font-style: normal; padding: 0 0.12em; background: linear-gradient(transparent 58%, rgba(184, 255, 92, 0.42) 58%); color: #fff; }
.sc-teaser .copy p:not(.kicker) { max-width: 30em; }
/* Film: bigger sprocket holes, in proportion to real film; reel number on the window frame. */
.film-strip { padding: 34px var(--fg); }
.film-strip::before, .film-strip::after { height: 16px; border-radius: 0; opacity: 0.9;
  background: repeating-linear-gradient(90deg, transparent 0 10px, #f1ead8 10px 30px, transparent 30px 40px); }
.film-strip::before { top: 9px; }
.film-strip::after { bottom: 9px; }
.reel-no { position: absolute; z-index: 2; left: 10px; top: 8px; padding: 2px 8px; border-radius: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: #0d0f14; background: rgba(241, 234, 216, 0.85); pointer-events: none; transition: opacity 0.4s; }
.sc-teaser.playing .reel-no { opacity: 0; }


/* Phones: the sound switch is the speaker alone; the top bar keeps its room. */
@media (max-width: 899px) {
  .snd { min-height: 34px; padding: 0 8px; }
  .snd span { display: none; }
  .m-gx { font-size: 11px; padding: 4px 10px; }
}
/* Inside a fitted picture the chat shows whole; fitScene scales it to the room instead. */
.vis > .fit .phone { max-height: none; }
.m-gx { top: calc(var(--top-h) + var(--safe-t) + 62px); }
@media (max-width: 899px) { .m-gx { top: calc(var(--top-h) + 64px); } }

/* The teaser's date, framed like the 2026 breakthroughs but in the film's cyan and quieter
   (Eddie 2026-10-01): 29 September 2026 is the day every site changed, so it must stand out.
   第 1 集 leaves room for later reels. */
.t-badge { display: inline-grid; justify-items: center; gap: 2px; margin: 0 0 12px; padding: 9px 18px 10px; border-radius: 16px;
  border: 1px solid rgba(95, 230, 255, 0.6); background: rgba(8, 30, 40, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 40px -10px rgba(95, 230, 255, 0.7); text-align: center; opacity: 0; transform: translateY(10px) scale(0.96); }
.t-badge small { font-size: 15px; color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }
.t-badge b { font-size: 20px; font-weight: 900; color: #5fe6ff; letter-spacing: 0.04em; }
.t-badge em { margin-top: 3px; padding: 2px 10px; border-radius: 99px; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; background: rgba(95, 230, 255, 0.16); color: #9ff1ff; }
.sc-teaser.on .t-badge, .sc-teaser.told .t-badge, .sc-teaser.rolled .t-badge { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--pop); }
.sc-teaser .copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sc-teaser .copy h2 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .t-badge { opacity: 1; transform: none; } }

/* ---------- The receipt pack (Eddie 2026-10-01, round 6) ----------
   Production packaging, also used for the real receipt in the quote link: the walkthrough's own
   midnight blue with the brand's cyan-to-lime seals, the Fixes logo in its own colours catching
   the light like the end emblem, and the machine drawn in fine lines like the 3D see-through
   views. The foil light moves only when the pack or the pointer does. Smooth gradients only (no
   repeating stripes), so the shine never breaks into bands. */
.pack { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --tp: 0; --ang: 0deg; --fly: 0; --dir: 1; --lean: 0;
  position: relative; z-index: 2; margin-top: 56px; height: min(88%, 510px); aspect-ratio: 640 / 980; max-width: 70vw; cursor: grab; touch-action: none; outline: none;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateX(calc(var(--lean) * 7px)) rotate(calc(var(--lean) * 2deg));
  filter: drop-shadow(0 28px 34px rgba(10, 40, 100, 0.42)) drop-shadow(0 2px 3px rgba(0, 10, 30, 0.35)); }
.pack:not(.dragging) { transition: transform 0.45s var(--pop); }
.pack.dragging { cursor: grabbing; }
.pack:focus-visible { outline: 3px solid #0a58ff; outline-offset: 6px; border-radius: 6px; }
/* Seals: the brand gradient, crimped, with a serrated outer edge. */
.pack .crimp { position: absolute; left: 0; right: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 1px, rgba(0, 60, 50, 0.08) 1px 2px, transparent 2px 5px); }
.pack-top { position: absolute; left: 0; right: 0; top: 0; height: 14%;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 7px repeat-x, linear-gradient(#000 0 0) 0 6px / 100% 100% no-repeat;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 7px repeat-x, linear-gradient(#000 0 0) 0 6px / 100% 100% no-repeat;
  clip-path: polygon(0 0, calc((1 - var(--tp)) * 100%) 0, calc((1 - var(--tp)) * 100% + 3%) 35%, calc((1 - var(--tp)) * 100% - 1%) 62%, calc((1 - var(--tp)) * 100% + 2%) 100%, 0 100%); }
.pack[data-side="l"] .pack-top { clip-path: polygon(calc(var(--tp) * 100%) 0, 100% 0, 100% 100%, calc(var(--tp) * 100% - 2%) 100%, calc(var(--tp) * 100% + 1%) 62%, calc(var(--tp) * 100% - 3%) 35%); }
/* The body: midnight blue, a soft pillow of light, the perforated tear line along its top. */
.pack-body { position: absolute; left: 0; right: 0; top: 14%; bottom: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 11% 9% 14%;
  background: radial-gradient(130% 70% at 28% 0%, #1c4a86 0%, #10284f 42%, #0a1834 100%);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 7px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 6px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 7px repeat-x, linear-gradient(#000 0 0) 0 0 / 100% calc(100% - 6px) no-repeat; }
.pack-body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 5px, transparent 5px 9px); }
.pack-body > .crimp { bottom: 0; height: 9%; background: linear-gradient(115deg, transparent calc(var(--mx) - 30%), rgba(160, 240, 255, 0.22) var(--mx), transparent calc(var(--mx) + 30%)), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, rgba(255, 255, 255, 0.05) 1px 2.5px, rgba(0, 8, 24, 0.42) 2.5px 4px, transparent 4px 5px), linear-gradient(90deg, #22508e, #183d72 55%, #13325f); }
/* Where seal meets body: a fine brand-colour line, the one touch of cyan to lime. */
.pack-body > .crimp::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: linear-gradient(90deg, #6ff7ff, #b8ff5c); opacity: 0.75; }
/* The logo in its own colours; the light lands on the logo's own shape, as on the end emblem. */
.pack-logo { position: relative; z-index: 1; width: 66%; }
.pack-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); }
.logo-sheen { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../images/fixes-logo-white-hi.webp) center / 100% 100% no-repeat; mask: url(../images/fixes-logo-white-hi.webp) center / 100% 100% no-repeat;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.85), transparent 34%),
    linear-gradient(115deg, transparent 20%, rgba(111, 247, 255, 0.55) 40%, rgba(255, 255, 255, 0.95) 48%, rgba(233, 255, 122, 0.6) 56%, transparent 75%);
  background-size: 100% 100%, 260% 100%; background-position: 0 0, calc(140% - var(--mx) * 1.8) 0; mix-blend-mode: overlay; }
.sc-receipt.told .logo-sheen { animation: pack-glint 1.6s 0.5s var(--ease) both; }
@keyframes pack-glint { from { background-position: 0 0, 130% 0; } }
.pack-name { position: relative; z-index: 1; margin: 7% 0 0; font-size: clamp(24px, 6.4vw, 32px); line-height: 1.15; text-align: center; font-weight: 900; letter-spacing: 0.12em; color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.18); }
.pack-sub { position: relative; z-index: 1; margin: 2px 0 0; font-size: 15px; font-weight: 800; letter-spacing: 0.06em;
  background: linear-gradient(90deg, #6ff7ff, #b8ff5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* The machine in fine lines, like the 3D see-through views. */
.pack-art { position: relative; z-index: 0; flex: 0 1 auto; min-height: 0; width: 70%; height: auto; margin-top: 7%; overflow: visible; fill: none; stroke: rgba(130, 235, 255, 0.5); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(95, 230, 255, 0.35)); }
.pack-art .drum { stroke: rgba(184, 255, 92, 0.65); stroke-dasharray: 2 5; }
.pack-art.art-fridge { width: 46%; margin-top: 5%; }
body[data-kind="fridge"] .art-washer, body:not([data-kind="fridge"]) .art-fridge { display: none; }
.pack-meta { position: relative; z-index: 1; align-self: stretch; margin: auto 0 0; padding-top: 6px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: rgba(200, 225, 255, 0.55); }
/* Foil: one soft iridescent band and a glare, both following the light. */
.pack .foil { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent calc(var(--mx) - 34%), rgba(111, 247, 255, 0.16) calc(var(--mx) - 14%), rgba(184, 255, 92, 0.18) var(--mx), rgba(164, 107, 255, 0.16) calc(var(--mx) + 14%), transparent calc(var(--mx) + 34%)); }
.pack-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.7), transparent 45%); }
/* Tear notches on both edges, at the tear line. */
.pack .notch { position: absolute; z-index: 3; top: calc(14% - 6px); width: 9px; height: 12px; background: var(--notch-bg, #eef4fb); pointer-events: none; }
.pack .notch.r { right: -1px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
/* The torn strip (main.js builds it): eight thin slices, each joined to the last and turned a
   little more, so the strip curls up from the tear front like real foil and its end points at the
   finger (--a per slice). The same seal colours and crimp line up with the part still on the pack
   (--W, --off). A left-hand tear is the same strip mirrored. It never folds down over the pack. */
.pack { --band: linear-gradient(90deg, #22508e, #183d72 55%, #13325f); }
.pack[data-side="l"] { --band: linear-gradient(270deg, #22508e, #183d72 55%, #13325f); }
.flap { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 14%; pointer-events: none; opacity: calc(var(--tp) * 60); }
.pack[data-side="l"] .flap { transform: scaleX(-1); }
.flap .fs { position: absolute; top: 0; left: 100%; width: 100%; height: 100%; transform-origin: 0 100%; transform: rotate(var(--a, 0deg)); }
.flap > .fs { left: calc((1 - var(--tp)) * 100%); width: calc(var(--tp) * 100% / 8);
  transform: rotate(var(--a, 0deg)) translate(calc(var(--fly) * 30%), calc(var(--fly) * -320%)); }
.flap .fs > i { position: absolute; inset: 0; display: block; filter: brightness(var(--b, 1)) saturate(var(--s, 1));
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, rgba(255, 255, 255, 0.05) 1px 2.5px, rgba(0, 8, 24, 0.42) 2.5px 4px, transparent 4px 5px), var(--band);
  background-size: auto, var(--W, 300px) 100%; background-position: 0 0, calc(-1 * var(--off, 0px)) 0;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) calc(-1 * var(--off, 0px)) 0 / 14px 7px repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 6px 3px repeat-x, linear-gradient(#000 0 0) 0 6px / 100% calc(100% - 8px) no-repeat;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) calc(-1 * var(--off, 0px)) 0 / 14px 7px repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 6px 3px repeat-x, linear-gradient(#000 0 0) 0 6px / 100% calc(100% - 8px) no-repeat; }
.flap > .fs { filter: drop-shadow(0 4px 4px rgba(0, 20, 50, 0.3)); }
.pack-top { background: linear-gradient(115deg, transparent calc(var(--mx) - 30%), rgba(160, 240, 255, 0.22) var(--mx), transparent calc(var(--mx) + 30%)), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, rgba(255, 255, 255, 0.05) 1px 2.5px, rgba(0, 8, 24, 0.42) 2.5px 4px, transparent 4px 5px), linear-gradient(90deg, #22508e, #183d72 55%, #13325f); }
.pack-top .crimp { display: none; }
.pack.tearing .flap { transition: opacity 0.3s 0.25s; opacity: 0; }
.pack.tearing .pack-top { opacity: 0; transition: opacity 0.2s; }
@media (prefers-reduced-motion: reduce) { .pack, .pack .flap, .pack-top { transition: none; } .sc-receipt.told .logo-sheen { animation: none; } }
/* The card that comes out: a little bigger (Eddie 2026-10-01). */
.deckbox { width: min(470px, 100%); }
.rcard { height: min(100%, 620px); max-width: 92vw; }
.pack[data-side] .scribble { opacity: 0; }
html:lang(en) .pack-name { font-size: clamp(22px, 5.6vw, 28px); letter-spacing: 0.04em; }
html:lang(en) .scribble { left: 22%; }
/* The demo chat's header, like the real Fixes Baby box: round avatar with the online dot, name,
   and 「AI 維修專家 · 線上」. */
.bb-head { gap: 12px; padding: 11px 16px; }
.bb-av { position: relative; flex: none; width: 40px; height: 40px; }
.bb-head .bb-av img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: cover; }
.bb-dot { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 2px #0f2546; }
.bb-t { display: grid; line-height: 1.2; min-width: 0; }
.bb-t b { font-size: 16px; font-weight: 800; }
.bb-t small { font-size: 12.5px; font-weight: 500; color: rgba(225, 236, 255, 0.75); }
/* The seal's own brand line, just above the perforation. */
.pack-body::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1.5px; background: linear-gradient(90deg, #6ff7ff, #b8ff5c); opacity: 0.75; }
/* The spanner beside the machine: a repair receipt. */
.pack-art .spanner { fill: #10284f; stroke: rgba(184, 255, 92, 0.85); stroke-width: 1.6; }
/* 拉住撕開佢: flat words and a bold brush-stroke arrow that draws itself in (Eddie 2026-10-01:
   no 3D lettering; the arrow livelier, like a pen stroke). */
.scribble span { display: block; white-space: nowrap; font-family: var(--sans); font-weight: 900; font-size: 22px; line-height: 1.2; letter-spacing: 0.02em; transform: rotate(-4deg); text-shadow: none; }
.scribble svg { display: block; width: 92px; height: auto; margin: -2px 0 0 -14px; overflow: visible; }
.scribble .sc-brush, .scribble .sc-head { fill: currentColor; stroke: none; }
.scribble .sc-reveal { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.scribble .sc-head { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; transform: scale(0.4); }
.sc-receipt.told .scribble .sc-reveal { animation: scribble 0.9s 0.4s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
.sc-receipt.told .scribble .sc-head { animation: sc-head 0.35s 1.25s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
@keyframes sc-head { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scribble .sc-reveal { stroke-dashoffset: 0; } .scribble .sc-head { opacity: 1; transform: none; } }
html:lang(en) .scribble span { font-size: 20px; }
/* Out of the pack, the receipt flies up from behind it to full size, readable without a tap
   (Eddie 2026-10-01): it fills the room between the top bar and the buttons, a soft light behind. */
.deckbox.drawn .card-slot { position: fixed; z-index: 15; top: calc(var(--top-h) + var(--safe-t) + 6px); bottom: calc(var(--nav-h) + var(--safe-b) + 6px); left: 0; right: 0; padding: 0 10px; perspective: 1400px; }
.deckbox.drawn .card-slot::before { content: ""; position: absolute; inset: -10% -20%; z-index: -1; pointer-events: none; opacity: 0; animation: card-light 1.2s 0.3s var(--ease) forwards;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(214, 236, 255, 0.85) 45%, rgba(214, 236, 255, 0) 100%); }
@keyframes card-light { to { opacity: 1; } }
.deckbox.drawn .rcard { height: min(100%, 900px); max-width: 94vw; }
