/* eProtons website · Direction B (Schematic) · Chivo and Chivo Mono, Signal blue, grid paper */
@font-face { font-family: "Chivo"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/chivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Chivo"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/chivo-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/chivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chivo"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/chivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Chivo Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/chivo-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Chivo Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/chivo-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0f1720; --sub: #4a5361; --body: #2b3440; --line: #cdd2ca; --line-soft: #e3e6df; --field: #767f8c;
  --paper: #f3f4f1; --panel: #ffffff; --blue: #1f4bff; --blue-deep: #1232b8; --blue-light: #7a95ff; --tint: #eef1ff;
  --on-dark: #d5dae3; --on-dark-accent: #a9bbff; --pass: #0f7a4b; --alert: #b4260b; --warn-bg: #fff3c4;
  --mono: "Chivo Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { font: 17px/1.6 "Chivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--ink); background-color: var(--paper);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 32px 32px;
  scroll-padding-top: 24px; }
body { margin: 0; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible, .dark-panel :focus-visible { outline-color: #fff; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
ul, ol { padding: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--tint); border-radius: 3px; padding: 1px 5px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 60; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus { outline: none; }

/* Layout */
.wrap { max-width: 1440px; margin: 0 auto; padding-left: 56px; padding-right: 56px; }
.wrap-narrow { max-width: 1040px; }
.sec { padding-top: 88px; padding-bottom: 88px; }
.sec-b { padding-bottom: 88px; }
.sec-t { padding-top: 56px; }
.pad { padding: 40px 44px; }
.pad-sm { padding: 22px 22px; }
.split { display: flex; flex-wrap: wrap; gap: 24px 72px; }
.split > * { min-width: 0; }
.split-end { align-items: flex-end; }
.split-center { align-items: center; }
.split-between { justify-content: space-between; }
.f1 { flex: 1 1 320px; } .f14 { flex: 1.4 1 480px; } .f16 { flex: 1.6 1 480px; } .f2 { flex: 2 1 560px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.grid-460 { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.mb-28 { margin-bottom: 28px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-auto { margin-top: auto; }

/* Surfaces */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-ink { background: var(--panel); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.panel-blue { background: var(--tint); border: 1.5px solid var(--blue); border-radius: var(--radius); }
.dark { background: var(--ink); color: #fff; }
.dark p, .dark li { color: var(--on-dark); }
.dark a:not(.btn) { color: var(--on-dark-accent); }
.dark-panel { background: var(--ink); color: #fff; border-radius: var(--radius); }
.dark-panel p { color: var(--on-dark); }
.card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }

/* Type */
.mono { font-family: var(--mono); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.dark .kicker, .dark-panel .kicker { color: var(--on-dark-accent); }
.num { font-family: var(--mono); font-size: 12px; color: var(--blue); font-weight: 400; }
.dark .num, .dark-panel .num { color: var(--on-dark-accent); }
.h-hero { font-size: clamp(46px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.04em; }
.h-xl { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -0.025em; }
.h-md { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; }
.h-sm { font-size: 24px; line-height: 1.2; }
.h-xs { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.h-xxs { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--body); }
.body-lg { font-size: 17px; line-height: 1.65; color: var(--body); }
.body { font-size: 16px; color: var(--body); }
.small { font-size: 14px; color: var(--sub); line-height: 1.55; }
.accent { color: var(--blue); }
.max-760 { max-width: 760px; } .max-900 { max-width: 900px; }
.prose { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.prose > h2 { margin-top: 18px; }
.prose > h3 { margin-top: 8px; }
.brandline { border-left: 3px solid var(--blue); padding-left: 18px; font-size: 18px; font-weight: 500; line-height: 1.55; }
.brandline-sm { font-weight: 600; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: var(--radius);
  font: 600 16px/1.25 "Chivo", sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-secondary { background: var(--panel); color: var(--ink); border-color: var(--ink); font-weight: 500; }
.btn-secondary:hover { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 500; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; font-weight: 500; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-quiet { background: var(--panel); color: var(--body); border-color: var(--line); font-weight: 500; }
.btn-quiet:hover { color: var(--ink); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--sub); cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.act { display: inline-block; padding: 10px 0; font-weight: 600; color: var(--blue); text-decoration: none; line-height: 1.4; }
.act:hover { text-decoration: underline; color: var(--blue-deep); }
.act::after { content: ""; display: inline-block; vertical-align: -2px; margin-left: 8px; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11m-4-4 4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11m-4-4 4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.dark .act, .dark-panel .act { color: var(--on-dark-accent); }
.label { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 3px; padding: 3px 7px; border: 1px solid var(--ink); color: var(--ink); line-height: 1.4; }
.label-filled { background: var(--blue); border-color: var(--blue); color: #fff; }
.cardlink { color: var(--ink); text-decoration: none; }
.cardlink:hover { text-decoration: underline; color: var(--blue-deep); }
.cardlink::after { content: ""; position: absolute; inset: 0; }
.evcard, .linkcard { position: relative; }
.evcard a:not(.cardlink), .linkcard a:not(.cardlink) { position: relative; z-index: 1; }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.site-header .bar { display: flex; align-items: center; gap: 14px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: 12px 24px; flex: 1 1 auto; justify-content: flex-end; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; }
.nav-list > li > a, .svc-toggle { color: var(--body); text-decoration: none; font: 400 16px "Chivo", sans-serif; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; }
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"], .svc-toggle:hover, .svc-toggle[data-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.svc-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.has-menu { position: relative; }
.svc-menu { display: none; position: absolute; top: calc(100% + 10px); left: -24px; width: 560px; background: var(--panel); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 14px; box-shadow: 0 18px 40px rgba(15,23,32,.12); }
.svc-menu.open { display: block; }
.svc-menu ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
.svc-menu ul a { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.svc-menu ul a:hover, .svc-menu ul a[aria-current="page"] { background: var(--paper); }
.svc-name { font-weight: 600; font-size: 16px; }
.svc-desc { font-size: 14px; color: var(--sub); line-height: 1.45; }
.svc-menu > .act { margin-left: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; margin-left: auto; }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 56px; }
.site-footer .brandcol { flex: 1.4 1 280px; max-width: 380px; }
.site-footer nav { flex: 1 1 160px; }
.site-footer h2 { font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sub); margin-bottom: 10px; }
.site-footer nav ul { list-style: none; }
.site-footer nav a { display: flex; align-items: center; min-height: 36px; color: var(--body); text-decoration: none; font-size: 16px; }
.site-footer nav a:hover { text-decoration: underline; color: var(--ink); }
.site-footer .base { margin-top: 40px; padding: 20px 0 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--sub); }
.cookie-line a { color: var(--sub); }

/* Cards and lists */
.rows { list-style: none; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 24px; }
.steps > li { min-width: 0; border-top: 3px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.steps > li:first-child { border-top-color: var(--blue); }
.receive { margin-top: 4px; font-size: 15px; color: var(--body); display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--blue); padding-left: 10px; }
.evcard { overflow: hidden; display: flex; flex-direction: column; }
.evcard .in { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.ev-media { height: 128px; display: flex; align-items: center; justify-content: center; background: var(--paper); border-bottom: 1px solid var(--line); }
.ev-media.blue { background: var(--tint); }
.chal { padding: 24px 26px; display: flex; gap: 16px; }
.build { border-top: 1px dashed var(--line); padding-top: 12px; }
.bullets { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; color: var(--body); }
.olist { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; color: var(--body); }
.static-mark { flex: 1 1 280px; max-width: 380px; margin: 0 auto; }
.lab-band { overflow: hidden; }
.lab-figure { max-width: 360px; }
.case-q { font-weight: 600; color: var(--ink); }

/* Page heads */
.pagehead { padding-top: 72px; padding-bottom: 56px; }
.pagehead h1 { margin-bottom: 18px; }
.pagehead .lead { max-width: 820px; }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--sub); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--sub); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 15px; color: var(--sub); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); text-decoration: none; font-size: 15px; }
.jump a:hover { border-color: var(--ink); }

/* Service pages */
.svc-sec { padding-top: 64px; padding-bottom: 8px; }
.svc-sec + .svc-sec { border-top: 1px solid var(--line); margin-top: 56px; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 24px 64px; }
.sec-grid > .sec-title { position: sticky; top: 24px; align-self: start; }
.engagements { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 16px; }
.engagement { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.engagement:target { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.engagement dl { display: flex; flex-direction: column; gap: 12px; }
.engagement dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); font-weight: 500; }
.engagement dd { font-size: 16px; color: var(--body); line-height: 1.6; margin-top: 2px; }
.stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; counter-reset: st; }
.stage-grid > div { border-top: 3px solid var(--blue); padding-top: 14px; }
.safeguards { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 22px 24px; background: var(--panel); }
.example { border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--panel); }
.example > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 16px 52px 16px 20px; position: relative; min-height: 44px; }
.example > summary::-webkit-details-marker { display: none; }
.example > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--mono); color: var(--blue); }
.example[open] > summary::after { content: "\2212"; }
.ex-title { font-weight: 600; font-size: 18px; line-height: 1.35; }
.ex-body { padding: 0 20px 20px; }
.ex-body p { font-size: 16px; line-height: 1.65; color: var(--body); }
.example-box { border-left: 3px solid var(--blue); background: var(--panel); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-left-width: 3px; border-left-color: var(--blue); }

/* Responsive tables (render as cards on narrow screens, keeping row labels) */
.rtable table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.rtable th, .rtable td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); line-height: 1.55; }
.rtable thead th { font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); border-bottom: 1px solid var(--line); background: var(--paper); }
.rtable tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.rtable tr:last-child > * { border-bottom: 0; }

/* Brief diagrams */
.diagram { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.flow { list-style: none; display: flex; align-items: stretch; gap: 0; }
.flow > li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.flow > li + li::before { content: ""; flex: 0 0 26px; height: 2px; background: var(--ink); position: relative; margin: 0 2px; }
.flow > li + li::after { content: ""; position: absolute; }
.node { flex: 1 1 auto; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--panel); padding: 12px 12px; font-size: 14px; line-height: 1.35; font-weight: 600; text-align: center; min-height: 64px; display: flex; align-items: center; justify-content: center; position: relative; }
.node small { display: block; font-weight: 400; color: var(--sub); font-size: 12px; margin-top: 2px; }
.node.key { background: var(--blue); border-color: var(--blue); color: #fff; }
.node.key small { color: #dfe5ff; }
.node.out small { color: #c9cfd9; }
.node.soft { border-style: dashed; }
.node.out { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow > li + li .node::before { content: ""; position: absolute; left: -9px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left: 8px solid var(--ink); border-right: 0; }
.lane { display: flex; flex-direction: column; gap: 8px; }
.lane-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); }
.branch { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.connector { margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--blue-deep); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.connector::before { content: ""; width: 28px; height: 0; border-top: 2px dashed var(--blue); }
.diagram figcaption { font-size: 14px; color: var(--sub); font-style: italic; }
.dgm-grid { display: grid; gap: 14px; }

/* Brief pages */
.brief-head .labels { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.brief-body { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 32px 64px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 12px; color: var(--sub); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.brief-sec { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.brief-sec + .brief-sec { margin-top: 44px; }
.components { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.components > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.components dt { font-weight: 600; margin-bottom: 4px; }
.components dd { color: var(--body); font-size: 16px; }
.impl { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.impl li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 60px; position: relative; font-size: 16px; line-height: 1.6; color: var(--body); }
.impl li::before { content: "0" counter(s); position: absolute; left: 20px; top: 16px; font-family: var(--mono); font-size: 13px; color: var(--blue); }
.callout { background: var(--tint); border: 1.5px solid var(--blue); border-radius: var(--radius); padding: 20px 22px; }

/* Our Work */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); font: 400 15px "Chivo", sans-serif; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.solution { padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.solution dl { display: flex; flex-direction: column; gap: 10px; }
.solution dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); }
.solution dd { font-size: 16px; color: var(--body); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--sub); }
.inline-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }

/* FAQ and policies */
.faq { display: flex; flex-direction: column; }
.faq > div { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 48px; }
.policy h2 { font-size: 24px; margin-top: 22px; }
.effective { font-family: var(--mono); font-size: 13px; color: var(--sub); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.form input, .form select, .form textarea { min-height: 48px; padding: 10px 12px; border: 1px solid var(--field); border-radius: var(--radius); font: 400 16px "Chivo", sans-serif; color: var(--ink); background: var(--panel); width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form [aria-invalid="true"] { border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert); }
.form .opt { font-weight: 400; color: var(--sub); }
.field-msg { font-size: 14px; font-weight: 500; color: var(--alert); min-height: 0; }
.field-msg:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; font-weight: 400 !important; flex-direction: row !important; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.status { font-size: 15px; font-weight: 500; }
.status:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Guided experience ---------- */
#guided { display: none; }
#g-result:focus { outline: none; }
html[data-mode="guided"] #guided { display: block; }
html[data-mode="guided"] #standard { display: none; }
.guided { display: flex; flex-wrap: wrap; align-items: stretch; max-width: 1440px; margin: 0 auto; }
.console { flex: 1 1 360px; max-width: 460px; min-width: 0; background: var(--panel); border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 28px 30px 40px; display: flex; flex-direction: column; gap: 20px; }
.console-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.stage { flex: 2 1 600px; min-width: 0; padding: 48px 56px 72px; display: flex; flex-direction: column; gap: 24px; }
.choices { list-style: none; border-top: 1px solid var(--line); }
.choice { display: flex; gap: 12px; align-items: baseline; width: 100%; min-height: 46px; padding: 11px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font: 400 16px/1.4 "Chivo", sans-serif; cursor: pointer; }
.choice:hover, .choice[aria-pressed="true"], .choice[aria-expanded="true"] { background: var(--paper); }
.choice[aria-pressed="true"] { font-weight: 600; }
.choice .num { flex: none; width: 14px; }
.field { display: flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.field input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 400 17px "Chivo", sans-serif; }
.field input:focus { outline: none; }
.field:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.field button { width: 54px; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
#g-free .field-msg { color: var(--body); }
#g-free [aria-invalid="true"] ~ * { }
.bubble { align-self: flex-end; max-width: 86%; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 10px 14px; font-size: 16px; line-height: 1.45; }
.notice { border-left: 3px solid var(--blue); background: var(--tint); padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); font: 400 15px "Chivo", sans-serif; cursor: pointer; text-align: left; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.labprompt { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hero-guided { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.hero-guided h1 { flex: 1.3 1 420px; min-width: 0; font-size: clamp(52px, 6.2vw, 96px); line-height: 0.96; letter-spacing: -0.035em; }
.proton-fig { flex: 0 1 340px; position: relative; aspect-ratio: 1; width: 100%; max-width: 340px; }
.proton-fig .pb { position: absolute; inset: 0; width: 100%; height: 100%; }
.proton-3d { position: absolute; inset: -6%; display: none; }
.proton-3d canvas { width: 100% !important; height: 100% !important; display: block; }
html.webgl-proton .proton-fig .pb:not(.static) { visibility: hidden; }
html.webgl-proton .proton-3d { display: block; }
.proton-fig.is-mini { width: 96px; max-width: 96px; flex: none; }
.result-bar { gap: 12px 20px; }
.result-proton { flex: 0 0 auto; }
.result-proton:empty { display: none; }
.h1-compact { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; flex: 1 1 auto; }
.part { padding: 32px 40px; }
.part h3 { font-size: 26px; margin-bottom: 12px; }
.part-num { display: block; margin-bottom: 14px; }
.part h3 .num, .part-head .num, .next h3 .num { margin-right: 14px; vertical-align: middle; }
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); border-top: 1px solid var(--line); }
.caps > article { padding: 26px 30px 30px; border-right: 1px solid var(--line); }
.caps > article:last-child { border-right: 0; }
.techbox { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.evidence { position: relative; }
.evidence .corner { position: absolute; width: 28px; height: 28px; border: 0 solid var(--blue); }
.evidence .tl { top: -8px; left: -8px; border-top-width: 3px; border-left-width: 3px; }
.evidence .tr { top: -8px; right: -8px; border-top-width: 3px; border-right-width: 3px; }
.evidence .bl { bottom: -8px; left: -8px; border-bottom-width: 3px; border-left-width: 3px; }
.evidence .br { bottom: -8px; right: -8px; border-bottom-width: 3px; border-right-width: 3px; }
.next { padding: 40px 44px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; }
.next .btn { width: 100%; }
.reveal { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Proton character (2D fallback) */
.pb { display: block; width: 100%; height: auto; overflow: visible; }
.pb .orb { transform-origin: 200px 200px; animation: pSpin 60s linear infinite; }
.pb .look { transition: transform .5s ease; }
.pb .eyes { transform-box: fill-box; transform-origin: center; animation: pBlink 4.5s ease-in-out infinite; }
.pb .bracket { opacity: 0; transition: opacity .4s ease; }
.st-listening .pb .look { transform: translate(-22px, 12px); }
.st-thinking .pb .orb { animation-duration: 4s; }
.st-thinking .pb .eyes { animation: none; transform: scaleY(.18); }
.st-responding .pb .look { transform: translate(20px, 6px); }
.st-responding .pb .bracket { opacity: 1; }
@keyframes pSpin { to { transform: rotate(360deg); } }
@keyframes pBlink { 0%, 86%, 100% { transform: scaleY(1); } 90% { transform: scaleY(.08); } 94% { transform: scaleY(1); } }

/* ---------- Engineering Lab ---------- */
.lab-sec { scroll-margin-top: 16px; }
.case { display: flex; flex-direction: column; gap: 16px; }
.case-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.case-bar button { min-height: 52px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); font: 500 15px/1.35 "Chivo", sans-serif; cursor: pointer; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 1 1 240px; }
.case-bar button .num { font-size: 11px; }
.case-bar button[aria-pressed="true"] { border: 1.5px solid var(--ink); box-shadow: inset 0 -3px 0 var(--blue); }
.case-bar button .done { font-family: var(--mono); font-size: 11px; color: var(--pass); }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; }
.dash > div { padding: 24px 28px; }
.dash > div + div { border-left: 1px solid var(--line); }
.metric { font-size: clamp(56px, 7vw, 92px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; margin: 8px 0 4px; }
.verdict { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.15; margin: 8px 0 6px; }
.verdict.ok { color: var(--pass); }
.verdict.short, .verdict.review { color: var(--alert); }
.guess { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 20px 24px; }
.bridge { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bridge > div { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; background: var(--panel); }
.bridge > div + div { border-left: 1px solid var(--line); }
.bridge strong { font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.bridge span { font-size: 14px; color: var(--sub); }
.bridge > div:last-child { background: var(--tint); }
.switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.switches label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; font-weight: 600; font-size: 15px; }
.switches input { width: 20px; height: 20px; accent-color: var(--blue); margin-top: 1px; flex: none; }
.switches small { display: block; font-weight: 400; color: var(--sub); font-size: 14px; margin-top: 2px; }
.ledger { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.ledger th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ledger td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.ledger tr.dup td { background: var(--warn-bg); }
.ledger tr.hold td { background: var(--tint); }
.cellbtn { font-family: var(--mono); font-size: 13px; color: var(--blue-deep); background: none; border: 0; padding: 6px 0; min-height: 36px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.scroll { overflow-x: auto; }
.cell-detail { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; line-height: 1.6; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.checkpoint { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-height: 96px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); cursor: pointer; font: 400 14px "Chivo", sans-serif; text-align: left; }
.checkpoint[aria-pressed="true"] { border: 1.5px solid var(--ink); background: var(--tint); }
.checkpoint .t { font-family: var(--mono); font-size: 12px; color: var(--sub); }
.checkpoint strong { font-size: 18px; }
.checkpoint .barv { width: 100%; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.checkpoint .barv i { display: block; height: 100%; background: var(--blue); }
.conflict { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; align-items: end; }
.conflict label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.conflict select, .conflict input { min-height: 48px; padding: 8px 12px; border: 1px solid var(--field); border-radius: var(--radius); font: 400 16px "Chivo", sans-serif; background: var(--panel); color: var(--ink); }
.checks { font-family: var(--mono); font-size: 13px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; }
.checks .pass { color: var(--pass); } .checks .fail { color: var(--alert); }
.result { border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--panel); padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.result h3 { font-size: 22px; }
.result ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--body); }
.inv { display: flex; flex-direction: column; gap: 16px; }
.code { font-family: var(--mono); font-size: 14px; line-height: 1.75; padding: 14px 0; overflow-x: auto; }
.code .ln { display: flex; }
.code .ln.hl { background: var(--warn-bg); }
.code .ln.del { background: #fde2dc; }
.code .ln.add { background: #dcf3e7; }
.code .no { flex: none; width: 44px; text-align: right; padding-right: 14px; color: var(--sub); user-select: none; }
.code .mk { flex: none; width: 22px; color: var(--blue); font-weight: 500; user-select: none; }
.code .tx { white-space: pre; padding-right: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.acct { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.acct th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.acct td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.acct tr.lose td { background: var(--warn-bg); font-weight: 600; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; border-radius: 3px; padding: 2px 6px; border: 1px solid currentColor; }
.tag.yes { color: var(--pass); } .tag.no { color: var(--sub); } .tag.lose { color: var(--alert); }
.deps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.deps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.deps .ref { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.deps .impact { color: var(--alert); font-weight: 600; font-size: 14px; }
.lab-error { border-left: 3px solid var(--alert); background: #fdecea; padding: 12px 14px; }

/* Responsive */
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .site-header .bar { flex-wrap: wrap; }
  html.js .site-header .nav { display: none; flex-basis: 100%; }
  html.js .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 12px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line-soft); }
  .nav-list > li > a, .svc-toggle { width: 100%; min-height: 48px; justify-content: space-between; }
  .svc-menu { position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 10px; }
  .svc-menu ul { grid-template-columns: 1fr; }
  .nav-cta { align-self: flex-start; }
  .sec-grid, .brief-body { grid-template-columns: minmax(0, 1fr); }
  .sec-grid > .sec-title, .toc { position: static; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .console { max-width: none; border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stage { padding: 32px 20px 56px; }
  .flow { flex-direction: column; }
  .flow > li { flex-direction: column; align-items: stretch; }
  .flow > li + li::before { flex: 0 0 22px; width: 2px; height: 22px; margin: 2px auto; }
  .flow > li + li .node::before { left: 50%; top: -9px; transform: translateX(-50%); border: 6px solid transparent; border-top: 8px solid var(--ink); border-bottom: 0; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .bridge { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bridge > div:nth-child(3) { border-left: 0; }
  .bridge > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .faq > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .sec { padding-top: 48px; padding-bottom: 48px; }
  .sec-b { padding-bottom: 48px; }
  .pagehead { padding-top: 40px; padding-bottom: 32px; }
  .pad, .part, .next { padding: 22px 20px; }
  .split { gap: 16px; }
  .caps > article { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; }
  .console { padding: 22px 16px 28px; }
  .lead { font-size: 17px; }
  .engagement { padding: 22px 20px; }
  .diagram { padding: 18px; }
  .rtable table, .rtable thead, .rtable tbody, .rtable tr, .rtable th, .rtable td { display: block; width: 100%; }
  .rtable table { border: 0; background: transparent; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rtable tr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
  .rtable tbody th { width: 100%; background: var(--paper); }
  .rtable td::before, .rtable tbody th::before { content: attr(data-label); display: block; font-family: var(--mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--sub); margin-bottom: 4px; }
  .rtable tr:last-child > * { border-bottom: 1px solid var(--line-soft); }
  .rtable tr > *:last-child { border-bottom: 0 !important; }
  .guess { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pb *, .reveal { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.runin { display: inline; font-size: 18px; }
.runin .cardlink::after { content: ""; position: absolute; inset: 0; }
