/* ==========================================================================
   Qoretix — site stylesheet v2
   Warm off-white, ink black, one accent. Product UI shown as staged pieces
   (windows, cards, toasts) on warm-grey dot grids. Glossy = material and
   value rhythm, not neon.
   ========================================================================== */

:root {
  color-scheme: light;

  --paper: #ffffff;
  --warm: #f2f2f4;
  --warm-2: #e8e8ea;
  --ink: #131315;
  --ink-2: rgba(20, 19, 17, 0.64);
  --ink-3: rgba(20, 19, 17, 0.6); /* 0.46 measured 3.1:1 on white / 3.0:1 on --warm; 0.6 gives 4.9 / 4.7 (AA) */
  --line: rgba(20, 19, 17, 0.09);
  --line-2: rgba(20, 19, 17, 0.16);
  --black: #151517;
  --black-2: #1d1d1f;
  --on-black: #f4f4f6;
  --on-black-2: rgba(246, 244, 240, 0.62);
  --line-dark: rgba(255, 255, 255, 0.1);

  --accent: #4b5cff;
  --accent-soft: rgba(75, 92, 255, 0.12);
  --pass: #22c55e;
  --pass-ink: #166534; /* #15803d was 4.45:1 on --pass-soft (11px tag text); now 6.3:1 */
  --pass-soft: rgba(34, 197, 94, 0.14);
  --cond: #f59e0b;
  --cond-ink: #92400e;
  --cond-soft: rgba(245, 158, 11, 0.16);
  --fail: #ef4444;
  --fail-ink: #b91c1c;
  --fail-soft: rgba(239, 68, 68, 0.14);
  --info: #3b82f6;

  --font-sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Pretendard Variable", sans-serif;

  --t-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --t-h2: clamp(1.875rem, 1.3rem + 2.1vw, 3rem);
  --t-h3: 1.25rem;
  --t-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-cap: 0.8125rem;
  --t-micro: 0.75rem;

  --container: 80rem;
  --narrow: 46rem;
  --gutter: 1.5rem;
  --sect: clamp(4.5rem, 3rem + 5vw, 8rem);
  --nav-h: 4.25rem;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-hero: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 4px rgba(20, 19, 17, 0.04), 0 18px 40px -12px rgba(20, 19, 17, 0.18), 0 60px 90px -40px rgba(20, 19, 17, 0.22);
  --shadow-float: 0 1px 2px rgba(20, 19, 17, 0.06), 0 12px 32px -8px rgba(20, 19, 17, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 40rem) {
  :root {
    --gutter: 1.125rem;
  }
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  background: var(--paper);
}
body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  font-weight: 430;
  line-height: 1.68;
  letter-spacing: -0.004em;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--accent);
  color: #fff;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.5rem 0.875rem;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible {
  transform: none;
}
/* skip-link target: focusable so focus really moves, but no ring around the whole page body */
main[tabindex]:focus {
  outline: none;
}
.ic {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ----------------------------------------------------------- typography */
h1,
h2,
h3,
h4 {
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
h1 {
  font-size: var(--t-h1);
  line-height: 1.06;
}
h2 {
  font-size: var(--t-h2);
}
h3 {
  font-size: var(--t-h3);
  letter-spacing: -0.015em;
  line-height: 1.32;
}
p {
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-cap);
  font-weight: 560;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}
.mini {
  font-size: var(--t-micro);
  color: var(--ink-3);
}
.m {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.ok {
  color: var(--pass-ink);
}
.warn {
  color: var(--cond-ink);
}
.bad {
  color: var(--fail-ink);
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--t-small);
  font-weight: 560;
  color: var(--ink);
}
.arrow-link .ic {
  transition: transform 0.2s var(--ease-out);
}
.arrow-link:hover .ic,
.fcard--link:hover .arrow-link .ic,
.lcard:hover .arrow-link .ic {
  transform: translateX(3px);
}

/* --------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--narrow);
}
.section {
  position: relative;
  padding-block: var(--sect);
}
.section--tight {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section--dark {
  background: var(--black);
  color: var(--on-black);
}
.section--dark .lead,
.section--dark .eyebrow,
.section--dark .mini {
  color: var(--on-black-2);
}
.shead {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 4rem);
  display: grid;
  gap: 1rem;
}
.shead--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.shead__title {
  max-width: 22ch;
}

/* ----------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-size: var(--t-small);
  font-weight: 560;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn__ic {
  transition: transform 0.2s var(--ease-out);
}
.btn:hover .btn__ic {
  transform: translateX(2px);
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 20px -10px rgba(20, 19, 17, 0.5);
}
.btn--primary:hover {
  background: #000;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover {
  background: #fff;
  border-color: rgba(20, 19, 17, 0.3);
}
.btn--lg {
  height: 3.125rem;
  padding: 0 1.5rem;
  font-size: 1rem;
  border-radius: 10px;
}
.btn--sm {
  height: 2.25rem;
  padding: 0 0.875rem;
  font-size: 0.875rem;
}
.section--dark .btn--primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
}
.section--dark .btn--primary:is(:hover, :focus-visible) {
  background: var(--warm);
  color: var(--ink);
}
.section--dark .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--on-black);
}
.section--dark .btn--ghost:is(:hover, :focus-visible) {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-black);
}

/* tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.375rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: middle;
  background: var(--warm-2);
  color: var(--ink-2);
}
.tag::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.tag--live {
  background: var(--pass-soft);
  color: var(--pass-ink);
}
.tag--live::before {
  background: var(--pass);
  opacity: 1;
}
.tag--preview {
  background: var(--cond-soft);
  color: var(--cond-ink);
}
.tag--preview::before {
  background: var(--cond);
  opacity: 1;
}
.section--dark .tag,
.option--human .tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-black);
}
.section--dark .tag--live {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}
.section--dark .tag--preview {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

/* --------------------------------------------------------------- reveal */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.nav.is-scrolled,
.nav.is-open {
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand {
  display: inline-flex;
  color: var(--ink);
  flex: none;
}
.nav__brand .wordmark {
  height: 1.2rem;
  width: auto;
}
.nav__menu {
  margin-inline: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
.nav__item {
  position: relative;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 2.375rem;
  padding: 0 0.8rem;
  border-radius: 8px;
  font-size: var(--t-small);
  font-weight: 520;
  color: var(--ink-2);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav__link:hover,
.nav__link.is-active,
.nav__btn[aria-expanded="true"] {
  color: var(--ink);
  background: var(--warm);
}
.nav__chev {
  width: 0.7em;
  height: 0.7em;
  transition: transform 0.2s var(--ease);
}
.nav__btn[aria-expanded="true"] .nav__chev {
  transform: rotate(180deg);
}
.mega {
  position: absolute;
  top: calc(100% + 0.625rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 40rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(20, 19, 17, 0.05), 0 24px 60px -20px rgba(20, 19, 17, 0.25);
}
.mega__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.5rem;
}
.mega__group {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem;
}
.mega__title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem 0.5rem;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.mega__title--link:hover {
  color: var(--ink);
}
.mega__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  transition: background 0.15s var(--ease);
}
.mega__item:hover {
  background: var(--warm);
}
.mega__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--warm);
  color: var(--ink);
  flex: none;
  font-size: 1.05rem;
}
.mega__item:hover .mega__icon {
  background: #fff;
}
.mega__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.mega__label {
  font-size: var(--t-small);
  font-weight: 560;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mega__desc {
  font-size: var(--t-cap);
  color: var(--ink-3);
}
.mega__all {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0.5rem 0.25rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-cap);
  font-weight: 560;
  color: var(--ink-2);
}
.mega__all:hover {
  color: var(--ink);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}
.lang {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 560;
}
.lang a,
.lang span {
  padding: 0.25rem 0.4rem;
  color: var(--ink-3);
}
.lang a[aria-current="page"] {
  color: var(--ink);
}
.nav__toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
}
.nav__toggle-bar {
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav.is-open .nav__toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav.is-open .nav__toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.nav__mobile-foot {
  display: none;
}
@media (max-width: 64rem) {
  .nav__menu {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
  .nav__cta,
  .nav__lang {
    display: none;
  }
  .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    padding: 0.5rem var(--gutter) 2.5rem;
    background: #fff;
    overflow-y: auto;
    margin: 0;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__item {
    border-bottom: 1px solid var(--line);
  }
  .nav__link {
    width: 100%;
    height: auto;
    padding: 1.125rem 0;
    font-size: 1.375rem;
    font-weight: 560;
    color: var(--ink);
    border-radius: 0;
    justify-content: space-between;
    background: none !important;
  }
  .mega {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0 0 1rem;
    border: 0;
    box-shadow: none;
  }
  .mega__inner {
    grid-template-columns: 1fr;
  }
  .mega__group {
    padding: 0;
  }
  .nav.is-open .nav__mobile-foot {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.5rem;
  }
  .nav.is-open .nav__mobile-foot .btn {
    width: 100%;
  }
}

/* crumbs */
.crumbs {
  padding-top: 1.25rem;
  font-size: var(--t-cap);
  color: var(--ink-3);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs li[aria-current] {
  color: var(--ink);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 3vw, 5rem);
  overflow: clip;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(20, 19, 17, 0.14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000, transparent 70%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero--text .hero__grid {
  grid-template-columns: minmax(0, 1fr);
}
/* text-only hero: centred copy on plain paper, same axis as the stage heroes */
.hero--text .hero__bg {
  display: none;
}
.hero--text .hero__copy {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.hero--text .hero__title,
.hero--text .hero__lead {
  margin-inline: auto;
}
.hero--text .hero__actions {
  justify-content: center;
}
.hero__copy {
  display: grid;
  gap: 1.375rem;
}
.eyebrow--hero {
  color: var(--ink-2);
}
.hero__title {
  max-width: 20ch;
}
.nowrap {
  white-space: nowrap;
}
.hero__lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 44ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.hero__note {
  font-size: var(--t-cap);
  color: var(--ink-3);
}
.hero__note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero__visual {
  position: relative;
  min-height: 24rem;
}
.hero--dark {
  background: var(--black);
  color: var(--on-black);
}
.hero--dark .hero__lead,
.hero--dark .eyebrow--hero,
.hero--dark .hero__note {
  color: var(--on-black-2);
}
.hero--dark .hero__bg {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1.4px);
}
.hero--dark .btn--primary {
  background: #fff;
  color: var(--ink);
}
.hero--dark .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--on-black);
}
@media (max-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__visual {
    min-height: 0;
  }
}

/* ------------------------------------------------------------- stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.stat {
  padding: 1.25rem 1.375rem;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: grid;
  gap: 0.25rem;
}
.stat__num {
  font-size: 2rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat__num small {
  font-size: 0.875rem;
  font-weight: 520;
  color: var(--ink-3);
  margin-left: 0.25rem;
  letter-spacing: 0;
}
.stat__label {
  font-size: var(--t-cap);
  color: var(--ink-2);
}
@media (max-width: 48rem) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ----------------------------------------------------------- pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.pillar {
  display: flex;
  flex-direction: column;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.3s var(--ease-out);
}
.pillar:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.pillar__visual {
  height: 11rem;
  padding: 1.5rem 1.5rem 0;
  background-image: radial-gradient(circle, rgba(20, 19, 17, 0.12) 1px, transparent 1.3px);
  background-size: 18px 18px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pillar__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
  flex: 1;
}
.pillar__name {
  font-size: var(--t-cap);
  font-weight: 560;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pillar__q {
  font-size: 1.375rem;
}
.pillar__text {
  font-size: var(--t-small);
  color: var(--ink-2);
}
.pillar__get {
  margin-top: auto;
  padding: 0.75rem 0.875rem;
  background: var(--warm);
  border-radius: var(--r-sm);
  font-size: var(--t-cap);
  line-height: 1.55;
  color: var(--ink-2);
}
.pillar__get b {
  display: block;
  font-size: var(--t-micro);
  color: var(--ink-3);
  margin-bottom: 0.15rem;
}
@media (max-width: 48rem) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .pv {
    max-width: 24rem;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------- features */
.fgrid {
  display: grid;
  gap: 1.125rem;
}
.fgrid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fgrid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fgrid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fcard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.3s var(--ease-out);
}
.fcard--link:hover {
  background: #fff;
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.fcard__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 1.25rem;
  color: var(--ink);
}
.fcard__title {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.fcard__text {
  font-size: var(--t-small);
  color: var(--ink-2);
}
.fcard .arrow-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: var(--t-cap);
}
.section--dark .fcard {
  background: var(--black-2);
  border-color: var(--line-dark);
}
.section--dark .fcard__icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
  color: var(--on-black);
}
.section--dark .fcard__text {
  color: var(--on-black-2);
}
.section--dark .fcard--link:hover {
  background: #252527;
}
.section--dark .arrow-link {
  color: var(--on-black);
}
/* dense list for long feature inventories (17 categories): icon + title in a row, ragged end reads as a list */
.fgrid--dense {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}
.fgrid--dense .fcard {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
}
.fgrid--dense .fcard__icon {
  flex: none;
  width: 2.125rem;
  height: 2.125rem;
  font-size: 1.05rem;
}
.fgrid--dense .fcard__title {
  font-size: var(--t-small);
}
.fgrid--dense .fcard__text {
  display: none;
}
@media (max-width: 64rem) {
  .fgrid--3,
  .fgrid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fgrid--dense {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  }
}
/* three-item grids keep three columns at tablet instead of orphaning the third card */
@media (max-width: 64rem) and (min-width: 48.01rem) {
  .steps:has(> :nth-child(3):last-child),
  .fgrid--3:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 40rem) {
  .fgrid--2,
  .fgrid--3,
  .fgrid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------ split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.split--flip .split__copy {
  order: 2;
}
/* the visual always takes the wide track, whichever side it sits on */
.split--flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.split__copy {
  display: grid;
  gap: 1.125rem;
  max-width: 34rem;
}
.split__title {
  max-width: 20ch;
}
.split__text {
  color: var(--ink-2);
}
.section--dark .split__text {
  color: var(--on-black-2);
}
.checks {
  display: grid;
  gap: 0.5rem;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--t-small);
  color: var(--ink-2);
}
.section--dark .checks li {
  color: var(--on-black-2);
}
.checks__ic {
  flex: none;
  margin-top: 0.3rem;
  width: 1rem;
  height: 1rem;
  padding: 0.15rem;
  border-radius: 50%;
  background: var(--pass-soft);
  color: var(--pass-ink);
}
.section--dark .checks__ic {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}
.split__cta {
  margin-top: 0.25rem;
}
.split__visual {
  position: relative;
  min-height: 20rem;
  display: grid;
  align-content: center;
}
@media (max-width: 64rem) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--flip .split__copy {
    order: 0;
  }
  .split__visual {
    min-height: 0;
  }
}

/* --------------------------------------------------------- showcase */
.showcase {
  overflow: clip;
}
.showcase .shead {
  margin-bottom: 2.5rem;
}
.showcase__stage {
  position: relative;
  padding: 2px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
}
.showcase__stage .win {
  border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.showcase__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.snote {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.125rem;
  border-left: 1px solid var(--line-dark);
  font-size: var(--t-small);
  color: var(--on-black-2);
}
.snote b {
  color: var(--on-black);
  font-weight: 560;
}
@media (max-width: 48rem) {
  .showcase__notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------ steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.125rem;
}
/* Step count controls the responsive grid in refinement.css. */
.steps[data-count="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.steps[data-count="5"] {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.steps[data-count="5"] > .step {
  grid-column: auto;
}
.steps[data-count="5"] > .step:nth-child(4) {
  grid-column: auto;
}
.step {
  position: relative;
  display: grid;
  gap: 0.625rem;
  padding: 1.5rem;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  align-content: start;
}
.step__no {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: var(--t-micro);
  font-weight: 600;
}
.step__visual {
  max-height: 9rem;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.step__visual .card--prev,
.step__visual .float {
  display: none;
}
.step__title {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.step__text {
  font-size: var(--t-small);
  color: var(--ink-2);
}
.step__meta {
  font-size: var(--t-micro);
  color: var(--ink-3);
  line-height: 1.6;
}
.steps__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: var(--t-cap);
  color: var(--ink-3);
}
@media (max-width: 64rem) {
  .steps,
  .steps[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 40rem) {
  .steps,
  .steps[data-count="4"],
  .steps[data-count="5"] {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps[data-count="5"] > .step,
  .steps[data-count="5"] > .step:nth-child(4) {
    grid-column: auto;
  }
}

/* ---------------------------------------------------------- options */
.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.option {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.75rem;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.option--human {
  background: var(--black);
  color: var(--on-black);
  border-color: var(--black);
}
.option--human .eyebrow,
.option--human .option__text,
.option--human .option__fit,
.option--human .option__list h4 {
  color: var(--on-black-2);
}
.option__visual {
  position: relative;
  min-height: 12rem;
  margin: -0.5rem -0.5rem 0.5rem;
}
.option__title {
  font-size: 1.5rem;
}
.option__text {
  color: var(--ink-2);
  font-size: var(--t-small);
}
.option__list h4 {
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.option__list ul {
  display: grid;
  gap: 0.45rem;
}
.option__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--t-small);
}
.option--human .checks__ic {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.option__strong {
  font-size: 1.0625rem;
  font-weight: 560;
  line-height: 1.5;
}
.option__fit {
  font-size: var(--t-cap);
  color: var(--ink-3);
}
.option__fit b {
  display: block;
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.option__cta {
  margin-top: auto;
  padding-top: 0.5rem;
}
.option--human .btn--primary {
  background: #fff;
  color: var(--ink);
}
.options__note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: var(--t-small);
  color: var(--ink-2);
}
@media (max-width: 64rem) {
  .options {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------ table */
.tablewrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.itable th,
.itable td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: var(--t-small);
}
.itable thead th {
  background: var(--warm);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  padding-block: 0.75rem;
}
.itable tbody th {
  font-weight: 560;
  width: 20%;
}
.itable td:nth-child(2) {
  width: 46%;
}
.itable tr:last-child th,
.itable tr:last-child td {
  border-bottom: 0;
}
.itable ul {
  display: grid;
  gap: 0.35rem;
}
.itable li {
  position: relative;
  padding-left: 1.125rem;
  line-height: 1.55;
}
.itable li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--pass);
}
.itable td.is-preview {
  color: var(--ink-2);
}
.itable td.is-preview li::before {
  background: transparent;
  border: 1.5px solid var(--cond);
}
.itable .none {
  color: var(--ink-3);
}
.table__note {
  margin-top: 1rem;
  font-size: var(--t-cap);
  color: var(--ink-3);
}
@media (max-width: 48rem) {
  .itable thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .itable,
  .itable tbody,
  .itable tr,
  .itable th,
  .itable td {
    display: block;
    width: auto !important;
  }
  .itable tr {
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--line);
  }
  .itable th,
  .itable td {
    padding: 0.25rem 0;
    border: 0;
  }
  .itable td[data-col]::before {
    content: attr(data-col);
    display: block;
    font-size: var(--t-micro);
    font-weight: 600;
    color: var(--ink-3);
    margin: 0.5rem 0 0.25rem;
  }
}

/* ------------------------------------------------------------ roles */
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.role {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.375rem;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.role__label {
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--ink-3);
}
.role strong {
  font-weight: 560;
  font-size: 1.0625rem;
}
.role__text {
  font-size: var(--t-cap);
  color: var(--ink-2);
}
@media (max-width: 48rem) {
  .roles {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* -------------------------------------------------------------- faq */
.faq {
  display: grid;
  gap: 0.625rem;
}
.faq__item {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0 1.25rem;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__ic {
  flex: none;
  color: var(--ink-3);
  transition: transform 0.2s var(--ease);
}
.faq__item[open] .faq__ic {
  transform: rotate(180deg);
}
.faq__a {
  padding: 0 0 1.25rem;
  font-size: var(--t-small);
  color: var(--ink-2);
  max-width: 62ch;
}

/* ------------------------------------------------------------ cards */
.lcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.125rem;
}
/* Five cards use two columns; the last card spans both in refinement.css. */
.lcards:has(> :nth-child(5):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lcards:has(> :nth-child(5):last-child) > .lcard {
  grid-column: auto;
}
.lcards:has(> :nth-child(5):last-child) > .lcard:first-child {
  grid-column: auto;
}
@media (max-width: 72rem) {
  .lcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 48rem) {
  .lcards,
  .lcards:has(> :nth-child(5):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
  .lcards:has(> :nth-child(5):last-child) > .lcard,
  .lcards:has(> :nth-child(5):last-child) > .lcard:first-child {
    grid-column: auto;
  }
}
.lcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.3s var(--ease-out), background 0.2s var(--ease);
}
.lcard:hover {
  background: #fff;
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.lcard__visual {
  height: 11.5rem;
  padding: 1.25rem 1.25rem 0;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(20, 19, 17, 0.12) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
/* thumbnails crop with a soft fade instead of a hard cut */
.lcard__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3rem;
  background: linear-gradient(180deg, rgba(244, 242, 240, 0), var(--warm));
  pointer-events: none;
  z-index: 2;
}
.lcard:hover .lcard__visual::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}
/* the whole card is the link: the title anchor's ::after covers the article */
.lcard__link {
  color: inherit;
  text-decoration: none;
}
.lcard__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.lcard:has(.lcard__link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.lcard__link:focus-visible {
  outline: none;
}
.lcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.375rem;
  flex: 1;
}
.lcard__body h3 {
  font-size: 1.125rem;
}
.lcard__body p {
  font-size: var(--t-small);
  color: var(--ink-2);
}
.lcard .arrow-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: var(--t-cap);
}

/* ----------------------------------------------------- deliverables */
.deliver {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.dl {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.25rem 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line-dark);
}
.dl__no {
  font-family: var(--font-mono);
  font-size: var(--t-cap);
  color: var(--on-black-2);
  padding-top: 0.2rem;
}
.dl h3 {
  font-size: 1.125rem;
  color: var(--on-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dl p {
  font-size: var(--t-small);
  color: var(--on-black-2);
}
.deliver__visual {
  position: relative;
}
@media (max-width: 64rem) {
  .deliver {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* -------------------------------------------------------------- cta */
.cta {
  padding-block: 0 var(--sect);
}
.cta__box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background: var(--black);
  color: var(--on-black);
  border-radius: var(--r-xl);
}
.cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta__copy {
  position: relative;
}
.cta__copy h2 {
  color: var(--on-black);
  max-width: 20ch;
}
.cta__copy p {
  margin-top: 0.875rem;
  color: var(--on-black-2);
  max-width: 48ch;
}
.cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
.cta__contact {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: var(--t-cap);
  color: var(--on-black-2);
}
.cta__contact a:hover {
  color: var(--on-black);
}
.cta--light .cta__box {
  background: var(--warm);
  color: var(--ink);
}
.cta--light .cta__copy h2 {
  color: var(--ink);
}
.cta--light .cta__copy p,
.cta--light .cta__contact {
  color: var(--ink-2);
}
.cta--light .btn--primary {
  background: var(--ink);
  color: #fff;
}
.cta--light .btn--ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}
@media (max-width: 64rem) {
  .cta__box {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta__actions {
    justify-content: flex-start;
  }
}

/* ----------------------------------------------------------- contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.contact__copy .shead {
  margin-bottom: 1.5rem;
}
.contact__card {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.contact__card h3 {
  font-size: 1.375rem;
}
.contact__card > p {
  font-size: var(--t-small);
  color: var(--ink-2);
}
.contact__actions {
  display: grid;
  gap: 0.625rem;
}
.contact__actions .btn {
  width: 100%;
}
.contact__meta {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.contact__meta div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  font-size: var(--t-cap);
}
.contact__meta dt {
  color: var(--ink-3);
}
.contact__meta dd {
  color: var(--ink-2);
}
@media (max-width: 64rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------- prose */
.prose {
  display: grid;
  gap: 1rem;
}
.prose h1 {
  font-size: var(--t-h2);
  margin-bottom: 0.5rem;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}
.prose h3 {
  font-size: 1.125rem;
  margin-top: 0.75rem;
}
.prose p,
.prose li {
  color: var(--ink-2);
  font-size: var(--t-body);
}
.prose ul,
.prose ol {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.25rem;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose__meta {
  font-size: var(--t-cap);
  color: var(--ink-3);
}
.prose dl {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.prose dl div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  font-size: var(--t-small);
}
.prose dt {
  color: var(--ink-3);
}
.prose__table {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.prose table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: var(--t-cap);
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--ink-3);
  background: var(--warm);
  white-space: nowrap;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose td:first-child {
  font-weight: 560;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----------------------------------------------------------- footer */
.footer {
  background: var(--black);
  color: var(--on-black);
  padding-block: 4rem 2rem;
  font-size: var(--t-small);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.footer__brand .wordmark {
  height: 1.2rem;
  width: auto;
  color: var(--on-black);
  margin-bottom: 1rem;
}
.footer__brand p {
  color: var(--on-black-2);
  font-size: var(--t-cap);
  max-width: 34ch;
}
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 1rem;
  font-size: var(--t-cap);
}
.footer__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__title {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-black-2);
  margin-bottom: 0.875rem;
}
.footer__col ul {
  display: grid;
  gap: 0.5rem;
}
.footer__col a {
  color: var(--on-black-2);
  font-size: var(--t-cap);
}
.footer__col a:hover {
  color: var(--on-black);
}
.footer__col .tag {
  height: 1.125rem;
  padding: 0 0.4rem;
  margin-left: 0.25rem;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--t-micro);
  color: var(--on-black-2);
}
.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__bottom a:hover {
  color: var(--on-black);
}
.footer .lang a[aria-current="page"] {
  color: var(--on-black);
}
.footer .lang span {
  color: var(--on-black-2);
}
@media (max-width: 64rem) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 40rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Product UI vignettes
   ========================================================================== */
.v {
  position: relative;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink);
}
.v__in {
  position: relative;
}
.v .m {
  font-size: 0.75em;
  color: var(--ink-3);
}

/* verdict badges, severity, result dots */
.vb {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.vb::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
}
.vb--pass {
  background: var(--pass-soft);
  color: var(--pass-ink);
}
.vb--conditional {
  background: var(--cond-soft);
  color: var(--cond-ink);
}
.vb--fail {
  background: var(--fail-soft);
  color: var(--fail-ink);
}
.sv {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.sv::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}
.sv--critical {
  color: var(--fail-ink);
}
.sv--major {
  color: #c2410c;
}
.sv--minor {
  color: #1d4ed8;
}
.sv--trivial {
  color: var(--pass-ink);
}
.sv--off {
  color: var(--ink-3);
}
.sv--off::before {
  background: transparent;
  border: 1px dashed currentColor;
}
.rd {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  vertical-align: middle;
}
.rd--pass {
  background: var(--pass);
}
.rd--fail {
  background: var(--fail);
  border-radius: 2px;
}
.rd--quar {
  background: transparent;
  border: 2px dashed var(--cond);
}
.rd--skip {
  background: transparent;
  border: 1.5px solid var(--line-2);
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
  font-style: normal;
}
.pill--fill {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pill--soft {
  color: var(--ink-3);
}
.av {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #818cf8);
  border: 2px solid #fff;
}
.av--b {
  background: linear-gradient(135deg, #bbf7d0, #22c55e);
  margin-left: -0.4rem;
}
.av--c {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}
.av--x {
  background: linear-gradient(135deg, #1d1d1f, #4b5cff);
  width: 1.5rem;
  height: 1.5rem;
}

/* cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1rem 1.125rem;
  box-shadow: var(--shadow-float);
}
.card + .card {
  margin-top: 0.875rem;
}
.card--dashed {
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.5);
}
.card--ghost {
  box-shadow: none;
  background: var(--warm);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.card__head b {
  font-weight: 600;
}
.card__t {
  font-size: var(--t-micro);
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.kv li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.kv li span {
  color: var(--ink-2);
}
.kv li b {
  font-weight: 560;
  text-align: right;
}
.kv--tight li {
  gap: 0.75rem;
  justify-content: flex-start;
}
.kv--tight li b {
  margin-left: auto;
}
.kv li.warn b {
  color: var(--cond-ink);
}
.rows {
  display: grid;
  gap: 0.25rem;
}
.rows li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  background: var(--warm);
}
.rows li div {
  display: grid;
  min-width: 0;
  flex: 1;
}
.rows li b {
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rows li div span {
  font-size: 0.7rem;
  color: var(--ink-3);
}
.rows--mini li {
  padding: 0.35rem 0.5rem;
}
.rows--mini li.off {
  opacity: 0.7;
}
.rows--events li .m {
  font-size: 0.7rem;
  white-space: nowrap;
}
.rows--api li {
  gap: 0.6rem;
}
.rows--api li b {
  font-family: var(--font-mono);
  font-weight: 560;
  font-size: 0.75rem;
}
.rows--api li .m {
  margin-left: auto;
}
.mth {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  flex: none;
}
.mth--get {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
}
.mth--post {
  background: var(--pass-soft);
  color: var(--pass-ink);
}
.mth--put {
  background: var(--cond-soft);
  color: var(--cond-ink);
}

/* windows */
.win {
  position: relative;
  background: #fff;
  border: 1px solid rgba(20, 19, 17, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  font-size: 0.75rem;
}
.win__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 2.25rem;
  padding: 0 0.875rem;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}
.win__dots {
  display: flex;
  gap: 5px;
}
.win__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(20, 19, 17, 0.14);
}
.win__crumb {
  font-size: 0.7rem;
  color: var(--ink-3);
}
.win__user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.win__lang {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 0.35rem;
}
.win__body {
  display: grid;
  grid-template-columns: 11rem 1fr;
  min-height: 22rem;
}
.win--wide .win__body {
  min-height: 26rem;
}
.win__side {
  padding: 0.75rem 0.5rem;
  border-right: 1px solid var(--line);
  background: #fafafc;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.win__proj {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.7rem;
}
.win__proj b {
  font-weight: 600;
}
.win__proj span {
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--ink-3);
}
.win__grp {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 0.55rem 0.6rem 0.2rem;
}
.win__side a,
.win__side span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--ink-2);
}
.win__side :is(a, span) .ic {
  font-size: 0.8rem;
  color: var(--ink-3);
}
.win__side .on {
  background: var(--warm-2);
  color: var(--ink);
  font-weight: 560;
}
.win__main {
  padding: 1rem;
  background: #fff;
}
.win__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.win__head h4 {
  font-size: 0.95rem;
  font-weight: 600;
}
.win__sub {
  font-size: 0.7rem;
  color: var(--ink-3);
}
.win__btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}
.tile {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.tile--wide {
  grid-column: 1 / -1;
}
.tile__t {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}
.tile__t span {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 0.65rem;
}
.sevbar {
  display: flex;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--warm-2);
  gap: 2px;
}
.sevbar i {
  width: 0;
  transition: width 1.1s var(--ease-out);
}
.is-live .sevbar i {
  width: var(--w);
}
.sevbar__c {
  background: var(--fail);
}
.sevbar__m {
  background: #f97316;
}
.sevbar__n {
  background: var(--info);
}
.sevbar__t {
  background: var(--pass);
}
.tile__nums {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.6rem;
}
.tile__nums b {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tile__nums span {
  font-size: 0.7rem;
  color: var(--ink-3);
}
.tile__nums em {
  margin-left: auto;
  font-style: normal;
  display: flex;
  gap: 0.6rem;
}
.vlist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}
.rings {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.ring {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  font-size: 0.6rem;
  color: var(--ink-3);
}
.ring svg {
  width: 2.75rem;
  height: 2.75rem;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke: var(--warm-2);
  stroke-width: 3.5;
}
.ring .ring__fg {
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 97.4;
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.is-live .ring .ring__fg {
  stroke-dashoffset: calc(97.4 - 97.4 * var(--p) / 100);
}
.ring b {
  position: absolute;
  top: 0.95rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink);
}
.wt {
  font-size: 0.7rem;
}
.wt th,
.wt td {
  padding: 0.4rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.wt td:first-child {
  white-space: normal;
}
/* the dashboard/cases tables drop their 3rd column in narrow panels; the engine matrix keeps Firefox */
.hero__visual .wt:not(.wt--matrix) td:nth-child(3),
.hero__visual .wt:not(.wt--matrix) th:nth-child(3) {
  display: none;
}
.hero__visual .wt td {
  white-space: nowrap;
}
.hero__visual .tile__t span {
  display: none;
}
.hero__visual .vlist li {
  font-size: 0.66rem;
}
.hero__visual .ring svg {
  width: 2.4rem;
  height: 2.4rem;
}
.hero__visual .ring b {
  top: 0.8rem;
  font-size: 0.55rem;
}
.hero__visual .tile__nums em,
.split__visual .tile__nums em,
.lcard__visual .tile__nums em {
  display: none;
}
.hero__visual .tiles .tile:nth-child(3),
.split__visual .tiles .tile:nth-child(3) {
  display: none;
}
.hero__visual .tiles .tile:nth-child(2),
.split__visual .tiles .tile:nth-child(2) {
  grid-column: 1 / -1;
}
.split__visual .tile__t span {
  display: none;
}
.split__visual .wt td {
  white-space: nowrap;
}
.split__visual .wt:not(.wt--matrix) td:nth-child(3),
.split__visual .wt:not(.wt--matrix) th:nth-child(3) {
  display: none;
}
.wt th {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.wt tr:last-child td {
  border-bottom: 0;
}
.wt tr.hi td {
  background: var(--warm);
}
.wt--matrix td:not(:first-child) {
  text-align: center;
}
.wt .q {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.6rem;
  color: var(--cond-ink);
  border: 1px dashed var(--cond);
  border-radius: 4px;
  padding: 0 0.3rem;
}

/* floating pieces */
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  background: #fff;
  border: 1px solid rgba(20, 19, 17, 0.1);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  font-size: 0.75rem;
  z-index: 2;
}
.float b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
}
.float span {
  display: block;
  font-size: 0.65rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.float > .ic {
  font-size: 1.1rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: var(--pass-soft);
  color: var(--pass-ink);
  width: 1.9rem;
  height: 1.9rem;
}
.float--warn > .ic {
  background: var(--cond-soft);
  color: var(--cond-ink);
}
.float--bad > .ic {
  background: var(--fail-soft);
  color: var(--fail-ink);
}
.float--verdict {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  left: 0;
  top: 3.5rem;
  max-width: 14rem;
  animation: bob 7s ease-in-out infinite;
}
.float--verdict .vb {
  font-size: 1rem;
  padding: 0.25rem 0.75rem;
}
.float__t {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-3);
}
.float__s {
  font-size: 0.65rem;
  color: var(--ink-3);
  white-space: normal !important;
}
.float--toast {
  right: -1.5rem;
  top: 26%;
  animation: bob 8s ease-in-out 0.8s infinite;
}
.float--finding {
  left: 10%;
  bottom: -2.25rem;
  animation: bob 9s ease-in-out 1.6s infinite;
}
.float--finding .sv {
  padding: 0.25rem 0.45rem;
  background: var(--fail-soft);
  border-radius: 6px;
}
.float--role {
  right: 0;
  bottom: 0;
}
.float--role > .ic {
  background: var(--warm-2);
  color: var(--ink);
}
.float--memo {
  right: 0;
  bottom: 0;
}
/* chips hang under their card, never over its last row */
.v--experts {
  padding-bottom: 2.75rem;
}
.float--memo > .ic {
  background: var(--accent-soft);
  color: var(--accent);
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
[data-parallax] .float,
[data-parallax] .win {
  will-change: transform;
}

/* verdict big */
.card--verdict {
  max-width: 26rem;
}
/* in a split panel the verdict card and its ghost share one width, centred */
.split__visual .v--verdict {
  max-width: 30rem;
  margin-inline: auto;
}
.split__visual .card--verdict {
  max-width: none;
}
.verdict-big {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0;
}
.verdict-big .vb {
  font-size: 1.375rem;
  padding: 0.35rem 1rem;
  justify-self: start;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}
.is-live .verdict-big .vb {
  transform: none;
  opacity: 1;
}
.verdict-big p {
  font-size: 0.75rem;
  color: var(--ink-2);
}

/* security */
.scan-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.st {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.7rem;
}
.st span {
  color: var(--ink-3);
  font-size: 0.62rem;
}
.st b {
  font-weight: 600;
}
.st em {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--ink-3);
}
.st--off {
  border-style: dashed;
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--warm) 6px 7px);
}
.st--off b {
  color: var(--ink-3);
}
.impact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--fail-soft);
  margin-bottom: 0.625rem;
  font-size: 0.72rem;
}
.impact .m {
  color: var(--fail-ink);
}
[data-anim="rows"] > * {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.is-live [data-anim="rows"] > * {
  opacity: 1;
  transform: none;
}
.is-live [data-anim="rows"] > :nth-child(2) {
  transition-delay: 0.12s;
}
.is-live [data-anim="rows"] > :nth-child(3) {
  transition-delay: 0.24s;
}
.is-live [data-anim="rows"] > :nth-child(4) {
  transition-delay: 0.36s;
}
.is-live [data-anim="rows"] > :nth-child(5) {
  transition-delay: 0.48s;
}
.is-live [data-anim="rows"] > :nth-child(6) {
  transition-delay: 0.6s;
}

/* monitoring timeline */
.tl {
  position: relative;
  height: 4rem;
  margin: 0.25rem 0.5rem 0.5rem;
}
.tl__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  border-top: 1px dashed var(--line-2);
}
.tl__n {
  position: absolute;
  top: 55%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.tl__n--deploy {
  width: 0.75rem;
  height: 0.75rem;
  background: #fff;
  border: 2px solid var(--ink);
}
.tl__spike {
  position: absolute;
  bottom: 45%;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  transform: translateX(-50%);
  margin-bottom: 0.45rem;
}
.tl__spike i {
  display: block;
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: var(--fail);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
.is-live .tl__spike i {
  transform: none;
}
.is-live .tl__spike i:nth-child(2) {
  transition-delay: 0.1s;
}
.is-live .tl__spike i:nth-child(3) {
  transition-delay: 0.2s;
}
.is-live .tl__spike i:nth-child(4) {
  transition-delay: 0.3s;
}
.tl__lbl {
  position: absolute;
  top: calc(55% + 0.6rem);
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--ink-3);
  white-space: nowrap;
}
.tl__lbl--bad {
  color: var(--fail-ink);
  font-weight: 600;
}

/* plan document */
.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.62rem;
}
.seg i {
  font-style: normal;
  padding: 0.15rem 0.5rem;
  color: var(--ink-3);
}
.seg i.on {
  background: var(--ink);
  color: #fff;
}
.doc__h {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.doc__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  font-size: 0.68rem;
  margin-bottom: 0.625rem;
}
.doc__meta dt {
  color: var(--ink-3);
}
.doc__lines {
  display: grid;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
.doc__lines i {
  display: block;
  height: 0.45rem;
  width: var(--w);
  border-radius: 999px;
  background: var(--warm-2);
}
.doc__q {
  border-left: 2px solid var(--ink);
  padding: 0.25rem 0 0.25rem 0.75rem;
  margin: 0.625rem 0;
  font-size: 0.72rem;
  color: var(--ink-2);
}
.doc__q b {
  display: block;
  font-size: 0.62rem;
  color: var(--ink-3);
  font-weight: 600;
}
.card--side {
  max-width: 20rem;
  margin-left: auto;
  margin-top: -1.5rem !important;
  position: relative;
  z-index: 2;
}
.v--plan .card--doc {
  max-width: 26rem;
}

/* PR strip, dots17 */
.pr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.625rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
  font-size: 0.72rem;
}
.pr b {
  font-weight: 600;
}
.pr__btns {
  margin-left: auto;
  display: flex;
  gap: 0.35rem;
}
.dots17 {
  display: inline-flex;
  gap: 0.25rem;
}
.dots17 i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink);
}
.dots17 i.off {
  background: transparent;
  border: 1px dashed var(--ink-3);
}
.wt .tag {
  height: 1.125rem;
  font-size: 0.6rem;
  padding: 0 0.4rem;
}

/* run progress + cells */
.prog {
  position: relative;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--warm-2);
  margin: 0.75rem 0;
}
.prog i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
  transition: width 2.2s var(--ease-out);
}
.is-live .prog i {
  width: 100%;
}
.prog span {
  position: absolute;
  right: 0;
  top: -1.1rem;
  font-size: 0.62rem;
  color: var(--ink-3);
}
tbody[data-anim="cells"] .rd {
  transform: scale(0);
  transition: transform 0.35s var(--ease-out);
}
.is-live tbody[data-anim="cells"] .rd {
  transform: none;
}
.is-live tbody[data-anim="cells"] tr:nth-child(1) .rd { transition-delay: 0.2s; }
.is-live tbody[data-anim="cells"] tr:nth-child(2) .rd { transition-delay: 0.5s; }
.is-live tbody[data-anim="cells"] tr:nth-child(3) .rd { transition-delay: 0.8s; }
.is-live tbody[data-anim="cells"] tr:nth-child(4) .rd { transition-delay: 1.1s; }
.is-live tbody[data-anim="cells"] tr:nth-child(5) .rd { transition-delay: 1.4s; }
.is-live tbody[data-anim="cells"] tr:nth-child(6) .rd { transition-delay: 1.7s; }
.ev {
  display: inline-flex;
  gap: 0.4rem;
  color: var(--ink-2);
}

/* browsers */
.browsers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.br {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.is-live .br {
  transform: none;
  opacity: 1;
}
.is-live .br:nth-child(2) {
  transition-delay: 0.15s;
}
.is-live .br:nth-child(3) {
  transition-delay: 0.3s;
}
.br--fail {
  border-color: rgba(239, 68, 68, 0.45);
}
.br__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.35rem 0.5rem;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
  font-size: 0.6rem;
  color: var(--ink-3);
}
.br__bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(20, 19, 17, 0.14);
}
.br__bar span {
  margin-left: auto;
  font-weight: 600;
}
.br__page {
  position: relative;
  padding: 0.75rem;
  display: grid;
  gap: 0.4rem;
  min-height: 6rem;
}
.br__line {
  height: 0.45rem;
  width: var(--w);
  border-radius: 999px;
  background: var(--warm-2);
}
.br__field {
  height: 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: 5px;
}
.br--fail .br__field--hi {
  border-color: var(--fail);
  box-shadow: 0 0 0 2px var(--fail-soft);
}
.br__btn {
  height: 1.25rem;
  width: 45%;
  border-radius: 5px;
  background: var(--ink);
}
.br__msg {
  justify-self: start;
  width: max-content;
  max-width: 100%;
  margin-top: 0.1rem;
  font-size: 0.55rem;
  color: var(--fail-ink);
  background: var(--fail-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.br__foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.62rem;
}
.evidence-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.875rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.7rem;
}
.evidence-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.evidence-strip .m {
  margin-left: auto;
}
.card--note .card__head {
  justify-content: flex-start;
}
.card--note .card__head .m {
  margin-left: auto;
}

/* sheet (report) */
.sheet {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-hero);
  z-index: 2;
  font-size: 0.78rem;
}
.sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.sheet__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.sheet__row span:first-child {
  color: var(--ink-2);
}
.sheet__row b {
  font-weight: 560;
  text-align: right;
}
.sheet__sec {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  margin: 0.875rem 0 0.15rem;
}
.sheet__sign {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.625rem;
  border-top: 1px dashed var(--line-2);
  font-size: 0.65rem;
  color: var(--ink-3);
}
.split__visual .sheet {
  box-shadow: var(--shadow-float);
}

/* coverage */
.covs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cov {
  display: grid;
  gap: 0.25rem;
}
.cov b {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cov span {
  font-size: 0.68rem;
  color: var(--ink-2);
}
.cov em {
  font-style: normal;
  font-size: 0.62rem;
  color: var(--ink-3);
}
.cov__bar {
  position: relative;
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--warm-2);
}
.cov__bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: var(--ink);
  transition: width 1.1s var(--ease-out);
}
.is-live .cov__bar::before {
  width: calc(var(--p) * 1%);
}
.cov__bar[style*="--t"]::after {
  content: "";
  position: absolute;
  left: calc(var(--t) * 1%);
  top: -3px;
  bottom: -3px;
  width: 1.5px;
  background: var(--fail);
}
@media (max-width: 40rem) {
  .covs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* stability */
.flk {
  display: grid;
  gap: 0.35rem;
}
.flk li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--warm);
  font-size: 0.72rem;
}
.flk li div {
  display: grid;
  min-width: 0;
  flex: 1;
}
.flk li b {
  font-weight: 560;
}
.flk__dots {
  display: inline-flex;
  gap: 2px;
}
.flk__dots i {
  width: 5px;
  height: 12px;
  border-radius: 2px;
  background: var(--pass);
}
.flk__dots i.f {
  background: var(--fail);
}
.flk .q {
  font-size: 0.6rem;
  color: var(--cond-ink);
  border: 1px dashed var(--cond);
  border-radius: 4px;
  padding: 0 0.3rem;
}

/* orgs */
.orgs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.org {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.875rem;
  box-shadow: var(--shadow-float);
  font-size: 0.72rem;
}
.org--on {
  border-color: var(--ink);
}
.org__h {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.org__h b {
  font-weight: 600;
}
.org__h .m {
  margin-left: auto;
}
.org__rows {
  display: grid;
  gap: 0.3rem;
}
.org__rows span {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: var(--warm);
  font-size: 0.65rem;
}
.org__rows .lock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-2);
}
.org__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.v--org {
  padding-bottom: 3.5rem;
}
@media (max-width: 40rem) {
  .orgs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* graph */
.graph {
  position: relative;
  aspect-ratio: 520 / 300;
}
.graph > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.graph__ln {
  stroke: var(--line-2);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.node {
  position: absolute;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  font-size: 0.68rem;
  text-align: center;
}
.node .ic {
  font-size: 1rem;
}
.node b {
  font-weight: 600;
}
.node span {
  font-size: 0.6rem;
  color: var(--ink-3);
}
.node--live {
  border-color: rgba(34, 197, 94, 0.5);
}
.node--live::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pass);
  border: 2px solid #fff;
}
.node--c {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  padding: 0.75rem 1.125rem;
  font-size: 0.85rem;
}

/* todo */
.todo {
  display: grid;
  gap: 0.35rem;
}
.todo li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--warm);
  font-size: 0.72rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.is-live .todo li {
  opacity: 1;
  transform: none;
}
.is-live .todo li:nth-child(2) { transition-delay: 0.15s; }
.is-live .todo li:nth-child(3) { transition-delay: 0.3s; }
.is-live .todo li:nth-child(4) { transition-delay: 0.45s; }
.is-live .todo li:nth-child(5) { transition-delay: 0.6s; }
.todo li .ic {
  padding: 0.15rem;
  border-radius: 50%;
  background: var(--pass-soft);
  color: var(--pass-ink);
  width: 1rem;
  height: 1rem;
}
.todo li.doing i {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 1.2s linear infinite;
  flex: none;
}
.todo li:not(.done):not(.doing) .ic {
  background: var(--warm-2);
  color: var(--ink-3);
}
.todo li .m {
  margin-left: auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* pipeline */
.pipe {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  position: relative;
}
.pipe::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1.75rem;
  border-top: 2px dashed var(--line-2);
}
.pipe__n {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: calc(var(--i) * 0.12s);
}
.is-live .pipe__n {
  opacity: 1;
  transform: none;
}
.pipe__n span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  font-size: 1.25rem;
}
.pipe__n b {
  font-weight: 560;
  text-align: center;
}
@media (max-width: 40rem) {
  .pipe {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pipe::before {
    display: none;
  }
}

/* toasts */
.toasts {
  display: grid;
  gap: 0.625rem;
}
.toasts .float {
  position: static;
  animation: none;
}

/* pillar visuals */
.pv {
  position: relative;
  width: 100%;
  height: 7.5rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  border-bottom: 0;
  padding: 1rem 1rem 0.75rem;
  box-shadow: 0 -8px 24px -16px rgba(20, 19, 17, 0.2);
  font-size: 0.75rem;
}
.pv__matrix {
  display: grid;
  gap: 0.4rem;
}
.pv__matrix div {
  display: flex;
  gap: 0.5rem;
}
.pv__badge {
  position: absolute;
  right: 1rem;
  top: 1rem;
}
.pv .rows li {
  background: var(--warm);
}
.pv--m svg {
  width: 100%;
  height: 3.5rem;
}
.pv__spark {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.is-live .pv__spark,
.reveal.is-in .pv__spark {
  stroke-dashoffset: 0;
}
.pv__pt {
  fill: var(--fail);
}
.pv__lbl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.68rem;
}
.pv__lbl .pill {
  margin-left: auto;
}

/* vignette sizing per context */
.split__visual .v,
.hero__visual .v,
.option__visual .v,
.deliver__visual .v {
  width: 100%;
}
.split__visual {
  padding: 1.5rem;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background-image: radial-gradient(circle, rgba(20, 19, 17, 0.12) 1px, transparent 1.3px);
  background-size: 18px 18px;
}
.section--dark .split__visual {
  background-color: var(--black-2);
  border-color: var(--line-dark);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1.3px);
}
.split__visual .win {
  font-size: 0.7rem;
}
.split__visual .win__body {
  grid-template-columns: 9.5rem 1fr;
  min-height: 0;
}
.option__visual .card {
  box-shadow: none;
}
.option--human .option__visual .card {
  background: var(--black-2);
  border-color: var(--line-dark);
  color: var(--on-black);
}
.option--human .option__visual .todo li {
  background: rgba(255, 255, 255, 0.06);
}
.option--human .option__visual .m,
.option--human .option__visual .todo li:not(.done):not(.doing) .ic {
  color: var(--on-black-2);
}
.option--human .option__visual .todo li:not(.done):not(.doing) .ic {
  background: rgba(255, 255, 255, 0.08);
}
.lcard__visual .v,
.lcard__visual .pv {
  font-size: 0.7rem;
}
.step__visual .v {
  font-size: 0.6rem;
}
.hero__visual .v--workspace {
  padding: 2rem 0 2rem 2rem;
}
.hero__visual .v--workspace .win {
  margin-left: 6rem;
}
.hero__visual .float--verdict {
  max-width: 12.5rem;
}
.split__visual .v--workspace .win {
  margin-left: 0;
}
.split__visual .float--verdict {
  left: auto;
  right: 0.5rem;
  top: 0.5rem;
  max-width: 12rem;
}
.split__visual .v--workspace .float--toast,
.split__visual .v--workspace .float--finding {
  display: none;
}
@media (max-width: 64rem) {
  .hero__visual .v--workspace {
    padding: 1rem 0 2rem;
  }
  .hero__visual .v--workspace .win {
    margin-left: 0;
  }
  .float--verdict {
    left: auto;
    right: 0;
    top: -1rem;
  }
  .float--toast {
    right: 0;
    top: auto;
    bottom: -1.5rem;
  }
  .float--finding {
    display: none;
  }
}
@media (max-width: 48rem) {
  .win__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .win__side {
    display: none;
  }
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile__nums em {
    display: none;
  }
  .browsers {
    grid-template-columns: minmax(0, 1fr);
  }
  .scan-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .card--side {
    max-width: none;
    margin-top: 0.875rem !important;
  }
  .float {
    position: static;
    animation: none;
    margin-top: 0.75rem;
  }
  .float--verdict {
    max-width: none;
  }
  .node {
    padding: 0.35rem 0.5rem;
    font-size: 0.6rem;
  }
  .node span {
    display: none;
  }
  .node--c {
    padding: 0.5rem 0.75rem;
  }
}

/* ------------------------------------------------------------ misc */
.scene {
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
@media print {
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .nav,
  .footer,
  .cta,
  .skip-link {
    display: none;
  }
  .section--dark {
    background: none;
    color: var(--ink);
  }
}

/* narrow screens: let dense mock tables scroll inside their card instead of the page */
@media (max-width: 48rem) {
  .card,
  .win__main {
    overflow-x: auto;
  }
  .wt th,
  .wt td {
    white-space: normal;
  }
  .hero__visual .wt td,
  .split__visual .wt td {
    white-space: nowrap;
  }
  .hero__visual .v--workspace {
    padding: 0.5rem 0 1rem;
  }
}

/* dark hero: keep the secondary link readable, and move the toast off the headline number */
.hero--dark .hero__note a {
  color: var(--on-black);
}
@media (min-width: 64.01rem) {
  .hero__visual .float--toast {
    top: 38%;
  }
}

/* ------------------------------------------------------------- media */
/* generated photo/material plates and loops; slots render only when the file exists */
.media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* hero backdrop: full-bleed plate with a legibility wash on the copy side */
.hero--media .hero__bg {
  background-image: none;
  mask-image: none;
  -webkit-mask-image: none;
}
.hero--media .media--backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 21, 15, 0.94) 0%, rgba(22, 21, 15, 0.72) 42%, rgba(22, 21, 15, 0.28) 100%),
    linear-gradient(180deg, rgba(22, 21, 15, 0.15), rgba(22, 21, 15, 0.55));
}
.hero:not(.hero--dark).hero--media .media--backdrop::after {
  background:
    linear-gradient(90deg, rgba(244, 242, 240, 0.97) 0%, rgba(244, 242, 240, 0.82) 42%, rgba(244, 242, 240, 0.35) 100%),
    linear-gradient(180deg, rgba(244, 242, 240, 0.1), rgba(244, 242, 240, 0.6));
}
/* photo plate in a split: the UI vignette sits on top, plate fades into the page at the bottom (Ramp-style) */
.split__visual--media {
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 24rem;
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  display: flex;
  align-items: flex-end;
}
.split__visual--media .media--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 242, 240, 0) 45%, rgba(244, 242, 240, 0.85) 100%);
}
.section--dark .split__visual--media .media--photo::after {
  background: linear-gradient(180deg, rgba(22, 21, 15, 0) 45%, rgba(22, 21, 15, 0.85) 100%);
}
.split__visual--media > .v,
.split__visual--media > .pv,
.split__visual--media > .card,
.split__visual--media > .win {
  position: relative;
  z-index: 1;
  width: 100%;
}
/* plates under pillar / card vignettes */
.pillar__visual,
.lcard__visual {
  position: relative;
}
.pillar__visual--media,
.lcard__visual--media {
  background-image: none;
}
.pillar__visual--media > .media,
.lcard__visual--media > .media {
  z-index: 0;
}
.pillar__visual--media > .media::after,
.lcard__visual--media > .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 242, 240, 0) 40%, rgba(255, 255, 255, 0.7) 100%);
}
.pillar__visual--media > :not(.media),
.lcard__visual--media > :not(.media) {
  position: relative;
  z-index: 1;
}
/* showcase / cta backdrops */
.showcase__stage--media {
  overflow: hidden;
}
.showcase__stage--media > .media {
  z-index: 0;
}
.showcase__stage--media > .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 21, 15, 0.35), rgba(22, 21, 15, 0.75));
}
.showcase__stage--media > .v {
  position: relative;
  z-index: 1;
}
.cta__bg > .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 21, 15, 0.92) 0%, rgba(22, 21, 15, 0.6) 55%, rgba(22, 21, 15, 0.3) 100%);
}
/* film section */
.scene--media {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: var(--warm-2);
}
.scene--media > .media {
  position: absolute;
}
.scene--media > .v {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
}
@media (max-width: 48rem) {
  .split__visual--media {
    min-height: 0;
    padding: 1rem;
  }
}
/* the hero's z-index:-1 background layer must stay above the section's own background */
.hero {
  isolation: isolate;
}
/* hero stage: a material plate under the console collage, bleeding past the column */
.hero__visual--stage > .media--stage {
  inset: -12% -10% -8%;
  border-radius: var(--r-xl);
  opacity: 0.95;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 12%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 12%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.hero__visual--stage > .v {
  position: relative;
  z-index: 1;
}
.hero__visual--stage .float {
  animation: none;
}
@media (max-width: 64rem) {
  .hero__visual--stage > .media--stage {
    inset: 0.5rem -4% -4%;
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 75%, transparent 100%);
    mask-composite: initial;
    -webkit-mask-composite: initial;
  }
}
/* showcase film: ambient light under the full-size console window */
.showcase__stage--media {
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 4vw, 4rem) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--black-2);
}
.showcase__stage--media::before {
  display: none;
}
.showcase__stage--media > .media {
  z-index: 0;
}
.showcase__stage--media > .media > video,
.showcase__stage--media > .media > img {
  transform: scale(1.06);
}
.showcase__stage--media > .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 21, 15, 0.6) 0%, rgba(22, 21, 15, 0.25) 45%, rgba(22, 21, 15, 0.9) 100%);
}
.showcase__stage--media > .v {
  position: relative;
  z-index: 1;
  width: 100%;
}
.showcase__stage--media .win {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
@media (max-width: 64rem) {
  .showcase__stage--media {
    padding: 1.25rem 1rem 0;
  }
}

/* deliverables: paper plate behind the report stack */
.deliver__visual {
  position: relative;
}
.deliver__visual--media {
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.deliver__visual--media > .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 21, 15, 0) 40%, rgba(22, 21, 15, 0.85) 100%);
}
.deliver__visual--media > .v {
  position: relative;
  z-index: 1;
}

/* soft plates: a blurred material wash under large UI cards (objects never peek out as slivers) */
.media--soft > img,
.media--soft > video {
  filter: blur(28px) saturate(1.08);
  transform: scale(1.2);
  opacity: 0.9;
}
.split__visual--media .media--soft::after {
  background:
    radial-gradient(circle, rgba(20, 19, 17, 0.12) 1px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(244, 242, 240, 0.25) 0%, rgba(244, 242, 240, 0.65) 100%);
}
.section--dark .split__visual--media .media--soft::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(22, 21, 15, 0.3) 0%, rgba(22, 21, 15, 0.7) 100%);
}
.hero__visual--stage > .media--soft {
  opacity: 1;
  inset: -10% -8% -6%;
}

/* ------------------------------------------------ hero: stage layout (copy centred, UI collage below) */
.hero--stage {
  background: var(--paper);
  padding-bottom: 0;
}
.hero--stage .hero__grid {
  display: block;
}
.hero--stage .hero__copy {
  text-align: center;
  justify-items: center;
  max-width: 58rem;
  margin: 0 auto;
}
.hero--stage .hero__title {
  max-width: 24ch;
  margin-inline: auto;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);
  letter-spacing: -0.03em;
}
.hero--stage .hero__lead {
  max-width: 44rem;
  margin-inline: auto;
}
.hero--stage .hero__actions {
  justify-content: center;
}
.hero--stage .hero__stagewrap {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.stage {
  position: relative;
  height: clamp(24rem, 14rem + 26vw, 37rem);
  padding: 2.5rem 3rem 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background-color: var(--warm);
  background-image: radial-gradient(circle, rgba(20, 19, 17, 0.13) 1px, transparent 1.4px);
  background-size: 20px 20px;
  overflow: hidden;
  isolation: isolate;
}
.stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--paper) 88%);
  z-index: 3;
  pointer-events: none;
}
.stage .v--collage {
  position: static;
}
.stage__item {
  position: absolute;
  z-index: 1;
}
.stage__item .card {
  margin: 0;
}
.stage__item--run {
  left: 3rem;
  top: 2.5rem;
  width: 40rem;
  animation: bob 11s ease-in-out infinite;
}
.stage__item--security {
  right: 3rem;
  top: 4.75rem;
  width: 27rem;
  animation: bob 13s ease-in-out 1.2s infinite;
}
.stage__item--verdict {
  left: 50%;
  bottom: 1.75rem;
  width: 21.5rem;
  transform: translateX(-50%);
  z-index: 4;
  animation: none;
}
.stage__item--verdict .card--verdict {
  box-shadow: var(--shadow-hero);
}
.stage__item--verdict .card--prev {
  display: none;
}
.stage .float--toast {
  right: 1.5rem;
  top: 1.25rem;
  z-index: 4;
}
.stage .float--finding {
  left: 1.5rem;
  bottom: 3rem;
  z-index: 4;
}
.stage__cursor {
  position: absolute;
  left: calc(50% + 7.5rem);
  bottom: 3.6rem;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  animation: bob 6s ease-in-out 0.6s infinite;
}
.stage .v--wide .win {
  max-width: 100%;
  box-shadow: var(--shadow-hero);
}
@media (max-width: 64rem) {
  .stage {
    height: auto;
    padding: 1.25rem 1rem 0;
  }
  .stage::after {
    display: none;
  }
  .stage .v--collage {
    display: grid;
    gap: 1rem;
  }
  .stage__item {
    position: static;
    width: auto;
    transform: none;
    animation: none;
  }
  .stage__item--verdict {
    order: -1;
  }
  .stage .float,
  .stage__cursor {
    display: none;
  }
}
.stage .v--collage .v__in {
  position: static;
}
/* collage arrangement: findings left, run table right, verdict in front over the minor rows, toast under the faded footer */
.stage__item--security {
  left: 3rem;
  right: auto;
  top: 2.5rem;
}
.stage__item--run {
  left: auto;
  right: 3rem;
  top: 4.5rem;
}
.stage__item--verdict {
  left: 9.5rem;
  transform: none;
  bottom: 1.75rem;
}
.stage .float--toast {
  top: auto;
  right: 2rem;
  bottom: 3.25rem;
}
.stage .float--finding {
  display: none;
}
.stage__cursor {
  left: 22rem;
  bottom: 3.4rem;
}
@media (max-width: 64rem) {
  .stage .v--collage .v__in {
    display: grid;
    gap: 1rem;
  }
  .stage .v--collage {
    display: block;
  }
}
@media (max-width: 48rem) {
  .stage__item--run {
    display: none;
  }
}
/* collage v3: findings fully visible left, run table right, verdict front bottom-right, toast bottom-left */
.stage__item--run {
  top: 3rem;
}
.stage__item--verdict {
  left: auto;
  right: 6rem;
  bottom: 1.5rem;
}
.stage .float--toast {
  right: auto;
  left: 2rem;
  bottom: 3rem;
}
.stage__cursor {
  left: auto;
  right: 13.5rem;
  bottom: 3.2rem;
}

/* ------------------------------------------------ hero stage: single vignette (framed, self-sizing) */
.stage--single {
  height: auto;
  padding: 2.5rem 3rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.stage--single::after {
  display: none;
}
.stage--single > .v {
  max-width: 46rem;
  margin: 0 auto;
}
.stage--single > .v > .v__in > .card,
.stage--single > .v > .v__in > .sheet {
  box-shadow: var(--shadow-hero);
}
.stage--single .v--verdict {
  max-width: 30rem;
}
.stage--single .card--verdict {
  max-width: none;
}
.stage--single .v--intg {
  max-width: 40rem;
}
.stage--single .v--experts,
.stage--single .v--ux,
.stage--single .v--coverage,
.stage--single .v--stability {
  max-width: 38rem;
}
/* plan: document and its side card sit side by side, bottoms aligned */
.stage--single .v--plan .v__in {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 20rem);
  gap: 1rem;
  align-items: end;
  justify-content: center;
}
.stage--single .v--plan .card--side {
  margin: 0 !important;
}
.hero--stage:has(.stage--single) {
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
/* wide window: lighter fade so the last rows stay readable */
.stage:has(.v--wide)::after {
  height: 24%;
}
/* collage: verdict sits over the two neutral bottom rows only; toast tucks under the findings card */
.stage__item--verdict {
  right: 3rem;
  bottom: 0.75rem;
}
.stage .float--toast {
  bottom: 4.5rem;
}
.stage__cursor {
  right: 10.5rem;
  bottom: 2.5rem;
}
@media (max-width: 64rem) {
  .stage--single {
    padding: 1.5rem;
  }
  .stage--single .v--plan .v__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage--single .v--plan .card--side {
    max-width: none;
  }
  .stage--single .v--intg .graph {
    max-width: 32rem;
    margin: 0 auto;
  }
  /* collage stacks into two columns: verdict + findings on top, the run table full width below */
  .stage .v--collage .v__in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .stage__item--run {
    grid-column: 1 / -1;
  }
  .stage__item--verdict .card--verdict {
    max-width: none;
  }
}
@media (max-width: 48rem) {
  .stage .v--collage .v__in {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------ split: flow pipeline hugs its content, bigger nodes */
.split__visual:has(.v--flow) {
  min-height: 0;
  padding-block: 2.75rem;
}
.split__visual .pipe__n span {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 1.5rem;
}
.split__visual .pipe__n {
  font-size: 0.8rem;
  gap: 0.75rem;
}
.split__visual .pipe::before {
  top: 2.125rem;
}

/* ------------------------------------------------ card thumbnails (lcard): one clean crop per vignette */
.lcard__visual .card--prev,
.lcard__visual .float,
.lcard__visual .evidence-strip,
.lcard__visual .card__foot,
.lcard__visual .card--side,
.lcard__visual .tile__nums em {
  display: none;
}
.lcard__visual .card,
.lcard__visual .sheet {
  box-shadow: none;
}
.lcard__visual .card--verdict,
.lcard__visual .v--plan .card--doc {
  max-width: none;
}
.lcard__visual .wt td {
  white-space: nowrap;
}
.lcard__visual .wt td:first-child {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lcard__visual .v--cases .wt td:nth-child(3),
.lcard__visual .v--cases .wt th:nth-child(3),
.lcard__visual .v--cases .wt td:nth-child(5),
.lcard__visual .v--cases .wt th:nth-child(5),
.lcard__visual .wt--matrix td:nth-child(5),
.lcard__visual .wt--matrix th:nth-child(5) {
  display: none;
}
.lcard__visual .orgs {
  grid-template-columns: minmax(0, 1fr);
}
.lcard__visual .org:not(:first-child) {
  display: none;
}
.lcard__visual .v--org {
  padding-bottom: 0;
}
.lcard__visual .browsers {
  grid-template-columns: minmax(0, 1fr);
}
.lcard__visual .br:not(.br--fail),
.lcard__visual .br__foot {
  display: none;
}
.lcard__visual .br {
  transform: none;
  opacity: 1;
}
.lcard__visual .rows--api li .m {
  display: none;
}
.lcard__visual .pipe {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.lcard__visual .pipe::before {
  display: none;
}
.lcard__visual .pipe__n span {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1rem;
}
.lcard__visual .scan-tiles {
  gap: 0.35rem;
}
.lcard__visual .st {
  padding: 0.4rem 0.5rem;
}

/* ------------------------------------------------ new vignettes: pr, case-detail, api-contract, evidence, events, finding */
.rows--pr li .pill {
  flex: none;
}
.rows--pr li .tag {
  flex: none;
  height: 1.125rem;
  font-size: 0.6rem;
  padding: 0 0.4rem;
}
.kv--case li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
}
.kv--case li b {
  text-align: left;
  line-height: 1.5;
}
.v .mono {
  font-family: var(--font-mono);
  font-weight: 560;
}
.v .link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contract {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}
.contract .card + .card {
  margin-top: 0;
}
.contract .card__head {
  justify-content: flex-start;
  gap: 0.5rem;
}
.contract .card__head .m {
  margin-left: auto;
}
.contract__arrow {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}
.contract .rows--api li b {
  font-family: inherit;
}
.evd {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 0.75rem;
  align-items: stretch;
}
.evd .br {
  transform: none;
  opacity: 1;
}
.card--log {
  display: grid;
  align-content: start;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.scrub {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.scrub .m {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6rem;
}
.scrub__play {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.7rem;
}
.scrub__bar {
  position: relative;
  flex: 1;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}
.scrub__bar b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p);
  border-radius: 999px;
  background: #fff;
}
.log {
  display: grid;
  gap: 0.35rem;
}
.log li {
  display: flex;
  gap: 0.6rem;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  background: var(--warm);
}
.log li b {
  font-weight: 600;
}
.log .m {
  flex: none;
}
.log__bad {
  color: var(--fail-ink);
  background: var(--fail-soft) !important;
}
.events {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 0.875rem;
  align-items: start;
}
.events__pre {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  background: var(--warm);
}
.events__pre .vb {
  justify-self: start;
  font-size: 1rem;
  padding: 0.25rem 0.75rem;
}
.events__pre .card__t {
  margin-bottom: 0;
}
.events__pre .kv li:first-child {
  border-top: 0;
}
@media (max-width: 40rem) {
  .contract {
    grid-template-columns: minmax(0, 1fr);
  }
  .contract__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .evd,
  .events {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* handoff safety: grid children must be allowed to shrink below their min-content width on narrow screens */
.split__visual > * {
  min-width: 0;
  max-width: 100%;
}
main,
.section,
.container {
  min-width: 0;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.prose {
  grid-template-columns: minmax(0, 1fr);
}
.prose > * {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 48rem) {
  .prose table {
    min-width: 0;
  }
}
