/* Advisory rebuild (prototype, profitability first). One question, one figure. #6E9EF2 is the only data colour; losses are 35% or hatched.
   Type scale 14/17/24/32/44/64. Nothing under 13px except the 12px mono ILLUSTRATIVE tag. */
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/geist-mono-latin.woff2) format("woff2"); }
:root { --mono: "Geist Mono", ui-monospace, Menlo, monospace; --q4: cubic-bezier(.25, 1, .5, 1); --loss: rgba(110,158,242,.35);
  --hatch: repeating-linear-gradient(135deg, #6E9EF2 0 1.5px, transparent 1.5px 6px); }

.ax-tag { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 5px 7px; border: 1px solid var(--line); border-radius: 2px; }
.ax-link { color: var(--accent); text-decoration: none; font-size: 17px; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.ax-link:hover { text-decoration: underline; }
.ax-eyebrow { font: 500 14px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 16px; }

/* the walk: label | track | number, every row a direct grid child so the grid lines can span the track column */
.wf { display: grid; grid-template-columns: minmax(9.5em, 13em) minmax(0, 1fr) 3.2em; column-gap: 16px; position: relative; font-size: 15px; }
.wf-row { display: contents; }
.wf-l { grid-column: 1; align-self: center; color: var(--ink); padding: 6px 0; line-height: 1.25; transition: color .3s; }
.wf-t { grid-column: 2; position: relative; height: 34px; overflow-x: clip; }
.wf-n { grid-column: 3; align-self: center; text-align: right; font: 500 17px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.wf-bar { position: absolute; left: 0; right: 0; top: 7px; height: 20px; background: var(--accent); clip-path: inset(0 var(--r, 100%) 0 var(--l, 0%)); transition: clip-path var(--dur, 300ms) var(--q4); }
.wf-leak .wf-bar { background: var(--loss); }
.wf-prom .wf-bar { background: var(--hatch); }
.wf-neg .wf-bar { background: var(--hatch); }
.wf-run { position: absolute; left: 0; width: 100%; top: 27px; height: 14px; transform: translateX(var(--x, 0%)); transition: transform var(--dur, 300ms) var(--q4); pointer-events: none; }
.wf-run::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px dashed rgba(186,195,209,.55); }
.wf-row.dim .wf-l { color: var(--ink-3); }
.wf-row.dim .wf-n { visibility: hidden; }
.wf-row.dim .wf-run { opacity: 0; }
.wf-row.gone > * { display: none; }
.wf-drag .wf-t { cursor: ew-resize; touch-action: pan-y; }
.wf-drag .wf-t::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: var(--l, 0%); width: 2px; background: var(--accent); opacity: 0; transition: opacity .2s; }
.wf-drag:hover .wf-t::after, .wf-drag.held .wf-t::after { opacity: 1; }
.wf-grid { position: absolute; top: 0; height: 100%; pointer-events: none; overflow: visible; }
.wf-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(186,195,209,.2); transform-origin: 50% 0; }
.wf-grid i.z { background: rgba(186,195,209,.55); }
.wf-axis { grid-column: 2; position: relative; height: 24px; font: 13px/1 var(--mono); color: var(--ink-3); }
.wf-axis span { position: absolute; top: 8px; transform: translateX(-50%); }
.wf.wait .wf-grid i { transform: scaleY(0); }
.wf.go .wf-grid i { transition: transform 900ms var(--q4); }

.ax-ans { font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 20px; max-width: 28em; min-height: 2.6em; }
.ax-ans b { font: 500 1em/1 var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.ax-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 24px; margin-top: 16px; }
.ax-range label { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.ax-range output { font: 500 14px var(--mono); color: var(--ink); }
.ax-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
.ax-range input::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
.ax-range input::-moz-range-track { height: 2px; background: var(--line); }
.ax-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--ground); border: 2px solid var(--accent); }
.ax-range input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ground); border: 2px solid var(--accent); }
.ax-range input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ax-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.ax-foot .seg button { min-height: 44px; font-size: 14px; }
.ax-key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ink-2); margin: 0; padding: 0; list-style: none; }
.ax-key i { display: inline-block; width: 18px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--accent); }
.ax-key .k-loss { background: var(--loss); } .ax-key .k-prom { background: var(--hatch); }

/* deep page */
.ax-deep { font-size: 18px; }
.ax-head { padding: 160px 0 32px; }
.ax-h1 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; margin: 0; font-size: clamp(32px, 4.4vw, 64px); max-width: 17em; }
.ax-ctx { font-size: 24px; line-height: 1.35; color: var(--ink-2); margin: 28px 0 0; max-width: 30em; }
.scrolly { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 72px; padding-bottom: 96px; }
.scrolly__fig { grid-column: 2; grid-row: 1; position: sticky; top: 76px; align-self: start; padding: 24px 0 0; }
.scrolly__steps { grid-column: 1; grid-row: 1; }
.st { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; color: var(--ink-2); transition: color .3s; }
.st:first-child { min-height: 64vh; justify-content: flex-start; padding-top: 72px; }
.st:last-child { min-height: 60vh; }
.st.on { color: var(--ink); }
.st h2 { font-size: 32px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 16px; color: var(--ink); }
.st p { margin: 0 0 14px; max-width: 26em; }
.st .n { font: 500 13px/1 var(--mono); letter-spacing: .08em; color: var(--accent); margin-bottom: 16px; }
.st blockquote { margin: 8px 0 14px; font-size: 21px; line-height: 1.35; color: var(--ink); max-width: 24em; }
.st blockquote footer { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.st-show { display: none; }
.ax-loop { padding: 96px 0; border-top: 1px solid var(--line); }
.ax-loop h2, .ax-build h2, .ax-next h2 { font-size: 44px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; margin: 0 0 16px; max-width: 18em; }
.ax-loop .screen-loop { margin-top: 40px; border: 1px solid var(--line); aspect-ratio: 16 / 10; } /* the loops are 16:10, shown whole */
.ax-loop .loop-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.ax-loop .vid-toggle { position: static; }
.ax-build { padding: 96px 0; border-top: 1px solid var(--line); }
.ax-build ol { list-style: none; margin: 32px 0 0; padding: 0; max-width: 46em; }
.ax-build li { padding: 20px 0; border-top: 1px solid var(--line); font-size: 18px; color: var(--ink-2); }
.ax-build li b { color: var(--ink); font-weight: 500; display: block; font-size: 24px; letter-spacing: -0.015em; margin-bottom: 4px; }
.ax-next { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ax-next p { color: var(--ink-2); }
.ax-next .q { font-size: 24px; line-height: 1.3; color: var(--ink); letter-spacing: -0.015em; }

/* hub */
.ax-hub .head .h1 { font-size: clamp(44px, 6vw, 88px); }
.ax-hub .head__for { font: 500 14px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 20px; max-width: none; }
.ax-rows { border-top: 1px solid var(--line); }
.ax-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 88px; align-items: center; padding: 80px 0; border-bottom: 1px solid var(--line); }
.ax-row:nth-child(even) .ax-row__text { order: 2; }
.ax-row h2 { font-size: 32px; line-height: 1.18; letter-spacing: -0.022em; font-weight: 500; margin: 0; max-width: 20em; }
.ax-row .ax-say { font-size: 17px; color: var(--ink-2); margin: 20px 0 8px; max-width: 30em; }
.ax-fig { margin: 0; }
.ax-fig .ax-tag { margin-bottom: 20px; }
.ax-fig figcaption { font-size: 14px; color: var(--ink-2); margin-top: 16px; max-width: 40em; }
.ax-hub .ax-ans { font-size: 17px; min-height: 0; margin: 20px 0 8px; color: var(--ink-2); }
.ax-hub .ax-ans b { font-size: 17px; }
/* static figures */
.sf-rows { display: grid; grid-template-columns: minmax(8em, 11em) minmax(0, 1fr) auto; column-gap: 16px; row-gap: 10px; font-size: 15px; align-items: center; }
.sf-rows .sf-n { text-align: right; font: 500 15px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.sf-t { position: relative; height: 20px; display: flex; gap: 2px; }
.sf-t i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transition: transform 900ms var(--q4); }
.sf-t i.l { background: var(--loss); } .sf-t i.h { background: var(--hatch); } .sf-t i.m { background: rgba(110,158,242,.62); }
.sf-t .tick { position: absolute; top: -5px; bottom: -5px; width: 0; border-left: 1px solid var(--ink); }
.sf-svg { width: 100%; height: auto; overflow: visible; }
.sf-svg .ln { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.sf-svg .gh { fill: none; stroke: rgba(110,158,242,.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.sf-svg .ax { fill: none; stroke: rgba(186,195,209,.45); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.sf-svg .pl { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.sf-svg rect { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 900ms var(--q4); }
.sf-svg rect.hx { fill: url(#hub-hatch); }
.sf-svg circle { fill: var(--accent); }
.sf-wrap { position: relative; }
.sf-be { position: absolute; left: calc(72.2% + 10px); top: 0; max-width: 26%; font: 13px/1.3 var(--mono); color: var(--ink); }
.sf-lab { display: flex; justify-content: space-between; font: 13px/1.3 var(--mono); color: var(--ink-3); margin-top: 8px; }
.sf-lab.c5 span { flex: 1; text-align: center; }
.ax-fig.wait .sf-t i { transform: scaleX(0); }
.ax-fig.wait .sf-svg rect { transform: scaleY(0); }
.ax-fig.wait .sf-svg path { stroke-dashoffset: 1; }
.ax-fig.go .sf-svg path { transition: stroke-dashoffset 900ms var(--q4); }
.ax-fig.go .sf-svg .pl { stroke-dasharray: 4 4; }
.ax-fig.wait .sf-svg .pl { opacity: 0; } .ax-fig .sf-svg .pl { transition: opacity .6s .6s; }

@media (max-height: 780px) and (min-width: 901px) { .wf-t { height: 30px; } .wf-bar { top: 6px; height: 18px; } .wf-run { top: 24px; height: 12px; } .ax-ans { font-size: 21px; margin-bottom: 12px; } .scrolly__fig { top: 68px; padding-top: 12px; } }
@media (max-width: 900px) {
  .scrolly { grid-template-columns: 1fr; padding-bottom: 56px; }
  .scrolly__fig { grid-column: 1; grid-row: 1; position: static; padding-top: 0; }
  .scrolly__steps { grid-row: 2; }
  .st, .st:first-child, .st:last-child { min-height: 0; padding: 32px 0; border-top: 1px solid var(--line); color: var(--ink); }
  .st:first-child { margin-top: 40px; }
  .st h2 { font-size: 24px; }
  .st-show { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; margin-top: 4px; font: 500 15px var(--font); color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; align-self: flex-start; }
  .ax-head { padding: 112px 0 24px; }
  .ax-ctx { font-size: 19px; }
  .ax-loop, .ax-build { padding: 56px 0; }
  .ax-next { padding-top: 56px; padding-bottom: 56px; }
  .ax-loop h2, .ax-build h2, .ax-next h2 { font-size: 32px; }
  .ax-next { grid-template-columns: 1fr; gap: 24px; }
  .ax-row { grid-template-columns: 1fr; padding: 56px 0; gap: 28px; }
  .ax-row:nth-child(even) .ax-row__text { order: 0; }
  .ax-row h2 { font-size: 24px; }
  .wf { grid-template-columns: minmax(0, 1fr) 3em; column-gap: 12px; }
  .wf-l { grid-column: 1 / -1; padding: 8px 0 0; font-size: 14px; }
  .wf-t { grid-column: 1; height: 28px; }
  .wf-bar { top: 5px; height: 18px; }
  .wf-n { grid-column: 2; }
  .wf-run, .wf-grid { display: none; }
  .wf-axis { grid-column: 1; }
  .ax-ans { font-size: 19px; min-height: 0; }
  .sf-rows { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .sf-rows .sf-l { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-bar, .wf-run, .sf-t i, .sf-svg rect, .sf-svg path, .st, .wf-l { transition: none !important; }
}

/* who-it-is-for block under the hub hero (moved from home) */
.ax-who-sec { padding: 72px 0; border-bottom: 1px solid var(--line); }
.ax-who .h3 { font-size: 24px; line-height: 1.18; letter-spacing: -0.022em; font-weight: 500; margin: 0 0 12px; }
.ax-who { margin-top: 0; border-top: 0; padding-top: 0; }
@media (max-width: 880px) { .ax-who-sec { padding: 48px 0; } }
