/* VerifAIdentity website — shared styles. No inline styles anywhere: the CSP allows only this file. */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --night: #1B1335;
  --night-2: #251B45;
  --night-3: #30255A;
  --night-line: #3A2E64;
  --on-night: #EEEAFB;
  --on-night-2: #C9C0EE;
  --on-night-3: #A79FD3;
  --paper: #F6F5FB;
  --card: #FFFFFF;
  --ink: #1E1B2E;
  --muted: #5F5A78;
  --line: #DCD7EC;
  --wash: #EDE8FB;
  --violet: #8B45F0;
  --violet-hover: #7A33E6;
  --violet-deep: #4B2E83;
  --breach: #E0453A;
  --breach-soft: #FFB3AC;
  --late: #E39A12;
  --late-soft: #F7CD7E;
  --ok: #12A877;
  --ok-soft: #7FE0BE;
  --unknown: #8E86B5;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 38rem;
  --r-lg: 16px;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(74rem, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1.01; margin: 0 0 1.4rem; }
h2 { font-size: clamp(2rem, 3.7vw, 3rem); line-height: 1.06; margin: 0 0 1rem; max-width: 24ch; }
h3 { font-size: 1.12rem; line-height: 1.35; margin: 0 0 .4rem; font-weight: 650; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.lede { font-size: 1.22rem; line-height: 1.5; max-width: 34rem; }
.intro { color: var(--muted); font-size: 1.14rem; max-width: var(--measure); margin-bottom: 2.75rem; }
em.serif { font-family: var(--serif); font-style: italic; font-size: 1.08em; }

/* ---------- header ---------- */
.site-head { background: var(--night); color: var(--on-night); position: relative; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; }
.brand img { width: 172px; }
.menu { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.menu a { color: var(--on-night-2); text-decoration: none; font-weight: 550; font-size: .98rem; padding: .5rem .8rem; border-radius: 999px; }
.menu a:hover { color: #fff; background: var(--night-2); }
.menu a[aria-current="page"] { color: #fff; background: var(--night-3); }
.menu .cta a { background: var(--violet); color: #fff; margin-left: .5rem; padding: .55rem 1.1rem; }
.menu .cta a:hover { background: var(--violet-hover); }
.mobile-nav { display: none; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn { display: inline-block; text-decoration: none; font-weight: 650; padding: .9rem 1.4rem; border-radius: 999px; line-height: 1.2; border: 1px solid transparent; }
.btn.primary { background: var(--violet); color: #fff; }
.btn.primary:hover { background: var(--violet-hover); }
.btn.ghost { color: var(--on-night); border-color: #5B4C8F; }
.btn.ghost:hover { background: var(--night-2); }
.btn.line { color: var(--violet-deep); border-color: var(--line); background: var(--card); }
.btn.line:hover { border-color: var(--violet-deep); }

/* ---------- home hero ---------- */
.hero { background: var(--night); color: var(--on-night); padding: 3.5rem 0 6rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 30rem at 85% 10%, rgba(139,69,240,.20), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 4rem; align-items: center; }
.hero h1 { color: #fff; }
.hero .lede { color: var(--on-night-2); margin-bottom: 2.2rem; }
.hero .fine { color: var(--on-night-3); font-size: .9rem; margin-top: 1.6rem; }

/* ---------- the ledger: one person, every system ---------- */
.ledger { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 1.1rem 1.4rem 1.2rem; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); color: var(--on-night); }
.seg { display: flex; gap: .3rem; padding: .3rem; background: var(--night); border-radius: 999px; margin-bottom: 1.25rem; width: max-content; max-width: 100%; }
.seg label { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--on-night-3); padding: .42rem .9rem; border-radius: 999px; white-space: nowrap; }
.seg label:hover { color: #fff; }
#ex1:checked ~ .seg label[for="ex1"], #ex2:checked ~ .seg label[for="ex2"], #ex3:checked ~ .seg label[for="ex3"] { background: var(--night-3); color: #fff; }
#ex1:focus-visible ~ .seg label[for="ex1"], #ex2:focus-visible ~ .seg label[for="ex2"], #ex3:focus-visible ~ .seg label[for="ex3"] { outline: 3px solid var(--violet); outline-offset: 2px; }
.case { display: none; margin: 0; }
#ex1:checked ~ .cases .c1, #ex2:checked ~ .cases .c2, #ex3:checked ~ .cases .c3 { display: block; }
.case-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; }
.case-head strong { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; color: #fff; line-height: 1.1; }
.case-head span { font-size: .86rem; color: var(--on-night-3); text-align: right; }
.ledger table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.ledger th { text-align: left; font-weight: 500; color: var(--on-night-3); font-size: .82rem; padding: 0 0 .45rem; }
.ledger td { padding: .6rem 0; border-top: 1px solid var(--night-line); vertical-align: middle; }
.ledger td:first-child { color: #fff; font-weight: 600; width: 36%; padding-right: .75rem; }
.ledger td.st { display: flex; align-items: center; gap: .75rem; }
.state { display: inline-flex; align-items: center; gap: .55rem; }
.dot { width: .62rem; height: .62rem; border-radius: 50%; background: var(--unknown); flex: none; }
.dot.src { background: #fff; }
.dot.bad { background: var(--breach); }
.dot.ok { background: var(--ok); }
.dot.unk { background: transparent; border: 2px dashed var(--on-night-3); }
.flag { margin-left: auto; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.flag.bad { color: var(--breach-soft); }
.flag.ok { color: var(--ok-soft); }
.flag.unk { color: var(--on-night-2); }
.verdict { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--r); display: flex; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; flex-wrap: wrap; }
.verdict b { font-weight: 650; }
.verdict span { font-size: .9rem; }
.verdict.breach { background: #3A1D2E; border: 1px solid #6B2B33; }
.verdict.breach b { color: var(--breach-soft); } .verdict.breach span { color: #E8C9CC; }
.verdict.late { background: #3A2E1D; border: 1px solid #6E5420; }
.verdict.late b { color: var(--late-soft); } .verdict.late span { color: #EBDCBC; }
.verdict.unk { background: var(--night-3); border: 1px dashed #6A5FA0; }
.verdict.unk b { color: #fff; } .verdict.unk span { color: var(--on-night-2); }
.ledger .note { color: var(--on-night-3); font-size: .8rem; margin: .85rem 0 0; max-width: none; }

@media (prefers-reduced-motion: no-preference) {
  .c1 tbody tr { opacity: 0; animation: arrive .45s ease-out forwards; }
  .c1 tbody tr:nth-child(1) { animation-delay: .2s; }
  .c1 tbody tr:nth-child(2) { animation-delay: .38s; }
  .c1 tbody tr:nth-child(3) { animation-delay: .56s; }
  .c1 tbody tr:nth-child(4) { animation-delay: .74s; }
  .c1 tbody tr:nth-child(5) { animation-delay: .92s; }
  .c1 .flag.bad { animation: reveal .35s ease-out 1.45s both; }
  .c1 .dot.bad { animation: turn .35s ease-out 1.45s both; }
  .c1 .verdict { opacity: 0; animation: arrive .5s ease-out 1.9s forwards; }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes reveal { from { opacity: 0; } to { opacity: 1; } }
  @keyframes turn { from { background-color: var(--unknown); } }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--night); color: var(--on-night); padding: 3.5rem 0 4.5rem; }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); max-width: 18ch; }
.page-hero .lede { color: var(--on-night-2); max-width: 40rem; }
.crumb { color: var(--on-night-3); font-size: .95rem; margin: 0 0 1.2rem; }

/* ---------- sections ---------- */
main section { padding: 6rem 0; }
main section + section { border-top: 1px solid var(--line); }
section.tint { background: var(--card); }
section.dark { background: var(--night); color: var(--on-night); border-top: 0; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark .intro, section.dark p { color: var(--on-night-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.center { align-items: center; }
.sticky { position: sticky; top: 2rem; }

/* problem statement: three systems, three answers */
.answers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 3rem; }
.answers div { padding: 1.6rem 1.6rem 1.6rem 0; }
.answers div + div { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.answers .sys { font-weight: 650; margin: 0 0 .3rem; }
.answers .says { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; margin: 0; }
.answers .says.bad { color: var(--breach); }

/* three things it checks */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.checks > div { border-top: 3px solid var(--violet-deep); padding-top: 1.2rem; }
.checks p { color: var(--muted); }
.lab { color: var(--ink); font-size: .95rem; background: var(--wash); padding: .75rem .9rem; border-radius: var(--r); margin: 0; }
.lab b { font-weight: 650; }
.more { display: inline-block; margin-top: 1rem; font-weight: 650; }

/* clock states */
.states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.states li { padding: 1.3rem 1.4rem 1.3rem 0; border-bottom: 1px solid var(--line); }
.states li:nth-child(3n+2), .states li:nth-child(3n+3) { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.states .name { display: flex; align-items: center; gap: .55rem; font-weight: 650; margin-bottom: .3rem; }
.states p { margin: 0; color: var(--muted); font-size: .97rem; }
.chip { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.chip.breached { background: var(--breach); }
.chip.unverifiable { border: 2px dashed var(--unknown); }
.chip.running { background: var(--violet); }
.chip.late { background: var(--late); }
.chip.met { background: var(--ok); }
.chip.retired { background: var(--line); }

/* clock detail panel (light) */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.6rem; box-shadow: 0 30px 60px -40px rgba(27,19,53,.35); }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: 1rem; }
.panel-head strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 650; padding: .25rem .7rem; border-radius: 999px; }
.badge.breached { background: #FCE7E5; color: #A72C23; }
.badge.late { background: #FCF0D9; color: #8A5A05; }
.badge.unk { background: var(--wash); color: var(--violet-deep); }
.kv { display: grid; grid-template-columns: 9.5rem 1fr; gap: .35rem 1rem; font-size: .95rem; margin: 0 0 1.1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.grid-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.grid-table th { text-align: left; color: var(--muted); font-weight: 550; font-size: .83rem; padding: 0 .75rem .5rem 0; border-bottom: 1px solid var(--line); }
.grid-table td { overflow-wrap: anywhere; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid-table tr:last-child td { border-bottom: 0; }
.obs-bad { color: #A72C23; font-weight: 650; }
.obs-ok { color: #0B7A56; font-weight: 650; }
.fp { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; max-width: none; overflow-wrap: anywhere; }

/* ask answers */
.answer { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; margin: 0 0 1rem; }
.answer .q { font-weight: 650; margin: 0 0 .4rem; }
.answer .a { margin: 0 0 .5rem; }
.answer .basis { font-size: .87rem; color: var(--muted); margin: 0; }
.answer .basis b { color: var(--ok); font-weight: 650; }
.answer.refuse .basis b { color: var(--muted); }

/* product shot */
.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(27,19,53,.5); }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: .75rem; }

/* pipeline (a real sequence, so numbered) */
.pipeline { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
.pipeline li { counter-increment: s; position: relative; padding-top: 3.3rem; }
.pipeline li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 650; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; top: 1.15rem; left: 2.9rem; right: -.9rem; height: 2px; background: var(--line); }
.pipeline p { margin: 0; color: var(--muted); font-size: .98rem; }
section.dark .pipeline li::before { background: var(--violet); }
section.dark .pipeline li:not(:last-child)::after { background: var(--night-line); }

/* definition lists (trust) */
.deflist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; }
.deflist dl { margin: 0; }
.deflist dt { font-weight: 650; margin-top: 1.6rem; }
.deflist dd { margin: .3rem 0 0; color: var(--muted); max-width: 32rem; }
.deflist + .actions { margin-top: 2.5rem; }
section.dark .deflist dd { color: var(--on-night-2); }

/* data table */
.scroll > .data { min-width: 34rem; }
.data { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.data th { text-align: left; font-weight: 650; padding: .85rem 1rem; background: var(--wash); border-bottom: 1px solid var(--line); }
.data td { overflow-wrap: break-word; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data tr:last-child td { border-bottom: 0; }
.data td:first-child { font-weight: 600; width: 28%; }
.yes { color: #0B7A56; font-weight: 650; }
.no { color: #A72C23; font-weight: 650; }

/* integrations */
.logos { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.logos li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .95rem; }
.logos li.next { color: var(--muted); border-style: dashed; background: transparent; }

/* pilot */
.measures { width: 100%; border-collapse: collapse; font-size: .98rem; }
.measures th { text-align: left; color: var(--on-night-3); font-weight: 500; padding: 0 1rem .55rem 0; font-size: .86rem; }
.measures td { padding: .7rem 1rem .7rem 0; border-top: 1px solid var(--night-line); vertical-align: top; }
.measures td:first-child { color: #fff; font-weight: 650; white-space: nowrap; }
section:not(.dark) .measures th { color: var(--muted); }
section:not(.dark) .measures td { border-top-color: var(--line); }
section:not(.dark) .measures td:first-child { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin: .55rem 0; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .55rem; width: .8rem; height: .45rem; border-left: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(-45deg); }
.status { margin-top: 2.8rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--violet); background: var(--night-2); border-radius: 0 var(--r) var(--r) 0; color: var(--on-night-2); max-width: 48rem; }
.status.light { background: var(--wash); color: var(--ink); }
.timeline { list-style: none; padding: 0; margin: 0 0 0 1.05rem; counter-reset: t; border-left: 2px solid var(--line); }
.timeline li { counter-increment: t; position: relative; padding: 0 0 2rem 2.2rem; }
.timeline li::before { content: counter(t); position: absolute; left: -1.05rem; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--violet-deep); color: #fff; display: grid; place-items: center; font-size: .9rem; font-weight: 650; }
.timeline .when { color: var(--muted); font-size: .92rem; margin: 0 0 .2rem; }
.timeline p { margin: 0; color: var(--muted); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--violet-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

/* contact */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.contact-list h3 { margin: 0; }
.contact-list p { margin: 0 0 .5rem; color: var(--muted); }

/* prose pages */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.9rem; margin-top: 2.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }

/* closing call to action */
.closing { background: var(--night); color: var(--on-night); padding: 5rem 0; }
.closing h2 { color: #fff; max-width: 28ch; }
.closing p { color: var(--on-night-2); }
.closing .row { display: flex; justify-content: space-between; align-items: end; gap: 2.5rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { background: var(--night); color: var(--on-night-3); padding: 3.5rem 0 2.5rem; border-top: 1px solid #2E2552; font-size: .94rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.foot img { width: 150px; margin-bottom: 1rem; }
.foot h2 { font-family: var(--sans); font-size: .95rem; font-weight: 650; color: #fff; margin: 0 0 .7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: .35rem 0; }
.foot a { color: var(--on-night-2); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot p { margin: 0 0 .5rem; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid #2E2552; margin-top: 2.5rem; padding-top: 1.5rem; }
.legal p { margin: 0; max-width: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .menu a { padding: .5rem .6rem; }
}
@media (max-width: 960px) {
  .menu { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { list-style: none; cursor: pointer; color: var(--on-night); font-weight: 650; padding: .5rem 1rem; border: 1px solid #5B4C8F; border-radius: 999px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav ul { position: absolute; right: 0; top: calc(100% + .6rem); background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r); list-style: none; margin: 0; padding: .5rem; min-width: 14rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
  .mobile-nav a { display: block; color: var(--on-night); text-decoration: none; padding: .7rem .9rem; border-radius: 8px; font-weight: 550; }
  .mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--night-3); }
  .hero-grid, .split, .split.even, .deflist { grid-template-columns: minmax(0, 1fr); gap: 2.8rem; }
  .sticky { position: static; }
  .checks, .answers { grid-template-columns: 1fr; }
  .answers div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .states { grid-template-columns: 1fr 1fr; }
  .states li, .states li:nth-child(3n+2), .states li:nth-child(3n+3) { padding: 1.2rem 1rem 1.2rem 0; border-left: 0; }
  .states li:nth-child(2n) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .pipeline { grid-template-columns: 1fr; gap: 1.6rem; }
  .pipeline li { padding: 0 0 0 3.4rem; min-height: 2.3rem; }
  .pipeline li:not(:last-child)::after { top: 2.75rem; bottom: -1.3rem; left: 1.1rem; right: auto; width: 2px; height: auto; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .contact-list li { grid-template-columns: 1fr; }
  main section { padding: 4.5rem 0; }
  .hero { padding: 2.5rem 0 4.5rem; }
}
@media (max-width: 560px) {
  .wrap { width: min(74rem, 100% - 2.2rem); }
  .ledger { padding: 1rem .95rem 1.1rem; }
  .seg { width: 100%; }
  .seg label { flex: 1; text-align: center; padding: .45rem .3rem; font-size: .82rem; }
  .ledger table { font-size: .9rem; }
  .flag { display: none; }
  .case-head span { display: none; }
  .states { grid-template-columns: 1fr; }
  .states li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: .5rem; }
  .measures td:first-child { white-space: normal; }
  .data td:first-child { width: auto; }
  .grid-table { font-size: .86rem; }
}
@media print {
  .site-head, footer, .closing, .mobile-nav { display: none; }
  body { background: #fff; }
}

/* ---------- v3: platform, walkthrough, matrices, comparison ---------- */
.tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 650; padding: .2rem .65rem; border-radius: 999px; white-space: nowrap; }
.tag.built { background: #DDF5EC; color: #0B6B4C; }
.tag.dev { background: #FCF0D9; color: #7A4F04; }
.tag.planned { background: var(--wash); color: var(--violet-deep); }
.tag.design { background: #E6ECF7; color: #2C4A7A; }
.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pillars > li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.7fr); gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.pillars .n { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--violet-deep); }
.pillars h3 { margin: 0 0 .3rem; }
.pillars p { margin: 0 0 .5rem; color: var(--muted); }
.pillars .today { color: var(--ink); font-size: .95rem; }
.pillars .today b { font-weight: 650; }
.legend-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 0 0 2rem; color: var(--muted); font-size: .95rem; align-items: center; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 58rem; border-collapse: collapse; font-size: .93rem; background: var(--card); border: 1px solid var(--line); }
.matrix th { text-align: left; font-weight: 650; padding: .8rem .9rem; background: var(--wash); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.matrix td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.matrix td:first-child { font-weight: 650; }
.matrix code, .data code, .kv code, p code, li code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; background: var(--wash); padding: .05rem .3rem; border-radius: 4px; }
.matrix .yes, .matrix .no, .matrix .part { font-weight: 650; }
.part { color: #7A4F04; font-weight: 650; }
.walk { list-style: none; margin: 0; padding: 0; counter-reset: w; }
.walk > li { counter-increment: w; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1.5rem; padding: 2.6rem 0; border-top: 1px solid var(--line); }
.walk > li::before { content: counter(w); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--violet); }
.walk h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .6rem; }
.walk .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: start; }
.walk .body > div:first-child p { color: var(--muted); }
pre.code { background: var(--night); color: #E6E1FA; padding: 1rem 1.2rem; border-radius: var(--r); overflow-x: auto; font-size: .82rem; line-height: 1.55; margin: 0; white-space: pre; }
pre.code .k { color: #C9A8FF; }
.graph-fig { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; }
.graph-fig svg { width: 100%; height: auto; }
.graph-fig figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.g-node rect { stroke-width: 1.5; }
.g-person rect { fill: #EDE8FB; stroke: #4B2E83; }
.g-acct rect { fill: #FFFFFF; stroke: #8B45F0; }
.g-work rect { fill: #E6F4F1; stroke: #0E8A6A; }
.g-agent rect { fill: #FFF3DC; stroke: #B7791F; stroke-dasharray: 5 4; }
.g-cred rect { fill: #F2F1F7; stroke: #8E86B5; }
.g-role rect { fill: #F2F1F7; stroke: #5F5A78; }
.g-node text { font-family: var(--sans); font-size: 13px; fill: #1E1B2E; }
.g-node text.s { font-size: 11px; fill: #5F5A78; }
.g-edge { stroke: #A79FD3; stroke-width: 1.5; fill: none; }
.g-edge.dash { stroke-dasharray: 4 4; }
.g-label { font-family: var(--sans); font-size: 11px; fill: #5F5A78; }
.flow-fig svg text { font-family: var(--sans); font-size: 13px; fill: #1E1B2E; }
.flow-fig .box { fill: #FFFFFF; stroke: #DCD7EC; stroke-width: 1.5; }
.flow-fig .box.cust { fill: #F6F5FB; }
.flow-fig .box.ours { fill: #EDE8FB; stroke: #8B45F0; }
.flow-fig .zone { fill: none; stroke: #A79FD3; stroke-dasharray: 6 5; }
.flow-fig .arrow { stroke: #4B2E83; stroke-width: 1.6; fill: none; }
.flow-fig .zl { font-size: 12px; fill: #5F5A78; }
.compare th.us, .compare td.us { background: #F4F0FE; }
.cmp-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; }
.cmp-notes dl { margin: 0; }
.cmp-notes dt { font-weight: 650; margin-top: 1.5rem; }
.cmp-notes dd { margin: .3rem 0 0; color: var(--muted); }
.sources { font-size: .88rem; color: var(--muted); }
.sources li { margin: .25rem 0; }
.method { border-top: 3px solid var(--violet-deep); padding-top: 1.1rem; }
.method h3 code { font-size: .8em; }
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 3.5rem; }
.methods p, .methods li { color: var(--muted); }
.formula { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin: .4rem 0 1rem; }
@media (max-width: 960px) {
  .pillars > li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .pillars > li > :nth-child(3) { grid-column: 2; }
  .walk > li { grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; }
  .walk .body, .cmp-notes, .methods { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
.ledger .note a { color: var(--on-night-2); }
.ledger .note a:hover { color: #fff; }
.ticks.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin-top: 2rem; }
.graph-fig + .ticks { margin-top: 2rem; }
@media (max-width: 960px) { .ticks.two-col { grid-template-columns: minmax(0, 1fr); } }
.compare td:first-child { min-width: 8.5rem; }
.flow-fig { max-width: 62rem; }
@media (max-width: 560px) { .graph-fig { overflow-x: auto; } .graph-fig svg { min-width: 680px; } }
