/* Harbor style layout and scroll. Preview, 2026-11-27. Loaded only by PREVIEW-harbor.html. */

/* 1. the statement: pinned for a screen and a half while its words fill in */
.hb-statement { background: #f7f8f9; padding-left: var(--pad); padding-right: var(--pad); }
.hb-fill { font: 320 clamp(2rem, 4.2vw, 3.9rem)/1.12 var(--font-display); letter-spacing: -0.025em; color: #0a1829; max-width: 17em; margin: 0; padding: 5rem 0; }
.hb-fill .w { color: #c3ccd5; transition: color 0.35s ease; }
.hb-fill .w.is-on { color: #0a1829; }

/* 2. the products scene */
.hb-sec { background: #f7f8f9; padding: 0 var(--pad) 4rem; }
.hb-stage { position: relative; background: #eaeef2; border-radius: 16px; overflow: hidden; }
.hb-fig { display: grid; place-items: center; padding: clamp(1.2rem, 3vw, 3rem); }
.hb-fig svg { display: block; width: 100%; height: auto; max-height: 100%; }
.hb-steps { list-style: none; margin: 0; padding: 0; }
.hb-step { border-top: 1px solid #cfd7df; }
.hb-step:last-child { border-bottom: 1px solid #cfd7df; }
.hb-step-head { all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 1rem; width: 100%; min-height: 56px; padding: 0.85rem 0; cursor: pointer; color: #8b97a3; transition: color 0.3s; }
.hb-step-head:focus-visible { outline: 2px solid #1f4d73; outline-offset: 2px; border-radius: 4px; }
.hb-no { font: 500 1rem/1 var(--font-text); font-variant-numeric: tabular-nums; }
.hb-name { font: 330 clamp(1.45rem, 2vw, 1.85rem)/1.15 var(--font-display); letter-spacing: -0.015em; }
.hb-name .soon-flag { font: 500 0.94rem/1 var(--font-text); letter-spacing: 0; margin-left: 0.5rem; }
.hb-step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s ease; }
.hb-step-body > div { overflow: hidden; padding-left: 2.1rem; }
.hb-step-body p { font: 400 1.0625rem/1.55 var(--font-text); color: #26313d; margin: 0 0 0.9rem; max-width: 26em; }
.hb-open { display: inline-block; margin-bottom: 1.3rem; font: 500 1rem/1.4 var(--font-text); color: #0a1829; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.hb-step.is-on { border-top-color: #0a1829; }
.hb-step.is-on .hb-step-head { color: #0a1829; }
.hb-step.is-on .hb-step-body { grid-template-rows: 1fr; }
.hb-sec .dp-strip-foot { margin-top: 2.5rem; }

@media (min-width: 980px) {
  /* 2026-12-03 (James): the statement starts right under the trust lines, with no half screen gap above it, travels up
     to the middle of the screen and stops there while its words fill, as before. --hb-h is the block's height, set by harbor.js. */
  html.hb-pinned .hb-statement { height: calc(130vh + var(--hb-h, 300px)); }
  html.hb-pinned .hb-statement-pin { position: sticky; top: calc(50vh - var(--hb-h, 300px) / 2 + 32px); }
  html.hb-pinned .hb-fill { padding: 3.5rem 0; }
  html.hb-pinned .hb-scene { height: calc(var(--n) * 80vh + 100vh); }
  html.hb-pinned .hb-pin { position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding: 104px 0 28px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
  html.hb-pinned .hb-stage { height: 100%; }
  html.hb-pinned .hb-fig { position: absolute; inset: 0; opacity: 0; transform: scale(0.985); transition: opacity 0.5s ease, transform 0.7s ease; pointer-events: none; }
  html.hb-pinned .hb-fig.is-on { opacity: 1; transform: none; pointer-events: auto; }
}
@media (min-width: 980px) {
  /* product pages: figure on the stage, steps beside it */
  html.hb-pinned .pc-steps.hb-flow { display: block; height: calc(var(--n) * 50vh + 100vh); }
  html.hb-pinned .hb-flow-pin { position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding: 104px 0 28px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
  html.hb-pinned .hb-flow-stage { height: 100%; display: grid; place-items: center; padding: clamp(1.2rem, 3vw, 3rem); box-sizing: border-box; }
  html.hb-pinned .hb-flow-stage > * { width: 100%; max-width: 760px; position: static; }
  html.hb-pinned .hb-flow-stage svg { position: static; width: 100%; height: auto; max-height: 100%; }
  html.hb-pinned .hb-flow ol.flow li { transition: opacity 0.35s ease; }
  html.hb-pinned .hb-flow ol.flow li:not(.hb-cur) { opacity: 0.4; }
}
/* without pinning (phones, reduced motion): every step open, its figure above it */
html:not(.hb-pinned) .hb-step-body { grid-template-rows: 1fr; }
html:not(.hb-pinned) .hb-step-head { color: #0a1829; cursor: default; }
html:not(.hb-pinned) .hb-stage { display: none; }
html:not(.hb-pinned) .hb-step .hb-fig { background: #eaeef2; border-radius: 14px; margin: 0.4rem 0 1.2rem; }

/* 3. the other figures sit in the same tinted panels, and the hero's lower corners are rounded */
html[data-hb] main :is(#figRace, #figHub, #figPrice) { background: #eaeef2; border-radius: 16px; padding: clamp(1.4rem, 3vw, 3rem); }
html[data-hb] .section.is-wash :is(#figRace, #figHub, #figPrice) { background: #ffffff; }
@media (prefers-reduced-motion: reduce) { .hb-fill .w, .hb-fig, .hb-step-body { transition: none !important; } }
