/* ===================== Civitas Systems — Design System ===================== */
/* Theme tokens: one contract, many themes. Neo-Brutalism is the default.      */
/* MAP: tokens & 16 theme blocks → base/reset → nav & theme panel → page-head  */
/* & ambient canvas → components (cards, triad, crosswalk, timeline, statband, */
/* tags/chips, writing-stream, receipts+threads, snapshot, draft/todo) →       */
/* footer → skip/focus → brand chaos-game canvas → view transitions →          */
/* breadcrumbs/readtime/print → related/trail-ribbon/type-glyphs →             */
/* publications abstracts & DOI buttons. Docs: project-docs/vault/DESIGN-SYSTEM.md */

:root{
  --c-bg:#FFFDF5;--c-surface:#FFFFFF;--c-surface2:#F4EFE0;--c-border:#111111;--c-border-strong:#111111;--c-text:#111111;--c-muted:#4A4A4A;
  --c-primary:#FF4D00;--c-onprimary:#111111;--c-link:#D13F00;--c-accent:#2D5BFF;--c-onaccent:#fff;--c-accentstrong:#2D5BFF;
  --f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--f-display:'Instrument Serif',Georgia,serif;--t-radius:0px;--t-shadow:4px 4px 0 #111111;
}
html[data-theme="neo-brutalism"]{--c-bg:#FFFDF5;--c-surface:#FFFFFF;--c-surface2:#F4EFE0;--c-border:#111111;--c-border-strong:#111111;--c-text:#111111;--c-muted:#4A4A4A;--c-primary:#FF4D00;--c-onprimary:#111111;--c-link:#D13F00;--c-accent:#2D5BFF;--c-onaccent:#fff;--c-accentstrong:#2D5BFF;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:0px;--t-shadow:4px 4px 0 #111111;}
html[data-theme="material"]{--c-bg:#FFFBFE;--c-surface:#FFFFFF;--c-surface2:#F3EDF7;--c-border:#CAC4D0;--c-border-strong:#908D91;--c-text:#1C1B1F;--c-muted:#49454F;--c-primary:#6750A4;--c-onprimary:#FFFFFF;--c-link:#6750A4;--c-accent:#7D5260;--c-onaccent:#fff;--c-accentstrong:#7D5260;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:16px;--t-shadow:0 1px 3px rgba(0,0,0,.3),0 4px 8px rgba(0,0,0,.15);}
html[data-theme="apen-architectural"]{--c-bg:#f4f7f9;--c-surface:#ffffff;--c-surface2:#e2e8f0;--c-border:#d1dbe5;--c-border-strong:#818C95;--c-text:#1a2b3c;--c-muted:#5A687D;--c-primary:#0066d6;--c-onprimary:#ffffff;--c-link:#0066d6;--c-accent:#ff7e67;--c-onaccent:#1a1a1a;--c-accentstrong:#AF5647;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:4px;--t-shadow:0 4px 12px rgba(0,0,0,0.08);}
html[data-theme="swiss"]{--c-bg:#FFFFFF;--c-surface:#FFFFFF;--c-surface2:#F2F2F2;--c-border:#DBDBDB;--c-border-strong:#909090;--c-text:#0A0A0A;--c-muted:#666666;--c-primary:#E2231A;--c-onprimary:#FFFFFF;--c-link:#E2231A;--c-accent:#0A0A0A;--c-onaccent:#fff;--c-accentstrong:#0A0A0A;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:0px;--t-shadow:none;}
html[data-theme="notion"]{--c-bg:#FFFFFF;--c-surface:#FFFFFF;--c-surface2:#F7F6F3;--c-border:#E4E4E2;--c-border-strong:#91908D;--c-text:#37352F;--c-muted:#71706D;--c-primary:#2076CB;--c-onprimary:#FFFFFF;--c-link:#2076CB;--c-accent:#D9730D;--c-onaccent:#111111;--c-accentstrong:#B25E0B;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:6px;--t-shadow:0 1px 2px rgba(15,15,15,.1);}
html[data-theme="concrete"]{--c-bg:#E8E6E1;--c-surface:#F2F1EC;--c-surface2:#D8D5CE;--c-border:#1A1A1A;--c-border-strong:#1A1A1A;--c-text:#1A1A1A;--c-muted:#5A5853;--c-primary:#D34227;--c-onprimary:#FFFFFF;--c-link:#BA3A22;--c-accent:#1A1A1A;--c-onaccent:#fff;--c-accentstrong:#1A1A1A;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:0px;--t-shadow:3px 3px 0 #1A1A1A;}
html[data-theme="brutalist-dark"]{--c-bg:#09090B;--c-surface:#131316;--c-surface2:#1C1C20;--c-border:#F2F2F2;--c-border-strong:#F2F2F2;--c-text:#FAFAFA;--c-muted:#A9AEB6;--c-primary:#C8F000;--c-onprimary:#0E1200;--c-link:#C8F000;--c-accent:#22D3EE;--c-onaccent:#06222A;--c-accentstrong:#5FE3F5;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:0px;--t-shadow:0 2px 10px rgba(0,0,0,.6);}
html[data-theme="carbon"]{--c-bg:#0F1013;--c-surface:#191B20;--c-surface2:#22252C;--c-border:#F2F2F2;--c-border-strong:#F2F2F2;--c-text:#F6F7F8;--c-muted:#AEB3BC;--c-primary:#FF6A2B;--c-onprimary:#1A0A02;--c-link:#FF9160;--c-accent:#5B8CFF;--c-onaccent:#0A1022;--c-accentstrong:#8CADFF;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:0px;--t-shadow:0 2px 10px rgba(0,0,0,.55);}
html[data-theme="meridian"]{--c-bg:#100F12;--c-surface:#17161A;--c-surface2:#201F24;--c-border:#605F69;--c-border-strong:#605F69;--c-text:#F4F4F5;--c-muted:#A0A0A8;--c-primary:#F5453A;--c-onprimary:#1C0605;--c-link:#FF7A70;--c-accent:#E9E9EC;--c-onaccent:#100F12;--c-accentstrong:#FF7A70;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:2px;--t-shadow:0 2px 10px rgba(0,0,0,.55);}
html[data-theme="graphite"]{--c-bg:#0A0A0B;--c-surface:#141416;--c-surface2:#1C1C1F;--c-border:#626269;--c-border-strong:#626269;--c-text:#FAFAFA;--c-muted:#B2B2BA;--c-primary:#F5F5F7;--c-onprimary:#0A0A0B;--c-link:#7FB2FF;--c-accent:#3B82F6;--c-onaccent:#06122B;--c-accentstrong:#7FB2FF;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:0px;--t-shadow:none;}
html[data-theme="graphite-light"]{--c-bg:#FFFFFF;--c-surface:#FFFFFF;--c-surface2:#F4F4F6;--c-border:#111114;--c-border-strong:#111114;--c-text:#0A0A0B;--c-muted:#5A5A62;--c-primary:#0A0A0B;--c-onprimary:#FFFFFF;--c-link:#1D4ED8;--c-accent:#1D4ED8;--c-onaccent:#FFFFFF;--c-accentstrong:#1A46C0;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:0px;--t-shadow:none;}
html[data-theme="forest-sand"]{--c-bg:#F5E6D3;--c-surface:#FAF0E2;--c-surface2:#EFE0C9;--c-border:#D9C7AB;--c-border-strong:#868076;--c-text:#2C2C2A;--c-muted:#5C564C;--c-primary:#1F3A2E;--c-onprimary:#F5E6D3;--c-link:#1F3A2E;--c-accent:#5A7560;--c-onaccent:#FFFFFF;--c-accentstrong:#556E5A;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:4px;--t-shadow:0 4px 12px rgba(44,44,42,0.08);}
html[data-theme="sepia"]{--c-bg:#F4ECD8;--c-surface:#FBF3E0;--c-surface2:#EADFC6;--c-border:#D9C8A0;--c-border-strong:#8E826F;--c-text:#433422;--c-muted:#706148;--c-primary:#9A5B34;--c-onprimary:#FFF8EC;--c-link:#9A5B34;--c-accent:#5B7A5B;--c-onaccent:#ffffff;--c-accentstrong:#547054;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:4px;--t-shadow:0 1px 2px rgba(67,52,34,.15);}
html[data-theme="earthy"]{--c-bg:#F3EEE6;--c-surface:#FBF8F2;--c-surface2:#E7DECF;--c-border:#D8CBB4;--c-border-strong:#89847C;--c-text:#2F2A22;--c-muted:#6C6150;--c-primary:#96673C;--c-onprimary:#FFF8EC;--c-link:#90633A;--c-accent:#5E7355;--c-onaccent:#ffffff;--c-accentstrong:#5C7153;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:10px;--t-shadow:0 2px 6px rgba(47,42,34,.08);}
html[data-theme="desert"]{--c-bg:#F6ECDD;--c-surface:#FDF6EA;--c-surface2:#EBD9BF;--c-border:#D9BE96;--c-border-strong:#908273;--c-text:#3B2A1C;--c-muted:#715C42;--c-primary:#B65630;--c-onprimary:#FFF6EC;--c-link:#AB512D;--c-accent:#3E7CA6;--c-onaccent:#ffffff;--c-accentstrong:#387095;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:10px;--t-shadow:0 2px 6px rgba(59,42,28,.1);}
html[data-theme="wine"]{--c-bg:#F7F1EC;--c-surface:#FFFFFF;--c-surface2:#EFE3DC;--c-border:#DBC8BE;--c-border-strong:#918484;--c-text:#2E1A1E;--c-muted:#6E555A;--c-primary:#7A2336;--c-onprimary:#FFF4EE;--c-link:#7A2336;--c-accent:#3E6B5A;--c-onaccent:#ffffff;--c-accentstrong:#3E6B5A;--f-heading:'Geist',system-ui,sans-serif;--f-body:'Geist',system-ui,sans-serif;--f-mono:'Geist Mono',ui-monospace,monospace;--t-radius:10px;--t-shadow:0 2px 6px rgba(46,26,30,.1);}

/* ===================== BASE ===================== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--c-bg);color:var(--c-text);font-family:var(--f-body);line-height:1.6;
  -webkit-font-smoothing:antialiased;transition:background .25s,color .25s}
h1,h2,h3{font-family:var(--f-heading);line-height:1.12;margin:0 0 .4em;color:var(--c-text)}
h1{font-size:clamp(2.4rem,5.5vw,4.2rem);font-weight:700;letter-spacing:-.01em}
h2{font-size:clamp(1.7rem,3.2vw,2.5rem);font-weight:700}
h3{font-size:1.18rem;font-weight:600}
p{margin:0 0 1rem;max-width:68ch}
a{color:var(--c-link);text-underline-offset:3px}
img{max-width:100%;height:auto}
.mono{font-family:var(--f-mono)}
.wrap{max-width:1080px;margin:0 auto;padding:0 clamp(1.2rem,4vw,2.6rem)}
section{padding:clamp(2.2rem,4.8vw,3.6rem) 0;border-top:1px solid var(--c-border)}
section:first-of-type{border-top:none}
.eyebrow{font-family:var(--f-mono);font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--c-accentstrong);margin-bottom:.9rem}
.lead{font-size:1.18rem;color:var(--c-muted);max-width:62ch}
.muted{color:var(--c-muted)}
.center-cta{margin-top:2.4rem}
.arealinks{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}
.arealink{display:inline-flex;align-items:center;border:1.5px solid var(--c-border-strong);border-radius:999px;padding:.28rem .8rem;font-size:.84rem;font-weight:500;color:var(--c-text);text-decoration:none;transition:background .12s,color .12s,border-color .12s}
.arealink:hover,.arealink:focus-visible{background:var(--c-surface2);color:var(--c-text);border-color:var(--c-primary)}

/* skip link */
.skip{position:absolute;left:-999px;top:0;background:var(--c-primary);color:var(--c-onprimary);padding:.6rem 1rem;z-index:100;border-radius:var(--t-radius)}
.skip:focus{left:8px;top:8px}

/* theme switcher — swatch button opens a theme list */
.themebar{position:relative;margin-left:auto;display:flex;align-items:center}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);padding:.45rem .5rem;cursor:pointer}
.theme-toggle:hover{box-shadow:var(--t-shadow)}
.theme-toggle[aria-expanded="true"]{background:var(--c-surface2)}
.theme-panel[hidden]{display:none}
.theme-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:90;width:242px;max-width:80vw;max-height:70vh;overflow-y:auto;background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);box-shadow:var(--t-shadow);padding:.5rem}
.search-toggle{display:inline-flex;align-items:center;justify-content:center;background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);padding:.45rem .5rem;cursor:pointer;margin-right:.5rem;color:var(--c-text)}
.search-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:90;width:340px;max-width:86vw;max-height:70vh;overflow-y:auto;background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);box-shadow:var(--t-shadow);padding:.6rem}
.search-panel input{width:100%;padding:.5rem .6rem;font:inherit;font-size:.9rem;background:var(--c-bg);color:var(--c-text);border:2px solid var(--c-border-strong);border-radius:calc(var(--t-radius)*.5)}
.search-panel .sp-results{margin:.5rem 0 0;padding:0;list-style:none}
.search-panel .sp-results a{display:block;padding:.45rem .5rem;text-decoration:none;color:var(--c-text);border-radius:calc(var(--t-radius)*.5)}
.search-panel .sp-results a:hover,.search-panel .sp-results a:focus-visible{background:var(--c-surface2)}
.search-panel .sp-results .t{display:block;font-weight:600;font-size:.88rem}
.search-panel .sp-results .d{display:block;font-size:.76rem;color:var(--c-muted)}
.search-panel .sp-note{font-size:.72rem;color:var(--c-muted);margin:.45rem 0 0}
.f-row{display:grid;grid-template-columns:1fr 1fr;gap:.9rem}
@media(max-width:600px){.f-row{grid-template-columns:1fr}}
h1,h2,h3{text-wrap:balance}
p{text-wrap:pretty}
.theme-panel-h{font-family:var(--f-mono);font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;color:var(--c-muted);margin:.1rem .3rem .4rem}
.theme-grp{margin-bottom:.35rem}
.theme-grp-l{display:block;font-family:var(--f-mono);font-size:.56rem;letter-spacing:.08em;text-transform:uppercase;color:var(--c-muted);padding:.15rem .3rem}
.theme-opt{display:block;width:100%;text-align:left;font-family:var(--f-mono);font-size:.76rem;color:var(--c-text);background:none;border:0;border-radius:calc(var(--t-radius)*.5);padding:.34rem .45rem;cursor:pointer}
.theme-opt:hover,.theme-opt:focus-visible{background:var(--c-surface2)}
.theme-opt[aria-checked="true"]{background:var(--c-surface2);font-weight:600}
.theme-opt[aria-checked="true"]::before{content:"\2713 ";color:var(--c-primary)}
@media (prefers-reduced-motion:reduce){.theme-toggle svg,.navlink,.navlink::after,nav.links a,.submenu a{transition:none}}

/* nav */
header.nav{position:sticky;top:0;z-index:60;background:var(--c-surface);border-bottom:2px solid var(--c-border-strong)}
.nav .wrap{display:flex;align-items:center;justify-content:flex-start;gap:clamp(.9rem,2vw,1.6rem);min-height:64px;flex-wrap:wrap}
.brand{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--f-body);font-weight:600;font-size:1.2rem;line-height:1;letter-spacing:-.005em;text-decoration:none;color:var(--c-text)}
.brand::before{content:"";width:1.35em;height:1.35em;flex:0 0 auto;background:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20102%2089%22%3E%3Cpath%20d%3D%22M51.00%203.00%20L63.00%2023.78%20L39.00%2023.78%20Z%20M63.00%2023.78%20L75.00%2044.57%20L51.00%2044.57%20Z%20M39.00%2023.78%20L51.00%2044.57%20L27.00%2044.57%20Z%20M75.00%2044.57%20L87.00%2065.35%20L63.00%2065.35%20Z%20M87.00%2065.35%20L99.00%2086.14%20L75.00%2086.14%20Z%20M63.00%2065.35%20L75.00%2086.14%20L51.00%2086.14%20Z%20M27.00%2044.57%20L39.00%2065.35%20L15.00%2065.35%20Z%20M39.00%2065.35%20L51.00%2086.14%20L27.00%2086.14%20Z%20M15.00%2065.35%20L27.00%2086.14%20L3.00%2086.14%20Z%22%20fill%3D%22%231D47B4%22/%3E%3C/svg%3E') center/contain no-repeat}
.brand span{color:var(--c-primary)}
.brand.live::before{display:none}
.brand canvas{flex:0 0 auto}
nav.links{display:flex;align-items:center;gap:clamp(.6rem,1.5vw,1.4rem);flex-wrap:wrap}
nav.links a{display:inline-flex;align-items:center;line-height:1;color:var(--c-text);text-decoration:none;font-family:var(--f-body);font-size:.9rem;font-weight:500;letter-spacing:.01em;padding:.3rem 0;border-bottom:2px solid transparent;transition:color .12s}
nav.links a:hover{color:var(--c-link)}
nav.links a[aria-current="page"]{color:var(--c-link);border-bottom-color:var(--c-primary)}
nav.links a:focus-visible,.navlink:focus-visible,.brand:focus-visible{outline:2px solid var(--c-primary);outline-offset:3px;border-radius:2px}

/* hero */
.hero{padding-top:clamp(2.4rem,5vw,4rem);border-top:none}
.hero .tag{font-family:var(--f-heading);font-style:italic;font-size:clamp(2.6rem,8vw,5.2rem);font-weight:400;line-height:1.02;margin:0 0 .3em}
html[data-theme="material"] .hero .tag,html[data-theme="neo-brutalism"] .hero .tag,html[data-theme="brutalist-dark"] .hero .tag,html[data-theme="concrete"] .hero .tag,html[data-theme="carbon"] .hero .tag,html[data-theme="graphite"] .hero .tag,html[data-theme="graphite-light"] .hero .tag{font-style:normal;font-weight:700}
.hero h2{font-weight:500;color:var(--c-muted);max-width:28ch}

/* page header (non-hero pages) */
.page-head{padding-top:clamp(2rem,4.5vw,3.4rem);border-top:none;position:relative;overflow:hidden}
.page-head h1{margin-bottom:.2em}
/* Ambient generative backdrop injected by script.js — quiet themed node network behind the head. */
.page-head>.ph-netbg{position:absolute;inset:0;width:100%;height:100%;z-index:0;opacity:.6;pointer-events:none}
.page-head>.wrap{position:relative;z-index:1} /* keep heading/text above the art, full contrast */

/* buttons */
.btns{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.8rem}
.btn{display:inline-block;font-family:var(--f-body);font-weight:600;font-size:.98rem;padding:.8rem 1.4rem;border-radius:var(--t-radius);
  text-decoration:none;border:2px solid var(--c-border-strong);cursor:pointer}
.btn.primary{background:var(--c-primary);color:var(--c-onprimary);border-color:var(--c-primary)}
.btn.ghost{background:transparent;color:var(--c-text)}
.btn:hover{box-shadow:var(--t-shadow)}
.btn[disabled],.btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}

/* card + grid */
.grid{display:grid;gap:1.2rem}
.grid.two{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid.three{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
/* fixed-ratio two-column splits that collapse to one column on mobile */
.grid.split{grid-template-columns:1fr 1.3fr}
.grid.split.media{grid-template-columns:minmax(220px,1fr) 2fr}
@media(max-width:640px){.grid.split,.grid.split.media{grid-template-columns:1fr}}
.card{background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);padding:1.5rem;box-shadow:var(--t-shadow)}
.card h3{margin-top:0}
.card p:last-child{margin-bottom:0}
.axis h3{color:var(--c-primary)}
ul.plain{list-style:none;padding:0;margin:.4rem 0 0}
ul.plain li{padding:.42rem 0;border-bottom:1px solid var(--c-border);font-weight:500}
ul.plain li:last-child{border-bottom:none}
.tags{font-family:var(--f-mono);font-size:.76rem;color:var(--c-accentstrong);margin:.2rem 0 .8rem}
.kv{font-size:.92rem;margin:.15rem 0}
.kv b{color:var(--c-text)}
.pill{display:inline-block;background:var(--c-surface2);border:1px solid var(--c-border-strong);border-radius:999px;padding:.15rem .7rem;font-family:var(--f-mono);font-size:.72rem;margin:.2rem .3rem .2rem 0}
.subhead{margin-top:2.6rem}

/* callouts */
.callout{background:var(--c-surface2);border:2px solid var(--c-border-strong);border-left:6px solid var(--c-primary);border-radius:var(--t-radius);padding:1.4rem 1.6rem}
.callout h3{margin-top:0}
.vows{background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);padding:1.4rem 1.6rem;box-shadow:var(--t-shadow)}
.vows h3{margin-top:0}
.vows li{margin:.5rem 0;padding-left:.2rem}

/* faq */
details{border:2px solid var(--c-border-strong);border-radius:var(--t-radius);padding:.4rem 1.2rem;margin-bottom:.8rem;background:var(--c-surface)}
details summary{cursor:pointer;font-family:var(--f-heading);font-weight:600;padding:.7rem 0;list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:center}
details summary::-webkit-details-marker{display:none}
details summary::after{content:'+';color:var(--c-primary);font-weight:700;font-size:1.3rem;line-height:1}
details[open] summary::after{content:'–'}
details p{margin:0 0 .8rem}

/* logos strip */
.logos{display:flex;flex-wrap:wrap;gap:.5rem}
.logos .pill{background:var(--c-surface);font-size:.78rem;padding:.4rem .9rem}

/* form */
form.contact{display:grid;gap:1rem}
form.contact label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.35rem}
form.contact input,form.contact select,form.contact textarea{
  width:100%;font-family:var(--f-body);font-size:1rem;padding:.7rem .8rem;background:var(--c-bg);color:var(--c-text);
  border:2px solid var(--c-border-strong);border-radius:var(--t-radius)}
form.contact textarea{min-height:130px;resize:vertical}
form.contact .req{color:var(--c-link)}
.form-ok,.form-err{display:none;background:var(--c-surface2);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);padding:1rem 1.2rem;font-weight:600}
.form-err{font-weight:400}
.form-err b{display:block;margin-bottom:.3rem}
.hp{position:absolute;left:-9999px}

/* footer */
footer{background:var(--c-surface2);border-top:2px solid var(--c-border-strong);padding:2.6rem 0;font-size:.92rem}
footer .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.4rem;align-items:start}
footer a{color:var(--c-link)}
.foot-social a{font-weight:600;text-decoration:none}
.foot-social a:hover{text-decoration:underline}

/* ===================== PHASE-0 COMPONENTS (2026-07-06) ===================== */

/* accessibility: visible focus + reduced motion */
:focus-visible{outline:3px solid var(--c-accentstrong);outline-offset:2px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}body{transition:none}}

/* mobile nav toggle (hamburger) */
.nav-toggle{display:none;background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);
  padding:.5rem .55rem;cursor:pointer;flex-direction:column;gap:4px}
.nav-toggle .bar{display:block;width:20px;height:2px;background:var(--c-text)}

/* press strip — "Covered in …" credibility component */
.press-strip{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.4rem;border:2px solid var(--c-border-strong);
  background:var(--c-surface);border-radius:var(--t-radius);padding:1rem 1.4rem;box-shadow:var(--t-shadow)}
.press-strip .label{font-family:var(--f-mono);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--c-muted)}
.press-strip a{font-family:var(--f-heading);font-weight:700;font-size:1.05rem;color:var(--c-text);text-decoration:none;border-bottom:2px solid var(--c-primary)}
.press-strip a:hover{color:var(--c-link)}
.press-strip.compact{padding:.7rem 1rem;box-shadow:none}
.press-strip.compact a{font-size:.95rem}

/* who-cards — buyer lanes (use with .grid.three) */
.who-cards .icon{width:34px;height:34px;margin-bottom:.8rem;color:var(--c-primary)}
.who-cards .icon svg{width:100%;height:100%;display:block}
.who-cards .card h3{margin-bottom:.35rem}
.who-cards .lane-cta{display:inline-block;margin-top:.6rem;font-weight:600}

/* pricing — productized offer rows: name · duration · price + description */
.pricing{display:grid;gap:.7rem;margin-top:1.2rem}
.pricing .row{display:grid;grid-template-columns:1fr auto auto;gap:.3rem 1.2rem;align-items:baseline;
  background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);padding:1rem 1.2rem}
.pricing .row h3{margin:0;font-size:1.05rem}
.pricing .row .what{grid-column:1/-1;margin:0;color:var(--c-muted);font-size:.92rem;max-width:none}
.pricing .dur{font-family:var(--f-mono);font-size:.78rem;color:var(--c-muted);white-space:nowrap}
.pricing .price{font-family:var(--f-mono);font-weight:700;white-space:nowrap}

/* testimonial scaffold */
.testimonial{background:var(--c-surface);border:2px solid var(--c-border-strong);border-left:6px solid var(--c-accent);
  border-radius:var(--t-radius);padding:1.2rem 1.4rem}
.testimonial blockquote{margin:0 0 .6rem;font-family:var(--f-heading);font-size:1.05rem;line-height:1.5}
.testimonial cite{font-style:normal;font-family:var(--f-mono);font-size:.78rem;color:var(--c-muted)}

/* visible TODO placeholder — never ships silently */
.todo{display:block;border:2px dashed var(--c-border-strong);border-radius:var(--t-radius);background:var(--c-surface2);
  padding:.8rem 1rem;font-family:var(--f-mono);font-size:.8rem;color:var(--c-text)}
.todo::before{content:"TODO · ";font-weight:700;color:var(--c-accentstrong);letter-spacing:.08em}

/* draft banner — marks unapproved essay/pricing drafts */
.draft-banner{background:var(--c-surface2);border:2px solid var(--c-border-strong);border-left:6px solid var(--c-accent);
  border-radius:var(--t-radius);padding:.7rem 1rem;font-family:var(--f-mono);font-size:.8rem;margin-bottom:1.6rem}

/* case-study image treatment */
.case .shot{display:block;border:2px solid var(--c-border-strong);border-radius:var(--t-radius);overflow:hidden;
  background:var(--c-surface2);margin-bottom:1rem;aspect-ratio:16/9}
.case .shot img{width:100%;height:100%;object-fit:cover;display:block}
.case .shot.placeholder{display:flex;align-items:center;justify-content:center;font-family:var(--f-mono);
  font-size:.78rem;color:var(--c-muted);text-align:center;padding:1rem}

/* subscribe / updates capture */
.subscribe{background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);box-shadow:var(--t-shadow);padding:1.5rem 1.6rem}
.subscribe form{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:.8rem}
.subscribe input[type="email"]{flex:1 1 240px;font-family:var(--f-body);font-size:1rem;padding:.7rem .8rem;
  background:var(--c-bg);color:var(--c-text);border:2px solid var(--c-border-strong);border-radius:var(--t-radius)}
.subscribe .note{font-size:.82rem;color:var(--c-muted);margin:.6rem 0 0}

/* explorer back-bar (for pages that link this stylesheet) */
.explorer-bar{position:sticky;top:0;z-index:70;display:flex;gap:1rem;align-items:center;background:var(--c-surface);
  border-bottom:2px solid var(--c-border-strong);padding:.5rem 1rem;font-family:var(--f-mono);font-size:.8rem}
.explorer-bar a{color:var(--c-text);text-decoration:none;font-weight:600}
.explorer-bar a:hover{color:var(--c-link)}

/* back link for deep-dive / essay pages */
.backlink{font-family:var(--f-mono);font-size:.8rem;text-decoration:none;font-weight:600}

/* headshot / photo slot (moved from about.html) */
.photo{border:2px solid var(--c-border-strong);border-radius:var(--t-radius);box-shadow:var(--t-shadow);background:var(--c-surface2);
  aspect-ratio:4/5;display:flex;align-items:center;justify-content:center;text-align:center;
  font-family:var(--f-mono);font-size:.78rem;color:var(--c-muted);overflow:hidden}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
figure.photo-fig{margin:0}
figure.photo-fig figcaption{font-family:var(--f-mono);font-size:.75rem;color:var(--c-muted);margin-top:.5rem}

/* feature card + badges + thumbs (moved from atlas.html; shot bg now tokenized) */
.feature{display:grid;grid-template-columns:1.1fr 1fr;gap:0;border:2px solid var(--c-border-strong);border-radius:var(--t-radius);
  box-shadow:var(--t-shadow);overflow:hidden;background:var(--c-surface)}
.feature .body{padding:1.6rem 1.8rem}
.feature .shot{background:var(--c-surface2);display:flex;align-items:center;justify-content:center;min-height:220px;border-left:2px solid var(--c-border-strong)}
.feature .shot img{width:100%;height:100%;object-fit:cover;display:block}
.badge{display:inline-block;font-family:var(--f-mono);font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;
  padding:.2rem .55rem;border:1.5px solid var(--c-border-strong);border-radius:999px;margin-bottom:.7rem}
.badge.live{background:var(--c-primary);color:var(--c-onprimary);border-color:var(--c-primary)}
.thumb{aspect-ratio:16/10;border-bottom:2px solid var(--c-border-strong);overflow:hidden;background:var(--c-surface2);margin:-1.5rem -1.5rem 1rem}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* ===================== RESPONSIVE ===================== */
@media (max-width:720px){
  .feature{grid-template-columns:1fr}
  .feature .shot{border-left:none;border-top:2px solid var(--c-border-strong)}
}
@media (max-width:719px){
  .nav-toggle{display:inline-flex;order:3}
  .themebar{order:2}
  nav.links{display:none;order:5;flex-basis:100%;flex-direction:column;gap:.2rem;padding:.4rem 0 .9rem}
  nav.links.open{display:flex}
  nav.links a{padding:.55rem 0;font-size:1.05rem;width:100%;line-height:1.3}
  .theme-panel{position:fixed;left:12px;right:12px;top:62px;width:auto;max-width:none}
  .search-panel{position:fixed;left:12px;right:12px;top:62px;width:auto;max-width:none}
}
@media (max-width:600px){
  .pricing .row{grid-template-columns:1fr}
  .pricing .dur,.pricing .price{justify-self:start}
}


/* ===================== STAGE-1 REDESIGN COMPONENTS (2026-07-06) ===================== */

/* display type — Instrument Serif, the brand display face */
.display,.hero .tag{font-family:var(--f-display)!important;font-weight:400;font-style:italic!important;line-height:1.02;letter-spacing:0}
.hero .tag{font-size:clamp(2.6rem,7.5vw,5rem)}
h1,h2{letter-spacing:-.015em}

/* section head grouping + hero proof line */
.sec-head{margin-bottom:.7rem}
.sec-head .eyebrow{margin-bottom:.2rem}
.sec-head h2{margin:0}
.proof-line{margin-top:1rem;font-size:.95rem;max-width:62ch;color:var(--c-text);line-height:1.55}

/* triad front door — three lanes as a divided band, not cards */
.triad{display:grid;grid-template-columns:repeat(3,1fr);border:2px solid var(--c-border-strong);background:var(--c-border-strong);gap:2px;margin-top:1rem}
.triad>div{background:var(--c-surface);padding:1rem 1.1rem;display:flex;flex-direction:column}
.triad .who{font-family:var(--f-mono);font-size:.64rem;letter-spacing:.1em;text-transform:uppercase;color:var(--c-accentstrong)}
.triad h3{font-size:1.05rem;margin:.3rem 0 .35rem}
.triad p{font-size:.9rem;color:var(--c-muted);margin:0 0 .6rem;max-width:none}
.triad a{margin-top:auto;font-family:var(--f-mono);font-size:.76rem;color:var(--c-link);text-decoration:none;font-weight:600}
.triad a::after{content:" \2192"}
.triad.duo{grid-template-columns:1fr 1fr}
@media(max-width:720px){.triad,.triad.duo{grid-template-columns:1fr}}
.triad.quad{grid-template-columns:1fr 1fr}
@media(max-width:560px){.triad.quad{grid-template-columns:1fr}}

/* crosswalk matrix */
.matrix-wrap{overflow-x:auto;margin-top:1rem}
table.matrix{border-collapse:collapse;width:100%;min-width:620px;font-size:.82rem}
table.matrix th,table.matrix td{border:1px solid var(--c-border-strong);padding:.45rem .55rem;text-align:center}
table.matrix thead th{background:var(--c-surface2);font-family:var(--f-mono);font-size:.62rem;letter-spacing:.05em;
  text-transform:uppercase;font-weight:600;vertical-align:bottom}
table.matrix tbody th{text-align:left;background:var(--c-surface2);font-weight:600;white-space:nowrap}
table.matrix td .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--c-border-strong)}
table.matrix td.hit{background:color-mix(in srgb,var(--c-primary) 14%,var(--c-surface))}
table.matrix td.hit .dot{background:var(--c-primary);width:11px;height:11px}
table.matrix td.hit.acc{background:color-mix(in srgb,var(--c-accent) 16%,var(--c-surface))}
table.matrix td.hit.acc .dot{background:var(--c-accent)}
.matrix-legend{display:flex;gap:1.1rem;flex-wrap:wrap;margin-top:.55rem;font-family:var(--f-mono);font-size:.66rem;color:var(--c-muted)}
.matrix-legend span{display:inline-flex;align-items:center;gap:.35rem}
.matrix-legend i{width:10px;height:10px;border-radius:50%;display:inline-block}

/* stat band */
.statband{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));border:2px solid var(--c-border-strong);margin-top:1rem}
.statband>div{padding:.9rem 1.1rem;border-left:2px solid var(--c-border-strong)}
.statband>div:first-child{border-left:none}
.statband .n{font-family:var(--f-display);font-style:normal;font-weight:400;font-size:clamp(1.7rem,3.4vw,2.5rem);line-height:1;letter-spacing:-.01em}
.statband .n.o{color:var(--c-primary)}
.statband .l{font-family:var(--f-mono);font-size:.64rem;letter-spacing:.06em;text-transform:uppercase;color:var(--c-muted);margin-top:.35rem}
@media(max-width:520px){.statband{grid-template-columns:1fr 1fr}}

/* asymmetric feature + list */
.feature-asym{display:grid;grid-template-columns:1.55fr 1fr;gap:1rem;align-items:stretch;margin-top:1rem}
.feature-asym .lead-case{border:2px solid var(--c-border-strong);box-shadow:var(--t-shadow);background:var(--c-surface);display:flex;flex-direction:column;overflow:hidden}
.feature-asym .lead-case .shot{aspect-ratio:16/8;border-bottom:2px solid var(--c-border-strong);overflow:hidden;background:var(--c-surface2)}
.feature-asym .lead-case .shot img{width:100%;height:100%;object-fit:cover;display:block}
.feature-asym .lead-case .body{padding:.9rem 1.1rem}
.feature-asym .caselist{display:flex;flex-direction:column;border:2px solid var(--c-border-strong)}
.feature-asym .caselist a{border-top:1px solid var(--c-border-strong);text-decoration:none;color:var(--c-text)}
.feature-asym .caselist a:first-child{border-top:none}
.feature-asym .caselist .case{flex:1;display:flex;flex-direction:column;justify-content:center;gap:.15rem;padding:.75rem .95rem;position:relative;transition:background .15s}
.feature-asym .caselist .case:hover{background:var(--c-surface2)}
.feature-asym .caselist .case::after{content:"\2192";position:absolute;right:.9rem;top:50%;transform:translateY(-50%);opacity:0;transition:opacity .15s;color:var(--c-link)}
.feature-asym .caselist .case:hover::after{opacity:1}
.feature-asym .caselist .t{font-weight:600;font-size:.92rem}
.feature-asym .caselist .m{font-family:var(--f-mono);font-size:.66rem;color:var(--c-muted);margin-top:.15rem}
.feature-asym .caselist-more{flex:none;text-align:center;padding:.7rem;font-family:var(--f-mono);font-size:.72rem;font-weight:600;color:var(--c-link);background:var(--c-surface2)}
.feature-asym .caselist-more:hover{text-decoration:underline}
@media(max-width:760px){.feature-asym{grid-template-columns:1fr}}

/* two-panel split section */
.split-2{display:grid;grid-template-columns:1fr 1fr;border:2px solid var(--c-border-strong);margin-top:1rem}
.split-2>div{padding:1.1rem 1.2rem}
.split-2>div:first-child{border-right:2px solid var(--c-border-strong)}
.split-2 .kicker{font-family:var(--f-mono);font-size:.64rem;letter-spacing:.1em;text-transform:uppercase;color:var(--c-accentstrong);margin-bottom:.3rem}
@media(max-width:720px){.split-2{grid-template-columns:1fr}.split-2>div:first-child{border-right:none;border-bottom:2px solid var(--c-border-strong)}}

/* pipeline / stage flow */
.pipeline{display:flex;align-items:stretch;border:2px solid var(--c-border-strong);background:var(--c-surface);margin-top:1rem;flex-wrap:wrap}
.pipeline .stage{flex:1 1 160px;padding:.9rem 1rem;border-left:2px solid var(--c-border-strong)}
.pipeline .stage:first-child{border-left:none}
.pipeline .stage .s{font-family:var(--f-mono);font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;color:var(--c-accentstrong)}
.pipeline .stage b{display:block;margin-top:.2rem}
.pipeline .stage p{font-size:.82rem;color:var(--c-muted);margin:.2rem 0 0}

/* timeline */
.timeline{border-left:2px solid var(--c-border-strong);margin:1rem 0 0 .5rem;padding-left:1.1rem;display:flex;flex-direction:column;gap:.9rem}
.timeline .ev{position:relative}
.timeline .ev::before{content:"";position:absolute;left:-1.16rem;top:.35rem;width:10px;height:10px;background:var(--c-primary);
  border:2px solid var(--c-bg);border-radius:50%}
.timeline .y{font-family:var(--f-mono);font-size:.66rem;color:var(--c-accentstrong);letter-spacing:.04em}
.timeline .ev b{display:block;font-size:.98rem;margin:.05rem 0}
.timeline .ev p{font-size:.86rem;color:var(--c-muted);margin:.1rem 0 0}

/* snapshot box — scannable at-a-glance facts atop a case/essay */
.snapshot{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));border:2px solid var(--c-border-strong);margin:1rem 0;background:var(--c-surface)}
.snapshot>div{padding:.6rem .85rem;border-left:2px solid var(--c-border-strong)}
.snapshot>div:first-child{border-left:none}
.snapshot .sk{font-family:var(--f-mono);font-size:.58rem;letter-spacing:.08em;text-transform:uppercase;color:var(--c-muted)}
.snapshot .sv{font-size:.9rem;font-weight:500;margin-top:.12rem}
@media(max-width:520px){.snapshot{grid-template-columns:1fr 1fr}.snapshot>div{border-left:none;border-top:1px solid var(--c-border-strong)}.snapshot>div:nth-child(-n+2){border-top:none}}

/* phase-space — interactive "place your problem" module */
.phase{display:grid;grid-template-columns:1.05fr 1fr;gap:0;border:2px solid var(--c-border-strong);
  background:var(--c-surface);margin-top:1rem;overflow:hidden}
.phase .space{position:relative;border-right:2px solid var(--c-border-strong);background:var(--c-surface2);min-height:300px}
.phase canvas{display:block;width:100%;height:100%;position:absolute;inset:0}
.phase .axlab{position:absolute;font-family:var(--f-mono);font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;color:var(--c-muted);pointer-events:none}
.phase .axlab.x{bottom:.4rem;right:.5rem}
.phase .axlab.y{top:.5rem;left:.5rem;writing-mode:vertical-rl;transform:rotate(180deg)}
.phase .controls{padding:1rem 1.15rem;display:flex;flex-direction:column;gap:.7rem}
.phase .q label{display:block;font-size:.82rem;font-weight:500;margin-bottom:.15rem}
.phase .q .ends{display:flex;justify-content:space-between;font-family:var(--f-mono);font-size:.58rem;color:var(--c-muted);margin-top:.1rem}
.phase input[type=range]{width:100%;accent-color:var(--c-primary);height:1.2rem}
.phase .readout{margin-top:.2rem;border-top:2px solid var(--c-border-strong);padding-top:.7rem}
.phase .readout .rname{font-family:var(--f-display);font-style:italic;font-size:1.5rem;line-height:1;color:var(--c-primary)}
.phase .readout p{font-size:.86rem;color:var(--c-muted);margin:.35rem 0 .5rem}
.phase .readout a.rcta{font-family:var(--f-mono);font-size:.74rem;color:var(--c-link);text-decoration:none;font-weight:600}
.phase .readout a.rcta::after{content:" \2192"}
.phase .foot{grid-column:1/-1;border-top:2px solid var(--c-border-strong);padding:.5rem .9rem;font-family:var(--f-mono);
  font-size:.68rem;color:var(--c-muted);display:flex;justify-content:space-between;gap:.6rem;flex-wrap:wrap;background:var(--c-surface2)}
.phase .foot a{color:var(--c-link);text-decoration:none}
@media(max-width:720px){.phase{grid-template-columns:1fr}.phase .space{border-right:none;border-bottom:2px solid var(--c-border-strong)}}

/* receipts — hover/focus-to-source citation */
.receipt{position:relative;display:inline}
/* provenance thread — the popover rises in and a thin thread draws down to the claim */
.receipt>.src{animation:src-rise .16s ease-out}
.receipt>.src::after{content:"";position:absolute;top:100%;left:1.1rem;width:2px;height:6px;background:var(--c-accentstrong);transform-origin:top;animation:src-thread .16s ease-out}
.receipt.r-end>.src::after{left:auto;right:1.1rem}
@keyframes src-rise{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes src-thread{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media (prefers-reduced-motion: reduce){.receipt>.src,.receipt>.src::after{animation:none}}
.receipt>button{font:inherit;color:inherit;background:var(--c-surface2);border:none;border-bottom:2px solid var(--c-accentstrong);
  padding:0 .12rem;cursor:help}
.receipt>.src{position:absolute;left:0;bottom:calc(100% + 6px);width:min(20rem,74vw);z-index:40;
  background:var(--c-surface);border:2px solid var(--c-border-strong);box-shadow:var(--t-shadow);padding:.6rem .7rem;
  font-family:var(--f-body);font-size:.8rem;line-height:1.4;color:var(--c-text);display:none}
.receipt:hover>.src,.receipt:focus-within>.src{display:block}
/* flip near the right edge so the popover never pushes the page sideways */
.receipt.r-end>.src{left:auto;right:0}
.receipt .src .k{font-family:var(--f-mono);font-size:.58rem;letter-spacing:.09em;text-transform:uppercase;color:var(--c-accentstrong);display:block;margin-bottom:.2rem}



/* nav dropdown menus */
.navitem{position:relative;display:inline-flex;align-items:center}
.navlink{display:inline-flex;align-items:center;line-height:1;gap:.32rem;font-family:var(--f-body);font-size:.9rem;font-weight:500;letter-spacing:.01em;color:var(--c-text);background:none;border:0;border-bottom:2px solid transparent;cursor:pointer;padding:.3rem 0;transition:color .12s}
.navlink:hover,.navitem:hover>.navlink{color:var(--c-link)}
.navlink[aria-current="page"]{color:var(--c-link);border-bottom-color:var(--c-primary)}
.submenu{position:absolute;top:100%;left:0;z-index:80;min-width:236px;max-height:min(80vh,560px);overflow-y:auto;display:flex;visibility:hidden;opacity:0;transition:opacity .12s ease,visibility 0s linear .14s;flex-direction:column;background:var(--c-surface);border:2px solid var(--c-border-strong);border-radius:var(--t-radius);box-shadow:var(--t-shadow);padding:.4rem}
.submenu-label{display:block;font-family:var(--f-mono);font-size:.58rem;letter-spacing:.1em;text-transform:uppercase;color:var(--c-muted);padding:.55rem .65rem .2rem}
nav.links .submenu a{display:block;padding:.5rem .65rem;text-decoration:none;color:var(--c-text);font-family:var(--f-body);font-size:.88rem;font-weight:500;line-height:1.25;border:0;border-radius:calc(var(--t-radius)*.5);white-space:nowrap;transition:background .1s,color .1s}
nav.links .submenu a:hover,nav.links .submenu a:focus-visible{background:var(--c-surface2);color:var(--c-text)}
.navitem:hover .submenu{visibility:visible;opacity:1;transition-delay:.28s,.28s}
.navitem:focus-within .submenu,.navlink[aria-expanded="true"]+.submenu{visibility:visible;opacity:1;transition-delay:0s,0s}
@media(max-width:719px){
  .navitem{display:block;width:100%}
  .navlink{width:100%;justify-content:space-between;padding:.55rem 0;font-size:1.05rem}
  .submenu{position:static;box-shadow:none;border:0;border-left:2px solid var(--c-border-strong);border-radius:0;margin:.1rem 0 .4rem .3rem;padding:.1rem 0 .1rem .7rem;min-width:0;display:none;visibility:visible;opacity:1;transition:none}
  .submenu::before{display:none}
  .navitem:hover .submenu{display:none}
  .navlink[aria-expanded="true"]+.submenu{display:flex}
}

/* Cross-document view transitions - soft fade between pages (progressive
   enhancement; browsers without support just navigate normally). */
@view-transition{navigation:auto}
@media (prefers-reduced-motion: reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}


/* footer bifurcation sparkline */
.foot-bifurc{display:block;width:100%;max-width:340px;height:96px;justify-self:end;align-self:center}
@media(max-width:719px){.foot-bifurc{justify-self:start;max-width:300px}}
.policy-sec{max-width:1020px;display:grid;grid-template-columns:230px 1fr;gap:.4rem 2.6rem}
.policy-sec .sec-head{grid-column:1;position:sticky;top:96px;align-self:start}
.policy-sec>*:not(.sec-head){grid-column:2}
@media(max-width:820px){.policy-sec{display:block;max-width:760px}}

/* Cantor-set section divider (atlas) */
canvas.cantor{display:block;width:min(320px,60%);height:26px;margin:0 0 1.1rem}

/* causal-loop figure (services) — paths draw themselves on scroll */
.loop-fig{margin:1.6rem 0 0;max-width:620px}
.loop-fig svg{display:block;width:100%;height:auto}
.loop-fig .loop-path{fill:none;stroke:var(--c-accent);stroke-width:2;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset .8s ease}
.loop-fig .loop-head{fill:var(--c-accent);opacity:0;transition:opacity .3s ease}
.loop-fig .loop-node{font-family:var(--f-mono);font-size:13px;letter-spacing:.06em;text-transform:uppercase;fill:var(--c-text)}
.loop-fig .loop-r{font-family:var(--f-display);font-style:italic;font-size:22px;fill:var(--c-primary)}
.loop-fig .loop-rc{fill:none;stroke:var(--c-primary);stroke-width:2;opacity:0;transition:opacity .3s ease .9s}
.loop-fig.draw .loop-path{stroke-dashoffset:0}
.loop-fig.draw .loop-path.p2{transition-delay:.55s}
.loop-fig.draw .loop-path.p3{transition-delay:1.1s}
.loop-fig.draw .loop-head.h1{transition-delay:.75s}
.loop-fig.draw .loop-head.h2{transition-delay:1.3s}
.loop-fig.draw .loop-head.h3{transition-delay:1.85s}
.loop-fig.draw .loop-head,.loop-fig.draw .loop-rc{opacity:1}
.loop-fig .loop-r{opacity:0;transition:opacity .3s ease .9s}
.loop-fig.draw .loop-r{opacity:1}
.loop-fig figcaption{margin-top:.5rem;font-size:.85rem;color:var(--c-muted)}
@media (prefers-reduced-motion: reduce){
  .loop-fig .loop-path{stroke-dashoffset:0;transition:none}
  .loop-fig .loop-head,.loop-fig .loop-r,.loop-fig .loop-rc{opacity:1;transition:none}
}


/* breadcrumbs (deep pages) */
.crumbs{font-family:var(--f-mono);font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;margin:0 0 .7rem;color:var(--c-muted)}
.crumbs a{color:var(--c-muted);text-decoration:none;border-bottom:1px solid transparent}
.crumbs a:hover,.crumbs a:focus-visible{color:var(--c-text);border-bottom-color:var(--c-accentstrong)}
.crumbs .sep{margin:0 .35rem;opacity:.6}
.crumbs [aria-current]{color:var(--c-text)}

/* reading time (essays) */
.readtime{font-family:var(--f-mono);font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;color:var(--c-muted)}

/* print - ink on paper: chrome and canvases off, tokens to black on white,
   external links show their URLs */
@media print{
  html,html[data-theme]{--c-bg:#fff;--c-surface:#fff;--c-surface2:#fff;--c-text:#000;--c-muted:#333;
    --c-border:#999;--c-border-strong:#000;--c-link:#000;--c-primary:#000;--c-onprimary:#fff;
    --c-accent:#000;--c-onaccent:#fff;--c-accentstrong:#000;--t-shadow:none}
  header.nav .links,header.nav .themebar,header.nav .nav-toggle,.skip,canvas,#netbg,.theme-panel{display:none!important}
  .page-head{border-bottom:1px solid #000}
  main a[href^="http"]::after{content:" (" attr(href) ")";font-size:.8em;color:#333;word-break:break-all}
  .card,.triad>div,.crosswalk tr,.timeline li{break-inside:avoid}
  body{font-size:11pt}
}


/* publications: expandable verbatim abstracts + DOI links */
.refs .doi a{font-family:var(--f-mono);font-size:.72rem;color:var(--c-link)}
.refs details.abs{margin-top:.45rem}
.refs details.abs summary{cursor:pointer;display:inline-block;font-family:var(--f-mono);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;color:var(--c-accentstrong);list-style:none}
.refs details.abs summary::-webkit-details-marker{display:none}
.refs details.abs summary::before{content:"+ "}
.refs details.abs[open] summary::before{content:"\2212 "}
.refs details.abs summary:hover,.refs details.abs summary:focus-visible{text-decoration:underline}
.refs details.abs p{margin:.45rem 0 0;padding:.7rem .9rem;border-left:3px solid var(--c-accentstrong);background:var(--c-surface2);font-size:.92rem}
.refs details.abs .lic{display:block;margin-top:.5rem;font-family:var(--f-mono);font-size:.64rem;color:var(--c-muted)}


/* atlas: "More from the Atlas" related blocks */
.related{margin-top:2.4rem;padding:1rem 1.1rem;border:2px solid var(--c-border);background:var(--c-surface);box-shadow:var(--t-shadow);border-radius:var(--t-radius);max-width:72ch}
.related .eyebrow{margin:0 0 .5rem}
.related ul{list-style:none;margin:0;padding:0}
.related li{margin-top:.45rem;padding-left:1.1rem;position:relative}
.related li::before{content:"";position:absolute;left:0;top:.55em;width:.6rem;height:2px;background:var(--c-accentstrong)}
.related .rk{font-family:var(--f-mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--c-muted);margin-left:.45rem}

/* atlas trails: ribbon on member pages (injected by script.js) */
.trail-ribbon{border-bottom:2px solid var(--c-border);background:var(--c-surface2)}
.trail-ribbon .wrap{display:flex;align-items:baseline;gap:.8rem;flex-wrap:wrap;padding-top:.55rem;padding-bottom:.55rem;font-family:var(--f-mono);font-size:.72rem}
.trail-ribbon .tk{letter-spacing:.1em;text-transform:uppercase;color:var(--c-accentstrong)}
.trail-ribbon .tn{color:var(--c-text);font-weight:600}
.trail-ribbon .ts{color:var(--c-muted)}
.trail-ribbon a{color:var(--c-link)}
.trail-ribbon .sp{margin-left:auto}

/* atlas type glyphs (hub cards + timeline) */
.tglyph{display:inline-block;vertical-align:-1px;margin-right:.45rem;color:var(--c-accentstrong)}
.tglyph svg{display:block}


/* nav group separators (three wings + spine) */
.links .navsep{width:2px;height:26px;background:var(--c-border-strong);opacity:.85;align-self:center;flex:0 0 auto;margin:0 .3rem}
@media(max-width:920px){.links .navsep{display:none}}

/* home: three-engines framing band */
.wings .card .wk{font-family:var(--f-mono);font-size:.62rem;letter-spacing:.11em;text-transform:uppercase;color:var(--c-accentstrong);display:block;margin-bottom:.3rem}
