/* build: 2026-01-31 */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-variable-dfda626c.woff2") format('woff2');
}

:root {
  --grid-size: clamp(48px, 5vw, 72px);
  --max-width: 1180px;
  --bg: #f4f4f4;
  --bg-grid: rgba(0, 0, 0, 0.12);
  --text-primary: #151515;
  --text-muted: #3b3b3b;
  --text-soft: #2b2b2b;
  --accent: #090909;
  --accent-soft: rgba(0, 0, 0, 0.72);
  --card-bg: rgba(210, 210, 210, 0.92);
  --card-border: rgba(0, 0, 0, 0.2);
  --card-bg-dark: linear-gradient(160deg, rgba(28, 28, 30, 0.96), rgba(16, 16, 17, 0.9));
  --card-border-dark: rgba(255, 255, 255, 0.06);
  --card-shadow-dark: 0 34px 72px rgba(8, 8, 10, 0.46);
  --text-light: #f4f3f0;
  --text-soft-on-dark: rgba(227, 226, 222, 0.72);
  --divider-dark: rgba(230, 235, 245, 0.12);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --hero-body: 1.18rem;
  --hero-tagline: 1rem;
  --section-eyebrow: 1rem;
  --section-subtitle: 1.25rem;
  --about-body: 1.25rem;
  --about-meta: 0.9rem;
  --pill-text: 1rem;
  --outcome-title: 1.375rem;
  --outcome-body: 1.125rem;
  --footer-text: 0.9rem;
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--grid-size) - 1px),
      var(--bg-grid) calc(var(--grid-size) - 1px),
      var(--bg-grid) var(--grid-size)
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--grid-size) - 1px),
      var(--bg-grid) calc(var(--grid-size) - 1px),
      var(--bg-grid) var(--grid-size)
    );
  background-position:
    calc(50% - (var(--grid-size) / 2)) 0,
    0 calc(50% - (var(--grid-size) / 2));
  background-size: var(--grid-size) var(--grid-size);
  animation: none;
  opacity: 1;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.08"/%3E%3C/svg%3E');
  mix-blend-mode: multiply;
  opacity: 0.35;
  animation: none;
  z-index: 0;
}

#app {
  position: relative;
  z-index: 1;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

.container {
  width: min(calc(100% - var(--grid-size)), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: var(--grid-size);
  display: flex;
  align-items: center;
}

.nav {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "brand links";
  align-items: center;
  gap: 18px;
  position: relative;
}

.nav__identity {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 0.9rem;
}

.nav__brand {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  font-size: inherit;
  color: var(--accent);
  margin-left: -28px;
}

.nav__emblem-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 0;
  margin-right: -8px;
  -webkit-tap-highlight-color: transparent;
}

.nav__emblem-image {
  width: 112px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.12));
}

.nav__toggle {
  grid-area: links;
  justify-self: end;
  display: none;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Open state reads as a clear X; behavior (aria-expanded, Escape,
   outside-click, focus return) is unchanged and lives in JS. */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  /* Row pitch is 10px (2px bar + 4px margins that do not collapse in the
     flex column), so ±10px meets both bars on the middle line. */
  transform: translateY(10px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  justify-self: end;
  grid-area: links;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 0;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 0.25s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--accent);
}

@media (max-width: 960px) {
  .nav__links a {
    color: var(--text-soft);
    font-size: 0.88rem;
    letter-spacing: 0.16em;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
  }

  .nav__links a::after {
    display: none;
  }

  .nav__links a:hover,
  .nav__links a:focus-visible {
    color: var(--accent);
  }
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  transform: scaleX(1);
}

.contact-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px; /* symmetric top/bottom */
  line-height: 1; /* ensures baseline alignment with siblings */
  margin-top: 0; /* rely on baseline alignment instead of offsets */
  border-radius: var(--radius-sm);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: inherit;
  color: var(--text-primary);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(.16,1,.3,1),
    box-shadow 0.4s cubic-bezier(.16,1,.3,1),
    border-color 0.4s ease,
    background 0.4s ease;
}

.contact-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(4px); /* lower the frame a bit without moving text */
  pointer-events: none;
  z-index: 0;
}

.nav__links a.contact-pill {
  padding-bottom: 0;
  color: var(--text-primary);
}

.nav__links a.contact-pill::after {
  display: none;
}

@media (max-width: 960px) {
  .nav__links a.contact-pill {
    color: #f4f4f4;
    background: var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    justify-content: center;
    box-shadow: none;
  }

  .nav__links a.contact-pill::before {
    display: none;
  }

  .nav__links .contact-pill__label {
    color: #f4f4f4;
  }

  .nav__links .contact-pill__sweep {
    display: none;
  }
}

.contact-pill.is-hovered,
.contact-pill:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.36);
  background: rgba(0, 0, 0, 0.06);
}

.contact-pill__label {
  position: relative;
  z-index: 2;
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1;
  top: 0; /* keep text position fixed */
}

@media (max-width: 960px) {
  .contact-pill__label {
    color: #f4f4f4;
  }
}

.contact-pill__sweep {
  position: absolute;
  inset: -2px;
  z-index: 3;
  border-radius: inherit;
  background: #000;
  transform: translateX(-120%) skewX(-10deg);
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
  will-change: transform;
}

.contact-pill__sweep.is-active {
  animation: contactSweepPass 1.2s cubic-bezier(.16,1,.3,1) forwards;
}

.contact-pill__sweep-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 248, 248, 0.96);
  white-space: nowrap;
  line-height: 1;
  transform: skewX(10deg) translateX(125%);
  will-change: transform;
}

.contact-pill__sweep.is-active .contact-pill__sweep-label {
  animation: contactSweepLabelLock 1.2s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes contactSweepPass {
  0% {
    transform: translateX(-125%) skewX(-10deg);
  }
  45% {
    transform: translateX(-4%) skewX(-4deg);
  }
  75% {
    transform: translateX(38%) skewX(-2deg);
  }
  100% {
    transform: translateX(125%) skewX(-6deg);
  }
}

@keyframes contactSweepLabelLock {
  0% {
    transform: skewX(10deg) translateX(125%);
  }
  45% {
    transform: skewX(4deg) translateX(4%);
  }
  75% {
    transform: skewX(2deg) translateX(-38%);
  }
  100% {
    transform: skewX(6deg) translateX(-125%);
  }
}

.contact-pill[data-reduced="1"] {
  border-color: rgba(0, 0, 0, 0.72);
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
}

.contact-pill[data-reduced="1"] .contact-pill__label {
  color: #fff;
}

.contact-pill[data-reduced="1"] .contact-pill__sweep {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  contain: paint;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(calc(100svh - 68px), 920px);
  padding: clamp(104px, 15vh, 168px) 0 clamp(56px, 12vh, 112px);
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(120% 85% at 50% 34%, rgba(188, 188, 188, 0.74) 0%, rgba(200, 200, 200, 0.48) 46%, rgba(212, 212, 212, 0) 78%);
}

.hero::after {
  content: none;
}

.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.hero-waves--particles {
  z-index: 1;
  opacity: 0.68;
  mix-blend-mode: normal;
}

.hero-waves--background {
  z-index: 2;
  opacity: 0.48;
  mix-blend-mode: multiply;
}

.hero-waves--depth {
  z-index: 3;
  opacity: 0.62;
  mix-blend-mode: multiply;
  filter: none;
}

.hero-waves--primary {
  z-index: 4;
  opacity: 0.78;
  mix-blend-mode: multiply;
  filter: none;
}

.grain {
  position: absolute;
  inset: -8%;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.08"/%3E%3C/svg%3E');
  background-size: 220px 220px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 5;
  animation: grainShift 6s steps(6) infinite;
}

.hero .grain {
  display: none;
}

@keyframes grainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-3%, 2%, 0);
  }
}

@keyframes heroWaveA {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: -360px;
  }
}

@keyframes heroWaveB {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 320px;
  }
}

@keyframes gridPulse {
  0% { background-position: 0% 0%, 100% 100%, 0 0; }
  100% { background-position: -3% 2%, 3% -2%, 0 0; }
}

@keyframes cellGlow {
  0%, 20% { opacity: 0.26; }
  45% { opacity: 0.34; }
  60% { opacity: 0.28; }
  100% { opacity: 0.32; }
}

@keyframes emblemDrift {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(0.6deg) scale(1.006); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes signalSweep {
  0% { transform: translate3d(-1%, 0, 0) scale(1.01); opacity: 0.42; }
  50% { transform: translate3d(1%, 0.6%, 0) scale(1.005); opacity: 0.5; }
  100% { transform: translate3d(0.5%, -0.4%, 0) scale(1); opacity: 0.42; }
}

@keyframes pulseSweep {
  0% { transform: translate3d(-2%, 0, 0); opacity: 0.05; }
  50% { transform: translate3d(2%, 1%, 0); opacity: 0.06; }
  100% { transform: translate3d(1%, -1%, 0); opacity: 0.05; }
}

.hero-inner {
  width: min(calc(100% - 64px), 1040px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vh, 64px);
  position: relative;
  z-index: 6;
}

.hero-copy {
  width: min(100%, 760px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--grid-size) / 5);
  text-align: center;
  text-transform: uppercase;
}

.hero-tag {
  margin: 0;
  width: fit-content;
  letter-spacing: 0.2em;
  font-size: 0.94rem;
  color: var(--text-soft);
  font-weight: 700;
  text-shadow: none;
  transform: translateZ(0);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.06em;
  width: fit-content;
  /* Strict heading-box criterion: the h1's own layout box must encompass
     its widest locked line (it stays centered in the hero column, so the
     rendered overhang is unchanged); capping at 100% left scrollWidth >
     clientWidth at 1440px. */
  max-width: none;
  margin-inline: auto;
  text-align: center;
  padding: calc(var(--grid-size) / 8) 0 calc(var(--grid-size) / 6);
  text-wrap: balance;
}

.hero-title__segment {
  display: block;
  white-space: nowrap;
  color: var(--accent);
}

.hero-title__segment + .hero-title__segment {
  margin-top: -0.02em;
}

.hero-title__segment--mid {
  color: #2e2e2e;
}

.hero-title__segment--deep {
  color: #474747;
}

.hero .lead {
  margin: 0;
  max-width: 56ch;
  font-size: var(--hero-body);
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  text-wrap: balance;
}

.hero-context {
  margin: 0;
  max-width: 64ch;
  font-size: clamp(0.78rem, 0.9vw, 0.9rem);
  line-height: 1.5;
  letter-spacing: 0.055em;
  text-transform: none;
  color: var(--text-muted);
  text-wrap: balance;
}

/* Compact operating-surface rail below the homepage hero. */

.system-strip {
  position: relative;
  z-index: 8;
  overflow: hidden;
  background:
    radial-gradient(70% 150% at 50% 0%, rgba(118, 139, 154, 0.11), transparent 68%),
    rgba(247, 247, 246, 0.82);
  border-top: 1px solid rgba(9, 9, 9, 0.13);
  border-bottom: 1px solid rgba(9, 9, 9, 0.13);
  color: var(--text-primary);
}

.system-strip__inner {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 20px 0 16px;
}

.system-strip__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-strip__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 2px 24px;
  border-left: 1px solid rgba(9, 9, 9, 0.12);
}

.system-strip__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.system-strip__item:last-child {
  padding-right: 0;
}

.system-strip__marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8faabd;
  box-shadow: 0 0 0 4px rgba(99, 126, 145, 0.08), 0 0 15px rgba(99, 126, 145, 0.22);
  animation: systemMarkerPulse 4.8s ease-in-out infinite;
}

.system-strip__item:nth-child(2) .system-strip__marker {
  background: #c3cbd1;
  animation-delay: -1.6s;
}

.system-strip__item:nth-child(3) .system-strip__marker {
  background: #c69a70;
  animation-delay: -3.2s;
}

.system-strip__item p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin: 0;
  line-height: 1.35;
}

.system-strip__item strong {
  flex: none;
  font-size: 0.74rem;
  letter-spacing: 0.015em;
  color: var(--text-primary);
}

.system-strip__item p span {
  min-width: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

@keyframes systemMarkerPulse {
  0%, 100% {
    opacity: 0.58;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 980px) {
  .system-strip__item p {
    display: block;
  }

  .system-strip__item p span {
    display: block;
    margin-top: 2px;
  }
}

@media (max-width: 700px) {
  .system-strip__inner {
    width: calc(100% - 40px);
    padding: 14px 0 13px;
  }

  .system-strip__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-strip__item,
  .system-strip__item:first-child,
  .system-strip__item:last-child {
    padding: 9px 0;
    border-top: 1px solid rgba(9, 9, 9, 0.09);
    border-left: 0;
  }

  .system-strip__item:first-child {
    border-top: 0;
  }

  .system-strip__item p {
    display: flex;
  }

  .system-strip__item p span {
    display: inline;
    margin-top: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .system-strip__marker {
    animation: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: calc(var(--grid-size) * 0.9);
    padding: 0 24px;
  }

  .nav {
    width: min(calc(100% - 40px), var(--max-width));
  }

  .hero {
    padding: clamp(80px, 18vh, 120px) 0 clamp(60px, 14vh, 100px);
    min-height: calc(100svh - 68px);
  }

  .hero-inner {
    width: min(calc(100% - 80px), 720px);
    gap: 32px;
  }

  .hero-copy {
    width: 100%;
    gap: 28px;
  }

  .nav__identity {
    gap: 12px;
  }

  .origin-badge {
    gap: 4px;
  }

  .hero-origin {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    gap: 6px;
    margin-top: -4px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .page-main {
    gap: 80px;
  }

  .subpage-hero {
    padding: clamp(100px, 20vh, 140px) 0 48px;
  }

  .subpage-hero__title {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }
}

.hero-title::before,
.hero-title::after {
  content: none; /* disable decorative overlays behind title */
}

.hero-title::before {}
.hero-title::after {}

.lead {
  margin: 22px 0 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero .lead strong {
  color: var(--text-soft);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions .btn {
  min-width: clamp(220px, 18vw, 280px);
}

.hero-subline {
  margin: 10px auto 0;
  font-size: var(--hero-tagline);
  letter-spacing: 0.084em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
  text-wrap: balance;
}

.hero-official-note {
  margin: 16px auto 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.page-main {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.subpage-hero {
  padding: clamp(120px, 22vh, 160px) 0 60px;
  text-align: center;
}

.subpage-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.subpage-hero__title {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.subpage-hero__lead {
  margin: 0 auto;
  max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #f4f4f4;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border-color: rgba(0, 0, 0, 0.7);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.origin-badge__letter--u,
.origin-badge__letter--s,
.origin-badge__letter--a {
  will-change: transform, opacity, color, text-shadow;
}

@keyframes usaLetterDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40% {
    transform: translate3d(0.35px, -0.4px, 0);
  }
  75% {
    transform: translate3d(-0.32px, 0.45px, 0);
  }
}

@keyframes usaRedWave {
  0%, 100% {
    color: #b51220;
  }
  50% {
    color: #df2533;
  }
}

@keyframes usaWhiteWave {
  0%, 100% {
    color: #f7f9ff;
    text-shadow: 0 0 4px rgba(30, 40, 50, 0.25);
  }
  45% {
    color: #eef2ff;
    text-shadow: 0 0 6px rgba(60, 80, 110, 0.25);
  }
  50% {
    color: #ffffff;
    text-shadow: 0 0 4px rgba(30, 40, 50, 0.2);
  }
}

@keyframes usaBlueWave {
  0%, 100% {
    color: #123672;
  }
  50% {
    color: #1b4b9e;
  }
}

@media (prefers-reduced-motion: reduce) {
  .origin-badge__letter--u,
  .origin-badge__letter--s,
  .origin-badge__letter--a {
    animation: none;
    text-shadow: none;
    transform: none !important;
  }

  .origin-badge__flag-image {
    transition: none;
    transform: scale(1) translateY(0);
  }
}

.section {
  padding: var(--grid-size) 0;
}

.section--hero + .section--about {
  margin-top: calc(var(--grid-size) * 1);
}

.section--about {
  padding-top: calc(var(--grid-size) * 0.6);
  padding-bottom: calc(var(--grid-size) * 0.9);
  margin-bottom: 0;
}

.section--affiliations {
  padding: calc(var(--grid-size) * 0.1) 0 calc(var(--grid-size) * 0.9);
}

.section--affiliations .section__header {
  margin: -6px auto 16px;
}

.section--work {
  padding-top: max(0px, calc(var(--grid-size) * 0.85 - var(--grid-size) * 8));
}

.section--work .section__header {
  margin-top: 0;
}

.section--services {
  padding-bottom: max(40px, calc(clamp(140px, 17vw, 240px) - var(--grid-size) * 13));
}

.section--services .section__header h2,
.section--work .section__header h2 {
  font-size: clamp(1.5rem, 5vw, 3.25rem);
  line-height: 0.95;
}

.section__header {
  max-width: 780px;
  margin: -14px auto 32px;
  text-transform: uppercase;
  text-align: center;
}

.section__eyebrow {
  margin: 0 0 32px;
  letter-spacing: 0.28em;
  font-size: var(--section-eyebrow);
  color: var(--text-soft);
}

.section__header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 3.25rem);
  letter-spacing: -0.01em;
}

.section__headline-lock {
  /* Keeps the authored <br> line breaks while letting a line that is
     physically wider than its container wrap instead of clipping or
     overflowing the page (e.g. long section headlines at mid widths). */
  display: inline;
  white-space: normal;
}

.section--about .section__header h2 {
  line-height: 1.02;
}

.section--about .section__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 0 0 28px;
  max-width: none;
}

.section--about .section__eyebrow,
.section--about .section__tagline,
.section--about .section__header h2 {
  width: 100%;
  text-align: left;
}

.section--about .section__eyebrow {
  margin-bottom: 18px;
}

.section__lead {
  margin: 18px auto 0;
  font-size: var(--section-subtitle);
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: none;
  line-height: 1.45;
}

.section__tagline {
  margin: 12px 0 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: var(--about-meta);
  color: var(--text-soft);
}

.section__subline {
  margin: 10px auto 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.section__lead--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 460px;
  color: #1a1a1a;
}

.affiliations-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
}

.affiliation-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
}

.affiliation-card__logo {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affiliation-card__logo img {
  max-width: min(120px, 100%);
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.95);
}

.affiliation-card__logo--text {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.6);
}

.affiliation-card__logo--text span {
  display: inline-block;
  transform: translateY(1px);
}

.affiliation-card__text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.4;
}

@media (max-width: 980px) {
  .affiliations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .affiliations-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-affiliations {
  margin-top: 56px;
}

.hero-affiliations__shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: min(920px, 100%);
  margin: 0 auto;
}

.hero-affiliations__viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  flex: 1;
}

.hero-affiliations__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  width: 100%;
}

.hero-affiliations__item {
  position: relative;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  opacity: 1;
  transform: none;
  filter: saturate(1);
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
  pointer-events: auto;
}

.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__viewport {
  /* The prev/next buttons stay display:none, so without an explicit
     placement the viewport auto-places into the first (auto) track and
     collapses to zero width; pin it to the flexible center track. */
  grid-column: 2;
  height: 108px;
}

.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__grid {
  position: relative;
  height: 100%;
  flex-wrap: nowrap;
}

.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  filter: saturate(0.85);
  pointer-events: auto;
  cursor: default;
}

.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item[data-pos="center"] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: saturate(1.05);
  z-index: 3;
  pointer-events: auto;
}

.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item[data-pos="left"] {
  transform: translate(-165%, -50%) scale(0.78);
  opacity: 0.55;
  z-index: 2;
  cursor: pointer;
}

.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item[data-pos="right"] {
  transform: translate(65%, -50%) scale(0.78);
  opacity: 0.55;
  z-index: 2;
  cursor: pointer;
}

.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item[data-pos="far-left"],
.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item[data-pos="far-right"] {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-affiliations__logo img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: saturate(1.02) contrast(1.02);
}

.hero-affiliations__item--fleetwerx .hero-affiliations__logo img {
  filter: saturate(1.08) contrast(1.12);
}

.hero-affiliations__item--sewp .hero-affiliations__logo img {
  height: 50px;
}

.affiliation-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.affiliation-wordmark {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-affiliations__logo .affiliation-wordmark {
  min-height: 42px;
  font-size: 0.72rem;
  letter-spacing: 0.075em;
}

.hero-affiliations__logo .affiliation-identity {
  gap: 8px;
}

.hero-affiliations__text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: -2px;
}

.hero-affiliations__text--sewp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-affiliations__name {
  color: var(--text-primary);
  font-weight: 800;
}

.hero-affiliations__role {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

/* The faded neighbor cards (item opacity 0.55 desktop / 0.45 mobile)
   cannot mathematically reach the 4.5:1 contrast floor for text, so
   their captions - already aria-hidden by the carousel - are hidden
   outright instead of rendering as unreadable text. The centered card
   keeps its fully accessible caption. */
.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item:not([data-pos="center"]) .hero-affiliations__text {
  visibility: hidden;
}

/* Neighbor cards are intentionally faded. Keep the live USSOCOM wordmark in
   layout, but expose it only when its card reaches the full-opacity center. */
.hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item:not([data-pos="center"]) .affiliation-wordmark {
  visibility: hidden;
}

.hero-affiliations__nav {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-affiliations__nav:hover,
.hero-affiliations__nav:focus-visible {
  opacity: 0.65;
  transform: translateY(-1px);
}

.hero-affiliations__nav:active {
  opacity: 0.8;
  transform: translateY(0);
}

.hero-affiliations__nav svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .hero-affiliations[data-carousel-ready="1"] .hero-affiliations__shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .hero-affiliations[data-carousel-ready="1"] .hero-affiliations__viewport {
    height: 102px;
  }

  .hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item {
    width: 180px;
  }
}

@media (max-width: 640px) {
  .hero-affiliations__shell {
    max-width: 100%;
  }

  .hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item[data-pos="left"] {
    transform: translate(-132%, -50%) scale(0.6);
    opacity: 0.45;
  }

  .hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item[data-pos="right"] {
    transform: translate(32%, -50%) scale(0.6);
    opacity: 0.45;
  }

  .hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item[data-pos="far-left"],
  .hero-affiliations[data-carousel-ready="1"] .hero-affiliations__item[data-pos="far-right"] {
    opacity: 0;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas:
    "text media";
  column-gap: clamp(28px, 5vw, 80px);
  row-gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.about-copy {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin-top: 12px;
}

.about-copy .section__lead--left {
  margin: 0 0 24px;
}

.about-copy .section__lead--left:last-of-type {
  margin-bottom: 24px;
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signalSweep {
  0% {
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
  }
  35% {
    opacity: 0.45;
  }
  60% {
    transform: translateX(115%) skewX(-18deg);
    opacity: 0.25;
  }
  100% {
    transform: translateX(160%) skewX(-18deg);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "media";
  }
}

.about-copy[data-animate] {
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.about-copy.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-grid,
.card-grid,
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}

.highlight-grid .highlight {
  min-height: 140px;
  padding: clamp(14px, 1.2vw, 20px);
}

.section--work .highlight {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 18px 44px rgba(7, 10, 20, 0.14);
}

.section--work .highlight__body {
  position: relative;
  z-index: 1;
}

.section--work .highlight[data-animate]:not(.is-visible) {
  opacity: 0;
  transform: translateX(0);
}

.section--work .highlight:nth-child(1)[data-animate]:not(.is-visible) {
  transform: translateX(-40px);
}

.section--work .highlight:nth-child(2)[data-animate]:not(.is-visible) {
  transform: translateX(40px);
}

.section--work .highlight:nth-child(3)[data-animate]:not(.is-visible) {
  transform: translateY(28px) scale(0.98);
}

.section--work .highlight.is-visible {
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.section--work .highlight--accelerated .highlight-timeline {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  display: block;
  width: 100%;
  margin: 10px 0 12px;
  height: 3px;
  border-radius: 999px;
  background: rgba(208, 214, 222, 0.7);
  overflow: hidden;
  pointer-events: none;
}

.section--work .highlight--accelerated .highlight-timeline::before,
.section--work .highlight--accelerated .highlight-timeline::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.section--work .highlight--accelerated .highlight-timeline::before {
  background: repeating-linear-gradient(90deg, rgba(158, 168, 182, 0.65), rgba(158, 168, 182, 0.65) 12px);
}

.section--work .highlight--accelerated .highlight-timeline::after {
  width: 40%;
  background: linear-gradient(90deg, rgba(240, 244, 250, 0.9), rgba(170, 178, 190, 0.35));
  transform: translateX(-110%);
  opacity: 0;
}

.section--work .highlight--accelerated.is-visible .highlight-timeline::after {
  animation: timelineMinimalSweep 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: 0.25s;
}

.section--work .highlight-metric--decisions {
  position: relative;
}

.section--work .highlight--accelerated.is-visible .highlight-metric--decisions {
  animation: metricFlash 1.4s ease forwards;
  animation-delay: 0.35s;
}

.section--work .highlight--warning {
  padding-left: clamp(28px, 4vw, 48px);
}

.section--work .highlight--warning .highlight-signal {
  position: absolute;
  top: 50%;
  left: clamp(6px, 3vw, 30px);
  width: clamp(70px, 9vw, 130px);
  height: 70px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.section--work .highlight-signal__wave {
  position: absolute;
  width: clamp(90px, 12vw, 150px);
  height: 56px;
  top: 50%;
  left: 0;
  transform: translate(-28%, -52%) scaleX(0.85);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.section--work .highlight-signal__wave polyline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-dasharray: 140 140;
  stroke-dashoffset: 140;
}

.section--work .highlight--warning.is-visible .highlight-signal__wave {
  opacity: 0.85;
  transform: translate(-28%, -52%) scaleX(1);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.section--work .highlight--warning.is-visible .highlight-signal__wave polyline {
  animation: warningWaveTrace 2.8s linear infinite;
  stroke: rgba(255, 255, 255, 0.98);
}

.section--work .highlight-signal__pulse {
  z-index: 1;
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: scale(0.5);
}

.section--work .highlight--warning:focus-within .highlight-signal__wave {
  opacity: 0.95;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.4));
}

.section--work .highlight--warning:focus-within .highlight-signal__wave polyline {
  stroke: #fff;
  stroke-width: 3.3;
}

.section--work .highlight--warning:focus-within .highlight-signal__pulse {
  animation: signalPulse 0.8s ease-out forwards;
}

@media (hover: hover) and (pointer: fine) {
  .section--work .highlight--warning:hover .highlight-signal__wave {
    opacity: 0.95;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.4));
  }

  .section--work .highlight--warning:hover .highlight-signal__wave polyline {
    stroke: #fff;
    stroke-width: 3.3;
  }

  .section--work .highlight--warning:hover .highlight-signal__pulse {
    animation: signalPulse 0.8s ease-out forwards;
  }
}

.section--work .highlight--warning .highlight-underline {
  display: inline-block;
  position: relative;
}

.section--work .highlight--warning .highlight-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: rgba(255, 255, 255, 0.65);
  transition: width 0.45s ease;
}

.section--work .highlight--warning.is-visible .highlight-underline::after {
  width: 100%;
  transition-delay: 0.4s;
}

.section--work .highlight--signal-corridor .highlight__body {
  position: relative;
  z-index: 2;
}

.section--work .signal-corridor {
  position: absolute;
  inset: 32% -1px -1px -1px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  isolation: isolate;
}

.section--work .signal-corridor::before,
.section--work .signal-corridor::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section--work .signal-corridor::before {
  background:
    radial-gradient(42% 46% at 50% 8%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08) 36%, transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%, rgba(82, 92, 110, 0.08) 74%, rgba(48, 56, 70, 0.14));
  filter: blur(14px);
  opacity: 0.9;
}

.section--work .signal-corridor::after {
  background:
    radial-gradient(72% 56% at 50% 100%, rgba(72, 84, 104, 0.2), transparent 68%),
    linear-gradient(180deg, transparent 0 68%, rgba(10, 12, 18, 0.08));
  opacity: 0.72;
}

.section--work .signal-corridor__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}

.section--work .signal-corridor__fog {
  position: absolute;
  left: 50%;
  top: -2%;
  width: min(78%, 360px);
  height: min(72%, 168px);
  pointer-events: none;
  z-index: 3;
  opacity: 0.96;
  transform: translateX(-50%);
  background:
    radial-gradient(72% 58% at 50% 18%, rgba(248, 249, 250, 0.96), rgba(248, 249, 250, 0.72) 34%, rgba(248, 249, 250, 0.36) 58%, rgba(248, 249, 250, 0) 82%),
    radial-gradient(56% 42% at 45% 48%, rgba(248, 249, 250, 0.74), rgba(248, 249, 250, 0.26) 56%, rgba(248, 249, 250, 0) 86%);
  filter: blur(16px);
  mask-image:
    radial-gradient(ellipse at 50% 36%, #000 0 46%, rgba(0, 0, 0, 0.68) 58%, transparent 86%);
}

.section--work .signal-corridor__apex-glow,
.section--work .signal-corridor__apex-core {
  pointer-events: none;
}

.section--work .signal-corridor__apex-glow {
  opacity: 0.72;
  filter: blur(4px);
}

.section--work .signal-corridor__apex-core {
  fill: rgba(240, 246, 255, 0.44);
  filter: blur(0.6px);
}

.section--work .signal-corridor__guide,
.section--work .signal-corridor__lane,
.section--work .signal-corridor__edge {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.section--work .signal-corridor__guide {
  stroke: rgba(186, 196, 214, 0.24);
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.section--work .signal-corridor__guide--far {
  stroke-width: 0.95;
  opacity: 0.46;
}

.section--work .signal-corridor__guide--mid {
  stroke-width: 1.1;
  opacity: 0.52;
}

.section--work .signal-corridor__guide--near {
  stroke-width: 1.24;
  opacity: 0.6;
}

.section--work .signal-corridor__guide--front {
  stroke-width: 1.42;
  opacity: 0.7;
}

.section--work .signal-corridor__edge {
  stroke: rgba(182, 193, 212, 0.14);
  stroke-width: 1.1;
  stroke-linecap: square;
}

.section--work .signal-corridor__lane {
  stroke-linecap: square;
  stroke-linejoin: bevel;
}

.section--work .signal-corridor__lane--base-left,
.section--work .signal-corridor__lane--base-center,
.section--work .signal-corridor__lane--base-right {
  stroke: rgba(190, 200, 218, 0.22);
}

.section--work .signal-corridor__lane--base-left,
.section--work .signal-corridor__lane--base-right {
  stroke-width: 2.1;
}

.section--work .signal-corridor__lane--base-center {
  stroke-width: 2.4;
}

.section--work .signal-corridor__lane--trace-left,
.section--work .signal-corridor__lane--trace-center,
.section--work .signal-corridor__lane--trace-right {
  stroke: rgba(248, 251, 255, 0.9);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
  opacity: 0;
}

.section--work .signal-corridor__lane--trace-left,
.section--work .signal-corridor__lane--trace-right {
  stroke-width: 1.5;
}

.section--work .signal-corridor__lane--trace-center {
  stroke-width: 1.7;
}

.section--work .signal-corridor__lane--trace-left {
  stroke-dasharray: 20 190;
  stroke-dashoffset: 210;
}

.section--work .signal-corridor__lane--trace-center {
  stroke-dasharray: 24 184;
  stroke-dashoffset: 208;
}

.section--work .signal-corridor__lane--trace-right {
  stroke-dasharray: 20 190;
  stroke-dashoffset: 210;
}

.section--work .signal-corridor__packet {
  --corridor-packet-rotation: 45deg;
  position: absolute;
  top: 2%;
  left: 50%;
  z-index: 2;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.92);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translate3d(-50%, 0, 0) rotate(var(--corridor-packet-rotation)) scale(0.3);
}

.section--work .highlight--signal-corridor.is-visible .signal-corridor__lane--trace-left {
  animation: corridorTraceLeft 3.4s linear infinite;
}

.section--work .highlight--signal-corridor.is-visible .signal-corridor__lane--trace-center {
  animation: corridorTraceCenter 3.2s linear infinite 0.32s;
}

.section--work .highlight--signal-corridor.is-visible .signal-corridor__lane--trace-right {
  animation: corridorTraceRight 3.4s linear infinite 0.64s;
}

.section--work .highlight--signal-corridor.is-visible .signal-corridor__packet--left {
  animation: corridorPacketLeft 4.4s cubic-bezier(0.16, 0.88, 0.28, 1) infinite;
}

.section--work .highlight--signal-corridor.is-visible .signal-corridor__packet--center {
  animation: corridorPacketCenter 4.4s cubic-bezier(0.16, 0.88, 0.28, 1) infinite 1s;
}

.section--work .highlight--signal-corridor.is-visible .signal-corridor__packet--right {
  animation: corridorPacketRight 4.4s cubic-bezier(0.16, 0.88, 0.28, 1) infinite 2s;
}

.section--work .highlight--signal-corridor:focus-within .signal-corridor__lane--trace-left,
.section--work .highlight--signal-corridor:focus-within .signal-corridor__lane--trace-center,
.section--work .highlight--signal-corridor:focus-within .signal-corridor__lane--trace-right {
  stroke: rgba(255, 255, 255, 0.98);
}

@media (hover: hover) and (pointer: fine) {
  .section--work .highlight--signal-corridor:hover .signal-corridor__lane--trace-left,
  .section--work .highlight--signal-corridor:hover .signal-corridor__lane--trace-center,
  .section--work .highlight--signal-corridor:hover .signal-corridor__lane--trace-right {
    stroke: rgba(255, 255, 255, 0.98);
  }
}

@keyframes timelineMinimalSweep {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  70% {
    transform: translateX(20%);
    opacity: 0.85;
  }
  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}

@keyframes metricFlash {
  0% {
    color: inherit;
    background: rgba(255, 255, 255, 0);
  }
  25% {
    background: rgba(255, 255, 255, 0.18);
  }
  100% {
    background: rgba(255, 255, 255, 0);
  }
}

@keyframes signalPulse {
  0% {
    opacity: 0.4;
    transform: scale(0.5);
  }
  80% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes warningWaveTrace {
  0% {
    stroke-dashoffset: 140;
  }
  100% {
    stroke-dashoffset: -140;
  }
}

@keyframes corridorTraceLeft {
  0% {
    opacity: 0;
    stroke-dashoffset: 210;
  }
  16% {
    opacity: 1;
  }
  74% {
    opacity: 0.86;
    stroke-dashoffset: -18;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -38;
  }
}

@keyframes corridorTraceCenter {
  0% {
    opacity: 0;
    stroke-dashoffset: 208;
  }
  14% {
    opacity: 1;
  }
  76% {
    opacity: 0.9;
    stroke-dashoffset: -10;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -34;
  }
}

@keyframes corridorTraceRight {
  0% {
    opacity: 0;
    stroke-dashoffset: 210;
  }
  16% {
    opacity: 1;
  }
  74% {
    opacity: 0.86;
    stroke-dashoffset: -18;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -38;
  }
}

@keyframes corridorPacketLeft {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) rotate(var(--corridor-packet-rotation)) scale(0.28);
  }
  14% {
    opacity: 0.72;
  }
  72% {
    opacity: 0.22;
    transform: translate3d(-120px, 122px, 0) rotate(var(--corridor-packet-rotation)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-156px, 164px, 0) rotate(var(--corridor-packet-rotation)) scale(1.14);
  }
}

@keyframes corridorPacketCenter {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) rotate(var(--corridor-packet-rotation)) scale(0.26);
  }
  14% {
    opacity: 0.76;
  }
  72% {
    opacity: 0.24;
    transform: translate3d(-50%, 136px, 0) rotate(var(--corridor-packet-rotation)) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, 176px, 0) rotate(var(--corridor-packet-rotation)) scale(1.18);
  }
}

@keyframes corridorPacketRight {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) rotate(var(--corridor-packet-rotation)) scale(0.28);
  }
  14% {
    opacity: 0.72;
  }
  72% {
    opacity: 0.22;
    transform: translate3d(70px, 122px, 0) rotate(var(--corridor-packet-rotation)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(106px, 164px, 0) rotate(var(--corridor-packet-rotation)) scale(1.14);
  }
}

.deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  grid-template-rows: repeat(2, minmax(120px, auto));
  gap: clamp(12px, 1.2vw, 22px) clamp(14px, 1.4vw, 26px);
  position: relative;
  z-index: 2;
  justify-content: center;
  align-content: center;
  max-width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.deliverables li {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  letter-spacing: 0.08em;
  font-size: var(--pill-text);
  text-align: center;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
  min-width: 180px;
  max-width: 210px;
  width: clamp(180px, 18vw, 210px);
  min-height: 104px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #050608;
  box-shadow: 0 18px 44px rgba(7, 10, 20, 0.14);
}

.deliverables__title {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-wrap: balance;
}

.deliverables__body {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.01em;
  text-transform: none;
  text-wrap: pretty;
}

.deliverables__body strong {
  font-weight: 700;
}

.deliverables.is-primed li {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    opacity 0.45s ease;
  opacity: 0;
  transform: translateY(24px) scale(0.94);
}

.deliverables.is-primed li.is-visible,
.deliverables.is-primed li[data-animate="ready"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.deliverables li:nth-child(1) {
  justify-self: start;
  align-self: start;
}

.deliverables li:nth-child(2) {
  justify-self: end;
  align-self: start;
}

.deliverables li:nth-child(3) {
  justify-self: start;
  align-self: end;
}

.deliverables li:nth-child(4) {
  justify-self: end;
  align-self: end;
}

.deliverables.is-primed li.is-visible,
.deliverables.is-primed li[data-animate="ready"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.deliverables li:hover,
.deliverables li:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 28px 66px rgba(6, 10, 18, 0.26);
  border-color: rgba(0, 0, 0, 0.3);
}

.deliverables li.is-beam-active {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(4, 7, 14, 0.28);
  border-color: rgba(0, 0, 0, 0.32);
}

.deliverables-diagram {
  position: relative;
  margin-top: calc(var(--grid-size) * -1 + 20px);
  padding: clamp(60px, 8vw, 120px) 0;
  isolation: isolate;
  contain: paint;
  min-height: clamp(420px, 50vw, 540px);
}

.diagram-beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.diagram-beams svg {
  width: 100%;
  height: 100%;
  display: block;
}

.diagram-beams__path {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: rgba(255, 255, 255, 0.95);
  mix-blend-mode: screen;
  stroke-opacity: 0.85;
  stroke-dasharray: 16 8;
  animation: none;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.65));
  transition: stroke-opacity 0.3s ease, filter 0.3s ease, stroke-width 0.3s ease;
}

.diagram-beams__path.is-active {
  stroke-opacity: 1;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 32px rgba(255, 255, 255, 1));
  stroke-dasharray: 18 6;
  animation: beamActive 0.9s linear infinite;
}

@keyframes beamIdle {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes beamActive {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -24;
  }
}
.diagram-emblem {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 20vw, 280px);
  height: clamp(180px, 20vw, 280px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.diagram-emblem__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
  animation: emblemPulse 8s ease-in-out infinite;
}

@keyframes emblemPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.38));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
  }
}

@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .deliverables-diagram {
    padding-top: 120px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .deliverables {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    justify-content: center;
  }

  .deliverables li {
    justify-self: center;
    align-self: stretch;
  }
}

@keyframes beamFlow {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.8;
  }
  100% {
    stroke-dashoffset: -320;
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-path--highlight {
    animation: none;
  }

  .section--work .signal-corridor__lane--trace-left,
  .section--work .signal-corridor__lane--trace-center,
  .section--work .signal-corridor__lane--trace-right,
  .section--work .signal-corridor__packet {
    animation: none !important;
  }

  .section--work .signal-corridor__lane--trace-left,
  .section--work .signal-corridor__lane--trace-center,
  .section--work .signal-corridor__lane--trace-right {
    opacity: 0.58;
    stroke-dashoffset: 0;
  }

  .section--work .signal-corridor__packet {
    opacity: 0.36;
    transform: translate3d(-50%, 108px, 0) rotate(var(--corridor-packet-rotation)) scale(0.82);
  }
}

.feature,
.card,
.highlight {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature {
  padding: 26px;
}

.feature:focus-within,
.card:focus-within,
.highlight:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  border-color: rgba(0, 0, 0, 0.24);
}

@media (hover: hover) and (pointer: fine) {
  .feature:hover,
  .card:hover,
  .highlight:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    border-color: rgba(0, 0, 0, 0.24);
  }
}

.feature h3,
.card h3,
.highlight h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.feature p,
.card p,
.highlight p {
  margin: 0;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.9rem;
  line-height: 1.4;
}

.section--work .highlight {
  gap: 10px;
}

.section--work .highlight h3 {
  font-size: var(--outcome-title);
}

.section--work .highlight p {
  font-size: var(--outcome-body);
  line-height: 1.45;
}

.section--cta .cta {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: clamp(48px, 8vw, 72px);
  text-align: center;
  box-shadow: none;
}

.section--cta .cta h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section--cta .cta p {
  margin: 20px auto 32px;
  max-width: 60ch;
  color: var(--text-muted);
  text-transform: none;
}

.section--cta .cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Contact expand panel */
.contact-expand {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-expand__label {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1),
    letter-spacing 0.5s cubic-bezier(.16,1,.3,1),
    opacity 0.4s ease;
}

.contact-expand__panel {
  width: min(720px, 100%);
  background: #0a0a0a;
  color: #f4f4f4;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top;
  max-height: 0;
  clip-path: inset(0 0 100% 0 round var(--radius-lg));
  transition:
    clip-path 1.6s cubic-bezier(.16,1,.3,1),
    max-height 1.6s cubic-bezier(.16,1,.3,1),
    transform 1.2s cubic-bezier(.16,1,.3,1),
    opacity 0.9s ease,
    box-shadow 1.2s ease;
}

.contact-expand__panel::before {
  content: '';
  position: absolute;
  inset: -2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 28%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 18px);
  opacity: 0;
  transform: translateY(-25%);
  pointer-events: none;
}

.contact-expand.is-expanded .contact-expand__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 1000px;
  clip-path: inset(0 0 0 0 round var(--radius-lg));
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
}

.contact-expand.is-expanded .contact-expand__panel::before {
  opacity: 1;
  animation: contactSweep 2.4s ease-out 0.25s both;
}

@keyframes contactSweep {
  from { transform: translateY(-55%); opacity: 0; }
  30% { opacity: 1; }
  to { transform: translateY(55%); opacity: 0; }
}

.contact-expand__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.contact-expand__grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.5s cubic-bezier(.16,1,.3,1), opacity 0.5s ease;
}

.contact-expand__grid input,
.contact-expand__grid textarea {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f4;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.95rem;
  max-width: 100%;
  resize: vertical;
}

.contact-expand.is-expanded .contact-expand__grid label { opacity: 1; transform: translateY(0); }
.contact-expand.is-expanded .contact-expand__grid label:nth-child(1) { transition-delay: 0.10s; }
.contact-expand.is-expanded .contact-expand__grid label:nth-child(2) { transition-delay: 0.16s; }
.contact-expand.is-expanded .contact-expand__grid label:nth-child(3) { transition-delay: 0.22s; }
.contact-expand.is-expanded .contact-expand__grid label:nth-child(4) { transition-delay: 0.28s; }

.contact-expand.is-expanded .contact-expand__label {
  transform: translateY(-2px) scale(1.02);
  letter-spacing: 0.26em;
  opacity: 0.92;
}

.contact-expand__grid input::placeholder,
.contact-expand__grid textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact-expand__grid input:focus,
.contact-expand__grid textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.32);
}

.contact-expand__full {
  grid-column: 1 / -1;
}

.contact-expand__actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 6px 20px;
}

.contact-expand__status {
  min-height: 0;
  padding: 0 20px 10px 20px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.3s ease;
}

.contact-expand__status:empty {
  display: none;
  padding: 0;
}

.contact-expand__status.is-success {
  color: #8ed8ac;
}

.contact-expand__status.is-error {
  color: #ff8da1;
}

.btn.btn--compact {
  padding: 10px 18px;
}

.contact-expand__actions .btn:focus-visible {
  outline-color: #f4f4f4;
}

@media (max-width: 700px) {
  .contact-expand__grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-grid > .footer-col:first-child,
  .footer-meta,
  .footer-certs--center {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-meta {
    justify-self: stretch;
    align-self: stretch;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-meta-year {
    align-self: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .nav__emblem-image {
    width: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-expand__panel,
  .contact-expand__label,
  .contact-expand__grid label,
  .contact-expand__panel::before {
    transition: none !important;
    animation: none !important;
  }
  .contact-expand__panel { opacity: 1; max-height: 1000px; clip-path: none; transform: none; }
  .contact-expand__grid label { opacity: 1; transform: none; }
}

.site-footer {
  padding: 42px 0 54px;
  background: transparent;
  border-top: none;
  color: var(--text-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: start;
}

.footer-grid > .footer-col:first-child {
  grid-column: 1;
  grid-row: 1;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-title {
  margin: 0 0 4px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
}

.footer-line {
  margin: 0;
  font-size: var(--footer-text);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-soft);
}

.footer-line--cert {
  white-space: nowrap;
}

.footer-certs {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-cert-badge {
  display: block;
  width: clamp(44px, 4.6vw, 58px);
  height: auto;
}

.footer-meta {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  justify-content: flex-start;
  align-items: flex-end;
  text-align: right;
  gap: 8px;
}

.footer-meta-year {
  align-self: flex-end;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--footer-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-certs--center {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  width: max-content;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .footer-line--cert {
    white-space: normal;
  }
}

.system-line {
  display: block;
  padding: 18px 0;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
}

button.cta {
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  color: #f4f4f4;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

button.cta:hover,
button.cta:focus-visible {
  background: var(--accent);
  color: #121316;
}

/* Responsive */

@media (max-width: 960px) {
  .nav {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand links";
    gap: 12px;
    padding: 0 18px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__emblem-image {
    width: 116px;
  }

  .nav__brand {
    font-size: 1.05rem;
    letter-spacing: 0.3em;
    margin-left: -20px;
  }

  .nav__links {
    position: absolute;
    top: calc(var(--grid-size) + 4px);
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #f7f7f6;
    border: 1px solid rgba(9, 9, 9, 0.22);
    border-radius: var(--radius-md);
    padding: 10px 18px 14px;
    display: none;
    color: var(--text-primary);
    min-width: 264px;
    box-shadow: 0 24px 56px rgba(9, 9, 9, 0.22);
  }

  .nav__links li {
    border-top: 1px solid rgba(9, 9, 9, 0.1);
  }

  .nav__links li:first-child {
    border-top: 0;
  }

  .nav__links li:last-child {
    border-top: 0;
    padding-top: 10px;
  }

  .nav__links.is-open {
    display: flex;
  }

  .hero-inner {
    width: calc(100% - 64px);
    --hero-grid-bias: 0px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .section {
    padding-left: 32px;
    padding-right: 32px;
  }

}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .usf-demo {
    padding: 32px 16px 48px;
    gap: 20px;
  }

  .usf-status-strip {
    grid-template-columns: 1fr;
  }

  .usf-alert-grid,
  .usf-narratives__grid {
    grid-template-columns: 1fr;
  }

  .usf-demo__sync {
    flex-direction: column;
    align-items: flex-start;
  }

  .usf-demo__refresh {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 0;
    padding-bottom: clamp(32px, 14vh, 90px);
    min-height: calc(85vh - 68px);
    align-items: center;
    justify-content: flex-start;
  }

  .hero-waves--particles,
  .hero .grain {
    display: none !important;
  }

  .hero-inner {
    width: calc(100% - 40px);
    margin: 0 auto;
    text-align: center;
    align-items: center;
    row-gap: 24px;
  }

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

  .btn {
    width: 100%;
  }

  .section--cta .cta {
    padding: 40px 0 56px;
  }

  .contact-expand {
    width: 100%;
    align-items: stretch;
  }

  .contact-expand__panel {
    border-radius: 24px;
  }

  .hero-official-note {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .page-main {
    gap: 64px;
  }

  .subpage-hero {
    padding: 100px 0 40px;
  }

  .subpage-hero__eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.68rem;
  }

  .subpage-hero__title {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .section__header {
    margin-bottom: 40px;
  }

  .feature,
  .card,
  .highlight {
    padding: 24px;
  }

}

@media (max-width: 480px) {
  .site-header {
    height: 68px;
  }

  .nav {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px 12px 4px calc(12px + env(safe-area-inset-left, 0px));
    grid-template-columns: auto auto;
    grid-template-areas: "brand links";
    gap: 6px;
    justify-content: space-between;
  }

  .nav__identity {
    justify-self: start;
    margin-left: 0;
    gap: 2px;
  }

  .nav__emblem-link {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    border-radius: 4px;
  }

  .nav__brand {
    letter-spacing: 0.18em;
    margin-left: -16px;
    font-size: 0.9rem;
  }

  .nav__toggle {
    padding: 6px;
  }

  .hero {
    padding: calc(72px + env(safe-area-inset-top, 0px) + clamp(0px, 6vh, 40px)) 0 clamp(45px, 16vh, 90px);
    min-height: calc(85vh - 68px);
    align-items: center;
    justify-content: flex-start;
  }

  .hero-waves--particles,
  .hero .grain {
    display: none !important;
  }

  .hero-inner {
    width: min(calc(100% - 48px), 500px);
    margin: 0 auto;
    row-gap: 28px;
    align-items: center;
    text-align: center;
    --hero-grid-bias: 0px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-align: center;
  }

  .hero-title__segment {
    white-space: normal;
  }

  .hero .lead {
    font-size: clamp(1.05rem, 4vw, 1.22rem);
    line-height: 1.4;
    text-align: center;
    margin: 0 auto;
  }

  .hero-official-note {
    margin-top: 20px;
  }

  .section--cta .cta {
    padding: 36px 0 48px;
  }

  .section--about .section__lead {
    font-size: 1.2rem;
    line-height: 1.68;
    letter-spacing: 0.006em;
  }

  .contact-expand__panel {
    width: 100%;
  }

  .contact-expand__grid {
    padding: 16px;
    gap: 12px;
  }

  .contact-expand__actions {
    padding: 0 16px 6px;
  }

  .contact-expand__status {
    padding: 0 16px 10px;
    min-height: 0;
    text-align: left;
  }

  .btn.btn--compact {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .section--services[data-motion-state="paused"] .diagram-beams__path.is-active,
  .section--services[data-motion-state="paused"] .diagram-emblem__image,
  .section--work[data-motion-state="paused"] .highlight--accelerated.is-visible .highlight-timeline::after,
  .section--work[data-motion-state="paused"] .highlight--warning.is-visible .highlight-signal__wave polyline,
  .section--work[data-motion-state="paused"] .highlight--signal-corridor.is-visible .signal-corridor__lane--trace-left,
  .section--work[data-motion-state="paused"] .highlight--signal-corridor.is-visible .signal-corridor__lane--trace-center,
  .section--work[data-motion-state="paused"] .highlight--signal-corridor.is-visible .signal-corridor__lane--trace-right,
  .section--work[data-motion-state="paused"] .highlight--signal-corridor.is-visible .signal-corridor__packet--left,
  .section--work[data-motion-state="paused"] .highlight--signal-corridor.is-visible .signal-corridor__packet--center,
  .section--work[data-motion-state="paused"] .highlight--signal-corridor.is-visible .signal-corridor__packet--right {
    animation-play-state: paused !important;
  }

  @supports (content-visibility: auto) {
    html.page-home .section--about,
    html.page-home .section--work,
    html.page-home .section--cta {
      content-visibility: auto;
    }

    html.page-home .section--about {
      contain-intrinsic-size: auto 1100px;
    }

    html.page-home .section--work {
      contain-intrinsic-size: auto 1240px;
    }

    html.page-home .section--cta {
      contain-intrinsic-size: auto 820px;
    }
  }
}

/* MOBILE DAGR LAYOUT  ----------------------------------------------- */
@media (max-width: 768px) {
  body::after {
    content: none;
  }

  /* 1. HEADER */
  .site-header {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40;
    padding: 6px 0;
  }

  .nav {
    padding: 0 16px;
  }

  .nav__emblem-image {
    transform: scale(0.9);
  }

  .nav__toggle {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.78);
  }

  /* 2. HERO */
  .hero {
    padding: calc(72px + env(safe-area-inset-top, 0px) + clamp(12px, 8vh, 50px)) 0 clamp(50px, 16vh, 100px);
    min-height: calc(88vh - 68px);
    align-items: center;
    justify-content: flex-start;
  }

  .hero,
  .section {
    scroll-margin-top: calc(78px + env(safe-area-inset-top, 0px));
  }

  .hero-waves--particles,
  .hero .grain {
    display: none;
  }

  .hero-inner {
    width: min(calc(100% - 48px), 520px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    --hero-grid-bias: 0px;
  }

  .hero-tag {
    font-size: 0.82rem;
    letter-spacing: 0.16em;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
    line-height: 1.14;
    max-width: 100%;
    margin: 0;
    text-align: center;
  }

  .hero .lead {
    max-width: 100%;
    margin: 0 auto;
    font-size: clamp(1rem, 4vw, 1.2rem);
    line-height: 1.38;
    text-align: center;
  }

  .hero-subline {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-align: center;
  }

  /* 3. CTA BUTTONS */
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin: 12px 0 0;
    width: 100%;
  }

  .hero-actions .btn {
    flex: none;
    width: min(320px, 100%);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.94rem;
  }

  .hero-actions .btn.primary {
    box-shadow: none;
  }

  .hero-actions .btn.secondary {
    box-shadow: none;
  }

  /* 4. ABOUT / TEXT BLOCK */
  .section--about {
    padding-top: 24px;
    margin-bottom: 0;
  }

  .section--about .section__header h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }

  .section--about .section__tagline {
    font-size: 0.86rem;
    max-width: 80%;
    margin: 0 auto 14px auto;
  }

  .section--about .section__lead {
    max-width: 92%;
    margin: 0 auto 18px auto;
    font-size: 1.07rem;
    line-height: 1.58;
    letter-spacing: 0.01em;
  }

  html,
  body {
    overflow-x: hidden;
  }

  /* 6. HIDE WAVES / ORB */
  .hero .grain,
  .pipe-diagram,
  .pipe-orb,
  .pipe-wave {
    display: none !important;
  }

  .diagram-beams {
    display: block;
    z-index: 0;
    opacity: 0.65;
  }

  .diagram-beams__path {
    stroke-width: 2.4;
    stroke-opacity: 0.95;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.75));
  }

  .diagram-beams__path.is-active {
    stroke-width: 3.2;
    stroke-opacity: 1;
    filter: drop-shadow(0 0 36px rgba(255, 255, 255, 0.95));
  }

  .diagram-emblem {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(140px, 34vw, 200px);
    height: clamp(140px, 34vw, 200px);
    margin: 0;
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
  }

  .diagram-emblem__image {
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.24));
  }

  .hero-waves {
    display: block;
    opacity: 0.75;
  }

  .deliverables-diagram {
    margin-top: calc(var(--grid-size) * -0.5);
    padding-top: 48px;
    padding-bottom: 48px;
    position: relative;
    contain: layout;
    overflow: visible;
  }

  /* 7. WHAT WE DELIVER HEADER */
  .section--services .section__eyebrow {
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  .section--services .section__header h2,
  .section--work .section__header h2 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.25rem;
    line-height: 0.95;
  }

  .section--services .section__lead {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 0.86rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  /* 8. CAPABILITIES / OUTCOMES CARDS */
  .highlight-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  .deliverables {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(30px, 9vw, 42px) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(64px, auto));
    gap: 12px;
    margin-top: 24px;
    width: min(100%, 360px);
    max-width: calc(100vw - 20px);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
  }

  .deliverables li {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    min-height: 96px;
    padding: 14px 10px;
    z-index: 2;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    color: #050608;
    box-shadow: 0 18px 44px rgba(7, 10, 20, 0.14);
  }

  .deliverables__title {
    max-width: 94%;
    margin-inline: auto;
    font-size: 0.72rem;
    line-height: 1.1;
    letter-spacing: 0.028em;
  }

  .deliverables__body {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .deliverables li:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .deliverables li:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  .deliverables li:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .deliverables li:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
  }

  .highlight-grid .highlight h3 {
    font-size: 1.07rem;
    margin-bottom: 4px;
  }

  .deliverables__body strong {
    font-size: inherit;
    font-weight: 700;
  }

  .deliverables li,
  .highlight-grid .highlight p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  /* 9. IMPACT & RESULTS */
  .section--work .section__lead {
    font-size: 0.86rem;
    max-width: 80%;
    margin: 0 auto 16px auto;
  }
}

@media (max-width: 900px) {
  .section--work .signal-corridor {
    inset: 38% -1px -1px -1px;
  }

  .section--work .signal-corridor::before {
    opacity: 0.72;
  }

  .section--work .signal-corridor__packet {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .section--about .section__header h2,
  .section--services .section__header h2,
  .section--work .section__header h2 {
    max-width: 94%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 4.2vw, 1.16rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }

  .nav {
    padding: 4px 12px 4px calc(12px + env(safe-area-inset-left, 0px));
  }

  .nav__identity {
    gap: 0;
    transform: none;
  }

  .nav__emblem-link {
    margin-left: 0;
  }

  .nav__brand {
    margin-left: -22px;
  }
}

/* AUTOSINT content foundation ---------------------------------------- */

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.workflow-steps__item {
  position: relative;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(9, 9, 9, 0.16);
  border-top: 2px solid rgba(9, 9, 9, 0.78);
  border-radius: var(--radius-sm);
}

.workflow-steps__index {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.workflow-steps__name {
  margin: 8px 0 8px;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow-steps__description {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.content-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(9, 9, 9, 0.16);
  border-top: 2px solid rgba(9, 9, 9, 0.78);
  border-radius: var(--radius-sm);
}

.content-card__title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.content-card__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.content-card__body a {
  text-decoration: underline;
}

.content-card__meta {
  margin: 14px 0 0;
}

.system-fit-list {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
}

.system-fit-list li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(9, 9, 9, 0.1);
}

.system-fit-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-primary);
}

.system-fit-faq {
  max-width: 920px;
  margin: clamp(24px, 4vw, 40px) auto 0;
}

.section__footnote {
  margin: 26px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.section__footnote a {
  text-decoration: underline;
}

.section__footnote--center {
  text-align: center;
}

.section--agent-orchestration .section__footnote {
  max-width: 900px;
  margin-inline: auto;
}

/* Deliberate 3 + 2 layout for the five capability cards on wide screens;
   the second row is centered instead of leaving a lone trailing card. */

@media (min-width: 961px) {
  .content-grid--five {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .content-grid--five > * {
    grid-column: span 2;
  }

  .content-grid--five > *:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

/* Six run-control cards stay in a deliberate 3 x 2 composition instead of
   letting auto-fit produce an uneven 4 + 2 row at wide viewports. */

@media (min-width: 768px) {
  .content-grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Multi-source domain grid (3 + 3 on desktop) */

.source-domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .source-domains {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.source-domains__item {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(9, 9, 9, 0.16);
  border-top: 2px solid rgba(9, 9, 9, 0.78);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Compact outcome and proof lines on homepage case cards. */

.highlight__summary {
  color: var(--text-primary);
}

.highlight__proof {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Credentials section wraps the affiliations carousel outside the hero */

.section--credentials .hero-affiliations {
  margin-top: 40px;
}

/* Analyst workspace panel (Platform): the one dark graphite product
   section. Synthetic example values only - labeled in the markup. */

.workspace-panel {
  margin: 0;
  padding: 0;
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-dark);
  color: var(--text-light);
  overflow: hidden;
}

.workspace-panel__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 18px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-panel__title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workspace-panel__badge {
  padding: 4px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft-on-dark);
}

.workspace-panel__grid {
  /* 1 / 2 / 3 explicit columns: twelve fields always fill complete rows, so
     the seam background never shows through an empty cell. */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.07);
}

@media (min-width: 481px) {
  .workspace-panel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .workspace-panel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.workspace-panel__field {
  padding: 18px 26px;
  background: rgba(20, 20, 22, 0.92);
}

.workspace-panel__field--wide {
  grid-column: 1 / -1;
}

@media (min-width: 1100px) {
  .workspace-panel__field--row-wide {
    grid-column: 1 / -1;
  }
}

.workspace-panel__field dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft-on-dark);
}

.workspace-panel__field dd {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-light);
}

.workspace-panel__note {
  margin: 0;
  padding: 14px 26px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-soft-on-dark);
}

.page-main .workspace-panel {
  margin-top: clamp(24px, 4vw, 40px);
}

/* Evidence-trail chain (Evidence page): source to review, one line */

.trail-chain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1100px) {
  .trail-chain--agent-run {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .trail-chain--agent-run > .trail-chain__step {
    grid-column: span 2;
  }

  .trail-chain--agent-run > .trail-chain__step:nth-child(5) {
    grid-column: 2 / span 2;
  }

  .trail-chain--agent-run > .trail-chain__step:nth-child(4)::after {
    content: none;
  }

  .trail-chain__step:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    top: 24px;
    right: -15px;
    color: var(--text-muted);
    font-size: 0.85rem;
  }

  .trail-chain--evidence > .trail-chain__step:nth-child(3)::after {
    content: none;
  }
}

.trail-chain__step {
  position: relative;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(9, 9, 9, 0.16);
  border-top: 2px solid rgba(9, 9, 9, 0.78);
  border-radius: var(--radius-sm);
}

.trail-chain__step--review {
  background: rgba(9, 9, 9, 0.05);
  border-top-color: #0f0f0f;
}

.trail-chain__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.trail-chain__detail {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.page-main .trail-chain {
  margin-top: clamp(24px, 4vw, 40px);
}

/* About: scannable programs & affiliations list (local logos only) */

.affiliation-heading {
  margin: clamp(28px, 4vw, 44px) 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.affiliation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .affiliation-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .affiliation-list > .affiliation-list__item:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    width: calc((100% - 28px) / 3);
    justify-self: center;
  }
}

.affiliation-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(9, 9, 9, 0.16);
  border-top: 2px solid rgba(9, 9, 9, 0.78);
  border-radius: var(--radius-sm);
}

.affiliation-list__logo {
  display: block;
  margin-bottom: 8px;
}

.affiliation-list__logo img {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.affiliation-list__item--sewp .affiliation-list__logo img {
  height: 42px;
}

@media (min-width: 900px) {
  .affiliation-list__item--sewp .affiliation-list__logo {
    position: relative;
    top: -5px;
  }

  .affiliation-list__item--sewp .affiliation-list__name,
  .affiliation-list__item--sewp .affiliation-list__role {
    position: relative;
    top: -10px;
  }
}

.affiliation-list__name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.affiliation-list__role {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Compact CTA for internal pages */

.section--cta-compact .cta {
  padding: clamp(36px, 6vw, 56px);
}

.section--cta-compact .cta p {
  margin: 16px auto 26px;
}

.uc-list {
  display: grid;
  gap: 22px;
}

.uc-card__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.uc-card__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 22px;
  margin: 0;
}

.uc-card__fields dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.uc-card__fields dd {
  margin: 4px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.case-replay-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.case-replay {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 480px;
  scroll-margin-top: 110px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(145, 159, 170, 0.11), transparent 68%),
    rgba(255, 255, 255, 0.72);
}

.uc-card.case-replay {
  padding: clamp(24px, 2.2vw, 30px);
}

.case-replay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 54px;
  height: 2px;
  transform: translateX(-50%);
  background: #15181b;
  box-shadow: 0 0 20px rgba(65, 78, 88, 0.2);
}

.case-replay__header {
  min-width: 0;
}

.case-replay__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.case-replay__number,
.case-replay__review-state {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-replay__number {
  color: var(--text-primary);
}

.case-replay__review-state {
  color: var(--text-muted);
}

.case-replay__meta,
.highlight__meta,
.highlight__window {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-replay .uc-card__title {
  margin: 0;
  min-height: 3.25em;
  font-size: clamp(1.15rem, 1.55vw, 1.48rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: none;
  text-wrap: balance;
}

.case-replay__context {
  margin: 12px 0 0;
  min-height: 2.7em;
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-replay__finding {
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(9, 9, 9, 0.1);
  border-bottom: 1px solid rgba(9, 9, 9, 0.1);
}

.case-replay__label,
.case-replay__limitation span {
  display: block;
  margin: 0 0 8px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-replay__finding > p:last-child {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.case-replay__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  background: rgba(9, 9, 9, 0.1);
  border: 1px solid rgba(9, 9, 9, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.case-replay__proof li {
  min-width: 0;
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.82);
}

.case-replay__proof strong,
.case-replay__proof span {
  display: block;
}

.case-replay__proof strong {
  font-size: 0.76rem;
  color: var(--text-primary);
}

.case-replay__proof span {
  margin-top: 3px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-replay__limitation {
  margin: 14px 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.case-replay__limitation span {
  margin-bottom: 5px;
}

.case-source-disclosure {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(9, 9, 9, 0.12);
}

.case-source-disclosure summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-source-disclosure ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  text-align: left;
}

.case-source-disclosure li {
  font-size: 0.8rem;
  line-height: 1.45;
}

.case-source-disclosure a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-source-disclosure span {
  display: block;
  color: var(--text-muted);
}

.highlight__link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .case-replay-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin-inline: auto;
  }

  .case-replay {
    min-height: 0;
  }

  .case-replay .uc-card__title,
  .case-replay__context {
    min-height: 0;
  }
}

.cta__notice {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-soft);
  text-align: center;
}

/* AUTOSINT V2 visual system ------------------------------------------ */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--accent);
  color: #f4f4f4;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: #ffffff;
  outline: 2px solid #0f0f0f;
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid #0f0f0f;
  outline-offset: 3px;
}

#main-content {
  scroll-margin-top: calc(var(--grid-size) + 12px);
}

.nav__toggle {
  min-width: 44px;
  min-height: 44px;
}

.contact-pill {
  min-height: 44px;
}

.hero-affiliations__nav {
  min-width: 44px;
  min-height: 44px;
}

/* Evidence-system schematic (replaces the former homepage video) ----- */

.evidence-flow {
  grid-area: media;
  margin: 0;
  width: 100%;
  max-width: 720px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.evidence-flow__svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: inherit;
}

.evidence-flow__caption {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(9, 9, 9, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.evidence-flow__obs {
  fill: rgba(9, 9, 9, 0.28);
}

.evidence-flow__obs--live {
  fill: #0f0f0f;
}

.evidence-flow__ring {
  fill: none;
  stroke: rgba(9, 9, 9, 0.45);
  stroke-width: 1;
}

.evidence-flow__links path {
  fill: none;
  stroke: rgba(9, 9, 9, 0.35);
  stroke-width: 1.1;
}

.evidence-flow__trail {
  fill: none;
  stroke: rgba(9, 9, 9, 0.5);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 3 6;
}

.evidence-flow__tick {
  stroke: rgba(9, 9, 9, 0.3);
  stroke-width: 1;
}

.evidence-flow__trailnode {
  fill: rgba(9, 9, 9, 0.55);
}

.evidence-flow__traillabel {
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  fill: var(--text-muted);
  text-anchor: middle;
}

.evidence-flow__spine path {
  fill: none;
  stroke: rgba(9, 9, 9, 0.6);
  stroke-width: 1.5;
}

.evidence-flow__spine .evidence-flow__chevron {
  stroke-width: 1.3;
}

.evidence-flow__node {
  fill: rgba(255, 255, 255, 0.85);
  stroke: #151515;
  stroke-width: 1.5;
}

.evidence-flow__nodedot {
  fill: #151515;
}

.evidence-flow__signal {
  fill: none;
  stroke: #151515;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.evidence-flow__stage {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--text-primary);
}

.evidence-flow__stage--gate {
  font-size: 15px;
}

.evidence-flow__note {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  fill: var(--text-soft);
}

.evidence-flow__gatebox {
  fill: rgba(255, 255, 255, 0.9);
  stroke: #0f0f0f;
  stroke-width: 1.6;
}

.evidence-flow__person {
  fill: none;
  stroke: #0f0f0f;
  stroke-width: 1.5;
}

.evidence-flow__pulse {
  fill: none;
  stroke: rgba(9, 9, 9, 0.75);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 22 422;
  stroke-dashoffset: 444;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .evidence-flow[data-motion-state="active"] .evidence-flow__pulse {
    opacity: 1;
    animation: evidencePulseFlow 7s linear infinite;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live) {
    --observation-fade-duration: 9.8s;
    --observation-fade-delay: -1.2s;
    --observation-peak-opacity: 0.92;
    transform-box: fill-box;
    transform-origin: center;
    animation: evidenceObservationFade var(--observation-fade-duration) linear var(--observation-fade-delay) infinite;
    will-change: opacity, transform;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(2) {
    --observation-fade-duration: 12.6s;
    --observation-fade-delay: -8.4s;
    --observation-peak-opacity: 0.74;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(3) {
    --observation-fade-duration: 10.9s;
    --observation-fade-delay: -5.7s;
    --observation-peak-opacity: 0.84;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(4) {
    --observation-fade-duration: 13.4s;
    --observation-fade-delay: -2.9s;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(5) {
    --observation-fade-duration: 9.2s;
    --observation-fade-delay: -6.8s;
    --observation-peak-opacity: 0.78;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(6) {
    --observation-fade-duration: 11.7s;
    --observation-fade-delay: -0.6s;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(7) {
    --observation-fade-duration: 14.1s;
    --observation-fade-delay: -10.3s;
    --observation-peak-opacity: 0.72;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(8) {
    --observation-fade-duration: 10.1s;
    --observation-fade-delay: -4.4s;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(9) {
    --observation-fade-duration: 12.9s;
    --observation-fade-delay: -7.6s;
    --observation-peak-opacity: 0.8;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(10) {
    --observation-fade-duration: 9.6s;
    --observation-fade-delay: -3.2s;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs:not(.evidence-flow__obs--live):nth-of-type(11) {
    --observation-fade-duration: 13.7s;
    --observation-fade-delay: -11.1s;
    --observation-peak-opacity: 0.76;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__obs--live {
    animation: evidenceObsPulse 3.8s ease-in-out infinite alternate;
  }

  .evidence-flow[data-motion-state="active"] .evidence-flow__trail {
    animation: evidenceTrailDrift 9s linear infinite;
  }
}

@keyframes evidencePulseFlow {
  from {
    stroke-dashoffset: 444;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes evidenceObsPulse {
  from {
    fill-opacity: 0.55;
  }
  to {
    fill-opacity: 1;
  }
}

@keyframes evidenceObservationFade {
  0%,
  10% {
    opacity: 0.06;
    transform: scale(0.86);
  }

  22%,
  34% {
    opacity: var(--observation-peak-opacity);
    transform: scale(1);
  }

  100% {
    opacity: 0.04;
    transform: scale(0.9);
  }
}

@keyframes evidenceTrailDrift {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -72;
  }
}

@media (max-width: 900px) {
  .evidence-flow {
    justify-self: center;
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .section--about .section__header {
    margin: 0 0 20px;
  }

  .section--about .section__header h2 {
    font-size: 1.6rem;
    max-width: none;
    margin: 0 0 6px;
    line-height: 1.05;
    letter-spacing: -0.01em;
  }

  .section--about .section__tagline {
    margin: 0 0 8px;
    max-width: none;
  }

  .section--about .section__lead {
    max-width: none;
    margin: 0 0 16px;
    font-size: 1rem;
  }
}

@media (max-width: 960px) {
  .hero-title {
    font-size: clamp(1.7rem, 4.8vw, 2.4rem);
    line-height: 1.12;
  }

  .hero-title__segment {
    white-space: normal;
    text-wrap: balance;
  }

  .nav__links a {
    padding: 10px 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    line-height: 1.14;
  }
}

#main-content:focus,
#main-content:focus-visible {
  outline: none;
}

/* AUTOSINT V2 - Gate 5B layer ---------------------------------------- */

/* Mobile evidence-flow: readable HTML stage list replaces the scaled SVG */

.evidence-flow__steps {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  position: relative;
}

.evidence-flow__steps::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: 16px;
  border-left: 2px dashed rgba(9, 9, 9, 0.35);
}

.evidence-flow__step {
  position: relative;
  padding: 10px 0 10px 4px;
}

.evidence-flow__step::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4f4f4;
  border: 2px solid #151515;
}

.evidence-flow__step-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.evidence-flow__step-note {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.evidence-flow__step--gate {
  margin: 8px 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #0f0f0f;
  border-radius: var(--radius-sm);
}

.evidence-flow__step--gate::before {
  left: -38px;
  background: #151515;
}

.evidence-flow__step--out .evidence-flow__step-note {
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .evidence-flow__svg {
    display: none;
  }

  .evidence-flow__steps {
    display: block;
  }
}

/* Inner pages: one editorial system ---------------------------------- */

.page-main {
  gap: 0;
}

.subpage-hero {
  padding: clamp(96px, 16vh, 136px) 0 clamp(32px, 6vh, 52px);
  text-align: left;
}

.subpage-hero__eyebrow {
  margin: 0 0 20px;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.subpage-hero__title {
  margin: 0 0 20px;
  max-width: 22ch;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
}

.subpage-hero__lead {
  margin: 0 0 14px;
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
}

.subpage-hero__lead--note {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.subpage-hero .container::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: clamp(28px, 5vh, 44px);
  background: rgba(9, 9, 9, 0.2);
}

.page-main .section {
  padding: clamp(30px, 4.5vw, 48px) 0;
}

.page-main .section > .container::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: clamp(20px, 4vw, 40px);
  background: rgba(9, 9, 9, 0.14);
}

/* The principles diagram was sized for the homepage; on internal pages
   trim its reserved height so it does not open a large empty field. */
.page-main .deliverables-diagram {
  margin-top: 0;
  padding: clamp(36px, 5vw, 72px) 0;
  min-height: clamp(320px, 34vw, 430px);
}

.page-main .section__header {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  column-gap: clamp(28px, 5vw, 72px);
  align-items: start;
  max-width: none;
  margin: 0;
  text-align: left;
}

.page-main .section__header .section__eyebrow {
  grid-column: 1;
  grid-row: 1 / span 9;
  margin: 8px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--text-muted);
}

.page-main .section__header h2,
.page-main .section__header .section__lead,
.page-main .section__header .section__footnote {
  grid-column: 2;
}

.page-main .section__header h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.06;
}

.page-main .section__headline-lock {
  white-space: normal;
}

.page-main .section__header .section__lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 1.06rem;
}

.page-main .section__header .section__footnote {
  margin: 18px 0 0;
  max-width: 62ch;
  text-transform: none;
  line-height: 1.6;
}

.page-main .content-grid {
  margin-top: clamp(24px, 4vw, 40px);
}

.page-main .uc-list {
  margin-top: clamp(24px, 4vw, 40px);
}

.page-main .workflow-steps,
.page-main .highlight-grid {
  margin-top: clamp(24px, 4vw, 40px);
}

/* Use-case cards */

.uc-card {
  padding: clamp(24px, 3vw, 36px);
}

.uc-card__fields {
  margin-top: 14px;
}

.uc-card__fields div {
  padding-top: 10px;
  border-top: 1px solid rgba(9, 9, 9, 0.08);
}

.uc-list {
  gap: 28px;
}

@media (max-width: 700px) {
  .page-main .section__header {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-main .section__header .section__eyebrow {
    grid-row: auto;
    margin: 0 0 14px;
  }

  .page-main .section__header h2,
  .page-main .section__header .section__lead,
  .page-main .section__header .section__footnote {
    grid-column: 1;
  }

  .subpage-hero {
    padding-top: calc(84px + env(safe-area-inset-top, 0px));
  }
}

/* Touch-target floor for remaining controls -------------------------- */

.nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.btn.btn--compact {
  min-height: 44px;
}

.contact-expand__grid input,
.contact-expand__grid textarea {
  min-height: 44px;
}

.section__footnote a,
.content-card__body a {
  display: inline-block;
  padding-block: 12px;
  margin-block: -12px;
}

.subpage-hero + .section > .container::before {
  content: none;
}

/* ==== Mobile responsive closure ====================================== */
/* Phone-first reflow pass. Desktop (>=768px) composition is unchanged. */

/* Strict heading-box criterion: a heading's layout box must encompass
   its content (scrollWidth <= clientWidth) at every viewport. The
   operational-problem h2 holds an unbreakable word slightly wider than
   its grid column at mid widths; fit-content lets the box grow into the
   adjacent column gap exactly where the text already rendered. */
.section--about .section__header h2 {
  width: fit-content;
  max-width: none;
}

/* The toggle is displayed as inline-flex, which laid its three bars out
   in a row - reading as one long minus. Stack them into a real
   three-line menu glyph. */
@media (max-width: 960px) {
  .nav__toggle {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* Headings: release the desktop line-locks below 640px so headings wrap
   normally and can never clip; balance wrapping where supported. */
@media (max-width: 640px) {
  .section__headline-lock {
    display: inline;
    white-space: normal;
  }

  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
  }

  .section__header h2,
  .subpage-hero__title {
    text-wrap: balance;
    max-width: calc(100vw - 32px);
  }

  /* Card prose readability on phones (desktop typography untouched) */
  .content-card__body {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .workflow-steps__description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .uc-card__fields dd {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .workspace-panel__field dd {
    font-size: 0.95rem;
  }

  .trail-chain__detail {
    font-size: 0.88rem;
  }

  .section--work .highlight p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Trim reserved heights on phones */
  .page-main .deliverables-diagram {
    padding: 28px 0;
    min-height: 280px;
  }
}

/* Operational problem: copy above a full-width schematic on phones */
@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "text"
      "media";
  }

  .evidence-flow {
    max-width: none;
    justify-self: stretch;
  }

  /* Use-case cards: Challenge / How DAGR Helps / Output stack vertically */
  .uc-card__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Narrow-tablet band: deliberate two-column grids. Incomplete last rows
   are centered at equal width by the RC2 composition block at the end of
   this file - last cards are never stretched to fill a row. */
@media (min-width: 481px) and (max-width: 767px) {
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* Phones: single-column reading flow; compact label grids stay 2-up */
@media (max-width: 480px) {
  .workflow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .trail-chain {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .source-domains__item {
    padding: 14px 12px;
    font-size: 0.72rem;
  }
}

/* Homepage evidence principles: deliberate 2x2 in the band where two
   prose columns stay readable; at 430px and below the general one-column
   phone rule applies (measured: two columns at 390px drop prose to
   ~111px, under the readable floor). */
@media (min-width: 431px) and (max-width: 480px) {
  .section--evidence .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section--evidence .content-card {
    padding: 16px 14px;
  }

  .section--evidence .content-card__title {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
  }

  .section--evidence .content-card__body {
    font-size: 0.84rem;
    line-height: 1.5;
  }
}

/* Hero CTAs: stacked, nearly full width, tight gap */
@media (max-width: 430px) {
  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    min-width: 0;
    width: 100%;
  }
}

/* About affiliations: two columns on phones, one under 420px */
@media (max-width: 899px) {
  .affiliation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliation-list > .affiliation-list__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 14px) / 2);
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .affiliation-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .affiliation-list > .affiliation-list__item:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}

/* Footer: vertical groups - company, badges, 2x2 nav, copyright.
   (The base three-column .footer-grid rule sits later in the file than
   the legacy 700px override, so the single-column layout must be
   declared here, after it, together with grid-position resets.) */
@media (max-width: 700px) {
  .site-footer {
    padding: 36px 0 44px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-grid > .footer-col:first-child,
  .footer-certs--center,
  .footer-meta {
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    align-self: auto;
  }

  .footer-grid > .footer-col:first-child {
    order: 1;
    align-items: center;
    text-align: center;
  }

  .footer-certs--center {
    order: 2;
    margin: 0 auto;
  }

  .footer-meta {
    order: 3;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-meta-year {
    align-self: center;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    column-gap: 28px;
    row-gap: 0;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-line {
    line-height: 1.6;
  }
}

/* Page rhythm refinement --------------------------------------------- */

/* Platform keeps its full information density, but shorter section and
   grid intervals reduce the repeated-card cadence. */
.page-platform .page-main > .section:not(.section--cta-compact) {
  padding: clamp(26px, 3.6vw, 40px) 0;
}

.page-platform .page-main .content-grid,
.page-platform .page-main .workflow-steps,
.page-platform .page-main .source-domains,
.page-platform .page-main .workspace-panel {
  margin-top: clamp(20px, 3vw, 32px);
}

.page-platform .section--agent-orchestration #policy-approval-gate,
.page-platform .section--agent-orchestration #human-release-gate {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.72), rgba(9, 9, 9, 0.035));
  border-top-color: rgba(9, 9, 9, 0.94);
}

/* Text-only boundaries act as centered pauses between denser card systems. */
@media (min-width: 900px) {
  .page-platform .section--mcp-boundary .section__header,
  .page-platform .section--deployment .section__header {
    display: block;
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
  }

  .page-platform .section--mcp-boundary .section__eyebrow,
  .page-platform .section--deployment .section__eyebrow {
    margin: 0 0 16px;
  }

  .page-platform .section--mcp-boundary .section__lead,
  .page-platform .section--mcp-boundary .section__footnote,
  .page-platform .section--deployment .section__lead,
  .page-platform .section--deployment .section__footnote {
    margin-inline: auto;
  }
}

/* Evidence foundations form one editorial unit instead of three sparse,
   disconnected text bands. */
.evidence-foundations .section:first-child > .container::before {
  content: none;
}

@media (min-width: 1000px) {
  .evidence-foundations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(100% - var(--grid-size)), var(--max-width));
    margin: 0 auto;
    border-top: 1px solid rgba(9, 9, 9, 0.18);
    border-bottom: 1px solid rgba(9, 9, 9, 0.18);
  }

  .page-evidence .evidence-foundations .section {
    min-width: 0;
    padding: 0;
  }

  .page-evidence .evidence-foundations .section + .section {
    border-left: 1px solid rgba(9, 9, 9, 0.14);
  }

  .page-evidence .evidence-foundations .section > .container {
    width: 100%;
    height: 100%;
  }

  .page-evidence .evidence-foundations .section > .container::before {
    content: none;
  }

  .page-evidence .evidence-foundations .section__header {
    display: block;
    height: 100%;
    padding: clamp(28px, 3vw, 40px);
    margin: 0;
    text-align: left;
  }

  .page-evidence .evidence-foundations .section__header h2 {
    max-width: none;
    font-size: clamp(1.35rem, 2vw, 1.78rem);
    line-height: 1.08;
  }

  .page-evidence .evidence-foundations .section__lead {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .page-evidence #human-review .section__header {
    display: block;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .page-evidence #human-review .section__lead {
    margin-inline: auto;
  }
}

/* Seven affiliation cards read as a balanced 4 + 3 composition. */
@media (min-width: 1100px) {
  .page-about .affiliation-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .page-about .affiliation-list > .affiliation-list__item {
    grid-column: span 2;
  }

  .page-about .affiliation-list > .affiliation-list__item:nth-child(5) {
    grid-column: 2 / span 2;
  }

  .page-about .affiliation-list > .affiliation-list__item:last-child:nth-child(3n + 1) {
    grid-column: span 2;
    width: auto;
    justify-self: stretch;
  }
}

@media (max-width: 700px) {
  .page-platform .page-main > .section:not(.section--cta-compact) {
    padding: 24px 0;
  }

  .page-platform .content-grid,
  .page-platform .workflow-steps,
  .page-platform .source-domains {
    gap: 14px;
  }

  .page-platform .content-card,
  .page-platform .workflow-steps__item {
    padding: 20px 18px;
  }

  .page-platform .section__footnote {
    margin-top: 18px;
  }

  .page-evidence .section {
    padding: 26px 0;
  }

  .page-evidence .section--evidence-foundation {
    padding: 24px 0;
  }

  html.page-home .section--about {
    padding-top: 20px;
    padding-bottom: 38px;
  }

  html.page-home .section--workflow-overview,
  html.page-home .section--evidence {
    padding-block: 40px;
  }

  html.page-home .section--credentials {
    padding-block: 36px;
  }

  html.page-home .workflow-steps__item,
  html.page-home .section--evidence .content-card {
    padding: 20px 18px;
  }

  html.page-home .workflow-steps,
  html.page-home .section--evidence .content-grid {
    gap: 14px;
  }

  html.page-home .section--credentials .hero-affiliations {
    margin-top: 28px;
  }

  html.page-home .section--cta {
    padding-block: 32px;
  }

  html.page-home .section--cta .cta {
    padding: 28px 0 36px;
  }
}

/* ==== RC2 visual polish: row composition + card reveal ============== */
/* Contract: center incomplete CARD ROWS (equal-width last rows, never a
   stretched last card); one shared child reveal driven ONLY by the
   existing parent [data-animate].is-visible IntersectionObserver;
   restrained desktop-only hover. Excluded by scoping: .highlight cards,
   .workspace-panel, .deliverables/beam geometry, .evidence-flow, hero. */

/* -- Platform 7-step workflow: medium 2+2+2+1, desktop 4+3, both with a
      centered equal-width last row (4-col / 8-col grids, span 2). */
@media (min-width: 481px) and (max-width: 1099px) {
  .workflow-steps.workflow-steps--full {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workflow-steps.workflow-steps--full > .workflow-steps__item {
    grid-column: span 2;
  }

  .workflow-steps.workflow-steps--full > .workflow-steps__item:nth-child(7) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 1100px) {
  .workflow-steps.workflow-steps--full {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .workflow-steps.workflow-steps--full > .workflow-steps__item {
    grid-column: span 2;
  }

  .workflow-steps.workflow-steps--full > .workflow-steps__item:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

/* -- Homepage four-step overview and the four evidence-promise cards:
      2x2 in the intermediate band that otherwise lays out 3+1. */
@media (min-width: 768px) and (max-width: 1099px) {
  .workflow-steps.workflow-steps--overview,
  .section--evidence .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* -- Platform five capabilities: medium 2+2+1 with a centered
      equal-width last card (wide 3+2 centering already exists). */
@media (min-width: 481px) and (max-width: 960px) {
  .content-grid.content-grid--five {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .content-grid.content-grid--five > * {
    grid-column: span 2;
  }

  .content-grid.content-grid--five > *:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

/* -- Evidence seven-step run: medium 2+2+2+1 with a centered equal-width
      last step (wide 4+3 and phone single column). */
@media (min-width: 481px) and (max-width: 1099px) {
  .trail-chain--agent-run {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trail-chain--agent-run > .trail-chain__step {
    grid-column: span 2;
  }

  .trail-chain--agent-run > .trail-chain__step:nth-child(7) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 481px) and (max-width: 1099px) {
  .content-grid.content-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .content-grid.content-grid--three > * {
    grid-column: span 2;
  }

  .content-grid.content-grid--three > *:nth-child(3) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 1100px) {
  .content-grid.content-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Six evidence-trail steps use a stable 3 x 2 composition once the viewport
   can support it. This rule follows the base auto-fit declaration. */
@media (min-width: 768px) {
  .trail-chain.trail-chain--evidence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .section--evidence .content-grid.content-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* -- Shared child reveal. Parents already carry [data-animate] and gain
      .is-visible once from the existing observer; children fade/rise
      once with a short monotonic stagger (cap 300ms). animation-name
      stays none - no keyframes, no loops. Border/box-shadow transition
      with zero delay doubles as the restrained hover channel.
      PROGRESSIVE ENHANCEMENT: the hidden state exists only under
      html.card-motion-ready, which setupRevealAnimations() adds solely
      when it is actually driving reveals - no JS or no
      IntersectionObserver leaves every card fully visible. */
.card-motion-ready .workflow-steps[data-animate] > .workflow-steps__item,
.card-motion-ready .content-grid[data-animate] > .content-card,
.card-motion-ready .source-domains[data-animate] > .source-domains__item,
.card-motion-ready .trail-chain[data-animate] > .trail-chain__step,
.card-motion-ready .uc-list[data-animate] > .uc-card,
.card-motion-ready .affiliation-list[data-animate] > .affiliation-list__item {
  opacity: 0;
  transform: translateY(9px);
  animation-name: none;
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 200ms ease,
    box-shadow 200ms ease;
  transition-delay: var(--card-stagger, 0ms), var(--card-stagger, 0ms), 0ms, 0ms;
}

.card-motion-ready .workflow-steps[data-animate].is-visible > .workflow-steps__item,
.card-motion-ready .content-grid[data-animate].is-visible > .content-card,
.card-motion-ready .source-domains[data-animate].is-visible > .source-domains__item,
.card-motion-ready .trail-chain[data-animate].is-visible > .trail-chain__step,
.card-motion-ready .uc-list[data-animate].is-visible > .uc-card,
.card-motion-ready .affiliation-list[data-animate].is-visible > .affiliation-list__item {
  opacity: 1;
  transform: translateY(0);
}

.card-motion-ready .workflow-steps[data-animate] > :nth-child(2),
.card-motion-ready .content-grid[data-animate] > :nth-child(2),
.card-motion-ready .source-domains[data-animate] > :nth-child(2),
.card-motion-ready .trail-chain[data-animate] > :nth-child(2),
.card-motion-ready .uc-list[data-animate] > :nth-child(2),
.card-motion-ready .affiliation-list[data-animate] > :nth-child(2) {
  --card-stagger: 50ms;
}

.card-motion-ready .workflow-steps[data-animate] > :nth-child(3),
.card-motion-ready .content-grid[data-animate] > :nth-child(3),
.card-motion-ready .source-domains[data-animate] > :nth-child(3),
.card-motion-ready .trail-chain[data-animate] > :nth-child(3),
.card-motion-ready .uc-list[data-animate] > :nth-child(3),
.card-motion-ready .affiliation-list[data-animate] > :nth-child(3) {
  --card-stagger: 100ms;
}

.card-motion-ready .workflow-steps[data-animate] > :nth-child(4),
.card-motion-ready .content-grid[data-animate] > :nth-child(4),
.card-motion-ready .source-domains[data-animate] > :nth-child(4),
.card-motion-ready .trail-chain[data-animate] > :nth-child(4),
.card-motion-ready .uc-list[data-animate] > :nth-child(4),
.card-motion-ready .affiliation-list[data-animate] > :nth-child(4) {
  --card-stagger: 150ms;
}

.card-motion-ready .workflow-steps[data-animate] > :nth-child(5),
.card-motion-ready .content-grid[data-animate] > :nth-child(5),
.card-motion-ready .source-domains[data-animate] > :nth-child(5),
.card-motion-ready .trail-chain[data-animate] > :nth-child(5),
.card-motion-ready .uc-list[data-animate] > :nth-child(5),
.card-motion-ready .affiliation-list[data-animate] > :nth-child(5) {
  --card-stagger: 200ms;
}

.card-motion-ready .workflow-steps[data-animate] > :nth-child(6),
.card-motion-ready .content-grid[data-animate] > :nth-child(6),
.card-motion-ready .source-domains[data-animate] > :nth-child(6),
.card-motion-ready .trail-chain[data-animate] > :nth-child(6),
.card-motion-ready .uc-list[data-animate] > :nth-child(6),
.card-motion-ready .affiliation-list[data-animate] > :nth-child(6) {
  --card-stagger: 250ms;
}

.card-motion-ready .workflow-steps[data-animate] > :nth-child(n + 7),
.card-motion-ready .content-grid[data-animate] > :nth-child(n + 7),
.card-motion-ready .source-domains[data-animate] > :nth-child(n + 7),
.card-motion-ready .trail-chain[data-animate] > :nth-child(n + 7),
.card-motion-ready .uc-list[data-animate] > :nth-child(n + 7),
.card-motion-ready .affiliation-list[data-animate] > :nth-child(n + 7) {
  --card-stagger: 300ms;
}

/* -- Restrained hover: fine-pointer devices only. Border/shadow ink
      only - no transform, so touch hover-transform is absent by
      construction. Use-case cards stay noninteractive; source-domain
      labels and affiliations get border emphasis only. */
@media (hover: hover) and (pointer: fine) {
  .workflow-steps[data-animate] > .workflow-steps__item:hover,
  .content-grid[data-animate] > .content-card:hover {
    border-color: rgba(9, 9, 9, 0.34);
    box-shadow: 0 10px 26px rgba(9, 9, 9, 0.08);
  }

  .source-domains[data-animate] > .source-domains__item:hover,
  .trail-chain[data-animate] > .trail-chain__step:hover,
  .affiliation-list[data-animate] > .affiliation-list__item:hover {
    border-color: rgba(9, 9, 9, 0.34);
  }
}

/* -- Reduced motion: cards render settled, no transitions, no delay.
      (Second safety belt - the script also never adds the enhancement
      class under reduced motion; same-prefix selectors later in the
      cascade guarantee the override either way.) */
@media (prefers-reduced-motion: reduce) {
  .card-motion-ready .workflow-steps[data-animate] > .workflow-steps__item,
  .card-motion-ready .content-grid[data-animate] > .content-card,
  .card-motion-ready .source-domains[data-animate] > .source-domains__item,
  .card-motion-ready .trail-chain[data-animate] > .trail-chain__step,
  .card-motion-ready .uc-list[data-animate] > .uc-card,
  .card-motion-ready .affiliation-list[data-animate] > .affiliation-list__item {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }
}
