/* Herozion Agent  cinematic landing built from the provided scene renders */

.agent-page {
  --ag-ink: #f5f5f7;
  --ag-muted: #86868b;
  --ag-blue: #2997ff;
  background: #010710;
  color: var(--ag-ink);
  overflow-x: clip;
}

.agent-page #navbar {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-page .nav-links a,
.agent-page .nav-more-details summary {
  color: #d2d2d7;
}

.ag-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ag-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e6e73;
}

.ag-grad {
  background: linear-gradient(90deg, #0071e3 0%, #64d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.05;
}

.ag-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 980px;
  background: #f5f5f7;
  color: #000 !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
}

.ag-btn-light:hover {
  background: #fff;
}

.ag-btn-nav,
.agent-page .nav-mobile > .ag-btn-light {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.ag-link-film {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ag-blue);
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
}

.ag-link-film i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
}

.ag-link-film i::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent currentColor;
}

.ag-shot {
  margin: 0;
}

.ag-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Hero ─────────────────────────────────────────── */
.ag-hero {
  /* Exact top-of-hero.jpg average (#010710)  was too light before, caused the seam */
  --ag-space: #010710;
  --ag-space-mid: #09162a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 108px 24px 0;
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 85%, rgba(30, 90, 150, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 30% at 75% 55%, rgba(50, 140, 220, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--ag-space) 0%, var(--ag-space) 55%, var(--ag-space-mid) 100%);
  overflow: hidden;
}

/* Same photo, blurred  carries the image’s blue trails into the upper zone */
.ag-hero::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: 18%;
  bottom: 20%;
  z-index: 0;
  background: url("/assets/agent/hero.jpg") center 40% / 115% auto no-repeat;
  filter: blur(56px) saturate(1.2) brightness(0.55);
  opacity: 0.75;
  pointer-events: none;
}

.ag-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(1, 7, 16, 0.72) 0%,
    rgba(1, 7, 16, 0.35) 40%,
    rgba(1, 7, 16, 0.1) 68%,
    rgba(1, 7, 16, 0) 100%
  );
  pointer-events: none;
}

.ag-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 920px;
  padding: 0 0 8px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.agent-page.is-ag-ready .ag-hero-copy {
  opacity: 1;
  transform: none;
}

.ag-hero-title {
  margin: 0 0 28px;
  font-size: clamp(44px, 7.4vw, 84px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.02;
}

.ag-shot--hero {
  position: relative;
  z-index: 1;
  width: 100vw;
  max-width: none;
  margin: auto 0 0; /* stick to bottom  no black strip under the photo */
  margin-left: calc(50% - 50vw);
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.ag-shot--hero img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1), transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
  /* Long soft fade into #010710 above  kills the rectangular edge */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 8%,
    rgba(0, 0, 0, 0.7) 18%,
    rgba(0, 0, 0, 0.95) 32%,
    #000 45%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 8%,
    rgba(0, 0, 0, 0.7) 18%,
    rgba(0, 0, 0, 0.95) 32%,
    #000 45%,
    #000 100%
  );
}

.agent-page.is-ag-ready .ag-shot--hero img {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.ag-script {
  position: absolute;
  right: 11%;
  top: 48%;
  z-index: 2;
  margin: 0;
  max-width: 10em;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  color: #fff;
  transform: rotate(-8deg);
  white-space: pre-line;
  pointer-events: none;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.85),
    0 2px 20px rgba(0, 0, 0, 0.7);
}

/* ── Face / capabilities ──────────────────────────── */
.ag-side {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  gap: 0;
  margin: 0;
  margin-top: -8px;
  padding: 0;
  background: #0a0e14;
  min-height: min(78vh, 640px);
}

.ag-shot--face {
  overflow: hidden;
  will-change: transform;
  margin: 0;
  line-height: 0;
  width: 100%;
  height: 100%;
  align-self: stretch;
}

.ag-shot--face img {
  width: 100%;
  height: 100%;
  min-height: min(78vh, 640px);
  object-fit: cover;
  object-position: 42% 48%;
  display: block;
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-side.is-ag-in .ag-shot--face img {
  transform: none;
}

.ag-side-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(28px, 5vw, 72px) 56px clamp(24px, 4vw, 48px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.ag-side.is-ag-in .ag-side-copy {
  opacity: 1;
  transform: none;
}

.ag-side-title {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.02;
}

.ag-side-lead {
  margin: 22px 0 0;
  max-width: 22em;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.45;
  color: var(--ag-muted);
}

.ag-caps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 40px 0 0;
  padding: 0;
  max-width: 420px;
}

.ag-caps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #d2d2d7;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-side.is-ag-in .ag-caps li {
  opacity: 1;
  transform: none;
}

.ag-side.is-ag-in .ag-caps li:nth-child(1) { transition-delay: 0.22s; }
.ag-side.is-ag-in .ag-caps li:nth-child(2) { transition-delay: 0.32s; }
.ag-side.is-ag-in .ag-caps li:nth-child(3) { transition-delay: 0.42s; }
.ag-side.is-ag-in .ag-caps li:nth-child(4) { transition-delay: 0.52s; }

.ag-caps svg {
  width: 28px;
  height: 28px;
  color: #d2d2d7;
}

/* ── Detect & Fix (full-bleed showcase) ───────────── */
.ag-fix {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 72px 0 0;
  background: #000;
  overflow: hidden;
}

.ag-fix-head {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 36px;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-fix.is-ag-in .ag-fix-head {
  opacity: 1;
  transform: none;
}

.ag-fix-lead {
  margin: 16px auto 0;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  color: var(--ag-muted);
}

.ag-fix-stage {
  width: 100%;
  max-width: none;
  perspective: 1800px;
  padding: 0;
  margin: 0;
}

.ag-terminal-spin {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, filter, opacity;
  opacity: 0;
}

.ag-fix.is-ag-spinning .ag-terminal-spin {
  animation: ag-terminal-orbit 2.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ag-fix.is-ag-landed .ag-terminal-spin {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

@keyframes ag-terminal-orbit {
  0% {
    opacity: 0;
    transform: rotateY(-360deg) rotateX(28deg) scale(0.42);
    filter: blur(12px);
  }
  14% {
    opacity: 1;
    filter: blur(0);
  }
  50% {
    transform: rotateY(-180deg) rotateX(10deg) scale(0.92);
  }
  78% {
    transform: rotateY(-22deg) rotateX(-6deg) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) rotateX(0deg) scale(1);
    filter: none;
  }
}

.ag-terminal-front {
  position: relative;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(1px);
}

.ag-terminal-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(41, 151, 255, 0.28), transparent 58%),
    #0b0d12;
  border: 1px solid rgba(41, 151, 255, 0.22);
  transform: rotateY(180deg) translateZ(1px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ag-terminal-back img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: brightness(1.15);
}

.ag-terminal-back span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(245, 245, 247, 0.88);
}

/* Verify row  full-bleed */
.ag-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 110px clamp(24px, 6vw, 72px);
  background: #000;
}

.ag-row-copy {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-row.is-ag-in .ag-row-copy {
  opacity: 1;
  transform: none;
}

.ag-row-visual {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ag-row.is-ag-in .ag-row-visual {
  opacity: 1;
}

.ag-row--verify {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 96px 0;
  gap: 0;
}

.ag-row--verify .ag-row-visual {
  padding: 0;
}

.ag-row--verify .ag-row-copy {
  padding: 48px clamp(28px, 5vw, 72px);
}

.ag-mini {
  display: block;
  margin-bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 600;
  color: #86868b;
}

.ag-mini--bars {
  width: 22px;
  height: 16px;
  font-size: 0;
  background:
    linear-gradient(#86868b, #86868b) 0 8px / 5px 8px no-repeat,
    linear-gradient(#86868b, #86868b) 8px 2px / 5px 14px no-repeat,
    linear-gradient(#86868b, #86868b) 16px 6px / 5px 10px no-repeat;
}

.ag-fix .ag-screen {
  position: relative;
  width: 100%;
  min-height: 0;
  border-radius: 0;
  background: #0a0a0c;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  overflow: hidden;
}

.ag-screen {
  position: relative;
  width: 100%;
  min-height: min(58vh, 520px);
  border-radius: 0;
  background: #111114;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  overflow: hidden;
}

.ag-screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: #1a1a1f;
}

.ag-screen-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3a3c;
}

.ag-screen-bar span:first-child { background: #ff5f57; }
.ag-screen-bar span:nth-child(2) { background: #febc2e; }
.ag-screen-bar span:nth-child(3) { background: #28c840; }

.ag-screen-title {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ag-demo {
  padding: 28px clamp(28px, 6vw, 80px) 40px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ag-demo-line--meta {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ff9f0a;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ag-demo-block {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ag-demo-after { display: none; }

.ag-demo-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ag-demo-tag--bad { color: #ff6b6b; }
.ag-demo-tag--good { color: #30d158; }

.ag-code--demo {
  margin: 0;
  padding: 0;
  font-size: clamp(14px, 1.55vw, 18px);
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}

.ag-code .gutter {
  display: inline-block;
  width: 2.4em;
  color: #48484a;
}

.ag-code .del { color: #ff6b6b; }
.ag-code .add { color: #30d158; }
.ag-code .dim { color: #636366; }

.ag-demo-prompt {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ag-demo-prompt p {
  margin: 0 0 14px;
  font-size: 15px;
  color: #f5f5f7;
  font-family: inherit;
}

.ag-demo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ag-demo-yes,
.ag-demo-no {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ag-demo-yes {
  background: #0071e3;
  color: #fff;
}

.ag-demo-no {
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1a6;
}

.ag-demo[data-step="3"] .ag-demo-yes {
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.45);
  transform: scale(1.04);
}

.ag-demo-done {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.22);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ag-demo-done p {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #30d158;
  font-family: inherit;
}

.ag-demo-done .ag-demo-recheck {
  margin-bottom: 0;
  color: #64d2ff;
  font-weight: 500;
}

/* Demo step reveals:
   1 = find bad line
   2 = show fix
   3 = ask accept
   4 = applied + verified */
.ag-demo[data-step="1"] .ag-demo-line--meta,
.ag-demo[data-step="1"] .ag-demo-before,
.ag-demo[data-step="2"] .ag-demo-line--meta,
.ag-demo[data-step="2"] .ag-demo-before,
.ag-demo[data-step="2"] .ag-demo-after,
.ag-demo[data-step="3"] .ag-demo-line--meta,
.ag-demo[data-step="3"] .ag-demo-before,
.ag-demo[data-step="3"] .ag-demo-after,
.ag-demo[data-step="3"] .ag-demo-prompt,
.ag-demo[data-step="4"] .ag-demo-line--meta,
.ag-demo[data-step="4"] .ag-demo-after,
.ag-demo[data-step="4"] .ag-demo-done {
  opacity: 1;
  transform: none;
}

.ag-demo[data-step="2"] .ag-demo-after,
.ag-demo[data-step="3"] .ag-demo-after,
.ag-demo[data-step="4"] .ag-demo-after {
  display: block;
}

.ag-demo[data-step="4"] .ag-demo-before,
.ag-demo[data-step="4"] .ag-demo-prompt {
  display: none;
}


/* ── Desk slice ───────────────────────────────────── */
.ag-bleed {
  background: #000;
  margin: 0;
}

.ag-shot--desk {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ag-shot--desk img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.04);
  transition: transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-bleed.is-ag-in .ag-shot--desk img {
  transform: none;
}

.ag-desk-copy {
  position: absolute;
  left: clamp(24px, 8vw, 120px);
  top: auto;
  bottom: 70%;
  transform: translateY(16px);
  z-index: 2;
  max-width: min(400px, 44%);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.ag-bleed.is-ag-in .ag-desk-copy {
  opacity: 1;
  transform: none;
}

.ag-desk-copy .ag-eyebrow {
  margin: 0 0 6px;
}

.ag-desk-title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.08;
  color: #f5f5f7;
}

/* ── Verify list ──────────────────────────────────── */
.ag-checks {
  list-style: none;
  margin: 0;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 72px);
  border-radius: 0;
  background: #111114;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: min(52vh, 480px);
  justify-content: center;
}

.ag-checks li {
  display: grid;
  grid-template-columns: 22px 1fr 72px;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-row--verify.is-ag-in .ag-checks li {
  opacity: 1;
  transform: none;
}

.ag-row--verify.is-ag-in .ag-checks li:nth-child(1) { transition-delay: 0.2s; }
.ag-row--verify.is-ag-in .ag-checks li:nth-child(2) { transition-delay: 0.32s; }
.ag-row--verify.is-ag-in .ag-checks li:nth-child(3) { transition-delay: 0.44s; }
.ag-row--verify.is-ag-in .ag-checks li:nth-child(4) { transition-delay: 0.56s; }

.ag-checks i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #30d158;
  position: relative;
}

.ag-checks i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #04210f;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ag-checks b {
  display: block;
  height: 3px;
  border-radius: 99px;
  background: #2c2c2e;
  position: relative;
  overflow: hidden;
}

.ag-checks b::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 78%;
  background: #3a3a3c;
}

.ag-checks li:nth-child(1) b::after { width: 94%; }
.ag-checks li:nth-child(2) b::after { width: 86%; }
.ag-checks li:nth-child(3) b::after { width: 72%; }
.ag-checks li:nth-child(4) b::after { width: 90%; }

/* ── Close / horizon ──────────────────────────────── */
.ag-close {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}

.ag-close-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
  pointer-events: none;
  transform: scale(1.08);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ag-close.is-ag-in .ag-close-bg {
  transform: none;
}

.ag-close-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 18vh 24px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s, transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.ag-close.is-ag-in .ag-close-copy {
  opacity: 1;
  transform: none;
}

.ag-close-title {
  margin: 0 0 28px;
  font-size: clamp(36px, 5.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.05;
}

.agent-page .footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .ag-hero {
    padding-top: 96px;
  }

  .ag-side,
  .ag-row,
  .ag-row--verify {
    grid-template-columns: 1fr;
  }

  .ag-row--verify {
    padding: 0;
  }

  .ag-row--verify .ag-checks {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 0;
  }

  .ag-row--verify .ag-row-copy {
    padding: 40px 24px 56px;
  }

  .ag-side {
    min-height: 0;
    gap: 0;
  }

  .ag-shot--face img {
    min-height: 42vh;
    height: 42vh;
  }

  .ag-side-copy {
    padding: 36px 24px 48px;
  }

  .ag-row-copy {
    padding: 0 4px 24px;
    text-align: left;
  }

  .ag-script {
    right: 4%;
    top: 52%;
    font-size: 16px;
  }

  .ag-desk-copy {
    left: 14px;
    top: auto;
    bottom: 66%;
    max-width: min(220px, 52%);
  }

  .ag-desk-title {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .ag-close-copy {
    padding-top: 12vh;
  }

  .ag-caps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-hero-copy,
  .agent-page.is-ag-ready .ag-hero-copy,
  .ag-shot--hero img,
  .agent-page.is-ag-ready .ag-shot--hero img,
  .ag-side-copy,
  .ag-side.is-ag-in .ag-side-copy,
  .ag-caps li,
  .ag-side.is-ag-in .ag-caps li,
  .ag-shot--face img,
  .ag-side.is-ag-in .ag-shot--face img,
  .ag-fix-head,
  .ag-fix.is-ag-in .ag-fix-head,
  .ag-terminal-spin,
  .ag-fix.is-ag-spinning .ag-terminal-spin,
  .ag-fix.is-ag-landed .ag-terminal-spin,
  .ag-row-copy,
  .ag-row.is-ag-in .ag-row-copy,
  .ag-row-visual,
  .ag-row.is-ag-in .ag-row-visual,
  .ag-shot--desk img,
  .ag-bleed.is-ag-in .ag-shot--desk img,
  .ag-desk-copy,
  .ag-bleed.is-ag-in .ag-desk-copy,
  .ag-checks li,
  .ag-row--verify.is-ag-in .ag-checks li,
  .ag-close-bg,
  .ag-close.is-ag-in .ag-close-bg,
  .ag-close-copy,
  .ag-close.is-ag-in .ag-close-copy {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }
}
