/* How it works sections: each with its own layout, alternating base / tint / base / dark / tint /
   base / tint.
   The usual sequence: a quiet grey track (the usual order) above a solid blue band (Muon's order).
   Design at pace: the three tools as one arrow strip, filling with brand blue towards the design.
   Four levels: a stack of foundations, level 1 widest and darkest at the bottom.
   Weakest foundation: the four controls around a loop that keeps checking.
   Deliver the value: two small charts side by side, then the three-path chart.
   How we join: five steps on a line, under a band where Muon's share hands over to yours.
   Built to outlast: the claim on the left, three icon rows on the right. */

/* Small blue text: brand blue on light, brighter blue on dark (4.5:1 in both) */
.page-methodology{--hw-accent:#1b4585}
html[data-theme=dark] .page-methodology,.page-methodology .chapter-dark{--hw-accent:#9fc0f5}
.hw-tint{background:var(--surface2)}
.page-methodology main h3{margin:0;font:700 var(--t-h3,20px)/1.3 'Manrope',sans-serif;letter-spacing:-.02em;color:var(--text)}
.page-methodology main :is(.hw-track,.hw-tool,.hw-stack,.hw-loop-item,.hw-chart,.hw-join-steps,.hw-last-list) p{margin:8px 0 0;font-size:var(--t-card,17px);line-height:1.65;color:var(--muted)}
.hw-label{margin:0 0 18px;font:700 14px/1.4 'DM Sans',sans-serif;color:var(--hw-accent)}

/* ---- The usual sequence ---- */
.hw-tracks{display:grid;gap:22px}
.hw-track ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:0;list-style:none}
.hw-track-usual ol{position:relative;gap:36px}
/* the usual order: hollow grey nodes on a thin line */
.hw-track-usual ol::before{content:'';position:absolute;left:8px;right:8px;top:8px;height:1px;background:var(--line)}
.hw-track-usual li{position:relative;padding-top:36px}
.hw-track-usual li::before{content:'';position:absolute;left:0;top:0;width:17px;height:17px;border-radius:50%;box-sizing:border-box;background:var(--bg);border:2px solid #8a96a8}
/* Muon's order: one solid blue band, three segments pointing forward */
.hw-track-muon{margin-top:26px;padding-top:34px;border-top:1px solid var(--line)}
.hw-track-muon ol{gap:0;border-radius:14px;overflow:hidden;background:#1b4585}
.hw-track-muon li{position:relative;padding:26px 44px 26px 30px}
.hw-track-muon li+li{background:linear-gradient(90deg,rgba(255,255,255,.07),transparent 60%)}
.hw-track-muon li:not(:last-child)::after{content:'';position:absolute;right:-1px;top:50%;width:22px;height:22px;
  border-top:2px solid rgba(255,255,255,.55);border-right:2px solid rgba(255,255,255,.55);transform:translate(-14px,-50%) rotate(45deg)}
.hw-track-muon h3{color:#fff!important}
.hw-track-muon li p{color:#d6e2f5!important;margin-top:6px!important}
html[data-theme=dark] .hw-track-muon ol{background:#1d4a8f;box-shadow:inset 0 0 0 1px rgba(159,192,245,.25)}

/* ---- Design at pace: the tool strip ---- */
.hw-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:0;list-style:none}
.hw-tool{position:relative;padding:34px 58px 36px 50px;background:var(--surface);
  clip-path:polygon(0 0,calc(100% - 30px) 0,100% 50%,calc(100% - 30px) 100%,0 100%,30px 50%)}
.hw-tool:first-child{padding-left:34px;border-radius:16px 0 0 16px;clip-path:polygon(0 0,calc(100% - 30px) 0,100% 50%,calc(100% - 30px) 100%,0 100%)}
.hw-tool:nth-child(2){background:#dfe8f5}
.hw-tool:last-child{padding-right:36px;background:#1b4585;border-radius:0 16px 16px 0;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,30px 50%)}
html[data-theme=dark] .hw-tool{background:#102036}
html[data-theme=dark] .hw-tool:nth-child(2){background:#16305a}
html[data-theme=dark] .hw-tool:last-child{background:#1d4a8f}
.hw-tool svg{width:36px;height:36px;fill:none;stroke:var(--hw-accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hw-tool h3{margin-top:18px!important;font-size:var(--t-h3l,26px)!important;letter-spacing:-.035em!important}
.hw-tool:last-child svg{stroke:#cfe0fa}
.hw-tool:last-child h3{color:#fff!important}
.hw-tool:last-child p{color:#d6e2f5!important}

/* ---- Four levels: a stack of foundations ---- */
.hw-levels-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(40px,6vw,96px);align-items:end}
.hw-levels-grid .section-intro{display:block;margin:0}
.hw-levels-grid .intro-side{margin:24px 0 0;max-width:460px}
.hw-stack{display:flex;flex-direction:column-reverse;gap:6px;margin:0;padding:0;list-style:none}
.hw-stack li{margin-inline:auto;padding:22px 28px;border-radius:12px;color:#fff;background:var(--lv)}
.hw-stack li:nth-child(1){width:100%;--lv:#143468}
.hw-stack li:nth-child(2){width:91%;--lv:#1b4585}
.hw-stack li:nth-child(3){width:82%;--lv:#24529a}
.hw-stack li:nth-child(4){width:73%;--lv:#2c5ea8}
html[data-theme=dark] .hw-stack li{box-shadow:inset 0 0 0 1px rgba(159,192,245,.2)}
.hw-stack-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.hw-stack-head span{font:700 14px/1.4 'DM Sans',sans-serif;color:#cfe0fa}
.hw-stack h3{color:#fff!important}
.hw-stack p{margin-top:6px!important;color:#dbe6f6!important}

/* ---- Weakest foundation: the control loop ---- */
.hw-loop-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px) minmax(0,1fr);grid-template-areas:"a ring b" "d ring c";gap:34px 48px;align-items:center}
.hw-loop-item{padding-top:18px;border-top:1px solid var(--line)}
.hw-loop-item:nth-child(1){grid-area:a}.hw-loop-item:nth-child(2){grid-area:b}
.hw-loop-item:nth-child(3){grid-area:c}.hw-loop-item:nth-child(4){grid-area:d}
.hw-loop-item:nth-child(1),.hw-loop-item:nth-child(4){text-align:right}
.hw-loop-item:nth-child(2),.hw-loop-item:nth-child(3){text-align:left}
.hw-ring{grid-area:ring;position:relative;aspect-ratio:1}
.hw-ring svg{width:100%;height:100%;overflow:visible}
.hw-ring-track{fill:none;stroke:rgba(159,192,245,.35);stroke-width:1.5}
.hw-ring-node{fill:#07172c;stroke:#9fc0f5;stroke-width:2}
.hw-ring-node.is-key{fill:#faa61a;stroke:#faa61a}
.hw-ring-head{fill:#9fc0f5}
.hw-ring p{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:22%;text-align:center;
  font:700 var(--t-card,17px)/1.4 'Manrope',sans-serif;letter-spacing:-.01em;color:var(--text)}

/* ---- Deliver the value: two charts and the paths ---- */
.hw-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.hw-chart{display:flex;flex-direction:column;padding:30px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.hw-chart h3{font-size:var(--t-h3l,26px)!important;letter-spacing:-.035em!important}
.hw-bars{display:grid;gap:18px;margin:26px 0 6px}
.hw-bar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:baseline}
.hw-bar-row span{font-size:15px;color:var(--text)}
.hw-bar-row b{font:700 clamp(28px,2.6vw,38px)/1 'Manrope',sans-serif;letter-spacing:-.04em;color:var(--hw-accent)}
.hw-bar{grid-column:1/-1;height:14px;border-radius:7px;background:var(--surface2);box-shadow:inset 0 0 0 1px var(--line)}
.hw-bar i{display:block;height:100%;width:var(--v);border-radius:inherit;background:#1b4585}
html[data-theme=dark] .hw-bar i{background:#4f86d9}
.hw-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end;height:190px;margin:26px 0 0;padding:0;list-style:none;border-bottom:1px solid var(--line)}
.hw-cols li{display:flex;flex-direction:column;justify-content:flex-end;height:100%;text-align:center}
.hw-cols b{font:700 17px/1 'Manrope',sans-serif;color:var(--text);margin-bottom:8px}
.hw-cols i{display:block;height:calc(var(--v) * 1%);border-radius:8px 8px 0 0;background:#c3d3ea}
.hw-cols li:nth-child(2) i{background:#1b4585}
html[data-theme=dark] .hw-cols i{background:#2d4566}
html[data-theme=dark] .hw-cols li:nth-child(2) i{background:#4f86d9}
.hw-cols-labels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0 0;padding:0;list-style:none;text-align:center;font-size:14px;color:var(--muted)}
.hw-chart .hw-note{margin-top:auto!important;padding-top:18px;font-size:var(--t-note,13px)!important;color:var(--muted)}
.hw-chart>p:not(.hw-note){margin-top:14px!important}
.page-methodology .hw-value .deck-chart{margin-top:18px}
.page-methodology .hw-value .deck-chart svg g[stroke] path{fill:none} /* grid lines only, no filled shape */

/* ---- How we join: steps under the hand-over band ---- */
.hw-handover{position:relative;margin:0 0 30px}
.hw-handover svg{display:block;width:100%;height:70px}
.hw-handover-muon{fill:#1b4585}
.hw-handover-you{fill:#faa61a}
html[data-theme=dark] .hw-handover-muon{fill:#4f86d9}
.hw-handover-keys{display:flex;justify-content:space-between;gap:20px;margin:12px 0 0;font:700 14px/1.4 'DM Sans',sans-serif;color:var(--text)}
.hw-handover-keys span{display:inline-flex;align-items:center;gap:8px}
.hw-handover-keys span::before{content:'';width:12px;height:12px;border-radius:3px;background:#1b4585}
.hw-handover-keys span+span::before{background:#faa61a}
html[data-theme=dark] .hw-handover-keys span:first-child::before{background:#4f86d9}
.hw-join-steps{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:26px;margin:0;padding:0;list-style:none;counter-reset:hw}
.hw-join-steps::before{content:'';position:absolute;left:17px;right:17px;top:17px;height:2px;background:var(--line)}
.hw-join-steps li{position:relative;counter-increment:hw;padding-top:56px}
.hw-join-steps li::before{content:counter(hw);position:absolute;left:0;top:0;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
  background:var(--bg);box-shadow:inset 0 0 0 2px var(--hw-accent);font:700 15px/1 'Manrope',sans-serif;color:var(--hw-accent)}

/* ---- Built to outlast ---- */
.hw-last-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(40px,7vw,110px);align-items:start}
.hw-last-grid .section-intro{display:block;margin:0;position:sticky;top:120px}
.hw-last-grid .intro-side{margin:24px 0 0}
.hw-last-list{margin:0;padding:0;list-style:none}
.hw-last-list li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:22px;padding:28px 0;border-top:1px solid var(--line)}
.hw-last-list li:last-child{border-bottom:1px solid var(--line)}
.hw-last-list svg{width:56px;height:56px;padding:13px;box-sizing:border-box;border-radius:14px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);
  fill:none;stroke:var(--hw-accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:980px){
  .hw-tools{grid-template-columns:1fr;gap:6px}
  .hw-tool,.hw-tool:first-child,.hw-tool:last-child{padding:28px 28px 46px;border-radius:0;
    clip-path:polygon(0 0,100% 0,100% calc(100% - 22px),50% 100%,0 calc(100% - 22px))}
  .hw-tool:first-child{border-radius:16px 16px 0 0}
  .hw-tool:last-child{padding-bottom:30px;border-radius:0 0 16px 16px;clip-path:none}
  .hw-levels-grid,.hw-last-grid{grid-template-columns:1fr}
  .hw-last-grid .section-intro{position:static}
  .hw-loop-grid{grid-template-columns:1fr 1fr;grid-template-areas:"ring ring" "a b" "d c"}
  .hw-ring{width:min(280px,70%);margin:0 auto}
  .hw-loop-item:nth-child(n){text-align:left}
  .hw-charts{grid-template-columns:1fr}
  .hw-join-steps{grid-template-columns:1fr;gap:0}
  .hw-join-steps::before{left:17px;right:auto;top:18px;bottom:18px;width:2px;height:auto}
  .hw-join-steps li{padding:0 0 28px 60px}
}
@media(max-width:700px){
  .hw-track ol{grid-template-columns:1fr}
  .hw-track-usual ol{gap:22px}
  .hw-track-usual ol::before{left:8px;right:auto;top:8px;bottom:8px;width:1px;height:auto}
  .hw-track-usual li{padding:0 0 0 36px}
  .hw-track-muon li{padding:22px 24px 34px}
  .hw-track-muon li:not(:last-child)::after{right:auto;left:50%;top:auto;bottom:6px;width:14px;height:14px;transform:translateX(-50%) rotate(135deg)}
  .hw-track-muon li+li{background:rgba(255,255,255,.05)}
  .hw-stack li:nth-child(n){width:100%}
  .hw-loop-grid{grid-template-columns:1fr;grid-template-areas:"ring" "a" "b" "c" "d";gap:26px}
  .hw-chart{padding:22px}
  .hw-last-list li{grid-template-columns:48px minmax(0,1fr);gap:16px}
  .hw-last-list svg{width:48px;height:48px;padding:11px}
}

/* ---- Refinements: fewer boxes, a larger foundation stack, varied section openings ---- */
/* Openings: a full-width statement for the tools, a centred heading over the loop */
.hw-design .section-intro{display:block;max-width:980px}
.hw-design .intro-side{max-width:640px;margin:22px 0 0}
.hw-loop .section-intro{display:block;max-width:820px;margin-inline:auto;text-align:center}
.hw-loop .intro-side{max-width:640px;margin:22px auto 0}
/* The foundation stack, larger: the page's one bold element */
.hw-levels-grid{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}
.hw-stack{gap:8px}
.hw-stack li{padding:26px 34px}
.page-methodology .hw-stack h3{font-size:var(--t-h3l,26px);letter-spacing:-.035em}
/* The two small charts in the open, split by a hairline; one note under both */
.hw-charts{gap:0}
.hw-chart{padding:0 clamp(28px,4vw,56px) 0 0;border:0;border-radius:0;background:none}
.hw-chart+.hw-chart{padding:0 0 0 clamp(28px,4vw,56px);border-left:1px solid var(--line)}
.hw-charts-note{margin:22px 0 0;font-size:var(--t-note,13px);color:var(--muted)}
.page-methodology .hw-value .deck-chart{margin-top:44px}
/* Outlast: plain line icons, no tiles */
.hw-last-list li{grid-template-columns:36px minmax(0,1fr)}
.hw-last-list svg{width:36px;height:36px;padding:0;background:none;box-shadow:none;border-radius:0}
@media(max-width:980px){
  .hw-levels-grid{grid-template-columns:1fr}
  .hw-chart,.hw-chart+.hw-chart{padding:0;border:0}
  .hw-chart+.hw-chart{margin-top:34px;padding-top:34px;border-top:1px solid var(--line)}
}
@media(max-width:700px){
  .hw-stack li{padding:22px 24px}
  .hw-loop .section-intro{text-align:left}
  .hw-loop .intro-side{margin-left:0}
}
