:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --ink: #111827;
  --muted: #6b7280;
  --faint: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --primary: #38d982;
  --primary-dark: #17aa62;
  --dark: #030712;
  --dark-soft: #111827;
  --code: #0c0c0c;
  --code-bar: #161616;
  --font-sans: Inter, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 8px -1px rgb(26 26 26 / 10%), 0 1px 2px -2px rgb(26 26 26 / 10%);
  --shadow-lg: 0 16px 40px rgb(17 24 39 / 12%);
  --shadow-code: 0 24px 60px rgb(0 0 0 / 28%);
  --nav-height: 80px;
  --section-space: clamp(5rem, 8vw, 7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.centered {
  text-align: center;
}

.section {
  padding-block: var(--section-space);
}

.section-soft {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.section-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: #ffffff;
}

.section-dark::before,
.cta-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--primary) 17%, transparent);
  filter: blur(100px);
}

.section-dark::before {
  left: -12rem;
  top: 25%;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lead {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
}

.section-dark .lead {
  color: #a1a1aa;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 6.25rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-sm {
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
}

.button-primary {
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: #1f2937;
}

.button-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  background: #f3f4f6;
}

.button-accent {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--primary) 28%, transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 0 1.5rem;
  color: var(--ink);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(16px);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 76px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.nav-logo {
  position: static;
  transform: none;
  flex: 0 0 auto;
}

.nav-logo img {
  width: auto;
  height: 2rem;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  margin-left: auto;
}

.nav-links a,
.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-menu-trigger:hover {
  background: #f3f4f6;
}

.nav-dropdown {
  position: relative;
  padding-block: 0.75rem;
}

.nav-menu-trigger::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  transform: translateY(-1px);
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  min-width: 13rem;
  gap: 0.2rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: 0.7rem 0.75rem;
  white-space: nowrap;
}

.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 760px;
  padding: calc(var(--nav-height) + 7rem) 0 8rem;
}

.mesh,
.mesh::before,
.mesh::after {
  position: absolute;
  z-index: -1;
  border-radius: var(--radius-pill);
  content: "";
  filter: blur(110px);
}

.mesh {
  inset: -5rem auto auto -7rem;
  width: 45rem;
  height: 45rem;
  background: color-mix(in srgb, var(--primary) 48%, transparent);
}

.mesh::before {
  left: 34rem;
  top: 10rem;
  width: 34rem;
  height: 34rem;
  background: rgb(153 246 228 / 42%);
}

.mesh::after {
  left: 62rem;
  top: 0;
  width: 30rem;
  height: 30rem;
  background: rgb(253 230 138 / 35%);
}

.hero-content {
  max-width: 980px;
  text-align: center;
}

.hero-content .lead {
  max-width: 720px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.chevron-mask {
  position: absolute;
  inset: auto 0 0;
  height: 60px;
  background: #ffffff;
  clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
}

.trust-bar {
  border-block: 1px solid var(--border);
  background: linear-gradient(#ffffff, rgb(249 250 251 / 70%));
  padding: 3rem 0;
}

.tile-grid {
  display: grid;
  overflow: hidden;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
  gap: 1px;
}

.tile-grid > * {
  background: #ffffff;
}

.trust-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile-grid article,
.use-cases a {
  padding: 2rem;
  transition: background 180ms ease;
}

.tile-grid article:hover,
.use-cases a:hover {
  background: #f9fafb;
}

.tile-grid p {
  margin: 0.625rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  color: #374151;
  font-size: 0.9rem;
  list-style: none;
}

.check-list li::before {
  content: ">";
  margin-right: 0.45rem;
  color: var(--primary-dark);
  font-weight: 900;
}

.code-wrap {
  max-width: 760px;
  margin-top: 3.5rem;
}

.code-window {
  overflow: hidden;
  border: 1px solid rgb(31 41 55 / 70%);
  border-radius: var(--radius-xl);
  background: var(--code);
  box-shadow: var(--shadow-code);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(31 41 55 / 70%);
  background: var(--code-bar);
  padding: 0.75rem 1rem;
}

.tabs {
  display: flex;
  gap: 0.25rem;
}

.code-tab,
.copy-code {
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
}

.code-tab.active {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.copy-code:hover,
.code-tab:hover {
  color: #ffffff;
}

.code-body {
  margin: 0;
  overflow: auto;
  padding: 1.5rem;
  color: #d1d5db;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.model-list {
  overflow: hidden;
  margin-top: 3.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.model-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  transition: background 180ms ease;
}

.model-row:first-child {
  border-top: 0;
}

.model-row:hover {
  background: #f9fafb;
}

.model-row img {
  width: auto;
  max-width: 3rem;
  height: 1.75rem;
  object-fit: contain;
}

.model-row h3 span,
.meta {
  color: var(--faint);
}

.model-row p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
}

.meta .primary {
  color: var(--primary-dark);
  font-weight: 800;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  border-bottom: 1px dashed var(--border-strong);
}

.capability-grid article {
  min-height: 11rem;
  padding: 2rem 1.5rem;
  border-top: 1px dashed var(--border-strong);
}

.capability-grid article:not(:nth-child(3n)) {
  border-right: 1px dashed var(--border-strong);
}

.capability-grid p {
  margin: 0.625rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.dark-grid {
  border-color: rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 12%);
}

.dark-grid > * {
  background: var(--dark);
}

.dark-grid article:hover {
  background: var(--dark-soft);
}

.dark-grid p {
  color: #a1a1aa;
}

.use-cases {
  margin-top: 3.5rem;
}

.use-cases a {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  justify-content: space-between;
}

.use-cases span {
  display: block;
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.use-cases em {
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-section {
  padding-bottom: 9rem;
}

.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius-xl);
  background: var(--dark);
  color: #ffffff;
}

.cta-card::before {
  left: -12rem;
  top: -12rem;
}

.cta-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.cta-copy p {
  margin: 1.25rem 0 0;
  color: #a1a1aa;
  line-height: 1.7;
}

.cta-copy .button {
  margin-top: 2rem;
}

.cta-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark), rgb(3 7 18 / 70%), transparent);
}

.style-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.swatch {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.swatch.ink {
  background: var(--ink);
}

.swatch.primary {
  background: var(--primary);
}

.swatch.soft {
  background: var(--surface-soft);
}

.swatch.border {
  background: var(--border);
}

.footer {
  position: relative;
  padding: 5rem 0 0;
  background: #030712;
  color: #ffffff;
}

.footer-arrow {
  position: absolute;
  inset: -60px 0 auto;
  height: 60px;
  background: #030712;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  filter: drop-shadow(0 -3px 4px rgb(0 0 0 / 18%));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2rem;
}

.footer-logo {
  width: auto;
  height: 2rem;
  margin-bottom: 1.5rem;
}

.footer p,
.footer a {
  color: rgb(255 255 255 / 72%);
  font-size: 0.9rem;
}

.footer nav,
.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer h3 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: rgb(255 255 255 / 72%);
  font-size: 0.75rem;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-height) + 7rem) 0 6rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -8rem auto auto -8rem;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--primary) 34%, transparent);
  filter: blur(110px);
}

.page-hero h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
}

.media-hero {
  padding-bottom: 5rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.mockup {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.mockup img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top left;
}

.timeline {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: start;
}

.timeline ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-xl);
  background: rgb(255 255 255 / 12%);
  list-style: none;
}

.timeline li {
  display: grid;
  gap: 0.4rem;
  padding: 1.5rem;
  background: var(--dark);
}

.timeline span {
  color: #a1a1aa;
}

.feature-stack {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.feature-stack article {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: #ffffff;
}

.feature-stack article > span {
  color: var(--primary-dark);
  font-weight: 900;
}

.feature-stack p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.toolbar input,
.toolbar select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0.9rem 1rem;
}

.catalog {
  margin-top: 0;
  background: #ffffff;
}

.cta-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.solution-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.solution-layout aside {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.solution-layout aside a {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.solution-layout aside a:hover {
  background: #f3f4f6;
  color: var(--ink);
}

.solution-panels {
  display: grid;
  gap: 1rem;
}

.solution-panels article {
  min-height: 18rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.solution-panels p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.resource-grid article {
  min-height: 14rem;
  padding: 1.5rem;
  background: #ffffff;
}

.resource-grid .featured-resource {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 28rem;
  background: var(--dark);
  color: #ffffff;
}

.featured-resource p {
  color: #a1a1aa;
}

.featured-resource .button {
  margin-top: 1.5rem;
}

.resource-grid article:not(.featured-resource) p {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.metric-grid article {
  display: grid;
  gap: 0.5rem;
  padding: 2rem;
  background: #ffffff;
}

.metric-grid strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.document-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.document-list > * {
  background: #ffffff;
}

.document-list > div {
  padding: 2rem;
}

.document-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem;
}

.document-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.85rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.contact-form,
.contact-card {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form textarea {
  resize: vertical;
}

.contact-card {
  background: var(--dark);
  color: #ffffff;
}

.contact-card p,
.contact-card span {
  color: #a1a1aa;
}

.contact-card div {
  display: grid;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.compact-footer {
  padding-top: 0;
}

.compact-footer .footer-bottom {
  margin-top: 0;
}

.site-footer {
  padding-top: 5rem;
}

.site-footer .footer-grid {
  align-items: start;
}

.footer-brand::before,
.footer .lab-mark::before,
.footer .lab-mark span {
  color: #ffffff;
}

.footer .lab-mark img {
  filter: invert(1);
}

.footer .lab-mark span {
  right: -0.18rem;
}

/* SCX Labs site layer */
.lab-body {
  background:
    radial-gradient(circle at 12% 0%, rgb(56 217 130 / 18%), transparent 34rem),
    radial-gradient(circle at 88% 4%, rgb(153 246 228 / 22%), transparent 30rem),
    #ffffff;
}

.lab-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0;
}

.lab-mark img {
  display: block;
  width: auto;
  height: 1.7rem;
}

.lab-mark::before {
  content: none;
}

.lab-mark::after {
  content: "";
  position: absolute;
  top: -0.06rem;
  right: -0.02rem;
  z-index: 1;
  width: 0.76rem;
  height: 1.15rem;
  background: #ffffff;
}

.lab-mark span {
  position: absolute;
  top: 0.08rem;
  right: -1.04rem;
  z-index: 2;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer .lab-mark::after {
  background: #030712;
}

.research-hero {
  position: relative;
  isolation: isolate;
  min-height: 780px;
  padding: calc(var(--nav-height) + 1.5rem) 1.5rem 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgb(56 217 130 / 48%), transparent 35rem),
    radial-gradient(circle at 88% 0%, rgb(153 246 228 / 36%), transparent 34rem),
    linear-gradient(90deg, rgb(187 247 208 / 78%), #ffffff 48%, rgb(238 252 242 / 88%));
}

.research-hero::before,
.research-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: var(--radius-pill);
  filter: blur(110px);
}

.bfl-hero-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 108px);
  overflow: hidden;
  border-radius: 2px;
  background:
    linear-gradient(rgb(3 7 18 / 28%), rgb(3 7 18 / 34%)),
    url("assets/backgrounds/header.png") center / cover;
  color: #ffffff;
}

.bfl-hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, transparent, rgb(3 7 18 / 20%) 58%, rgb(3 7 18 / 44%)),
    linear-gradient(180deg, rgb(255 255 255 / 4%), rgb(0 0 0 / 16%));
  pointer-events: none;
}

.bfl-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1060px);
  margin-inline: auto;
  text-align: center;
}

.bfl-hero-kicker {
  margin: 0 0 2rem;
  color: rgb(255 255 255 / 88%);
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bfl-hero-content {
  padding-top: 2rem;
}

.bfl-hero-title {
  font-size: clamp(3.4rem, 9vw, 8.75rem);
  font-weight: 400;
  line-height: 0.96;
  text-wrap: balance;
}

.bfl-hero-title strong {
  font-weight: 700;
}

.bfl-hero-subtitle {
  max-width: 760px;
  margin: 1.4rem auto 0;
  color: rgb(255 255 255 / 90%);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.45;
}

.bfl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

.bfl-hero-actions .button {
  min-width: 12rem;
  border-radius: var(--radius-sm);
}

.bfl-hero-link {
  display: inline-flex;
  margin-top: 1.1rem;
  color: rgb(255 255 255 / 82%);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.home-feature-section {
  padding: 1.5rem;
  background: #ffffff;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: repeat(2, minmax(18rem, 1fr));
  gap: 1rem;
  width: 100%;
}

.home-feature-card {
  position: relative;
  display: flex;
  min-height: 18rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--dark);
  color: #ffffff;
  isolation: isolate;
  box-shadow: 0 10px 28px rgb(3 7 18 / 10%);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.home-feature-card::before,
.home-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.home-feature-card::after {
  z-index: -1;
  background: linear-gradient(180deg, rgb(3 7 18 / 14%), rgb(3 7 18 / 78%));
  transition: background 220ms ease, opacity 220ms ease;
}

.home-feature-card::before {
  transition: opacity 220ms ease, transform 260ms ease, filter 220ms ease;
}

.home-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgb(3 7 18 / 18%);
}

.home-feature-card:hover::before {
  opacity: 0.72;
  filter: saturate(1.16) brightness(1.2);
  transform: scale(1.025);
}

.home-feature-card:hover::after {
  background: linear-gradient(180deg, rgb(3 7 18 / 4%), rgb(3 7 18 / 58%));
}

.home-feature-main {
  grid-row: span 2;
  min-height: 37rem;
}

.home-feature-main::before {
  background: url("assets/backgrounds/meadow_1.png") center / cover;
  opacity: 0.54;
}

.feature-bg-meadow::before {
  background: url("assets/datacenter-cta.jpg") center / cover;
  opacity: 0.48;
}

.feature-bg-waterfall::before {
  background: url("assets/backgrounds/desert_1.png") center / cover;
  opacity: 0.44;
}

.home-feature-card > div {
  align-self: end;
  width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.home-feature-card time {
  display: block;
  margin-bottom: 0.85rem;
  color: rgb(255 255 255 / 86%);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feature-card h2 {
  max-width: 13ch;
  color: #ffffff;
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  line-height: 1.02;
}

.home-feature-card h3 {
  max-width: 18ch;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.12;
}

.home-feature-card p {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: rgb(255 255 255 / 90%);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.45;
}

.environment-section {
  background: #ffffff;
}

.env-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.env-grid article {
  padding: 1.5rem;
  background: #ffffff;
}

.env-grid h3 {
  margin-top: 0.8rem;
  font-size: 1.25rem;
}

.env-grid p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.news-dark-section {
  background: #030712;
  color: #ffffff;
}

.news-dark-section .lead {
  color: rgb(255 255 255 / 70%);
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.news-card {
  position: relative;
  display: flex;
  min-height: 27rem;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  color: #ffffff;
  isolation: isolate;
}

.news-card::before,
.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: opacity 220ms ease, transform 260ms ease;
}

.news-card::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(23 170 98 / 76%), rgb(11 82 48 / 86%)),
    linear-gradient(180deg, transparent, rgb(3 7 18 / 80%));
}

.news-card:hover::before {
  transform: scale(1.04);
}

.news-card:hover::after {
  opacity: 0.42;
}

.news-space::before {
  background: url("assets/backgrounds/spaceship_1.png") center / cover;
}

.news-snow::before {
  background: url("assets/backgrounds/snow_1.png") center / cover;
}

.news-lab::before {
  background: url("assets/backgrounds/lab_1.png") center / cover;
}

.news-card span {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 4px;
  background: rgb(255 255 255 / 82%);
  color: #111827;
  font-size: 0.82rem;
}

.news-card time {
  color: rgb(255 255 255 / 84%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  margin-top: 1rem;
  color: #ffffff;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.12;
}

.news-card p {
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 84%);
  font-size: 1rem;
  line-height: 1.35;
}

.news-card em {
  margin-top: 1.8rem;
  color: #ffffff;
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.subscribe-section {
  background: #ffffff;
}

.research-hero::before {
  inset: -8rem auto auto -8rem;
  width: 44rem;
  height: 44rem;
  background: rgb(56 217 130 / 44%);
}

.research-hero::after {
  inset: 5rem -9rem auto auto;
  width: 34rem;
  height: 34rem;
  background: rgb(253 230 138 / 30%);
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 70%);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 960px;
  margin: 4rem auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-proof a,
.hero-proof article {
  min-height: 13rem;
  padding: 1.5rem;
  background: rgb(255 255 255 / 86%);
  backdrop-filter: blur(10px);
}

.hero-proof strong {
  display: block;
  margin-bottom: 0.65rem;
}

.hero-proof p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.artifact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.artifact-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.artifact-strip a:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.research-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.research-card-grid > a,
.research-card-grid > article {
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background: #ffffff;
  transition: background 180ms ease;
}

.research-card-grid > a:hover {
  background: #f9fafb;
}

.research-card-grid h3 {
  font-size: 1.35rem;
}

.research-card-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.research-card-grid em {
  color: var(--primary-dark);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.release-feed {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.release-feed article {
  display: grid;
  grid-template-columns: 10rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
}

.release-feed time,
.release-feed span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.page-band {
  padding: calc(var(--nav-height) + 6rem) 0 5rem;
  background:
    radial-gradient(circle at 0% 0%, rgb(56 217 130 / 22%), transparent 26rem),
    linear-gradient(180deg, #ffffff, #f9fafb);
}

.page-band h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.fact-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.fact-panel > div {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  background: #ffffff;
}

.fact-panel strong {
  font-size: 1.6rem;
  line-height: 1;
}

.fact-panel span {
  color: var(--muted);
  font-size: 0.85rem;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.comparison-table .row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.comparison-table .row > * {
  padding: 1rem;
  background: #ffffff;
}

.comparison-table .head > * {
  background: #f3f4f6;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ace-page {
  background: #ffffff;
}

.ace-hero {
  padding: calc(var(--nav-height) + 6rem) 0 5rem;
  background:
    radial-gradient(circle at 14% 8%, rgb(56 217 130 / 22%), transparent 30rem),
    #ffffff;
}

.ace-display {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1.02;
  max-width: 13ch;
}

.ace-display em,
.accent-text {
  color: var(--primary-dark);
  font-style: normal;
}

.ace-section {
  padding-block: clamp(5rem, 8vw, 8rem);
}

.ace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.ace-grid > article {
  min-height: 15rem;
  padding: 1.5rem;
  background: #ffffff;
}

.ace-grid p,
.ace-flow p,
.ace-results p {
  color: var(--muted);
}

.ace-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ace-flow article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.ace-results {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--border);
}

.ace-results .result-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.7fr;
  gap: 1px;
  background: var(--border);
}

.ace-results .result-row > * {
  padding: 1rem;
  background: #ffffff;
}

.ace-results .result-head > * {
  background: #f3f4f6;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ace-playbook {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ace-playbook header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #f3f4f6;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.ace-playbook pre {
  margin: 0;
  overflow: auto;
  padding: 1.5rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.75;
}

.example-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.example-pair article {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
}

.example-pair .good {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, #ffffff);
}

.contact-mini {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #ffffff;
}

@media (max-width: 1024px) {
  .hero-proof,
  .research-card-grid,
  .ace-grid,
  .ace-flow,
  .two-column,
  .release-feed article,
  .contact-mini {
    grid-template-columns: 1fr;
  }

  .comparison-table .row,
  .ace-results .result-row,
  .example-pair {
    grid-template-columns: 1fr;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .home-feature-main {
    grid-row: auto;
    min-height: 32rem;
  }

  .news-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ACE demo adaptation */
.ace-demo-page {
  --ace-bg: #ffffff;
  --ace-bg-2: #fbf9fa;
  --ace-bg-3: #f6f3f4;
  --ace-fg: #262626;
  --ace-muted: #806b72;
  --ace-muted-2: #634b55;
  --ace-border: #ebe5e7;
  --ace-border-2: #e0d8db;
  --ace-accent-bg: #ebfffb;
  --ace-accent-fg: #0e9240;
  background: var(--ace-bg);
  color: var(--ace-fg);
}

.ace-demo {
  padding-top: 76px;
  scroll-behavior: smooth;
}

.ace-demo-section {
  position: relative;
  display: flex;
  min-height: calc(100vh - 76px);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4.5rem, 8vh, 7rem) clamp(1.5rem, 6vw, 7.5rem);
  background: var(--ace-bg);
  scroll-margin-top: 76px;
}

.ace-nav-dots {
  position: fixed;
  right: clamp(0.9rem, 1.6vw, 1.5rem);
  top: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transform: translateY(-50%);
}

.ace-nav-dots a {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ace-border-2);
}

.ace-nav-dots a:hover,
.ace-nav-dots a:focus {
  background: var(--primary);
}

.ace-nav-dots a::after {
  content: attr(aria-label);
  position: absolute;
  right: 1rem;
  top: 50%;
  min-width: max-content;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--ace-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ace-fg);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.ace-nav-dots a:hover::after,
.ace-nav-dots a:focus::after {
  opacity: 1;
}

.ace-cue {
  position: absolute;
  left: clamp(1.5rem, 6vw, 7.5rem);
  bottom: clamp(1.5rem, 4vh, 2.6rem);
  color: var(--ace-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ace-score-progress {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ace-border);
  border-radius: 12px;
  background: #ffffff;
  width: fit-content;
}

.ace-score-progress span {
  color: var(--ace-accent-fg);
  font-weight: 900;
}

.ace-score-progress i {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--primary);
}

.ace-demo-section.alt {
  background: var(--ace-bg-2);
}

.ace-demo-section.fill {
  background: var(--ace-bg-3);
}

.ace-sec-num,
.ace-sec-tag {
  position: absolute;
  top: clamp(1.25rem, 3vh, 2.5rem);
  color: var(--ace-accent-fg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ace-sec-num {
  left: clamp(1rem, 2vw, 1.5rem);
}

.ace-sec-tag {
  right: clamp(1rem, 2vw, 1.5rem);
}

.ace-display-demo {
  max-width: 27ch;
  color: var(--ace-fg);
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
}

.ace-display-demo em,
.ace-headline em {
  color: var(--ace-accent-fg);
  font-style: normal;
}

.ace-headline {
  max-width: 30ch;
  color: var(--ace-fg);
  font-size: clamp(1.9rem, 3.8vw, 3.75rem);
  font-weight: 650;
  line-height: 1.08;
}

.ace-lede {
  max-width: 84ch;
  margin: 1.1rem 0 0;
  color: var(--ace-muted-2);
  font-size: clamp(0.98rem, 1.25vw, 1.2rem);
  line-height: 1.58;
}

.ace-card-row,
.ace-gate-grid,
.ace-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  margin-top: clamp(2rem, 4vh, 3rem);
}

.ace-card-demo,
.ace-gate-card,
.ace-example-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 2vw, 1.9rem);
  border: 1px solid var(--ace-border);
  border-radius: 14px;
  background: #ffffff;
}

.ace-card-demo .n,
.ace-bullet .k,
.ace-example-card .head {
  color: var(--ace-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ace-card-demo .ttl {
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.4rem);
  font-weight: 650;
  line-height: 1.25;
}

.ace-two {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.ace-bullets {
  display: grid;
  gap: 0.85rem;
}

.ace-bullet {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ace-border);
}

.ace-bullet .k {
  color: var(--ace-accent-fg);
}

.ace-bullet .v,
.ace-gate-card p,
.ace-example-card p {
  margin: 0;
  color: var(--ace-muted-2);
  line-height: 1.6;
}

.ace-table {
  margin-top: clamp(2rem, 4vh, 2.8rem);
  overflow: hidden;
  border: 1px solid var(--ace-border);
  border-radius: 14px;
  background: #ffffff;
}

.ace-tr {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.7fr;
  align-items: center;
  border-bottom: 1px solid var(--ace-border);
}

.ace-tr:last-child {
  border-bottom: 0;
}

.ace-tr > * {
  padding: clamp(0.9rem, 1.6vw, 1.25rem);
}

.ace-tr.head {
  background: var(--ace-bg-3);
  color: var(--ace-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ace-tr .lift {
  color: var(--ace-accent-fg);
  font-weight: 800;
  text-align: right;
}

.ace-playbook-sheet {
  margin-top: clamp(2rem, 4vh, 3rem);
  overflow: hidden;
  border: 1px solid var(--ace-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(26 26 26 / 4%), 0 10px 30px -10px rgb(26 26 26 / 10%);
}

.ace-playbook-sheet .chrome {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--ace-border);
  background: var(--ace-bg-3);
}

.ace-playbook-sheet .lights {
  display: flex;
  gap: 0.45rem;
}

.ace-playbook-sheet .lights span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: var(--ace-border-2);
}

.ace-playbook-sheet .lights span:nth-child(1) { background: #f1a8a8; }
.ace-playbook-sheet .lights span:nth-child(2) { background: #f1d59c; }
.ace-playbook-sheet .lights span:nth-child(3) { background: var(--primary); }

.ace-playbook-sheet .tab {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--ace-border);
  border-radius: 6px;
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.ace-playbook-sheet pre {
  margin: 0;
  overflow: auto;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--ace-fg);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  line-height: 1.75;
}

.ace-gate-card .label {
  color: var(--ace-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ace-gate-card strong {
  color: var(--ace-accent-fg);
  font-size: 2rem;
  line-height: 1;
}

.ace-example-grid {
  grid-template-columns: 1fr 1fr;
}

.ace-example-card .body {
  padding: 1rem;
  border: 1px solid var(--ace-border);
  border-radius: 10px;
  background: var(--ace-bg-3);
  color: var(--ace-fg);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
}

.ace-example-card.good {
  border-color: var(--primary);
}

.ace-example-card.good .head {
  color: var(--ace-accent-fg);
}

.ace-example-card.good .body {
  border-color: var(--primary);
  background: var(--ace-accent-bg);
  color: var(--ace-accent-fg);
}

.ace-closing-quote {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 650;
  line-height: 1.02;
}

@media (max-width: 980px) {
  .ace-demo-section {
    min-height: auto;
  }

  .ace-card-row,
  .ace-gate-grid,
  .ace-example-grid,
  .ace-two {
    grid-template-columns: 1fr;
  }

  .ace-tr {
    grid-template-columns: 1fr;
  }

  .ace-nav-dots {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    padding: 0.65rem 1rem;
  }

  .mobile-menu {
    display: grid;
    gap: 0.25rem;
    width: min(100% - 2rem, 1120px);
    margin: 0.5rem auto 0;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
  }

  .mobile-menu a:hover {
    background: #f3f4f6;
  }

  .trust-grid,
  .four,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid article:not(:nth-child(3n)) {
    border-right: 0;
  }

  .capability-grid article:nth-child(odd) {
    border-right: 1px dashed var(--border-strong);
  }

  .cta-media {
    opacity: 0.32;
    width: 100%;
  }

  .split,
  .timeline,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .solution-layout {
    grid-template-columns: 1fr;
  }

  .solution-layout aside {
    position: static;
  }

  .resource-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --section-space: 4.5rem;
  }

  .site-nav {
    padding: 0;
  }

  .nav-inner {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    padding: 0 1rem;
  }

  .hero {
    min-height: 680px;
    padding-top: 8.5rem;
  }

  .hero-actions,
  .style-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-grid,
  .three,
  .four,
  .capability-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article,
  .capability-grid article:nth-child(odd) {
    border-right: 0;
  }

  .model-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero {
    padding-top: 8.5rem;
  }

  .resource-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .resource-grid .featured-resource {
    grid-column: auto;
    grid-row: auto;
    min-height: 18rem;
  }

  .cta-slim,
  .document-list a {
    align-items: stretch;
    flex-direction: column;
  }

  .feature-stack article {
    grid-template-columns: 1fr;
  }
}
