/* /how-it-works: the steps as scenes. Each scene pins to the screen and the
   next slides over it. A blurred photograph fills the scene; the same
   photograph, sharp, sits in a frame with a piece of the app laid over it.
   The step itself reads on the left, on one shared grid: number, title,
   lead, three points, actions. "How this step works" opens the full detail
   in a side sheet. Builds on landing.css, pages.css and system.css (tokens). */

.hw-scenes { position: relative; }
.hw-scene {
  position: sticky; top: 0; z-index: 1; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 520px) minmax(300px, 420px); justify-content: space-between; align-items: center; column-gap: clamp(40px, 6vw, 120px);
  height: 100vh; height: 100svh; min-height: 700px; padding: 110px max(var(--gutter), calc((100vw - 1180px) / 2)) 96px;
  background: var(--c-noir); box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.55);
}
/* the blurred photograph, and a vignette so the words stay readable */
.hw-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hw-bg img { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(42px) saturate(1.15) brightness(0.56); }
/* each scene glows in one of the site's colours, strongest behind the frame */
.hw-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 40% 60% at 72% 52%, var(--hw-tint, rgba(107, 26, 48, 0.5)), transparent 72%); mix-blend-mode: screen; }
.hw-scene[data-tint="wine"] { --hw-tint: rgba(107, 26, 48, 0.55); }
.hw-scene[data-tint="forest"] { --hw-tint: rgba(30, 74, 56, 0.6); }
.hw-scene[data-tint="gold"] { --hw-tint: rgba(199, 166, 92, 0.24); }
.hw-scene[data-tint="plum"] { --hw-tint: rgba(74, 44, 82, 0.6); }
.hw-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 70% 80% at 50% 50%, transparent 30%, rgba(11, 10, 12, 0.55) 100%),
  linear-gradient(90deg, rgba(11, 10, 12, 0.78) 0%, rgba(11, 10, 12, 0.35) 45%, transparent 70%); }

/* ---------- the step, on one left-aligned grid ---------- */
.hw-panel { display: grid; justify-items: start; max-width: 520px; }
.hw-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.hw-num { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; font-family: var(--type-display); font-style: italic; font-weight: 300; font-size: 19px; color: var(--c-gold-bright); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.55); }
.hw-label { font-family: var(--type-serif); font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-gold-bright); }
.hw-kicker .hw-label::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 1px; margin-right: 14px; background: rgba(199, 166, 92, 0.55); }
.hw-title { margin: 0; font-family: var(--type-serif); font-weight: 400; font-size: clamp(42px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -0.02em; color: var(--text-1); }
.hw-title span, .hw-title em { display: block; }
.hw-title em { font-family: var(--type-display); font-style: italic; font-weight: 300; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 0.08em 0.12em 0; }
.hw-lead { margin: 22px 0 0; max-width: 44ch; font-family: var(--type-serif); font-size: var(--fs-md); line-height: 1.6; color: rgba(242, 236, 223, 0.86); }
.hw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.hw-more { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 0; border-radius: var(--radius-pill); background: rgba(242, 236, 223, 0.04); font-family: var(--type-serif); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-1); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.5); cursor: pointer; transition: background var(--dur-2) ease, box-shadow var(--dur-2) ease; }
.hw-more:hover { background: rgba(199, 166, 92, 0.1); box-shadow: inset 0 0 0 1px var(--c-gold-bright); }
.hw-more:focus-visible { outline: 2px solid var(--c-gold-bright); outline-offset: 3px; }
.hw-more svg { width: 16px; height: 16px; fill: none; stroke: var(--c-gold-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-2) var(--ease-out); }
.hw-more:hover svg { transform: translateX(3px); }
.hw-actions .btn { margin: 0; }

/* the frame: the same photograph, sharp */
.hw-frame { position: relative; margin: 0; width: 100%; aspect-ratio: 3 / 3.6; max-height: calc(100svh - 220px); justify-self: end; overflow: hidden; border-radius: var(--radius-lg); background: #120d10; box-shadow: var(--shadow-4), inset 0 0 0 1px rgba(199, 166, 92, 0.22); }
.hw-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.86); }
.hw-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11, 10, 12, 0.75)); pointer-events: none; }
.hw-ui { position: absolute; z-index: 2; }

/* the step numbers, pinned to the bottom left while the scenes pass */
.hw-steps { position: sticky; bottom: 28px; z-index: 20; display: flex; gap: var(--space-2); height: 40px; margin-top: -40px; padding-left: max(var(--gutter), calc((100vw - 1180px) / 2)); pointer-events: none; }
.hw-steps a { pointer-events: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--type-serif); font-size: 12px; color: var(--text-3); transition: color var(--dur-2) ease, background var(--dur-3) ease, box-shadow var(--dur-3) ease; }
.hw-steps a:hover { color: var(--text-1); }
.hw-steps a[aria-current="step"] { color: var(--c-noir); background: var(--accent-fill); box-shadow: 0 0 18px rgba(228, 198, 135, 0.4); }

/* ---------- the pieces of the app, one per scene ---------- */
.hw-tags { left: 14px; right: 14px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.hw-tags span, .hw-reasons span, .hw-corner { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--radius-pill); font-family: var(--type-serif); font-size: 13px; color: var(--text-1); background: rgba(11, 10, 12, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.18); }
.hw-tags i { width: 7px; height: 7px; border-radius: 50%; }
.hw-tags .into { background: var(--c-gold-bright); }
.hw-tags .curious { background: var(--c-forest-bright); }
.hw-tags .soft { background: #D99A5B; }
.hw-tags .hard { background: var(--danger); }

.hw-card { left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; padding: 16px; border-radius: var(--radius-md); background: rgba(14, 12, 15, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.14), var(--shadow-2); font-family: var(--type-serif); }
.hw-card > b { font-weight: 400; font-size: 18px; color: var(--text-1); margin-bottom: 2px; }
.hw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.hw-row small { display: block; font-family: var(--type-serif); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.hw-row small.black { color: var(--tier-black); }
.hw-row i.ok { position: relative; flex: 0 0 18px; height: 18px; border-radius: 50%; background: rgba(78, 156, 121, 0.9); }
.hw-row i.ok::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid #0b0a0c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hw-pill { justify-self: start; margin-top: 4px; padding: 5px 12px; border-radius: var(--radius-pill); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #dff3e8; background: rgba(30, 74, 56, 0.9); }
.hw-pill--gold { color: var(--c-noir); background: var(--accent-fill); }
.hw-row i.sw { position: relative; flex: 0 0 38px; height: 22px; border-radius: var(--radius-pill); background: rgba(242, 236, 223, 0.15); }
.hw-row i.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-1); }
.hw-row i.sw.on { background: var(--accent-fill); }
.hw-row i.sw.on::after { left: 19px; background: var(--c-noir); }

.hw-masks { left: 12px; right: 12px; bottom: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hw-masks span { display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: var(--radius-md); background: rgba(11, 10, 12, 0.66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.14); font-family: var(--type-serif); }
.hw-masks img { width: 64px; height: 40px; object-fit: contain; margin-bottom: 4px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.hw-masks b { font-family: var(--type-display); font-style: italic; font-weight: 300; font-size: 18px; }
.hw-masks small { font-size: 10.5px; color: var(--text-2); }
.hw-masks .silver b { color: var(--tier-silver); }
.hw-masks .gold b { background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-masks .black b { color: var(--tier-black); }

.hw-corner { top: 14px; right: 14px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-gold-bright); }
.hw-profile { left: 18px; right: 18px; bottom: 18px; display: grid; gap: 2px; font-family: var(--type-serif); }
.hw-profile b { font-weight: 400; font-size: 26px; color: var(--text-1); }
.hw-profile small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.hw-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hw-reasons span { padding: 5px 10px; font-size: 11px; color: #dff3e8; background: rgba(30, 74, 56, 0.85); box-shadow: none; }

.hw-chat { left: 14px; right: 14px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; font-family: var(--type-serif); font-size: 14px; line-height: 1.4; }
.hw-chat span { max-width: 82%; padding: 9px 13px; border-radius: 16px; }
.hw-chat .them { align-self: flex-start; color: var(--text-1); background: rgba(14, 12, 15, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-left-radius: 5px; }
.hw-chat .me { align-self: flex-end; color: #f6eedd; background: linear-gradient(150deg, rgba(122, 30, 56, 0.95), rgba(70, 15, 31, 0.97)); box-shadow: inset 0 0 0 1px rgba(228, 198, 135, 0.22); border-bottom-right-radius: 5px; }
.hw-chat .terms { align-self: flex-end; display: grid; color: var(--text-1); background: linear-gradient(160deg, #19131b, #0c0a0d); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.55); border-bottom-right-radius: 5px; }
.hw-chat .terms b { font-family: var(--type-display); font-style: italic; font-weight: 300; font-size: 16px; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-chat .terms small { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold-bright); }

/* ---------- the detail sheet ---------- */
html.hw-sheet-open { overflow: hidden; }
.hw-sheet { position: fixed; inset: 0 0 0 auto; width: min(560px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: var(--text-1); background: transparent; overflow: visible; }
.hw-sheet::backdrop { background: rgba(6, 5, 7, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: hsFade 0.3s ease both; }
.hw-sheet[open] .hs-inner { animation: hsIn 0.42s var(--ease-out) both; }
.hw-sheet.closing .hs-inner { animation: hsOut 0.22s ease-in both; }
.hw-sheet.closing::backdrop { animation: hsFade 0.22s ease-in reverse both; }
.hs-inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; background: radial-gradient(120% 40% at 100% 0%, rgba(107, 26, 48, 0.28), transparent 60%), linear-gradient(180deg, #141015, #0b0a0c); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6), inset 1px 0 0 rgba(199, 166, 92, 0.4); }
.hs-head { position: relative; padding: 34px 40px 22px; border-bottom: 1px solid rgba(199, 166, 92, 0.18); }
.hs-head .hw-kicker { margin-bottom: 14px; padding-right: 52px; }
.hs-head h3 { margin: 0; padding-right: 40px; font-family: var(--type-display); font-style: italic; font-weight: 300; font-size: clamp(30px, 3vw, 38px); line-height: 1.1; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.1em; }
.hs-close { position: absolute; top: 26px; right: 26px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(242, 236, 223, 0.05); color: var(--text-1); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.14); transition: background var(--dur-2) ease; }
.hs-close:hover { background: rgba(242, 236, 223, 0.12); }
.hs-close svg, .hs-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hs-body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 40px 32px; scrollbar-width: thin; scrollbar-color: rgba(199, 166, 92, 0.35) transparent; }
.hs-body section { padding: 24px 0 4px; }
.hs-body section + section { border-top: 1px solid rgba(199, 166, 92, 0.1); margin-top: 20px; }
.hs-body h4 { margin: 0 0 14px; font-family: var(--type-serif); font-weight: 400; font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-gold); }
.hs-p, .hs-body li, .hs-tiers p { font-family: var(--type-serif); font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.hs-p { margin: 0; }
.hs-body b { font-weight: 400; color: var(--text-1); }
.hs-body em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-gold-bright); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.45); white-space: nowrap; }
/* numbered steps on a gold thread */
.hs-steps { list-style: none; margin: 0; padding: 0; counter-reset: hs; }
.hs-steps li { position: relative; counter-increment: hs; padding: 0 0 18px 46px; }
.hs-steps li::before { content: counter(hs); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--type-display); font-style: italic; font-size: 15px; color: var(--c-gold-bright); background: #141015; box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.55); z-index: 1; }
.hs-steps li::after { content: ""; position: absolute; left: 15px; top: 28px; bottom: 0; width: 1px; background: rgba(199, 166, 92, 0.25); }
.hs-steps li:last-child { padding-bottom: 0; }
.hs-steps li:last-child::after { display: none; }
.hs-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hs-notes li { position: relative; padding-left: 22px; }
.hs-notes li::before { content: "\2726"; position: absolute; left: 0; top: 1px; font-size: 10px; color: var(--c-gold); }
.hs-yes li::before { content: "\2713"; font-size: 13px; color: #7fc4a2; }
.hs-no li::before { content: "\2715"; font-size: 12px; color: #d7838f; }
.hs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hs-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hs-legend li { display: grid; grid-template-columns: 10px 100px 1fr; align-items: baseline; gap: 12px; }
.hs-legend i { width: 9px; height: 9px; border-radius: 50%; }
.hs-legend .into { background: var(--c-gold-bright); } .hs-legend .curious { background: var(--c-forest-bright); } .hs-legend .soft { background: #D99A5B; } .hs-legend .hard { background: var(--danger); }
.hs-tiers { display: grid; gap: 10px; }
.hs-tiers > div { padding: 14px 16px; border-radius: var(--radius-md); background: rgba(242, 236, 223, 0.03); box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.08); }
.hs-tiers b { font-family: var(--type-display); font-style: italic; font-weight: 300; font-size: 22px; }
.hs-tiers small { margin-left: 10px; font-family: var(--type-serif); font-size: 12px; letter-spacing: 0.08em; color: var(--text-3); }
.hs-tiers p { margin: 6px 0 0; font-size: 14.5px; }
.hs-tiers .silver b { color: var(--tier-silver); } .hs-tiers .gold b { background: var(--accent-text); -webkit-background-clip: text; background-clip: text; color: transparent; } .hs-tiers .black b { color: var(--tier-black); }
.hs-table { width: 100%; border-collapse: collapse; font-family: var(--type-serif); font-size: 14.5px; }
.hs-table th, .hs-table td { padding: 10px 6px; border-bottom: 1px solid rgba(242, 236, 223, 0.07); text-align: center; color: var(--text-2); font-weight: 400; }
.hs-table thead th { font-family: var(--type-display); font-style: italic; font-size: 17px; color: var(--text-1); }
.hs-table tbody th { text-align: left; color: var(--text-1); }
.hs-aside { margin: 22px 0 0; padding: 14px 16px; border-radius: var(--radius-md); font-family: var(--type-serif); font-size: 14px; line-height: 1.55; color: var(--text-2); background: rgba(199, 166, 92, 0.06); box-shadow: inset 2px 0 0 var(--c-gold); }
.hs-link { margin: 22px 0 0; }
.hs-link a { font-family: var(--type-serif); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gold-bright); text-decoration: none; border-bottom: 1px solid rgba(199, 166, 92, 0.5); padding-bottom: 2px; }
.hs-link a::after { content: " \2192"; }
.hs-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 28px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(199, 166, 92, 0.18); background: rgba(11, 10, 12, 0.6); }
.hs-nav { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; border: 0; background: none; font-family: var(--type-serif); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); cursor: pointer; transition: color var(--dur-2) ease; }
.hs-nav:hover { color: var(--text-1); }
.hs-nav span { white-space: nowrap; }
.hs-nav[data-dir="-1"] { justify-self: start; } .hs-nav[data-dir="1"] { justify-self: end; }
.hs-foot .btn { margin: 0; }
@keyframes hsIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes hsOut { to { transform: translateX(40px); opacity: 0; } }
@keyframes hsFade { from { opacity: 0; } }

/* ---------- arriving: the step rises, the frame settles, the app pieces follow ---------- */
.hw-kicker, .hw-title span, .hw-title em, .hw-lead, .hw-actions, .hw-frame, .hw-ui { transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out); }
.hw-scenes.js .hw-scene:not(.in) :is(.hw-kicker, .hw-title span, .hw-title em, .hw-lead, .hw-actions) { opacity: 0; transform: translateY(22px); }
.hw-scenes.js .hw-scene:not(.in) .hw-frame { opacity: 0; transform: scale(0.94); }
.hw-scenes.js .hw-scene:not(.in) .hw-ui { opacity: 0; transform: translateY(14px); }
.hw-scene.in .hw-title em { transition-delay: 0.06s; }
.hw-scene.in .hw-lead { transition-delay: 0.14s; }
.hw-scene.in .hw-actions { transition-delay: 0.62s; }
.hw-scene.in .hw-frame { transition-delay: 0.05s; }
.hw-scene.in .hw-ui { transition-delay: 0.45s; }

/* ---------- shorter desktop screens: tighten the rhythm ---------- */
@media (min-width: 961px) and (max-height: 760px) {
  .hw-scene { padding-top: 96px; padding-bottom: 80px; }
  .hw-kicker { margin-bottom: 16px; }
  .hw-title { font-size: clamp(38px, 3.8vw, 56px); }
  .hw-lead { margin-top: 16px; }
  .hw-chips { margin-top: 18px; }
  .hw-actions { margin-top: 20px; }
}
/* ---------- smaller screens: the scenes stack instead of pinning ---------- */
@media (max-width: 960px) {
  .hw-scene { position: relative; grid-template-columns: 1fr; justify-content: stretch; height: auto; min-height: 0; row-gap: var(--space-6); padding: 80px var(--gutter) 80px; box-shadow: none; }
  .hw-scene::after { background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 20%, rgba(11, 10, 12, 0.6) 100%); }
  .hw-frame { max-width: 380px; justify-self: center; }
  .hw-steps { display: none; }
  .hw-title { font-size: clamp(40px, 11vw, 60px); }
}
@media (max-width: 600px) {
  .hw-sheet { inset: auto 0 0 0; width: 100vw; height: min(88dvh, 100%); }
  .hs-inner { border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(199, 166, 92, 0.4); }
  .hw-sheet[open] .hs-inner { animation-name: hsUp; }
  .hw-sheet.closing .hs-inner { animation-name: hsDown; }
  .hs-head { padding: 26px 22px 18px; }
  .hs-close { top: 18px; right: 16px; }
  .hs-head .hw-kicker .hw-label::before { display: none; }
  .hs-body { padding: 4px 22px 28px; }
  .hs-split { grid-template-columns: 1fr; gap: 18px; }
  .hs-legend li { grid-template-columns: 10px 86px 1fr; }
  .hs-foot { padding-left: 16px; padding-right: 16px; }
  .hs-nav span { display: none; }
  .hw-actions { width: 100%; }
  .hw-more { flex: 1 1 100%; justify-content: center; }
  .hw-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@keyframes hsUp { from { transform: translateY(60px); opacity: 0; } }
@keyframes hsDown { to { transform: translateY(60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hw-scenes.js .hw-scene:not(.in) :is(.hw-kicker, .hw-title span, .hw-title em, .hw-lead, .hw-actions, .hw-frame, .hw-ui) { opacity: 1; transform: none; }
  .hw-sheet[open] .hs-inner, .hw-sheet.closing .hs-inner, .hw-sheet::backdrop { animation: none; }
}

/* =====================================================================
   Motion first: each step is told by its animation, with few words.
   ===================================================================== */

/* the three chips under the lead: icon + a few words, drawn in one by one */
.hw-chips { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 520px; margin: 26px 0 0; padding: 0; }
.hw-chips li { display: grid; justify-items: start; gap: 10px; padding: 14px 14px 13px; border-radius: var(--radius-md); background: rgba(242, 236, 223, 0.035); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.18); font-family: var(--type-serif); font-size: 14px; line-height: 1.3; color: var(--text-1); }
.hw-chips .ic { width: 22px; height: 22px; fill: none; stroke: var(--c-gold-bright); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hw-chips .ic path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hw-scenes.js .hw-scene:not(.in) .hw-chips li { opacity: 0; transform: translateY(14px); }
.hw-chips li { transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-spring); }
.hw-scene.in .hw-chips li:nth-child(1) { transition-delay: 0.3s; } .hw-scene.in .hw-chips li:nth-child(2) { transition-delay: 0.42s; } .hw-scene.in .hw-chips li:nth-child(3) { transition-delay: 0.54s; }
.hw-scene.in .hw-chips .ic path { animation: hwDraw 1.1s ease 0.5s both; }
.hw-scene.in .hw-chips li:nth-child(2) .ic path { animation-delay: 0.65s; } .hw-scene.in .hw-chips li:nth-child(3) .ic path { animation-delay: 0.8s; }
@keyframes hwDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- the story in the sheet: four moments that play by themselves ---------- */
.hs-story { position: relative; margin: 22px 0 6px; padding: 18px 0 8px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.hs-bars { display: grid; grid-auto-flow: column; gap: 6px; margin-bottom: 26px; }
.hs-bars i { height: 2px; border-radius: 2px; background: rgba(242, 236, 223, 0.14); overflow: hidden; }
.hs-bars i::after { content: ""; display: block; height: 100%; width: 100%; background: var(--c-gold-bright); transform-origin: left; transform: scaleX(0); }
.hs-bars i.done::after { transform: scaleX(1); }
.hs-bars i.on::after { animation: hsBar var(--beat, 3.2s) linear forwards; }
.hs-story.paused .hs-bars i.on::after { animation-play-state: paused; }
@keyframes hsBar { to { transform: scaleX(1); } }
.hs-beats { list-style: none; margin: 0; padding: 0; display: grid; }
.hs-beats li { grid-area: 1 / 1; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 6px 0 4px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.6s var(--ease-out), visibility 0s linear 0.45s; }
.hs-beats li.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hb-ic { position: relative; display: grid; place-items: center; width: 116px; height: 116px; margin-bottom: 8px; border-radius: 50%; background: radial-gradient(circle, rgba(199, 166, 92, 0.16), transparent 70%); box-shadow: inset 0 0 0 1px rgba(199, 166, 92, 0.35); }
.hb-ic::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(199, 166, 92, 0.18); }
.hb-ic::after { content: ""; position: absolute; top: -12px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--c-gold-bright); box-shadow: 0 0 10px var(--c-gold-bright); transform-origin: 3px 70px; }
.hs-beats li.on .hb-ic::after { animation: hbOrbit 3.2s linear infinite; }
@keyframes hbOrbit { to { transform: rotate(360deg); } }
.hb-ic .ic { width: 52px; height: 52px; fill: none; stroke: var(--c-gold-bright); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(228, 198, 135, 0.35)); }
.hb-ic .ic path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hs-beats li.on .hb-ic .ic path { animation: hwDraw 1.2s ease 0.1s forwards; }
.hs-beats li.on .hb-ic { animation: hbIn 0.7s var(--ease-spring) both; }
@keyframes hbIn { from { transform: scale(0.82); } }
.hs-beats b { display: block; font-family: var(--type-display); font-style: italic; font-weight: 300; font-size: 30px; line-height: 1.15; color: transparent; background: var(--accent-text); -webkit-background-clip: text; background-clip: text; padding: 0 0.06em 0.1em; }
.hs-beats small { display: block; max-width: 30ch; font-family: var(--type-serif); font-size: 16px; line-height: 1.5; color: var(--text-2); }
.hs-tap { margin: 14px 0 0; text-align: center; font-family: var(--type-serif); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.hs-story:focus-visible { outline: 2px solid var(--c-gold-bright); outline-offset: 6px; border-radius: var(--radius-md); }


@media (max-width: 960px) { .hw-chips { max-width: none; } }
@media (max-width: 600px) {
  .hw-chips { grid-template-columns: 1fr; gap: 8px; }
  .hw-chips li { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; padding: 12px 14px; }
  .hb-ic { width: 100px; height: 100px; } .hb-ic::after { transform-origin: 3px 62px; }
  .hs-beats b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-scene.in :is(.hw-tags span, .hw-card .hw-row, .hw-card .hw-pill, .hw-reasons span, .hw-chat > span, .hw-chat .terms small, .hw-row i.ok, .hw-scan, .hw-masks span, .hw-profile, .hw-corner, .hw-frame > img, .hw-toggles i.sw), .hw-scene.in .hw-toggles i.sw::after, .hw-scene.in .hw-chips .ic path { animation: none !important; }
  .hw-scan { display: none; }
  .hw-scenes.js .hw-scene:not(.in) .hw-chips li { opacity: 1; transform: none; }
  .hs-bars, .hs-tap { display: none; }
  .hs-story { cursor: default; }
  .hs-beats { gap: 28px; }
  .hs-beats li { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
  .hs-beats li .hb-ic .ic path { stroke-dashoffset: 0; animation: none; }
  .hs-beats li .hb-ic::after, .hs-beats li.on .hb-ic { animation: none; }
}

/* the full detail, always open, under the story */
.hs-all { margin-top: 18px; border-top: 1px solid rgba(199, 166, 92, 0.18); }
.hs-all-h { display: flex; align-items: center; gap: 14px; margin: 0; padding: 22px 0 2px; font-family: var(--type-serif); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-1); }
.hs-all-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(199, 166, 92, 0.4), transparent); }
.hs-all > section:first-of-type { padding-top: 16px; border-top: 0; margin-top: 0; }
/* Cinematic chapters and layered private dossiers. */
.hw-scene { overflow:clip; min-height:820px; column-gap:7vw; }
.hw-scene .hw-num { width:auto;height:auto;box-shadow:none;font-size:72px;line-height:.85;color:#e4c68799; }
.hw-scene .hw-label { max-width:220px;font-size:11px;line-height:1.7; }
.hw-scene .hw-label::before { display:none; }
.hw-scene .hw-title { font-size:clamp(46px,4.7vw,72px); }
.hw-scene .hw-chips { gap:16px;border-top:1px solid #c7a65c40;padding-top:20px; }
.hw-scene .hw-chips li { padding:0;border-radius:0;background:none;box-shadow:none; }
.hw-scene .hw-frame { overflow:visible;aspect-ratio:3/3.8;max-height:520px;border-radius:2px;box-shadow:none;background:transparent;margin:-60px 0 40px;isolation:isolate; }
.hw-frame::after { display:none; }
.hw-image { position:absolute;inset:0;overflow:hidden;border-radius:3px;background:#171115;box-shadow:0 30px 65px #0007; }
.hw-image>img { width:100%;height:100%;object-fit:cover;filter:grayscale(.7) brightness(.86); }
.hw-image::after { content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,#100c1099);pointer-events:none; }
.hw-folio { position:absolute;top:-26px;left:0;color:var(--c-gold-bright);font-family:var(--type-serif);font-size:10px;letter-spacing:.24em; }
.hw-dossier { position:absolute;z-index:4;width:90%;right:-24px;bottom:-60px;padding:23px 26px 16px;background:linear-gradient(125deg,#231b20,#100e11 80%);border:1px solid #a58a515c;box-shadow:0 24px 45px #0008;font-family:var(--type-serif);color:#f2ecdf;transition:opacity .7s ease .45s; }
.hw-dossier::before { content:'';position:absolute;z-index:-1;inset:8px -8px -8px 8px;background:#24151b;border:1px solid #a58a5140; }
.hw-dossier-meta { display:flex;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #c7a65c45;font-size:10px;text-transform:uppercase;letter-spacing:.16em;color:#d8be83; }
.hw-dossier h3 { margin:15px 0 17px;font-family:var(--type-display);font-size:25px;font-style:italic;font-weight:400;line-height:1.12; }
.hw-object-caption { margin:13px 0 0;padding-top:11px;border-top:1px solid #c7a65c25;font-size:10px;color:#bcb2a5;letter-spacing:.08em; }
.hw-desires { margin:0;display:grid;gap:11px; }
.hw-desires>div { display:grid;grid-template-columns:76px 1fr;align-items:baseline;gap:12px; }
.hw-desires dt { font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#e4c687; }
.hw-desires dd { margin:0;font-size:15px;line-height:1.5; }
.hw-desires dd>span { padding:0 5px;color:#a28a63; }
.hw-desires .curious dt { color:#8fc9ac; }
.hw-desires .boundaries { padding-top:10px;border-top:1px solid #c7a65c25; }
.hw-desires small { display:inline-block;min-width:63px;font-size:11px;color:#c6b9aa; }
.hw-dossier :is(.hw-card,.hw-masks,.hw-profile,.hw-chat) { position:static;padding:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none; }
.hw-dossier .hw-card { gap:11px; }
.hw-dossier .hw-card>b { display:none; }
.hw-dossier .hw-row { font-size:15px; }
.hw-dossier .hw-pill { margin-top:5px;border-radius:2px;padding:6px 10px;font-size:10px; }
.hw-dossier--2 { border-top:2px solid #75a78c; }
.hw-dossier--3 { transform:rotate(-2deg); }
.hw-dossier--3 .hw-row { padding-left:14px;border-left:1px solid #c7a65c66; }
.hw-dossier--4 { width:106%;right:-18px; }
.hw-dossier .hw-masks { gap:0; }
.hw-dossier .hw-masks span { background:none;box-shadow:none;border-radius:0;padding:5px 6px; }
.hw-dossier .hw-masks span+span { border-left:1px solid #c7a65c33; }
.hw-dossier .hw-masks b { font-size:23px; }
.hw-dossier .hw-profile { gap:5px; }
.hw-dossier .hw-profile b { font-size:31px; }
.hw-dossier .hw-reasons { gap:0;display:grid; }
.hw-dossier .hw-reasons span { background:none;border-radius:0;padding:6px 0;color:#b7dac6;box-shadow:none;font-size:14px;border-bottom:1px solid #c7a65c20; }
.hw-dossier .hw-chat { gap:9px;font-size:14px; }
.hw-dossier .hw-chat>span { border-radius:2px; }
.hw-dossier .hw-chat .terms { max-width:95%; }
.hw-dossier .hw-toggles { gap:14px; }
.hw-dossier .hw-row small { font-size:9px;margin-top:3px; }
.hw-weave { position:absolute;inset:0;z-index:1;pointer-events:none; }
.hw-ribbon { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(.7) brightness(.86);will-change:transform,opacity; }
.hw-image.weaving>.ds-photo { visibility:hidden; }
.hw-scenes.js .hw-scene:not(.in) .hw-frame { transform:none;opacity:1; }
.hw-scenes.js .hw-scene:not(.in) .hw-dossier { opacity:0; }
@media(max-width:900px) {
 .hw-scene { position:relative;height:auto;min-height:0;grid-template-columns:1fr;gap:65px;padding:75px max(var(--gutter),24px) 115px; }
 .hw-scene .hw-panel { max-width:600px;width:100%;justify-self:center; }
 .hw-scene .hw-frame { width:min(82%,420px);aspect-ratio:3/3.8;height:auto;max-height:none;margin:0 18px 30px 0;justify-self:center; }
 .hw-scene .hw-title { font-size:clamp(44px,8vw,65px); }
 .hw-scene .hw-num { font-size:58px; }
 .hw-steps { display:none; }
}
@media(max-width:480px) {
 .hw-scene { gap:58px;padding-bottom:95px; }
 .hw-scene .hw-frame { width:100%;margin:0;aspect-ratio:auto;padding-top:94%; }
 .hw-image { bottom:auto;height:370px; }
 .hw-dossier { position:relative;width:calc(100% - 14px);right:auto;left:7px;bottom:auto;margin-top:-28px;padding:20px 19px 14px; }
 .hw-dossier--3 { transform:none; }
 .hw-desires>div { grid-template-columns:70px 1fr;gap:8px; }
 .hw-desires dd { font-size:14px; }
 .hw-scene .hw-chips { gap:10px; }
 .hw-scene .hw-chips li { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) {
 .hw-dossier { transition:none; }
 .hw-scenes.js .hw-scene:not(.in) .hw-dossier { opacity:1; }
 .hw-weave { display:none; }
 .hw-image.weaving>.ds-photo { visibility:visible; }
}
/* Photos remain useful before script/font loading and in narrow viewports. */
.hw-image > .ds-photo { opacity:1; }
@media (max-width:480px) {
 .hw-scene .hw-frame { padding-top:0; }
 .hw-image { position:relative;inset:auto;height:340px; }
 .hw-dossier { margin-top:-26px; }
}
@media (min-width:901px) and (max-width:960px) {
 .hw-scene { min-height:0;gap:65px;padding-bottom:135px; }
 .hw-scene .hw-frame { margin:0 18px 30px 0; }
}
/* Separate the backing leaf from the front sheet inside one stacking context. */
.hw-dossier { background:transparent; }
.hw-dossier::before { z-index:-2; }
.hw-dossier::after { content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(125deg,#231b20,#100e11 80%);pointer-events:none; }
