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

.cosmos-hero .hero-copy h1 span {
  color: var(--cyan);
}

.boundary-graphic {
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 214, 198, 0.13), transparent 36%),
    radial-gradient(circle at 72% 30%, rgba(215, 182, 109, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
    rgba(12, 16, 23, 0.78);
}

.boundary-graphic .boundary-core__glow {
  fill: url(#boundaryGlow);
  opacity: 0.58;
  animation: boundaryGlow 5.8s ease-in-out infinite;
}

.boundary-graphic .boundary-ring {
  fill: none;
  stroke: rgba(99, 214, 198, 0.42);
  stroke-width: 1.8;
  stroke-dasharray: 10 13;
  animation: boundaryOrbit 12s linear infinite;
}

.boundary-graphic .boundary-ring--inner {
  stroke: rgba(215, 182, 109, 0.48);
  stroke-dasharray: 4 10;
  animation-direction: reverse;
  animation-duration: 8.5s;
}

.boundary-graphic .defect-field,
.boundary-graphic .domain-node circle {
  fill: rgba(9, 13, 18, 0.88);
  stroke: rgba(214, 199, 150, 0.62);
  stroke-width: 1.6;
}

.boundary-graphic .defect-field {
  fill: rgba(99, 214, 198, 0.08);
  stroke: rgba(99, 214, 198, 0.7);
  stroke-dasharray: 6 8;
  animation: defectContainment 6s ease-in-out infinite;
}

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

.boundary-link {
  fill: none;
  stroke: url(#boundaryLine);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 12;
  opacity: 0.76;
  animation: boundaryFlow 5.4s linear infinite;
}

.boundary-link--b,
.boundary-link--d {
  animation-duration: 6.8s;
}

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

.test-orbit circle:nth-child(2) {
  animation-delay: -0.8s;
}

.test-orbit circle:nth-child(3) {
  animation-delay: -1.6s;
}

.test-orbit circle:nth-child(4) {
  animation-delay: -2.4s;
}

.boundary-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;
}

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

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

.domain-strip,
.falsifier-grid {
  display: grid;
  gap: 1px;
  margin: 2rem 0;
  border: 1px solid rgba(214, 199, 150, 0.16);
  background: rgba(214, 199, 150, 0.14);
}

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

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

.domain-strip section,
.falsifier-grid section,
.pattern-equation,
.companion-block {
  background:
    linear-gradient(180deg, rgba(99, 214, 198, 0.045), transparent 54%),
    rgba(13, 16, 22, 0.78);
}

.domain-strip section,
.falsifier-grid section {
  padding: 1rem;
}

.domain-strip span,
.falsifier-grid span {
  display: block;
  margin-bottom: 1.1rem;
  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;
}

.domain-strip 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;
}

.domain-strip p,
.falsifier-grid 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;
}

.domain-strip p,
.falsifier-grid p {
  margin-bottom: 0;
}

.pattern-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  border: 1px solid rgba(99, 214, 198, 0.2);
  padding: 1.1rem;
}

.pattern-equation span {
  color: rgba(236, 232, 220, 0.86);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.pattern-equation strong {
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 500;
}

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

.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;
}

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

@keyframes boundaryGlow {
  50% {
    opacity: 0.86;
    transform: scale(1.035);
  }
}

@keyframes boundaryOrbit {
  to {
    stroke-dashoffset: -84;
  }
}

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

@keyframes defectContainment {
  50% {
    transform: scale(0.9);
    opacity: 0.72;
  }
}

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

@media (max-width: 1080px) {
  .domain-strip,
  .falsifier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .domain-strip,
  .falsifier-grid,
  .pattern-equation {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boundary-graphic *,
  .test-orbit circle {
    animation: none !important;
  }
}
