/* Fractales Ventures — site styles
   Layout concept: an editorial ledger on warm ivory. Fine indigo "veins" connect
   ideas the way the dragonfly's wings branch; asymmetric two-column sections,
   generous margins, hairline rules with small open nodes taken from the banner.
   Single light theme by design: the brand artwork is ivory, so the site keeps it. */

@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Color */
  --ivory: #FCF9F2;   /* page ground, matched to the banner artwork */
  --paper: #F3EEE2;   /* quiet bands and panels */
  --indigo: #163866;  /* brand indigo: headings, structure, primary actions */
  --ink: #1A2B3D;     /* running text */
  --slate: #4A5F78;   /* secondary text */
  --vein: #9AABC0;    /* fine connecting lines */
  --rule: #DDD8CB;    /* hairline dividers */
  --wash: #E7EBF1;    /* selected states */
  --blue: #2C5A94;    /* interactive hover */
  /* Type */
  --display: "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Scale */
  --t-hero: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem);
  --t-h2: clamp(1.95rem, 1.5rem + 1.8vw, 2.8rem);
  --t-h3: clamp(1.4rem, 1.25rem + .5vw, 1.65rem);
  --t-lede: clamp(1.1rem, 1rem + .35vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .75rem;
  --gutter: clamp(16px, 4vw, 44px);
  --measure: 66ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--wash); color: var(--indigo); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--indigo); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: var(--t-hero); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; }
h4 { font-family: var(--body); font-size: var(--t-small); font-weight: 600; letter-spacing: .01em; line-height: 1.4; color: var(--ink); }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
em.accent, .accent { font-style: italic; }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--indigo); color: var(--ivory); padding: .6em 1em; z-index: 10; }
.skip:focus { top: 12px; color: var(--ivory); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

/* Labels — small mono eyebrows with the banner's open node */
.label {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); font-weight: 500; line-height: 1.3;
}
.label::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.label.plain::before { display: none; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink); max-width: 60ch; }
.muted { color: var(--slate); }
.small { font-size: var(--t-small); }
.measure { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--ivory); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 18px; flex-wrap: wrap; }
.wordmark {
  font-family: var(--display); font-weight: 500; color: var(--indigo); text-decoration: none;
  font-size: 1.12rem; letter-spacing: .32em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
}
.wordmark:hover { color: var(--indigo); }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: var(--t-small); font-weight: 500; padding-block: 10px; display: inline-block; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--indigo); border-bottom-color: var(--vein); }
.site-nav a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--indigo); }
.site-nav a.btn { min-height: 0; padding: 9px 18px; border: 1px solid var(--indigo); color: var(--indigo); background: transparent; }
.site-nav a.btn[aria-current="page"], .site-nav a.btn:hover { background: var(--indigo); color: var(--ivory); }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: transparent; border: 1px solid var(--rule); color: var(--indigo); font: 500 var(--t-small) var(--body); cursor: pointer;
  }
  .nav-toggle .bars { width: 16px; height: 9px; border-block: 1px solid currentColor; position: relative; }
  .js .site-nav { flex-basis: 100%; }
  .js .site-nav:not(.open) { display: none; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .js .site-nav li { border-top: 1px solid var(--rule); }
  .js .site-nav a { display: block; padding-block: 14px; }
  .js .site-nav a.btn { margin-top: 12px; text-align: center; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 22px;
  font: 500 var(--t-small)/1.2 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--indigo); background: var(--indigo); color: var(--ivory);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--ivory); }
.btn.ghost { background: transparent; color: var(--indigo); }
.btn.ghost:hover { background: var(--wash); color: var(--indigo); border-color: var(--indigo); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--vein); padding-bottom: 2px; }
.textlink:hover { border-bottom-color: var(--blue); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section + .section { border-top: 1px solid var(--rule); }
.band { background: var(--paper); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.split { display: grid; gap: 28px 56px; }
.split > * { min-width: 0; }
.split { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .section-head.split { align-items: end; }
}

/* Hero */
.hero { padding-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; }
.hero-text { display: grid; gap: 22px; align-content: center; padding-block: 12px 28px; }
.hero-text h1 em { font-style: italic; font-weight: 400; display: block; }
.hero-art img { width: 100%; height: auto; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
  .hero-text h1 { font-size: clamp(3rem, 1.4rem + 3.2vw, 4.6rem); }
}
@media (max-width: 999.98px) { .hero-art { max-width: 720px; width: 100%; } }

/* Value map (Diagram A) */
.need-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; align-items: center; }
.need-picker .q { font-family: var(--display); font-size: 1.35rem; color: var(--indigo); margin-right: 8px; font-style: italic; }
.chip {
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--rule); background: var(--ivory); color: var(--ink);
  font: 500 var(--t-small)/1.25 var(--body); cursor: pointer; text-align: left;
}
.chip:hover { border-color: var(--vein); background: var(--wash); }
.chip[aria-pressed="true"] { border-color: var(--indigo); background: var(--indigo); color: var(--ivory); }
.no-js-only { }
.js .no-js-only { display: none; }
html:not(.js) .js-only { display: none; }

.vmap-layout { display: grid; gap: 28px 48px; }
.vmap-layout > * { min-width: 0; }
@media (min-width: 980px) { .vmap-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.vmap {
  position: relative; display: grid; grid-template-columns: 1fr minmax(84px, auto) 1fr; grid-template-rows: auto minmax(80px, 1fr) auto;
  gap: 18px 12px; padding: 8px 0; isolation: isolate;
}
.vmap svg.veins { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.veins path { fill: none; stroke: var(--vein); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .3s ease, stroke-width .3s ease; }
.veins path.fine { stroke: var(--rule); }
.veins path.active { stroke: var(--indigo); stroke-width: 1.75; }
.vmap .center {
  grid-column: 2; grid-row: 2; align-self: center; justify-self: center;
  width: clamp(84px, 14vw, 128px); aspect-ratio: 1; max-width: 100%; border-radius: 50%; border: 1px solid var(--indigo); background: var(--ivory);
  display: grid; place-items: center; text-align: center; padding: 8px;
  font-family: var(--display); font-style: italic; color: var(--indigo); font-size: clamp(1rem, .9rem + .5vw, 1.3rem); line-height: 1.05;
}
.vnode {
  min-height: 64px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--ivory); color: var(--indigo);
  font: 600 1.05rem/1.2 var(--display); font-family: var(--display); font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem);
  text-align: left; cursor: pointer; display: grid; gap: 4px; align-content: start;
}
.vnode small { font: 400 .78rem/1.35 var(--body); color: var(--slate); }
.vnode:hover { border-color: var(--vein); }
.vnode[aria-pressed="true"] { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); background: var(--wash); }
.vnode.n1 { grid-column: 1; grid-row: 1; }
.vnode.n2 { grid-column: 3; grid-row: 1; }
.vnode.n3 { grid-column: 1; grid-row: 3; }
.vnode.n4 { grid-column: 3; grid-row: 3; }
.vmap .hint { grid-column: 1 / -1; grid-row: 4; font-size: .85rem; color: var(--slate); text-align: center; margin-top: 4px; }
@media (max-width: 600px) {
  .need-picker { display: none; }
  .vnode { min-height: 56px; padding: 10px; }
  .vmap { gap: 14px 8px; }
}
@media (max-width: 480px) {
  .wordmark { font-size: .95rem; letter-spacing: .18em; }
  .site-header .wrap { column-gap: 10px; }
  .site-header .wrap { flex-wrap: nowrap; }
  .js .site-header .wrap { flex-wrap: wrap; }
}
.vpanels { display: grid; gap: 28px; }
.vpanel { border-top: 1px solid var(--indigo); padding-top: 22px; display: grid; gap: 16px; }
.vpanel .question { font-family: var(--display); font-style: italic; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); color: var(--indigo); line-height: 1.2; }
.vpanel dl { display: grid; gap: 14px; margin: 0; }
.vpanel dt { font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.vpanel dd { margin: 4px 0 0; }
.js .vpanel { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Formats list */
.formats { list-style: none; display: grid; border-top: 1px solid var(--rule); }
.formats li { display: grid; gap: 6px 28px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.formats li > * { min-width: 0; }
@media (min-width: 760px) { .formats li { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; align-items: baseline; } }
.formats h3 { font-size: 1.35rem; }
.status { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--indigo); color: var(--indigo); white-space: nowrap; justify-self: start; line-height: 1.3; }
.status.dev { border-style: dashed; border-color: var(--slate); color: var(--slate); }

/* Map (Diagram B) */
.corridors { display: grid; gap: 28px 48px; }
.corridors > * { min-width: 0; }
@media (min-width: 980px) { .corridors { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.map-figure { margin: 0; }
.map-svg { width: 100%; height: auto; display: block; }
.map-svg .sphere { fill: var(--ivory); stroke: var(--rule); stroke-width: 1; }
.map-svg .land { fill: var(--paper); stroke: #D3CCBB; stroke-width: .6; }
.band .map-svg .sphere { fill: #FBF8F1; }
.band .map-svg .land { fill: #EAE3D3; }
.map-svg .arc { fill: none; stroke: var(--vein); stroke-width: 1.2; stroke-dasharray: 3 4; transition: stroke .3s; }
.map-svg .arc.active { stroke: var(--indigo); stroke-width: 2; stroke-dasharray: none; }
.map-svg .node { fill: var(--ivory); stroke: var(--indigo); stroke-width: 1.4; }
.map-svg .node.active { fill: var(--indigo); }
.map-svg .hub { fill: var(--indigo); }
.map-svg .hub-ring { fill: none; stroke: var(--indigo); stroke-width: 1; }
.map-svg text { font-family: var(--mono); font-size: 18px; fill: var(--slate); letter-spacing: .06em; text-transform: uppercase; }
.map-svg text.hub-label { fill: var(--indigo); font-weight: 500; }
.map-svg text.active { fill: var(--indigo); font-weight: 500; }
@media (max-width: 640px) { .map-svg text { display: none; } }
.map-caption { font-size: .85rem; color: var(--slate); margin-top: 10px; }
.corridor-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cpanel { display: grid; gap: 16px; border-top: 1px solid var(--indigo); padding-top: 20px; }
.cpanel + .cpanel { margin-top: 28px; }
.flows { display: grid; gap: 14px; }
.flow { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.flow .dir { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); grid-column: 1 / -1; }
.flow .glyph { color: var(--indigo); font-family: var(--mono); }
.themes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.themes li { font-size: .85rem; padding: 4px 10px; background: var(--wash); color: var(--indigo); }
.core-note { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--rule); background: var(--ivory); }

/* Knowledge cycle (Diagram C) */
.cycle { display: grid; gap: 32px 56px; }
.cycle > * { min-width: 0; }
@media (min-width: 900px) { .cycle { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; } }
.cycle-svg { width: 100%; max-width: 460px; margin-inline: auto; display: block; }
.cycle-svg .ring { fill: none; stroke: var(--vein); stroke-width: 1; }
.cycle-svg .arrow { fill: none; stroke: var(--indigo); stroke-width: 1.4; }
.cycle-svg .foundation { fill: none; stroke: var(--indigo); stroke-width: 1; stroke-dasharray: 2 5; }
.cycle-svg circle.step { fill: var(--ivory); stroke: var(--indigo); stroke-width: 1.4; }
.cycle-svg text { font-family: var(--display); font-size: 22px; fill: var(--indigo); text-anchor: middle; dominant-baseline: central; font-weight: 600; }
.cycle-svg text.lab { font-family: var(--body); font-size: 16px; font-weight: 500; fill: var(--ink); }
.cycle-svg text.core { font-family: var(--display); font-style: italic; font-size: 19px; font-weight: 500; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 14px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(s); font-family: var(--display); font-size: 1.5rem; color: var(--indigo); line-height: 1.1; grid-row: span 2; }
.steps > li > * { min-width: 0; }
.steps h3, .steps h4 { font-size: 1.05rem; font-family: var(--body); font-weight: 600; color: var(--ink); letter-spacing: 0; }

/* Lists of deliverables */
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 8px; height: 1px; background: var(--indigo); }

/* Capability sections (What we do) */
.cap { display: grid; gap: 28px 56px; }
.cap > * { min-width: 0; }
@media (min-width: 900px) { .cap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .cap .cap-head { position: sticky; top: 24px; align-self: start; } }
.cap-head { display: grid; gap: 14px; }
.cap-head .question { font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--indigo); line-height: 1.25; }
.cap-body { display: grid; gap: 28px; }
.cap-grid { display: grid; gap: 24px 36px; }
@media (min-width: 640px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
.cap-grid > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.kicker { font-family: var(--mono); font-size: var(--t-label); text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.jump a { text-decoration: none; font-weight: 500; }

.stages { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: st; border: 1px solid var(--rule); }
@media (min-width: 560px) { .stages { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.stages li { counter-increment: st; min-width: 0; hyphens: auto; padding: 12px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0; display: grid; gap: 2px; font-weight: 500; font-size: var(--t-small); }
.stages li::before { content: counter(st, decimal-leading-zero); font-family: var(--mono); font-size: .7rem; color: var(--slate); letter-spacing: .08em; }

.specimen { border: 1px solid var(--rule); background: var(--ivory); padding: 22px; display: grid; gap: 12px; }
.specimen ol { padding-left: 1.3em; display: grid; gap: 6px; }

.cross { border: 1px solid var(--indigo); padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; }

.audiences { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 700px) { .audiences { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .audiences { grid-template-columns: repeat(4, 1fr); } }
.audiences > div { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 700px) { .audiences > div { padding-right: 24px; } }
.audiences h3 { font-size: 1.3rem; }

/* Research */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.result-count { font-size: .85rem; color: var(--slate); }
.articles { list-style: none; display: grid; border-top: 1px solid var(--rule); }
.article-card { display: grid; gap: 10px 40px; padding-block: 26px; border-bottom: 1px solid var(--rule); }
.article-card > * { min-width: 0; }
@media (min-width: 860px) { .article-card { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); } }
.article-card h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 500; }
.article-card h3 a { text-decoration: none; color: var(--indigo); }
.article-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--vein); }
.meta { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--slate); text-transform: uppercase; display: grid; gap: 4px; align-content: start; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; padding: 2px 8px; border: 1px solid var(--rule); color: var(--slate); }
.planned { list-style: none; display: grid; border-top: 1px dashed var(--vein); }
.planned > li { display: grid; gap: 6px 24px; padding-block: 14px; border-bottom: 1px dashed var(--vein); }
@media (min-width: 760px) { .planned > li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; } }
.empty { padding: 22px; border: 1px dashed var(--vein); color: var(--slate); display: grid; gap: 8px; }
.empty strong { color: var(--indigo); font-weight: 600; }
.newsletter { border: 1px solid var(--indigo); padding: clamp(22px, 4vw, 36px); display: grid; gap: 14px; background: var(--ivory); }

/* Article */
.article-head { display: grid; gap: 18px; padding-block: clamp(40px, 6vw, 72px) 28px; }
.article-head h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); }
.article-head .subtitle { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--slate); line-height: 1.3; }
.article-meta { display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding-block: 16px; border-block: 1px solid var(--rule); margin: 0; }
.article-meta div { min-width: 0; }
.article-meta dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.article-meta dd { margin: 2px 0 0; font-size: var(--t-small); font-weight: 500; }
.prose { max-width: var(--measure); font-size: 1.125rem; line-height: 1.72; }
.prose h2 { font-size: clamp(1.6rem, 1.4rem + .8vw, 2rem); margin: 2em 0 .5em; }
.prose p + p { margin-top: 1.1em; }
.prose .summary { font-size: var(--t-lede); line-height: 1.55; padding-left: 18px; border-left: 1px solid var(--indigo); }
.aside-box { max-width: var(--measure); border-top: 1px solid var(--indigo); padding-top: 18px; display: grid; gap: 10px; margin-top: 44px; }

/* Founder */
.founder { display: grid; gap: 24px 56px; }
.founder > * { min-width: 0; }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.founder blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); line-height: 1.3; color: var(--indigo); }

/* Principles grid */
.principles { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.principles > div { padding-block: 20px; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; min-width: 0; }
.principles h3 { font-size: 1.3rem; }

/* Contact */
.routes { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 700px) { .routes { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.routes li { padding-block: 18px; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.routes a { font-family: var(--display); font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: var(--t-small); padding: 0; }
.field .help { font-size: .85rem; color: var(--slate); }
.field input:not([type=radio]), .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #FFFDF8; border: 1px solid #B9B3A3; padding: 12px 14px; border-radius: 0; min-height: 48px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:not([type=radio]):focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.two { display: grid; gap: 20px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios { display: grid; gap: 8px; margin-top: 6px; }
@media (min-width: 640px) { .radios { grid-template-columns: 1fr 1fr; } }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule); background: #FFFDF8; cursor: pointer; font-weight: 400 !important; }
.radio:has(input:checked) { border-color: var(--indigo); background: var(--wash); }
.radio input { margin-top: .3em; accent-color: var(--indigo); width: 18px; height: 18px; flex: none; }
.req { color: var(--slate); font-weight: 400; font-size: .8rem; }
.notice { padding: 16px 18px; border-left: 2px solid var(--indigo); background: var(--paper); font-size: var(--t-small); display: grid; gap: 6px; }
.draft { display: grid; gap: 14px; border: 1px solid var(--indigo); padding: clamp(18px, 3vw, 28px); background: var(--ivory); }
.draft pre, .draft textarea.out { white-space: pre-wrap; word-break: break-word; font: 400 .875rem/1.55 var(--mono); background: #FFFDF8; border: 1px solid var(--rule); padding: 14px; margin: 0; width: 100%; min-height: 220px; color: var(--ink); resize: vertical; }
.addr { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.addr code { font: 500 1rem var(--mono); color: var(--indigo); user-select: all; word-break: break-all; }
.copy-status { font-size: .85rem; color: var(--slate); min-height: 1.3em; }

/* CTA band */
.cta-band { background: var(--indigo); color: var(--ivory); }
.cta-band h2 { color: var(--ivory); }
.cta-band .lede { color: #DCE3EE; }
.cta-band .btn { background: var(--ivory); color: var(--indigo); border-color: var(--ivory); }
.cta-band .btn:hover { background: var(--wash); color: var(--indigo); }
.cta-band .btn.ghost { background: transparent; color: var(--ivory); border-color: #8FA3BF; }
.cta-band .btn.ghost:hover { background: #1F4677; color: var(--ivory); }
.cta-band a:focus-visible, .cta-band button:focus-visible { outline-color: var(--ivory); }
.cta-band .wrap { display: grid; gap: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 48px 36px; font-size: var(--t-small); }
.footer-grid { display: grid; gap: 32px 48px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); } }
.footer-grid > * { min-width: 0; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.tz { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--slate); display: grid; gap: 2px; }
.footer-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--slate); font-size: .85rem; }

.page-head { padding-block: clamp(44px, 7vw, 88px) clamp(28px, 4vw, 44px); display: grid; gap: 20px; }
.page-head h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); }

.illustrative { border: 1px dashed var(--slate); padding: clamp(18px, 3vw, 28px); display: grid; gap: 10px; }
.illustrative .tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }

.stack-sm { display: grid; gap: 12px; align-content: start; }
.stack { display: grid; gap: 22px; align-content: start; }
.mt-l { margin-top: clamp(40px, 6vw, 64px); }

/* Draw-in for active veins (explains which path the selection follows) */
.veins path.active.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .veins path.active.draw { stroke-dasharray: none; stroke-dashoffset: 0; }
}

@media print {
  .site-header nav, .nav-toggle, .skip, .cta-band, .actions, .filters, .need-picker, .corridor-btns, form, .site-footer .footer-grid > :nth-child(2) { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 18pt; }
  .js .vpanel[hidden], .js .cpanel[hidden] { display: grid !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
.field .radio { padding: 12px 14px; font-size: var(--t-small); }

/* Three practices */
.practices { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .practices { grid-template-columns: repeat(3, 1fr); } }
.practice { padding: 24px 0 28px; border-bottom: 1px solid var(--rule); display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 900px) { .practice { padding-right: 28px; } .practice + .practice { padding-left: 28px; border-left: 1px solid var(--rule); } }
.practice-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.practice .fv { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--slate); }
.practice h3 { font-size: 1.45rem; }
.practice .for .kicker { margin-right: 6px; }
.practice .textlink { justify-self: start; }

/* ---- Data layer: engine console and data sections ----
   Night indigo panels with a signal blue carry the data dimension;
   ivory editorial pages stay around them. */
:root {
  --night: #0E2340;    /* console and engine band ground */
  --night-2: #17345C;  /* raised rows, dividers on night */
  --signal: #7DB3E6;   /* data accent on night */
  --night-ink: #E7EDF5;/* text on night */
  --night-mute: #A3B5CB;/* secondary text on night */
}
.hero-data { background-image: radial-gradient(circle at 1px 1px, var(--rule) 1px, transparent 0); background-size: 22px 22px; }
.console { margin: 0; background: var(--night); color: var(--night-ink); border: 1px solid var(--night-2); padding: 18px; display: grid; gap: 0; min-width: 0; font-family: var(--mono); font-size: .8rem; box-shadow: 0 24px 48px -28px rgba(14,35,64,.55); }
.console-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--night-mute); font-size: .72rem; letter-spacing: .06em; padding-bottom: 14px; border-bottom: 1px solid var(--night-2); margin-bottom: 14px; }
.console-bar span:last-child { margin-left: auto; text-transform: uppercase; border: 1px dashed var(--night-mute); padding: 2px 7px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(125,179,230,.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(125,179,230,.55); } 100% { box-shadow: 0 0 0 9px rgba(125,179,230,0); } }
.console-block { display: grid; gap: 10px; min-width: 0; }
.console-label { color: var(--signal); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.src-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.src-chips li { border: 1px solid var(--night-2); background: rgba(255,255,255,.03); padding: 4px 8px; color: var(--night-ink); font-size: .72rem; }
.flow-line { height: 30px; width: 1px; margin-left: 12px; background-image: linear-gradient(var(--signal) 50%, transparent 50%); background-size: 1px 8px; animation: flow 1.2s linear infinite; opacity: .8; }
@keyframes flow { to { background-position: 0 16px; } }
.stage-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: sg; border: 1px solid var(--night-2); }
.stage-row li { counter-increment: sg; padding: 8px 6px; border-right: 1px solid var(--night-2); font-size: .7rem; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.stage-row li:last-child { border-right: 0; }
.stage-row li::before { content: counter(sg, decimal-leading-zero); color: var(--signal); font-size: .64rem; }
.table-scroll { overflow-x: auto; }
table.sample { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .74rem; }
table.sample th { text-align: left; font-weight: 500; color: var(--night-mute); padding: 6px 8px; border-bottom: 1px solid var(--night-2); white-space: nowrap; }
table.sample td { padding: 6px 8px; border-bottom: 1px solid var(--night-2); white-space: nowrap; color: var(--night-ink); }
table.sample tbody tr:nth-child(odd) { background: rgba(255,255,255,.025); }
table.sample .num { text-align: right; color: var(--signal); }
.console figcaption { margin-top: 12px; font-size: .68rem; color: var(--night-mute); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .live-dot, .flow-line { animation: none; } }

.engine { background: var(--night); color: var(--night-ink); }
.engine h2, .engine h3 { color: var(--night-ink); }
.engine .lede { color: var(--night-ink); }
.engine .label { color: var(--signal); }
.engine .kicker { color: var(--signal); }
.engine .partner { font-size: var(--t-small); color: var(--night-mute); border-left: 1px solid var(--signal); padding-left: 14px; }
.engine-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: es; border-top: 1px solid var(--night-2); }
@media (min-width: 700px) { .engine-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .engine-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.engine-steps li { counter-increment: es; padding: 22px 22px 26px 0; border-bottom: 1px solid var(--night-2); display: grid; gap: 8px; align-content: start; min-width: 0; }
.engine-steps li::before { content: counter(es, decimal-leading-zero); font-family: var(--mono); color: var(--signal); font-size: .8rem; letter-spacing: .08em; }
.engine-steps h3 { font-size: 1.35rem; }
.engine-steps p { color: var(--night-mute); font-size: var(--t-small); margin: 0; }

.families { display: grid; gap: 16px; }
@media (min-width: 760px) { .families { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.families article { border: 1px solid var(--rule); background: var(--ivory); padding: 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.families article:first-child { border-color: var(--indigo); }
.fam-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; }
.fam-top h3 { font-size: 1.4rem; }
.sig { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sig li { font-family: var(--mono); font-size: .72rem; color: var(--indigo); background: var(--wash); padding: 3px 8px; }

@media (min-width: 900px) { .practices.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
