.agency-hero .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.2vw, 5.05rem);
}

.agency-hero .hero-copy h1 span {
  color: var(--gold);
}

.agency-graphic {
  background:
    radial-gradient(circle at 50% 50%, rgba(215, 182, 109, 0.14), transparent 34%),
    radial-gradient(circle at 20% 28%, rgba(99, 214, 198, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
    rgba(12, 16, 23, 0.78);
}

.agency-graphic .agent-core__glow {
  fill: url(#agencyGlow);
  opacity: 0.55;
  animation: agencyGlow 5.8s ease-in-out infinite;
}

.agency-graphic .boundary {
  fill: none;
  stroke: rgba(99, 214, 198, 0.42);
  stroke-width: 1.8;
  stroke-dasharray: 8 12;
  animation: agencyOrbit 12s linear infinite;
}

.agency-graphic .boundary--inner {
  stroke: rgba(215, 182, 109, 0.46);
  stroke-dasharray: 4 9;
  animation-direction: reverse;
  animation-duration: 9s;
}

.agency-graphic .agent-core__shape,
.agency-graphic .constraint-node circle,
.agency-graphic .chosen-edge rect {
  fill: rgba(9, 13, 18, 0.88);
  stroke: rgba(214, 199, 150, 0.66);
  stroke-width: 1.6;
}

.agency-graphic .agent-core__shape {
  fill: rgba(99, 214, 198, 0.1);
  stroke: rgba(99, 214, 198, 0.68);
}

.agency-graphic .constraint-node path,
.agency-graphic .chosen-edge path {
  fill: none;
  stroke: rgba(236, 232, 220, 0.72);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agency-line {
  fill: none;
  stroke: url(#agencyLine);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 12;
  opacity: 0.76;
  animation: agencyFlow 5.8s linear infinite;
}

.agency-line--b,
.agency-line--d {
  animation-duration: 7.2s;
}

.agency-line--c,
.agency-line--e {
  animation-duration: 6.6s;
  animation-direction: reverse;
}

.agency-line--f {
  stroke: rgba(215, 182, 109, 0.76);
  animation-duration: 4.8s;
}

.edge-particles circle {
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgba(215, 182, 109, 0.62));
  opacity: 0.68;
  animation: edgePulse 3.2s ease-in-out infinite;
}

.edge-particles circle:nth-child(2) {
  animation-delay: -0.45s;
}

.edge-particles circle:nth-child(3) {
  animation-delay: -0.9s;
}

.edge-particles circle:nth-child(4) {
  animation-delay: -1.35s;
}

.edge-particles circle:nth-child(5) {
  animation-delay: -1.8s;
}

.edge-particles circle:nth-child(6) {
  animation-delay: -2.25s;
}

.agency-graphic text {
  fill: rgba(236, 232, 220, 0.74);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-anchor: middle;
}

.agency-graphic .caption {
  fill: rgba(170, 164, 146, 0.78);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-anchor: start;
}

.agency-content .opening-note {
  color: rgba(236, 232, 220, 0.86);
}

.constraint-map,
.agency-dimensions {
  display: grid;
  gap: 1px;
  margin: 2rem 0;
  border: 1px solid rgba(214, 199, 150, 0.16);
  background: rgba(214, 199, 150, 0.14);
}

.constraint-map {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.agency-dimensions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.constraint-map section,
.agency-dimensions section,
.argument-steps,
.companion-block {
  background:
    linear-gradient(180deg, rgba(99, 214, 198, 0.045), transparent 54%),
    rgba(13, 16, 22, 0.78);
}

.constraint-map section,
.agency-dimensions section {
  padding: 1rem;
}

.constraint-map span,
.agency-dimensions span {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--cyan);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.constraint-map h3 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 750;
}

.constraint-map p,
.agency-dimensions p,
.argument-steps p,
.companion-block span {
  color: rgba(236, 232, 220, 0.78);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  line-height: 1.62;
}

.constraint-map p,
.agency-dimensions p {
  margin-bottom: 0;
}

.argument-steps,
.companion-block {
  margin: 2rem 0;
  border: 1px solid rgba(99, 214, 198, 0.18);
  padding: 1.2rem;
}

.argument-steps p {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
  margin: 0;
}

.argument-steps p + p {
  margin-top: 0.85rem;
}

.argument-steps span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.companion-block p {
  margin: 0 0 0.7rem;
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.companion-block span {
  display: block;
}

.companion-block span + span {
  margin-top: 0.55rem;
}

.companion-block a {
  color: var(--text);
  text-decoration-color: rgba(99, 214, 198, 0.42);
  text-underline-offset: 0.22em;
}

.companion-block a:hover,
.companion-block a:focus-visible {
  color: var(--gold);
  outline: none;
}

.agency-content blockquote {
  text-align: left;
}

@keyframes agencyGlow {
  50% {
    opacity: 0.82;
    transform: scale(1.04);
  }
}

@keyframes agencyOrbit {
  to {
    stroke-dashoffset: -80;
  }
}

@keyframes agencyFlow {
  to {
    stroke-dashoffset: -38;
  }
}

@keyframes edgePulse {
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@media (max-width: 1080px) {
  .constraint-map,
  .agency-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .agency-hero .hero-copy h1 {
    font-size: 2.55rem;
  }

  .constraint-map,
  .agency-dimensions,
  .argument-steps p {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agency-graphic *,
  .edge-particles circle {
    animation: none !important;
  }
}
