/* Noea — site styles */

:root {
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --card: #fffdf9;
  --ink: #15201d;
  --ink-2: #3c4a46;
  --muted: #6b7773;
  --line: #d9d4c8;
  --accent: #1f5c4b;
  --accent-ink: #f3f7f4;
  --accent-soft: #dde9e3;
  --signal: #b4502a;
  --ok: #2f7a55;
  --sky-1: #e4ebe4;
  --sky-2: #f3ede0;
  --sun: #f2d9a6;
  --hill-1: #b9c9b3;
  --hill-2: #8fab94;
  --hill-3: #5f8770;
  --mark-auto: #e4e8e2;
  --mark-agent: #f7dc9c;
  --mark-doc: #c4ecdf;
  --mark-qppv: #dcd3f3;
  --mark-you: #f6c3b4;
  --radius: 14px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101614;
    --paper-2: #151d1a;
    --card: #18211e;
    --ink: #edf1ee;
    --ink-2: #c3ccc8;
    --muted: #8d9894;
    --line: #2a3531;
    --accent: #7fc4a8;
    --accent-ink: #0d1412;
    --accent-soft: #1e2e28;
    --signal: #e68a62;
    --ok: #7fc4a8;
    --sky-1: #1b2730;
    --sky-2: #33322f;
    --sun: #8a6f45;
    --hill-1: #26352f;
    --hill-2: #1d2a25;
    --hill-3: #141e1a;
    --mark-auto: #2b3531;
    --mark-agent: #5a4a22;
    --mark-doc: #1f4a3d;
    --mark-qppv: #3b3358;
    --mark-you: #5c3328;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--sans);
  padding: 13px 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent);
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.sm { padding: 9px 15px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(46px, 7.4vw, 92px); }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--ink-2); max-width: 36em; }
.eyebrow { font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; display: block; }
.muted { color: var(--muted); }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.rule { border-top: 1px solid var(--line); }

/* Hero */
.hero { padding: 48px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin-top: 24px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-2);
  padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  margin-bottom: 28px;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.points { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); font-size: 16px; }
.points li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--accent); transform: translateY(-4px); }

/* Live case (hero visual) */
.stage {
  position: relative; border-radius: 22px; overflow: hidden; isolation: isolate;
  padding: 56px 28px 28px; min-height: 600px; display: flex; align-items: flex-end; justify-content: center;
}
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.stage-label { position: absolute; top: 22px; left: 28px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 60%, transparent); }
@media (max-width: 600px) { .stage { padding: 52px 12px 12px; min-height: 0; } .stage-label { left: 16px; top: 18px; } }

.case, .live {
  width: 100%; max-width: 480px;
  background: var(--card); border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 30px 60px -30px rgba(21, 32, 29, .45);
  padding: 20px 22px 16px; font-size: 14px;
}
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-id { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.tag { font: 500 12px/1 var(--sans); padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--signal); }
.tag.calm { background: var(--accent-soft); color: var(--accent); }
.case-title { font-family: var(--serif); font-size: 21px; line-height: 1.22; margin-bottom: 4px; }
.case-source { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.clock { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.clock-bar { flex: 1; height: 5px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.clock-bar span { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
.clock small { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; min-width: 9ch; text-align: right; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-2); transition: color .2s; }
.steps li:first-child { border-top: 0; }
.steps li.is-active { color: var(--ink); }
.steps mark, .log mark, .review mark {
  font: 500 11.5px/1 var(--mono); color: var(--ink); padding: 3px 5px; border-radius: 3px; white-space: nowrap;
  background: var(--mark-agent);
}
.who-auto { background: var(--mark-auto) !important; }
.who-agent { background: var(--mark-agent) !important; }
.who-doc { background: var(--mark-doc) !important; }
.who-qppv { background: var(--mark-qppv) !important; }
.who-you { background: var(--mark-you) !important; }
.steps .who { font-size: 12px; color: var(--muted); }
.check { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.check svg { width: 10px; height: 10px; }
.check.todo { background: transparent; border: 1.5px dashed var(--line); }
.check.now { background: transparent; border: 1.5px solid var(--accent); }
.check.now::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.case-foot { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* tabs */
.live-tabs { display: flex; gap: 4px; align-items: center; margin: -4px -6px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.live-tabs [role=tab] {
  font: 500 13px/1 var(--sans); white-space: nowrap; color: var(--muted); background: transparent; border: 1px solid transparent;
  padding: 7px 10px; border-radius: 7px; cursor: pointer;
}
.live-tabs [role=tab]:hover { color: var(--ink); }
.live-tabs [role=tab][aria-selected=true] { color: var(--accent-ink); background: var(--ink); }
.live-pause { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.live-pause:hover { color: var(--ink); border-color: var(--ink-2); }
.live-pause svg { width: 11px; height: 11px; fill: currentColor; }
.live-pause .i-play, .is-paused .live-pause .i-pause { display: none; }
.is-paused .live-pause .i-play { display: block; }

/* console + review share one fixed slot so the card never jumps */
.live-panel { margin-top: 10px; height: 164px; border-radius: 10px; background: var(--paper); position: relative; overflow: hidden; }
.log {
  list-style: none; margin: 0; padding: 10px 12px; height: 100%; overflow-y: auto; scrollbar-width: none;
  font: 12.5px/1.45 var(--mono); color: var(--ink-2);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px);
}
.log::-webkit-scrollbar { display: none; }
.log li { display: grid; grid-template-columns: 8.6ch auto 1fr; gap: 8px; align-items: baseline; padding: 3px 0; animation: line-in .25s ease; }
.log time { color: var(--muted); white-space: nowrap; }
.log .t { color: var(--ink); }
.log li.typing .t::after { content: ""; display: inline-block; width: 6px; height: 12px; margin-left: 1px; background: var(--ink); vertical-align: -1px; animation: blink .8s steps(2) infinite; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 460px) { .log li { grid-template-columns: auto 1fr; } .log time { display: none; } }

.review { position: absolute; inset: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; animation: line-in .25s ease; background: color-mix(in srgb, var(--mark-doc) 35%, var(--paper)); }
.review-head { font-size: 13px; color: var(--ink-2); }
.review-head em { font-style: normal; color: var(--ink); font-weight: 500; }
.review-grid { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.review-grid div { background: var(--card); border-radius: 8px; padding: 8px 10px; }
.review-grid dt { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.review-grid dd { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.3; }
.review-actions { display: flex; gap: 8px; margin-top: auto; }
.review-actions .btn { position: relative; overflow: hidden; }
.review-actions .auto { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .45; transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }

.live-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); min-height: 18px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; animation: pulse 1.6s ease-in-out infinite; }
.is-paused .live-dot { animation: none; background: var(--muted); }
.live.filed .clock-bar span { background: var(--ok); }
.live.filed .live-status { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .check.now::after, .live-dot, .log li { animation: none; } }

/* Grid cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); margin: 0; font-size: 16px; }
.card .num { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 18px; display: block; }

/* Flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: flow; }
.flow li { padding: 0 20px 0 0; position: relative; }
.flow li::before {
  counter-increment: flow; content: counter(flow, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  display: block; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--accent);
}
.flow h3 { font-size: 21px; margin-bottom: 8px; }
.flow p { font-size: 15px; color: var(--ink-2); margin: 0; }
.flow .by { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr 1fr; gap: 36px 0; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* Split / band */
.band { background: var(--accent); color: var(--accent-ink); }
.band .eyebrow { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.band p, .band li { color: color-mix(in srgb, var(--accent-ink) 86%, transparent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.stat-list li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.stat-list strong { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; color: var(--accent-ink); }
@media (max-width: 480px) { .stat-list li { grid-template-columns: 1fr; gap: 6px; } }

/* Fit list */
.fit { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fit li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.fit li:last-child { border-bottom: 1px solid var(--line); }
.fit .mark { color: var(--accent); font-family: var(--mono); }
.fit.no .mark { color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--serif); font-size: 22px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1; color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; max-width: 46em; color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: 16px/1.4 var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-error { color: var(--signal); font-size: 15px; margin: 0; }
.form-error:empty { display: none; }
.contact-aside p { color: var(--ink-2); }
.contact-aside .card { margin-top: 28px; }
.person { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; }

/* Prose pages */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 24px; }
.prose h2 { font-size: 30px; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

[hidden] { display: none !important; }
@media (max-width: 460px) {
  .live-tabs { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .live-tabs::-webkit-scrollbar { display: none; }
  .live-tabs [role=tab] { padding: 7px 7px; font-size: 12.5px; }
}

/* ---------- Show, don't tell components ---------- */

/* Hero KPIs */
.kpis { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin: 44px 0 0; }
.kpis dt { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--ink); }
.kpis dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 12ch; line-height: 1.35; }
@media (max-width: 520px) { .kpis { gap: 16px; } .kpis dt { font-size: 24px; } }

/* Who does what */
.swim { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.swim li { display: grid; grid-template-columns: 1.4fr auto 40px 1.6fr; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.swim li:last-child { border-bottom: 1px solid var(--line); }
.swim .swim-head { border-top: 0; padding: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.swim .duty { font-size: 16px; }
.swim .arrow { color: var(--muted); text-align: center; }
.swim .after { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { font: 500 12.5px/1 var(--mono); padding: 6px 9px; border-radius: 5px; white-space: nowrap; color: var(--ink); }
.pill.today { background: var(--mark-you); }
.pill.noea { background: var(--mark-doc); }
.pill.you-small { background: transparent; border: 1px dashed var(--line); color: var(--ink-2); }
@media (max-width: 640px) {
  .swim li { grid-template-columns: 1fr auto; row-gap: 8px; }
  .swim .swim-head { display: none; }
  .swim .duty { grid-column: 1 / -1; }
  .swim .pill.today, .swim .arrow { display: none; }
  .swim .after { grid-column: 1 / -1; }
}
.load { max-width: 820px; margin-top: 36px; display: grid; gap: 14px; }
.load-row { display: grid; grid-template-columns: 240px 1fr auto; gap: 16px; align-items: center; font-size: 14px; color: var(--ink-2); }
.load-row small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.load-bar { height: 14px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--mark-you); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.load-bar i.small { background: var(--accent); }
.reveal.in .load-bar i, .load.in .load-bar i { width: var(--w); }
@media (max-width: 640px) { .load-row { grid-template-columns: 1fr auto; } .load-row span { grid-column: 1 / -1; } }

/* Timeline with rising load */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: end; }
.timeline li { display: flex; flex-direction: column; justify-content: flex-end; height: 260px; position: relative; }
.timeline li::before {
  content: ""; display: block; height: 0; margin-bottom: 14px; border-radius: 8px 8px 2px 2px;
  background: color-mix(in srgb, var(--accent-ink) 22%, transparent); transition: height 1s cubic-bezier(.2,.7,.2,1);
}
.timeline.in li::before { height: var(--h); }
.timeline li.future::before { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent-ink) 22%, transparent) 0 6px, transparent 6px 12px); }
.timeline li:nth-child(2)::before { transition-delay: .1s; } .timeline li:nth-child(3)::before { transition-delay: .2s; }
.timeline li:nth-child(4)::before { transition-delay: .3s; } .timeline li:nth-child(5)::before { transition-delay: .4s; }
.timeline time { font: 500 13px/1 var(--mono); color: var(--accent-ink); margin-bottom: 6px; }
.timeline span { font-size: 14px; line-height: 1.35; min-height: 3.9em; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { height: auto; display: grid; grid-template-columns: 90px 1fr; gap: 4px 14px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
  .timeline li::before { grid-column: 1 / -1; height: 6px !important; width: 0; margin: 0 0 6px; border-radius: 99px; transition: width 1s; }
  .timeline.in li::before { width: var(--h); }
  .timeline span { min-height: 0; }
}

/* Unusual-setup tiles */
.tile { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; }
.tile svg { width: 100%; height: auto; }
.tile figcaption { font-size: 15px; color: var(--ink-2); }
.tile figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.tile .bars rect { fill: var(--line); }
.tile .bars .spike { fill: var(--signal); }
.tile .net path { fill: none; stroke: var(--line); stroke-width: 2; }
.tile .net circle { fill: var(--mark-agent); }
.tile .net text { font: 500 10px var(--mono); text-anchor: middle; fill: var(--ink); }
.tile .net .one { fill: var(--accent); }
.tile .net .one-t { fill: var(--accent-ink); font-size: 11px; }
.tile .dots .d-on { fill: var(--accent); }
.tile .dots .d-off { fill: none; stroke: var(--line); stroke-width: 1.5; }

/* Switching path */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.path::before { content: ""; position: absolute; top: 20px; left: 20px; right: calc((100% - 48px) / 3 + 4px); height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); }
.path li { position: relative; display: grid; gap: 4px; align-content: start; }
.path .node { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--accent); font: 500 15px var(--mono); color: var(--accent); margin-bottom: 14px; position: relative; }
.path li:last-child .node { background: var(--accent); color: var(--accent-ink); }
.path strong { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.path li > span:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 700px) {
  .path { grid-template-columns: 1fr; gap: 20px; }
  .path::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); }
  .path li { grid-template-columns: 40px 1fr; column-gap: 16px; }
  .path .node { grid-row: span 2; margin: 0; }
}

/* Founding partner gets */
.gets { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; font-size: 18px; }
.gets li { display: flex; gap: 12px; align-items: center; }
#join .person { margin-top: 8px; }
#join .person a { color: inherit; }

/* Chip inputs */
fieldset.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.chips legend { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
fieldset.chips label { display: inline-block; }
fieldset.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
fieldset.chips label span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 400; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s;
}
fieldset.chips label span:hover { border-color: var(--ink-2); }
fieldset.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
fieldset.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* QPPV page */
.week { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 16px; }
.week .eyebrow { margin: 0; }
.week-row { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-2); }
.week-bar { display: flex; height: 38px; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.week-bar i { font: 500 12px/38px var(--mono); font-style: normal; padding: 0 10px; white-space: nowrap; overflow: hidden; width: var(--w); }
.week-bar .admin { background: var(--mark-you); color: var(--ink); }
.week-bar .judge { background: var(--accent); color: var(--accent-ink); }
.week-note { margin: 0; font-size: 13px; color: var(--muted); }
.hub { margin: 0; }
.hub svg { width: 100%; height: auto; }
.hub .spokes path { stroke: color-mix(in srgb, var(--accent-ink) 35%, transparent); stroke-width: 1.5; stroke-dasharray: 4 5; fill: none; }
.hub .co { fill: color-mix(in srgb, var(--accent-ink) 16%, transparent); stroke: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.hub .you { fill: var(--accent-ink); }
.hub .you-t { font: 400 22px var(--serif); fill: var(--accent); text-anchor: middle; }
.hub .you-s { font: 500 10px var(--mono); fill: var(--accent); text-anchor: middle; letter-spacing: .08em; }
.hub .ring { fill: none; stroke: color-mix(in srgb, var(--accent-ink) 50%, transparent); stroke-width: 1; }
.hub .ring-t { font: 500 11px var(--mono); fill: color-mix(in srgb, var(--accent-ink) 75%, transparent); text-anchor: middle; }
.tags-list { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags-list li { font-size: 15px; padding: 9px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.week-legend { margin: 0; display: flex; gap: 18px; font: 500 12px var(--mono); color: var(--muted); padding-left: 84px; }
.week-legend span { display: inline-flex; align-items: center; gap: 6px; }
.week-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.week-legend .admin { background: var(--mark-you); }
.week-legend .judge { background: var(--accent); }

/* ---------- Hale-inspired patterns ---------- */

/* Reassurance chips next to every button */
.assure { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.assure li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); padding: 6px 11px 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.assure svg { width: 14px; height: 14px; color: var(--accent); }
form .assure { margin: 0; }

/* Photo slots: drawn fallback until a photo exists */
.stage.has-photo { background: var(--photo) center / cover; }
.stage.has-photo .stage-bg { display: none; }
.stage.has-photo .stage-label { color: rgba(255,255,255,.85); }

/* Sound familiar? */
.triggers { padding: 72px 0 88px; }
.center-h { text-align: center; margin-bottom: 36px; }
.trig-row { list-style: none; margin: 0; padding: 4px 24px 12px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.trig-row::-webkit-scrollbar { display: none; }
.trig-row { justify-content: safe center; }
.trig-row li { flex: none; scroll-snap-align: start; }
.trig {
  position: relative; display: block; width: clamp(170px, calc((min(100vw, 1180px) - 128px) / 6), 210px); aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: var(--paper-2); transition: transform .25s ease, box-shadow .25s ease; text-align: left;
}
.trig:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(21,32,29,.45); }
.trig.picked { outline: 2px solid var(--accent); outline-offset: 3px; }
.trig-art { position: absolute; inset: 0; background-size: cover; background-position: center; }
.trig.has-photo .trig-art { background-image: var(--photo) !important; }
.trig-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 55%); }
.trig-label {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap;
  font-size: 12.5px; color: #fff; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* Drawn fallbacks: soft, grainy colour fields */
.trig-qppv { background: radial-gradient(120% 80% at 30% 20%, #c9d7cf, #6f8f80 70%); }
.trig-inspection { background: radial-gradient(120% 80% at 70% 25%, #efe3cc, #b49a6c 75%); }
.trig-approval { background: radial-gradient(120% 80% at 40% 30%, #dfe8ef, #7d98ad 75%); }
.trig-fit { background: radial-gradient(120% 80% at 60% 20%, #f0d6c8, #b9775b 75%); }
.trig-slow { background: radial-gradient(120% 80% at 30% 30%, #e3e1d6, #8b8a72 75%); }
.trig-market { background: radial-gradient(120% 80% at 50% 20%, #d8e3dc, #4f7563 75%); }

/* Monthly report over a photo */
.report-stage {
  position: relative; border-radius: 22px; overflow: hidden; padding: 72px 32px 40px;
  background: linear-gradient(160deg, var(--sky-1), var(--sky-2) 45%, var(--hill-2));
}
.report-stage.has-photo { background: var(--photo) center / cover; }
.report-stage.has-photo .stage-label { color: rgba(255,255,255,.85); }
.report-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .report-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .report-stage { padding: 56px 14px 14px; } }
.rcard {
  margin: 0; padding: 18px 20px; border-radius: 16px; display: grid; gap: 14px;
  background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px -28px rgba(21,32,29,.5); border: 1px solid color-mix(in srgb, var(--card) 60%, transparent);
}
.rcard figcaption { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ring { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-bg { stroke: var(--paper-2); }
.ring .ring-fg { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1); }
.reveal.in .ring .ring-fg { stroke-dashoffset: 0; }
.ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.ring small { font-size: 11px; color: var(--muted); margin-top: 4px; }
.mini-bars { width: 100%; height: auto; }
.mini-bars rect { fill: var(--accent); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 70ms); }
.reveal.in .mini-bars rect { transform: scaleY(1); }
.mini-bars .limit { stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 5 4; }
.mini-bars .limit-t { font: 500 10px var(--mono); fill: var(--signal); text-anchor: end; }
.ready { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.ready li { display: flex; align-items: center; gap: 10px; }
.todo-clock { background: transparent !important; color: var(--wait, #9a6a12) !important; border: 1.5px solid currentColor; font-size: 11px; line-height: 1; }

/* Sourced stats */
.stats-strip { padding: 64px 0 72px; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 36px; }
.stats dt { font-family: var(--serif); font-size: clamp(48px, 6vw, 72px); line-height: 1; color: var(--accent); }
.stats dd { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); max-width: 22ch; }
.stats sup { font-size: 10px; color: var(--muted); margin-left: 2px; }
.sources { margin: 28px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 24px; } }

/* Form: one tidy spacing for chip groups */
form fieldset.chips + fieldset.chips { margin-top: 2px; }


/* Live gradients (Hazeglow) */
.glow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.stage .glow-canvas { z-index: -1; }
.stage.glow-on .stage-bg { display: none; }
.trig-art .glow-canvas { z-index: 0; }
.trig-art::after { z-index: 1; }
.trig-label { z-index: 2; }
.report-stage { isolation: isolate; }
.report-stage .glow-canvas { z-index: -1; }
