.memory-hero .hero-copy h1 {
  max-width: 720px;
  font-size: clamp(3.1rem, 5.4vw, 5.15rem);
}

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

.memory-graphic {
  background:
    radial-gradient(circle at 48% 48%, rgba(212, 182, 111, 0.12), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(99, 214, 198, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
    rgba(12, 16, 23, 0.74);
}

.memory-graphic .artifact-node circle:not(.plant-glow),
.memory-graphic .tablet-node rect,
.memory-graphic .memory-core rect,
.memory-graphic .analyzer-node rect,
.memory-graphic .wisdom-node circle {
  fill: rgba(9, 13, 18, 0.86);
  stroke: rgba(214, 199, 150, 0.62);
  stroke-width: 1.5;
}

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

.memory-graphic .tablet-node rect {
  fill: rgba(212, 182, 111, 0.08);
}

.memory-graphic .memory-core__glow {
  fill: url(#coreGlow);
  animation: memoryGlow 5.4s ease-in-out infinite;
}

.memory-graphic .memory-core rect {
  stroke: rgba(99, 214, 198, 0.7);
  filter: drop-shadow(0 0 22px rgba(99, 214, 198, 0.16));
}

.memory-graphic .memory-ring {
  fill: none;
  stroke: rgba(214, 199, 150, 0.42);
  stroke-width: 1.4;
  stroke-dasharray: 8 12;
  transform-box: fill-box;
  transform-origin: center;
  animation: memoryRing 10s linear infinite;
}

.memory-graphic .memory-ring--inner {
  stroke: rgba(99, 214, 198, 0.44);
  stroke-dasharray: 5 10;
  animation-duration: 7.2s;
  animation-direction: reverse;
}

.memory-graphic .analyzer-node rect {
  stroke: rgba(212, 182, 111, 0.7);
}

.memory-graphic .wisdom-node circle {
  fill: rgba(99, 214, 198, 0.1);
  stroke: rgba(99, 214, 198, 0.72);
  animation: wisdomPulse 4.2s ease-in-out infinite;
}

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

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

.memory-line {
  fill: none;
  stroke: url(#goldLine);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 13;
  opacity: 0.76;
  animation: memoryFlow 5.2s linear infinite;
}

.memory-line--b {
  animation-duration: 6.1s;
}

.memory-line--c,
.memory-line--d {
  animation-duration: 4.4s;
}

.memory-line--e {
  animation-duration: 7.4s;
  animation-direction: reverse;
}

.insight-particles circle {
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgba(212, 182, 111, 0.52));
  opacity: 0.62;
  animation: insightBlink 3.2s ease-in-out infinite;
}

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

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

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

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

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

.memory-content strong {
  color: var(--gold);
  font-weight: 700;
}

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

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

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

.memory-pair div,
.pillar-grid section,
.formula-panel {
  background:
    linear-gradient(180deg, rgba(99, 214, 198, 0.045), transparent 50%),
    rgba(13, 16, 22, 0.76);
  padding: 1.2rem;
}

.memory-pair span,
.pillar-grid span {
  display: block;
  margin-bottom: 1.8rem;
  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;
}

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

.memory-pair p,
.pillar-grid p,
.formula-panel p {
  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;
}

.memory-pair p,
.pillar-grid p,
.formula-panel p:last-child {
  margin-bottom: 0;
}

.wisdom-list {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0;
}

.wisdom-list blockquote {
  margin: 0;
  text-align: left;
}

.formula-panel {
  margin: 2rem 0;
  border: 1px solid rgba(99, 214, 198, 0.18);
  background:
    linear-gradient(rgba(99, 214, 198, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    rgba(13, 16, 22, 0.78);
}

.formula-panel p {
  color: var(--text);
}

.formula-panel p + p {
  margin-top: 0.75rem;
}

.memory-content .author-note,
.sources-block {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

.sources-block {
  margin: 2.2rem 0 0;
  border-top: 1px solid rgba(214, 199, 150, 0.18);
  padding-top: 1.1rem;
  line-height: 1.55;
}

.sources-block p {
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sources-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sources-block a {
  color: var(--cyan);
  text-decoration: none;
}

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

@keyframes memoryFlow {
  to {
    stroke-dashoffset: -42;
  }
}

@keyframes memoryGlow {
  50% {
    opacity: 0.48;
    transform: scale(1.08);
  }
}

@keyframes memoryRing {
  to {
    stroke-dashoffset: -80;
    transform: rotate(360deg);
  }
}

@keyframes wisdomPulse {
  50% {
    stroke-opacity: 0.42;
    transform: scale(1.04);
  }
}

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

@media (max-width: 720px) {
  .memory-pair,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .memory-hero .hero-copy h1 {
    font-size: 2.65rem;
  }
}
