/* The home page (owner, 2026-12-01: mock-up v3 of the navy revamp).
 *
 * Loaded only by templates/public/index.html, after site.css, whose tokens
 * and shared parts (.wrap, .sec, .h1/.h2/.h3, .lead, .btn, .tag, .frame,
 * .mark, .checks) it builds on. The pictures are small pieces of the app in
 * the app's own look (templates/public/_home_parts.html); what moves them is
 * static/js/home.js.
 *
 * The rule from motion.css holds: the served markup is the finished page.
 * A "before" state is written only under `.motion` (the visitor accepts
 * motion) or under a class home.js itself sets (`is-live`, `is-pinned`,
 * `is-watching`, `is-mq`, `auto`, `play`), so a page whose script never ran
 * hides nothing. Loops run only inside `.is-live`: on screen, tab visible.
 */

/* ── hero ── */
.hero { position: relative; padding-top: clamp(48px, 7vw, 104px); overflow: clip; }
.hero-copy { position: relative; z-index: 2; max-width: 820px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy .h1 { margin-top: 22px; }
.hero-copy .h1 em { display: inline-block; }
.hero-copy .lead { max-width: 660px; margin-top: 22px; }
.hero-cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.film { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding-block: 4px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .15s; }
.film:hover { color: var(--text); }
.film b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); }
.film svg { width: 11px; height: 11px; fill: var(--text); transform: translateX(1px); }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .ic { width: 15px; height: 15px; color: var(--green); stroke-width: 2.4; }

/* behind the headline: a quiet dot grid and a blue light that wanders over it */
.hero-back { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; --dot: 24px; }
.hero-back .dots { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.6px); background-size: var(--dot) var(--dot); background-position: 50% 0; -webkit-mask-image: linear-gradient(#000 0, #000 30%, transparent 74%); mask-image: linear-gradient(#000 0, #000 30%, transparent 74%); }
.hero-back .glow { position: absolute; left: 50%; top: -220px; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.hero-back .spot { position: absolute; left: 50%; top: 90px; width: 440px; height: 440px; margin-left: -220px; overflow: hidden; border-radius: 50%; opacity: .5; -webkit-mask-image: radial-gradient(closest-side, #000 8%, transparent); mask-image: radial-gradient(closest-side, #000 8%, transparent); }
.hero-back .spot i { position: absolute; top: -90px; left: 50%; width: 2400px; height: 1500px; margin-left: -1200px; background-image: radial-gradient(circle, var(--blue) 1.3px, transparent 1.9px); background-size: var(--dot) var(--dot); background-position: 50% 0; }
/* The light moves one way and its dots the other, so the dots stay on the grid. */
.motion .hero.is-live .hero-back .spot { animation: hm-spot-a 24s ease-in-out infinite; }
.motion .hero.is-live .hero-back .spot i { animation: hm-spot-b 24s ease-in-out infinite; }
.motion .hero.is-live .hero-back .glow { animation: hm-glow 18s ease-in-out infinite alternate; }
@keyframes hm-spot-a { 0%, 100% { transform: translate(-32vw, 30px); } 25% { transform: translate(28vw, -40px); } 50% { transform: translate(34vw, 300px); } 75% { transform: translate(-26vw, 360px); } }
@keyframes hm-spot-b { 0%, 100% { transform: translate(32vw, -30px); } 25% { transform: translate(-28vw, 40px); } 50% { transform: translate(-34vw, -300px); } 75% { transform: translate(26vw, -360px); } }
@keyframes hm-glow { from { transform: translate(-9vw, 0) scale(1); } to { transform: translate(9vw, 60px) scale(1.12); } }

/* pieces of the app beside the headline, wide screens only */
.frag { position: absolute; top: clamp(110px, 13vw, 170px); width: 330px; z-index: 1; display: none; pointer-events: none; }
@media (min-width: 1260px) { .frag { display: block; } }
.frag-l { left: max(-14px, calc(50% - 772px)); transform: perspective(1100px) rotateY(20deg) rotateX(3deg) rotateZ(-1.5deg); transform-origin: right center; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 46%); mask-image: linear-gradient(to right, transparent 0, #000 46%); }
.frag-r { right: max(-4px, calc(50% - 772px)); transform: perspective(1100px) rotateY(-20deg) rotateX(3deg) rotateZ(1.5deg); transform-origin: left center; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 30%); mask-image: linear-gradient(to left, transparent 0, #000 30%); }
/* laptops (1260-1439 px): smaller side pieces further out and a smaller headline, so the two never meet */
@media (min-width: 1260px) and (max-width: 1439px) {
  .hero-copy .h1 { font-size: clamp(3.4rem, 4.6vw, 4.1rem); max-width: 11.5em; }
  .frag-l { left: -50px; transform: perspective(1100px) rotateY(20deg) rotateX(3deg) rotateZ(-1.5deg) scale(.84); }
  .frag-r { right: -40px; transform: perspective(1100px) rotateY(-20deg) rotateX(3deg) rotateZ(1.5deg) scale(.84); }
}
.mini { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; text-align: left; }
.mini-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mini-head .muted { font-weight: 400; }
.mini-head .tag { margin-left: auto; }
.mini-foot { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* an order row: mark, buyer and item, sum and status */
.ord { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.ord:last-child { border-bottom: 0; }
.ord-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.ord-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-main small, .ord-end small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-variant-numeric: tabular-nums; }
.ord-end b { font-weight: 600; }
.ord .tag { font-size: 11px; padding: 1px 8px 1px 7px; }
.ord.enter { animation: hm-ord-in .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes hm-ord-in { from { opacity: 0; transform: translateY(-14px); background: var(--blue-tint); } 60% { background: var(--blue-tint); } to { opacity: 1; transform: none; background: var(--card); } }

/* the approval card: a mail prepared, a click, approved */
.appr { position: relative; }
.appr-body { padding: 14px; display: grid; gap: 10px; }
.appr-who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.appr-who .ic { width: 15px; height: 15px; color: var(--blue); }
.appr-via { font-weight: 400; color: var(--muted); }
.appr-what { font-weight: 600; font-size: 14px; }
.appr-mail { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--soft); display: grid; gap: 7px; min-height: 86px; align-content: start; }
.appr-mail small { color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.appr-mail small .ic { width: 13px; height: 13px; }
.appr-mail p { font-size: 12.5px; line-height: 1.5; }
.bars { display: grid; gap: 6px; }
.bars i { height: 8px; border-radius: 4px; background: var(--line-2); }
.bars i:nth-child(2) { width: 82%; }
.bars i:nth-child(3) { width: 58%; }
.is-live .bars i { animation: hm-pulse 1.2s ease-in-out infinite; }
@keyframes hm-pulse { 50% { opacity: .45; } }
.appr-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.appr-foot small { color: var(--muted); font-size: 12px; }
.appr [data-on], .job [data-on] { display: none; }
.appr[data-state="preparing"] [data-on~="preparing"],
.appr[data-state="ready"] [data-on~="ready"],
.appr[data-state="press"] [data-on~="ready"],
.appr[data-state="done"] [data-on~="done"] { display: revert; }
.appr[data-state="ready"] .btn[data-on], .appr[data-state="press"] .btn[data-on], .appr[data-state="done"] .tag[data-on],
.job[data-state="ready"] .btn[data-on], .job[data-state="press"] .btn[data-on], .job[data-state="done"] .tag[data-on] { display: inline-flex; }
.appr[data-state="preparing"] .appr-mail p, .appr:not([data-state="preparing"]) .bars { display: none; }
.appr[data-state="press"] .btn, .job[data-state="press"] .btn { transform: scale(.94); background: var(--ink-2); }
.pointer { position: absolute; right: 26px; bottom: -26px; width: 22px; height: 22px; opacity: 0; transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .3s; pointer-events: none; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.appr[data-state="ready"] .pointer { opacity: 1; transform: translate(0, -25px); }
.appr[data-state="press"] .pointer { opacity: 1; transform: translate(0, -25px) scale(.86); }
.appr[data-state="done"] .pointer { opacity: 0; transform: translate(10px, -10px); }
.tag.ok { background: var(--green-tint); }

/* the big screen under the headline */
.stage { position: relative; margin-top: clamp(44px, 6vw, 80px); }
.stage-in { position: relative; perspective: 1800px; }
.stage::before { content: ""; position: absolute; inset: -12% -6% 30%; background: radial-gradient(ellipse 60% 60% at 50% 40%, var(--glow), transparent 70%); pointer-events: none; }
.screen { position: relative; transform-origin: 50% 0; box-shadow: var(--shadow); }
/* home.js writes --t (0 = just entering, 1 = in place); without it the screen stands straight */
.motion .screen { will-change: transform; transform: rotateX(calc((1 - var(--t, 1)) * 16deg)) scale(calc(.92 + var(--t, 1) * .08)); }
.shot { position: relative; display: block; aspect-ratio: 1440 / 900; overflow: hidden; background: var(--soft); }
.shot img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) {
  /* a phone shows a part of the screen enlarged, and the part slowly travels across it */
  .shot { aspect-ratio: 10 / 9; }
  .shot img { position: absolute; left: var(--fx, 0%); top: var(--fy, 0%); width: 250%; max-width: none; }
  .motion .is-live .shot img { animation: hm-pan 18s ease-in-out infinite alternate; }
}
@keyframes hm-pan { from { transform: none; } to { transform: translate(var(--px, 0), var(--py, 0)); } }

/* phones and tablets: an order and the waiting mail sit on the screen itself */
.live { display: none; }
@media (max-width: 1259px) {
  .live { display: block; }
  .toaster { position: absolute; left: 12px; top: -20px; width: min(310px, 82%); height: 60px; z-index: 3; }
  .toast { position: absolute; inset: 0 0 auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(-12px) scale(.96); transition: opacity .4s, transform .55s cubic-bezier(.2, .8, .2, 1); }
  .toast.on { opacity: 1; transform: none; }
  .toast.out { opacity: 0; transform: translateY(10px) scale(.96); }
  .live .appr { position: absolute; right: 12px; bottom: -46px; width: min(330px, calc(100% - 24px)); z-index: 3; }
  .stage .sample { margin-top: 64px; }
}
.sample { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--faint); }
.hero-fade { height: clamp(40px, 6vw, 88px); }

/* the words and the side pieces arrive once */
.motion .hero-copy > * { animation: hm-hero-in .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 70ms); }
.motion .hero-copy > dialog { animation: none; }
.motion .frag { animation: hm-frag-in 1.1s cubic-bezier(.2, .8, .2, 1) .35s both; }
@keyframes hm-hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hm-frag-in { from { opacity: 0; } to { opacity: 1; } }

/* ── marketplaces and couriers ── */
.logos { border-block: 1px solid var(--line); padding-block: 30px; }
.logos h2 { text-align: center; font-family: var(--body); font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--muted); }
.logos ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px clamp(22px, 3.4vw, 46px); margin: 18px auto 0; max-width: 960px; }
.logos li a, .mq-track a { display: flex; align-items: center; gap: 7px; height: 38px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--muted); }
.logos img { height: var(--h, 22px); width: auto; filter: var(--logo-filter); transition: filter .25s; }
.logos a:hover img { filter: none; }
html[data-theme='dark'] .logos a:hover img { filter: grayscale(1) invert(1) brightness(1.8); }
.logos a:hover { color: var(--text); }
/* phones: the logos travel in two rows instead of wrapping (home.js builds .mq) */
.mq { display: none; }
@media (max-width: 700px) {
  .logos.is-mq ul { display: none; }
  .logos.is-mq .mq { display: block; overflow: hidden; margin: 18px calc(-1 * var(--gutter, 20px)) 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
  .logos.is-mq .mq + .mq { margin-top: 8px; }
  .mq-track { display: flex; align-items: center; width: max-content; }
  .mq-track a { margin-right: 40px; }
  .is-live .mq-track { animation: hm-mq 34s linear infinite; }
  .is-live .mq.rev .mq-track { animation-direction: reverse; animation-duration: 28s; }
}
@keyframes hm-mq { to { transform: translateX(-50%); } }

/* ── the system up close: tabs (tour.js) ── */
.tour { scroll-margin-top: 60px; }
.tabs { display: flex; gap: 4px; justify-content: center; margin-top: 34px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: max-content; margin-inline: auto; }
.tabs[hidden] { display: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .tabs { max-width: none; justify-content: flex-start; margin-inline: calc(-1 * var(--gutter, 20px)); padding-inline: var(--gutter, 20px); } }
.tab { position: relative; flex: none; padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s; }
.tab:hover, .tab[aria-selected="true"] { color: var(--text); }
.tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
/* while the tabs move on by themselves, the line under the open one fills like a timer */
.tour.auto .tab[aria-selected="true"]::after { animation: hm-tab-fill var(--dur, 7s) linear both; }
@keyframes hm-tab-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour-panels { display: grid; gap: 56px; margin-top: 44px; }
.tour-panel { min-width: 0; margin: 0; }
.tour-panel[hidden] { display: none; }
.tour-cap { max-width: 640px; margin-inline: auto; text-align: center; }
.tour-cap p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.tour-view { margin-top: 26px; position: relative; }
.tour.is-tabs .tour-panels { gap: 0; margin-top: 30px; }
.tour.is-tabs .tour-cap { min-height: 104px; }
.motion .tour.is-tabs .tour-panel:not([hidden]) { animation: hm-panel-in .5s cubic-bezier(.2, .8, .2, 1); }
/* the tour on a phone (_app_tour.html, tour.js): the whole window with numbered
   spots and a numbered list under it; with the script the window glides onto one
   spot at a time (`zm-on` on the tour, `is-zoomed` on the view). Desktop never
   shows the spots. */
.zm-view { position: relative; }
.zm-phone { display: none; }
@media (max-width: 640px) {
  .tour .shot { aspect-ratio: 1440 / 900; }
  .tour .shot img, .motion .tour .shot img { position: static; width: 100%; animation:none; }
  .zm-phone { display: block; }
  .zm-nav.zm-phone[hidden] { display: none; }
  .zm-dots { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s; }
  .zm-dots button { pointer-events: inherit; padding: 0; border: 0; cursor: pointer; }
  .zm-dot { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 11px/20px var(--sans, inherit); text-align: center; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 25%, transparent); }
  .zm-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
  .zm-list button { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 4px; text-align: left; font-size: 14px; line-height: 1.45; color: var(--muted); border-radius: 10px; }
  .zm-list b { color: var(--text); font-weight: 600; }
  .zm-list i { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--blue-tint, var(--soft)); color: var(--blue); font: 600 11px/20px var(--sans, inherit); font-style: normal; text-align: center; }
  .zm-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
  .zm-nav button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--text); }
  .zm-nav .zm-next { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
  /* with the script: a square window to glide in, the list shows the spot in view */
  .zm-on .zm-view { aspect-ratio: 1 / 1; overflow: hidden; background: var(--soft); }
  .zm-on .zm-view .shot { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; transition: transform 1s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
  .zm-on .zm-view.is-zoomed .zm-dots { opacity: 0; }
  .zm-on .zm-dots { inset: auto 0; top: var(--zm-top, 0); height: var(--zm-h, 100%); }
  .zm-on .zm-dots { pointer-events: auto; }
  .zm-on .zm-view.is-zoomed .zm-dots { pointer-events: none; }
  /* one row at a time, the same height, so nothing below moves */
  .zm-on .zm-list { min-height: 72px; align-content: start; }
  .zm-on .zm-list.is-zoomed li:not(.now), .zm-on .zm-list:not(.is-zoomed) li:not(.zm-hint), .zm-on .zm-list.is-zoomed .zm-hint { display: none; }
  .zm-hint { padding: 10px 4px; font-size: 14px; color: var(--muted); }
  .zm-on .zm-list li.now button { background: var(--soft); }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .zm-on .zm-view .shot { transition: none; } }
@keyframes hm-panel-in { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: none; } }

/* ── sounds familiar: stock, before and after ── */
.sync { max-width: 940px; margin: 44px auto 0; background: var(--panel); }
.sync-top { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sync-top b { font-weight: 600; }
.sync-thumb { background: #e0f2fe; border-color: transparent; }
.sync-top .notes { margin-left: auto; display: grid; justify-items: end; }
.sync-top .notes .tag { grid-area: 1 / 1; transition: opacity .35s, transform .35s; }
.note-before { background: var(--orange-tint); }
.note-after { background: var(--green-tint); }
.sync:not(.done) .note-after, .sync.done .note-before { opacity: 0; transform: translateY(4px); }
.sync-rail { position: relative; touch-action: pan-y; user-select: none; --x: calc(20px + (100% - 40px) * var(--p, 1)); }
.sync-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sync-row.after { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); background: var(--card); }
.sync.done .sync-row.after { clip-path: inset(0); }
@media (max-width: 640px) { .sync-handle { transition: opacity .3s; } .sync.done .sync-handle { opacity: 0; } }
.cell { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 6px 22px; border-right: 1px solid var(--line); min-width: 0; }
.cell:last-child { border-right: 0; }
.cell small { font-size: 12.5px; color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cell .num { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; gap: 5px; color: var(--text); }
.cell .num .dot { width: 8px; height: 8px; margin-top: 8px; }
.before .cell.zero .num { color: var(--red); }
.sheet { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--soft); color: var(--muted); }
.sheet .ic { width: 16px; height: 16px; }
.mark.p { background: var(--blue-tint); border-color: var(--blue-pale); }
.mark.p svg { height: 17px; width: auto; }
.sync-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--ink); pointer-events: none; }
.sync-handle b { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .4); }
.sync-handle .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.sync-rail input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.sync-hint { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); text-align: center; }
@media (max-width: 560px) {
  .cell small { font-size: 10.5px; }
  .cell { padding: 20px 2px 16px; }
  .sync .mark, .sync .sheet { width: 38px; height: 26px; }
  .sync-top .tag { font-size: 11px; }
  .sync-top > b { display: none; }
}
.probs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.prob { padding: 26px 24px 6px 0; display: flex; flex-direction: column; gap: 10px; }
.prob + .prob { padding-left: 24px; border-left: 1px solid var(--line); }
.prob p { font-size: 14.5px; color: var(--muted); flex: 1; }
.prob .ans { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; color: var(--text); flex: none; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.prob .ans .ic { width: 15px; height: 15px; margin-top: 3px; color: var(--green); stroke-width: 2.4; }
@media (max-width: 980px) {
  .probs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prob:nth-child(odd) { padding-left: 0; border-left: 0; }
  .prob:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .probs { grid-template-columns: minmax(0, 1fr); }
  .prob, .prob + .prob { padding: 22px 0 6px; border-left: 0; }
  .prob + .prob { border-top: 1px solid var(--line); }
}

/* ── what you get: the picture stays, the story scrolls ── */
.pillars { padding-bottom: clamp(40px, 6vw, 80px); }
.story { display: grid; gap: 28px; margin-top: 48px; }
/* one column: each picture comes before its words */
.scene { min-width: 0; order: calc(var(--i) * 2); }
.step-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding-bottom: 36px; min-width: 0; order: calc(var(--i) * 2 + 1); scroll-margin-top: 90px; }
.step-copy .h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
.step-copy .lead { font-size: 1.05rem; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.kicker b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--panel); }
.kicker .ic { width: 16px; height: 16px; }
.scene-frame { box-shadow: var(--shadow); }
@media (min-width: 1000px) {
  /* two columns: a picture beside its words, pair under pair */
  .story { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: 72px; row-gap: 88px; align-items: center; }
  .scene { grid-column: 1; grid-row: calc(var(--i) + 1); order: 0; }
  .step-copy { grid-column: 2; grid-row: calc(var(--i) + 1); order: 0; padding-bottom: 0; }
  /* with home.js: the three pictures share one place that stays on screen,
     and the one whose words are being read is shown */
  .story.is-pinned { row-gap: 0; align-items: stretch; }
  .story.is-pinned .scene { grid-row: 1 / span 3; position: sticky; top: calc(50vh - 240px); align-self: start; transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1); }
  .story.is-pinned .step-copy { min-height: 74vh; justify-content: center; transition: opacity .3s; }
  .story.is-pinned .scene:not(.on) { opacity: 0; transform: translateY(14px) scale(.985); pointer-events: none; }
  .story.is-pinned .step-copy:not(.on) { opacity: .38; }
}
@media (max-width: 999px) {
  /* phones: each picture comes in, and starts playing, when you reach it */
  .motion .story.is-watching .scene { opacity: 0; transform: translateY(22px) scale(.97); transition: opacity .7s, transform .8s cubic-bezier(.2, .8, .2, 1); }
  .motion .story.is-watching .scene.seen { opacity: 1; transform: none; }
}
.sc { font-size: 13.5px; line-height: 1.45; }
.sc-pad { padding: 16px; display: grid; gap: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; }
.stats div { padding: 12px 14px; border-right: 1px solid var(--line); min-width: 0; }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.03em; }
.stats small { font-size: 12px; color: var(--muted); }
.list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ship { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ship > div { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: flex; gap: 10px; align-items: center; min-width: 0; background: var(--soft); }
.ship span { min-width: 0; display: flex; flex-direction: column; }
.ship b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship .ic { color: var(--muted); }
@media (max-width: 520px) { .ship { grid-template-columns: minmax(0, 1fr); } }
.bigrow { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.bigrow b { font-family: var(--display); font-weight: 600; font-size: 3.4rem; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bigrow span { display: flex; flex-direction: column; font-weight: 600; }
.bigrow small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.job { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
.job-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel); flex: none; }
.job-ic .ic { width: 16px; height: 16px; }
.job-ic.dark { background: var(--ink); color: var(--on-ink); }
.job-ic.blue { background: var(--blue-pale); color: var(--blue); }
.job-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.job-main small { font-size: 11.5px; color: var(--muted); }
.job-main b { font-weight: 600; }
.job .pointer { right: 30px; bottom: -22px; }
.job[data-state="ready"] .pointer { opacity: 1; transform: translate(2px, -19px); }
.job[data-state="press"] .pointer { opacity: 1; transform: translate(2px, -19px) scale(.86); }
.job[data-state="done"] { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
@media (max-width: 520px) { .job { flex-wrap: wrap; row-gap: 8px; } .job-main { flex-basis: calc(100% - 46px); } .job > .tag, .job > .btn { margin-left: 46px; } .job .pointer { right: auto; left: 110px; } }
.cap { text-align: center; font-size: 12.5px; color: var(--muted); }
.rule-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.switch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.switch i { width: 30px; height: 18px; border-radius: 999px; background: var(--ink); position: relative; }
.switch i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--on-ink); }
.flow { display: grid; }
.node { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); position: relative; }
.node + .node { margin-top: 22px; }
.node + .node::before { content: ""; position: absolute; left: 28px; top: -23px; height: 22px; width: 2px; background: var(--line-2); }
.node.start { background: var(--blue-tint); border-color: var(--blue-pale); }
.node small { font-size: 11.5px; color: var(--muted); }
.node .tag { margin-left: auto; }
.motion .rule.play .node.act { animation: hm-node-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .7s + .3s); }
.motion .rule.play .node.act .tag { animation: hm-node-in .4s both; animation-delay: calc(var(--i) * .7s + .75s); }
@keyframes hm-node-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── where it comes from + how to start ── */
.origin-sec { padding-top: clamp(40px, 6vw, 80px); }
.origin { display: grid; gap: 22px; align-items: center; }
@media (min-width: 960px) { .origin { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.origin-card { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; height: 100%; min-width: 0; }
.origin .frame { display: flex; min-width: 0; }
.origin .frame-in { flex: 1; }
.origin-card .h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.origin-card .lead { font-size: 1.02rem; }
.steps { display: grid; margin-top: 6px; width: 100%; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; position: relative; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line-2); }
.steps .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-family: var(--display); font-weight: 600; font-size: 15px; }
.steps p { margin-top: 4px; font-size: 15px; color: var(--muted); }

.more { text-align: center; margin-top: 30px; }

/* the narrowest phones (320-380 px): the blue words stay on one line, cards lose a little air */
@media (max-width: 380px) {
  .hero-copy .h1 { font-size: 2rem; }
  .hero-copy > .tag { font-size: 12px; }
  .toaster { width: calc(100% - 24px); }
  .appr-who { flex-wrap: wrap; row-gap: 0; }
  .sc-pad { padding: 12px; }
  .list .ord { padding-inline: 10px; gap: 8px; }
  .list .ord .mark:not(.sq) { width: 36px; padding: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .story.is-pinned .scene, .story.is-pinned .step-copy, .toast, .pointer, .sync-top .notes .tag { transition: none; }
}
/* The free move help line beside the film link (owner, 2026-12-02) */
.move-link { margin-left: 22px; }
.move-link b .ic { width: 13px; height: 13px; }
@media (max-width: 520px) { .move-link { margin-left: 0; } }
