/* /v2 — calm, precise, Natural-style system. Loaded after styles.css, scoped to body.v2. */

body.v2 {
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --card: #ffffff;
  --ink: #161514;
  --ink-2: #4a4a46;
  --muted: #8d8d87;
  --line: #ebebe8;
  --accent: #1e4d3f;
  --accent-ink: #ffffff;
  --accent-soft: #e7efeb;
  --ok: #2f7a55;
  --signal: #b4502a;
  --mark-you: #f3e1d6;
  --mark-doc: #dbeee6;
  --mark-agent: #f5e6bd;
  --mark-auto: #ececea;
  --radius: 16px;
  --serif: "Geist", "Inter", system-ui, sans-serif;
  --sans: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  letter-spacing: -0.003em;
}
@media (prefers-color-scheme: dark) {
  body.v2 {
    --paper: #0f1110; --paper-2: #181a19; --card: #1c1f1d; --ink: #f1f1ee; --ink-2: #c4c5c0; --muted: #8b8d88;
    --line: #2a2d2b; --accent: #9fd1bb; --accent-ink: #0f1110; --accent-soft: #1f2c27;
    --mark-you: #4a3328; --mark-doc: #1f3a31; --mark-agent: #4a3f20; --mark-auto: #2a2d2b;
  }
}

/* Type: one family, normal weights, headline + softer continuation */
body.v2 h1, body.v2 h2, body.v2 h3 { font-family: var(--sans); font-weight: 400; letter-spacing: -0.02em; }
body.v2 h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.2; max-width: 30ch; }
body.v2 h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; max-width: 28ch; }
body.v2 h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
body.v2 h1 em, body.v2 h2 em { font-style: normal; color: inherit; }
body.v2 .soft { color: var(--muted); }
body.v2 .lede { font-size: 17px; color: var(--ink-2); }
body.v2 .eyebrow { font: 400 14px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 12px; }
body.v2 .section-head { margin-bottom: 36px; }
body.v2 .section-head p { font-size: 16px; color: var(--muted); margin-top: 10px; }
body.v2 section { padding: 88px 0; }
body.v2 .rule { border-top: 0; }

/* Header + buttons: small black pills */
body.v2 .site-header { background: color-mix(in srgb, var(--paper) 90%, transparent); }
body.v2 .site-header.scrolled { border-bottom-color: var(--line); }
body.v2 .brand { font-family: var(--sans); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
body.v2 .nav { font-size: 14px; gap: 24px; }
body.v2 .btn { background: var(--ink); border-color: var(--ink); color: var(--paper); font: 500 14px/1 var(--sans); padding: 10px 16px; }
body.v2 .nav a.btn, body.v2 .nav a.btn:hover { color: var(--paper); }
body.v2 .btn.ghost { background: transparent; color: var(--ink); border-color: transparent; }
body.v2 .btn.ghost:hover { border-color: var(--line); }
body.v2 .btn.sm { padding: 8px 14px; font-size: 13.5px; }
body.v2 .status { background: transparent; border-color: var(--line); font-size: 13px; color: var(--ink-2); }
body.v2 .assure li { background: transparent; border-color: var(--line); font-size: 12.5px; }
body.v2 .assure svg { color: var(--ink-2); }
body.v2 .check { background: var(--ink); color: var(--paper); }

/* Hero: words, then the environment */
.v2-hero { padding: 64px 0 40px !important; }
.v2-hero h1 { margin-top: 24px; }
.v2-hero .hero-cta { margin-top: 28px; }
.v2-hero .wrap + .wrap { margin-top: 48px; }

/* Photo panels with floating UI */
.photo-panel { position: relative; border-radius: 20px; overflow: hidden; background: var(--paper-2); isolation: isolate; }
.photo-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.photo-panel .float { display: flex; justify-content: center; align-items: center; padding: 64px 24px; }
.hero-panel { min-height: min(78vh, 760px); display: grid; }
.hero-panel > img { object-position: 50% 50%; }
.hero-panel .float { justify-content: flex-end; padding: 48px; }
.scope-panel > img { object-position: 50% 0% !important; } /* alt mood: frame the window, not the person */
@media (max-width: 760px) { .hero-panel .float { justify-content: center; padding: 120px 12px 12px; } .hero-panel > img { object-position: 45% 10%; } }
body.v2 .inbox { box-shadow: 0 30px 60px -24px rgba(0,0,0,.35); border-radius: 18px; }
body.v2 .inbox-top strong { font-family: var(--sans); font-weight: 500; font-size: 16px; }
body.v2 .inbox-foot strong { font-family: var(--sans); font-weight: 500; font-size: 22px; }
body.v2 .ib-state, body.v2 .ib-owner span { font-family: var(--mono); }

/* Outcomes: grey inset + caption */
body.v2 .outcome { border-color: var(--line); padding: 12px 12px 22px; gap: 18px; border-radius: 18px; }
body.v2 .outcome .inset { background: var(--paper-2); border-radius: 12px; height: 260px; box-sizing: border-box; display: grid; place-items: center; padding: 24px; }
body.v2 .outcome .inset svg { max-height: 120px; }
body.v2 .outcome figcaption { padding: 0 12px; font-size: 14.5px; color: var(--muted); }
body.v2 .outcome figcaption strong { font-family: var(--sans); font-weight: 500; font-size: 15px; margin-bottom: 4px; }
body.v2 .o-cost .cn, body.v2 .o-acc .noea { fill: var(--ink); }
body.v2 .o-acc .t2 { fill: var(--paper); }
body.v2 .o-acc .line { stroke: var(--ink); }
body.v2 .o-ring strong { font-family: var(--sans); font-weight: 500; font-size: 18px; }
body.v2 .ring .ring-fg { stroke: var(--ok); }

/* Scope: white card on a landscape */
.scope-panel .float { padding: 96px 24px; }
.scope-panel .float.wide > .scope { width: 100%; max-width: 980px; background: var(--card); border-radius: 18px; padding: 28px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.35); }
body.v2 .scope-col h3 { color: var(--ink); font-size: 15px; font-weight: 500; border-bottom-color: var(--line); padding-bottom: 10px; margin-bottom: 12px; }
body.v2 .scope-col li { color: var(--ink-2); font-size: 14px; }
body.v2 .scope-col .check { background: var(--ink); color: var(--paper); }

/* When it's time to change: photo cards */
body.v2 .center-h { font-size: clamp(24px, 2.6vw, 32px); }

/* People */
.people-grid { display: grid; grid-template-columns: 0.9fr 2fr; gap: 20px; align-items: stretch; }
.people-photo { min-height: 320px; }
@media (max-width: 860px) { .people-grid { grid-template-columns: 1fr; } .people-photo { min-height: 260px; } }
body.v2 .person-card { border-radius: 18px; }
body.v2 .person-card strong { font-family: var(--sans); font-weight: 500; font-size: 16px; }
body.v2 .avatar { font-family: var(--sans); background: var(--paper-2); color: var(--ink); }

/* Technology: precise grey panel */
.panel-stage { background: var(--paper-2) !important; min-height: 0 !important; }
.panel-stage .stage-label { color: var(--muted); }
body.v2 .live { box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
body.v2 .case-title { font-family: var(--sans); font-weight: 500; font-size: 18px; }
body.v2 .live-tabs [role=tab][aria-selected=true] { background: var(--ink); color: var(--paper); }

/* Report on a landscape */
.photo-stage { position: relative; isolation: isolate; background: var(--paper-2); }
.photo-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -1; }
.photo-stage .stage-label { color: rgba(255,255,255,.9); }
body.v2 .ring strong { font-family: var(--sans); font-weight: 500; }
body.v2 .mini-bars rect { fill: #161514; }


/* Forms, FAQ, switching, footer */
body.v2 fieldset.chips label span { font-size: 13.5px; }
body.v2 fieldset.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
body.v2 input, body.v2 select, body.v2 textarea { border-radius: 10px; font-family: var(--sans); }
body.v2 .faq summary { font-family: var(--sans); font-size: 16px; }
body.v2 .faq summary::after { color: var(--ink); }
body.v2 .path strong { font-family: var(--sans); font-weight: 500; font-size: 16px; }
body.v2 .path .node { border-color: var(--ink); color: var(--ink); }
body.v2 .path li:last-child .node { background: var(--ink); color: var(--paper); }
body.v2 .path::before { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); }
body.v2 .gets { font-size: 16px; }
body.v2 .anchor { font-family: var(--sans); font-size: 22px; color: var(--ink); }
body.v2 .site-footer { border-top-color: var(--line); }

/* Fixes */
.panel-stage .stage-bg { display: none; }
body.v2 .check.todo, body.v2 .check.now { background: transparent; }
body.v2 .check.now { border-color: var(--ink); }
body.v2 .check.now::after { background: var(--ink); }
body.v2 .center-h { margin-left: auto; margin-right: auto; max-width: none; }
.photo-stage > img { object-position: 50% 55%; }

/* Provably correct */
.proof-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; color: var(--ink); }
.proof-mini li { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 10px; padding: 10px 14px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.25); }
.proof { margin: 0; width: 100%; max-width: 460px; background: var(--card); border-radius: 18px; padding: 20px 22px 16px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.proof-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.proof-top strong { font-weight: 500; font-size: 16px; }
.proof-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); margin-bottom: 18px; }
.proof-tabs button { font: 500 12.5px/1 var(--sans); border: 0; background: transparent; color: var(--muted); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.proof-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.rec-decision { font-size: 22px; letter-spacing: -0.015em; margin: 0 0 14px; }
.rec dl { margin: 0; display: grid; }
.rec dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rec dt { font-size: 12.5px; color: var(--muted); padding-top: 2px; }
.rec dd { margin: 0; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.rec dd .check { flex: none; margin-top: 1px; }
.rec.in dl div { animation: rec-in .35s ease both; }
.rec.in dl div:nth-child(2) { animation-delay: .08s; } .rec.in dl div:nth-child(3) { animation-delay: .16s; } .rec.in dl div:nth-child(4) { animation-delay: .24s; }
@keyframes rec-in { from { opacity: 0; transform: translateY(4px); } }
.proof-foot { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .rec.in dl div { animation: none; } }
@media (max-width: 460px) { .rec dl div { grid-template-columns: 1fr; gap: 2px; } }

/* Logo: Noea™ wordmark */
.brand .reg { font-size: .42em; font-weight: 400; vertical-align: top; position: relative; top: .3em; margin-left: 0; }
body.v2 h1 .reg { font-size: .4em; vertical-align: top; position: relative; top: .35em; margin-left: 1px; }

/* Inbox: centre the status dot on the first line of the title */
body.v2 .inbox-list .ib-title { line-height: 20px; }
body.v2 .inbox-list li::before { top: calc(10px + (20px - 6px) / 2); }


/* Trigger row scrolls sideways, which clips vertically: leave room for the hover lift and shadow */

/* Status dot: a calm "live" pulse */
.status .dot { position: relative; box-shadow: none; }
.status .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--ok); opacity: .45; animation: status-pulse 2.4s cubic-bezier(.2,.6,.3,1) infinite;
}
@keyframes status-pulse {
  0% { transform: scale(1); opacity: .45; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .status .dot::after { animation: none; transform: scale(2); opacity: .2; }
}

/* Check marks: smaller tick inside the circle, a little more space to the text */
body.v2 .check { width: 18px; height: 18px; flex: none; }
body.v2 .check svg { width: 8px; height: 8px; }
.proof-mini li, .scope-col li, .rec dd, .proof-foot, .ready li, .gets li { gap: 11px; }

/* Accountability diagram: lighter, matches the pill buttons */
body.v2 .o-acc .line { stroke-width: 1.5; }
body.v2 .o-acc .t { font: 500 9.5px var(--sans); }
body.v2 .o-acc .t2 { font: 500 10.5px var(--sans); }

/* ---------- Whimsy in the outcome figures (subtle, and off for reduced motion) ---------- */

/* Fewer errors: checks land one after another, each card lifts a hair, then reset */
@keyframes tick-in {
  0%, 6% { transform: scale(.3); opacity: 0; }
  12% { transform: scale(1.18); opacity: 1; }
  16%, 86% { transform: scale(1); opacity: 1; }
  94%, 100% { transform: scale(.3); opacity: 0; }
}
@keyframes card-lift { 0%, 10% { translate: 0 0; } 13% { translate: 0 -3px; } 20%, 100% { translate: 0 0; } }
.reveal.in .proof-mini .check { animation: tick-in 5.2s cubic-bezier(.3,.7,.3,1) infinite both; }
.reveal.in .proof-mini li { animation: card-lift 5.2s ease-out infinite; }
.reveal.in .proof-mini li:nth-child(2), .reveal.in .proof-mini li:nth-child(2) .check { animation-delay: .45s; }
.reveal.in .proof-mini li:nth-child(3), .reveal.in .proof-mini li:nth-child(3) .check { animation-delay: .9s; }

/* Accountability: the vendor lines flicker and run; one dot carries the hand-off */
@keyframes march { to { stroke-dashoffset: -14; } }
@keyframes flicker { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
.o-acc .ghost path { animation: march 1.6s linear infinite; }
.o-acc .ghost circle { animation: flicker 2.2s ease-in-out infinite; }
.o-acc .ghost circle:nth-of-type(2) { animation-delay: -.5s; } .o-acc .ghost circle:nth-of-type(3) { animation-delay: -1.1s; } .o-acc .ghost circle:nth-of-type(4) { animation-delay: -1.6s; }
.o-acc .handoff { fill: var(--ok); }

@media (prefers-reduced-motion: reduce) {
  .proof-mini li, .proof-mini .check, .o-acc .ghost path, .o-acc .ghost circle { animation: none !important; }
  .o-acc .handoff { display: none; }
}

/* Hand-off goes one way and lands in Noea */
.o-acc .landing { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .o-acc .landing { display: none; } }
body.v2 .o-acc .t2 .tm { font-size: 5.5px; font-weight: 400; }

/* ---------- Report: three cards, one height ---------- */

/* ---------- One form: price or call ---------- */
.intent label span { font-weight: 500; }

/* ---------- Reliability: flow canvas ---------- */
.flow-canvas {
  position: relative; border-radius: 20px; border: 1px solid var(--line); overflow: hidden;
  background-color: var(--paper-2);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
.fc-scroll { overflow-x: auto; padding: 44px 24px 96px; scrollbar-width: none; }
.fc-scroll::-webkit-scrollbar { display: none; }
.fc-board { position: relative; }
.fc-wires { position: absolute; inset: 0; overflow: visible; }
.fc-link { fill: none; stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 1.4; }
.fc-link.loop { stroke-dasharray: 4 4; }
.fc-port { fill: var(--card); stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: 1.2; }
.fc-route { fill: none; stroke: none; }
.fc-token { fill: var(--ok); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ok) 60%, transparent)); }

.fc-node {
  position: absolute; box-sizing: border-box; padding: 0 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; cursor: default;
  box-shadow: 0 8px 20px -14px rgba(0,0,0,.3);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.fc-head { display: flex; align-items: center; gap: 9px; height: 46px; }
.fc-node.has-rows .fc-head { height: 40px; }
.fc-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; color: #2b2a26; }
.fc-ic svg { width: 14px; height: 14px; }
.fc-ic.t-start { background: #dcefe4; } .fc-ic.t-rule, .fc-ic.t-branch { background: #f5e6b8; }
.fc-ic.t-auto { background: #e2e6fa; } .fc-ic.t-person { background: #f3e1d6; }
.fc-ic.t-file, .fc-ic.t-record { background: #dcefe4; }
.fc-txt { display: grid; line-height: 1.2; min-width: 0; }
.fc-txt strong { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.fc-txt small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-rows { display: grid; gap: 4px; margin-top: 8px; }
.fc-row { height: 26px; display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; border-radius: 6px; background: var(--paper-2); font-size: 11px; color: var(--ink-2); transition: background .25s, color .25s; }

.fc-node.passed { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.fc-node.active { border-color: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 16%, transparent), 0 10px 24px -14px rgba(0,0,0,.35); transform: translateY(-1px); }
.fc-node.active .fc-row:first-child, .fc-node.passed .fc-row:first-child { background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ink); }

.fc-bar {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(0,0,0,.3); font-size: 13.5px; color: var(--ink);
}
.fc-step { font: 500 11.5px/1 var(--mono); color: var(--muted); flex: none; }
.fc-note { margin-top: 14px; font-size: 13px; }
@media (max-width: 600px) { .fc-bar { border-radius: 14px; width: auto; left: 12px; right: 12px; transform: none; max-width: none; font-size: 13px; } }

/* Abbreviations: experts read them as-is, everyone else hovers or taps */
body.v2 abbr[title], body.v2 abbr[data-t] { text-decoration: underline dotted color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; cursor: help; }
.tip { position: fixed; z-index: 60; max-width: 260px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); font: 400 12px/1.35 var(--sans); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.tip.on { opacity: 1; transform: none; }

/* Audit trail: the case as an inspector sees it */
.trail { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.trail::backdrop { background: rgba(15,17,16,.45); backdrop-filter: blur(3px); }
.trail[open] { animation: trail-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes trail-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.trail-doc { padding: 26px 28px 24px; }
.trail-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.trail-kicker { font: 500 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.trail-top h3 { font: 500 22px/1.2 var(--mono); margin: 8px 0 0; letter-spacing: -.01em; }
.trail-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.trail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.trail-meta div { background: var(--paper-2); border-radius: 10px; padding: 10px 12px; }
.trail-meta dt { font-size: 11px; color: var(--muted); }
.trail-meta dd { margin: 4px 0 0; font: 500 13px/1.3 var(--mono); }
.trail-meta dd.ok { color: var(--ok); }
.trail-log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.trail-log li { display: grid; grid-template-columns: 78px 120px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.trail[open] .trail-log li { animation: trail-row .4s both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes trail-row { from { opacity: 0; transform: translateX(-6px); } }
.trail-log time { font: 400 12px/1 var(--mono); color: var(--muted); }
.trail-log b { font-weight: 500; }
.trail-log span { color: var(--ink-2); }
.trail-log i { font-style: normal; font: 400 11px/1 var(--mono); color: var(--muted); text-align: right; }
.trail-clock { position: relative; height: 6px; border-radius: 3px; background: var(--paper-2); margin-top: 22px; }
.trail-clock span { position: absolute; inset: 0 auto 0 0; width: calc(var(--d) / 15 * 100%); border-radius: 3px; background: var(--ok); transform-origin: left; }
.trail[open] .trail-clock span { animation: trail-fill 1s .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes trail-fill { from { transform: scaleX(0); } }
.trail-clock em { position: absolute; right: 0; top: 12px; font: 400 11px/1 var(--mono); font-style: normal; color: var(--muted); }
.trail-doc { padding-bottom: 40px; }
@media (max-width: 600px) {
  .trail-doc { padding: 20px 18px 40px; }
  .trail-meta { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .trail-log li { grid-template-columns: 64px 1fr; gap: 2px 10px; }
  .trail-log span, .trail-log i { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .trail[open], .trail[open] .trail-log li, .trail[open] .trail-clock span { animation: none; } }
.fc-node[data-node="record"] { cursor: pointer; }
img.avatar { object-fit: cover; }
img.avatar { object-fit: cover; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
.calc-in, .calc-out { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.calc-in { display: grid; gap: 26px; align-content: start; background: var(--paper-2); border-color: transparent; }
.calc-in label { display: grid; gap: 12px; }
.calc-in label > span { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.calc-in output { font: 500 15px/1 var(--mono); color: var(--ink); }
body.v2 .calc-in input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; padding: 0; margin: 9px 0; border: 0; border-radius: 2px; background: var(--line); box-shadow: none; outline: none; }
.calc-in input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; transition: transform .15s; }
.calc-in input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 4px solid var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; }
.calc-in input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.calc-in input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 30%, transparent); }
.calc-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.calc-head { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.calc-head [data-contracts] { color: #b4532a; }
.calc-lines { list-style: none; margin: 0; padding: 0; }
.calc-lines li { display: grid; grid-template-columns: 170px 1fr 56px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.cl-l { display: grid; line-height: 1.25; }
.cl-l small { font-size: 11px; color: var(--muted); }
.cl-bar { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.cl-bar i { display: block; height: 100%; border-radius: 4px; background: color-mix(in srgb, #b4532a 55%, var(--paper-2)); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.cl-v { font: 500 13px/1 var(--mono); text-align: right; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .calc-in, .calc-out { padding: 20px; }
  .calc-lines li { grid-template-columns: 1fr 52px; }
  .cl-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .cl-bar i { transition: none; } }
.fc-scroll { padding-bottom: 44px; }
.fc-open { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--paper-2); color: var(--ink-2); transition: background .2s, color .2s; }
.fc-node[data-node="record"]:hover .fc-open, .fc-node[data-node="record"].active .fc-open { background: var(--ok); color: #fff; }
.fc-node[data-node="record"].active .fc-open { animation: fc-nudge 1.2s ease-in-out infinite; }
@keyframes fc-nudge { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 20%, transparent); } }

/* Calculator summary: a receipt. Today, minus Noea, equals the saving. */
.calc-sum { margin: 0; padding: 18px 0 20px; }
.calc-sum > div { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
.calc-sum dt { font-size: 15px; color: var(--ink-2); }
.calc-sum dd { margin: 0; font: 500 22px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.calc-sum .cs-save { margin-top: 10px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.calc-sum .cs-save dt { font-size: 17px; font-weight: 500; color: var(--ink); }
.calc-sum .cs-save dd { font-size: 40px; letter-spacing: -.02em; color: var(--ok); }
.calc-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.calc-cta > span { font-size: 13px; color: var(--muted); }

/* Standards bar under the flow */
.standards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.standards li { display: grid; place-items: center; padding: 20px 10px; border-left: 1px solid var(--line); text-align: center; cursor: default; }
.standards li:first-child { border-left: 0; }
.standards svg { width: 76px; height: 76px; color: var(--ink); }
.standards .st { fill: currentColor; }
.standards .gl { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.standards text { font: 600 10.5px/1 var(--sans); fill: currentColor; text-anchor: middle; letter-spacing: .01em; }
@media (max-width: 900px) { .standards { grid-template-columns: repeat(3, 1fr); } .standards li:nth-child(4) { border-left: 0; } .standards li:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .standards { grid-template-columns: repeat(2, 1fr); } .standards li { border-left: 0; border-top: 1px solid var(--line); } .standards li:nth-child(even) { border-left: 1px solid var(--line); } .standards li:nth-child(-n+2) { border-top: 0; } }
.standards text.sm { font-size: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dk { display: inline-block; width: 15px; height: 11px; margin-left: 5px; vertical-align: -1px; border-radius: 1px; }
footer .reg { font-size: .6em; vertical-align: top; position: relative; top: .1em; margin-left: 1px; }
/* Simon's card: the whole card opens LinkedIn */
body.v2 .person-card:has(a.li) { position: relative; cursor: pointer; transition: background-color .2s ease; }
body.v2 .person-card a.li { position: absolute; inset: 0; border-radius: inherit; }
body.v2 .person-card:has(a.li):hover { background: var(--paper-2); }
body.v2 .person-card a.li:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
body.v2 .person-card a.li::after { content: "↗"; position: absolute; right: 20px; bottom: 16px; font-size: 16px; color: var(--ink-2); opacity: 0; transform: translate(-3px, 3px); transition: opacity .2s ease, transform .2s ease; }
body.v2 .person-card:has(a.li):hover a.li::after, body.v2 .person-card a.li:focus-visible::after { opacity: 1; transform: none; }

/* Motion: FAQ eases open, the audit trail leaves the way it came in */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.trail.closing { animation: trail-out .22s ease forwards; }
.trail.closing::backdrop { animation: trail-fade .22s ease forwards; }
@keyframes trail-out { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes trail-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } .trail.closing, .trail.closing::backdrop { animation: none; } }

/* Reliability → Safety Desk: a sticky stage, the camera move is in scene.js */
:root { --stage-h: min(780px, calc(100vh - 104px)); }
.flow-scene { position: relative; height: calc(var(--stage-h) + 120vh); }
.scene-stage { position: sticky; top: 88px; height: var(--stage-h); }
.scene-photo, .scene-shot { position: absolute; inset: 0; }
.scene-photo { opacity: 0; background: #2b2a26; }
.scene-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.scene-shot { clip-path: inset(0 100% 100% 0); }
.scene-shot iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 1000px; border: 0; transform-origin: 0 0; background: transparent; pointer-events: none; }
.scene-glow { position: absolute; opacity: 0; border-radius: 14px 14px 0 0; box-shadow: 0 30px 80px -24px rgba(0,0,0,.55); pointer-events: none; }
.desk-foot { display: flex; justify-content: flex-end; margin: 12px 0 0; font-size: 13px; }
.desk-foot a { color: var(--ink); text-decoration: none; }
.desk-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.flow-native { display: none; }
.desk-mobile { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--card); }
.desk-mobile strong { font-weight: 500; font-size: 16px; }
.desk-mobile span:not(.arrow) { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.desk-mobile .arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 18px; }
@media (max-width: 899px) {
  .flow-scene, .desk-foot { display: none; }
  .flow-native { display: block; }
}
@media (prefers-reduced-motion: reduce) { .flow-scene { height: var(--stage-h); } }

/* Alt: stacked step cards (Intake → Clock → Evidence → Sign-off → Desk) */
:root { --card-h: min(620px, calc(100vh - 190px)); --stack-top: 131px; } /* header 69 + 14 + tabs 34 + 14: the tab bar sits evenly between header and cards */
.stack-tabs { position: sticky; top: 83px; z-index: 6; display: flex; justify-content: center; gap: 4px; margin: 0 auto 14px; width: max-content; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.stack-tabs a { padding: 6px 12px; border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.stack-tabs a.on { color: var(--ink); background: var(--paper-2); }
.stack { display: grid; gap: 28px; }
.stack-card { position: sticky; top: var(--stack-top); height: var(--card-h); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); box-shadow: 0 24px 60px -36px rgba(0,0,0,.35); clip-path: inset(0 round 22px); transform-origin: 50% 0; will-change: transform; }
.stack-card.wide { grid-template-columns: minmax(0, .75fr) minmax(0, 2.25fr); }
.sc-text { align-self: center; padding: 40px; display: grid; gap: 14px; }
body.v2 .sc-text h3 { font: 400 clamp(26px, 2.4vw, 32px)/1.15 var(--sans); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.sc-text p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; max-width: 30em; }
.sc-link { color: var(--ink); font-size: 14px; text-decoration: none; } .sc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sc-media { position: relative; overflow: hidden; display: grid; place-items: center; padding: 32px; }
.sc-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.frag { position: relative; z-index: 1; width: min(440px, 100%); background: rgba(255,255,255,.96); border-radius: 16px; padding: 16px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.5); font-size: 13px; color: #161514; }
.frag .ok { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: #e3f0e8; color: #2f7a55; flex: none; }
.frag .ok svg { width: 9px; height: 9px; }
.frag-head { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 10px; font-weight: 500; }
.frag-pill { font: 400 11.5px/1 var(--mono); color: #7d7d77; background: #f4f4f2; padding: 5px 8px; border-radius: 999px; }

/* Intake: rows arrive, then resolve */
.ib-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid #ececea; }
.ib-ch { width: 26px; height: 26px; border-radius: 8px; background: #f4f4f2; display: grid; place-items: center; font-size: 13px; color: #4a4a46; }
.ib-who { display: grid; line-height: 1.25; min-width: 0; } .ib-who b { font-weight: 500; } .ib-who small { color: #7d7d77; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-st { position: relative; display: grid; justify-items: end; font-size: 11.5px; }
.ib-wait, .ib-res { grid-area: 1 / 1; white-space: nowrap; }
.ib-wait { display: inline-flex; align-items: center; gap: 6px; color: #7d7d77; }
.ib-wait i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #d9d9d4; border-top-color: #7d7d77; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.ib-res { padding: 3px 8px; border-radius: 999px; opacity: 0; }
.ib-res.r-ok { background: #e3f0e8; color: #2f7a55; } .ib-res.r-warn { background: #f6ead2; color: #a86a00; } .ib-res.r-plain { background: #f4f4f2; color: #4a4a46; }
.stack-card.on .ib-row { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 140ms + 150ms); }
.stack-card.on .ib-wait { animation: out .25s ease both; animation-delay: calc(var(--i) * 260ms + 1100ms); }
.stack-card.on .ib-res { animation: pop .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 260ms + 1150ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes out { to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* Clock: the days fill, the count lands */
.fc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fc-top b { font-weight: 500; font-size: 14px; }
.chip-serious { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: #f7e3d9; color: #d65a2a; }
.fc-count { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 14px; }
.fc-count b { font: 400 64px/1 var(--sans); letter-spacing: -.04em; color: #b4302a; }
.fc-count span { color: #7d7d77; }
.fc-segs { display: flex; gap: 3px; height: 12px; }
.fc-segs i { flex: 1; border-radius: 3px; background: #ececea; }
.stack-card.on .fc-segs i:nth-child(-n+13) { animation: seg .3s ease both; animation-delay: calc(var(--i) * 70ms + 300ms); }
@keyframes seg { to { background: #b4302a; } }
.fc-lab { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #4a4a46; }
.fc-lab span { display: grid; } .fc-lab small { color: #7d7d77; font-size: 11px; } .fc-lab .mid { text-align: center; } .fc-lab span:last-child { text-align: right; }
.stack-card.on .fc-count b { animation: pop .5s cubic-bezier(.2,.8,.2,1) both 1.3s; }

/* Evidence: quotes light up with their decision */
.fe-src { margin: 0 0 14px; line-height: 1.65; color: #4a4a46; font-size: 13.5px; }
.fe-src mark { background: transparent; color: inherit; border-radius: 3px; padding: 0 1px; transition: background-color .3s; }
.fe-dec { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fe-dec li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; background: #f4f4f2; opacity: .35; }
.fe-dec .sev { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: #f7e3d9; color: #d65a2a; font-size: 11px; font-weight: 600; }
.stack-card.on .fe-src .m1 { animation: hl .4s ease both .4s; } .stack-card.on .fe-dec .d1 { animation: lit .4s ease both .55s; }
.stack-card.on .fe-src .m2 { animation: hl .4s ease both 1.1s; } .stack-card.on .fe-dec .d2 { animation: lit .4s ease both 1.25s; }
.stack-card.on .fe-src .m3 { animation: hl .4s ease both 1.8s; } .stack-card.on .fe-dec .d3 { animation: lit .4s ease both 1.95s; }
.stack-card.on .fe-src .m4 { animation: hl .4s ease both 2.5s; } .stack-card.on .fe-dec .d4 { animation: lit .4s ease both 2.65s; }
@keyframes hl { to { background: #f5e6bd; } }
@keyframes lit { to { opacity: 1; } }

/* Sign-off: note, press, filed, acknowledged */
.fs-head { display: grid; gap: 2px; } .fs-head b { font-weight: 500; font-size: 14px; } .fs-head span { color: #7d7d77; font-size: 12px; }
.fs-note { margin: 12px 0; padding: 10px 12px; border: 1px solid #e6e6e2; border-radius: 10px; min-height: 58px; color: #4a4a46; line-height: 1.5; }
.fs-type { display: inline-block; clip-path: inset(0 100% 0 0); }
.stack-card.on .fs-type { animation: type 1.4s steps(40, end) both .3s; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
.fs-act { display: flex; align-items: center; justify-content: space-between; }
.fs-btn { padding: 8px 14px; border-radius: 999px; background: #161514; color: #fff; font-size: 12.5px; }
.stack-card.on .fs-btn { animation: press .35s ease both 1.9s; }
@keyframes press { 50% { transform: scale(.94); } to { background: #2f7a55; } }
.fs-by { font-size: 12px; color: #7d7d77; }
.fs-log { margin-top: 12px; display: grid; gap: 6px; }
.fs-log div { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; background: #f4f4f2; opacity: 0; }
.fs-log time { margin-left: auto; font: 400 11.5px/1 var(--mono); color: #7d7d77; }
.stack-card.on .fs-log .l1 { animation: arrive .45s ease both 2.2s; } .stack-card.on .fs-log .l2 { animation: arrive .45s ease both 2.8s; } .stack-card.on .fs-log .l3 { animation: arrive .45s ease both 3.4s; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Desk: the real product, bleeding off the card */
.stack-card.wide .sc-media { place-items: start; padding: 44px 0 0 44px; }
.sc-desk { position: relative; z-index: 1; width: 1280px; height: 1000px; transform-origin: 0 0; transform: scale(var(--ds, .6)); border-radius: 14px 0 0 0; overflow: hidden; box-shadow: 0 30px 80px -24px rgba(0,0,0,.55); background: #f4f4f2; }
.sc-desk iframe { width: 1280px; height: 1000px; border: 0; display: block; background: transparent; }

@media (max-width: 899px) {
  /* Phones: a deck you swipe through. The next card peeks in; neighbours sit back a touch. */
  .stack-tabs { position: static; width: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; margin: 0 0 12px; backdrop-filter: none; }
  .stack-tabs::-webkit-scrollbar { display: none; }
  .stack-tabs a { flex: none; }
  .stack { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 24px; position: relative; }
  .stack::-webkit-scrollbar { display: none; }
  /* Every card splits the same way: a fixed text band, then the photo */
  .stack-card, .stack-card.wide { flex: 0 0 86%; position: relative; top: 0; height: 600px; display: grid; grid-template-rows: 220px minmax(0, 1fr); grid-template-columns: 1fr; scroll-snap-align: center; scroll-snap-stop: always; transform-origin: 50% 50%; transition: transform .2s ease-out, opacity .2s ease-out; }
  .sc-text { align-self: start; padding: 22px 20px 14px; gap: 10px; overflow: hidden; }
  body.v2 .sc-text h3 { font-size: 24px; }
  .sc-text p { font-size: 14px; }
  .sc-media { min-height: 0; padding: 20px 14px; }
  .frag { font-size: 12.5px; padding: 14px; }
  .stack-card.wide .sc-media { place-items: start; padding: 22px 0 0 18px; overflow: hidden; }
  .stack-card.wide .sc-desk { position: absolute; left: 18px; top: 22px; }
  .stack-card.wide .sc-desk iframe { pointer-events: none; }
  .stack-card.wide .sc-media::after { content: "Tap to open ↗"; position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 12px; color: #161514; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-card *, .stack-card.on * { animation: none !important; }
  .ib-wait { display: none; } .ib-res, .fe-dec li, .fs-log div { opacity: 1; } .fs-type { clip-path: none; } .fc-segs i:nth-child(-n+13) { background: #b4302a; } .fe-src mark { background: #f5e6bd; }
}

.stack + .standards { margin-top: 28px; }
