/* Closing chapters use the same capped canvas as the opening sections. */
.memory-chapter, .closing-chapter { font-variation-settings: "opsz" 20; }
.platform-links [hidden] { display: none; }
.memory-chapter { color: #f6eee4; background: #030302; overflow: clip; }
.memory-chapter .canvas { min-height: min(72.91667vw, 1493.34px); isolation: isolate; background: radial-gradient(ellipse at 17% 61%, #0b0805, #030302 67%); }
.memory-chapter h2, .memory-chapter h3, .closing-chapter h2, .closing-chapter h3,
.memory-chapter figure, .memory-chapter ul, .closing-chapter ul { margin: 0; }
.memory-chapter ul, .closing-chapter ul { padding: 0; list-style: none; }
.end-kicker { display: flex; align-items: center; gap: .82cqw; font-size: 1.14cqw; line-height: 1.25; font-weight: 570; text-transform: uppercase; }
.end-kicker::before { content: ""; width: 2.35cqw; height: max(1px,.15cqw); background: currentColor; }
.memory-copy, .memory-knowledge { position: relative; z-index: 1; margin-left: 5.45%; width: 31%; }
.memory-copy { padding-top: 3.86cqw; }
.memory-copy .end-kicker, .memory-copy h2 span, .memory-decision figcaption { color: #e4ad91; }
.memory-copy h2 { margin: 2.1cqw 0 0 -.27cqw; font-size: 6.21cqw; letter-spacing: -.006em; line-height: .8; font-weight: 700; }
.memory-intro { margin-top: 4.08cqw; max-width: 29cqw; color: #bcb0a3; font-size: 1.68cqw; line-height: 1.47; }
.memory-knowledge { margin-top: 3cqw; }
.memory-knowledge > h3 { width: 87%; border-top: 1px solid #382f27; padding-top: .85cqw; color: #d5b990; font-size: 1.04cqw; text-transform: uppercase; font-weight: 560; }
.memory-types { display: grid; grid-template-columns: repeat(2,1fr); max-width: 28cqw; row-gap: 1.36cqw; }
.memory-chapter .memory-types { margin-top: 1.85cqw; }
.memory-types li { display: flex; gap: .75cqw; align-items: center; font-size: 1.45cqw; line-height: 1.3; }
.memory-types li::before { content: ""; width: .65cqw; height: .65cqw; flex: none; border-radius: 50%; background: var(--dot); }
.memory-shared { margin-top: 5.55cqw; border-top: 1px solid #382f27; padding-top: 1.05cqw; }
.memory-shared h3 { font-size: 1.6cqw; font-weight: 580; }
.memory-shared p, .memory-shared ul { margin-top: 1cqw; font-size: 1.17cqw; color: #bcb0a3; }
.memory-shared ul { display: flex; flex-wrap: wrap; align-items: center; color: #e9dacc; }
.memory-shared li + li::before { content: "·" / ""; padding-inline: 1cqw; color: #a18e77; }
.memory-visual { position: absolute; inset: 0; pointer-events: none; }
.memory-orbit { position: absolute; top: .50cqw; left: 33.85%; width: 67.15%; height: auto; mix-blend-mode: screen; }
.memory-decision { position: absolute; top: 44.53cqw; right: 5.2%; width: 21.88%; }
.memory-decision img { display: block; width: 100%; height: auto; border-radius: .7cqw; box-shadow: 0 .8cqw 2cqw #000a; }
.memory-decision figcaption { margin-top: .95cqw; padding-top: .45cqw; border-top: 1px solid #382f27; font-size: 1cqw; text-transform: uppercase; }
.compatibility { background: linear-gradient(158deg, #f9f0e6, #efe0ce); }
.compatibility .canvas { min-height: min(30.21vw,618.7px); }
.compatibility .end-kicker { padding-top: 2.62cqw; color: var(--clay); }
.compatibility .end-kicker, .compatibility h2, .supported-agents, .agent-history { margin-inline: 5.4%; }
.compatibility h2 { margin-top: 1.2cqw; margin-left: 5.05%; font-size: 3.95cqw; line-height: 1.10; letter-spacing: -.006em; }
.compatibility h2 span { color: var(--clay); }
.compatibility-intro { position: absolute; top: 6.37cqw; left: 62.75%; font-size: 1.58cqw; line-height: 1.5; color: #706051; }
.closing-chapter .supported-agents { margin: 2.55cqw 5.4% 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 2.05cqw .6cqw; }
.supported-agents li { display: flex; gap: .9cqw; align-items: center; font-size: 1.2cqw; font-weight: 550; }
.supported-agents li span { flex: none; width: 2.94cqw; aspect-ratio: 1; border-radius: 18%; background: url("assets/agent-marks.webp") calc(var(--index) * 100% / 9) center / 1000% 100% no-repeat; }
.agent-history { margin-top: 2.2cqw; color: #6d5e50; font-size: 1.25cqw; }
.download-art { position: relative; isolation: isolate; color: #fff4e5; background: #823015; overflow: clip; }
.clay-render { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.download-art .canvas { min-height: min(45.8333vw,938.67px); display: flex; flex-direction: column; }
.get-copy { margin: 3.78cqw 5.4% 0; }
.get-copy .end-kicker { color: #f3cfaa; }
.get-copy h2 { margin: 1.8cqw 0 0 -.25cqw; font-size: 5.2cqw; letter-spacing: -.006em; line-height: 1.13; }
.download-lead { margin-top: 2.1cqw; font-size: 1.58cqw; line-height: 1.4; }
.download-actions, .platform-links, .closing-footer, .closing-footer nav, .footer-brand { display: flex; align-items: center; }
.download-actions { gap: .95cqw; margin-top: 2.18cqw; }
.download-actions a { display: inline-flex; align-items: center; gap: 2cqw; min-height: 3.95cqw; padding-inline: 1.22cqw; border-radius: .62cqw; font-size: 1.4cqw; }
.get-build { background: #fff3df; color: #792910; font-weight: 620; }
.get-repo { border: 1px solid #e7bb9b; }
.platform-links { gap: 1.25cqw; margin-top: 1.65cqw; font-size: 1.18cqw; }
.platform-links span, .closing-footer p { color: #efd4bc; }
.closing-footer { margin: auto 5.4% 0; min-height: 6.8cqw; gap: 4.5cqw; border-top: 1px solid #ffffff40; }
.footer-brand { gap: .8cqw; font-weight: 630; font-size: 1.55cqw; }
.footer-brand img { width: 1.92cqw; height: auto; }
.closing-footer p, .closing-footer nav { font-size: 1.10cqw; }
.closing-footer nav { margin-left: auto; gap: 1.2em; }
.closing-footer nav a + a { position: relative; }
.closing-footer nav a + a::before { content: "·" / ""; position: absolute; left: -.77em; }
.closing-chapter a:hover { text-decoration: underline; text-underline-offset: .18em; }
.closing-chapter dialog { color: var(--ink); background: #fff8ee; border: 1px solid #bbab97; border-radius: 12px; padding: 25px; width: min(640px,92vw); max-height: 82svh; }
.closing-chapter dialog::backdrop { background: #17100bcc; }
.closing-chapter dialog button { float: right; cursor: pointer; min-width: 44px; min-height: 44px; border: 1px solid #beaf9c; border-radius: 6px; background: transparent; color: inherit; font-size: 24px; }
.closing-chapter dialog h2 { font-size: 26px; margin-bottom: 5px; }
.build-options { display: flex; flex-wrap: wrap; gap: 18px 30px; margin: 20px 0; }
.build-options a, .latest-build { display: inline-flex; align-items: center; min-height: 44px; color: #89371e; text-decoration: underline; }
@media (max-width: 1199px) {
  .memory-chapter .canvas, .compatibility .canvas, .download-art .canvas { min-height: auto; }
  .memory-copy, .memory-knowledge { margin: 0; width: auto; padding-inline: 6%; }
  .memory-copy { padding-top: 48px; }
  .end-kicker { gap: 10px; font-size: 13px; }
  .end-kicker::before { width: 25px; height: 2px; }
  .memory-copy h2 { margin: 16px 0 0; max-width: 640px; font-size: clamp(42px,8.6vw,72px); line-height: 1; }
  .memory-copy h2 br { display: none; }
  .memory-intro { margin-top: 20px; max-width: 520px; font-size: 18px; line-height: 1.48; }
  .memory-visual { position: relative; inset: auto; max-width: 720px; margin: 6px auto 26px; }
  .memory-orbit { position: static; width: 100%; height: auto; display: block; }
  .memory-decision { position: relative; inset: auto; width: clamp(185px,52%,275px); }
  .memory-chapter .memory-decision { margin: -20% 6% 0 auto; }
  .memory-decision figcaption { font-size: 11px; margin-top: 8px; padding-top: 5px; }
  .memory-knowledge { padding-bottom: 42px; }
  .memory-knowledge > h3 { width: 100%; padding-top: 14px; font-size: 13px; }
  .memory-chapter .memory-types { margin-top: 14px; gap: 12px; max-width: 480px; }
  .memory-types li { gap: 8px; font-size: 16px; }
  .memory-types li::before { width: 7px; height: 7px; }
  .memory-shared { margin-top: 24px; padding-top: 15px; }
  .memory-shared h3 { font-size: 19px; }
  .memory-shared p, .memory-shared ul { margin-top: 9px; font-size: 15px; }
  .memory-shared li + li::before { padding-inline: 8px; }
  .compatibility .canvas { padding: 38px 6% 32px; }
  .compatibility .end-kicker, .compatibility h2, .agent-history { padding: 0; margin-inline: 0; }
  .compatibility h2 { font-size: clamp(32px,5.75vw,50px); margin-top: 15px; }
  .compatibility-intro { position: static; margin-top: 16px; font-size: 17px; }
  .compatibility-intro br { display: none; }
  .closing-chapter .supported-agents { margin: 24px 0 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
  .supported-agents li { gap: 9px; font-size: 15px; }
  .supported-agents li span { width: 32px; }
  .agent-history { margin-top: 22px; font-size: 15px; }
  .clay-render { height: 67%; top: auto; object-position: 80% center; mask-image: linear-gradient(transparent,#000 30%); }
  .get-copy { margin: 0; padding: 38px 6% 0; position: relative; }
  .get-copy h2 { margin-top: 17px; font-size: clamp(36px,7.3vw,64px); line-height: 1.08; }
  .download-lead { margin-top: 14px; font-size: 17px; }
  .download-actions { gap: 10px; margin-top: 20px; flex-wrap: wrap; }
  .download-actions a { min-height: 44px; font-size: 16px; border-radius: 7px; padding-inline: 13px; gap: 9px; }
  .platform-links { gap: 10px; margin-top: 5px; flex-wrap: wrap; font-size: 14px; }
  .platform-links a, .closing-footer a { min-height: 44px; display: inline-flex; align-items: center; }
  .closing-footer { margin: clamp(130px,31vw,225px) 0 0; padding: 12px 6%; gap: 0 15px; flex-wrap: wrap; background: linear-gradient(transparent, #431406b3); }
  .footer-brand { gap: 6px; font-size: 17px; }
  .footer-brand img { width: 23px; }
  .closing-footer p, .closing-footer nav { font-size: 13px; }
  .closing-footer nav { flex-wrap: wrap; }
}
@media (max-width: 590px) {
  .closing-chapter .supported-agents { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .closing-footer nav { width: 100%; }
}

@media (max-width: 590px) {
  .memory-copy { padding-top: 32px; }
  .memory-knowledge { padding-bottom: 30px; }
  .memory-chapter .memory-decision { margin-top: -24%; }
  .get-copy { padding-top: 30px; }
  .closing-footer nav a { padding-inline: 3px; }
}

.download-art::after {
  content: ""; pointer-events: none; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, transparent 84%, rgb(47 18 9 / 63%) 94%, rgb(47 18 9 / 63%));
}
@media (max-width: 1199px) {
  .clay-render { height: 53%; }
  .download-art::after { background: linear-gradient(to bottom, transparent 72%, rgb(47 18 9 / 55%) 90%); }
}
