/* ===========================================================================
   Dwaine McLean — portfolio
   Type:   Atkinson Hyperlegible, self-hosted. Chosen for legibility.
   System: dark petrol masthead, editorial label rail, numbered sections.
   Colour: warm paper, near-black ink, rust accent, teal for anything passing.
   Contrast: every pair verified against WCAG 2.2 AA in both palettes.
   ======================================================================== */

@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:400;
  font-display:swap;src:url("fonts/ah-400.woff2") format("woff2");}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:700;
  font-display:swap;src:url("fonts/ah-700.woff2") format("woff2");}
@font-face{font-family:"Atkinson Hyperlegible";font-style:italic;font-weight:400;
  font-display:swap;src:url("fonts/ah-400i.woff2") format("woff2");}

:root{
  --paper:#FAF8F4;
  --surface:#FFFFFF;
  --ink:#14181D;
  --muted:#535964;
  --line:#E0DBD1;
  --edge:#79817C;
  --deep:#132A2D;
  --accent:#A8481A;
  --accent2:#1A6353;
  --wash:#F1EEE7;
  --on-deep:#F3F5F6;
  --on-deep-muted:#A7B3B7;
  --accent-on-deep:#F0945C;
  --measure:64ch;
  --rail:12rem;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#0E1215; --surface:#161B20; --ink:#ECEFF1; --muted:#A3ABB5;
    --line:#2A323A; --edge:#6B7A84; --deep:#0A1517; --accent:#F0945C;
    --accent2:#5CC4A8; --wash:#1B2228; color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --paper:#0E1215; --surface:#161B20; --ink:#ECEFF1; --muted:#A3ABB5;
  --line:#2A323A; --edge:#6B7A84; --deep:#0A1517; --accent:#F0945C;
  --accent2:#5CC4A8; --wash:#1B2228; color-scheme:dark;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{margin:0;background:var(--paper);color:var(--ink);
  font-family:"Atkinson Hyperlegible","Segoe UI",system-ui,sans-serif;
  font-size:1.0625rem;line-height:1.62;text-align:left;}

.wrap{max-width:1080px;margin:0 auto;padding:0 2rem;}

.skip{position:absolute;left:-9999px;top:0;z-index:60;background:var(--accent);
  color:#fff;padding:.75rem 1.2rem;font-weight:700;text-decoration:none;}
.skip:focus{left:.5rem;top:.5rem;}

/* ---------- masthead: full-bleed dark band ---------- */
.masthead{background:var(--deep);padding:1.15rem 0;margin-bottom:4.5rem;}
.masthead .wrap{display:flex;flex-wrap:wrap;gap:.9rem 2.5rem;align-items:center;justify-content:space-between;}
.wordmark{font-weight:700;font-size:1.0625rem;letter-spacing:.01em;text-decoration:none;color:var(--on-deep);}
.wordmark::after{content:"";display:block;width:1.9rem;height:3px;background:var(--accent-on-deep);margin-top:.3rem;}
.mast-right{display:flex;align-items:center;gap:1.75rem;flex-wrap:wrap;}
.masthead nav{display:flex;gap:1.5rem;flex-wrap:wrap;}
.masthead nav a{color:var(--on-deep-muted);text-decoration:none;font-size:.97rem;
  padding-bottom:3px;border-bottom:2px solid transparent;}
.masthead nav a:hover,.masthead nav a:focus-visible{color:var(--on-deep);}
.masthead nav a[aria-current="page"]{color:var(--on-deep);border-bottom-color:var(--accent-on-deep);}
.theme{font:inherit;font-size:.9rem;background:transparent;border:1px solid var(--on-deep-muted);
  color:var(--on-deep-muted);padding:.35rem .8rem;cursor:pointer;min-height:34px;border-radius:2px;}
.theme:hover{color:var(--on-deep);border-color:var(--on-deep);}

/* ---------- type ---------- */
h1{font-size:clamp(2.3rem,6vw,4rem);line-height:1.04;letter-spacing:-0.035em;
  margin:0 0 1.4rem;max-width:18ch;font-weight:700;}
h1::after{content:"";display:block;width:3.5rem;height:4px;background:var(--accent);margin-top:1.4rem;}
h2{font-size:clamp(1.35rem,2.4vw,1.7rem);line-height:1.2;letter-spacing:-0.02em;margin:0 0 .9rem;}
h3{font-size:1.0625rem;line-height:1.35;margin:0 0 .4rem;}
h4{font-size:1rem;margin:0 0 .3rem;}
p{max-width:var(--measure);margin:0 0 1.15rem;}
.lead{font-size:clamp(1.15rem,1.9vw,1.35rem);line-height:1.5;color:var(--ink);max-width:48ch;font-weight:400;}
a{color:var(--ink);text-decoration-thickness:1px;text-underline-offset:3px;
  text-decoration-color:var(--accent);}
a:hover{text-decoration-thickness:2px;}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
em{font-style:italic;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;}

main{counter-reset:sect;}
section{margin-bottom:5rem;}

/* ---------- the label rail ---------- */
.band{border-top:1px solid var(--line);padding-top:2.75rem;}
@media (min-width:62rem){
  .band{display:grid;grid-template-columns:var(--rail) 1fr;gap:0 3.5rem;}
  .band > *{grid-column:2;}
  .band > .section-title{grid-column:1;grid-row:1;position:sticky;top:2rem;align-self:start;}
}
.section-title{counter-increment:sect;font-size:1.0625rem;line-height:1.3;
  letter-spacing:-0.005em;margin-bottom:1.9rem;color:var(--ink);}
.section-title::before{content:counter(sect,decimal-leading-zero);
  display:block;font-size:.8rem;letter-spacing:.14em;color:var(--accent);
  font-weight:700;margin-bottom:.5rem;font-variant-numeric:tabular-nums;}

/* ---------- headline metrics ---------- */
.proof{list-style:none;margin:2.5rem 0 0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:0;
  border:1px solid var(--line);background:var(--surface);}
.proof li{padding:1.4rem 1.4rem 1.5rem;border-right:1px solid var(--line);}
.proof li:last-child{border-right:none;}
.proof b{display:block;font-size:2.15rem;line-height:1;letter-spacing:-0.04em;
  font-variant-numeric:tabular-nums;color:var(--ink);}
.proof b small{font-size:.5em;letter-spacing:0;font-weight:700;}
.proof b::after{content:"";display:block;width:1.6rem;height:3px;background:var(--accent);margin-top:.7rem;}
.proof span{display:block;color:var(--muted);font-size:.93rem;line-height:1.45;margin-top:.7rem;}
@media (max-width:48rem){
  .proof{grid-template-columns:1fr 1fr;}
  .proof li{border-bottom:1px solid var(--line);}
}
@media (max-width:30rem){ .proof{grid-template-columns:1fr;} .proof li{border-right:none;} }

.cta{display:flex;flex-wrap:wrap;gap:.9rem;margin:2rem 0 0;align-items:center;}

/* ---------- buttons ---------- */
.btn{font:inherit;font-weight:700;font-size:1rem;min-height:46px;padding:.65rem 1.4rem;
  cursor:pointer;display:inline-flex;align-items:center;text-decoration:none;border-radius:2px;
  background:var(--ink);color:var(--paper);border:1px solid var(--ink);}
.btn:hover{background:var(--accent);border-color:var(--accent);color:#fff;}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--edge);}
.btn.ghost:hover{background:transparent;color:var(--accent);border-color:var(--accent);}

/* ---------- the ladder ---------- */
.ladder{list-style:none;margin:0;padding:0;}
.ladder li{display:grid;grid-template-columns:2.4rem 1fr;gap:0 1.3rem;
  padding:1.1rem 0;border-bottom:1px solid var(--line);align-items:baseline;}
.ladder li:first-child{border-top:1px solid var(--line);}
.ladder .n{font-weight:700;font-size:.85rem;letter-spacing:.1em;color:var(--accent);
  font-variant-numeric:tabular-nums;}
.ladder h3{margin-bottom:.25rem;}
.ladder p{margin:0;color:var(--muted);max-width:54ch;font-size:1rem;}

/* ---------- case studies ---------- */
.case{border-top:1px solid var(--line);padding-top:1.7rem;margin-bottom:2.8rem;}
.case h3{font-size:1.3rem;letter-spacing:-0.018em;margin-bottom:.5rem;}
.case .meta,.study .where{color:var(--muted);font-size:.85rem;letter-spacing:.09em;
  text-transform:uppercase;font-weight:700;margin-bottom:1rem;}
.score{color:var(--accent);font-weight:700;font-variant-numeric:tabular-nums;}

.study{border-top:2px solid var(--ink);padding-top:1.9rem;margin-bottom:3rem;}
.study h2{margin-bottom:.5rem;font-size:clamp(1.45rem,2.6vw,1.9rem);}
.study h3{margin-top:1.9rem;margin-bottom:.5rem;color:var(--accent);
  font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;}
.study ul{max-width:var(--measure);padding-left:1.2rem;margin:0 0 1.2rem;}
.study li{margin-bottom:.45rem;}

/* ---------- seeking / frame / carry panels ---------- */
.seeking,.frame{background:var(--surface);border:1px solid var(--line);
  border-left:4px solid var(--accent);padding:1.5rem 1.6rem;margin:0 0 2.2rem;}
.seeking h3,.frame h2{font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent);margin-bottom:.7rem;}
.seeking p:last-child,.frame p:last-child{margin-bottom:0;}
.carry{background:var(--surface);border:1px solid var(--line);
  border-left:4px solid var(--accent2);padding:1.1rem 1.3rem;margin:1.3rem 0 0;}
.carry b{display:block;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent2);margin-bottom:.4rem;}
.carry p{margin:0;max-width:58ch;}

/* ---------- tables ---------- */
.gates,.omap{width:100%;border-collapse:collapse;margin:0 0 1.9rem;font-size:1rem;}
.gates caption,.omap caption{text-align:left;color:var(--muted);padding-bottom:.8rem;
  font-size:.93rem;max-width:var(--measure);}
.gates th,.gates td{text-align:left;padding:.85rem 1rem .85rem 0;
  border-bottom:1px solid var(--line);vertical-align:top;}
.gates thead th{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);}
.gates tbody th{font-weight:700;color:var(--accent);width:2.6rem;font-variant-numeric:tabular-nums;}
.omap th,.omap td{border:1px solid var(--line);padding:.6rem .75rem;text-align:left;}
.omap thead th{background:var(--wash);font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;}
.omap tbody th{font-weight:400;}
.omap td{text-align:center;font-weight:700;color:var(--accent2);}

.pillars{list-style:none;margin:0 0 1.5rem;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.6rem 1.6rem;}
.pillars li{padding-left:1.2rem;position:relative;}
.pillars li::before{content:"";position:absolute;left:0;top:.72em;width:.6rem;height:2px;background:var(--accent);}

/* ---------- architecture steps ---------- */
.arch{margin:2rem 0 2.25rem;border:1px solid var(--line);background:var(--surface);}
.arch-step{padding:1.3rem 1.5rem;border-bottom:1px solid var(--line);}
.arch-step:last-child{border-bottom:none;}
.arch-step .k{display:block;color:var(--accent);font-weight:700;font-size:.76rem;
  letter-spacing:.12em;text-transform:uppercase;margin-bottom:.4rem;}
.arch-step strong{display:block;font-size:1.0625rem;}
.arch-step p{margin:.3rem 0 0;color:var(--muted);font-size:1rem;max-width:56ch;}
.arch-gate{background:var(--wash);}

/* ---------- weightings ---------- */
.weights{list-style:none;margin:1.6rem 0 1.2rem;padding:0;}
.weights li{display:grid;grid-template-columns:2.8rem minmax(10rem,15rem) 1fr 7.5rem;
  gap:.5rem 1rem;align-items:center;padding:.6rem 0;border-bottom:1px solid var(--line);}
.weights li:first-child{border-top:1px solid var(--line);}
.weights .pts{font-weight:700;font-size:1.2rem;font-variant-numeric:tabular-nums;text-align:right;}
.weights .nm{font-size:1rem;}
.weights .bar{display:block;background:var(--wash);height:.85rem;}
.weights .bar i{display:block;height:100%;background:var(--accent);}
.weights .gate{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700;
  color:var(--accent);border:1px solid var(--accent);padding:.15rem .5rem;white-space:nowrap;
  justify-self:start;}
.weights .nogate{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
  white-space:nowrap;justify-self:start;}
@media (max-width:40rem){
  .weights li{grid-template-columns:2.6rem 1fr 7rem;}
  .weights .bar{grid-column:1 / -1;}
}
.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:0;
  margin:1.75rem 0 0;border:1px solid var(--line);background:var(--surface);}
.split div{padding:1.3rem 1.4rem;border-right:1px solid var(--line);}
.split div:last-child{border-right:none;}
.split b{display:block;font-size:1.85rem;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-0.03em;}
.split span{display:block;color:var(--muted);font-size:.93rem;margin-top:.6rem;}

/* ---------- provision shape ---------- */
.shape{list-style:none;margin:1.6rem 0 .6rem;padding:0;}
.shape li{display:grid;grid-template-columns:min(13rem,38vw) 1fr;gap:.4rem 1.2rem;
  align-items:center;padding:.4rem 0;}
.shape .lvl{font-size:1rem;line-height:1.3;}
.shape .lvl b{display:block;}
.shape .lvl span{display:block;color:var(--muted);font-size:.88rem;}
.shape .track{display:block;background:var(--wash);height:1.4rem;}
.shape .fill{display:block;background:var(--accent);height:100%;min-width:3px;}
@media (max-width:34rem){ .shape li{grid-template-columns:1fr;gap:.25rem;} }

/* ---------- courses ---------- */
.rung{border-top:1px solid var(--line);padding-top:1.7rem;margin-bottom:3rem;}
.rung-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;margin-bottom:.5rem;}
.rung-head .n{font-weight:700;font-size:.8rem;letter-spacing:.12em;color:var(--accent);}
.rung-head h3{font-size:1.3rem;letter-spacing:-0.018em;margin:0;}
.rung > p{color:var(--muted);margin-bottom:1.4rem;}
.courses{list-style:none;margin:0;padding:0;}
.courses > li{background:var(--surface);border:1px solid var(--line);
  border-left:4px solid var(--accent);padding:1.25rem 1.4rem;margin-bottom:1rem;}
.courses h4{font-size:1.0625rem;margin:0 0 .4rem;line-height:1.35;}
.courses .spec{display:flex;flex-wrap:wrap;gap:.3rem 1rem;margin:0 0 .7rem;
  color:var(--muted);font-size:.8rem;letter-spacing:.07em;text-transform:uppercase;font-weight:700;}
.courses p{margin:0;max-width:58ch;}
.courses .holds{margin-top:.7rem;font-size:.95rem;color:var(--muted);}
.courses .holds b{color:var(--ink);}
.spine{list-style:none;margin:1.6rem 0 1.2rem;padding:0;counter-reset:sp;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:0;
  border:1px solid var(--line);background:var(--surface);}
.spine li{counter-increment:sp;padding:1rem 1.1rem;border-right:1px solid var(--line);}
.spine li:last-child{border-right:none;}
.spine b{display:block;font-size:.97rem;}
.spine b::before{content:counter(sp);display:block;color:var(--accent);font-size:.75rem;
  letter-spacing:.1em;margin-bottom:.35rem;font-variant-numeric:tabular-nums;}
.spine span{display:block;color:var(--muted);font-size:.88rem;margin-top:.3rem;}

/* ---------- builds ---------- */
.build{border-top:2px solid var(--ink);padding-top:1.8rem;margin-bottom:3.2rem;}
.build h2{margin-bottom:.4rem;}
.build .when{color:var(--muted);font-size:.85rem;letter-spacing:.09em;
  text-transform:uppercase;font-weight:700;margin-bottom:1.1rem;}
.build .figs{list-style:none;display:flex;flex-wrap:wrap;gap:0;margin:0 0 1.2rem;padding:0;
  border:1px solid var(--line);background:var(--surface);}
.build .figs li{padding:.6rem 1rem;font-size:.9rem;color:var(--muted);border-right:1px solid var(--line);}
.build .figs li:last-child{border-right:none;}
.build .figs b{color:var(--ink);font-variant-numeric:tabular-nums;font-size:1.05rem;}

/* ---------- try row ---------- */
.tryrow{list-style:none;margin:1.6rem 0 0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem;}
.tryrow li{border:1px solid var(--line);border-top:4px solid var(--accent);
  background:var(--surface);padding:1.2rem 1.3rem;}
.tryrow h3{font-size:1.0625rem;margin:0 0 .4rem;}
.tryrow p{margin:0;color:var(--muted);font-size:.95rem;max-width:none;}

/* ---------- figures ---------- */
figure.shot{margin:1.9rem 0;}
figure.shot img{width:100%;height:auto;display:block;border:1px solid var(--line);}
figure.shot figcaption,figure.artefact figcaption{color:var(--muted);font-size:.95rem;
  margin-top:.8rem;max-width:var(--measure);}
figure.shot figcaption b{color:var(--ink);}
.diagram{background:var(--surface);border:1px solid var(--line);padding:1.6rem 1.5rem 1.3rem;}
.diagram h4{margin:0 0 .3rem;font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);}
.diagram .note{color:var(--muted);font-size:.9rem;margin:1rem 0 0;max-width:52ch;}

/* ---------- prompt coach ---------- */
.coach{background:var(--surface);border:1px solid var(--line);padding:1.6rem;max-width:none;}
.coach label{display:block;font-weight:700;margin-bottom:.5rem;font-size:.9rem;
  letter-spacing:.07em;text-transform:uppercase;}
.coach textarea{width:100%;min-height:9rem;padding:.9rem;font-family:inherit;font-size:1rem;
  line-height:1.55;color:var(--ink);background:var(--paper);border:1px solid var(--edge);resize:vertical;}
.coach .hint{color:var(--muted);font-size:.95rem;margin:.5rem 0 0;max-width:52ch;}
.coach button{margin-top:1.1rem;}
.checks{list-style:none;margin:1.8rem 0 0;padding:0;}
.checks:empty{margin:0;}
.checks li{display:grid;grid-template-columns:1.9rem 1fr;gap:0 .8rem;padding:.9rem 0;
  border-top:1px solid var(--line);align-items:baseline;}
.checks .state{font-weight:700;font-size:1.05rem;}
.checks .yes .state{color:var(--accent2);}
.checks .no .state{color:var(--accent);}
.checks p{margin:.2rem 0 0;color:var(--muted);font-size:.95rem;max-width:50ch;}
.linky{font:inherit;background:none;border:none;padding:0;cursor:pointer;color:var(--ink);
  text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px;}

/* ---------- demo ---------- */
.demo{background:var(--surface);border:1px solid var(--line);padding:1.5rem;margin:1.6rem 0 0;}
.demo label{display:block;font-weight:700;margin-bottom:.4rem;font-size:.85rem;
  letter-spacing:.08em;text-transform:uppercase;}
.demo input[type="text"]{width:100%;max-width:26rem;padding:.65rem .75rem;font-family:inherit;
  font-size:1.0625rem;color:var(--ink);background:var(--paper);border:1px solid var(--edge);}
.fieldrow{display:flex;flex-wrap:wrap;gap:1rem 1.6rem;margin-bottom:1.1rem;}
.fieldrow > div{flex:1 1 15rem;}
.presets{display:flex;flex-wrap:wrap;gap:.5rem;margin:.3rem 0 1.3rem;}
.presets button{font:inherit;font-size:.95rem;min-height:44px;padding:.45rem .95rem;cursor:pointer;
  background:var(--wash);color:var(--ink);border:1px solid var(--edge);}
.presets button:hover{border-color:var(--ink);}
.verdict{border:1px solid var(--line);border-left:4px solid var(--muted);
  padding:1.1rem 1.2rem;margin-top:1.2rem;background:var(--wash);}
.verdict:empty{display:none;}
.verdict .tagline{display:block;font-weight:700;font-size:.8rem;letter-spacing:.1em;
  text-transform:uppercase;margin-bottom:.5rem;}
.verdict.ok{border-left-color:var(--accent2);} .verdict.ok .tagline{color:var(--accent2);}
.verdict.no{border-left-color:var(--accent);} .verdict.no .tagline{color:var(--accent);}
.verdict p{margin:0 0 .5rem;max-width:58ch;} .verdict p:last-child{margin-bottom:0;}
.shown{font-size:1.3rem;font-weight:700;}
.sp-miss{text-decoration:underline;text-decoration-thickness:2px;
  text-decoration-color:var(--accent);text-underline-offset:3px;}
.sched{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.1rem 0;}
.schedout{font-variant-numeric:tabular-nums;} .schedout b{font-size:1.5rem;}
.trail{list-style:none;margin:1.1rem 0 0;padding:0;font-size:.95rem;color:var(--muted);}
.trail li{padding:.35rem 0;border-top:1px solid var(--line);font-variant-numeric:tabular-nums;}
.say{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.9rem;}
.say button{font:inherit;min-height:44px;padding:.5rem 1rem;cursor:pointer;
  background:var(--surface);border:1px solid var(--edge);color:var(--ink);}
.say button:hover{border-color:var(--ink);}

/* ---------- copilot guide ---------- */
.spectrum{margin:2.2rem 0 1rem;padding:2rem 1.6rem 1.5rem;background:var(--surface);border:1px solid var(--line);}
.spec-top{text-align:center;max-width:30rem;margin:0 auto .8rem;}
.spec-top strong{display:block;font-size:1.1rem;}
.spec-top span{color:var(--muted);font-size:.95rem;}
.spec-bracket{height:16px;margin:.2rem 7px 0;border:1px solid var(--ink);border-bottom:none;}
.spec-line{position:relative;height:3px;margin:0 0 1rem;background:var(--ink);}
.spec-cap{position:absolute;top:50%;width:11px;height:11px;transform:translateY(-50%);background:var(--ink);}
.spec-cap.l{left:0;}.spec-cap.r{right:0;}
.spec-dot{position:absolute;top:50%;left:50%;width:15px;height:15px;transform:translate(-50%,-50%);background:var(--accent);}
.spec-ends{display:flex;justify-content:space-between;gap:1rem;}
.spec-ends div{max-width:14rem;} .spec-ends .r{text-align:right;}
.spec-ends strong{display:block;} .spec-ends span{color:var(--muted);font-size:.95rem;}
.modes{list-style:none;margin:0;padding:0;}
.modes > li{padding:1.4rem 0;border-bottom:1px solid var(--line);}
.modes > li:first-child{border-top:1px solid var(--line);}
.modes h3{font-size:1.2rem;margin-bottom:.2rem;}
.modes .tag{color:var(--accent);font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;}
.modes .does{color:var(--muted);margin:.4rem 0 .8rem;max-width:56ch;}
.modes ul{margin:0;padding-left:1.2rem;max-width:56ch;} .modes li{margin-bottom:.35rem;}
.decide{list-style:none;margin:1.6rem 0 0;padding:0;counter-reset:q;}
.decide > li{counter-increment:q;border-top:1px solid var(--line);padding:1.2rem 0 .5rem;}
.decide .q{font-weight:700;max-width:56ch;margin:0 0 .5rem;}
.decide .q::before{content:counter(q);color:var(--accent);margin-right:.6rem;font-variant-numeric:tabular-nums;}
.decide .a{margin:0 0 .3rem;color:var(--muted);} .decide .a b{color:var(--ink);}
.qz{border-top:1px solid var(--line);padding:1.4rem 0;}
.qz .count{color:var(--muted);font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:700;margin:0 0 .4rem;}
.qz h3{font-size:1.05rem;line-height:1.45;margin-bottom:1rem;max-width:58ch;}
.opts{display:flex;flex-wrap:wrap;gap:.6rem;}
.opts button{font:inherit;font-weight:700;min-height:46px;padding:.55rem 1.15rem;cursor:pointer;
  background:var(--surface);color:var(--ink);border:1px solid var(--edge);}
.opts button:hover{border-color:var(--ink);}
.opts button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink);}
.opts button[aria-pressed="true"]::before{content:"\2713\00a0";}
.fb:empty{display:none;}
.fb{margin-top:1rem;padding:.95rem 1.1rem;background:var(--wash);border-left:4px solid var(--muted);max-width:60ch;}
.fb.best{border-left-color:var(--accent2);} .fb p{margin:0;}
.qz-foot{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;margin-top:1.6rem;}
.qz-foot p{margin:0;font-weight:700;}
.depth{list-style:none;margin:1.6rem 0 0;padding:0;}
.depth li{display:grid;grid-template-columns:3.2rem 1fr;gap:0 1.1rem;padding:1.1rem 0;
  border-top:1px solid var(--line);align-items:baseline;}
.bars{display:flex;align-items:flex-end;gap:4px;height:26px;}
.bars span{width:8px;background:var(--wash);border:1px solid var(--edge);}
.bars span.on{background:var(--accent);border-color:var(--accent);}
.bars span:nth-child(1){height:9px}.bars span:nth-child(2){height:17px}.bars span:nth-child(3){height:26px}
.depth strong{display:block;} .depth p{margin:.2rem 0 0;color:var(--muted);max-width:52ch;}

/* ---------- channels ---------- */
.channels{list-style:none;margin:1.1rem 0 1.5rem;padding:0;}
.channels li{display:grid;grid-template-columns:10rem 1fr;gap:0 1.4rem;padding:1rem 0;
  border-bottom:1px solid var(--line);align-items:baseline;}
.channels li:first-child{border-top:1px solid var(--line);}
.channels strong{font-weight:700;}
.channels p{margin:0;color:var(--muted);font-size:1rem;max-width:48ch;}
@media (max-width:34rem){ .channels li{grid-template-columns:1fr;gap:.25rem;} }

/* ---------- footer ---------- */
footer{background:var(--deep);color:var(--on-deep-muted);padding:3rem 0 3.5rem;
  margin-top:5rem;font-size:.95rem;}
footer p{max-width:none;margin:0 0 .6rem;}
footer a{color:var(--on-deep);text-decoration-color:var(--accent-on-deep);}
footer .fnav{display:flex;flex-wrap:wrap;gap:.6rem 1.6rem;margin:0 0 1.4rem;padding:0;list-style:none;}
footer .fnav a{color:var(--on-deep);font-weight:700;}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important;}}

@media (max-width:34rem){
  .wrap{padding:0 1.25rem;}
  .masthead{margin-bottom:2.75rem;}
  h1{max-width:none;}
  .ladder li{grid-template-columns:1.9rem 1fr;gap:0 .9rem;}
  .diagram{padding:1.2rem 1rem 1rem;}
  .omap{font-size:.85rem;table-layout:fixed;width:100%;}
  .omap th,.omap td{padding:.4rem .2rem;word-break:break-word;}
  .omap thead th{font-size:.62rem;letter-spacing:.03em;}
  .omap thead th:first-child{width:28%;}
  .arch-step{padding:1.05rem 1.1rem;}
  .seeking,.frame{padding:1.2rem 1.15rem;}
  .coach,.demo{padding:1.15rem;}
  .split div{border-right:none;border-bottom:1px solid var(--line);}
  .spine li,.build .figs li{border-right:none;border-bottom:1px solid var(--line);}
}

@media print{
  .masthead nav,.theme,.skip,.actions,.cta,.disclose-all,.more-mark{display:none;}
  .more > summary{padding:0;}
  .more-toc{display:none;}
  body{background:#fff;color:#000;font-size:11pt;}
  .masthead,footer{background:#fff;color:#000;}
  a{text-decoration:none;}
}

/* ---------- contact block ---------- */
.contactbox{border-top:1px solid var(--line);padding-top:1.6rem;margin-top:2.2rem;}
.contactbox h3{font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent);margin-bottom:.7rem;}
.contactbox .addr{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem;
  font-size:1.15rem;margin-bottom:1.3rem;}
.copy{font:inherit;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase;
  font-weight:700;min-height:36px;padding:.35rem .8rem;cursor:pointer;
  background:transparent;color:var(--muted);border:1px solid var(--edge);border-radius:2px;}
.copy:hover{color:var(--ink);border-color:var(--ink);}
.actions{display:flex;flex-wrap:wrap;gap:.9rem;}

/* ---------- case-study jump index ---------- */
.jump{margin:2.25rem 0 0;border-top:1px solid var(--line);}
.jump p{display:grid;grid-template-columns:minmax(14rem,22rem) 1fr;gap:.2rem 2rem;
  margin:0;padding:.9rem 0;border-bottom:1px solid var(--line);max-width:none;align-items:baseline;}
.jump a{font-weight:700;text-decoration-color:var(--accent);}
.jump span{color:var(--muted);font-size:.95rem;}
@media (max-width:48rem){ .jump p{grid-template-columns:1fr;} }

/* ---------- progressive disclosure on case studies ---------- */
.disclose-all{margin:1.9rem 0 0;}

.study details.more{border-top:1px solid var(--line);margin-top:2rem;}
.study details.more > summary{
  list-style:none;cursor:pointer;
  display:grid;grid-template-columns:1fr 2.25rem;
  gap:.3rem 1.5rem;align-items:start;
  padding:1.1rem .15rem;min-height:44px;
}
.study details.more > summary::-webkit-details-marker{display:none;}
.more-label{
  grid-column:1;grid-row:1;
  font-weight:700;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--accent);
}
.more-toc{
  grid-column:1;grid-row:2;
  font-size:.95rem;line-height:1.45;color:var(--muted);max-width:var(--measure);
}
.more-mark{
  grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:end;
  width:2.25rem;height:2.25rem;border:1px solid var(--edge);border-radius:50%;
  position:relative;
}
.more-mark::before,.more-mark::after{
  content:"";position:absolute;left:28%;right:28%;top:50%;
  border-top:1.5px solid var(--ink);
}
.more-mark::after{transform:rotate(90deg);}
.study details.more[open] > summary .more-mark::after{opacity:0;}
.study details.more[open] > summary .more-toc{display:none;}
/* Once open, the headings inside carry the accent; the label steps back. */
.study details.more[open] > summary .more-label{color:var(--muted);}

.study details.more > summary:hover .more-label{color:var(--ink);}
.study details.more > summary:hover .more-mark{border-color:var(--ink);}
.study details.more > summary:focus-visible{
  outline:2px solid var(--accent);outline-offset:4px;border-radius:2px;
}

.more-body > :first-child{margin-top:0;}
.more-body{padding-bottom:.4rem;}

@media (prefers-reduced-motion:no-preference){
  .more-mark,.more-mark::after,.more-label{transition:all .15s ease;}
}
