/* Singularity-Bench project site */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f1f3f4;
  --paper-3: #f7f8fa;
  --ink: #1f1f1f;
  --ink-2: #3c4043;
  --ink-3: #5f6368;
  --faint: #80868b;
  --line: #dadce0;
  --line-2: #e8eaed;
  --grid: #eceff1;
  --accent: #4f46e5;
  --accent-2: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --hero-blue: #326fa8;
  --blue-gradient: linear-gradient(100deg, #245b9c 8%, #4b9bd9 52%, #8ac7ed 94%);
  --header: #edf2f8;
  --ok: #137333;
  --ok-soft: #e6f4ea;
  --bad: #c5221f;
  --bad-soft: #fce8e6;
  --t-pre: #1a73e8;
  --t-mid: #1e8e3e;
  --t-post: #9334e6;
  --t-inf: #e37400;
  --t-clu: #12a4af;
  --t-har: #d01884;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1320px;
  --gutter: clamp(16px, 4.2vw, 60px);
  --topbar-h: 60px;
  --subnav-h: 50px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--topbar-h) + var(--subnav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.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: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--header) 95%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #d7e1ed;
}
.topbar-in {
  max-width: calc(var(--max) + 2 * var(--gutter)); height: 100%;
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.tnav { display: flex; align-items: center; gap: 2px; }
.tnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-size: 15.5px; white-space: nowrap; transition: color .15s, background .15s; }
.tnav a:hover { color: var(--accent); background: var(--accent-soft); }
.tnav a[aria-disabled="true"] { color: var(--faint); pointer-events: none; }
.tnav svg { width: 17px; height: 17px; }
.tnav .soon { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 99px; background: var(--paper-2); color: var(--ink-3); }

/* ---------- section nav ---------- */
.sub {
  position: sticky; top: var(--topbar-h); z-index: 40;
  height: var(--subnav-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.sub .col { display: flex; gap: 26px; height: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sub .col::-webkit-scrollbar { display: none; }
.sub a { flex: none; display: flex; align-items: center; color: var(--ink-2); font-size: 15.5px; border-bottom: 2px solid transparent; padding-top: 2px; white-space: nowrap; transition: color .15s, border-color .15s; }
.sub a:hover { color: var(--ink); }
.sub a.on { color: var(--ink); border-bottom-color: var(--accent); }

.col { max-width: var(--max); margin-inline: auto; }
.page { padding-inline: var(--gutter); }

/* ---------- hero ---------- */
.intro { padding-top: 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; justify-items: center; text-align: center; }
.hero-heading { width: 100%; }
.hero-text { width: 100%; max-width: 880px; }
.upd { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 20px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.upd i { width: 9px; height: 9px; border-radius: 3px; background: var(--hero-blue); display: inline-block; }
h1 { margin: 0; font-size: clamp(36px, 5.7vw, 78px); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
h1 .q { display: block; margin-top: .12em; background: var(--blue-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lead { margin: 0 auto; font-size: clamp(18px, 1.55vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.lead b { color: var(--ink); font-weight: 600; }
.hlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.hb { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 18px; border-radius: 12px; background: #eef1f6; color: var(--ink); font-size: 16px; font-weight: 600; transition: background .15s, transform .15s; }
.hb:hover { background: #e1e6ef; }
.hb svg { width: 20px; height: 20px; flex: none; }
.hb.dark { background: var(--ink); color: #fff; }
.hb.dark:hover { background: #000; }
.hb[aria-disabled="true"], .hb.dark[aria-disabled="true"] { cursor: default; color: var(--ink-3); background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.hb[aria-disabled="true"]:hover { background: var(--paper-3); }
.hb .soon { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: #fff; color: var(--ink-3); border: 1px solid var(--line-2); }

/* An agent searching each phase of the lifecycle: technique cards step up through a lens, where the agent
   tries each one and keeps or drops it. */
.frames {
  position: relative; width: 100%; max-width: 1180px; padding: 8px 0 0;
}
.fplane { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.freel { --c: var(--t-pre); --card-h: 76px; min-width: 0; }
.freel-label { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--c) 75%, var(--ink)); white-space: nowrap; }
.freel-label span { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.fwindow { position: relative; height: 244px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.fcol { display: flex; flex-direction: column; gap: 14px; padding: 0 6px; will-change: transform; }
.flens { position: absolute; left: 0; right: 0; top: 50%; height: calc(var(--card-h) + 12px); transform: translateY(-50%); pointer-events: none; }
.flens i { position: absolute; width: 14px; height: 14px; border: 0 solid color-mix(in srgb, var(--c) 80%, #fff); }
.flens i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; border-top-left-radius: 10px; }
.flens i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; border-top-right-radius: 10px; }
.flens i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 10px; }
.flens i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 10px; }
.fcard {
  position: relative; overflow: hidden;
  width: 100%; height: var(--card-h); flex: none;
  display: flex; align-items: center; gap: 9px; padding: 0 11px; text-align: left;
  border-radius: 12px; background: color-mix(in srgb, var(--c) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 18%, #fff);
  box-shadow: 0 3px 10px -6px color-mix(in srgb, var(--c) 15%, transparent);
  transition: background-color .35s, border-color .35s, box-shadow .35s;
}
.fcard .ic { width: 28px; height: 32px; flex: none; display: grid; place-items: center; color: var(--c); }
.fcard .ic svg { display: none; width: 22px; height: 22px; }
.fcard b { display: block; font-size: 13px; font-weight: 600; line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; transition: color .35s; }
.fcard small { display: block; margin-top: 5px; font-size: 10px; font-weight: 500; color: var(--ink-3); }
.fcard small i { display: none; font-style: normal; }
/* one icon and caption per state: queued (the technique's kind), trying, kept, dropped */
.fcard .ic .i-task, .fcard .c-kind { display: block; }
.fcard:is(.try, .ok, .no) :is(.i-task, .c-kind) { display: none; }
.fcard.try :is(.i-try, .c-try), .fcard.ok :is(.i-ok, .c-ok), .fcard.no :is(.i-no, .c-no) { display: block; }
.fcard.try .i-try { animation: spin .9s linear infinite; }
.frames:hover .i-try, .frames.off .i-try, .locked.off .lk-tile::after { animation-play-state: paused; }
/* trying and kept: the phase color; a bar fills while the agent tries the technique */
.fcard.try, .fcard.ok { background: var(--c); border-color: var(--c); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--c) 80%, transparent); }
.fcard.try b, .fcard.ok b, .fcard.try .ic, .fcard.ok .ic { color: #fff; }
.fcard.try small, .fcard.ok small { color: rgba(255, 255, 255, .92); }
.fcard::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(255, 255, 255, .8); transform: scaleX(0); transform-origin: left; opacity: 0; }
.fcard.try::after { opacity: 1; transform: scaleX(1); transition: transform var(--try, 1.3s) linear; }
/* once past the lens, kept techniques soften to a tint */
.fcard.ok.past { background: color-mix(in srgb, var(--c) 13%, #fff); border-color: color-mix(in srgb, var(--c) 34%, #fff); box-shadow: none; }
.fcard.ok.past b { color: var(--ink); }
.fcard.ok.past .ic, .fcard.ok.past small { color: color-mix(in srgb, var(--c) 82%, var(--ink)); }
/* dropped: gray and struck through */
.fcard.no { background: var(--paper-3); border-color: var(--line-2); box-shadow: none; }
.fcard.no b { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.fcard.no .ic, .fcard.no small { color: var(--ink-3); }

/* headline stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 52px; }
.stat { padding: 18px 20px 17px; border-radius: 14px; background: var(--paper-3); border: 1px solid var(--line-2); }
.stat b { display: block; font-size: clamp(30px, 3.3vw, 40px); font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 9px; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }

/* ---------- sections ---------- */
.sec { padding-top: 104px; }
.sec > h2, .sec-head h2 { margin: 0; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.016em; font-weight: 600; }
.sec h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.sec-intro { margin: 12px 0 0; max-width: 64ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sec-intro b { color: var(--ink); font-weight: 600; }
#redteam > .sec-intro { max-width: none; }
.sec .sub-h { margin: 56px 0 6px; }
.sub-p { margin: 0 0 18px; max-width: 70ch; color: var(--ink-2); font-size: 16px; }
.breakwater-intro { max-width: none; }
/* Breakwater lockup: the eye mark next to the name */
.bw { white-space: nowrap; }
.bw svg { display: inline-block; width: 1.1em; height: 1.1em; margin-right: .22em; vertical-align: -.2em; color: var(--accent); }
/* Singularity-Bench lockup: the site's logo next to the name */
.sbl { white-space: nowrap; }
.sbl svg { display: inline-block; width: 1em; height: 1em; margin-right: .22em; vertical-align: -.14em; }

/* ---------- lifecycle ---------- */
.life { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 28px 64px; align-items: center; margin-top: 30px; }
.life-fig { margin: 0; position: relative; }
.life-fig svg { width: 100%; height: auto; overflow: visible; }
.life .node { cursor: pointer; outline: none; }
.life .node:focus-visible .disc { stroke-width: 5; }
.life .disc { transition: fill .35s ease; }
.life .halo { transform-box: fill-box; transform-origin: center; }
.life .node.on .halo { fill-opacity: .3; animation: halo 1.5s ease-out infinite; }
@keyframes halo { from { transform: scale(1); opacity: 1; } to { transform: scale(1.65); opacity: 0; } }
.life-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.life-groups li { display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 0 16px; padding: 14px 16px 14px 0; border-radius: 12px; transition: background .3s; }
.life-groups li::before { content: ""; grid-row: 1 / 3; border-radius: 4px; background: var(--line-2); transition: background .3s; }
.life-groups li.on { background: var(--paper-3); }
.life-groups li.on::before { background: linear-gradient(var(--g1), var(--g2)); }
.life-groups .gname { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.life-groups .gtext { font-size: 18px; line-height: 1.35; color: var(--ink-2); }
.life-groups .gtext b { color: var(--ink); font-weight: 600; }
.life-groups li.on .gtext { color: var(--ink); }
.life-def { margin: 20px 0 0; padding: 16px 18px; border-radius: 12px; border: 1px dashed #b9bfd3; background: #fbfbfe; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.life-def b { color: var(--ink); }

/* ---------- task flip cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.fc { --c: var(--t-pre); position: relative; min-height: 390px; perspective: 1500px; border-radius: 18px; }
.fc-hit { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 18px; background: transparent; cursor: pointer; }
.fc-hit:focus-visible { outline: 3px solid color-mix(in srgb, var(--c) 55%, transparent); outline-offset: 3px; }
.fc-in { position: relative; z-index: 4; display: grid; width: 100%; height: 100%; pointer-events: none; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2, .75, .2, 1); }
.fc.flipped .fc-in { transform: rotateY(180deg); }
.fc-face { position: relative; grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: box-shadow .2s, border-color .2s; }
.fc:hover .fc-face { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 16px 34px -22px color-mix(in srgb, var(--c) 80%, transparent); }
.fc-back { transform: rotateY(180deg); }
.fc-art { position: relative; height: 150px; flex: none; background: var(--c); overflow: hidden; color: #fff; }
.fc-art .pat { position: absolute; inset: 0; opacity: .9; }
.fc-art .big { position: absolute; right: 18px; bottom: 16px; width: 74px; height: 74px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .18); color: #fff; }
.fc-art .big svg { width: 100%; height: 100%; }
.fc-art .grp { position: absolute; left: 18px; top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
.fc-art .grp svg { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, .2); }
.pat .cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fc-art .num { position: absolute; left: 18px; bottom: 12px; font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: rgba(255, 255, 255, .95); }
.fc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 16px; }
.fc-body h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.fc-id { display: inline-block; align-self: flex-start; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 9%, #fff); color: color-mix(in srgb, var(--c) 82%, #000); font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.fc-one { margin: 10px 0 0; font-size: 15.5px; line-height: 1.4; color: var(--ink-2); }
.fc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.fc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.fc-meta svg { width: 15px; height: 15px; }
.fc-meta .fc-baseline { display: block; }
.fc-baseline svg { display: inline-block; margin-right: 6px; vertical-align: -2px; }
.fc-face a { pointer-events: auto; color: color-mix(in srgb, var(--c) 70%, var(--ink)); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c) 40%, transparent); text-underline-offset: 2px; }
.fc-face a:hover { text-decoration-color: currentColor; }
.fc-flip { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 600; color: #fff; }
.fc-flip svg { width: 15px; height: 15px; transition: transform .4s; }
.fc:hover .fc-flip svg { transform: rotate(-180deg); }
.fc-back { padding: 18px 20px 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, #fff), #fff 120px); }
.fc-back .bh { display: flex; align-items: center; gap: 10px; }
.fc-back .bh i { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--c); color: #fff; }
.fc-back .bh i svg { width: 18px; height: 18px; }
.fc-back .bh b { font-size: 17px; font-weight: 600; }
.fc-back p { margin: 10px 0 0; font-size: 14.2px; line-height: 1.45; color: var(--ink-2); }
.fc-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 12px 0 0; font-size: 13.6px; line-height: 1.35; }
.fc-kv dt { color: var(--ink-3); }
.fc-kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.fc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 12px; }
.fc-res div { padding: 8px 10px; border-radius: 10px; background: var(--paper-3); border: 1px solid var(--line-2); }
.fc-res div.win { background: color-mix(in srgb, var(--c) 8%, #fff); border-color: color-mix(in srgb, var(--c) 28%, #fff); }
.fc-res small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.fc-res b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fc-res em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.cards-hint { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.cards-hint button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; }

/* ---------- charts ---------- */
.chart { margin: 0; min-width: 0; }
.chart-title { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.index-info { display: inline-flex; align-items: center; }
.info-button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 1px solid var(--faint); border-radius: 50%; background: #fff; color: var(--ink-3); font: 600 13px Georgia, serif; cursor: help; }
.info-button:hover, .info-button:focus-visible { color: var(--accent); border-color: var(--accent); }
.index-formula-tip { position: absolute; top: calc(100% + 10px); left: 0; z-index: 10; width: min(760px, calc(100vw - 2 * var(--gutter))); padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 32px rgba(32, 33, 36, .16); visibility: hidden; opacity: 0; pointer-events: none; }
.index-formula-tip::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.index-info:not(.dismissed):hover .index-formula-tip, .index-info:not(.dismissed):focus-within .index-formula-tip { visibility: visible; opacity: 1; pointer-events: auto; }
.index-formula-tip p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.index-formula-tip .eq { margin: 12px 0; font-size: 14px; }
.chead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 6px; }
.chead .ttl { font-size: 18px; font-weight: 600; }
.csub { margin: 0 0 4px; font-size: 14.5px; color: var(--ink-3); max-width: 80ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid #c4c7c5; background: #fff; color: var(--ink-2); font-size: 14px; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--ink-3)); flex: none; }
.chip .n { font-size: 12px; color: var(--ink-3); }
.chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, .75); }
.plot { position: relative; }
.plot svg { display: block; width: 100%; overflow: visible; font-family: var(--sans); }
.plot .gridl { stroke: var(--grid); stroke-width: 1; }
.plot .axis { stroke: #9aa0a6; stroke-width: 1; }
.plot .tick { font-size: 12px; fill: var(--ink-3); }
.plot .axl { font-size: 13px; fill: var(--ink-2); }
.plot .base-l { stroke: #8a929c; stroke-width: 1.2; stroke-dasharray: 5 4; }
.plot .base-t { font-size: 12.5px; fill: var(--ink-3); }
.plot .val { font-size: 13px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
.plot .nm { font-size: 12.5px; fill: var(--ink); }
.plot .hn { font-size: 11.5px; fill: var(--ink-3); }
.plot .fail { font-size: 12px; font-weight: 700; fill: var(--bad); }
.plot .bar { transition: opacity .2s; }
.plot.dim .bar:not(.hot) { opacity: .35; }
.plot .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; z-index: 6; pointer-events: none; min-width: 170px; max-width: 320px; padding: 10px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 10px 28px rgba(32, 33, 36, .16); font-size: 13px; line-height: 1.4; color: var(--ink-2); transform: translate(-50%, -100%) translateY(-14px); }
.tip b { color: var(--ink); font-weight: 600; }
.tip .th { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 14px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.tip .th img { width: 16px; height: 16px; }
.tip .row { display: flex; justify-content: space-between; gap: 14px; }
.tip .row span:last-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tip .mini { display: grid; grid-template-columns: auto 1fr auto; gap: 3px 8px; align-items: center; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line-2); font-size: 12px; }
.tip .mini i { display: block; height: 6px; border-radius: 3px; background: var(--c); }
.tip .mini .tr { position: relative; height: 6px; border-radius: 3px; background: var(--paper-2); }
.tip .mini .tr::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: var(--h); width: 1px; background: var(--ink-2); }
.cfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.cfoot .clogo { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.cfoot .clogo svg { width: 16px; height: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend svg { width: 22px; height: 14px; overflow: visible; }
.pcontact { margin: 22px 0 0; font-size: 15.5px; color: var(--ink-2); }
.pcontact a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; white-space: nowrap; }
.pcontact a:hover { text-decoration-color: currentColor; }
.finds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.find { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper-3); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.find b { display: block; margin-bottom: 4px; font-size: 16.5px; color: var(--ink); font-weight: 600; line-height: 1.3; }

/* ---------- reasoning-effort ablation ---------- */
.effort-section { padding-top: 76px; }
.effort-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.6fr); gap: 28px 52px; align-items: center; }
.effort-copy h2 { margin: 0; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.016em; font-weight: 600; }
.effort-copy p { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.effort-copy b { color: var(--ink); font-weight: 600; }
.effort-copy .effort-hint { font-size: 14px; color: var(--ink-3); }
.effort-legend { justify-content: center; gap: 8px 22px; margin-top: 10px; font-size: 13px; }
.effort-legend svg { width: 28px; }
.effort-caption { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.effort-chart .tip { width: 270px; min-width: 0; max-width: calc(100% - 8px); }
.effort-chart .tip .th { white-space: normal; font-size: 13px; }
.effort-chart .tip .row { gap: 10px; font-size: 12.5px; }
.effort-point:focus-within .effort-marker { stroke: var(--accent); stroke-width: 3; }
.effort-point .hit:focus { outline: none; }
@media (max-width: 900px) {
  .effort-grid { grid-template-columns: 1fr; gap: 22px; }
  .effort-copy { max-width: 64ch; }
}

/* folding table */
.fold { margin-top: 36px; border-top: 1px solid var(--line); }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 0 6px; cursor: pointer; width: fit-content; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h3 { font-size: 18px; }
.fold > summary::after { content: ""; width: 13px; height: 13px; flex: none; background: linear-gradient(currentColor, currentColor) center / 13px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 13px no-repeat; transition: background-size .2s; }
.fold[open] > summary::after { background-size: 13px 1.6px, 1.6px 0; }
.res-scroll { overflow-x: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; }
table.res { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.res th, .res td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.res th { font-weight: 600; font-size: 13px; color: var(--ink-2); vertical-align: bottom; line-height: 1.25; }
.res th small { display: block; font-weight: 400; color: var(--ink-3); }
.res th:first-child, .res td:first-child { text-align: left; }
.res .an { display: inline-flex; align-items: center; gap: 9px; }
.res .an img { width: 16px; height: 16px; }
.res td .h { color: var(--ink-3); font-size: 12.5px; }
.res td .c { display: block; font-size: 11.5px; color: var(--faint); }
.res .best { background: #dfe9fb; font-weight: 700; }
.res .second { background: #eef3fd; }
.res .star { color: var(--accent); font-weight: 700; margin-left: 2px; }
.res .x { color: var(--bad); font-weight: 700; }
.res tr.prop td { background-image: linear-gradient(rgba(32, 33, 36, .028), rgba(32, 33, 36, .028)); }
.res tr.human td { border-top: 2px solid var(--line); font-style: italic; }
.res-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- red-teaming ---------- */
.score3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.sc { position: relative; overflow: hidden; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--paper-3); }
.sc .lab { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sc .lab i { width: 10px; height: 10px; border-radius: 50%; background: var(--k); }
.sc .lab .eye { width: 19px; height: 19px; flex: none; margin: -2px -3px -2px -4px; color: var(--k); }
.sc b { display: block; margin-top: 10px; font-size: clamp(38px, 4vw, 50px); line-height: 1; font-weight: 600; letter-spacing: -.025em; color: var(--k); font-variant-numeric: tabular-nums; }
.sc p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.sc.bad { --k: var(--bad); }
.sc.warn { --k: #b45309; }
.sc.ok { --k: var(--ok); background: linear-gradient(135deg, #f3faf5, #fff); border-color: #cfe8d7; }

.owasp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ow { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 12px 13px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.ow:hover { border-color: #aab0bb; transform: translateY(-1px); }
.ow .id { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent); }
.ow .nm { font-size: 14.5px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.ow .ct { margin-top: auto; font-size: 12.5px; color: var(--ink-3); }
.ow[aria-pressed="true"] { border-color: var(--accent); background: #f6f5ff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent); }
.ow.na { cursor: default; background: repeating-linear-gradient(135deg, #fafafa 0 8px, #f3f4f5 8px 16px); border-style: dashed; }
.ow.na .id, .ow.na .nm { color: var(--faint); }
.ow.na:hover { transform: none; border-color: var(--line); }
.ow .dot { position: absolute; right: 12px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 15%, transparent); }

.atk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 26px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--paper-2); }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(32, 33, 36, .18); }
.atk-filter { font-size: 14px; color: var(--ink-3); }
.atk-filter button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; }
.atk { margin-top: 12px; border-top: 1px solid var(--ink-2); }
.atk-h, .atk-r { display: grid; grid-template-columns: 128px minmax(0, 1fr) 128px 118px 118px; gap: 8px 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.atk-h { padding: 9px 0; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.atk-g { padding: 16px 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.atk-g span { font-family: var(--mono); color: var(--accent); margin-right: 8px; letter-spacing: 0; }
.atk-r .aid { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.atk-r .ad { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.atk-r .ad code { font-size: 13px; padding: 0 4px; border-radius: 4px; background: var(--paper-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tag i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .25s, color .25s; }
.pill svg { width: 14px; height: 14px; flex: none; }
.pill.wait { background: var(--paper-2); color: var(--ink-3); }
.pill.wait svg { animation: spin .8s linear infinite; }
.pill.succ { background: var(--bad-soft); color: var(--bad); }
.pill.caught { background: var(--ok-soft); color: var(--ok); }
.atk-r.pop .pill.succ, .atk-r.pop .pill.caught { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }

.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.modes.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode { padding: 16px 18px 17px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; }
.mode .mi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); }
.mode .mi svg { width: 21px; height: 21px; }
.mode h4 { margin: 12px 0 0; font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.mode p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.mode code { font-size: 12.5px; color: var(--ink); }
.modes.three .mode .mi { background: #fef3e2; color: #b45309; }

.arch { margin: 18px 0 0; padding: 18px 12px 6px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #fbfcfe, #fff); }
.arch svg { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.arch .box { fill: #fff; stroke: #c9d2e3; stroke-width: 1.4; }
.arch .box2 { fill: #eef3fb; stroke: none; }
.arch .dash { fill: none; stroke: #8796b0; stroke-width: 1.6; stroke-dasharray: 7 6; }
.arch .t1 { font-size: 17px; font-weight: 700; fill: #23324d; }
.arch .t2 { font-size: 14px; font-weight: 600; fill: #23324d; }
.arch .t3 { font-size: 12.5px; fill: #4a5875; }
.arch .t4 { font-size: 11px; font-family: var(--mono); fill: #4a5875; }
.arch .bw-eye { color: var(--accent); }
.arch .num { fill: #fff; stroke: #23324d; stroke-width: 2; }
.arch .numt { font-size: 14px; font-weight: 700; fill: #23324d; }
.arch .wall { stroke: #c5221f; stroke-width: 4; }
.arch .flow { fill: none; stroke: #8fa3c6; stroke-width: 2.2; }
.arch .g { transition: opacity .25s; }
.arch.focus .g { opacity: .25; }
.arch.focus .g.hot { opacity: 1; }
.arch.focus .agent-activity { visibility: hidden; }
.guards { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: g; }
.guards li { padding: 14px 15px; border-radius: 13px; border: 1px solid var(--line-2); background: #fff; font-size: 14.2px; line-height: 1.45; color: var(--ink-2); transition: border-color .15s, background .15s; cursor: default; }
.guards li:hover, .guards li.hot { border-color: #9fb0cf; background: #f6f9fe; }
.guards li b { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; font-size: 15px; color: var(--ink); line-height: 1.25; }
.guards li b::before { counter-increment: g; content: counter(g); width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid #23324d; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #23324d; }
.arch-hint { display: none; margin: 8px 4px 0; font-size: 13px; color: var(--ink-3); }
.verdict { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--ok-soft); color: #0d5a26; font-size: 16px; line-height: 1.45; }
.verdict svg { width: 26px; height: 26px; flex: none; }
.verdict b { font-weight: 700; }

/* ---------- case studies ---------- */
.cases { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 16px 28px; align-items: start; padding: 22px 0; }
.cth { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.cth svg { width: 100%; height: 100%; transition: transform .35s cubic-bezier(.2, .7, .3, 1); }
.case:hover .cth svg { transform: scale(1.035); }
.ctt { margin: 0; font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.ctx p { margin: 8px 0 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cmt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--ink-3); }
.cmt .tag { font-size: 13.5px; }
.cmore { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cmore svg { width: 14px; height: 14px; transition: transform .25s; }
.case.open .cmore svg { transform: rotate(180deg); }
.cres { border-left: 1px solid var(--line); padding-left: 24px; }
.cres b { display: block; font-size: 36px; font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.cres span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.cdet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px 32px; padding: 0 0 26px 268px; }
.cdet[hidden] { display: none; }
.cdet p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.cdet ul { margin: 0 0 12px; padding-left: 20px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.cdet figure { margin: 0; }
.cdet img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; }
.cdet figcaption { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }

/* ---------- coming soon ---------- */
.soonbox { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px 40px; align-items: center; margin-top: 24px; }
.soon-n b { display: block; font-size: clamp(64px, 8vw, 96px); font-weight: 700; line-height: .95; letter-spacing: -.045em; background: var(--blue-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soon-n span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.locked { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lk { position: relative; }
.lk-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--c); isolation: isolate; }
.lk-art { position: absolute; inset: -14%; filter: blur(10px) saturate(1.15); }
.lk-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 48%, transparent 66%); transform: translateX(-120%); animation: shimmer 4.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes shimmer { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.lk-lock { position: absolute; left: 50%; top: 50%; z-index: 2; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(32, 33, 36, .22); }
.lk-lock svg { width: 17px; height: 17px; }
.lk span { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: center; }

/* ---------- sponsors ---------- */
.sponsor-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 22px; }
.sponsor-lead img { height: 54px; width: auto; }
.sponsor-lead p { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 40ch; }
.sponsor-sub { margin: 30px 0 0; font-size: 14px; color: var(--ink-3); }
.sponsor-row { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 52px; }
.sponsor-row a { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.sponsor-row img { height: 28px; width: auto; transition: opacity .15s; }
.sponsor-row a:hover img { opacity: .75; }
.sponsor-row small { font-size: 13px; color: var(--ink-3); }
.sponsor-row .fw img { height: 24px; }
.sponsor-row .dt img { height: 30px; }
.sponsor-row .sn img { height: 32px; }

/* ---------- questions ---------- */
.faq { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px 40px; align-items: start; }
.faq h2 { font-size: clamp(30px, 3.2vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.fqlist { max-width: 760px; border-top: 1px solid var(--ink-2); }
.fqlist details { border-bottom: 1px solid var(--line); }
.fqlist summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; font-size: clamp(18px, 1.7vw, 20.5px); font-weight: 500; line-height: 1.3; cursor: pointer; }
.fqlist summary::-webkit-details-marker { display: none; }
.fqlist summary:hover { color: var(--accent-2); }
.fqlist summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 14px no-repeat; transition: background-size .2s; }
.fqlist details[open] summary::after { background-size: 14px 1.6px, 1.6px 0; }
.ans { padding: 0 0 18px; }
.ans p, .ans ul { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.ans ul { padding-left: 20px; }
.ans li { margin: 2px 0; }
.ans a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.eq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 4px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--paper-3); border: 1px solid var(--line-2); font-size: 15px; color: var(--ink); overflow-x: auto; }
.eq .fr { display: inline-flex; flex-direction: column; align-items: center; margin: 0 2px; line-height: 1.2; }
.eq .fr > span:first-child { padding: 0 3px 2px; border-bottom: 1.4px solid currentColor; }
.eq .fr > span:last-child { padding: 2px 3px 0; }
.eq i { font-style: italic; }
.eq sub { font-size: .72em; }
.eq .big { font-size: 26px; font-weight: 300; line-height: 1; }

/* ---------- footer ---------- */
.foot { margin-top: 120px; background: #202124; color: #e8eaed; }
.foot-in { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 28px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.foot .brand { color: #fff; }
.foot-tag { margin: 14px 0 0; max-width: 30ch; font-size: 17px; line-height: 1.45; color: #bdc1c6; }
.foot h4 { margin: 4px 0 12px; font-size: 14px; font-weight: 600; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot li a, .foot li span { font-size: 14.5px; color: #bdc1c6; transition: color .15s; }
.foot li a:hover { color: #fff; }
.foot-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #3c4043; font-size: 13px; color: #9aa0a6; }
.foot-base a { color: #bdc1c6; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .guards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-row { grid-template-columns: 200px minmax(0, 1fr) 240px; }
  .cdet { padding-left: 228px; grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .frames { max-width: 720px; }
  .fplane { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .fwindow { height: 160px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .life { grid-template-columns: 1fr; }
  .life-fig { max-width: 520px; margin-inline: auto; width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finds, .score3 { grid-template-columns: 1fr; }
  .owasp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .soonbox { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .case-row { grid-template-columns: 200px minmax(0, 1fr); }
  .cres { grid-column: 2; border-left: 0; padding-left: 0; }
  .cdet { padding-left: 0; }
  .atk-h { display: none; }
  .atk-r { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .atk-r .aid { grid-column: 1; }
  .atk-r .ad { grid-column: 1 / -1; grid-row: 2; }
  .atk-r .tag { grid-column: 2; grid-row: 1; justify-self: end; }
  .atk-r .p1, .atk-r .p2 { grid-row: 3; }
  .atk-r .p1 { grid-column: 1; }
  .atk-r .p2 { grid-column: 2; justify-self: end; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .faq { grid-template-columns: 1fr; }
  .tnav .lbl { display: none; }
}
@media (max-width: 720px) {
  :root { --topbar-h: 56px; --subnav-h: 46px; }
  .brand { font-size: 19px; }
  .sub a { font-size: 15px; }
  .sub .col { gap: 22px; }
  .intro { padding-top: 40px; }
  .hero { gap: 24px; }
  .freel-label { font-size: 10px; gap: 4px; }
  .freel-label span { font-size: 9px; }
  .freel { --card-h: 88px; }
  .fcard { flex-direction: column; justify-content: center; gap: 5px; padding: 6px; text-align: center; }
  .fcard .ic { width: 22px; height: 22px; }
  .fcard b { font-size: 11px; }
  .fcard small { font-size: 9px; margin-top: 3px; }
  .cards { grid-template-columns: 1fr; }
  .fc { min-height: 430px; }
  .fc-art { height: 168px; }
  .arch { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
  .arch svg { min-width: 860px; }
  .arch-hint { display: block; }
  .guards, .modes, .modes.three { grid-template-columns: 1fr; }
  .owasp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locked { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec { padding-top: 80px; }
}
@media (max-width: 600px) {
  .case-row { grid-template-columns: 1fr; }
  .cres { grid-column: 1; }
  .hb { height: 48px; padding: 0 14px; font-size: 15px; }
  .stat > span { font-size: 13.5px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .i-try, .lk-tile::after { animation: none !important; }
  .fc-in { transition: none; }
}
