/* AGEM V7 — The complete memory universe. Full-bleed scenery; fixed UI. */
:root { --chapter-ink:#080a16; --soft-white:#e8e5fc; --violet:#b89bff; }
[hidden] { display:none !important; }
.main-nav {gap:23px}
.main-nav a {font-size:11px}
.brand-tag {display:none}
.header-cta {display:none}
.header-tools {gap:12px}
.hero-description {max-width:493px}
.hero-note {max-width:320px}
/* A compact, navigable atlas instead of twenty floating panels. */
.memory-inner {padding-top:68px;padding-bottom:24px}
.memory-body {padding:44px 0 30px;min-height:770px;gap:70px;grid-template-columns:1.03fr 1fr}
.memory-copy {max-width:545px}
.memory h2 {font-size:clamp(32px,3.05vw,49px)}
.memory-copy>.section-description {font-size:13px;margin-top:18px;max-width:470px;line-height:1.8}
.atlas-heading {display:flex;justify-content:space-between;align-items:center;gap:15px;max-width:495px;margin-top:24px}
.atlas-heading .tiny-caption {font-size:8px;letter-spacing:.14em;color:#c5b4f5}
.all-layers-link {display:flex;align-items:center;gap:8px;font-size:10px;color:#bcb4d7}
.all-layers-link .icon {width:14px;height:14px}
.all-layers-link:hover {color:white}
.memory-groups {display:flex;gap:0;max-width:500px;justify-content:space-between;margin:13px 0 7px;border-bottom:1px solid #c3b1ff21}
.memory-groups button {padding:11px 0 12px;display:flex;gap:6px;align-items:center;font-size:11px;color:#959bb9;position:relative;white-space:nowrap}
.memory-groups button small {font-size:8px;font-family:monospace;opacity:.65}
.memory-groups button[aria-pressed=true] {color:#ddcfff}
.memory-groups button[aria-pressed=true]:after {position:absolute;bottom:-1px;left:0;right:0;height:1px;content:'';background:#b798fa;box-shadow:0 0 10px #ae80ff99}
.memory-groups button:hover {color:#fff}
.memory-selector {margin:0;display:flex;flex-direction:column;gap:0;max-width:500px;min-height:202px;align-content:stretch}
.memory-selector button {display:flex;align-items:center;gap:14px;width:100%;min-height:40px;padding:10px 11px;border-bottom:1px solid #bbaaff10;text-align:left;font-size:12px;background:transparent;transition:background .25s,color .25s;border-radius:0}
.memory-selector button:after {display:none}
.memory-row-name {display:flex;align-items:center;gap:8px;min-width:0}
.memory-row-name small {font-size:9px;color:#6f799b;margin-left:5px}
.record-dot {width:4px;height:4px;border-radius:50%;background:#74769a;flex-shrink:0}
.memory-row-count {margin-left:auto;font-family:ui-monospace,Consolas,monospace;font-size:12px;letter-spacing:.025em;font-variant-numeric:tabular-nums;color:#aaa3c7;white-space:nowrap}
.memory-selector button>.icon {width:12px;height:12px;opacity:0;flex-shrink:0}
.memory-selector button:hover {background:linear-gradient(90deg,#a98fff0c,transparent);color:#e1d5ff}
.memory-selector button[aria-selected=true] {background:linear-gradient(90deg,#9b7ced20,#9b7ced04);color:#e5ddff}
.memory-selector button[aria-selected=true] .record-dot {background:#c3a7ff;box-shadow:0 0 10px #bf9fff}
.memory-selector button[aria-selected=true] .memory-row-count {color:#e3d3ff}
.memory-selector button[aria-selected=true]>.icon {opacity:.85;color:#c7b2fc}
.memory-detail {max-width:500px;min-height:138px;padding-top:19px;margin-top:12px;border-top:0}
.detail-number {gap:12px;flex-wrap:wrap}
.detail-number>span:first-child {font-size:34px}
.detail-unit {font-size:8px;letter-spacing:.15em}
.detail-meta {font-family:ui-monospace,monospace;font-size:9px;color:#bcb7da;margin-left:auto}
.memory-detail>p {font-size:11px;line-height:1.85;max-width:485px;min-height:54px;margin-top:9px;color:#a4acc6}
.snapshot-note {margin-top:6px;font-size:8px}
.network-caption {padding-bottom:63px}
.memory-bottom {padding:25px 0 24px}
.memory-index {margin-top:16px;border-top:1px solid #c4afff24;border-bottom:1px solid #c4afff24;background:linear-gradient(120deg,#11112670,#0b0c1855);position:relative;z-index:2}
.memory-index summary {display:flex;align-items:center;gap:15px;padding:23px 0;cursor:pointer;list-style:none;font-size:12px;color:#d0c7e7}
.memory-index summary::-webkit-details-marker {display:none}
.index-plus {font-size:23px;line-height:1;font-weight:200;color:#bfa3ff;transition:transform .25s}
.memory-index[open] .index-plus {transform:rotate(45deg)}
.index-date {margin-left:auto;font-size:9px;letter-spacing:.12em;color:#7f88a6;font-family:monospace}
.memory-index-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:27px;padding:5px 0 22px}
.index-category h3 {font-size:10px;font-weight:500;color:#ab91eb;text-transform:uppercase;letter-spacing:.14em;margin:0 0 15px}
.index-entry {width:100%;display:flex;align-items:baseline;gap:10px;justify-content:space-between;text-align:left;padding:11px 0;font-size:10px;border-bottom:1px solid #a49be217;color:#afb3cb}
.index-entry b {font-size:11px;font-weight:400;color:#e2ddf0;white-space:nowrap;font-family:monospace}
.index-entry:hover,.index-entry.is-active {color:#dfcaff}
.index-entry-meta {display:block;font-size:8px;color:#7e83a6;margin-top:7px;line-height:1.6}
.index-note {font-size:9px;color:#8087a2;line-height:1.8;padding-bottom:20px;max-width:840px}
.memory-background {max-height:1100px}
#memoryField {height:min(1050px,100%)}
/* Chapter 2 / Mnemonika — an original procedural neural sculpture. */
.chapter-inner {min-height:100svh;display:flex;flex-direction:column;padding-top:72px;padding-bottom:30px}
.mnemonika {background:#080912;min-height:100svh}
.mnemonika-atmosphere {position:absolute;inset:0;z-index:-4;background:radial-gradient(ellipse at 72% 45%,#653c9838,transparent 43%),radial-gradient(ellipse at 85% 55%,#185b7730,transparent 40%),linear-gradient(180deg,#070912,#0a0917 35%,#090a14)}
.mnemonika-atmosphere:after {content:'';position:absolute;inset:0;background-image:linear-gradient(#cba6ff06 1px,transparent 1px),linear-gradient(90deg,#cba6ff06 1px,transparent 1px);background-size:72px 72px;mask-image:radial-gradient(ellipse at 70% 50%,#000 0,transparent 68%)}
.neural-stage {position:absolute;inset:0;z-index:-1;pointer-events:none}
.neural-stage canvas {width:100%;height:100%;display:block}
.mnemo-layout {display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;flex:1;padding-top:60px;padding-bottom:65px;min-height:655px}
.mnemo-copy {max-width:520px}
.mnemo-wordmark {font-size:10px;font-family:monospace;letter-spacing:.32em;color:#bb95fa;display:flex;align-items:center;gap:16px;margin-bottom:25px}
.mnemo-wordmark span {font-size:18px}
.mnemo-copy h2,.material-copy h2 {font-size:clamp(36px,4vw,63px);font-weight:350;line-height:1.14;letter-spacing:-.045em}
.mnemo-copy h2 em {color:#c4a3ff}
.mnemo-copy>.section-description {max-width:458px;font-size:14px;margin-top:24px;line-height:1.9}
.mnemo-insight {position:relative;padding-left:20px;margin-top:28px;max-width:442px}
.insight-line {position:absolute;top:4px;bottom:3px;left:0;width:1px;background:linear-gradient(#bc8aff,#bc8aff15)}
.mnemo-insight p {font-size:12px;line-height:1.85;color:#aba5c5}
.mnemo-modes {display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:36px;max-width:475px}
.mnemo-modes button {display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:13px 0 15px;border-top:1px solid #b8a1ed3d;position:relative;text-align:left;transition:border-color .3s}
.mnemo-modes button:before {content:'';position:absolute;left:0;right:0;top:-1px;height:1px;background:linear-gradient(90deg,#b397ff,#a6dcff);opacity:0;box-shadow:0 0 13px #b891ff66;transition:opacity .3s}
.mnemo-modes button[aria-pressed=true]:before {opacity:1}
.mnemo-modes button>span {font-size:9px;font-family:monospace;color:#7f789f}
.mnemo-modes button>b {font-size:12px;font-weight:400;color:#a1a4bb}
.mnemo-modes button[aria-pressed=true]>b,.mnemo-modes button:hover>b {color:#e1cdfa}
.mode-description {font-size:10px;line-height:1.7;color:#827e9a;min-height:34px;margin-top:11px;max-width:465px}
.mnemo-visual-caption {align-self:end;justify-self:center;display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;color:#c0a6ec;margin-top:380px}
.mnemo-visual-caption>.tiny-caption {font-size:8px;letter-spacing:.3em;color:#bca5df}
.mnemo-crosshair {font-size:30px;font-weight:200;color:#a78bd1;line-height:1}
.neural-caption {text-align:center;font-size:9px;line-height:1.7;color:#8b80a3;white-space:pre-line}
.chapter-footer {margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:24px;padding-top:25px;border-top:1px solid #bcafff22}
.chapter-footer>span {font-family:monospace;font-size:8px;letter-spacing:.17em;color:#9085a7;line-height:1.7}
.chapter-footer .text-link {font-size:10px;gap:14px}
/* Chapter 3 / persistent materials, no invented private file previews. */
.materials {background:#090b16}
.materials-background {position:absolute;inset:0;z-index:-4;background:url('assets/horizon.webp') center 80%/cover no-repeat;opacity:.18;filter:saturate(.55)}
.materials-shade {position:absolute;inset:0;z-index:-3;background:linear-gradient(90deg,#070a15f2,#070a15bf 42%,#080b1640 70%,#080b1690),linear-gradient(180deg,#080a14,transparent 35%,transparent 72%,#080a14)}
.materials-layout {display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center;flex:1;padding:55px 0 48px}
.material-copy {max-width:515px}
.material-copy h2 {font-size:clamp(34px,3.7vw,57px)}
.material-copy h2 em {color:#a4c5f1}
.material-copy>.section-description {max-width:452px;font-size:14px;line-height:1.9;margin-top:25px}
.material-choices {display:flex;flex-direction:column;max-width:450px;margin-top:30px}
.material-choice {padding:16px 0;display:flex;align-items:center;gap:16px;border-bottom:1px solid #c4b1ff24;text-align:left;color:#a6b0c8;font-size:13px}
.choice-number {font-size:9px;letter-spacing:.1em;color:#687697;font-family:monospace}
.material-choice .icon {width:16px;height:16px;margin-left:auto;opacity:.3}
.material-choice[aria-pressed=true] {color:#d5dcff}
.material-choice[aria-pressed=true] .icon {opacity:1;color:#b6b6ff}
.material-choice[aria-pressed=true] .choice-number {color:#abcfff}
.material-choice:hover {color:white}
.vault-description {font-size:11px;line-height:1.9;min-height:67px;color:#979fba;max-width:442px;margin-top:18px}
.vault-visual {position:relative;min-width:0;align-self:center}
.vault-svg {width:100%;height:auto;overflow:visible;position:relative;z-index:1}
.vault-orbit {position:absolute;left:10%;right:10%;top:25%;bottom:20%;border-radius:50%;background:radial-gradient(ellipse,#9b7af526,transparent 70%);filter:blur(20px)}
.vault-traces {opacity:.26}
.vault-packets {stroke:#c8cdff;stroke-dasharray:8 190;animation:vault-flow 10s linear infinite;opacity:1}
.vault-slab {opacity:.45;transition:opacity .6s,filter .6s;transform-origin:310px 280px}
.vault-slab path {transition:stroke .4s}
.vault-visual[data-view=files] .file-slab,.vault-visual[data-view=projects] .project-slab,.vault-visual[data-view=context] .context-slab {opacity:1;filter:drop-shadow(0 0 12px #b199ff50)}
.file-slab {animation:slab-breathe 9s ease-in-out infinite}
.project-slab {animation:slab-breathe 9s ease-in-out infinite -3s}
.context-slab {animation:slab-breathe 9s ease-in-out infinite -6s}
.vault-caption {position:relative;display:flex;align-items:center;justify-content:center;gap:10px;font-size:8px;line-height:1.8;color:#8a95b2;margin-top:5px}
.material-stats {display:grid;grid-template-columns:1fr 1fr 1fr 1.5fr;gap:40px;padding:30px 0 15px;border-top:1px solid #c8bcff26}
.material-stats a {display:flex;flex-direction:column;gap:10px;position:relative}
.material-stats a:after {position:absolute;right:0;top:0;bottom:0;width:1px;content:'';background:linear-gradient(#b4bbf632,transparent)}
.material-stats a:hover strong {color:#c4b0ff;text-shadow:0 0 35px #ab9aff40}
.material-stats strong {font-size:clamp(34px,3.4vw,52px);font-weight:300;letter-spacing:-.04em;color:#e0def5;line-height:1.1;font-variant-numeric:tabular-nums}
.material-stats a>span {font-size:8px;font-family:monospace;letter-spacing:.17em;color:#9d9eba}
.material-stats p {font-size:9px;color:#7d879f;line-height:1.9;align-self:center}
.core-mnemo {font-size:8px;letter-spacing:.11em;color:#947aac;margin-top:5px}
@keyframes vault-flow {to{stroke-dashoffset:-396}}
@keyframes slab-breathe {0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(min-width:1800px){.memory-body{min-height:880px}.memory-background{max-height:1250px}#memoryField{height:min(1150px,100%)}.mnemo-layout{min-height:780px}}
@media(max-width:1180px){
 .main-nav{gap:16px}.main-nav a{font-size:10px}.recall-trigger span{display:none}.header-inner{gap:18px}.header-tools{gap:8px}
 .memory-body{gap:25px;grid-template-columns:1.05fr 1fr;min-height:770px}
 .memory-row-name small{display:none}.memory-groups button{font-size:10px}.memory-groups button small{font-size:7px}.detail-unit{max-width:180px;font-size:7px}
 .memory-index-grid{grid-template-columns:repeat(3,1fr);gap:24px 36px}
 .mnemo-layout{gap:20px}.mnemo-copy h2{font-size:45px}.material-copy h2{font-size:40px}.materials-layout{gap:30px}
 .mnemo-copy>.section-description,.material-copy>.section-description{font-size:13px}.material-stats{gap:23px}
}
@media(max-width:900px){
 .header-inner{gap:14px}.main-nav{gap:13px}.brand{gap:8px}.brand>span:first-of-type{font-size:18px}.header-tools{gap:3px}.main-nav a{font-size:9px}.recall-trigger{padding:7px}
 .memory-index-grid{grid-template-columns:repeat(2,1fr)}
 .memory-groups{gap:11px;justify-content:flex-start;flex-wrap:wrap}.memory-groups button{padding-bottom:8px}
 .mnemo-modes{gap:12px}.mnemo-modes button>b{font-size:10px}
}
@media(max-width:760px){
 .main-nav{gap:0}.main-nav a{font-size:16px}.header-tools{gap:6px}
 .memory-inner{padding-top:55px}.memory-body{display:flex;flex-direction:column-reverse;min-height:0;padding-top:26px;padding-bottom:28px;gap:0}
 .network-caption{height:310px;padding-bottom:25px}.memory-copy{max-width:100%}.memory h2{font-size:clamp(31px,6vw,40px)}
 .memory-background{max-height:none;background-size:auto 630px;background-position:77% 25px}
 .memory-shade{background:linear-gradient(0deg,#070912 0%,#070912 57%,#07091255 79%,#070912 100%)}
 #memoryField{height:1350px;max-height:100%;mask-image:linear-gradient(#000 0,#000 320px,transparent 460px)}
 .memory-selector{max-width:none;min-height:200px}.memory-selector button{min-height:43px;font-size:12px}.memory-row-count{font-size:12px}
 .memory-row-name small{display:inline;font-size:8px}.memory-detail{max-width:none;min-height:136px}.memory-detail>p{max-width:520px;font-size:12px}
 .memory-groups{max-width:none;justify-content:space-between;gap:8px}.memory-groups button{font-size:10px;padding-bottom:13px}.memory-groups button small{font-size:7px}
 .atlas-heading{max-width:none;margin-top:25px}.atlas-heading .tiny-caption{font-size:7px}.all-layers-link{font-size:9px}
 .detail-meta{font-size:8px}.detail-unit{font-size:7px;max-width:180px}.snapshot-note{font-size:8px;margin-top:11px}
 .memory-index-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 20px}.index-entry{font-size:9px}.index-entry b{font-size:10px}.memory-index summary{font-size:11px}
 .index-date{font-size:8px}.index-note{font-size:8px}.index-category h3{font-size:9px}.index-entry-meta{font-size:7px}.memory-bottom{padding-bottom:19px}
 .chapter-inner{padding-top:55px;padding-bottom:26px;min-height:100svh}
 .mnemo-layout{display:flex;flex-direction:column-reverse;padding-top:18px;padding-bottom:32px;gap:15px;min-height:auto;align-items:stretch}
 .mnemo-visual-caption{height:300px;margin-top:0;justify-content:flex-end;align-self:center;gap:8px;padding-bottom:16px}
 .mnemo-visual-caption>.tiny-caption{font-size:7px}.mnemo-crosshair{display:none}.neural-caption{font-size:8px}
 .neural-stage{height:470px}.mnemonika-atmosphere{background:radial-gradient(ellipse at 50% 28%,#58378835,transparent 42%),linear-gradient(#080a14,#0b0917 35%,#080a14)}
 .mnemo-copy{max-width:540px}.mnemo-wordmark{font-size:8px;letter-spacing:.25em;margin-bottom:16px}.mnemo-copy h2{font-size:clamp(36px,7.2vw,49px)}
 .mnemo-copy>.section-description{font-size:13px;margin-top:20px}.mnemo-insight{margin-top:21px;max-width:510px}.mnemo-insight p{font-size:12px}
 .mnemo-modes{margin-top:27px;max-width:100%;gap:22px}.mnemo-modes button>b{font-size:12px}.mode-description{font-size:10px}
 .chapter-footer{flex-wrap:wrap;padding-top:20px;gap:17px}.chapter-footer>span{font-size:7px}.chapter-footer .text-link{font-size:10px}
 .materials-layout{display:flex;flex-direction:column-reverse;gap:30px;padding-top:32px;padding-bottom:31px;align-items:stretch}
 .vault-visual{width:100%;max-width:420px;align-self:center}.vault-svg{width:100%;height:auto}.vault-caption{font-size:8px;margin-top:-9px}
 .materials-background{opacity:.12;background-position:65% center}.materials-shade{background:linear-gradient(#080a1488,#080a14dd 58%,#080a14)}
 .material-copy{max-width:540px}.material-copy h2{font-size:clamp(33px,6.8vw,44px)}.material-copy>.section-description{font-size:13px;margin-top:21px}
 .material-choices{max-width:none;margin-top:20px}.material-choice{font-size:13px;padding-block:15px}.vault-description{min-height:71px;font-size:12px;max-width:530px}
 .material-stats{grid-template-columns:repeat(3,1fr);gap:22px;padding-top:25px}.material-stats p{grid-column:1/-1;font-size:8px}.material-stats strong{font-size:33px}.material-stats a>span{font-size:7px;letter-spacing:.1em}
 .core-mnemo{font-size:7px}
}
@media(max-width:390px){
 :root{--gutter:20px}.memory-row-name small{display:none}.memory-groups{gap:6px}.memory-groups button{font-size:9px}.memory-groups button small{display:none}
 .detail-unit{max-width:145px}.material-stats{gap:17px}.mnemo-modes{gap:17px}.memory-index-grid{gap:25px 15px}.index-entry{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.vault-packets,.vault-slab{animation:none!important}}
@media print{.neural-stage,.vault-visual,.memory-groups,.atlas-heading,.material-choices,.mnemo-modes{display:none!important}.chapter-inner{min-height:0}.mnemo-layout,.materials-layout{display:block;padding:30px 0}.memory-index{display:block}.memory-index-grid{display:grid}.chapter-footer,.mnemo-visual-caption{display:none}}

@media(max-width:760px){.memory-shade{background:linear-gradient(180deg,#070912 0,#07091255 90px,#07091210 240px,#07091225 325px,#070912cc 430px,#070912 550px)}}
