/**
 * Blade Boss: How it works (pass 21, D-296). Pairs with templates/how-it-works.php and assets/js/how-it-works.js.
 * On the P4 token contract: every color is a token, light and dark follow <html data-theme>. Same grammar as the
 * Scan and pricing pages: Montserrat 900 display, Open Sans body, Barlow Semi Condensed numbers, ghost words,
 * the orange action with --warm-fg text (R4). Every rule is scoped under .hw or .hw-layers.
 */

body.bb-page-how-it-works .bb-main { padding-top: 0; }
body.bb-page-how-it-works { background: var(--bg); }
.hw, .hw-layers { --hw-navh: calc(var(--nav-height, 72px) + 10px); }
@media (max-width: 768px) { .hw, .hw-layers { --hw-navh: calc(var(--nav-height-mobile, 60px) + env(safe-area-inset-top, 0px) + 8px); } }
.hw h1, .hw h2, .hw h3 { font-size: inherit; line-height: inherit; letter-spacing: inherit; font-weight: inherit; color: inherit; margin: 0; text-wrap: wrap; }
.hw *, .hw *::before, .hw *::after, .hw-layers *, .hw-layers *::before, .hw-layers *::after { box-sizing: border-box; }
.hw p, .hw ul, .hw ol, .hw figure { margin: 0; }
.hw ul, .hw ol { padding: 0; list-style: none; }
.hw button, .hw input, .hw-layers button { font: inherit; color: inherit; }
.hw img { max-width: 100%; display: block; }
.hw a { color: inherit; }
.hw svg { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hw { position: relative; isolation: isolate; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--site-font-body); -webkit-font-smoothing: antialiased; overflow-anchor: none;
  --hw-plate: rgba(8, 12, 18, 0.76); --hw-plate-edge: rgba(255, 255, 255, 0.12); }
.hw .wrap { position: relative; max-width: var(--site-max); margin: 0 auto; padding-left: var(--site-gut-l); padding-right: var(--site-gut-r); }

/* pass 44 (the speed budget): the hero's entrance is CSS, from the first paint. It used to wait for the page script,
   and on a slow phone the headline (the LCP) appeared 3 to 4 s in. Staggered by order; the script only adds .rv-in. */
@keyframes hw-hero-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
html.hw-js:not(.no-motion) .hw [data-hero] { animation: hw-hero-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
html.hw-js:not(.no-motion) .hw [data-hero] ~ [data-hero] { animation-delay: 0.08s; }
html.hw-js:not(.no-motion) .hw [data-hero] ~ [data-hero] ~ [data-hero] { animation-delay: 0.16s; }
html.hw-js:not(.no-motion) .hw [data-hero] ~ [data-hero] ~ [data-hero] ~ [data-hero] { animation-delay: 0.24s; }
html.hw-js:not(.no-motion) .hw [data-rv] { opacity: 0; transform: translateY(26px); }
html.hw-js:not(.no-motion) .hw [data-rv].rv-in, html.hw-js:not(.no-motion) .hw [data-hero].rv-in { opacity: 1; transform: none; }
html.hw-js.no-motion .hw [data-rv], html.hw-js.no-motion .hw [data-hero] { opacity: 1; transform: none; transition: none; }

.hw .ghost { position: absolute; z-index: -1; top: -0.12em; left: calc(var(--site-gut-l) - 0.04em); font: var(--site-w-disp) clamp(4.2rem, 16vw, 11.5rem)/1 var(--site-font-disp); letter-spacing: -0.04em;
  color: var(--site-ghost); -webkit-text-stroke: 1px var(--site-ghost-stroke); pointer-events: none; user-select: none; white-space: nowrap; text-transform: uppercase; }
.hw section { position: relative; overflow: hidden; }

.hw .hw-k, .hw .hw-close-k, .hw .hw-season-k { display: inline-flex; align-items: center; gap: 9px; font: 700 0.68rem/1 var(--site-font-disp); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.hw .hw-k::before, .hw .hw-close-k::before, .hw .hw-season-k::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-ink), transparent); }
.hw .hw-k--photo::before { background: linear-gradient(90deg, #5BD493, transparent); }
.hw .hw-step-n, .hw .hw-readout-k { font: 600 0.7rem/1 var(--font-num); letter-spacing: 0.17em; text-transform: uppercase; color: var(--brand-ink); }
.hw .hw-plate { display: inline-block; padding: 6px 10px; border-radius: 8px; background: var(--hw-plate); border: 1px solid var(--hw-plate-edge); font: 600 0.62rem/1 var(--font-num); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.86); }
.hw .hw-plate--in { background: var(--surface-3); border-color: var(--line); color: var(--ink-2); }

/* the address field (twice) */
.hw .hw-form { display: flex; flex-direction: column; gap: 10px; max-width: 580px; }
.hw .hw-field { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.hw .hw-field:focus-within { border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-soft), var(--sh-2); }
.hw .hw-field-pin { color: var(--brand-ink); flex-shrink: 0; }
.hw .hw-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 600 16px/52px var(--site-font-body); height: 52px; padding: 0; margin: 0; -webkit-appearance: none; appearance: none; }
.hw .hw-field input::placeholder { color: var(--ink-3); }
.hw .hw-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: none; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2); text-align: left; }
.hw .hw-sugg.open { display: block; }
.hw .hw-sugg [role="option"] { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 0.92rem; color: var(--ink); }
.hw .hw-sugg [role="option"]:hover { background: var(--brand-soft); }
.hw .hw-sugg [role="option"] svg { width: 16px; height: 16px; flex: none; color: var(--brand-ink); }
.hw .hw-sugg .st { padding: 10px 12px; font-size: 0.8rem; line-height: 1.5; color: var(--ink-2); }
.hw .hw-go { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 0; border-radius: 14px;
  font: 800 0.92rem/1 var(--site-font-disp); letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm-fg); background: linear-gradient(135deg, var(--warm) 0%, var(--site-warm-press) 100%); cursor: pointer; overflow: hidden; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(245, 120, 66, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.hw .hw-go::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); transition: left 0.56s ease; }
.hw .hw-go:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(245, 120, 66, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.hw .hw-go:hover::after { left: 160%; }
.hw .hw-go:active { transform: translateY(0) scale(0.98); }
.hw .hw-go svg { width: 18px; height: 18px; }
.hw .hw-go:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.hw .hw-form-meta { font: 700 0.68rem/1.5 var(--site-font-disp); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* ═══ the first screen ═══ */
.hw .hw-hero { padding: calc(var(--hw-navh) + 36px) 0 40px; min-height: 86svh; display: flex; align-items: center; }
.hw .hw-hero .ghost { top: -0.55em; }
.hw .hw-title { font: var(--site-w-disp) clamp(2.35rem, 6.8vw, 4.4rem)/1.02 var(--site-font-disp); letter-spacing: var(--site-track-disp); text-wrap: balance; margin: 0 0 16px; max-width: 14ch; }
.hw .hw-title em { font-style: normal; color: var(--brand-ink); }
.hw .hw-sub { font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); max-width: 56ch; margin: 0 0 24px; }
.hw .hw-legs { display: grid; gap: 8px; margin-top: 28px; max-width: 580px; }
.hw .hw-legs a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font: 600 0.92rem/1.3 var(--site-font-body); transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out); }
.hw .hw-legs a:hover { border-color: var(--brand-ink); background: var(--brand-soft); transform: translateX(4px); }
.hw .hw-legs b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--brand); color: #FFFFFF; font: 700 0.85rem/1 var(--font-num); }
.hw .hw-legs li:last-child b { background: var(--warm); color: var(--warm-fg); }

/* ═══ the steps ═══ */
.hw .hw-step { padding: clamp(56px, 10vh, 110px) 0; }
.hw .hw-step--alt { background: var(--surface); }
html[data-theme="dark"] .hw .hw-step--alt { background: var(--site-bg-deep); }
.hw .hw-step-grid { display: grid; gap: 28px; align-items: center; }
.hw .hw-step-n { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hw .hw-step-n b { font: 700 1.6rem/1 var(--font-num); letter-spacing: -0.02em; color: var(--ink); }
.hw .hw-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font: 600 0.62rem/1 var(--font-num); letter-spacing: 0.12em; text-transform: uppercase; }
.hw .hw-chip--free { background: var(--blade-soft); color: var(--brand-ink); }
.hw .hw-chip--paid { background: var(--warm-soft); color: var(--warm-ink); }
.hw .hw-step-title { font-size: clamp(1.7rem, 4.4vw, 2.7rem); font-weight: var(--site-w-disp); font-family: var(--site-font-disp); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; margin: 0 0 14px; }
.hw .hw-step-body { font-size: 1.08rem; line-height: 1.6; color: var(--ink); max-width: 44ch; margin: 0 0 12px; }
.hw .hw-step-note { font-size: 0.94rem; line-height: 1.65; color: var(--ink-2); max-width: 50ch; }
.hw .hw-step-note b { font-weight: 700; }
.hw .is-measured { color: var(--brand-ink); }
.hw .is-estimated { color: var(--est-ink); }
.hw .is-missing { color: var(--danger); }

.hw .hw-fig { position: relative; }
.hw .hw-photo { position: relative; overflow: hidden; border-radius: 22px; box-shadow: var(--sh-2); aspect-ratio: 16 / 10; background: #0A0F15; }
.hw .hw-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hw .hw-photo .hw-plate { position: absolute; left: 12px; top: 12px; }
.hw .hw-photo--tall { aspect-ratio: 4 / 3; }

/* step 1: the readout card over the photo */
.hw .hw-readout { position: relative; margin: -56px 12px 0; padding: 16px 16px 14px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--glass-edge); box-shadow: var(--sh-2); }
html[data-theme="light"] .hw .hw-readout { background: rgba(255, 255, 255, 0.9); }
.hw .hw-readout-k { margin-bottom: 8px; }
.hw .hw-readout li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font: 600 0.84rem/1.3 var(--site-font-body); color: var(--ink); }
.hw .hw-readout li:last-child { border-bottom: 0; }
.hw .hw-readout i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font: 700 0.72rem/1 var(--font-num); }
.hw .hw-readout i.is-measured { background: var(--blade); color: #FFFFFF; }
.hw .hw-readout i.is-estimated { background: var(--est-soft); color: var(--est-ink); }
.hw .hw-readout b { font: 600 1.02rem/1 var(--font-num); color: var(--brand-ink); white-space: nowrap; }
.hw .hw-readout li i.is-estimated ~ b { color: var(--est-ink); }
.hw .hw-readout-v { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font: 700 0.84rem/1.4 var(--site-font-disp); color: var(--ink); }

/* step 2: the traced zones */
.hw .hw-zones { position: absolute; inset: 0; width: 100%; height: 100%; }
.hw .hw-zones .z { fill: rgba(91, 212, 147, 0.14); stroke: #5BD493; stroke-width: 3; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.hw .hw-zones .z2 { fill: rgba(245, 120, 66, 0.14); stroke: #F57842; }
.hw .hw-zones .h { fill: #FFFFFF; stroke: #5BD493; stroke-width: 4; opacity: 0; }
.hw .rv-in .hw-zones .z, html.hw-js.no-motion .hw .hw-zones .z { animation: hw-trace 1.6s linear 0.3s forwards; }
.hw .rv-in .hw-zones .z2 { animation-delay: 0.9s; }
.hw .rv-in .hw-zones .h { animation: hw-in 0.4s ease 2s forwards; }
.hw .rv-in .hw-zones .h:nth-child(4) { animation-delay: 2.15s; }
.hw .rv-in .hw-zones .h:nth-child(5) { animation-delay: 2.3s; }
.hw .rv-in .hw-zones .h:nth-child(5) { animation-name: hw-in; }
@keyframes hw-trace { to { stroke-dashoffset: 0; } }
@keyframes hw-in { to { opacity: 1; } }
.hw .hw-ztag { position: absolute; padding: 6px 10px; border-radius: 8px; background: var(--hw-plate); border: 1px solid var(--hw-plate-edge); font: 600 0.66rem/1 var(--font-num); letter-spacing: 0.12em; text-transform: uppercase; color: #FFFFFF; }
.hw .hw-ztag--1 { left: 36%; top: 34%; color: #5BD493; }
.hw .hw-ztag--2 { left: 40%; bottom: 14%; color: #FFC46B; }
.hw .hw-photo--tall .hw-plate { top: auto; bottom: 12px; left: 12px; }

/* ═══ the arrival tag (D-306): on every M2-only line until bb_m2_live ═══ */
.hw .hw-tag { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; padding: 4px 8px; border-radius: 999px; background: var(--warm-soft); color: var(--warm-ink); font: 600 0.58rem/1 var(--font-num); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; transform: translateY(-1px); }
.hw h2 .hw-tag { font-size: 0.62rem; margin-left: 12px; transform: translateY(-0.35em); }

@keyframes hw-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* step 3, short */
.hw .hw-step--short .hw-step-copy { max-width: 62ch; }
.hw .hw-step-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--brand-ink); text-decoration: none; font: 700 0.84rem/1 var(--site-font-disp); letter-spacing: 0.05em; text-transform: uppercase; }
.hw .hw-step-jump svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.hw .hw-step-jump:hover svg { transform: translateY(3px); }

/* ═══ the season stage (D-305): a fixed-height block; nothing on the page moves while it plays ═══ */
.hw .hw-stage-sec { padding: 56px 0 72px; background: var(--surface); border-top: 1px solid var(--line); }
html[data-theme="dark"] .hw .hw-stage-sec { background: var(--site-bg-deep); }
.hw .hw-stage-title { max-width: 16ch; }
.hw .hw-stage-sub { max-width: 60ch; margin-bottom: 22px; }
.hw .hw-stage { --stage-h: 740px; height: var(--stage-h); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 12px; padding: 14px 14px 14px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; contain: layout paint; cursor: pointer; }
.hw .hw-stage:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.hw .hw-stage-watch { margin: 0; font: 500 0.78rem/1.4 var(--site-font-body); color: var(--ink-2); max-width: 46ch; }
.hw .hw-stage-ctl { display: flex; gap: 6px; flex: none; }
.hw .hw-ctl { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background 0.2s ease, transform 0.2s var(--ease-out); padding: 0; }
.hw .hw-ctl svg { width: 18px; height: 18px; } .hw .hw-ctl:hover { background: var(--surface-2); } .hw .hw-ctl:active { transform: scale(0.94); }
.hw .hw-ctl:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.hw .hw-ctl--play { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.hw .hw-ctl--play .i-play { display: none; } .hw .hw-stage.is-paused .hw-ctl--play .i-play { display: block; } .hw .hw-stage.is-paused .hw-ctl--play .i-pause { display: none; }
.hw .hw-stage-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.hw .hw-stage-lot { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.hw .hw-tag--stage { margin-left: 0; }
.hw .hw-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 14px; }
.hw .hw-stage-dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.hw .hw-stage-dots button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 3px; border: 0; background: none; cursor: pointer; font: 600 0.62rem/1 var(--font-num); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); transition: color 0.3s ease; }
.hw .hw-stage-dots button span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background 0.3s ease, transform 0.3s var(--ease-out); }
.hw .hw-stage-dots button.on { color: var(--brand-ink); } .hw .hw-stage-dots button.on span { background: var(--brand); transform: scale(1.3); }
.hw .hw-stage-dots button.done span { background: var(--blade); }
.hw .hw-stage-dots button:hover { color: var(--ink); } .hw .hw-stage-dots button:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; border-radius: 6px; }

/* the timeline: March to November; the law drawn as data (D-302 §8); --m is months from Jan 1 */
.hw .hw-timeline { --m0: 2; --m1: 11; position: relative; padding: 18px 0 0; }
.hw .hw-tl-track { position: relative; height: 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.hw .hw-tl-track > span { position: absolute; top: 0; bottom: 0; }
.hw .hw-tl-track > .hw-tl-soft { left: calc((9.8 - var(--m0)) / (var(--m1) - var(--m0)) * 100%); width: calc((10.6 - 9.8) / (var(--m1) - var(--m0)) * 100%); }
.hw .hw-tl-track > span > i { position: absolute; top: 20px; left: 0; white-space: nowrap; font: 600 0.56rem/1 var(--font-num); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); font-style: normal; }
.hw .hw-tl-ban--state { left: 0; width: calc((3 - var(--m0)) / (var(--m1) - var(--m0)) * 100%); border-radius: 999px 0 0 999px; background: repeating-linear-gradient(135deg, var(--danger-soft) 0 5px, transparent 5px 10px); }
.hw .hw-tl-track > .hw-tl-ban--state > i { top: -16px; color: var(--danger); }
.hw .hw-tl-soft { background: var(--blade-soft); opacity: 0; transition: opacity 0.4s ease; }
.hw .hw-tl-soft > i { display: none; }
.hw .hw-stage[data-job="winter"] .hw-tl-soft { opacity: 1; }
.hw .hw-tl-law { left: calc((var(--m) - var(--m0)) / (var(--m1) - var(--m0)) * 100%); width: 2px; background: var(--danger); }
.hw .hw-tl-track > .hw-tl-law > i { top: -16px; left: auto; right: 0; color: var(--danger); }
.hw .hw-tl-track > .hw-tl-law--below > i { top: 20px; }
.hw .hw-tl-track > .hw-tl-pin { position: absolute; left: calc((var(--m) - var(--m0)) / (var(--m1) - var(--m0)) * 100%); width: 22px; height: 22px; top: -4px; bottom: auto; margin-left: -11px; padding: 0; border-radius: 50%; border: 0; background: none; cursor: pointer; }
.hw .hw-tl-track > .hw-tl-pin::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); border: 2px solid var(--bg); transition: background 0.3s ease, transform 0.3s var(--ease-out); }
.hw .hw-tl-track > .hw-tl-pin:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 1px; }
.hw .hw-tl-track > .hw-tl-pin.on::before { background: var(--brand); transform: scale(1.35); } .hw .hw-tl-track > .hw-tl-pin.done::before { background: var(--blade); }
.hw .hw-tl-now { left: calc((var(--m) - var(--m0)) / (var(--m1) - var(--m0)) * 100%); width: 2px; top: -6px; bottom: -6px; background: var(--brand-ink); transition: left 1.1s var(--ease-io); }
.hw .hw-tl-now::after { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-ink); }
.hw .hw-tl-months { list-style: none; margin: 30px 0 0; padding: 0; display: flex; justify-content: space-between; font: 600 0.6rem/1 var(--font-num); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* the body: the active job card, the Deck's side */
.hw .hw-stage-body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
.hw .hw-ro-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hw .hw-deck { position: relative; min-height: 0; }
.hw .hw-jcard { position: absolute; inset: 0; padding: 12px 12px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); opacity: 0; transform: translateY(10px) scale(0.985); pointer-events: none; transition: opacity 0.2s ease, transform 0.6s var(--ease-out); overflow: hidden; display: grid; grid-template-rows: auto auto auto 1fr; gap: 10px; align-content: start; }
.hw .hw-jcard.on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 0.45s ease 0.15s, transform 0.6s var(--ease-out) 0.15s; }
/* the scene (pass 25): a picture per job, our own drawing; a tile beside the title on phones, a column on desktop */
.hw .hw-jcard { grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 12px; gap: 8px 12px; }
.hw .hw-jscene { grid-column: 1; grid-row: 1; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.hw .hw-jcard > .hw-jhead { grid-column: 2; grid-row: 1; align-self: center; }
.hw .hw-jcard > .hw-jline, .hw .hw-jcard > .hw-jhow, .hw .hw-jcard > .hw-jflow, .hw .hw-jcard > .hw-jlog, .hw .hw-jcard > .hw-jnote { grid-column: 1 / -1; }
.hw .hw-scene { display: block; width: 100%; height: 100%; }
.hw .hw-scene--tall { display: none; }
/* the moving parts read these by state (the symbols carry the var() inline) */
.hw .hw-stage[data-state="held"] .hw-jcard.on .hw-scene { --sc-dial: 46; --sc-law: 1; }
.hw .hw-stage[data-state="released"] .hw-jcard.on .hw-scene, .hw .hw-stage[data-state="walk"] .hw-jcard.on .hw-scene, .hw .hw-stage[data-state="done"] .hw-jcard.on .hw-scene { --sc-granules: 1; --sc-dial: 10; --sc-ring: 60; --sc-d2: #5BD493; --sc-d3: #5BD493; --sc-ph: -4px; --sc-date-a: 0; --sc-date-b: 1; --sc-law: 0.35; }
.hw .hw-stage[data-state="done"] .hw-jcard.on .hw-scene { --sc-ring: 20; --sc-ph: -10px; }
.hw .hw-stage[data-state="held"] .hw-jcard--log.on .hw-scene { --sc-d2: rgba(255,255,255,0.14); --sc-d3: rgba(255,255,255,0.14); }
.hw .hw-jhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hw .hw-jhead h3 { margin: 0; font: 800 1.15rem/1.15 var(--site-font-disp); letter-spacing: -0.02em; color: var(--ink); flex: 1 1 auto; }
.hw .hw-jzone { padding: 5px 8px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line); font: 600 0.58rem/1 var(--font-num); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.hw .hw-jprio { padding: 5px 8px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font: 700 0.58rem/1 var(--font-num); letter-spacing: 0.14em; text-transform: uppercase; }
.hw .hw-jstatus b { display: none; padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font: 600 0.62rem/1 var(--font-num); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.hw .hw-jline, .hw .hw-jnote { margin: 0; font: 500 0.86rem/1.45 var(--site-font-body); color: var(--ink-2); min-height: 2.9em; }
.hw .hw-jline > span { display: none; }
.hw .hw-jline--big { font: 700 1.02rem/1.4 var(--site-font-disp); color: var(--ink); min-height: 4.2em; }
.hw .hw-jlog { display: none; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font: 500 0.86rem/1.4 var(--site-font-body); color: var(--ink-2); }
.hw .hw-jlog i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.hw .hw-jnote { display: none; font-size: 0.82rem; min-height: 0; }
/* the state switch: the card's state decides which status chip and which line show */
.hw .hw-stage[data-state="scheduled"] .hw-jcard.on .s-scheduled, .hw .hw-stage[data-state="scheduled"] .hw-jcard.on .l-scheduled,
.hw .hw-stage[data-state="held"] .hw-jcard.on .s-held,           .hw .hw-stage[data-state="held"] .hw-jcard.on .l-held,
.hw .hw-stage[data-state="released"] .hw-jcard.on .s-released,   .hw .hw-stage[data-state="released"] .hw-jcard.on .l-released,
.hw .hw-stage[data-state="walk"] .hw-jcard.on .s-walk,           .hw .hw-stage[data-state="walk"] .hw-jcard.on .l-walk,
.hw .hw-stage[data-state="done"] .hw-jcard.on .s-done,           .hw .hw-stage[data-state="done"] .hw-jcard.on .l-done { display: inline-block; }
.hw .hw-jcard.on .hw-jlog.l-scheduled { display: flex; }
.hw .hw-stage[data-state="held"] .hw-jcard.on .hw-jnote, .hw .hw-stage[data-state="released"] .hw-jcard.on .hw-jnote { display: block; }
.hw .hw-stage[data-state="held"] .hw-jcard.on .s-held { background: var(--est-soft); color: var(--est-ink); }
.hw .hw-stage[data-state="released"] .hw-jcard.on .s-released { background: var(--brand); color: #FFFFFF; }
.hw .hw-stage[data-state="walk"] .hw-jcard.on .s-walk { background: var(--brand-soft); color: var(--brand-ink); }
.hw .hw-stage[data-state="done"] .hw-jcard.on .s-done { background: var(--blade-soft); color: var(--brand-ink); }
.hw .hw-stage[data-state="held"] .hw-jcard--log.on .hw-jline--big .l-held { color: var(--danger); }
.hw .hw-stage[data-state="released"] .hw-jcard--log.on .hw-jline--big .l-released { color: var(--brand-ink); }
/* the instruction grid */
.hw .hw-jhow { display: grid; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--line); }
.hw .hw-jhow > span { display: block; font: 600 0.86rem/1.35 var(--font-num); color: var(--ink); }
.hw .hw-jhow b { display: block; margin-bottom: 3px; font: 600 0.58rem/1 var(--font-num); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink); }
.hw .hw-jhow .hw-tag { margin-left: 4px; }
.hw .hw-jhow em { font-style: normal; color: var(--brand-ink); }
/* the flow (D-199): setting from the label, done, what did you use, the self-check band (D-201) */
.hw .hw-jflow { display: grid; gap: 6px; align-self: end; }
.hw .hw-jflow > span { display: flex; align-items: center; gap: 10px; font: 500 0.8rem/1.3 var(--site-font-body); color: var(--ink-2); opacity: 1; transition: opacity 0.35s ease, color 0.35s ease; } /* D-315: future steps read at 4.5:1; the empty ring marks them, not a fade */
.hw .hw-jflow > span > i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; position: relative; transition: background 0.3s ease, border-color 0.3s ease; }
.hw .hw-jflow > span.is-on { opacity: 1; color: var(--ink); } .hw .hw-jflow > span.is-on > i { border-color: var(--brand-ink); }
.hw .hw-jflow > span.is-done { opacity: 1; color: var(--ink-2); } .hw .hw-jflow > span.is-done > i { background: var(--blade); border-color: var(--blade); }
.hw .hw-jflow > span.is-done > i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hw .hw-jflow .hw-band.is-done { color: var(--brand-ink); font-weight: 700; }
.hw .hw-jflow b { color: var(--ink); }
/* the Deck's side: two gauges, the next two */
.hw .hw-ro, .hw .hw-next { padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.hw .hw-ro-k { margin: 0 0 6px; font: 600 0.56rem/1.4 var(--font-num); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw .hw-ro-k .hw-tag { font-size: 0.5rem; margin-left: 4px; padding: 3px 6px; }
.hw .hw-tip { position: relative; display: inline-block; }
.hw .hw-tip-b { border: 0; background: none; padding: 0 2px; cursor: pointer; font: 600 0.58rem/1.4 var(--font-num); letter-spacing: 0.08em; text-transform: none; color: var(--brand-ink); text-decoration: underline dotted; }
.hw .hw-tip-b:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; border-radius: 4px; }
.hw .hw-tip-box { display: none; position: absolute; z-index: 5; right: 0; bottom: calc(100% + 8px); width: min(300px, 78vw); padding: 10px 12px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--sh-2); font: 500 0.8rem/1.45 var(--site-font-body); color: var(--ink); letter-spacing: 0; text-transform: none; }
.hw .hw-tip.open .hw-tip-box { display: block; }
.hw .hw-gauge { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.hw .hw-gauge > i { display: block; height: 100%; width: var(--g, 30%); border-radius: 999px; background: linear-gradient(90deg, var(--est-ink), var(--brand)); transition: width 1.4s var(--ease-io); }
.hw .hw-ro-v { margin: 6px 0 0; font: 600 0.74rem/1.25 var(--font-num); color: var(--ink); height: 2.5em; overflow: hidden; }
.hw .hw-ro.is-warm .hw-ro-v { color: var(--brand-ink); }
.hw .hw-next { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.hw .hw-next .hw-ro-k { margin: 0; flex: none; }
.hw .hw-next ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; min-height: 1.3em; }
.hw .hw-next li { display: none; align-items: center; gap: 6px; font: 600 0.78rem/1.3 var(--site-font-disp); color: var(--ink); white-space: nowrap; }
.hw .hw-next li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.hw .hw-next li.show { display: flex; animation: hw-rise 0.5s var(--ease-out) both; }
.hw .hw-next li.show + li.show::before { background: var(--line-2); }
/* phones: everything compact so play, the card and the readouts share one screen (D-308 fix 3) */
@media (max-width: 899px) {
  .hw .hw-stage-meta { flex-direction: column; align-items: stretch; gap: 6px; }
  .hw .hw-stage-dots { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .hw .hw-stage > * { min-width: 0; }
  .hw .hw-k-long { display: none; }
  .hw .hw-ro-k { font-size: 0.52rem; letter-spacing: 0.06em; }
  .hw .hw-tip-b { font-size: 0.56rem; letter-spacing: 0; }
  .hw .hw-stage-dots::-webkit-scrollbar { display: none; }
  .hw .hw-stage-dots button { flex: none; }
  .hw .hw-timeline { padding-top: 16px; }
  .hw .hw-tl-months { margin-top: 26px; font-size: 0.54rem; }
  .hw .hw-jhow { grid-template-columns: 1fr; gap: 5px; padding: 8px 10px; }
  .hw .hw-jhow > span { font-size: 0.8rem; line-height: 1.3; }
  .hw .hw-jhow b { display: inline; font-size: 0.54rem; margin: 0 6px 0 0; vertical-align: 1px; }
  .hw .hw-next ol { flex-wrap: nowrap; overflow: hidden; }
  /* the flow as one line: the dots, and the words of the step that is on */
  .hw .hw-jflow { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
  .hw .hw-jflow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16px; flex: 0 0 auto; transition: max-width 0.35s var(--ease-out), opacity 0.3s ease; }
  .hw .hw-jflow > span.is-on, .hw .hw-jflow > span.hw-band.is-done { max-width: 100%; flex: 1 1 auto; }
  .hw .hw-jflow > span.is-done:not(.hw-band) + span.is-done.hw-band { flex: 1 1 auto; }
  .hw .hw-jline, .hw .hw-jnote { min-height: 2.6em; }
  .hw .hw-jhead h3 { font-size: 1.05rem; }
  .hw .hw-jcard > .hw-jhead { row-gap: 6px; }
  .hw .hw-jline--big { min-height: 3.6em; font-size: 0.96rem; }
}

/* reduced motion or no script: the list instead of the stage */
.hw .hw-stage-static { display: none; margin: 0; padding: 0 0 0 22px; max-width: 68ch; }
.hw .hw-stage-static li { margin: 0 0 10px; font: 500 0.92rem/1.55 var(--site-font-body); color: var(--ink-2); }
.hw .hw-stage-static b { color: var(--ink); }
/* the stage shows only once its script is running (html.hw-stage-live); any other case, including reduced motion and a
   script that never loaded, gets the list */
html:not(.hw-stage-live) .hw .hw-stage { display: none; }
html:not(.hw-stage-live) .hw .hw-stage-static { display: block; }
.hw .hw-stage-foot { margin: 14px 0 0; font: 500 0.78rem/1.5 var(--site-font-body); color: var(--ink-2); max-width: 68ch; }

/* ═══ the close ═══ */
.hw .hw-close { position: relative; padding: clamp(64px, 12vh, 130px) 0; color: #FFFFFF; background: #0A0F15; border-top: 1px solid var(--line); overflow: hidden; }
.hw .hw-close-photo { position: absolute; inset: 0; }
.hw .hw-close-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hw .hw-close-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.78) 48%, rgba(8, 12, 18, 0.5) 100%), linear-gradient(to top, var(--bg) 0%, rgba(10, 15, 21, 0) 22%, rgba(10, 15, 21, 0) 86%, rgba(10, 15, 21, 0.7) 100%); }
.hw .hw-close .ghost { top: -0.1em; right: var(--site-gut-r); left: auto; color: rgba(255, 255, 255, 0.05); -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12); }
.hw .hw-k--photo { color: #5BD493; }
.hw .hw-close-title { font: var(--site-w-disp) clamp(2.1rem, 6.4vw, 4rem)/1.02 var(--site-font-disp); letter-spacing: var(--site-track-disp); text-wrap: balance; margin: 0 0 26px; max-width: 14ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.hw .hw-close-title em { font-style: normal; color: #5BD493; }
.hw .hw-plate--photo { position: absolute; right: var(--site-gut-r); bottom: 18px; z-index: 1; }
.hw .hw-split { display: grid; gap: 12px; max-width: 760px; margin: 0 0 14px; }
.hw .hw-split-col { padding: 18px 18px 14px; border-radius: 18px; background: rgba(8, 12, 18, 0.66); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #FFFFFF; }
.hw .hw-split-col--free { border-color: rgba(91, 212, 147, 0.4); }
.hw .hw-split-col--paid { border-color: rgba(245, 150, 90, 0.45); }
.hw .hw-split-k { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 0.7rem/1 var(--font-num); letter-spacing: 0.17em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.hw .hw-split-col .hw-chip--free { background: rgba(91, 212, 147, 0.2); color: #5BD493; }
.hw .hw-split-col .hw-chip--paid { background: rgba(245, 150, 90, 0.22); color: #F7A672; }
.hw .hw-split ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hw .hw-split li { position: relative; padding-left: 22px; font: 600 0.92rem/1.45 var(--site-font-body); color: #FFFFFF; }
.hw .hw-split li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.hw .hw-split-col--free li::before { background: #5BD493; }
.hw .hw-split-col--paid li::before { background: #F7A672; }
.hw .hw-split-foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); font: 500 0.8rem/1.45 var(--site-font-body); color: rgba(255, 255, 255, 0.72); }
.hw .hw-facts { display: grid; gap: 10px; max-width: 760px; margin: 0 0 32px; }
.hw .hw-facts li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(8, 12, 18, 0.62); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 600 0.92rem/1.5 var(--site-font-body); color: #FFFFFF; }
.hw .hw-facts svg { width: 20px; height: 20px; flex: none; color: #5BD493; margin-top: 2px; }

.hw .hw-close-field { padding: 10px; border-radius: 20px; background: var(--site-glass-2); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05); max-width: 560px; color: var(--ink); }
.hw .hw-close-field .hw-form-meta { padding: 0 8px 4px; }
.hw .hw-close-field .hw-form { max-width: none; }
.hw .hw-close-field .hw-field { background: var(--bg); }
/* the two beats of the line land one after the other */
html.hw-js:not(.no-motion) .hw .hw-beat { display: inline-block; opacity: 0; transform: translateY(0.35em); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
html.hw-js:not(.no-motion) .hw .rv-in .hw-beat { opacity: 1; transform: none; }
html.hw-js:not(.no-motion) .hw .rv-in .hw-beat:nth-of-type(2), html.hw-js:not(.no-motion) .hw .rv-in em.hw-beat { transition-delay: 0.45s; }

/* ═══ desktop ═══ */
@media (min-width: 900px) {
  .hw .hw-hero { padding-top: calc(var(--hw-navh) + 56px); padding-bottom: 64px; min-height: 92svh; }
  .hw .hw-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); column-gap: 56px; align-items: end; }
  .hw .hw-hero .wrap > * { grid-column: 1; }
  .hw .hw-hero .wrap > .hw-legs { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin-top: 0; }
  .hw .hw-form--top { flex-direction: row; align-items: center; flex-wrap: wrap; max-width: 680px; }
  .hw .hw-form--top .hw-field { flex: 1 1 320px; }
  .hw .hw-form--top .hw-form-meta { flex-basis: 100%; }
  .hw .hw-step-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
  .hw .hw-step--alt .hw-step-copy { order: 2; }
  .hw .hw-step--alt .hw-fig { order: 1; }
  .hw .hw-readout { margin: -72px 24px 0; padding: 20px 22px 16px; }
  .hw .hw-readout li { font-size: 0.92rem; padding: 10px 0; }
  .hw .hw-readout b { font-size: 1.15rem; }
  .hw .hw-stage { --stage-h: 660px; padding: 18px 22px 20px; gap: 14px; }
  .hw .hw-jcard { padding: 18px; gap: 12px; grid-template-columns: 212px minmax(0, 1fr); column-gap: 18px; }
  .hw .hw-jscene { grid-row: 1 / -1; width: auto; height: auto; border-radius: 16px; }
  .hw .hw-jcard > .hw-jhead { align-self: start; }
  .hw .hw-jcard > .hw-jline, .hw .hw-jcard > .hw-jhow, .hw .hw-jcard > .hw-jflow, .hw .hw-jcard > .hw-jlog, .hw .hw-jcard > .hw-jnote { grid-column: 2; }
  .hw .hw-scene--tall { display: block; } .hw .hw-scene--tile { display: none; }
  .hw .hw-jhead h3 { font-size: 1.35rem; }
  .hw .hw-jhow { grid-template-columns: 1fr 1fr; }
  .hw .hw-jhow > span:nth-child(2) { grid-column: 1 / -1; }
  .hw .hw-stage-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "deck ro" "deck next"; gap: 12px 16px; }
  .hw .hw-ro-strip { grid-area: ro; grid-template-columns: 1fr; gap: 10px; }
  .hw .hw-deck { grid-area: deck; }
  .hw .hw-next { grid-area: next; align-self: start; display: block; padding: 10px 12px; }
  .hw .hw-next .hw-ro-k { margin: 0 0 8px; }
  .hw .hw-next ol { display: grid; gap: 4px; }
  .hw .hw-next li { font-size: 0.84rem; gap: 8px; }
  .hw .hw-ro, .hw .hw-next { padding: 10px 12px; }
  .hw .hw-ro-v { font-size: 0.82rem; height: auto; min-height: 2.5em; }
  .hw .hw-ro-k { white-space: normal; }
  .hw .hw-k-short { display: none; }
  .hw .hw-stage-watch { font-size: 0.86rem; }
  .hw .hw-step--short { padding-bottom: 40px; }
  .hw .hw-split { grid-template-columns: 1fr 1fr; max-width: none; gap: 14px; margin-bottom: 18px; }
  .hw .hw-facts { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .hw .hw-form--end { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .hw .hw-form--end .hw-field { flex: 1 1 320px; }
  .hw .hw-form--end .hw-form-meta { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hw .hw-scene { --sc-t: 0s; --sc-anim: paused; }
  .hw .hw-zones .z { animation: none; stroke-dashoffset: 0; }
  .hw .hw-zones .h { animation: none; opacity: 1; }
  .hw .hw-legs a, .hw .hw-go { transition: none; }
}

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
html.lenis.lenis-stopped { overflow: hidden; }

/* pass 43 (REF §1.5): the hero's longer arms read smaller; HW-4's line under step 3 */
.hw-title .hw-title-long { font-size: 0.62em; line-height: 1.12; }   /* never set display here: it would beat [hidden] */
.hw-why { margin-top: 10px; }

/* pass 44: right-sized photos arrive in a <picture>; it takes no box, so every rule written for the img still applies */
.hw picture { display: contents; }
