/* nav.css — top bar colour cycle, floating chat button (desktop), floating pill + sheets (mobile), footer company links */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar: slow colour cycle (no flicker) */
.auditbar { animation: none !important; transition: background-color 1.4s ease; }
.auditbar__tag { transition: background-color 1.4s ease, color 1.4s ease; }

/* footer: headings are not document headings */
.footer__h { font-size: 16px; font-weight: 700; margin-bottom: 18px; color: var(--ct, #fff); }
.footer__co { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 22px; max-width: 340px; }
.footer__co span { width: 100%; font-size: 12px; color: #6b6b82; letter-spacing: .04em; margin-bottom: 2px; }
.footer__co a { color: #A2A2B8; font-size: 14px; transition: color .2s; }
.footer__co a:hover { color: #fff; }

/* desktop floating chat button */
.chatfab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: 300px; padding: 10px 18px 10px 10px; border: 2px solid #0B0B14; border-radius: 18px; background: #FEFF61; color: #0B0B14; box-shadow: 5px 5px 0 #0B0B14; font: 500 13px/1.3 "Space Grotesk", system-ui, sans-serif; text-align: left; cursor: pointer; transition: transform .25s, box-shadow .25s, opacity .3s; }
.chatfab:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #0B0B14; }
.chatfab:focus-visible { outline: 3px solid #C77DFF; outline-offset: 3px; }
.chatfab__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #0B0B14; color: #FEFF61; display: grid; place-items: center; font: 700 15px "JetBrains Mono", monospace; position: relative; }
.chatfab__ic::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%; background: #93FA6E; border: 2px solid #FEFF61; }
.chatfab b { display: block; font-size: 14px; font-weight: 700; }
.chatfab.is-off { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* mobile pill */
.pnav, .psheet, .pdim { display: none; }
@media (max-width: 1023px) {
  .chatfab { display: none; }
  .mbar, .askbar { display: none !important; }
  .site-header, #mobile-menu { display: none !important; }
  body { padding-bottom: 96px; }
  .pnav { position: fixed; left: 12px; right: 12px; bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; gap: 6px; padding: 7px; background: rgba(20, 20, 31, .93); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid #33334a; border-radius: 22px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
  .pnav.is-hidden { transform: translateY(140%); opacity: 0; }
  .pnav__brand { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding-left: 6px; color: #fff; }
  .pnav__brand svg { width: 28px; height: 28px; flex: none; }
  .pnav__brand span { font-family: var(--f-disp, "Unbounded"), sans-serif; font-weight: 700; font-size: 14px; white-space: nowrap; letter-spacing: -.01em; }
  .pnav__brand span i { font-style: normal; color: #A2A2B8; }
  .pnav__b { flex: none; height: 44px; border-radius: 15px; border: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; font: 700 14px "Space Grotesk", system-ui, sans-serif; cursor: pointer; }
  .pnav__b--chat { background: #FEFF61; color: #0B0B14; }
  .pnav__b--chat code { font: 700 13px "JetBrains Mono", monospace; }
  .pnav__b--menu { width: 44px; padding: 0; background: #26263a; color: #fff; }
  .pnav__burg { width: 18px; height: 12px; position: relative; }
  .pnav__burg i { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .2s, top .3s; }
  .pnav__burg i:nth-child(1) { top: 0; } .pnav__burg i:nth-child(2) { top: 5px; } .pnav__burg i:nth-child(3) { top: 10px; }
  .pnav.is-open .pnav__burg i:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .pnav.is-open .pnav__burg i:nth-child(2) { opacity: 0; }
  .pnav.is-open .pnav__burg i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
  .pdim { display: block; position: fixed; inset: 0; z-index: 68; background: rgba(5, 5, 10, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .pdim.is-on { opacity: 1; pointer-events: auto; }
  .psheet { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 69; max-height: 86vh; max-height: 86dvh; padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); background: #14141f; color: #fff; border-top: 1px solid #34344a; border-radius: 26px 26px 0 0; transform: translateY(105%); visibility: hidden; transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s .38s; }
  .psheet.is-on { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
  .psheet__grab { flex: none; width: 46px; height: 5px; margin: 10px auto 6px; border-radius: 4px; background: #45455a; }
  .psheet__body { overflow-y: auto; padding: 4px 16px 10px; overscroll-behavior: contain; }
  .psheet__sh { font: 400 11px "JetBrains Mono", monospace; color: #6b6b82; margin: 12px 4px 8px; }
  .pacc { border: 1px solid #2c2c3c; border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
  .pacc > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px; border: 0; background: none; color: var(--pc); font: 700 15px "JetBrains Mono", monospace; text-align: left; cursor: pointer; }
  .pacc > button small { margin-left: 8px; font: 400 12px "Space Grotesk", sans-serif; color: #A2A2B8; }
  .pacc__chev { color: #A2A2B8; font-family: "Space Grotesk", sans-serif; transition: transform .25s; }
  .pacc.is-on { border-color: var(--pc); background: #191926; }
  .pacc.is-on .pacc__chev { transform: rotate(45deg); color: var(--pc); }
  .pacc__p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; }
  .pacc.is-on .pacc__p { grid-template-rows: 1fr; }
  .pacc__p > div { overflow: hidden; }
  .pacc__p a { display: block; padding: 11px 14px; border-top: 1px solid #222232; color: #e4e4ee; font-size: 15px; }
  .pacc__p a:hover { color: var(--pc); }
  .pacc__p a.pacc__all { color: var(--pc); font-family: "JetBrains Mono", monospace; font-size: 13px; }
  .pco { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pco a { padding: 12px; border: 1px solid #2c2c3c; border-radius: 12px; color: #e4e4ee; font-size: 15px; }
  .pcta { display: block; margin-top: 14px; padding: 14px; border-radius: 14px; background: #FEFF61; color: #0B0B14; text-align: center; font-weight: 700; font-size: 15px; }
  html.pnav-lock, html.pnav-lock body { overflow: hidden; }
  .chatm { z-index: 80 !important; }
}
@media (max-width: 340px) { .pnav__b--chat code { display: none; } .pnav__brand span { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .pnav, .psheet, .pacc__p, .chatfab, .auditbar { transition: none !important; } }

/* homepage: rotating badge text, commitments cards */
.badge__ring text { font-size: 15px !important; letter-spacing: .02em; }
.vq__txt { font-family: var(--f-disp, "Unbounded"), sans-serif; font-weight: 700; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; margin-top: 18px; }
.vq__qm--n { font-family: var(--f-mono, "JetBrains Mono"), monospace; font-size: 40px; line-height: 1; height: auto; }
.vq { min-height: 300px; }
.ccard h2 { font-family: var(--f-disp); font-size: 20px; margin-bottom: 14px; }
/* pillar panels: stack in one grid cell so the box always fits the tallest panel (no overflow) */
.ppanels { display: grid; min-height: 0 !important; }
.ppanel { position: relative !important; inset: auto !important; grid-area: 1 / 1; }
.ppanel__foot p .mono { font-size: 12.5px; }
.vq__qm--n { opacity: 1 !important; transform: none !important; color: var(--ct, #0B0B14); }
.post__tx .tag { display: table; margin-bottom: 4px; }

/* Size-matched fallback fonts: text keeps its size and line breaks while the web fonts load (no layout shift). */
@font-face { font-family: "Unbounded Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"), local("Helvetica Bold"); font-weight: 100 750; size-adjust: 131.1%; ascent-override: 75.9%; descent-override: 18.7%; line-gap-override: 0%; }
@font-face { font-family: "Unbounded Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"), local("Helvetica Bold"); font-weight: 751 900; size-adjust: 133.2%; ascent-override: 74.7%; descent-override: 18.4%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"), local("Helvetica"); font-weight: 100 450; size-adjust: 108.9%; ascent-override: 90.4%; descent-override: 26.8%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"), local("Helvetica Bold"); font-weight: 451 900; size-adjust: 101.4%; ascent-override: 97%; descent-override: 28.8%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("Cousine"); size-adjust: 100%; ascent-override: 102%; descent-override: 30%; line-gap-override: 0%; }
:root {
  --f-disp: "Unbounded", "Unbounded Fallback", system-ui, sans-serif;
  --f-body: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, monospace;
}

/* Accessibility: text contrast (WCAG AA) */
.footer__co span, .footer__bottom, .footer__bottom a { color: #9d9db3; }
.footer__bottom a:hover, .footer__co a:hover { color: #fff; }
.t-c { color: #8e8ea8; }
.ready__eb { color: #fff; }
.err[data-c="p"] .err__back .tag { color: var(--pt, #C77DFF); }
.vq__qm--n { color: #0B0B14 !important; }
.story__index li { color: #5c5a54; }
