/* Amnalith hero.css · seat H · ALIVE.md §5: the Home scene and the page-hero emblems.
   Files: src/figures/hero-home.html, hero-emblem.html (icon=...), hero-layers.html, hero-hub.html.
   Every class here starts with "hero-" or "hs-". Colours are the tokens of site.css :root only (shadows and glows
   are rgba or color-mix of those tokens). HTML, CSS and inline SVG; no images, no script of its own.
   Contract (ALIVE.md §2): every start state and loop is written under .motion; without it each piece is complete
   and still. Arrival keys on .is-in (added once); loops run only under .is-live (they are paused otherwise, so a
   piece that leaves the screen and comes back resumes where it stopped instead of jumping). The Home scene tilts
   with --mx and --my (data-tilt). Only transform, opacity, stroke-dashoffset and clip-path are animated.
   Order: shared · 1 Home scene (layout, screens, still state, arrival, loops, generated order loop, phone) ·
   2 emblem · 3 layers · 4 hub. */

/* ===== Shared ========================================================================== */
.hero-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
:where(.hero-home, .hero-emblem, .hero-layers, .hero-hub),
:where(.hero-home, .hero-emblem, .hero-layers, .hero-hub) *,
:where(.hero-home, .hero-emblem, .hero-layers, .hero-hub) *::before,
:where(.hero-home, .hero-emblem, .hero-layers, .hero-hub) *::after { box-sizing: border-box; }
/* a soft ice light behind every emblem */
.hero-glow { position: absolute; left: 4%; top: 4%; width: 92%; aspect-ratio: 1; pointer-events: none; /* square; the gradient draws the round light */
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ice-500) 11%, transparent), color-mix(in srgb, var(--ice-500) 3%, transparent) 60%, transparent); }
/* an icon from the sprite (src/partials/icons.html), always with class="ico": icons.css sizes it from --ico (px, unitless),
   keeps its line at 1.5px and draws it in when the piece gets is-in (--t-draw after --ico-delay). We only set
   --ico, the draw timing and the position; never stroke or dash values (work/ICONS.md). */
.hero-icon { display: block; }
@keyframes hs-draw { from { stroke-dashoffset: 1.01; } to { stroke-dashoffset: 0; } }
@keyframes hs-fade { from { opacity: 0; } to { opacity: 1; } }

/* ===== 1. Home scene ===================================================================
   A 580 by 520 composition in units of --u: 1px when the slot is 600px or wider, smaller in a narrower slot,
   always leaving 20px of the slot's right edge free (the slot itself may run 40px past the wrap), so the
   composition never reaches the edge of the window. The scene box is the composition's width, so the tag sits
   under the screens. The report runs about 8px past it, shadows by more. Three screens at depth (translateZ),
   each carrying the same tilt. */
.hero-home { position: relative; width: 100%; max-width: 640px; container-type: inline-size; }
.hero-home__scene {
  --u: min(1px, (100cqw - 20px) / 580);
  --hs-row: calc(36 * var(--u));
  --hs-sh: 0 1px 2px rgba(31, 8, 18, .32), 0 10px 22px rgba(31, 8, 18, .24), 0 30px 80px rgba(31, 8, 18, .5);
  position: relative; width: calc(580 * var(--u)); height: calc(520 * var(--u));
  isolation: isolate;
  font-family: var(--font, "Geist", system-ui, sans-serif); font-variant-numeric: tabular-nums; font-weight: 400;
  letter-spacing: 0; text-align: left; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.hero-home__scene :where(p, ul, ol, li, b, i) { margin: 0; padding: 0; list-style: none; font-style: normal; }

/* the soft ice light under the screens */
.hero-home__glow { position: absolute; left: 4%; right: 0; top: 16%; bottom: -8%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ice-500) 20%, transparent), color-mix(in srgb, var(--ice-500) 7%, transparent) 52%, transparent); }

/* The tilt: 12 degrees on Y, 4 on X, the pointer adding up to 3 more each way. There is no preserve-3d
   group (3D sorting contexts drop layers in some Chrome builds): each screen carries the same projection
   itself, perspective() about one shared point of the scene (--ox, --oy), plus its own depth (--z). Paint
   order (report, order, message) is the depth order, so nothing needs sorting. */
.hero-home__group { position: absolute; inset: 0; --ox: 174; --oy: 260; --ry: 12deg; --rx: 4deg; }
.hs-float { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  transform-origin: calc((var(--ox) - var(--x)) * var(--u)) calc((var(--oy) - var(--y)) * var(--u));
  transform: perspective(calc(1700 * var(--u))) rotateY(var(--ry)) rotateX(var(--rx)) translateZ(calc(var(--z, 0) * var(--u))); }
.hs-float--report { --x: 128; --y: 4; --z: 0; width: calc(460 * var(--u)); }
.hs-float--order { --x: 0; --y: 196; --z: 60; width: calc(296 * var(--u)); }
.hs-float--msg { --x: 252; --y: 426; --z: 120; width: calc(280 * var(--u)); }

/* the one tag for the whole scene, flat and crisp at the lower right */
.hero-home__tag { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center;
  font-family: var(--mono, "Geist Mono", ui-monospace, monospace); font-size: 12px; font-weight: 500; line-height: 1.2;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; padding: 4px 8px; border-radius: 4px;
  border: 1px solid var(--ox-700); color: var(--on-dark-muted); background: color-mix(in srgb, var(--ox-950) 55%, transparent); }

/* --- the screens: white, hairlines, radius 8, a deep wine-black shadow ------------------------ */
.hs-card { position: relative; background: var(--white); color: var(--ink-700); border-radius: calc(8 * var(--u));
  box-shadow: var(--hs-sh); font-size: calc(14 * var(--u)); line-height: 1.4; }
.hs-head { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--u));
  padding-bottom: calc(14 * var(--u)); border-bottom: 1px solid var(--line); }
.hs-title { display: flex; align-items: center; gap: calc(8 * var(--u)); min-width: 0; font-size: calc(14 * var(--u));
  font-weight: 600; line-height: 1.3; color: var(--ink-900); white-space: nowrap; }
.hs-sep { flex: none; width: 1px; height: calc(14 * var(--u)); background: var(--line-strong); }
.hs-mono { font-family: var(--mono, "Geist Mono", ui-monospace, monospace); font-size: calc(13 * var(--u)); font-weight: 500;
  letter-spacing: 0; color: var(--ink-900); }
.hs-tag { flex: none; font-family: var(--mono, "Geist Mono", ui-monospace, monospace); font-size: calc(12 * var(--u));
  font-weight: 500; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  padding: calc(4 * var(--u)) calc(7 * var(--u)); border: 1px solid var(--line-strong); border-radius: calc(4 * var(--u)); color: var(--ink-600); }

/* report: six bars on a quiet grid, month labels, three ruled rows */
.hs-report { padding: calc(18 * var(--u)) calc(22 * var(--u)) calc(12 * var(--u)); }
.hs-chart { margin-top: calc(20 * var(--u)); }
.hs-plot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; height: calc(112 * var(--u));
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% calc(28 * var(--u)); }
.hs-bar { justify-self: center; width: calc(26 * var(--u)); height: var(--h, 50%); transform-origin: 50% 100%; }
.hs-bar i { display: block; height: 100%; background: var(--ice-700); border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0;
  transform-origin: 50% 100%; }
.hs-bar:nth-child(1) { --h: 44%; --i: 0; }
.hs-bar:nth-child(2) { --h: 58%; --i: 1; }
.hs-bar:nth-child(3) { --h: 51%; --i: 2; }
.hs-bar:nth-child(4) { --h: 69%; --i: 3; }
.hs-bar:nth-child(5) { --h: 63%; --i: 4; }
.hs-bar:nth-child(6) { --h: 86%; --i: 5; }
.hs-bar:nth-child(6) i { background: var(--ice-500); }
.hs-axis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: calc(8 * var(--u)); text-align: center;
  font-family: var(--mono, "Geist Mono", ui-monospace, monospace); font-size: calc(12 * var(--u)); line-height: 1.2; color: var(--ink-600); }
.hs-rows { margin-top: calc(14 * var(--u)); }
.hs-rows li { display: flex; justify-content: space-between; align-items: center; gap: calc(12 * var(--u));
  padding: calc(9 * var(--u)) 0; border-top: 1px solid var(--line); font-size: calc(13 * var(--u)); line-height: 1.4; color: var(--ink-900); }
.hs-rows li:first-child { border-top-color: var(--line-strong); }
.hs-done { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); font-weight: 600; color: var(--ok-600); }
.hs-ok { flex: none; width: calc(8 * var(--u)); height: calc(8 * var(--u)); background: var(--ok-600); }

/* order: five dated steps; a soft row marks the step in progress */
.hs-order { padding: calc(18 * var(--u)) calc(16 * var(--u)) calc(10 * var(--u)); }
.hs-order .hs-head { padding-inline: calc(4 * var(--u)); }
.hs-track { position: relative; margin-top: calc(6 * var(--u)); }
.hs-cursor { position: absolute; left: 0; right: 0; top: 0; height: var(--hs-row);
  background: color-mix(in srgb, var(--blush) 70%, var(--white)); border-left: 2px solid var(--ice-500);
  transform: translateY(calc(3 * var(--hs-row))); }
.hs-steps { position: relative; }
.hs-step { position: relative; display: grid; grid-template-columns: calc(10 * var(--u)) minmax(0, 1fr) auto;
  column-gap: calc(12 * var(--u)); align-items: center; height: var(--hs-row); padding: 0 calc(12 * var(--u)); }
.hs-mark { position: relative; z-index: 2; width: calc(10 * var(--u)); height: calc(10 * var(--u)); background: var(--white);
  border: 1.5px solid var(--line-strong); }
.hs-mark i { position: absolute; inset: -1.5px; }
.hs-mark__ring { border: 1.5px solid var(--ink-900); opacity: 0; }
.hs-mark__fill { background: var(--ok-600); opacity: 0; }
/* the connector to the next step: a hairline (::before) and its green fill (::after) */
.hs-step:not(:last-child)::before, .hs-step:not(:last-child)::after { content: ""; position: absolute; z-index: 1;
  left: calc(17 * var(--u) - .5px); top: calc(50% + 5 * var(--u)); width: 1px; height: calc(var(--hs-row) - 10 * var(--u)); }
.hs-step:not(:last-child)::before { background: var(--line-strong); }
.hs-step:not(:last-child)::after { background: var(--ok-600); transform-origin: 50% 0; transform: scaleY(0); }
.hs-step__name { min-width: 0; font-size: calc(13.5 * var(--u)); line-height: 1.3; color: var(--ink-900); white-space: nowrap; }
.hs-step__date { font-family: var(--mono, "Geist Mono", ui-monospace, monospace); font-size: calc(12 * var(--u)); font-weight: 450;
  line-height: 1.3; color: var(--ink-600); white-space: nowrap; }
/* the still state: three steps done, the fourth in progress (as the order screen of version 6). Every date is
   shown (a done step's date, or the date a step is due); no text in the scene is ever faded or hidden */
.hs-step--done .hs-mark__fill { opacity: 1; }
.hs-step--done::after { transform: none; }
.hs-step--now .hs-mark__ring { opacity: 1; }
.hs-step--now .hs-step__name { font-weight: 600; }
.hs-step--next .hs-step__name { color: var(--ink-600); }

/* message: an envelope, the subject, the date */
.hs-msg { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(18 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)); }
.hs-msg::after { content: ""; position: absolute; top: calc(14 * var(--u)); right: calc(14 * var(--u)); width: calc(6 * var(--u)); height: calc(6 * var(--u)); background: var(--ice-500); }
.hs-msg__icon { flex: none; display: grid; place-items: center; width: calc(38 * var(--u)); height: calc(38 * var(--u));
  border-radius: calc(4 * var(--u)); background: var(--blush); color: var(--ink-900); }
.hs-msg__ico { --ico: 20; --ico-delay: 0ms; }
.hs-msg__text { display: flex; flex-direction: column; gap: calc(3 * var(--u)); min-width: 0; }
.hs-msg__text b { font-size: calc(13.5 * var(--u)); font-weight: 600; line-height: 1.3; color: var(--ink-900); white-space: nowrap; }
.hs-msg__text .hs-mono { font-size: calc(12 * var(--u)); font-weight: 450; line-height: 1.3; color: var(--ink-600); }

/* --- motion: tilt, arrival, float, bars ------------------------------------------------------ */
.motion .hero-home__group { --ry: calc(12deg + var(--mx, 0) * 3deg); --rx: calc(4deg - var(--my, 0) * 3deg); }
.motion .hs-float { transition: transform 900ms var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
.motion .hero-home:not(.is-in) :is(.hs-report, .hs-order, .hs-msg, .hero-home__glow, .hero-home__tag) { opacity: 0; }
.motion .hero-home:not(.is-in) .hs-bar { transform: scaleY(0); }
.motion .hero-home.is-in .hero-home__glow { animation: hs-fade 1400ms var(--ease, cubic-bezier(.2, .7, .2, 1)) both; }
.motion .hero-home.is-in .hs-report { animation: hs-rise var(--t-reveal, 800ms) var(--ease-out, cubic-bezier(.16, 1, .3, 1)) 80ms both; }
.motion .hero-home.is-in .hs-order { animation: hs-rise var(--t-reveal, 800ms) var(--ease-out, cubic-bezier(.16, 1, .3, 1)) 240ms both; }
/* the message rises after the order card; while live it lifts once a cycle as the payment completes (the loop below) */
.motion .hero-home.is-in .hs-msg { animation: hs-rise var(--t-reveal, 800ms) var(--ease-out, cubic-bezier(.16, 1, .3, 1)) 400ms both,
  hs-o-lift 10s linear var(--hs-loop-delay, 1s) infinite both; animation-play-state: running, paused; }
.motion .hero-home.is-in.is-live .hs-msg { animation-play-state: running, running; }
.motion .hero-home.is-in .hero-home__tag { animation: hs-fade 600ms var(--ease, cubic-bezier(.2, .7, .2, 1)) 700ms both; }
.motion .hero-home.is-in .hs-bar { animation: hs-grow 700ms var(--ease-out, cubic-bezier(.16, 1, .3, 1)) calc(520ms + var(--i) * 80ms) both; }
/* while live: the screens float out of phase, the bars breathe */
.motion .hero-home.is-in .hs-float { animation: hs-float 8s ease-in-out infinite paused; }
.motion .hero-home.is-in .hs-float--report { animation-duration: 9s; animation-delay: -1.5s; }
.motion .hero-home.is-in .hs-float--order { animation-duration: 7.4s; animation-delay: -4.2s; }
.motion .hero-home.is-in .hs-float--msg { animation-duration: 8.3s; animation-delay: -6.1s; }
.motion .hero-home.is-in .hs-bar i { animation: hs-breathe 8s ease-in-out calc(var(--i) * -1.37s) infinite paused; }
.motion .hero-home.is-in.is-live :is(.hs-float, .hs-bar i) { animation-play-state: running; }
@keyframes hs-rise { from { opacity: 0; transform: translateY(calc(32 * var(--u))); } to { opacity: 1; transform: none; } }
@keyframes hs-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes hs-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes hs-breathe { 0%, 100% { transform: none; } 50% { transform: scaleY(.94); } }

/* --- the order loop: a 10 second cycle. The steps complete 1.2 s apart (at 1.0, 2.2, 3.4, 4.6 and
   5.8 s), the soft row follows the step in progress, the message lifts and its ice dot pops in as the second
   step completes, everything holds 3 s, the marks fade back softly (8.8 to 9.5 s) and it starts again. The loop
   starts 1 s after arrival. Only marks, lines, the row and the dot move: no text ever fades. ---------- */
.motion .hero-home.is-in :is(.hs-mark__ring, .hs-mark__fill, .hs-cursor),
.motion .hero-home.is-in .hs-step:not(:last-child)::after, .motion .hero-home.is-in .hs-msg::after {
  animation-duration: 10s; animation-timing-function: linear; animation-delay: var(--hs-loop-delay, 1s);
  animation-iteration-count: infinite; animation-fill-mode: both; animation-play-state: paused; }
.motion .hero-home.is-in.is-live :is(.hs-mark__ring, .hs-mark__fill, .hs-cursor),
.motion .hero-home.is-in.is-live .hs-step:not(:last-child)::after, .motion .hero-home.is-in.is-live .hs-msg::after { animation-play-state: running; }
.motion .hero-home .hs-step__name { font-weight: 400; color: var(--ink-900); }
/* @generated order-loop: written by work/hero/gen-loop.mjs, do not edit by hand */
.motion .hero-home.is-in .hs-step:nth-child(1) .hs-mark__ring { animation-name: hs-o-now-1; }
.motion .hero-home.is-in .hs-step:nth-child(1) .hs-mark__fill { animation-name: hs-o-done-1; }
.motion .hero-home.is-in .hs-step:nth-child(1)::after { animation-name: hs-o-line-1; }
.motion .hero-home.is-in .hs-step:nth-child(2) .hs-mark__ring { animation-name: hs-o-now-2; }
.motion .hero-home.is-in .hs-step:nth-child(2) .hs-mark__fill { animation-name: hs-o-done-2; }
.motion .hero-home.is-in .hs-step:nth-child(2)::after { animation-name: hs-o-line-2; }
.motion .hero-home.is-in .hs-step:nth-child(3) .hs-mark__ring { animation-name: hs-o-now-3; }
.motion .hero-home.is-in .hs-step:nth-child(3) .hs-mark__fill { animation-name: hs-o-done-3; }
.motion .hero-home.is-in .hs-step:nth-child(3)::after { animation-name: hs-o-line-3; }
.motion .hero-home.is-in .hs-step:nth-child(4) .hs-mark__ring { animation-name: hs-o-now-4; }
.motion .hero-home.is-in .hs-step:nth-child(4) .hs-mark__fill { animation-name: hs-o-done-4; }
.motion .hero-home.is-in .hs-step:nth-child(4)::after { animation-name: hs-o-line-4; }
.motion .hero-home.is-in .hs-step:nth-child(5) .hs-mark__ring { animation-name: hs-o-now-5; }
.motion .hero-home.is-in .hs-step:nth-child(5) .hs-mark__fill { animation-name: hs-o-done-5; }
.motion .hero-home.is-in .hs-cursor { animation-name: hs-o-cursor; }
.motion .hero-home.is-in .hs-msg::after { animation-name: hs-o-dot; }
@keyframes hs-o-now-1 {
  0% { opacity: 0; }
  0.5% { opacity: 0; animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  3% { opacity: 1; }
  88% { opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes hs-o-done-1 {
  0% { opacity: 0; transform: scale(.3); }
  10% { opacity: 0; transform: scale(.3); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  13% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  100% { opacity: 0; transform: scale(.3); }
}
@keyframes hs-o-line-1 {
  0% { opacity: 1; transform: scaleY(0); }
  11% { opacity: 1; transform: scaleY(0); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  21% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  96% { opacity: 0; transform: scaleY(0); }
  100% { opacity: 0; transform: scaleY(0); }
}
@keyframes hs-o-now-2 {
  0% { opacity: 0; }
  10% { opacity: 0; animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  12.5% { opacity: 1; }
  88% { opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes hs-o-done-2 {
  0% { opacity: 0; transform: scale(.3); }
  22% { opacity: 0; transform: scale(.3); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  25% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  100% { opacity: 0; transform: scale(.3); }
}
@keyframes hs-o-line-2 {
  0% { opacity: 1; transform: scaleY(0); }
  23% { opacity: 1; transform: scaleY(0); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  33% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  96% { opacity: 0; transform: scaleY(0); }
  100% { opacity: 0; transform: scaleY(0); }
}
@keyframes hs-o-now-3 {
  0% { opacity: 0; }
  22% { opacity: 0; animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  24.5% { opacity: 1; }
  88% { opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes hs-o-done-3 {
  0% { opacity: 0; transform: scale(.3); }
  34% { opacity: 0; transform: scale(.3); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  37% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  100% { opacity: 0; transform: scale(.3); }
}
@keyframes hs-o-line-3 {
  0% { opacity: 1; transform: scaleY(0); }
  35% { opacity: 1; transform: scaleY(0); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  45% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  96% { opacity: 0; transform: scaleY(0); }
  100% { opacity: 0; transform: scaleY(0); }
}
@keyframes hs-o-now-4 {
  0% { opacity: 0; }
  34% { opacity: 0; animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  36.5% { opacity: 1; }
  88% { opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes hs-o-done-4 {
  0% { opacity: 0; transform: scale(.3); }
  46% { opacity: 0; transform: scale(.3); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  49% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  100% { opacity: 0; transform: scale(.3); }
}
@keyframes hs-o-line-4 {
  0% { opacity: 1; transform: scaleY(0); }
  47% { opacity: 1; transform: scaleY(0); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  57% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  96% { opacity: 0; transform: scaleY(0); }
  100% { opacity: 0; transform: scaleY(0); }
}
@keyframes hs-o-now-5 {
  0% { opacity: 0; }
  46% { opacity: 0; animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  48.5% { opacity: 1; }
  88% { opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes hs-o-done-5 {
  0% { opacity: 0; transform: scale(.3); }
  58% { opacity: 0; transform: scale(.3); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  61% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  100% { opacity: 0; transform: scale(.3); }
}
@keyframes hs-o-cursor {
  0% { opacity: 0; transform: translateY(calc(0 * var(--hs-row))); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  2.5% { opacity: 1; transform: translateY(calc(0 * var(--hs-row))); }
  10% { opacity: 1; transform: translateY(calc(0 * var(--hs-row))); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  12.5% { opacity: 1; transform: translateY(calc(1 * var(--hs-row))); }
  22% { opacity: 1; transform: translateY(calc(1 * var(--hs-row))); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  24.5% { opacity: 1; transform: translateY(calc(2 * var(--hs-row))); }
  34% { opacity: 1; transform: translateY(calc(2 * var(--hs-row))); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  36.5% { opacity: 1; transform: translateY(calc(3 * var(--hs-row))); }
  46% { opacity: 1; transform: translateY(calc(3 * var(--hs-row))); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  48.5% { opacity: 1; transform: translateY(calc(4 * var(--hs-row))); }
  58% { opacity: 1; transform: translateY(calc(4 * var(--hs-row))); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  62% { opacity: 0; transform: translateY(calc(4 * var(--hs-row))); }
  100% { opacity: 0; transform: translateY(calc(4 * var(--hs-row))); }
}
@keyframes hs-o-lift {
  0% { translate: 0 0; }
  23% { translate: 0 0; animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  25.5% { translate: 0 -8px; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  31% { translate: 0 0; }
  100% { translate: 0 0; }
}
@keyframes hs-o-dot {
  0% { opacity: 0; transform: scale(.3); }
  24% { opacity: 0; transform: scale(.3); animation-timing-function: var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
  27% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  95% { opacity: 0; transform: none; }
  100% { opacity: 0; transform: scale(.3); }
}
/* @end order-loop */

/* --- phone (under 600px): no perspective, the order card and the message only ------------------- */
@media (max-width: 599px) {
  .hero-home { max-width: 360px; container-type: normal; }
  .hero-home__scene { --u: 1px; width: auto; height: auto; padding-bottom: 36px; }
  .hero-home__glow { left: 0; right: 0; top: 10%; bottom: 0; }
  .hero-home__group, .motion .hero-home__group { position: relative; inset: auto; display: flex; flex-direction: column; }
  .hs-float, .motion .hero-home.is-in .hs-float { position: relative; left: auto; top: auto; transform: none; animation: none; }
  .hs-float--report { display: none; }
  .hs-float--order { width: 100%; }
  .hs-float--msg { align-self: flex-end; width: min(282px, 86%); margin-top: -8px; }
  .hero-home__scene { --hs-sh: 0 1px 2px rgba(31, 8, 18, .3), 0 18px 44px rgba(31, 8, 18, .42); }
}

/* ===== 2. Emblem: a ring, a turning broken ring, two orbiting ice dots, one large icon ===== */
.hero-emblem { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; margin-inline: auto; overflow: clip; color: var(--white); }
.hero-emblem > svg:not(.hero-icon) { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.hero-emblem__ring { stroke: color-mix(in srgb, var(--on-dark-muted) 45%, transparent); stroke-width: 1; }
.hero-emblem__minor { stroke: var(--ox-700); stroke-width: 5; stroke-dasharray: .07 .93; }
.hero-emblem__major { stroke: color-mix(in srgb, var(--on-dark-muted) 55%, transparent); stroke-width: 9; stroke-dasharray: .012 .988; }
.hero-emblem__broken { stroke: color-mix(in srgb, var(--on-dark-body) 40%, transparent); stroke-width: 1;
  stroke-dasharray: .22 .03 .08 .03 .3 .03 .12 .03 .13 .03; }
.hero-emblem__dot { fill: var(--ice-500); }
.hero-emblem__halo { fill: color-mix(in srgb, var(--ice-500) 20%, transparent); }
.hero-emblem__inner { rotate: -14deg; }
.hero-emblem__orbit--a { rotate: 38deg; }
.hero-emblem__orbit--b { rotate: 214deg; }
.hero-emblem__ico { --ico: 120; --ico-stroke: 2; --t-draw: 1400ms; --ico-delay: 250ms; position: absolute; left: calc(50% - 60px); top: calc(50% - 60px); }
/* arrival: the ring draws, the ticks and broken ring come up, the icon draws itself (1.4 s), the dots appear */
.motion .hero-emblem:not(.is-in) :is(.hero-glow, .hero-emblem__minor, .hero-emblem__major, .hero-emblem__inner, .hero-emblem__orbit) { opacity: 0; }
.motion .hero-emblem:not(.is-in) .hero-emblem__ring { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
.motion .hero-emblem.is-in .hero-glow { animation: hs-fade 1600ms var(--ease) both; }
.motion .hero-emblem.is-in .hero-emblem__ring { stroke-dasharray: 1 2; animation: hs-draw var(--t-draw, 1200ms) var(--ease-out, cubic-bezier(.16, 1, .3, 1)) both; }
.motion .hero-emblem.is-in :is(.hero-emblem__minor, .hero-emblem__major) { animation: hs-fade 900ms var(--ease, cubic-bezier(.2, .7, .2, 1)) 300ms both; }
/* while live: the broken ring turns once in 40 s, the dots orbit in 12 and 19 s */
.motion .hero-emblem.is-in .hero-emblem__inner { animation: hs-fade 1000ms var(--ease) 400ms both, hs-turn-z 40s linear 400ms infinite paused; }
.motion .hero-emblem.is-in .hero-emblem__orbit { animation: hs-fade 800ms var(--ease) 900ms both, hs-orbit 12s linear infinite paused; }
.motion .hero-emblem.is-in .hero-emblem__orbit--b { animation-duration: 800ms, 19s; }
.motion .hero-emblem.is-in.is-live :is(.hero-emblem__inner, .hero-emblem__orbit) { animation-play-state: running; }
.hero-emblem__inner { --a0: -14deg; }
.hero-emblem__orbit--a { --a0: 38deg; }
.hero-emblem__orbit--b { --a0: 214deg; }
@keyframes hs-turn-z { from { rotate: var(--a0, 0deg); } to { rotate: calc(var(--a0, 0deg) + 360deg); } }
@keyframes hs-orbit { from { rotate: var(--a0, 0deg); } to { rotate: calc(var(--a0, 0deg) + 360deg); } }

/* ===== 3. Layers (company): three isometric plates, dropping in, the top one hovering ===== */
.hero-layers { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; margin-inline: auto; }
.hero-layers svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-layers__plate { position: absolute; inset: 0; }
.hero-layers__guides { fill: none; stroke: color-mix(in srgb, var(--on-dark-muted) 45%, transparent); stroke-width: 1px;
  vector-effect: non-scaling-stroke; stroke-dasharray: 2 5; }
.hero-layers path { stroke-linejoin: round; }
.hero-layers__top { fill: var(--ox-800); stroke: color-mix(in srgb, var(--on-dark-body) 70%, transparent); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.hero-layers__side { fill: var(--ox-950); stroke: color-mix(in srgb, var(--on-dark-body) 70%, transparent); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.hero-layers__side--r { fill: color-mix(in srgb, var(--ox-950) 60%, var(--ox-900)); }
.hero-layers__inset { fill: none; stroke: color-mix(in srgb, var(--on-dark-muted) 40%, transparent); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.hero-layers__plate--3 .hero-layers__top { fill: color-mix(in srgb, var(--ice-500) 7%, var(--ox-800)); stroke: var(--ice-300); }
.hero-layers__plate--3 .hero-layers__side { stroke: var(--ice-300); }
.hero-layers__plate--3 .hero-layers__inset { stroke: color-mix(in srgb, var(--ice-300) 45%, transparent); }
.hero-layers__mark { fill: var(--ice-500); }
.motion .hero-layers:not(.is-in) :is(.hero-glow, .hero-layers__guides, .hero-layers__plate) { opacity: 0; }
.motion .hero-layers.is-in .hero-glow { animation: hs-fade 1600ms var(--ease, cubic-bezier(.2, .7, .2, 1)) both; }
.motion .hero-layers.is-in .hero-layers__guides { animation: hs-fade 900ms var(--ease, cubic-bezier(.2, .7, .2, 1)) 900ms both; }
.motion .hero-layers.is-in .hero-layers__plate { animation: hs-drop 760ms var(--ease-out, cubic-bezier(.16, 1, .3, 1)) both; }
.motion .hero-layers.is-in .hero-layers__plate--2 { animation-delay: 200ms; }
.motion .hero-layers.is-in .hero-layers__plate--3 { animation-delay: 400ms; }
.motion .hero-layers.is-in .hero-layers__plate--3 svg { animation: hs-hover 6s ease-in-out 1200ms infinite paused; }
.motion .hero-layers.is-in.is-live .hero-layers__plate--3 svg { animation-play-state: running; }
@keyframes hs-drop { from { opacity: 0; transform: translateY(-14%); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes hs-hover { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }

/* ===== 4. Hub (platform): a centre square, six lines, six parts; ice pulses travel inward ===== */
.hero-hub { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; margin-inline: auto; container-type: inline-size; color: var(--on-dark-body); }
.hero-hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.hero-hub__lines path { stroke: var(--ox-700); stroke-width: 1; }
.hero-hub__ring { stroke: color-mix(in srgb, var(--on-dark-muted) 30%, transparent); stroke-width: 1; stroke-dasharray: 1 4; }
.hero-hub__node, .hero-hub__core { position: absolute; display: grid; place-items: center; translate: -50% -50%; }
.hero-hub__node { left: var(--x); top: var(--y); width: 14cqw; height: 14cqw; border-radius: 4px;
  background: var(--ox-900); border: 1px solid color-mix(in srgb, var(--on-dark-muted) 55%, transparent); }
.hero-hub__node::after, .hero-hub__core::after { content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid var(--ice-300); opacity: 0; }
.hero-hub__core { left: 50%; top: 50%; width: 22cqw; height: 22cqw; border-radius: 4px; background: var(--ice-500); color: var(--ox-900); }
.hero-hub__core::after { inset: -5px; border-radius: 6px; }
.hero-hub__ico { --ico: 20; --ico-delay: calc(560ms + var(--k, 0) * 90ms); }
.hero-hub__core .hero-hub__ico { --ico: 28; --ico-delay: 200ms; }
.hero-hub__node:nth-child(1 of .hero-hub__node) { --x: 50%; --y: 12%; }
.hero-hub__node:nth-child(2 of .hero-hub__node) { --x: 82.91%; --y: 31%; }
.hero-hub__node:nth-child(3 of .hero-hub__node) { --x: 82.91%; --y: 69%; }
.hero-hub__node:nth-child(4 of .hero-hub__node) { --x: 50%; --y: 88%; }
.hero-hub__node:nth-child(5 of .hero-hub__node) { --x: 17.09%; --y: 69%; }
.hero-hub__node:nth-child(6 of .hero-hub__node) { --x: 17.09%; --y: 31%; }
/* a pulse: a 6px ice dot with a short fading tail, aimed at the centre */
.hero-hub__pulse { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; rotate: var(--a); opacity: 0; }
.hero-hub__pulse::before { content: ""; position: absolute; right: 0; top: -1px; width: 9cqw; height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ice-300) 80%, transparent)); }
.hero-hub__pulse::after { content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ice-300); }
.hero-hub__pulse:nth-child(1 of .hero-hub__pulse) { --x: 50%; --y: 12%; --a: 90deg; --k: 0; }
.hero-hub__pulse:nth-child(2 of .hero-hub__pulse) { --x: 82.91%; --y: 31%; --a: 150deg; --k: 1; }
.hero-hub__pulse:nth-child(3 of .hero-hub__pulse) { --x: 82.91%; --y: 69%; --a: 210deg; --k: 2; }
.hero-hub__pulse:nth-child(4 of .hero-hub__pulse) { --x: 50%; --y: 88%; --a: 270deg; --k: 3; }
.hero-hub__pulse:nth-child(5 of .hero-hub__pulse) { --x: 17.09%; --y: 69%; --a: 330deg; --k: 4; }
.hero-hub__pulse:nth-child(6 of .hero-hub__pulse) { --x: 17.09%; --y: 31%; --a: 30deg; --k: 5; }
.hero-hub__node:nth-child(1 of .hero-hub__node) { --k: 0; }
.hero-hub__node:nth-child(2 of .hero-hub__node) { --k: 1; }
.hero-hub__node:nth-child(3 of .hero-hub__node) { --k: 2; }
.hero-hub__node:nth-child(4 of .hero-hub__node) { --k: 3; }
.hero-hub__node:nth-child(5 of .hero-hub__node) { --k: 4; }
.hero-hub__node:nth-child(6 of .hero-hub__node) { --k: 5; }
/* arrival: the centre lands, the lines draw outward, the six parts land one by one */
.motion .hero-hub:not(.is-in) :is(.hero-glow, .hero-hub__core, .hero-hub__node, .hero-hub__ring) { opacity: 0; }
.motion .hero-hub .hero-hub__lines path { stroke-dasharray: 1 2; }
.motion .hero-hub:not(.is-in) .hero-hub__lines path { stroke-dashoffset: 1.01; }
.motion .hero-hub.is-in .hero-glow { animation: hs-fade 1600ms var(--ease, cubic-bezier(.2, .7, .2, 1)) both; }
.motion .hero-hub.is-in .hero-hub__core { animation: hs-land 600ms var(--ease-out, cubic-bezier(.16, 1, .3, 1)) both; }
.motion .hero-hub.is-in .hero-hub__ring { animation: hs-fade 1200ms var(--ease) 700ms both; }
.motion .hero-hub.is-in .hero-hub__lines path { animation: hs-draw 700ms var(--ease, cubic-bezier(.2, .7, .2, 1)) 200ms both; }
.motion .hero-hub.is-in .hero-hub__node { animation: hs-land 600ms var(--ease-out, cubic-bezier(.16, 1, .3, 1)) calc(450ms + var(--k) * 90ms) both; }
@keyframes hs-land { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
/* while live: one pulse every 1.2 s, clockwise from the top, each from a part into the centre (7.2 s a round);
   the part's outline lights as its pulse leaves, the centre's as each pulse arrives */
.motion .hero-hub.is-in .hero-hub__pulse { animation: hs-pulse 7.2s linear calc(1.6s + var(--k) * 1.2s) infinite paused; }
.motion .hero-hub.is-in .hero-hub__node::after { animation: hs-node-lit 7.2s linear calc(1.6s + var(--k) * 1.2s) infinite both paused; }
.motion .hero-hub.is-in .hero-hub__core::after { animation: hs-core-lit 1.2s linear 1.6s infinite both paused; }
.motion .hero-hub.is-in.is-live .hero-hub__pulse,
.motion .hero-hub.is-in.is-live .hero-hub__node::after, .motion .hero-hub.is-in.is-live .hero-hub__core::after { animation-play-state: running; }
@keyframes hs-pulse {
  0% { opacity: 0; transform: translateX(0); }
  2% { opacity: 1; }
  10% { opacity: 1; }
  13% { opacity: 0; transform: translateX(38cqw); }
  100% { opacity: 0; transform: translateX(38cqw); }
}
@keyframes hs-node-lit { 0% { opacity: 0; } 1.5% { opacity: 1; } 5.5% { opacity: 0; } 100% { opacity: 0; } }
@keyframes hs-core-lit { 0%, 62% { opacity: 0; } 74% { opacity: .9; } 100% { opacity: 0; } }
