/* ==========================================================================
   REVENGE — design system
   Ink / Bone / Revenge-red. Archivo (expanded) + Instrument Sans + JetBrains Mono
   ========================================================================== */

:root {
  --ink: #151515;
  --ink-2: #1b1b1b;
  --ink-3: #222222;
  --ink-4: #2c2c2c;
  --bone: #e9e4d9;
  --bone-2: #e2dccf;
  --bone-3: #d4cdbd;
  --red: #ffce1b;
  --red-2: #ffdc5c;
  --red-deep: #c99a00;
  --accent-ink: #7d5d00;  /* mustard dark enough for text on cream */
  --danger: #ff4d3d;
  --lime: #5ee08f;
  --amber: #ffb224;
  --muted: #8b9099;
  --muted-light: #5d5a52;
  --bone-rgb: 233, 228, 217;
  --ink-rgb: 21, 21, 21;
  --card-rgb: 40, 40, 40;
  --on-accent: #151515;

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 72px;
  --section-y: clamp(56px, 6vw, 88px);   /* one vertical rhythm for every section */
  --head-gap: clamp(28px, 3.5vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: var(--ink); }

.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--red); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- section themes ---------- */
.section { position: relative; padding-block: var(--section-y); }
.theme-dark { background: var(--ink); color: var(--bone); }
.theme-dark-2 { background: var(--ink-2); color: var(--bone); }
.theme-light { background: var(--bone); color: var(--ink); color-scheme: light; }
.theme-red { background: var(--red); color: var(--ink); color-scheme: light; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }
.theme-red .eyebrow { color: var(--ink); }

.h1, .h2, .h3 { font-family: var(--f-display); margin: 0; font-weight: 800; }
.h1 {
  font-size: clamp(2.35rem, 4.5vw, 4.7rem); line-height: .92; letter-spacing: -.025em;
  font-stretch: 112%; text-transform: uppercase; font-weight: 900;
}
.h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.h1 .line > span { display: inline-block; max-width: 100%; }
.h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.1rem); line-height: .98; letter-spacing: -.025em; font-stretch: 112%;
  max-width: 17ch; text-wrap: balance;
}
.h2 em, .h1 em { font-style: normal; color: var(--red); }
.theme-red .h2 em { color: var(--bone); }
.h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.01em; font-stretch: 108%; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; color: color-mix(in srgb, currentColor 72%, transparent); max-width: 58ch; margin: 22px 0 0; text-wrap: pretty; }
.section-head { margin-bottom: var(--head-gap); }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.center .h2 { max-width: 20ch; }
.mono { font-family: var(--f-mono); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--bone); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 650; font-size: 15.5px; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .35s;
  overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  transform: translateY(101%); transition: transform .45s var(--ease-out); border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-red { --bg: var(--red); --fg: var(--ink); }
.btn-red::before { background: var(--bone); }
.btn-ghost { --bg: transparent; --fg: currentColor; border-color: color-mix(in srgb, currentColor 28%, transparent); }
.btn-ghost:hover { border-color: var(--red); }
.btn-ink { --bg: var(--ink); --fg: var(--bone); }
.btn-ink::before { background: var(--bone); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.theme-red .btn-ghost:hover { color: var(--bone); border-color: var(--ink); }
.theme-red .btn-ghost::before { background: var(--ink); }
.theme-light .btn-ghost::before { background: var(--ink); }
.theme-light .btn-ghost:hover { color: var(--bone); border-color: var(--ink); }

/* ==========================================================================
   NAV — recolors itself per section underneath
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  --nav-bg: rgba(var(--ink-rgb), .0); --nav-fg: var(--bone); --nav-line: transparent;
  background: var(--nav-bg); color: var(--nav-fg); border-bottom: 1px solid var(--nav-line);
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s, transform .45s var(--ease-out);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.nav.scrolled { --nav-bg: rgba(var(--ink-rgb), .72); --nav-line: rgba(var(--bone-rgb), .08); }
.nav[data-theme="light"] { --nav-bg: rgba(var(--bone-rgb), .82); --nav-fg: var(--ink); --nav-line: rgba(var(--ink-rgb), .08); }
.nav[data-theme="red"] { --nav-bg: rgba(255, 206, 27, .9); --nav-fg: var(--ink); --nav-line: rgba(var(--ink-rgb), .15); }
.nav[data-theme="light"] .btn-demo, .nav[data-theme="red"] .btn-demo { --bg: var(--ink); --fg: var(--bone); }
.nav[data-theme="red"] .btn-attack { --bg: var(--ink); --fg: var(--red); border-color: var(--ink); }
.nav.hide { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; letter-spacing: .02em; font-size: 19px; }
.brand svg.wm { height: 18px; width: auto; display: block; }
.footer-brand .brand svg.wm { height: 26px; }
.mark-accent { fill: var(--red); transition: fill .45s; }
.nav[data-theme="red"] .brand .mark-accent { fill: var(--bone); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto 0 12px; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 550; opacity: .82; transition: opacity .2s, background-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-attack {
  --bg: transparent; --fg: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.btn-attack .pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 1.8s infinite; }
.btn-attack:hover .pulse { animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 206, 27, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 206, 27, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 206, 27, 0); } }

/* language selector */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 999px; background: transparent; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.lang-btn svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; margin: 0; list-style: none;
  background: var(--ink-3); color: var(--bone); border: 1px solid rgba(var(--bone-rgb), .1); border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease-out);
}
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 14.5px; }
.lang-menu a:hover { background: var(--ink-4); }
.lang-menu a[aria-current="true"]::after { content: "●"; color: var(--red); font-size: 10px; align-self: center; }
.lang-menu .code { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .3s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav.menu-open .burger span { background: transparent; }
.nav.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .burger { display: inline-flex; }
  .nav .btn-demo { display: none; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--ink); color: var(--bone); z-index: 99;
    padding: 24px var(--gutter) 40px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease-out); overflow-y: auto;
  }
  .nav.menu-open + .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu ul { list-style: none; margin: 0 0 28px; padding: 0; }
  .mobile-menu li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(var(--bone-rgb), .08); font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: 26px; text-decoration: none; }
  .mobile-menu .btn { width: 100%; margin-top: 10px; }
}
@media (max-width: 560px) {
  .btn-attack .label-long { display: none; }
  .nav-inner { gap: 12px; }
  .lang-btn .lang-label { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: calc(var(--nav-h) + var(--section-y)); padding-bottom: var(--section-y); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 42%, rgba(255, 206, 27, .16), transparent 70%);  /* no glow on the bottom edge: the logo strip continues the hero */
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 4vw, 48px); align-items: center; }
/* headline may wrap (FR "Frappez en premier." is wider than the column); the accented phrase stays together */
.hero .h1 em { white-space: nowrap; }
@media (min-width: 1001px) { .hero .h1:lang(en) { white-space: nowrap; } }  /* "Strike first." stays on one line, as designed */
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.hero-form { position: relative; z-index: 2; width: 100%; }
.hero-form .qform { margin-top: 0; width: 100%; }
.hero .lede { margin: 20px 0 0; max-width: 52ch; }

/* startup program logos, straight on the hero background. Dark theme shows each brand's reversed
   version (white wordmark, colour symbol); light theme shows the original. */
.backers { position: relative; z-index: 1; margin-top: 32px; width: 100%; }
.backers p { margin: 0 0 14px; font-size: 14px; color: color-mix(in srgb, currentColor 72%, transparent); }
.backers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; max-width: 640px; }
.backers li { display: flex; align-items: center; min-height: 40px; }
.backers img { width: auto; max-width: 100%; }
.backers .on-light, html.light .backers .on-dark { display: none; }
html.light .backers .on-light { display: block; }
@media (max-width: 600px) {
  .backers ul { gap: 14px 22px; }
  .backers img { transform: scale(.85); transform-origin: left center; }
}
.hero-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(400px, 92vw); height: 440px; z-index: 0; pointer-events: none; opacity: .6; }
.hero-copy > .h1, .hero-copy > .lede { position: relative; z-index: 1; }
.hero-copy { padding-block: 0; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 206, 27, .22), rgba(255, 206, 27, .06) 55%, transparent); pointer-events: none; }
.hero-caption {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.hero-caption ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hero-caption li { padding: 6px 10px; border: 1px solid rgba(var(--bone-rgb), .1); border-radius: 999px; transition: color .4s, border-color .4s, background-color .4s; }
.hero-caption li.on { color: var(--ink); background: var(--bone); border-color: var(--bone); }
.hero-caption li.on.red { background: var(--red); border-color: var(--red); }
.hero-corner { position: absolute; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.hero-corner.tl { top: 6%; left: 4%; } .hero-corner.br { bottom: 12%; right: 0; text-align: right; }
.hero-corner b { color: var(--lime); font-weight: 500; }

/* load-in */
.reveal-load { opacity: 0; transform: translateY(24px); animation: loadIn 1s var(--ease-out) forwards; }
.h1 .line > span { transform: translateY(105%); animation: lineUp 1.1s var(--ease-out) forwards; }
.h1 .line:nth-child(2) > span { animation-delay: .1s; }
@keyframes lineUp { to { transform: none; } }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* ---------- questionnaire (hero form) ---------- */
.qform {
  margin-top: 26px; max-width: 600px; position: relative;
  background: linear-gradient(180deg, rgba(var(--card-rgb), .78), rgba(var(--card-rgb), .86));
  border: 1px solid rgba(var(--bone-rgb), .1); border-radius: var(--radius-lg); padding: 18px 20px 16px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.qform.flash { animation: flash 1.2s var(--ease-out); }
@keyframes flash { 0%, 100% { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 0 rgba(255, 206, 27, 0); } 30% { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 206, 27, .45); } }
.qform-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.qform-title { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 8px; margin: 0; }
.qform-count { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
/* named steps, so the visitor can see what is left */
.qform-progress { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.qform-progress li { display: grid; gap: 5px; min-width: 0; }
.qform-progress span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.qform-progress li.now span { color: var(--bone); font-weight: 650; }
/* the answer picked for that step, so the plan builds up as you go */
.qform-progress .pv { display: block; min-height: 1.35em; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -3px; }
.qform-progress i { height: 3px; border-radius: 3px; background: rgba(var(--bone-rgb), .12); position: relative; overflow: hidden; }
.qform-progress i::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.qform-progress li.done i::after { transform: scaleX(1); }
.qstep { border: 0; margin: 0; padding: 0; min-width: 0; }
.qstep[aria-hidden="true"] { display: none; }
.qstep.enter { animation: stepIn .45s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.qstep legend { font-family: var(--f-display); font-stretch: 108%; font-weight: 750; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.2; margin-bottom: 10px; padding: 0; }
.qhint { font-size: 13px; color: var(--muted); margin: -6px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 12px;
  background: rgba(var(--bone-rgb), .04); border: 1px solid rgba(var(--bone-rgb), .12); font-size: 14.5px; font-weight: 550; text-align: left;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease-out), color .2s;
}
.chip:hover { border-color: rgba(var(--bone-rgb), .35); background: rgba(var(--bone-rgb), .07); }
.chip .chip-label { flex: 1; }
.chip .tick { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(var(--bone-rgb), .35); display: grid; place-items: center; flex: none; transition: all .2s; }
.chip .tick svg { width: 10px; height: 10px; opacity: 0; transform: scale(.4); transition: all .25s var(--ease-out); color: #151515; }
/* single-choice steps get a radio, so they don't look like the multi-select one */
.chip .radio { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(var(--bone-rgb), .35); flex: none; transition: border-color .2s; }
.chip .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .25s var(--ease-out); }
.chip[aria-pressed="true"] { background: rgba(255, 206, 27, .14); border-color: var(--red); color: var(--bone); }
.chip[aria-pressed="true"] .tick { background: var(--red); border-color: var(--red); }
.chip[aria-pressed="true"] .tick svg { opacity: 1; transform: none; }
.chip[aria-pressed="true"] .radio { border-color: var(--red); }
.chip[aria-pressed="true"] .radio::after { transform: scale(1); }
.chip:active { transform: scale(.98); }
/* asset-type symbols in the text colour (white on the dark card, ink in light mode) */
.chip-ico { flex: none; width: 20px; height: 20px; color: var(--bone); }
/* layouts: icon tiles for what to protect, a list for long answers, a 2-up grid for short ones */
.chips-tiles, .chips-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips-tiles .chip { min-height: 44px; padding: 7px 12px; gap: 10px; line-height: 1.25; }
.chips-list { display: grid; grid-template-columns: 1fr; gap: 5px; }
.chips-list .chip, .chips-pair .chip { min-height: 40px; padding-block: 6px; }
/* the breach answer: incident response, not a sales plan */
.chip[data-urgent][aria-pressed="true"] { border-color: var(--danger); background: rgba(255, 77, 61, .1); }
.chip[data-urgent][aria-pressed="true"] .radio { border-color: var(--danger); }
.chip[data-urgent][aria-pressed="true"] .radio::after { background: var(--danger); }
.qbreach { margin-top: 8px; padding: 10px 12px; border: 1px solid rgba(255, 77, 61, .5); background: rgba(255, 77, 61, .08); border-radius: 12px; display: grid; gap: 12px; justify-items: start; animation: stepIn .35s var(--ease-out); }
@media (min-width: 561px) { .qbreach { grid-template-columns: 1fr auto; align-items: center; } }
.qbreach p { margin: 0; font-size: 13px; line-height: 1.4; color: color-mix(in srgb, currentColor 80%, transparent); }
.qbreach b { display: block; color: var(--bone); font-size: 14px; }
@media (max-width: 420px) { .chips-tiles, .chips-pair { grid-template-columns: 1fr; } }
.qfields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qfields .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(var(--bone-rgb), .14);
  background: rgba(var(--ink-rgb), .55); color: var(--bone); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 206, 27, .18); }
.field input::placeholder, .field textarea::placeholder { color: #5b6069; }
.qturnstile { margin-top: 14px; min-height: 65px; }
.qnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.qback { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 8px 4px; display: inline-flex; gap: 6px; align-items: center; }
.qback:hover { color: var(--bone); }
.qback[disabled] { visibility: hidden; }
.qerror { color: var(--red-2); font-size: 13px; margin: 10px 0 0; }
.qerror:empty { display: none; }
.qfoot { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; display: flex; gap: 8px; align-items: center; }
.qfoot svg { width: 14px; height: 14px; flex: none; }
.qsuccess { text-align: left; padding: 8px 2px; }
.qsuccess .badge { display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.qsuccess h3 { font-family: var(--f-display); font-stretch: 115%; font-size: 1.6rem; margin: 0 0 8px; }
.qsuccess p { margin: 0; color: var(--muted); }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  #hero-canvas { inset: 0; width: 100%; height: 100%; }
  .hero-caption, .hero-corner { display: none; }
}
@media (max-width: 560px) {
  .qfields { grid-template-columns: 1fr; }
  .qform { padding: 18px 16px 16px; }
}

/* ---------- framework marquee ---------- */
.marquee { border-block: 1px solid rgba(var(--bone-rgb), .08); padding-block: 22px 26px; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; gap: 18px; background: var(--ink); }
/* subtitle styled like the hero's "Supported by" line, left-aligned with the hero text */
.marquee-label { margin: 0 0 14px; padding-inline: calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter)); font-size: 14px; line-height: 1.4; color: color-mix(in srgb, var(--bone) 72%, transparent); }
/* on the 72px rhythm the label sits in the hero's bottom margin, so the strip keeps its one-row height */
.hero-fit .marquee-label { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); margin: 0; z-index: 3; pointer-events: none; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track .fw { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: rgba(var(--bone-rgb), .6); transition: color .3s; }
.marquee-track .fw:hover { color: var(--bone); }
.marquee-track .fw > img, .marquee-track .fw > svg { flex: none; width: 34px; height: 34px; object-fit: contain; opacity: .7; transition: opacity .3s; }
.marquee-track .fw:hover > img, .marquee-track .fw:hover > svg { opacity: 1; }
.marquee-track .fw img.wm { width: auto; height: 22px; flex: none; opacity: .75; transition: opacity .3s; }
.marquee-track .fw:hover img.wm { opacity: 1; }
.marquee-track .fw b { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   RECON — live scan terminal
   ========================================================================== */
.recon-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: var(--head-gap); background: rgba(var(--bone-rgb), .1); border: 1px solid rgba(var(--bone-rgb), .1); border-radius: var(--radius); overflow: hidden; }
.metric { background: var(--ink-2); padding: 22px 20px; }
.metric b { display: block; font-family: var(--f-display); font-stretch: 120%; font-weight: 900; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -.02em; }
.metric b .unit { color: var(--red); font-size: .55em; margin-left: 4px; }
.metric > span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.4; }

.term {
  position: relative; border-radius: var(--radius-lg); background: #111111; border: 1px solid rgba(var(--bone-rgb), .1);
  box-shadow: 0 60px 120px -50px rgba(255, 206, 27, .35), 0 30px 60px -30px rgba(0, 0, 0, .9); overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(var(--bone-rgb), .07); background: rgba(var(--bone-rgb), .02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e35; }
.term-bar i:first-child { background: var(--red); }
.term-bar span { margin-left: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.term-bar .live { margin-left: auto; color: var(--lime); display: inline-flex; gap: 6px; align-items: center; }
.term-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.term-body { position: relative; font-family: var(--f-mono); font-size: clamp(11.5px, 1.05vw, 13.5px); line-height: 1.75; padding: 18px 20px 22px; min-height: 420px; white-space: pre; overflow-x: auto; color: #b9bec7; }
.term-body .ln { display: block; animation: lnIn .25s ease-out both; }
@keyframes lnIn { from { opacity: 0; transform: translateY(4px); } }
.term-body .p { color: var(--red); } .term-body .c { color: var(--bone); }
.term-body .g { color: var(--lime); } .term-body .d { color: #5d636c; } .term-body .w { color: var(--amber); }
.sev { display: inline-block; padding: 0 7px; border-radius: 4px; font-size: .86em; font-weight: 600; line-height: 1.5; }
.sev.crit { background: var(--red); color: var(--ink); } .sev.high { background: var(--amber); color: var(--ink); }
.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--red); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
.term-scan { position: absolute; left: 0; right: 0; height: 90px; top: -90px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255, 206, 27, .08), transparent); animation: scanline 4.5s linear infinite; }
@keyframes scanline { to { top: 110%; } }

@media (max-width: 960px) { .recon-grid { grid-template-columns: 1fr; } .term-body { min-height: 360px; } }

/* ==========================================================================
   SERVICES (light)
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(var(--ink-rgb), .14); border: 1px solid rgba(var(--ink-rgb), .14); border-radius: var(--radius-lg); overflow: hidden; }
.svc { position: relative; background: var(--bone); padding: clamp(26px, 3vw, 38px); min-height: 340px; display: flex; flex-direction: column; transition: background-color .4s var(--ease); overflow: hidden; }
.svc::before { content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--ink); transition: height .55s var(--ease-out); z-index: 0; }
.svc > * { position: relative; z-index: 1; }
.svc:hover::before { height: 100%; }
.svc:hover { color: var(--bone); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 40px; }
.svc-num { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; color: var(--muted-light); transition: color .3s; }
.svc:hover .svc-num { color: var(--red); }
.svc-icon { width: 46px; height: 46px; color: var(--red); transition: transform .6s var(--ease-out); }
.svc:hover .svc-icon { transform: rotate(-8deg) scale(1.1); }
.svc .h3 { margin-bottom: 10px; }
/* corner illustration, same treatment as the .ha-card tiles; sits above the hover fill so it flips colour with the text */
.svc > .viz { position: absolute; right: -30px; top: -30px; width: 190px; height: 190px; opacity: .18; z-index: 1; pointer-events: none; transition: opacity .4s var(--ease); }
.svc:hover > .viz { opacity: .3; }
@media (max-width: 640px) { .svc > .viz { width: 150px; height: 150px; right: -24px; top: -24px; } }
.svc p { margin: 0; font-size: 15.5px; color: color-mix(in srgb, currentColor 72%, transparent); }
.svc ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em; padding: 4px 9px; border-radius: 6px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* ==========================================================================
   METHOD — sticky scroll story: exposure → code fix
   ========================================================================== */
.story { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 80px); position: relative; }
.story-steps { position: relative; padding-left: 28px; }
.story-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: rgba(var(--bone-rgb), .08); border-radius: 2px; }
.story-rail i { position: absolute; inset: 0 0 auto 0; height: var(--p, 0%); background: linear-gradient(var(--red), var(--red-2)); border-radius: 2px; box-shadow: 0 0 18px var(--red); }
.story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .22; filter: blur(1.5px); transition: opacity .6s var(--ease), filter .6s var(--ease); }
.story-step:first-child { min-height: 48vh; }
.story-step.active { opacity: 1; filter: none; }
.story-step .k { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; color: var(--red); text-transform: uppercase; margin-bottom: 14px; }
.story-step h3 { font-family: var(--f-display); font-stretch: 115%; font-weight: 850; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 16px; }
.story-step p { margin: 0; color: var(--muted); max-width: 44ch; font-size: 16.5px; }
.story-step ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.story-step li { display: flex; gap: 10px; font-size: 15px; color: rgba(var(--bone-rgb), .82); }
.story-step li::before { content: "→"; color: var(--red); font-family: var(--f-mono); }

.story-visual-wrap { position: relative; }
.story-visual {
  position: sticky; top: calc(var(--nav-h) + 6vh); height: calc(100vh - var(--nav-h) - 12vh); min-height: 500px; max-height: 720px;
  border-radius: var(--radius-lg); border: 1px solid rgba(var(--bone-rgb), .09); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 40%, rgba(255, 206, 27, .07), transparent 70%), linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.story-visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(var(--bone-rgb), .1) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); }
.sv-head { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; z-index: 3; border-bottom: 1px solid rgba(var(--bone-rgb), .06); }
.sv-stages { display: flex; gap: 6px; }
.sv-stages span { padding: 4px 9px; border-radius: 6px; border: 1px solid rgba(var(--bone-rgb), .1); transition: all .4s; }
.story-visual[data-stage="1"] .sv-stages span:nth-child(1),
.story-visual[data-stage="2"] .sv-stages span:nth-child(2),
.story-visual[data-stage="3"] .sv-stages span:nth-child(3) { background: var(--red); color: var(--ink); border-color: var(--red); }
.story-visual[data-stage="4"] .sv-stages span:nth-child(4) { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.sv-graph { position: absolute; inset: 54px 0 0 0; width: 100%; height: calc(100% - 54px); }
.sv-graph text { font-family: var(--f-mono); font-size: 12px; fill: var(--bone); }
.sv-graph .sub { fill: var(--muted); font-size: 10.5px; }
.sv-decoy { opacity: 0; transition: opacity .6s var(--ease); }
.sv-decoy circle { fill: var(--ink-4); stroke: rgba(var(--bone-rgb), .25); }
.sv-decoy text { fill: var(--muted); font-size: 10.5px; }
.sv-decoy line { stroke: rgba(var(--bone-rgb), .1); stroke-dasharray: 3 4; }
.story-visual[data-stage] .sv-decoy { opacity: 1; }
.story-visual[data-stage="3"] .sv-decoy, .story-visual[data-stage="4"] .sv-decoy { opacity: .35; }
.sv-node { opacity: 0; transform: scale(.8); transform-box: fill-box; transform-origin: center; transition: opacity .6s var(--ease), transform .7s var(--ease-out); }
.story-visual[data-stage] .sv-node { opacity: 1; transform: none; }
.sv-node rect { fill: var(--ink-3); stroke: rgba(var(--bone-rgb), .2); stroke-width: 1; transition: stroke .5s, fill .5s; }
.sv-node .ico { stroke: var(--bone); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.story-visual[data-stage="2"] .sv-node.hit rect, .story-visual[data-stage="3"] .sv-node.hit rect { stroke: var(--red); fill: #22110e; }
.story-visual[data-stage="2"] .sv-node.hit .ico, .story-visual[data-stage="3"] .sv-node.hit .ico { stroke: var(--red); }
.story-visual[data-stage="4"] .sv-node.hit rect { stroke: var(--lime); fill: #171d0e; }
.story-visual[data-stage="4"] .sv-node.hit .ico { stroke: var(--lime); }
.sv-path-base { fill: none; stroke: rgba(var(--bone-rgb), .12); stroke-width: 1.5; stroke-dasharray: 4 6; }
.sv-path { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease), stroke .6s; filter: drop-shadow(0 0 6px rgba(255, 206, 27, .7)); }
.story-visual[data-stage="2"] .sv-path, .story-visual[data-stage="3"] .sv-path, .story-visual[data-stage="4"] .sv-path { stroke-dashoffset: 0; }
.story-visual[data-stage="4"] .sv-path { stroke: var(--lime); filter: drop-shadow(0 0 6px rgba(200, 255, 61, .5)); stroke-dasharray: .012 .01; }
.sv-packet { opacity: 0; fill: var(--red); }
.story-visual[data-stage="2"] .sv-packet { opacity: 1; }
.sv-scan { opacity: 0; transform-origin: 50% 50%; transform-box: view-box; }
.story-visual[data-stage="1"] .sv-scan { opacity: 1; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sv-lock { opacity: 0; transition: opacity .5s .4s; }
.story-visual[data-stage="4"] .sv-lock { opacity: 1; }
.sv-lock rect { fill: var(--lime); } .sv-lock path { stroke: var(--lime); fill: none; stroke-width: 2.2; }

.sv-card {
  position: absolute; z-index: 4; width: min(330px, 62%); border-radius: 14px; padding: 14px 16px;
  background: rgba(var(--card-rgb), .92); border: 1px solid rgba(var(--bone-rgb), .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px;
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .5s var(--ease), transform .6s var(--ease-out); pointer-events: none;
}
.sv-card h4 { margin: 0 0 8px; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.sv-card code, .sv-card pre { font-family: var(--f-mono); font-size: 11.5px; }
.sv-card pre { margin: 8px 0 0; padding: 10px; border-radius: 8px; background: #111111; overflow: hidden; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.sv-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed rgba(var(--bone-rgb), .08); color: var(--muted); }
.sv-card .row b { color: var(--bone); font-weight: 600; }
.sv-evidence { left: 18px; bottom: 18px; border-color: rgba(255, 206, 27, .5); }
.sv-fix { left: 18px; bottom: 18px; border-color: rgba(200, 255, 61, .45); }
.sv-map { right: 18px; top: 70px; width: auto; }
.story-visual[data-stage="1"] .sv-map, .story-visual[data-stage="3"] .sv-evidence, .story-visual[data-stage="4"] .sv-fix, .story-visual[data-stage="4"] .sv-evidence.keep { opacity: 1; transform: none; }
.story-visual[data-stage="2"] .sv-alert { opacity: 1; transform: none; }
.sv-alert { right: 18px; top: 70px; width: auto; border-color: rgba(255, 206, 27, .5); }
.del { color: #ff8a78; display: block; background: rgba(255, 206, 27, .1); }
.add { color: var(--lime); display: block; background: rgba(200, 255, 61, .08); }
.pill { font-family: var(--f-mono); font-size: 10.5px; padding: 2px 7px; border-radius: 5px; background: var(--red); color: var(--ink); font-weight: 600; }
.pill.ok { background: var(--lime); }

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; }
  .story-visual-wrap { order: -1; position: sticky; top: var(--nav-h); z-index: 2; height: 52vh; }
  .story-visual { position: relative; top: 0; height: 52vh; min-height: 0; border-radius: 16px; }
  .story-step { min-height: 60vh; }
  .story-step:first-child { min-height: 48vh; }
  .sv-card { font-size: 11.5px; width: min(270px, 70%); padding: 10px 12px; }
  .sv-card pre { font-size: 10px; }
  .sv-map { display: none; }
}

/* ==========================================================================
   GRID — hub animation with REVENGE at the heart
   ========================================================================== */
.grid-section { overflow: hidden; }
.grid-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hub-wrap { position: relative; aspect-ratio: 1; max-width: 720px; width: 100%; margin-inline: auto; }
.hub { width: 100%; height: 100%; overflow: visible; }
.hub .spoke { stroke: rgba(var(--bone-rgb), .12); stroke-width: 1.2; }
.hub .orbit { fill: none; stroke: rgba(var(--bone-rgb), .08); stroke-dasharray: 2 8; }
.hub .rot-slow { transform-origin: 400px 400px; animation: spin 80s linear infinite; }
.hub .rot-rev { transform-origin: 400px 400px; animation: spin 40s linear infinite reverse; }
.hub .shield-ring { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 3 9; opacity: .6; }
.hub .node-tile { fill: var(--ink-3); stroke: rgba(var(--bone-rgb), .14); transition: stroke .3s, fill .3s; }
.hub .node:hover .node-tile { stroke: var(--red); fill: var(--ink-4); }
.hub .node-ico { fill: none; stroke: var(--bone); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hub .node-label { font-family: var(--f-mono); font-size: 13px; fill: var(--bone); text-anchor: middle; letter-spacing: .04em; }
.hub .core-glow { fill: url(#coreGlow); animation: breathe 3.2s ease-in-out infinite; transform-origin: 400px 400px; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
.hub .core { fill: var(--ink); stroke: var(--red); stroke-width: 2; }
.hub .core-label { font-family: var(--f-display); font-stretch: 112%; font-weight: 900; font-size: 19px; fill: var(--bone); text-anchor: middle; letter-spacing: .04em; }
.hub .core-sub { font-family: var(--f-mono); font-size: 10.5px; fill: var(--red); text-anchor: middle; letter-spacing: .2em; }
.hub .pkt-clean { fill: var(--lime); }
.hub .pkt-threat { fill: var(--red); }
.hub .blip { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; }
.hub-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.hub-legend span { display: inline-flex; align-items: center; gap: 8px; }
.hub-legend i { width: 9px; height: 9px; border-radius: 50%; }
.grid-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(var(--bone-rgb), .1); }
.grid-points li { padding: 18px 0; border-bottom: 1px solid rgba(var(--bone-rgb), .1); display: grid; grid-template-columns: 34px 1fr; gap: 6px 10px; }
.grid-points b { font-weight: 650; font-size: 16px; }
.grid-points li > span:not(.n) { grid-column: 2; color: var(--muted); font-size: 15px; }
.grid-points .n { grid-column: 1; grid-row: 1 / span 2; font-family: var(--f-mono); color: var(--red); font-size: 12.5px; padding-top: 3px; }
@media (max-width: 960px) { .grid-layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   HUMANS / AGENTS
   ========================================================================== */
.ha-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: var(--head-gap); }
.ha-toggle { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bone-2); border: 1px solid rgba(var(--ink-rgb), .1); }
.ha-toggle button { position: relative; z-index: 1; border: 0; background: transparent; padding: 11px 20px; border-radius: 999px; font-weight: 650; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: color .35s; color: var(--muted-light); }
.ha-toggle button[aria-selected="true"] { color: var(--bone); }
.ha-toggle button svg { width: 17px; height: 17px; }
.ha-toggle .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.ha-stage { position: relative; display: grid; }
.ha-pane { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .55s var(--ease-out), filter .45s; }
.ha-pane[aria-hidden="true"] { opacity: 0; transform: translateY(16px); filter: blur(6px); pointer-events: none; visibility: hidden; }
/* the hidden pane fades out on top without taking space, so the section fits the pane that's showing
   (the markdown pane is taller and used to leave a big gap under the cards) */
.ha-pane[aria-hidden="true"] { position: absolute; inset: 0 0 auto 0; }
.ha-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ha-card { background: var(--ink); color: var(--bone); border-radius: var(--radius-lg); padding: 30px; min-height: 360px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.ha-card:nth-child(2) { background: var(--red); color: var(--ink); }
.ha-card:nth-child(3) { background: var(--bone-2); color: var(--ink); border: 1px solid rgba(var(--ink-rgb), .1); }
.ha-card .big { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(3.2rem, 5.8vw, 5.4rem); line-height: .9; letter-spacing: -.03em; margin-bottom: auto; }
.ha-card h3 { font-family: var(--f-display); font-stretch: 110%; font-size: 1.3rem; margin: 30px 0 8px; }
.ha-card p { margin: 0; font-size: 15.5px; opacity: .78; }
.ha-card .viz { position: absolute; right: -30px; top: -30px; width: 190px; height: 190px; opacity: .2; }
.ha-md { border-radius: var(--radius-lg); background: #131313; color: #c6cad1; border: 1px solid rgba(var(--ink-rgb), .2); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(var(--ink-rgb), .6); }
.ha-md-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-bottom: 1px solid rgba(var(--bone-rgb), .07); font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.ha-md-bar .acts { display: flex; gap: 8px; }
.ha-md-bar .btn { color: var(--bone); }
.ha-md pre { margin: 0; padding: 24px 22px 28px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; max-height: 520px; overflow: auto; }
.ha-md .mh { color: var(--red); font-weight: 600; } .ha-md .mb { color: var(--bone); font-weight: 600; }
.ha-md .ml { color: var(--lime); } .ha-md .mq { color: #7d838d; }
.ha-note { margin-top: 18px; font-size: 14px; color: var(--muted-light); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ha-note code { font-family: var(--f-mono); font-size: 12.5px; background: var(--bone-2); padding: 2px 7px; border-radius: 6px; }
@media (max-width: 900px) { .ha-cards { grid-template-columns: 1fr; } .ha-card { min-height: 260px; } }

/* ==========================================================================
   COMPARE
   ========================================================================== */
.compare-scroll { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid rgba(var(--bone-rgb), .1); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare th, .compare td { padding: 18px 20px; text-align: center; border-bottom: 1px solid rgba(var(--bone-rgb), .07); vertical-align: middle; }
.compare thead th { font-family: var(--f-display); font-stretch: 108%; font-weight: 750; font-size: 15px; padding-block: 24px; color: var(--muted); }
.compare tbody th { text-align: left; font-weight: 550; color: var(--bone); width: 32%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .us { background: rgba(255, 206, 27, .07); position: relative; }
.compare thead .us { color: var(--bone); background: var(--red); color: var(--ink); font-size: 18px; font-stretch: 125%; font-weight: 900; letter-spacing: .02em; }
.compare tbody tr:hover > * { background-color: rgba(var(--bone-rgb), .025); }
.compare tbody tr:hover > .us { background: rgba(255, 206, 27, .12); }
.yes, .no, .part { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.yes { background: var(--lime); color: var(--ink); } .no { background: rgba(var(--bone-rgb), .06); color: #6a7078; } .part { background: rgba(255, 178, 36, .16); color: var(--amber); }
.yes svg, .no svg, .part svg { width: 14px; height: 14px; }
.us .yes { background: var(--red); }
.compare .txt { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.compare .us .txt { color: var(--bone); font-weight: 600; }
.compare-legend { display: flex; gap: 20px; margin-top: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.compare-legend span { display: inline-flex; gap: 8px; align-items: center; }
.compare-legend .yes, .compare-legend .no, .compare-legend .part { width: 20px; height: 20px; }
.compare-legend svg { width: 10px; height: 10px; }

/* ==========================================================================
   INTEGRATIONS
   ========================================================================== */
.integ { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.integ .btn { margin-top: 34px; }
.integ-grid { display: grid; gap: 22px; mask-image: linear-gradient(90deg, #000 62%, transparent 98%); -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 98%); }
.integ-row { display: flex; gap: 22px; }
.integ-row:nth-child(even) { padding-left: 52px; }
.tile {
  flex: none; width: 82px; height: 82px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(180deg, #222222, #1a1a1a); border: 1px solid rgba(var(--bone-rgb), .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px -14px rgba(0, 0, 0, .8);
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s;
}
.tile img { width: 38px; height: 38px; object-fit: contain; }
.tile .fallback { font-family: var(--f-mono); font-weight: 600; font-size: 13px; color: var(--bone); }
.tile:hover { transform: translateY(-4px) scale(1.04); border-color: rgba(255, 206, 27, .5); box-shadow: 0 20px 40px -16px rgba(255, 206, 27, .4); }
.integ-row { animation: drift 9s ease-in-out infinite alternate; }
.integ-row:nth-child(2) { animation-delay: -2s; } .integ-row:nth-child(3) { animation-delay: -4s; } .integ-row:nth-child(4) { animation-delay: -6s; }
/* Drift right, into the faded edge. The mask on .integ-grid clips to its box, so drifting left cut off the first tile. */
@keyframes drift { to { transform: translateX(18px); } }
.integ-grid { padding-block: 10px 30px; margin-block: -10px -30px; }  /* room for the hover lift and shadows inside the mask */
@media (max-width: 960px) { .integ { grid-template-columns: 1fr; } .integ-grid { overflow: hidden; } .tile { width: 66px; height: 66px; border-radius: 15px; } .tile img { width: 30px; height: 30px; } .integ-row { gap: 14px; } .integ-grid { gap: 14px; } }

/* ==========================================================================
   TEAM (light)
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.member { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: var(--bone); isolation: isolate; }
.member-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.member-art svg { width: 100%; height: 100%; transition: transform 1s var(--ease-out); }
.member:hover .member-art svg { transform: scale(1.06); }
.member-art .handle { position: absolute; left: 18px; top: 16px; font-family: var(--f-mono); font-size: 13px; color: var(--bone); background: rgba(var(--ink-rgb), .6); padding: 4px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.member-body { padding: 20px 22px 24px; }
.member h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.25rem; margin: 0; }
.member .role { color: var(--red); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 12px; }
.member p { margin: 0; color: var(--muted); font-size: 15px; }
.member .certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.member .certs span { font-family: var(--f-mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(var(--bone-rgb), .16); }
.member.join { background: var(--red); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 28px; min-height: 100%; text-decoration: none; }
.member.join h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; }
.member.join p { color: var(--ink); opacity: .78; margin-top: 12px; }
.member.join .go { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--red); align-items: center; justify-content: center; transition: transform .5s var(--ease-out); align-self: flex-end; }
.member.join:hover .go { transform: rotate(-45deg) scale(1.08); }
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); }
.faq-list { border-top: 1px solid rgba(var(--bone-rgb), .12); }
.faq-list details { border-bottom: 1px solid rgba(var(--bone-rgb), .12); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(var(--bone-rgb), .2); position: relative; transition: transform .4s var(--ease-out), background-color .3s; }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-list summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease-out); }
.faq-list details[open] summary .pm { background: var(--red); border-color: var(--red); color: var(--ink); }
.faq-list details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-list .ans { padding: 0 50px 26px 0; color: var(--muted); }
.faq-list .ans p { margin: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA (red)
   ========================================================================== */
.cta { overflow: hidden; }
.cta .h2 { font-size: clamp(2.6rem, 7vw, 6.4rem); max-width: 14ch; font-stretch: 120%; font-weight: 900; text-transform: uppercase; line-height: .9; }
.cta .lede { color: rgba(var(--ink-rgb), .75); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-mark { position: absolute; right: -6%; bottom: -18%; width: min(52vw, 640px); opacity: .14; pointer-events: none; }
.cta-mark path { stroke: var(--ink); }

/* ==========================================================================
   FOOTER — giant wordmark
   ========================================================================== */
.footer { background: var(--ink); color: var(--bone); padding-top: var(--section-y); overflow: hidden; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 36px; }
.footer-brand p { color: var(--muted); max-width: 32ch; margin: 16px 0 22px; font-size: 15px; }
.footer h2 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; font-size: 15px; opacity: .85; transition: opacity .2s, color .2s; }
.footer a:hover { opacity: 1; color: var(--red); }
.privacy-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font-size: 15px; opacity: .85; text-align: left; }
.privacy-link:hover { color: var(--red); opacity: 1; }
.privacy-link svg { width: 30px; height: 14px; flex: none; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--bone-rgb), .14); }
.socials svg { width: 16px; height: 16px; }
.footer-ir { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: var(--head-gap); padding: 20px 24px; border: 1px solid rgba(255, 206, 27, .4); border-radius: var(--radius); background: rgba(255, 206, 27, .06); }
.footer-ir p { margin: 0; font-weight: 600; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.footer-ir .mono { color: var(--red); font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; font-size: 13.5px; color: var(--muted); }
.footer-bottom .status { display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 12px; }
.footer-bottom .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.wordmark { margin-top: var(--head-gap); position: relative; }
.wordmark canvas { display: block; width: 100%; aspect-ratio: 3174 / 712; color: var(--red); }
.wordmark text { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; fill: var(--bone); }
.wordmark .wm-fill { clip-path: inset(var(--wm, 100%) 0 0 0); fill: var(--red); }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ==========================================================================
   OVERLAYS — under attack drawer, nudge, consent, privacy modal
   ========================================================================== */
.scrim { position: fixed; inset: 0; z-index: 140; background: rgba(4, 5, 6, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(520px, 100%); background: var(--ink-2); color: var(--bone);
  border-left: 1px solid rgba(255, 206, 27, .45); transform: translateX(102%); transition: transform .55s var(--ease-out); overflow-y: auto;
  padding: 28px clamp(20px, 4vw, 36px) 40px; visibility: hidden;
}
.drawer.on { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.drawer-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); display: inline-flex; gap: 8px; align-items: center; }
.x-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(var(--bone-rgb), .18); background: transparent; display: grid; place-items: center; }
.x-btn:hover { border-color: var(--red); color: var(--red); }
.drawer h2 { font-family: var(--f-display); font-stretch: 118%; font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: .98; margin: 0 0 14px; text-transform: uppercase; }
.drawer > p { color: var(--muted); margin: 0 0 24px; }
.hotline { display: grid; gap: 10px; margin-bottom: 26px; }
.hotline a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; text-decoration: none; background: var(--red); color: var(--ink); font-weight: 700; font-size: 18px; transition: transform .3s var(--ease-out); }
.hotline a.alt { background: var(--ink-4); color: var(--bone); font-size: 15px; font-weight: 600; }
.hotline a:hover { transform: translateY(-2px); }
.hotline small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; display: block; font-weight: 500; }
.ir-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: s; }
.ir-steps li { counter-increment: s; font-size: 12.5px; padding: 10px; border-radius: 10px; background: var(--ink-3); border: 1px solid rgba(var(--bone-rgb), .06); }
.ir-steps li::before { content: "0" counter(s); display: block; font-family: var(--f-mono); color: var(--red); font-size: 11px; margin-bottom: 4px; }
.drawer form { display: grid; gap: 12px; }
.drawer .divider { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 14px; display: flex; align-items: center; gap: 12px; }
.drawer .divider::after { content: ""; flex: 1; height: 1px; background: rgba(var(--bone-rgb), .1); }

.nudge {
  position: fixed; right: 20px; bottom: 20px; z-index: 120; width: min(380px, calc(100% - 40px));
  background: var(--bone); color: var(--ink); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
  transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none; transition: transform .55s var(--ease-out), opacity .35s;
}
.nudge.on { transform: none; opacity: 1; pointer-events: auto; }
.nudge-top { display: flex; gap: 12px; align-items: flex-start; }
.nudge-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--red); display: grid; place-items: center; }
.nudge h3 { margin: 0; font-family: var(--f-display); font-stretch: 108%; font-size: 1.05rem; line-height: 1.2; }
.nudge p { margin: 6px 0 0; font-size: 14px; color: var(--muted-light); }
.nudge .x-btn { width: 30px; height: 30px; margin-left: auto; flex: none; border-color: rgba(var(--ink-rgb), .15); }
.nudge-progress { display: flex; gap: 4px; margin: 14px 0; }
.nudge-progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(var(--ink-rgb), .12); }
.nudge-progress i.done { background: var(--red); }
.nudge .btn { width: 100%; }

.consent {
  position: fixed; right: 20px; bottom: 20px; z-index: 130; width: min(440px, calc(100% - 40px)); background: var(--ink-3); color: var(--bone);
  border: 1px solid rgba(var(--bone-rgb), .12); border-radius: 18px; padding: 20px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8);
  transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease-out), opacity .35s; pointer-events: none;
}
.consent.on { transform: none; opacity: 1; pointer-events: auto; }
.consent p { margin: 0 0 14px; font-size: 14px; color: rgba(var(--bone-rgb), .8); }
.consent .row { display: flex; gap: 8px; flex-wrap: wrap; }
.consent .row .btn { flex: 1; }
.consent .link { background: none; border: 0; padding: 0; margin-top: 12px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.modal {
  position: fixed; left: 50%; top: 50%; z-index: 150; width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--ink-2); color: var(--bone); border: 1px solid rgba(var(--bone-rgb), .12); border-radius: 22px; padding: 28px;
  transform: translate(-50%, -46%) scale(.97); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .45s var(--ease-out), opacity .3s;
}
.modal.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; visibility: visible; }
.modal h2 { font-family: var(--f-display); font-stretch: 112%; font-size: 1.6rem; margin: 0; }
.modal .intro { color: var(--muted); font-size: 14.5px; margin: 10px 0 20px; }
.pref { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-top: 1px solid rgba(var(--bone-rgb), .08); }
.pref b { display: block; font-size: 15px; } .pref span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--ink-4); border: 1px solid rgba(var(--bone-rgb), .15); transition: background-color .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bone); transition: transform .3s var(--ease-out); }
.switch input:checked + i { background: var(--red); border-color: var(--red); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--ink); }
.switch input:disabled + i { opacity: .55; }
.switch input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 3px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* ---------- scroll reveals ---------- */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-scale { opacity: 0; transform: scale(.94) translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); }
.js .rv-scale.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv, .js .rv-scale { opacity: 1; transform: none; }
  .story-step { opacity: 1; filter: none; }
}

/* compact overlays on phones */
@media (max-width: 560px) {
  .consent { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 14px; border-radius: 14px; }
  .consent p { font-size: 13px; margin-bottom: 10px; }
  .consent .row .btn { min-height: 38px; font-size: 13.5px; padding: 0 10px; }
  .consent .link { margin-top: 8px; }
  .nudge { right: 10px; bottom: 10px; width: calc(100% - 20px); }
  .sv-head > span:first-child { display: none; }
  .sv-head { justify-content: center; }
}

/* ==========================================================================
   MUSTARD THEME: --red is the brand accent (#ffce1b); real red only for danger
   ========================================================================== */
::selection { background: var(--red); color: var(--ink); }
/* accent on cream sections: highlighter instead of yellow text */
.theme-light .eyebrow { color: var(--accent-ink); }
.theme-light .h2 em { color: inherit; background: linear-gradient(transparent 60%, var(--red) 60% 92%, transparent 92%); padding-inline: .06em; }
.theme-light .svc-icon { color: var(--accent-ink); }
.theme-light .svc:hover .svc-icon { color: var(--red); }
.theme-light .ha-note code { background: var(--bone-3); }
.nav[data-theme="light"] .mark-accent { fill: var(--accent-ink); }
/* mustard CTA section */
.theme-red .h2 em { color: var(--ink); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .1em; }
.nav[data-theme="red"] { --nav-bg: rgba(255, 206, 27, .94); }
.nav[data-theme="red"] .brand .mark-accent { fill: var(--ink); }
.cta .lede { color: rgba(var(--ink-rgb), .78); }
/* danger keeps red */
.btn-attack { --fg: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.btn-attack .pulse { animation-name: pulseDanger; }
@keyframes pulseDanger { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 61, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 77, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 61, 0); } }
.nav[data-theme="red"] .btn-attack { --fg: var(--danger); }
.sev.crit { background: var(--danger); }
.hub .pkt-threat { fill: var(--danger); }
.hub .blip { stroke: var(--danger); }
.drawer { border-left-color: rgba(255, 77, 61, .45); }
.drawer-tag { color: var(--danger); }
.hotline a { background: var(--danger); color: #fff; }
.footer-ir { border-color: rgba(255, 77, 61, .4); background: rgba(255, 77, 61, .06); }
.footer-ir .mono { color: var(--danger); }
.footer-ir .btn-red { --bg: var(--danger); --fg: #fff; }
.qerror { color: var(--danger); }

/* ==========================================================================
   CARD-GRID OUTLINES: dashed frames with hollow squares at every corner
   ========================================================================== */
:root { --ol: rgba(var(--bone-rgb), .2); --olsq: rgba(var(--bone-rgb), .45); --olbg: var(--ink); }
.theme-dark-2 { --olbg: var(--ink-2); }
.theme-light { --ol: rgba(var(--ink-rgb), .22); --olsq: rgba(var(--ink-rgb), .45); --olbg: var(--bone); }


/* four hollow corner squares, centred on the corners */
.ol:not(.story-visual), .ol-cell { position: relative; }
.ol::after, .ol-cell::after {
  content: ""; position: absolute; inset: -4px; pointer-events: none; z-index: 4;
  background:
    linear-gradient(var(--olbg), var(--olbg)) 1px 1px / 6px 6px no-repeat,
    linear-gradient(var(--olbg), var(--olbg)) calc(100% - 1px) 1px / 6px 6px no-repeat,
    linear-gradient(var(--olbg), var(--olbg)) 1px calc(100% - 1px) / 6px 6px no-repeat,
    linear-gradient(var(--olbg), var(--olbg)) calc(100% - 1px) calc(100% - 1px) / 6px 6px no-repeat,
    linear-gradient(var(--olsq), var(--olsq)) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--olsq), var(--olsq)) 100% 0 / 8px 8px no-repeat,
    linear-gradient(var(--olsq), var(--olsq)) 0 100% / 8px 8px no-repeat,
    linear-gradient(var(--olsq), var(--olsq)) 100% 100% / 8px 8px no-repeat;
}
.ol { border: 1px dashed var(--ol) !important; border-radius: 0 !important; }
/* blocks that clip their content: squares sit just inside the corners */
.ol-in::after { inset: 0; }

/* grids: dashed lines between cells, squares at every intersection */
.services-grid.ol, .metrics.ol { gap: 0; background: none; overflow: visible; border-width: 1px 0 0 1px !important; }
.services-grid .svc, .metrics .metric { position: relative; overflow: visible; border-right: 1px dashed var(--ol); border-bottom: 1px dashed var(--ol); }
.services-grid.ol::after, .metrics.ol::after { display: none; }
.services-grid .svc::after, .metrics .metric::after {
  content: ""; position: absolute; inset: -4px -4px -4px -4px; pointer-events: none; z-index: 4;
  background:
    linear-gradient(var(--olbg), var(--olbg)) 1px 1px / 6px 6px no-repeat,
    linear-gradient(var(--olbg), var(--olbg)) calc(100% - 1px) 1px / 6px 6px no-repeat,
    linear-gradient(var(--olbg), var(--olbg)) 1px calc(100% - 1px) / 6px 6px no-repeat,
    linear-gradient(var(--olbg), var(--olbg)) calc(100% - 1px) calc(100% - 1px) / 6px 6px no-repeat,
    linear-gradient(var(--olsq), var(--olsq)) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--olsq), var(--olsq)) 100% 0 / 8px 8px no-repeat,
    linear-gradient(var(--olsq), var(--olsq)) 0 100% / 8px 8px no-repeat,
    linear-gradient(var(--olsq), var(--olsq)) 100% 100% / 8px 8px no-repeat;
}
.metrics .metric { background: transparent; }
.services-grid .svc { background: transparent; }

/* humans/agents cards sit inside one frame */
.ha-cards.ol { padding: 16px; }
.ha-card { border-radius: 0; }

/* comparison table: frame on the wrapper, table loses its own border */
.compare-scroll { border: 0; border-radius: 0; }
.term, .story-visual, .footer-ir { border-radius: 0 !important; }

/* ==========================================================================
   PAGE OUTLINE (section level): dashed rails, dotted gutters, seams
   ========================================================================== */
:root { --ln: rgba(140, 140, 140, .3); --sq: rgba(140, 140, 140, .55); --rail: max(8px, calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter) - 28px)); }
body { position: relative; }
.rails {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(rgba(140, 140, 140, .2) 1px, transparent 1.6px) 0 0 / 12px 12px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 var(--rail), transparent var(--rail) calc(100% - var(--rail)), #000 calc(100% - var(--rail)));
          mask-image: linear-gradient(90deg, #000 0 var(--rail), transparent var(--rail) calc(100% - var(--rail)), #000 calc(100% - var(--rail)));
}
body::before {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, var(--ln) 0 6px, transparent 6px 12px) left var(--rail) top 0 / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ln) 0 6px, transparent 6px 12px) right var(--rail) top 0 / 1px 100% no-repeat;
}
.section:not(.hero)::after, .marquee::after, .footer::after {
  content: ""; position: absolute; top: -4px; left: calc(var(--rail) - 4px); right: calc(var(--rail) - 4px); height: 8px; z-index: 7; pointer-events: none;
  background:
    linear-gradient(var(--olbg, var(--ink)), var(--olbg, var(--ink))) 1px 1px / 6px 6px no-repeat,
    linear-gradient(var(--olbg, var(--ink)), var(--olbg, var(--ink))) calc(100% - 1px) 1px / 6px 6px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 100% 0 / 8px 8px no-repeat,
    repeating-linear-gradient(90deg, var(--ln) 0 6px, transparent 6px 12px) 0 4px / 100% 1px no-repeat;
}
.theme-red { --olbg: var(--red); }
.marquee { position: relative; overflow: visible; }
.footer { position: relative; overflow: visible; }
.nav { border-bottom-style: dashed; }
.nav.scrolled { --nav-line: var(--ln); }

/* ==========================================================================
   WHOLE-PAGE HUMANS / AGENTS MODE
   ========================================================================== */
.mode-switch {
  position: fixed; left: 14px; top: calc(var(--nav-h) + 14px); z-index: 95;
  display: inline-flex; padding: 4px; border-radius: 999px; isolation: isolate;
  background: rgba(var(--card-rgb), .88); border: 1px solid rgba(var(--bone-rgb), .14); color: var(--bone);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .6);
}
.mode-switch button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: rgba(var(--bone-rgb), .65); transition: color .3s; }
.mode-switch button[aria-pressed="true"] { color: var(--ink); }
.mode-switch button svg { width: 15px; height: 15px; }
.mode-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--red); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
@media (max-width: 1400px) { .mode-switch button span { display: none; } .mode-switch button { padding: 8px 10px; } }
@media (max-width: 560px) { .mode-switch { top: auto; bottom: 14px; } }

.agent-view { display: none; padding-top: calc(var(--nav-h) + var(--section-y)); min-height: 100vh; }
[data-mode="agents"] .agent-view { display: block; }
[data-mode="agents"] .nudge { display: none !important; }
.agent-view .ha-md { border-radius: 0; overflow: visible; }
.agent-view .ha-md pre { max-height: none; font-size: 14px; padding: 28px clamp(18px, 3vw, 40px) 40px; }
.agent-view .ha-md-bar { position: sticky; top: var(--nav-h); z-index: 5; background: #131313; }
.ha-md-bar > span:first-child { display: inline-flex; align-items: center; gap: 8px; }

/* back-to-top + overlay placement: consent bottom-left, nudge above the to-top button */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 125; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: var(--ink); border: 0;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease-out), background-color .25s;
}
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--bone); transform: translateY(-2px); }
[data-mode="agents"] .to-top { bottom: 20px; }
.nudge { bottom: 80px; }
@media (min-width: 700px) { .consent { right: auto; left: 20px; } }
@media (max-width: 560px) { .to-top { right: 12px; bottom: 12px; width: 44px; height: 44px; } .nudge { bottom: 66px; } }

/* "back to the form" flash must not undo the load-in (it replaced the animation, leaving opacity 0) */
.qform.flash { opacity: 1; transform: none; }
/* reminder popup: bottom centre, clear of the back-to-top button */
.nudge { left: 50%; right: auto; bottom: 20px; transform: translate(-50%, 24px) scale(.96); }
.nudge.on { transform: translate(-50%, 0); }
@media (max-width: 560px) { .nudge { bottom: 66px; width: calc(100% - 24px); } }

/* reminder popup: wide and short (text left, button right, progress bar along the bottom) */
.nudge {
  width: min(760px, calc(100% - 40px)); padding: 14px 52px 14px 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; row-gap: 10px;
}
.nudge-top { grid-column: 1; align-items: center; }
.nudge-top > div p { margin-top: 2px; }
.nudge .x-btn { position: absolute; top: 50%; right: 12px; margin: -15px 0 0; }
.nudge .btn { grid-column: 2; grid-row: 1; width: auto; }
.nudge-progress { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) {
  .nudge { grid-template-columns: 1fr; padding: 14px 44px 14px 14px; }
  .nudge .btn { grid-column: 1; grid-row: auto; width: 100%; }
  .nudge .x-btn { top: 14px; margin: 0; }
  .nudge-top > div p { display: none; }
}
.nudge { width: min(680px, calc(100% - 40px)); }
@media (min-width: 1300px) { .consent-on .nudge { left: calc(50% + 240px); width: min(640px, calc(100% - 560px)); } }
.drawer { overscroll-behavior: contain; } .modal, .mobile-menu { overscroll-behavior: contain; }

/* ==========================================================================
   ANNOUNCEMENT BAR: in normal flow at the very top, not sticky
   ========================================================================== */
:root { --bar-h: 40px; --bar-off: var(--bar-h); }
.no-bar { --bar-h: 0px; --bar-off: 0px; }
.no-bar .announce { display: none; }
.announce {
  position: relative; z-index: 101; min-height: var(--bar-h); display: flex; align-items: center; justify-content: center;
  padding: 6px 48px; background: var(--red); color: var(--ink); font-size: 14px; text-align: center;
}
.announce p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; line-height: 1.35; }
.announce-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--red); }
.announce a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
.announce a:hover .arrow { transform: translateX(3px); }
.announce .arrow { transition: transform .3s var(--ease-out); }
.announce-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.announce-x:hover { background: rgba(var(--ink-rgb), .12); }
.nav { top: var(--bar-off); }
.mode-switch { top: calc(var(--nav-h) + 14px + var(--bar-off)); }
.mobile-menu { top: calc(var(--nav-h) + var(--bar-off)); }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (max-width: 640px) { .announce { padding-inline: 40px; font-size: 13px; } }
@media (max-width: 560px) { .mode-switch { top: auto; } }

/* humans / agents switch: stacked vertically */
.mode-switch { flex-direction: column; align-items: stretch; border-radius: 18px; }
.mode-switch button { justify-content: flex-start; border-radius: 14px; }
.mode-thumb { left: 4px; right: 4px; top: 4px; bottom: auto; border-radius: 14px; transition: transform .45s var(--ease-out), height .45s var(--ease-out); }
@media (max-width: 1400px) { .mode-switch { border-radius: 999px; } .mode-switch button, .mode-thumb { border-radius: 999px; } .mode-switch button { justify-content: center; } }

/* humans / agents switch: tall slim tab, sideways labels */
.mode-switch { border-radius: 999px; padding: 4px; }
.mode-switch button, .mode-thumb { border-radius: 999px; }
.mode-switch button { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 8px; font-size: 13px; letter-spacing: .02em; }
.mode-switch button span { display: inline !important; writing-mode: vertical-rl; transform: rotate(180deg); }
@media (max-width: 1400px) { .mode-switch button { padding: 14px 8px; } }
@media (max-width: 560px) { .mode-switch button { padding: 10px 7px; gap: 6px; font-size: 12px; } }

/* humans / agents tab lives in the right gutter (between the dashed rail and the page edge) */
.mode-switch { right: auto; left: max(6px, calc(var(--rail) - 57px)); }
@media (max-width: 560px) { .mode-switch { left: 12px; right: auto; bottom: 14px; } }
/* keep nav links on one line; collapse to the burger before they would wrap */
.nav-links a { white-space: nowrap; }
@media (max-width: 1200px) {
  .nav-links { display: none; } .nav-actions { margin-left: auto; } .burger { display: inline-flex; } .nav .btn-demo { display: none; }
  .mobile-menu { display: block; position: fixed; inset: calc(var(--nav-h) + var(--bar-off)) 0 0 0; background: var(--ink); color: var(--bone); z-index: 99;
    padding: 24px var(--gutter) 40px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease-out); overflow-y: auto; }
  .nav.menu-open + .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu ul { list-style: none; margin: 0 0 28px; padding: 0; }
  .mobile-menu li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(var(--bone-rgb), .08); font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: 26px; text-decoration: none; }
  .mobile-menu .btn { width: 100%; margin-top: 10px; }
}
/* gutter too narrow for the tab below ~1380px: float it in the bottom-left corner instead */
@media (max-width: 1380px) { .mode-switch { top: auto; left: 12px; bottom: 14px; } }

/* ==========================================================================
   LIGHT THEME: the palette flips, so dark sections turn light and the cream
   sections turn dark (same alternating rhythm, inverted). Mustard stays.
   ========================================================================== */
html.light {
  color-scheme: light;
  --ink: #f5f2eb; --ink-2: #eeeae1; --ink-3: #ffffff; --ink-4: #e5e0d5;
  --bone: #171717; --bone-2: #232323; --bone-3: #2e2e2e;
  --ink-rgb: 245, 242, 235; --bone-rgb: 23, 23, 23; --card-rgb: 255, 255, 255;
  --muted: #62666d; --muted-light: #a39f94;
  --accent-ink: #ffce1b;
  --ln: rgba(23, 23, 23, .22); --sq: rgba(23, 23, 23, .45);
  --ol: rgba(23, 23, 23, .2); --olsq: rgba(23, 23, 23, .45);
}
html.light .theme-light { --ol: rgba(233, 228, 217, .2); --olsq: rgba(233, 228, 217, .45); }
/* anything sitting on mustard keeps dark text */
html.light :is(.theme-red, .nav[data-theme="red"], .announce, .to-top, .ha-card:nth-child(2), .member.join, .mode-thumb) { --ink: #151515; --ink-rgb: 21, 21, 21; --bone: #e9e4d9; --bone-rgb: 233, 228, 217; }
html.light :is(.btn-red, .btn:hover, .mode-switch button[aria-pressed="true"], .pill, .sev, .compare thead .us, .yes, .sv-stages span, .faq-list details[open] summary .pm, .announce-tag) { --ink: #151515; }
html.light .announce-tag { color: var(--red); background: #151515; }
html.light .btn:hover { color: #151515; }
html.light .btn-ink { --bg: #151515; --fg: #e9e4d9; }
/* mustard text on light surfaces: darker mustard, highlighter for headline accents */
html.light :is(.theme-dark, .theme-dark-2, .footer) :is(.eyebrow, .story-step .k, .grid-points .n, .member .role, .metric .unit) { color: #7d5d00; }
html.light :is(.theme-dark, .theme-dark-2) :is(.h2 em, .h1 em) { color: inherit; background: linear-gradient(transparent 60%, var(--red) 60% 92%, transparent 92%); padding-inline: .06em; }
html.light .story-step li::before, html.light .footer a:hover { color: #7d5d00; }
html.light .hero::before { background: radial-gradient(60% 55% at 78% 42%, rgba(255, 206, 27, .22), transparent 70%); }
/* code surfaces (terminal, markdown) stay dark in both themes */
html.light .agent-view .ha-md-bar { color: #8b9099; }
html.light .mode-switch, html.light .theme-switch { background: rgba(255, 255, 255, .9); border-color: rgba(23, 23, 23, .12); }
html.light .mode-switch button, html.light .theme-switch button { color: rgba(23, 23, 23, .6); }
html.light .wordmark canvas { color: #d9a900; }

/* ==========================================================================
   THEME SWITCH: same vertical tab as the humans/agents switch, bottom of the left gutter
   ========================================================================== */
.theme-switch {
  position: fixed; z-index: 95; bottom: 18px; left: max(6px, calc(var(--rail) - 57px));
  display: inline-flex; flex-direction: column; padding: 4px; border-radius: 999px; isolation: isolate;
  background: rgba(34, 34, 34, .88); border: 1px solid rgba(233, 228, 217, .14); color: var(--bone);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .6);
}
.theme-switch button { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: transparent; padding: 12px 8px; border-radius: 999px; font-size: 13px; font-weight: 650; letter-spacing: .02em; color: rgba(233, 228, 217, .65); transition: color .3s; }
.theme-switch button span { writing-mode: vertical-rl; transform: rotate(180deg); }
.theme-switch button svg { width: 15px; height: 15px; }
.theme-switch button[aria-pressed="true"] { color: #151515; }
.theme-thumb { position: absolute; z-index: 0; top: 4px; left: 4px; right: 4px; border-radius: 999px; background: var(--red); transition: transform .45s var(--ease-out), height .45s var(--ease-out); }
/* narrow screens: both tabs float bottom-left, side by side */
@media (max-width: 1380px) { .theme-switch { left: 70px; bottom: 14px; } }
@media (max-width: 560px) {
  .theme-switch { left: 62px; }
  .theme-switch button { padding: 9px 7px; gap: 6px; font-size: 12px; }
  .theme-switch button span { display: none; }
}
/* theme switch: icons only */
.theme-switch button { padding: 10px; }
.theme-switch button svg { width: 17px; height: 17px; }
@media (max-width: 560px) { .theme-switch button { padding: 8px; } }

/* light theme fixes: white "reversed" framework logos become dark; reminder popup keeps its cream card */
html.light .marquee-track .fw > img, html.light .marquee-track .fw img.wm { filter: invert(1); }
html.light .nudge { --ink: #151515; --ink-rgb: 21, 21, 21; --bone: #e9e4d9; --bone-rgb: 233, 228, 217; --muted-light: #5d5a52; background: #fffdf7; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35); }

/* ==========================================================================
   SWITCHES HIDE IN THE LEFT GUTTER: revealed on hover (desktop), peek once on load
   ========================================================================== */
@media (hover: hover) and (min-width: 1381px) {
  .mode-switch, .theme-switch { opacity: 0; transform: translateX(-14px); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
  .gutter-on .mode-switch, .gutter-on .theme-switch,
  .switch-peek .mode-switch, .switch-peek .theme-switch,
  .mode-switch:focus-within, .theme-switch:focus-within { opacity: 1; transform: none; pointer-events: auto; }
}

/* agents mode, light theme: the full-page markdown reads as a light document */
html.light .agent-view .ha-md {
  --bone: #171717; --bone-rgb: 23, 23, 23; --ink-rgb: 245, 242, 235;
  background: #fffdf8; color: #3a3a3a; border-color: var(--ol); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .18);
}
html.light .agent-view .ha-md-bar { background: #f6f2e9; color: #62666d; border-bottom-color: rgba(23, 23, 23, .1); }
html.light .agent-view .ha-md-bar .btn { color: #171717; }
html.light .agent-view .ha-md .mh { color: #7d5d00; }
html.light .agent-view .ha-md .mb { color: #171717; }
html.light .agent-view .ha-md .ml { color: #1f7a45; }
html.light .agent-view .ha-md .mq { color: #74706a; }

/* ==========================================================================
   UNIFORM THEME: every component follows the global light/dark mode
   ========================================================================== */
/* components that were built for cream sections */
.member { background: var(--ink-3); }
.ha-card { background: var(--ink-3); }
.ha-card:nth-child(3) { background: var(--ink-4); color: var(--bone); border: 0; }
.ha-toggle { background: rgba(var(--bone-rgb), .05); border-color: rgba(var(--bone-rgb), .12); }
.ha-toggle button { color: var(--muted); }
.ha-toggle button[aria-selected="true"] { color: #151515; }
.ha-toggle .thumb { background: var(--red); }
.svc::before { background: var(--ink-3); }
.svc:hover { color: var(--bone); }
.svc-num { color: var(--muted); }

/* light mode: code surfaces become light documents too */
html.light .term { background: #fffdf8; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .25); }
html.light .term-bar { background: #f6f2e9; border-bottom-color: rgba(23, 23, 23, .08); }
html.light .term-bar i { background: #d8d3c8; }
html.light .term-body { color: #4a4a4a; }
html.light .term-body .p, html.light .term-body .w { color: #9a6f00; }
html.light .term-body .g, html.light .term-bar .live { color: #1f7a45; }
html.light .term-bar .live::before { background: #1f7a45; }
html.light .term-body .d { color: #8b877e; }
html.light .term-scan { background: linear-gradient(180deg, transparent, rgba(255, 206, 27, .14), transparent); }
html.light .ha-md { --bone: #171717; --bone-rgb: 23, 23, 23; background: #fffdf8; color: #3a3a3a; border-color: var(--ol); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .18); }
html.light .ha-md-bar { background: #f6f2e9; color: #62666d; border-bottom-color: rgba(23, 23, 23, .1); }
html.light .ha-md-bar .btn { color: #171717; }
html.light .ha-md .mh { color: #7d5d00; } html.light .ha-md .mb { color: #171717; }
html.light .ha-md .ml { color: #1f7a45; } html.light .ha-md .mq { color: #74706a; }
html.light .sv-card pre { background: #f6f2e9; color: #3a3a3a; }
html.light .sv-card .add { color: #1f7a45; } html.light .sv-card .del { color: #b3261e; }
html.light .svc-icon, html.light .member .role { color: #7d5d00; }
html.light .tile { background: #ffffff; border-color: rgba(23, 23, 23, .1); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25); }
html.light .tile img.mono { filter: invert(1); }
html.light .tile .fallback { color: #171717; }

/* ==========================================================================
   NAVBAR JOINS THE OUTLINE: same dashed line as the section seams, with the
   corner squares where the side rails meet it. The bar is opaque so the rails
   visibly stop at its edge instead of showing through.
   ========================================================================== */
.nav { border-bottom: 0; --nav-bg: rgba(var(--ink-rgb), .9); }
.nav.scrolled { --nav-bg: rgba(var(--ink-rgb), .9); }
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--ln) 0 6px, transparent 6px 12px);
}
.nav::after {
  content: ""; position: absolute; bottom: -4px; height: 8px; left: calc(var(--rail) - 4px); right: calc(var(--rail) - 4px); pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--ink), var(--ink)) 1px 1px / 6px 6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) calc(100% - 1px) 1px / 6px 6px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 100% 0 / 8px 8px no-repeat;
}
.nav.menu-open::after { display: none; }

/* navbar: logo stays on the content edge, CTAs end exactly on the right outline rail */
.nav-inner { max-width: none; padding-left: calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter)); padding-right: var(--rail); }
.nav-actions { margin-left: auto; }

/* side rails continue through the navbar and the announcement bar up to the top of the viewport */
.nav {
  background-image:
    repeating-linear-gradient(180deg, var(--ln) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(180deg, var(--ln) 0 6px, transparent 6px 12px);
  background-size: 1px 100%, 1px 100%;
  background-position: left var(--rail) top 0, right var(--rail) top 0;
  background-repeat: no-repeat;
}

/* ==========================================================================
   GUTTER TOOLS: language + theme stacked at the bottom of the left gutter
   ========================================================================== */
.gutter-tools { position: fixed; z-index: 95; bottom: 18px; left: max(6px, calc(var(--rail) - 57px)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gutter-tools .theme-switch { position: relative; left: auto; bottom: auto; }
.lang-switch {
  display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(34, 34, 34, .88); border: 1px solid rgba(233, 228, 217, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .6);
}
.lang-switch a { display: grid; place-items: center; width: 37px; height: 34px; border-radius: 999px; text-decoration: none; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: rgba(233, 228, 217, .65); transition: color .25s, background-color .25s; }
.lang-switch a:hover { color: #e9e4d9; }
.lang-switch a[aria-current="true"] { background: var(--red); color: #151515; }
html.light .lang-switch { background: rgba(255, 255, 255, .9); border-color: rgba(23, 23, 23, .12); }
html.light .lang-switch a { color: rgba(23, 23, 23, .6); }
html.light .lang-switch a:hover { color: #171717; }
html.light .lang-switch a[aria-current="true"] { color: #151515; }
@media (max-width: 1380px) { .gutter-tools { left: 70px; bottom: 14px; flex-direction: row; align-items: flex-end; } }
@media (max-width: 560px) { .gutter-tools { left: 62px; gap: 8px; } .lang-switch a { width: 33px; height: 30px; } }
@media (hover: hover) and (min-width: 1381px) {
  .lang-switch { opacity: 0; transform: translateX(-14px); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
  .gutter-on .lang-switch, .switch-peek .lang-switch, .lang-switch:focus-within { opacity: 1; transform: none; pointer-events: auto; }
}

/* announcement link in the bar */
.announce-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.announce-link:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   ANNOUNCEMENT ARTICLE
   ========================================================================== */
.post { padding-top: calc(var(--nav-h) + var(--bar-off) + var(--section-y)); }
.post-body { max-width: 720px; margin-inline: auto; }
.post-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.post-back:hover { color: var(--bone); }
.post-body .h2 { max-width: none; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.post-by { margin: 16px 0 0; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-body .lede { max-width: none; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--bone); margin-top: 28px; padding-bottom: 28px; border-bottom: 1px dashed var(--ln); }
.post-body h2 { font-family: var(--f-display); font-stretch: 108%; font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; margin: 44px 0 12px; }
.post-body p { margin: 0 0 14px; color: color-mix(in srgb, var(--bone) 78%, transparent); }
.post-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.post-body li { display: flex; gap: 12px; color: color-mix(in srgb, var(--bone) 82%, transparent); }
.post-body li::before { content: "→"; color: var(--red); font-family: var(--f-mono); flex: none; }
html.light .post-body li::before { color: #7d5d00; }
.post-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 32px; border-top: 1px dashed var(--ln); }
.post-back { display: flex; width: max-content; }
.post-by { margin-top: 22px; }
.post-body .post-by { margin: 22px 0 0; }

/* founder photos */
.member-art picture, .member-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-art img { transition: transform 1s var(--ease-out); }
.member:hover .member-art img { transform: scale(1.05); }

/* founder photos shown whole, at their own proportions (no crop) */
.member-art:has(> img) { aspect-ratio: auto; }
.member-art > img { height: auto; object-fit: initial; }
.member:hover .member-art > img { transform: none; }

/* founder photos: greyscale at rest, true colour on hover or keyboard focus.
   Only on devices that can hover, so touch users always see the real photo. */
@media (hover: hover) {
  .member-art img { filter: grayscale(1) contrast(1.05); }
  .member:hover .member-art img, .member:focus-within .member-art img { filter: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .member-art img { transition: transform 1s var(--ease-out), filter .4s var(--ease); }
}
.team-grid { align-items: start; }

.member-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-li { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--bone); border: 1px solid rgba(var(--bone-rgb), .16); transition: background-color .25s, color .25s, border-color .25s; }
.member-li svg { width: 15px; height: 15px; }
.member-li:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.member .certs span { background: var(--red); color: #151515; border-color: var(--red); font-weight: 600; letter-spacing: .04em; }

/* FAQ answers animate their height (see main.js); the +/- flips back as soon as closing starts */
.faq-list .ans { overflow: hidden; }
.faq-list details.closing summary .pm { background: transparent; border-color: rgba(var(--bone-rgb), .2); color: inherit; }
.faq-list details.closing summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }

/* ==========================================================================
   HOLIDAY PROMO POPUP
   ========================================================================== */
.promo { width: min(520px, calc(100% - 32px)); padding: 34px 32px 26px; overflow: hidden; border-color: rgba(255, 206, 27, .45);
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 206, 27, .16), transparent 60%), var(--ink-2); text-align: left; }
.promo > :not(.promo-snow) { position: relative; z-index: 1; }
.promo-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.promo-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px; background: var(--red); color: #151515;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.promo h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 850; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 14px; max-width: 16ch; }
.promo-body { margin: 0; color: color-mix(in srgb, var(--bone) 78%, transparent); font-size: 16px; }
.promo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.promo-fine { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); font-family: var(--f-mono); letter-spacing: .02em; }
.promo-snow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.promo-snow i { position: absolute; top: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: var(--bone); opacity: .35;
  animation: snow var(--d) linear var(--o) infinite; }
@keyframes snow { to { transform: translate3d(18px, 560px, 0); } }
html.light .promo { background: radial-gradient(120% 80% at 50% 0%, rgba(255, 206, 27, .28), transparent 60%), #fffdf8; }
html.light .promo-tag { color: #151515; }
html.light .promo-snow i { background: #c9a400; opacity: .3; }
@media (prefers-reduced-motion: reduce) { .promo-snow { display: none; } }
.promo > .promo-x { position: absolute; top: 14px; right: 14px; }

/* ---- promo v2: illustrated winter header ---- */
.promo { padding: 0; width: min(540px, calc(100% - 32px)); background: var(--ink-2); border-color: rgba(255, 206, 27, .5); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 206, 27, .15); }
.promo-hero { position: relative; height: 210px; overflow: hidden; }
.promo-art { display: block; width: 100%; height: 100%; }
.promo-hero .promo-snow { inset: 0; z-index: 1; }
.promo-snow i { background: #fff; opacity: .85; box-shadow: 0 0 6px rgba(255, 255, 255, .6); }
@keyframes snow { to { transform: translate3d(22px, 240px, 0); } }
.promo-content { position: relative; padding: 4px 30px 26px; margin-top: -26px; z-index: 2; }
.promo-tag { box-shadow: 0 8px 20px -8px rgba(255, 206, 27, .6); }
.promo > .promo-x { top: 12px; right: 12px; background: rgba(13, 22, 38, .55); border-color: rgba(255, 255, 255, .3); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.promo > .promo-x:hover { border-color: var(--red); color: var(--red); }
html.light .promo { background: #fffdf8; }
html.light .promo-snow i { background: #fff; opacity: .85; }
@media (max-width: 520px) { .promo-hero { height: 160px; } .promo-content { padding: 4px 20px 22px; } }

/* every section shares the footer's background; sections are separated by the dashed seams */
.theme-dark-2 { background: var(--ink); --olbg: var(--ink); }
.cta .lede { color: color-mix(in srgb, var(--bone) 72%, transparent); }
.cta-mark { opacity: .07; }
.cta-mark path { stroke: var(--bone); }

/* ==========================================================================
   AGENTS MODE IN PLACE: every section swaps its visuals for its markdown twin,
   at the same position, so switching back keeps the reader where they were
   ========================================================================== */
.sec-md { display: none; }
[data-mode="agents"] main > section > :not(.sec-md) { display: none !important; }
[data-mode="agents"] main > .marquee { display: none !important; }
[data-mode="agents"] .sec-md { display: block; }
.sec-md .ha-md { border-radius: 0; overflow: visible; }
.sec-md pre { max-height: none; font-size: 14px; padding: 26px clamp(18px, 3vw, 40px) 30px; }
.sec-md .ha-md-bar { position: sticky; top: calc(var(--nav-h) + var(--bar-off)); z-index: 5; background: #131313; }
html.light .sec-md .ha-md-bar { background: #f6f2e9; }
[data-mode="agents"] .story-visual-wrap, [data-mode="agents"] .hero-stage { display: none; }

.sec-md .ha-md-bar { position: relative; top: auto; }

/* ==========================================================================
   PIXEL-PERFECT OUTLINE SYSTEM (overrides everything above)
   - every line is a real 1px border: the browser snaps it to device pixels and
     spreads the dashes evenly between the two ends, so lines start and end clean
   - corner squares are 9px (odd) so a 1px line passes through their exact centre
   - --rail is a whole number of pixels, set by main.js
   ========================================================================== */
:root {
  --sq9:
    linear-gradient(var(--olbg, var(--ink)), var(--olbg, var(--ink))) 1px 1px / 7px 7px no-repeat,
    linear-gradient(var(--olbg, var(--ink)), var(--olbg, var(--ink))) calc(100% - 1px) 1px / 7px 7px no-repeat,
    linear-gradient(var(--olbg, var(--ink)), var(--olbg, var(--ink))) 1px calc(100% - 1px) / 7px 7px no-repeat,
    linear-gradient(var(--olbg, var(--ink)), var(--olbg, var(--ink))) calc(100% - 1px) calc(100% - 1px) / 7px 7px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 0 0 / 9px 9px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 100% 0 / 9px 9px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 0 100% / 9px 9px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 100% 100% / 9px 9px no-repeat;
  --sq9-top:
    linear-gradient(var(--olbg, var(--ink)), var(--olbg, var(--ink))) 1px 1px / 7px 7px no-repeat,
    linear-gradient(var(--olbg, var(--ink)), var(--olbg, var(--ink))) calc(100% - 1px) 1px / 7px 7px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 0 0 / 9px 9px no-repeat,
    linear-gradient(var(--sq), var(--sq)) 100% 0 / 9px 9px no-repeat;
}

/* ---- page rails: two dashed borders on one full-height layer */
body::before { background: none !important; content: none; }
.rails { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: none; -webkit-mask-image: none; mask-image: none; }
.rails::before, .rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--rail);
  background: radial-gradient(circle, rgba(140, 140, 140, .2) 1px, transparent 1.5px) 0 0 / 12px 12px; }
.rails::before { left: 0; border-right: 1px dashed var(--ln); background-position: right 2px top 0; }
.rails::after { right: 0; border-left: 1px dashed var(--ln); background-position: left 2px top 0; }
/* the borders sit at x = rail - 1 (left) and W - rail (right); shift by 1px so lines sit exactly on the rail */
.rails::before { width: calc(var(--rail) + 1px); }
.rails::after { width: calc(var(--rail) + 1px); }

/* ---- navbar: dashed bottom border, rails continue through it, squares where they meet */
.nav { background-image: none !important; border-bottom: 1px dashed var(--ln) !important; }
.nav::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--rail); right: var(--rail); pointer-events: none;
  border-left: 1px dashed var(--ln); border-right: 1px dashed var(--ln); background: none; height: auto; }
.nav::after { left: calc(var(--rail) - 4px); right: calc(var(--rail) - 4px); bottom: -4px; height: 9px; background: var(--sq9-top); }

/* ---- section seams: a dashed border between the rails, squares centred on both ends */
.section:not(.hero)::after, .marquee::after, .footer::after {
  content: ""; position: absolute; top: 0; left: var(--rail); right: var(--rail); height: 0; z-index: 7; pointer-events: none;
  background: none; border-top: 1px dashed var(--ln);
}
.section:not(.hero)::before, .marquee::before, .footer::before {
  content: ""; position: absolute; top: -4px; height: 9px; left: calc(var(--rail) - 4px); right: calc(var(--rail) - 4px); z-index: 8; pointer-events: none;
  background: var(--sq9-top);
}

/* ---- card outlines: 1px dashed border + squares centred on each corner pixel */
.ol { border: 1px dashed var(--ol) !important; border-radius: 0 !important; }
.ol:not(.story-visual) { position: relative; }
.ol::after, .ol-in::after { content: ""; position: absolute; inset: -5px; pointer-events: none; z-index: 4; background: var(--sq9) !important; --sq: var(--olsq); }
.ol-in { overflow: clip !important; overflow-clip-margin: 5px; }

/* ---- grids: container draws top + left, cells draw right + bottom; squares on every intersection */
.services-grid.ol, .metrics.ol { border-width: 1px 0 0 1px !important; gap: 0; background: none; overflow: visible; }
.services-grid.ol::after, .metrics.ol::after { display: none; }
.services-grid .svc, .metrics .metric { position: relative; overflow: visible; border: 0; border-right: 1px dashed var(--ol); border-bottom: 1px dashed var(--ol); }
.services-grid .svc::after, .metrics .metric::after { content: ""; position: absolute; inset: -5px; pointer-events: none; z-index: 4; background: var(--sq9) !important; --sq: var(--olsq); }

/* ==========================================================================
   DASHES: 6px dash / 6px gap drawn with border-image (pixel-snapped like a border,
   spread evenly between corners with "round"), replacing Chrome's short 1px dashes
   ========================================================================== */
:root { --dash: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='rgba%28160%2C160%2C160%2C0.38%29'><rect x='0' y='0' width='6' height='1'/><rect x='0' y='23' width='6' height='1'/><rect x='0' y='0' width='1' height='6'/><rect x='23' y='0' width='1' height='6'/><rect x='9' y='0' width='6' height='1'/><rect x='9' y='23' width='6' height='1'/><rect x='0' y='9' width='1' height='6'/><rect x='23' y='9' width='1' height='6'/><rect x='18' y='0' width='6' height='1'/><rect x='18' y='23' width='6' height='1'/><rect x='0' y='18' width='1' height='6'/><rect x='23' y='18' width='1' height='6'/></svg>"); }
html.light { --dash: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='rgba%2823%2C23%2C23%2C0.28%29'><rect x='0' y='0' width='6' height='1'/><rect x='0' y='23' width='6' height='1'/><rect x='0' y='0' width='1' height='6'/><rect x='23' y='0' width='1' height='6'/><rect x='9' y='0' width='6' height='1'/><rect x='9' y='23' width='6' height='1'/><rect x='0' y='9' width='1' height='6'/><rect x='23' y='9' width='1' height='6'/><rect x='18' y='0' width='6' height='1'/><rect x='18' y='23' width='6' height='1'/><rect x='0' y='18' width='1' height='6'/><rect x='23' y='18' width='1' height='6'/></svg>"); }

.rails::before { border-image: var(--dash) 6 round; border-image-width: 0 6px 0 0; }
.rails::after { border-image: var(--dash) 6 round; border-image-width: 0 0 0 6px; }

.nav { border-image: var(--dash) 6 round !important; border-image-width: 0 0 6px 0 !important; }
.nav::before { border-image: var(--dash) 6 round; border-image-width: 0 6px 0 6px; }

.section:not(.hero)::after, .marquee::after, .footer::after { height: 6px; border-image: var(--dash) 6 round; border-image-width: 6px 0 0 0; }

.ol { border-image: var(--dash) 6 round !important; border-image-width: 6px !important; }
.services-grid.ol, .metrics.ol { border-image-width: 6px 0 0 6px !important; }
.services-grid .svc, .metrics .metric { border-style: solid !important; border-width: 0 1px 1px 0 !important; border-image: var(--dash) 6 round !important; border-image-width: 0 6px 6px 0 !important; }

/* ==========================================================================
   ONE 12px GRID FOR DOTS AND DASHES
   Dots sit at (6 + 12k, 6 + 12k) in page coordinates. Every dash is 6px long and
   centred on a dot row (vertical lines) or a dot column (horizontal lines).
   main.js writes each outlined element's page offset mod 12 into --ox / --oy so its
   dashes keep the page phase; --navphase does the same for the fixed navbar.
   ========================================================================== */
:root { --ox: 0; --oy: 0; --railmod: 0; --navphase: 0; }
/* horizontal / vertical dash tiles, phase-shifted by an offset in px (0..11) */
body::before, .nav, .nav::before, .section::after, .marquee::after, .footer::after,
.ol::after, .ol-in::after, .services-grid .svc::after, .metrics .metric::after {
  --hdash: repeating-linear-gradient(90deg, transparent calc(-1px * var(--ox)) calc(3px - 1px * var(--ox)), var(--lc) calc(3px - 1px * var(--ox)) calc(9px - 1px * var(--ox)), transparent calc(9px - 1px * var(--ox)) calc(12px - 1px * var(--ox)));
  --vdash: repeating-linear-gradient(180deg, transparent calc(-1px * var(--oy)) calc(3px - 1px * var(--oy)), var(--lc) calc(3px - 1px * var(--oy)) calc(9px - 1px * var(--oy)), transparent calc(9px - 1px * var(--oy)) calc(12px - 1px * var(--oy)));
}

/* ---- gutters: dots on the page grid + rails, all in page coordinates */
.rails, .rails::before, .rails::after { border: 0 !important; border-image: none !important; }
.rails {
  background: radial-gradient(circle at 6px 6px, rgba(140, 140, 140, .22) 1px, transparent 1.5px) 0 0 / 12px 12px !important;
  -webkit-mask-image: linear-gradient(90deg, #000 0 var(--rail), transparent var(--rail) calc(100% - var(--rail) - 1px), #000 calc(100% - var(--rail) - 1px)) !important;
          mask-image: linear-gradient(90deg, #000 0 var(--rail), transparent var(--rail) calc(100% - var(--rail) - 1px), #000 calc(100% - var(--rail) - 1px)) !important;
}
/* the mask would hide the rails, so draw them on body::before (unmasked, page coordinates) */
.rails::before, .rails::after { content: none !important; }
body::before {
  content: "" !important; position: absolute; top: 0; bottom: 0; left: var(--rail); right: var(--rail); z-index: 6; pointer-events: none;
  --oy: 0; --lc: var(--ln);
  background: var(--vdash) 0 0 / 1px 100% no-repeat, var(--vdash) 100% 0 / 1px 100% no-repeat !important;
}

/* ---- navbar: bottom line + rails, phase follows the scroll */
.nav { border: 0 !important; border-image: none !important; }
.nav::before {
  border: 0 !important; border-image: none !important;
  --oy: var(--navphase); --lc: var(--ln);
  background: var(--vdash) 0 0 / 1px 100% no-repeat, var(--vdash) 100% 0 / 1px 100% no-repeat !important;
}
.nav { --ox: 0; --lc: var(--ln); background-image: var(--hdash) !important; background-size: 100% 1px !important; background-position: 0 100% !important; background-repeat: no-repeat !important; }

/* ---- section seams */
.section:not(.hero)::after, .marquee::after, .footer::after {
  border: 0 !important; border-image: none !important; height: 1px !important;
  --ox: var(--railmod); --lc: var(--ln); background: var(--hdash) !important;
}

/* ---- card outlines: lines + squares drawn together on ::after (box = border box grown by 4px) */
.ol { border: 1px solid transparent !important; border-image: none !important; }
.ol::after, .ol-in::after {
  --lc: var(--ol);
  background:
    var(--sq9),
    var(--hdash) 4px 4px / calc(100% - 8px) 1px no-repeat,
    var(--hdash) 4px calc(100% - 4px) / calc(100% - 8px) 1px no-repeat,
    var(--vdash) 4px 4px / 1px calc(100% - 8px) no-repeat,
    var(--vdash) calc(100% - 4px) 4px / 1px calc(100% - 8px) no-repeat !important;
}
/* grids: container draws top + left, each cell draws right + bottom */
.services-grid.ol::after, .metrics.ol::after {
  display: block !important;
  background:
    var(--hdash) 4px 4px / calc(100% - 8px) 1px no-repeat,
    var(--vdash) 4px 4px / 1px calc(100% - 8px) no-repeat !important;
}
.services-grid .svc, .metrics .metric { border-color: transparent !important; border-image: none !important; border-style: solid !important; border-width: 0 1px 1px 0 !important; }
.services-grid .svc::after, .metrics .metric::after {
  --lc: var(--ol); --sq: var(--olsq);
  background:
    var(--sq9),
    var(--hdash) 4px calc(100% - 4px) / calc(100% - 8px) 1px no-repeat,
    var(--vdash) calc(100% - 4px) 4px / 1px calc(100% - 8px) no-repeat !important;
}
/* footer: page-wide top line like the navbar's bottom line */
.footer::after { left: 0 !important; right: 0 !important; --ox: 0 !important; }

/* holiday offer: "don't remind me" */
.promo-never { display: block; margin: 10px 0 0; padding: 0; background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.promo-never:hover { color: var(--bone); }
.services-grid.ol::after, .metrics.ol::after { z-index: 3 !important; }
/* never scroll sideways: clip horizontally only (keeps sticky elements and the seam squares) */
html, body { overflow-x: clip; }
.marquee { overflow-x: clip; overflow-y: visible; }
/* hero + logo strip on the 72px rhythm (heights set by main.js) */
.hero-fit .hero { display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) 0 0; box-sizing: border-box; }
.hero-fit .hero > .wrap { width: 100%; }
.hero-fit .marquee { justify-content: center; padding-block: 0; box-sizing: border-box; }

/* logo strip: no label, logos centred vertically and scrolling only between the rails */
.marquee { padding-inline: 0; gap: 0; justify-content: center; }
.marquee-viewport { margin-inline: calc(var(--rail) + 1px); }

/* side controls (desktop, rails at 72px): centred in the left gutter, beside the hero */
@media (min-width: 1280px) {
  .mode-switch { left: calc(var(--rail) / 2) !important; right: auto !important; translate: -50% 0; top: calc(var(--nav-h) + var(--bar-off) + 14px) !important; bottom: auto !important; }
  .gutter-tools { left: calc(var(--rail) / 2) !important; translate: -50% 0; bottom: var(--tools-bottom, 18px) !important; flex-direction: column !important; align-items: center !important; }
}
@media (hover: hover) and (min-width: 1280px) {
  .mode-switch, .lang-switch, .theme-switch { opacity: 0; transform: translateX(-14px); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease-out); }
  .gutter-on .mode-switch, .gutter-on .lang-switch, .gutter-on .theme-switch,
  .switch-peek .mode-switch, .switch-peek .lang-switch, .switch-peek .theme-switch,
  .mode-switch:focus-within, .lang-switch:focus-within, .theme-switch:focus-within { opacity: 1; transform: none; pointer-events: auto; }
}
.marquee { border-block: 0 !important; }
/* the compliance logo strip is part of the hero: no seam or squares between them */
.marquee::after, .marquee::before { content: none !important; }
/* every section separator runs the full page width, like the navbar and footer lines;
   the squares stay where it crosses the rails (drawn by ::before) */
.section:not(.hero)::after { left: 0 !important; right: 0 !important; --ox: 0 !important; }
.nav-inner { padding-inline: calc(max(0px, (100% - var(--maxw)) / 2) + var(--gutter)) !important; }

/* "Under attack?" fills with the alarm red on hover, never the brand yellow */
.btn-attack::before { background: var(--danger); }
.btn-attack:hover, html.light .btn-attack:hover, .nav[data-theme="red"] .btn-attack:hover { color: #151515; border-color: var(--danger); }

/* REVENGE in running text, set like the logo (markup from brand_name() in build.py).
   The letters take the surrounding text colour (no yellow Es), so the name reads on every surface. */
.rvn { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; font-style: normal; letter-spacing: -.035em; text-transform: none; white-space: nowrap; font-size: 1.04em; }
.rvn-r { display: inline-block; transform: scaleX(-1); }
.faq-list summary .q { min-width: 0; }

/* holiday promo: Christmas red tag and frame */
.promo-tag, html.light .promo-tag { background: #d6202b; color: #fff; box-shadow: 0 8px 20px -8px rgba(214, 32, 43, .7); }
.promo { border-color: rgba(214, 32, 43, .55); }

/* hero clips sideways only, so the form card's shadow falls onto the compliance logo strip below (.hero-form z-index 2 sits above .marquee) */
.hero { overflow: visible; overflow-x: clip; }

/* Tablets and phones: the floating view / language / theme controls covered the text while reading.
   They now live with the burger menu: hidden while browsing, shown along the bottom when the menu is open. */
@media (max-width: 1200px) {
  .mode-switch, .gutter-tools { display: none !important; }
  .nav.menu-open ~ .mode-switch, .nav.menu-open ~ .gutter-tools { display: flex !important; z-index: 101; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .mobile-menu { padding-bottom: 220px; }
}
