/* Vault Extracts
   Colors, fonts, and spacing are set in :root. Page sections follow in page order. */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-semibold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #403e3a;
  --ink-soft: #4c4a45;
  --paper: #f0ede8;
  --sheet: #f7f5f1;
  --paper-deep: #e6e2dc;
  --line: #d3cec6;
  --muted: #6e675e;
  --on-ink: #eeeae0;
  --art-block: #52504a;
  --on-ink-muted: #b7b1a6;
  --on-ink-line: #5c5a54;
  --teal: #5f7f7a;
  --oil: #c9ab7a;
  --ion: #c48f7a;
  --charge: #8593a6;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --shell: min(1200px, calc(100% - clamp(40px, 7vw, 112px)));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Staged palettes, chosen with ?theme=black or ?theme=gray (remembered for the visit; ?theme=off clears).
   Dark surfaces switch; the cream page stays. Make one the default by moving its values into :root. */
html[data-theme="black"] { --ink: #17181a; --ink-soft: #26272a; --on-ink: #f5f5f3; --on-ink-muted: #b4b5b3; --on-ink-line: #3a3b3f; --art-block: #2c2d31; }
html[data-theme="gray"]  { --ink: #3f434a; --ink-soft: #4b5058; --on-ink: #f5f5f3; --on-ink-muted: #bfc2c6; --on-ink-line: #5d626a; --art-block: #525760; }
svg rect[fill="#52504a"] { fill: var(--art-block); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.06; }
h3 { letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.shell { width: var(--shell); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--oil); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--on-ink); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholder values. Turn the markers off in assets/js/site.js before launch. */
html.show-fill .fill { text-decoration: underline dotted var(--oil); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.fill-bar { display: none; background: var(--oil); color: #2a2011; font-size: 14px; padding: 8px 0; }
html.show-fill .fill-bar { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-cream { background: var(--on-ink); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-ghost { border-color: var(--on-ink-line); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink-muted); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.night { background: var(--ink); color: var(--on-ink); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--on-ink-line); }
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.wordmark { display: block; }
.wordmark svg { width: 104px; height: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--on-ink-muted); padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 var(--oil); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; border: 1.5px solid var(--on-ink-line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { border-color: var(--on-ink-muted); }
.nav-menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 40px)); background: var(--ink-soft); border: 1px solid var(--on-ink-line); border-radius: 16px; padding: 8px; display: grid; }
.nav-menu nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.nav-menu nav a:hover { background: var(--ink); }
.nav-menu nav .btn { margin-top: 6px; }
@media (max-width: 900px) {
  .nav-links, .header-cta { display: none; }
  .nav-menu { display: block; }
}

/* Hero (home) */
.hero .shell { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 64px 0 104px; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); max-width: 15ch; }
.hero .lede { color: var(--on-ink-muted); font-size: 19px; max-width: 34em; margin: 28px 0 36px; }
@media (max-width: 900px) { .hero .shell { grid-template-columns: 1fr; padding: 40px 0 72px; } .vault { max-width: 420px; } }

/* Vault: hero video (assets/video/vault-opening.mp4), sized in the hero-stack block below. */
.vault { margin: 0; }
.vault-stage { position: relative; cursor: pointer; }
.vault figcaption { color: var(--on-ink-muted); font-size: 14px; text-align: center; margin-top: 14px; }

/* Page head (inner pages) */
.page-head .shell { padding: 72px 0 88px; }
.page-head h1 { font-size: clamp(40px, 5.2vw, 72px); max-width: 16ch; }
.page-head .lede { color: var(--on-ink-muted); font-size: 19px; max-width: 36em; margin: 24px 0 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.jump a { text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid var(--on-ink-line); border-radius: 999px; padding: 8px 16px; color: var(--on-ink-muted); }
.jump a:hover { color: var(--on-ink); border-color: var(--on-ink-muted); }

/* Sections */
.block { padding: clamp(72px, 10vw, 128px) 0; }
.block + .block { padding-top: 0; }
.block.alt { background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: clamp(72px, 10vw, 128px); }
.block.alt + .block { padding-top: clamp(72px, 10vw, 128px); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; align-items: end; margin-bottom: 48px; }
.head h2 { font-size: clamp(32px, 3.8vw, 50px); max-width: 18ch; }
.head p { color: var(--muted); max-width: 36em; margin: 0; }
.head.stack { grid-template-columns: 1fr; }
@media (max-width: 760px) { .head { grid-template-columns: 1fr; } }
.text-link { font-weight: 600; }

/* Reveal: short fade as sections enter. Content stays visible without JS. */
html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Problem (home) */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.problem h2 { font-size: clamp(32px, 3.8vw, 50px); max-width: 16ch; margin-bottom: 24px; }
.problem p { color: var(--muted); max-width: 34em; }
.vials { background: var(--ink); border-radius: 20px; padding: 28px 28px 20px; }
.vials svg { width: 100%; height: auto; }
.vials figcaption { color: var(--on-ink-muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 860px) { .problem { grid-template-columns: 1fr; } }

/* Product panels */
.panels { display: flex; gap: 12px; }
.panel { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--sheet); overflow: hidden; display: flex; flex-direction: column; transition: flex-grow .45s var(--ease), border-color .2s; }
.panel.open { flex-grow: 2.6; border-color: #b9ad98; }
.panel-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 22px 22px 0; }
.panel-btn h3 { font-size: 22px; }
.panel-btn span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.panel:not(.open) .panel-btn span { display: none; }
.panel-btn:focus-visible { outline: 2px solid var(--oil); outline-offset: -4px; border-radius: 18px; }
.art { border-radius: 12px; overflow: hidden; background: var(--ink); }
.art.light { background: var(--paper-deep); }
.art svg { width: 100%; height: 100%; }
.panel .art { margin: 20px 22px 0; height: 190px; }
.panel-body { padding: 18px 22px 22px; opacity: 0; transition: opacity .3s; display: flex; flex-direction: column; flex: 1; }
.panel.open .panel-body { opacity: 1; }
.panel:not(.open) .panel-body { visibility: hidden; }
.panel-body p { color: var(--muted); margin-bottom: 14px; }
.panel-body dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.panel-body dt { font-size: 13px; color: var(--muted); }
.panel-body dd { margin: 0; font-weight: 600; }
.panel-body .text-link { margin-top: auto; }
@media (max-width: 900px) {
  .panels { flex-direction: column; min-height: 0; }
  .panel .art { height: 150px; }
  .panel:not(.open) .art, .panel:not(.open) .panel-body { display: none; }
  .panel:not(.open) .panel-btn { padding-bottom: 22px; }
  .panel-body dl { grid-template-columns: 1fr 1fr; }
}

/* Audience list */
.audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.audience li { border-top: 2px solid var(--ink); padding-top: 18px; }
.audience h3 { font-size: 20px; margin-bottom: 8px; }
.audience p { color: var(--muted); margin: 0; font-size: 16px; }
.audience.wide { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.audience.wide p { font-size: 17px; max-width: 34em; }
@media (max-width: 960px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience, .audience.wide { grid-template-columns: 1fr; } }

/* Partner logos */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos li { display: grid; place-items: center; min-height: 150px; padding: 24px; }
.logos li + li { border-left: 1px solid var(--line); }
.logos img { max-height: 76px; width: auto; }
.logos a { display: grid; place-items: center; text-decoration: none; }
.ember { display: flex; align-items: center; gap: 12px; }
.ember img { height: 56px; }
.ember b { font-family: "Archivo", var(--font); font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
@media (max-width: 640px) { .logos { grid-template-columns: 1fr; } .logos li + li { border-left: 0; border-top: 1px solid var(--line); } }

.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brands li { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.brands .logo { height: 120px; display: grid; place-items: center; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.brands .logo img { max-height: 72px; width: auto; }
.brands h3 { font-size: 20px; margin-bottom: 6px; }
.brands p { color: var(--muted); margin: 0 0 14px; }
.brands a.text-link { margin-top: auto; }
@media (max-width: 860px) { .brands { grid-template-columns: 1fr; } }

/* Closing band */
.closing .shell { padding: clamp(80px, 11vw, 136px) 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.closing h2 { font-size: clamp(40px, 5vw, 68px); }
.closing p { color: var(--on-ink-muted); font-size: 19px; max-width: 30em; margin: 20px 0 0; }
.closing .actions { justify-self: end; }
@media (max-width: 760px) { .closing .shell { grid-template-columns: 1fr; } .closing .actions { justify-self: start; } }

/* Spec sheets (products) */
.spec { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); padding: 56px 0; border-top: 2px solid var(--ink); }
.spec:first-of-type { border-top: 0; padding-top: 0; }
.spec h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }
.spec .intro p { color: var(--muted); max-width: 34em; }
.spec .art { height: 220px; margin: 28px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.chips li { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--sheet); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 42%; padding-right: 16px; }
.spec-table td { font-weight: 600; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 2px solid var(--ink); }
@media (max-width: 860px) { .spec { grid-template-columns: 1fr; } }

.includes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.includes li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.includes li:nth-child(-n+2) { border-top: 1px solid var(--line); }
@media (max-width: 560px) { .includes { grid-template-columns: 1fr; } .includes li:nth-child(2) { border-top: 0; } }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.calc > * { min-width: 0; }
.calc-in { background: var(--sheet); padding: clamp(24px, 4vw, 44px); }
.calc-out { background: var(--ink); color: var(--on-ink); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 0 22px; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--oil); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields .wide { grid-column: 1 / -1; }
.f label, .f .label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.f .opt { color: var(--muted); font-weight: 400; }
.unit { position: relative; }
.unit em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; pointer-events: none; }
.f input, .f select, .f textarea { width: 100%; font: 500 17px var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 50px; }
.unit input { padding-right: 58px; font-variant-numeric: tabular-nums; }
.f textarea { min-height: 140px; resize: vertical; font-weight: 400; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--oil); outline-offset: 0; border-color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.out-label { color: var(--on-ink-muted); font-size: 15px; }
.big { font-size: clamp(56px, 7vw, 92px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 6px 0 4px; }
.big small { font-size: .35em; letter-spacing: 0; margin-left: 6px; color: var(--on-ink-muted); font-weight: 500; }
.out-rows { margin: 28px 0 0; }
.out-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--on-ink-line); }
.out-rows dt { color: var(--on-ink-muted); }
.out-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.formula { margin: auto 0 0; padding-top: 24px; font-size: 14px; color: var(--on-ink-muted); }

/* Documentation */
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.docs > * { min-width: 0; }
.docs h2 { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: 20px; }
.docs > div > p { color: var(--muted); max-width: 34em; }
.doc-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.doc-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem 1fr; gap: 16px; }
.doc-list b { font-weight: 600; }
.doc-list span { color: var(--muted); }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .doc-list li { grid-template-columns: 1fr; gap: 2px; } }
.coa { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(28, 27, 24, .35); }
.coa-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.coa-head h3 { font-size: 20px; }
.coa-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.coa-head svg { width: 72px; height: auto; flex: none; }
.coa-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.coa-meta dt { color: var(--muted); font-size: 12px; }
.coa-meta dd { margin: 0; font-weight: 600; }

/* Data tables */
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data.min { min-width: 580px; }
.data th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 2px solid var(--ink); }
.data td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data td:first-child { font-weight: 600; }
.data td small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.coa .data th { border-bottom-width: 1px; padding-top: 8px; }
.coa .data td { padding: 10px 8px 10px 0; font-size: 14px; }
.pass { display: inline-block; font-size: 13px; font-weight: 600; color: #fff; background: var(--teal); border-radius: 6px; padding: 2px 8px; }
.cap { font-size: 15px; margin: 0 0 14px; }
.cap b { font-weight: 600; }
.cap span { color: var(--muted); }

/* Results sheet (science) */
.sheet-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.sheet-top h2 { font-size: clamp(32px, 3.8vw, 50px); }
.sheet-top p { margin: 0; color: var(--muted); font-size: 15px; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.figures div { padding: 32px 24px 28px 0; }
.figures div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.figures b { display: block; font-size: clamp(44px, 5vw, 68px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.figures b small { font-size: .42em; letter-spacing: 0; margin-left: 2px; font-weight: 500; }
.figures span { display: block; margin-top: 12px; font-weight: 600; }
.figures em { display: block; font-style: normal; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .figures { grid-template-columns: 1fr 1fr; } .figures div:nth-child(3) { border-left: 0; padding-left: 0; } .figures div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.sheet-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; padding-top: 44px; }
.sheet-grid > * { min-width: 0; }
@media (max-width: 960px) { .sheet-grid { grid-template-columns: 1fr; } }
.chart { width: 100%; height: auto; }
.chart .grid line { stroke: var(--line); }
.chart text { fill: var(--muted); font: 12px var(--font); }
.chart .val { fill: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
html.js .chart .line-vault, html.js .chart .line-typical { stroke-dasharray: 700; stroke-dashoffset: 700; }
html.js .chart.is-in .line-vault { animation: draw 1.6s var(--ease) forwards; }
html.js .chart.is-in .line-typical { animation: draw 1.6s var(--ease) .3s forwards; }
html.js .chart .pts { opacity: 0; transition: opacity .5s 1.4s; }
html.js .chart.is-in .pts { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.note { color: var(--muted); font-size: 14px; margin-top: 28px; max-width: 60em; }
.downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.downloads p { margin: 0; color: var(--muted); }

/* Failure modes (science) */
.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.modes li { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 20px; }
.modes .art { aspect-ratio: 1; margin-bottom: 16px; }
.modes h3 { font-size: 18px; margin-bottom: 6px; }
.modes p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 1060px) { .modes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .modes { grid-template-columns: 1fr; } .modes li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; } .modes .art { margin: 0; } }

/* Approach (science) */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.approach > article { background: var(--ink); color: var(--on-ink); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; }
.approach h3 { font-size: 26px; margin-bottom: 12px; }
.approach p { color: var(--on-ink-muted); max-width: 36em; }
.approach svg { width: 100%; height: auto; margin-top: auto; padding-top: 12px; }
.approach svg text { fill: var(--on-ink-muted); font: 13px var(--font); }
@media (max-width: 900px) { .approach { grid-template-columns: 1fr; } }
html.js .passes .bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(.15); transition: transform 1s var(--ease); }
html.js .passes.is-in .bar { transform: none; }

/* Steps (partners) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 600; margin-bottom: 16px; }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* About */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.story .prose p { font-size: 19px; line-height: 1.55; max-width: 32em; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team .photo { aspect-ratio: 4 / 5; border-radius: 16px; background: var(--paper-deep); display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; }
.team .photo img { width: 100%; height: 100%; object-fit: cover; }
.team .photo span { font-size: 44px; font-weight: 600; color: var(--muted); letter-spacing: -.02em; }
.team h3 { font-size: 20px; }
.team .role { color: var(--muted); margin: 2px 0 10px; }
.team p { margin: 0; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact > * { min-width: 0; }
.contact h2 { font-size: 28px; margin-bottom: 16px; }
.channels { list-style: none; padding: 0; margin: 0 0 40px; border-top: 2px solid var(--ink); }
.channels li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.channels span { display: block; font-size: 14px; color: var(--muted); }
.channels a, .channels b { font-weight: 600; font-size: 18px; }
.next { list-style: none; padding: 0; margin: 0; counter-reset: next; }
.next li { counter-increment: next; position: relative; padding: 0 0 18px 44px; color: var(--muted); }
.next li::before { content: counter(next); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); color: var(--ink); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.next b { color: var(--ink); display: block; font-weight: 600; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.form { background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form legend { font-weight: 600; font-size: 19px; padding: 0; margin-bottom: 14px; }
.form .fields { margin-bottom: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; }
.checks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.checks span { display: block; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 16px; font-weight: 500; font-size: 15px; cursor: pointer; }
.checks input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.checks input:focus-visible + span { outline: 2px solid var(--oil); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; background: #f3dcd3; color: #6b2414; border: 1px solid #e1b2a2; }
[hidden] { display: none !important; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* Prose pages */
.prose { max-width: 44rem; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #45413a; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: 15px; border-top: 1px solid var(--on-ink-line); }
.site-footer .shell { padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot-grid .wordmark svg { width: 96px; margin-bottom: 16px; }
.foot-grid h2 { font-size: 15px; color: var(--on-ink); letter-spacing: 0; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-grid a { text-decoration: none; color: var(--on-ink); }
.foot-grid a:hover { text-decoration: underline; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--on-ink-line); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.legal p { margin: 0; max-width: 62em; }
.legal a { color: var(--on-ink); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* SVG paint helpers */
.f-cream { fill: var(--on-ink); }
.f-inksoft { fill: var(--ink-soft); }
.s-line { stroke: var(--on-ink-line); }
.s-cream { stroke: var(--on-ink); }

/* Calculator messages */
.calc-error { color: #f0c98a; font-size: 15px; margin: 8px 0 0; }
.audience.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .audience.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience.three { grid-template-columns: 1fr; } }

/* Header and hero on cream (operator 2026-09-23: the toolbar and hero were both dark). The dark
   sections now start below the hero. Sub-page headers follow the same rule. */
.site-header { background: var(--paper); color: var(--ink); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wordmark svg g { fill: var(--ink); }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.site-header .btn-cream, .hero .btn-cream, .page-head .btn-cream { background: var(--ink); color: var(--on-ink); }
.site-header .btn-cream:hover, .hero .btn-cream:hover, .page-head .btn-cream:hover { background: var(--ink-soft); }
.nav-menu summary { border-color: var(--line); }
.nav-menu[open] summary { border-color: var(--ink); }
.nav-menu nav { background: var(--sheet); border-color: var(--line); }
.nav-menu nav a:hover { background: var(--paper-deep); }
.night.hero, .night.page-head { background: var(--paper); color: var(--ink); }
.hero .lede, .page-head .lede, .hero figcaption { color: var(--muted); }
.hero .btn-ghost, .page-head .btn-ghost { border-color: var(--line); color: var(--ink); }
.hero .btn-ghost:hover, .page-head .btn-ghost:hover { border-color: var(--ink); }
.hero .f-cream { fill: var(--ink); }
.hero .f-inksoft { fill: var(--paper-deep); }
.hero .s-line { stroke: var(--line); }
.page-head .jump a { border-color: var(--line); color: var(--muted); }
.page-head .jump a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- 2026-09-23 late pass: red sample links, cards, light closing + footer, animated graphics ---------- */
:root { --red: #e50914; --h1: clamp(38px, 4.6vw, 60px); --h2: clamp(30px, 3.4vw, 44px); --h3: 20px; --lede: 18px; --gap: clamp(18px, 2.4vw, 30px); --card-pad: clamp(24px, 4vw, 56px); --radius: 24px; --muted: #6b6a66; }

/* Sample links: plain red text; a red pill with white text on hover or focus. */
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 var(--font); color: var(--red); text-decoration: none; background: transparent; transition: background-color .2s var(--ease), color .2s var(--ease); }
.cta:hover, .cta:focus-visible { background: var(--red); color: #fff; outline: none; }
.actions .cta:first-child { margin-left: -20px; }
.nav-menu nav .cta { justify-content: flex-start; margin-top: 6px; }

/* Every content section is a card on the cream page. */
.block { padding: 0 0 var(--gap); }
.block + .block { padding-top: 0; }
.block.alt { background: none; border: 0; padding-top: 0; }
.block.alt + .block { padding-top: 0; }
.hero + .block, .page-head + .block { padding-top: 0; }
.block > .shell, .closing > .shell { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad); }
.night.closing { background: var(--paper); color: var(--ink); padding: 0 0 var(--gap); }
.closing .shell { padding: var(--card-pad); }
.closing p { color: var(--muted); }
.hero .shell { padding-top: 48px; padding-bottom: 72px; }
.page-head .shell { padding: 56px 0 48px; }
.spec { border-top: 1px solid var(--line); }

/* Light footer. */
.site-footer { background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wordmark svg g { fill: var(--ink); }
.foot-grid h2, .foot-grid a, .legal a { color: var(--ink); }
.legal { border-top-color: var(--line); }

/* Even typography: one scale for headings, ledes and body. */
.hero h1, .page-head h1 { font-size: var(--h1); }
.head h2, .problem h2, .docs h2, .sheet-top h2, .spec h2, .closing h2, .contact h2, .prose h2 { font-size: var(--h2); }
.contact h2, .prose h2 { font-size: 26px; }
.panel-btn h3, .audience h3, .brands h3, .modes h3, .approach h3, .steps h3, .team h3, .coa-head h3, .cap h3 { font-size: var(--h3); }
.hero .lede, .page-head .lede, .closing p, .story .prose p { font-size: var(--lede); line-height: 1.55; }
.audience p, .modes p, .spec-table, .data { font-size: 16px; }
.head p, .problem p, .spec .intro p, .closing p, .docs > div > p, .approach p, .audience.wide p, .story .prose p { max-width: 36em; }
.prose p, .prose li { color: var(--ink-soft); }
.hero .lede { margin: 24px 0 32px; }
.head { margin-bottom: 36px; }

/* Expandable capability cards: header only until opened. */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
details.cap { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
details.cap[open], details.cap:hover { border-color: var(--ink); }
.cap summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; }
.cap summary::-webkit-details-marker { display: none; }
.cap summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 16px; }
.cap h3 { margin: 0; }
.cap-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; transition: transform .3s var(--ease); }
.cap-icon::before, .cap-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.cap-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.cap[open] .cap-icon { transform: rotate(45deg); }
details.cap p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
@media (max-width: 860px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* Dark graphics follow the palette tokens (old fills were hardcoded) and move a little. */
svg [fill="#4c4a45"] { fill: var(--ink-soft); }
svg [stroke="#5c5a54"] { stroke: var(--on-ink-line); }
svg [fill="#b8ae9c"] { fill: var(--on-ink-muted); }
svg [fill="#f8f4eb"] { fill: var(--sheet); }
svg [fill="#cec4b3"] { fill: var(--line); }
svg [fill="#6e675e"] { fill: var(--muted); }
svg [stroke="#403e3a"] { stroke: var(--ink); }
.vials circle { animation: bob 5.5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.vials circle:nth-child(3n) { animation-duration: 6.5s; animation-delay: -2s; }
.vials circle:nth-child(3n+1) { animation-duration: 7.5s; animation-delay: -4s; }
.vials rect { animation: shimmer 4s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
@keyframes shimmer { from { opacity: .7; } to { opacity: .95; } }
.art svg { animation: art-drift 16s ease-in-out infinite alternate; transform-origin: center; }
.art:nth-child(even) svg, .panel:nth-child(even) .art svg { animation-direction: alternate-reverse; }
@keyframes art-drift { from { transform: translate(-1.5%, -1%) scale(1.04); } to { transform: translate(1.5%, 1%) scale(1.04); } }
.approach svg { animation: art-breathe 6s ease-in-out infinite alternate; }
@keyframes art-breathe { from { opacity: .82; } to { opacity: 1; } }
@media (max-width: 760px) { .block > .shell, .closing > .shell { border-radius: 18px; } }
@media (max-width: 900px) { .header-cta { display: none; } }

/* ---------- 2026-09-23 pass 3: hover cards, tighter What we make, light graphics, per-product cards ---------- */
.actions .cta:first-child { margin-left: 0; }
.panels { align-items: flex-start; }
.panel { height: auto; }
.panel-btn { align-items: flex-start; }
.panel-btn h3 { min-height: 2.4em; }
.panel-body { flex: none; }
.panel-body .text-link { margin-top: 4px; }
.art, .art.light { background: var(--paper-deep); }
.art svg rect[fill="#52504a"] { fill: var(--ink-soft); }
svg [fill="#403e3a"] { fill: var(--ink); }
.vials { background: var(--paper-deep); border: 1px solid var(--line); }
.vials path[fill="#4c4a45"] { fill: var(--sheet); }
.vials path[stroke="#5c5a54"] { stroke: var(--ink); }
.vials text { fill: var(--muted); }
.vials figcaption { color: var(--muted); }
.block > .shell > .spec { border-top: 0; padding: 0; }
.spec .art { height: 200px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; }
.features li { border-top: 2px solid var(--ink); padding-top: 16px; }
.features h3 { font-size: var(--h3); margin-bottom: 6px; }
.features p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
details.cap.platform { background: var(--sheet); }
.cap summary { cursor: pointer; }
.panel:not(.open) .panel-body { display: none; }
.panel .art { height: 160px; }
.panel:not(.open) .art { margin-bottom: 22px; }

/* ---------- 2026-09-23 pass 4: Unlock hero, process section, home team, news posts ---------- */
.hero .shell.hero-stack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; padding: 56px 0 64px; }
.hero-copy h1 { max-width: 14ch; margin-inline: auto; }
.hero-copy .lede { margin: 20px auto 28px; max-width: 30em; }
.hero-stack .actions { justify-content: center; }
.hero-stack .actions .cta:first-child { margin-left: 0; }
.hero-stack .vault { width: min(520px, 100%); }
.process { display: grid; grid-template-columns: 56px 1fr; gap: 24px clamp(20px, 3vw, 40px); align-items: start; }
.process-icons { display: grid; gap: 22px; color: var(--ink); padding-top: 10px; }
.process-icons svg { width: 40px; height: 40px; }
.process-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin-bottom: 20px; }
.pill-word { color: var(--red); }
.process-copy p { font-size: var(--lede); max-width: 34em; color: var(--ink-soft); }
.text-link.arrow { font-size: 18px; text-decoration: none; }
.text-link.arrow:hover { text-decoration: underline; }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } .process-icons { grid-auto-flow: column; justify-content: start; } }
.home-team .role { margin: 2px 0 0; }
.home-team .photo { aspect-ratio: 1; border-radius: 50%; width: min(100%, 180px); }
.posts { display: grid; gap: 12px; }
.post details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.post summary { list-style: none; cursor: pointer; padding: 22px 24px; display: grid; gap: 6px; }
.post summary::-webkit-details-marker { display: none; }
.post time { font-size: 13px; color: var(--muted); }
.post h2 { font-size: 24px; }
.post .excerpt { margin: 4px 0 0; color: var(--muted); }
.post-more { font-weight: 600; font-size: 15px; color: var(--red); }
.post details[open] .post-more { display: none; }
.post-body { padding: 0 24px 24px; }
.hero-copy h1 { max-width: none; white-space: nowrap; font-size: clamp(30px, 4.4vw, 60px); }
@media (max-width: 560px) { .hero-copy h1 { white-space: normal; max-width: 12ch; font-size: clamp(30px, 8.5vw, 40px); } }
.team-more { margin: 28px 0 0; }
.team-more .text-link.arrow { font-size: 16px; }
/* Hero fits one screen at 100%: tighter stack, vault sized against the viewport height. */
.hero .shell.hero-stack { padding: 28px 0 36px; gap: 22px; }
.hero-copy h1 { font-size: clamp(30px, 4vw, 54px); }
.hero-copy .lede { margin: 14px auto 22px; }
.hero-stack .vault { width: min(100%, 520px, calc(100vh - 430px)); min-width: 220px; }
.hero-stack .vault figcaption { margin-top: 10px; }
.hero-stack .vault { width: min(100%, 600px, calc(100vh - 360px)); }
.hero-stack .vault figcaption { white-space: nowrap; }
.approach > article { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.approach p { color: var(--muted); }
.approach svg text { fill: var(--muted); }
/* Hero vault is a 16:9 video: wider cap, height still fitted to one screen. The clip's background is encoded a shade lighter than --paper and blended with darken, so it resolves to the page cream; feathered edges hide compression noise at the border. */
.hero-stack .vault { width: min(100%, 820px, calc((100vh - 360px) * 1.7)); }
.vault-stage video { display: block; width: 100%; height: auto; background: var(--paper); mix-blend-mode: darken; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
@media (max-width: 900px) { .hero-stack .vault { max-width: 100%; } }
/* Header: wordmark left, nav centred, red Contact Us right; on phones only the wordmark and the menu button remain. */
.site-header .shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-header nav[aria-label="Main"] { justify-self: center; }
.site-header .header-cta { justify-self: end; margin: 0; }
.site-header .nav-menu { justify-self: end; grid-column: 3; }
@media (max-width: 900px) { .site-header .shell { grid-template-columns: 1fr auto; } .site-header nav[aria-label="Main"] { display: none; } .site-header .nav-menu { grid-column: 2; } }
/* Photo art tiles: cover the tile, same slow drift as the drawn tiles. */
.art-photo img { display: block; width: 100%; height: 100%; object-fit: cover; animation: art-drift 16s ease-in-out infinite alternate; transform-origin: center; }
.art-low img { object-position: 50% 82%; }
.art-clear img { object-position: 50% 45%; }
.art-conc img { object-position: 50% 70%; }
/* Evidence tables fit their column: no horizontal scroll, cells wrap instead. */
.table-wrap { overflow: visible; }
.data.min { min-width: 0; }
.data { font-size: 14px; }
.data th { padding-right: 8px; }
.data td { padding: 11px 8px 11px 0; }
.data th:last-child, .data td:last-child { padding-right: 0; }
@media (max-width: 560px) { .data { font-size: 13px; } .table-wrap { overflow-x: auto; } }
