.memory-section{position:relative;overflow:hidden}.memory-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2rem;align-items:end;margin-bottom:3.5rem}.memory-intro h2{max-width:820px;margin:0;font:500 clamp(2.6rem,6vw,6.8rem)/.9 var(--display);letter-spacing:-.045em}.memory-intro p{max-width:660px;color:var(--muted);line-height:1.7}.memory-style-badge{min-width:150px;padding:.85rem 1rem;border:1px solid var(--line)}.memory-style-badge span,.memory-style-badge strong{display:block}.memory-style-badge span{color:var(--muted);font:600 .58rem/1.2 var(--mono);letter-spacing:.15em}.memory-style-badge strong{margin-top:.35rem;font-size:.75rem}.memory-map{position:relative;min-height:420px;padding:2rem 0;isolation:isolate}.memory-route{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible;pointer-events:none}.memory-route path{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-dasharray:3 10;vector-effect:non-scaling-stroke;animation:memory-route-flow 12s linear infinite}@keyframes memory-route-flow{to{stroke-dashoffset:-130}}.memory-days{display:grid;gap:5rem}.memory-day{width:min(72%,760px);padding:0;border:0;background:none;color:inherit;display:grid;grid-template-columns:72px minmax(0,1fr);gap:1rem;align-items:center;text-align:left;cursor:pointer}.memory-day:nth-child(even){justify-self:end;grid-template-columns:minmax(0,1fr) 72px}.memory-day:nth-child(even) .memory-node{grid-column:2}.memory-day:nth-child(even) .memory-card{grid-column:1;grid-row:1}.memory-node{width:64px;height:64px;position:relative;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--bg);box-shadow:0 8px 24px color-mix(in srgb,var(--primary) 14%,transparent)}.memory-node i{position:absolute;inset:8px;border-radius:inherit;background:var(--accent);transform:scale(.22);transition:transform .35s ease}.memory-node b{z-index:1;font:600 .62rem var(--mono);color:var(--primary)}.memory-day:hover .memory-node i{transform:scale(1)}.memory-card{min-height:150px;overflow:hidden;display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr);border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 90%,transparent);box-shadow:0 20px 50px color-mix(in srgb,var(--primary) 9%,transparent);transition:transform .3s ease,box-shadow .3s ease}.memory-day:hover .memory-card{transform:translateY(-6px);box-shadow:0 28px 65px color-mix(in srgb,var(--primary) 16%,transparent)}.memory-card>img,.memory-placeholder{width:100%;height:100%;min-height:150px;object-fit:cover}.memory-placeholder{display:grid;place-items:center;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--accent) 14%,transparent) 0 2px,transparent 2px 12px);font:500 3.5rem var(--display);color:var(--accent)}.memory-copy{padding:1.35rem;display:flex;flex-direction:column;align-items:flex-start}.memory-copy time{color:var(--accent);font:600 .62rem var(--mono);letter-spacing:.08em;text-transform:uppercase}.memory-copy strong{margin-top:.45rem;font:500 clamp(1.2rem,2.2vw,1.8rem)/1.05 var(--display)}.memory-copy small{margin-top:.4rem;color:var(--muted);font:600 .66rem var(--mono);text-transform:uppercase}.memory-copy>span{margin-top:auto;padding-top:.75rem;color:var(--muted);font-size:.82rem;line-height:1.5}.memory-empty{padding:5rem 2rem;border:1px dashed var(--line);text-align:center;background:color-mix(in srgb,var(--surface) 70%,transparent)}.memory-empty span,.memory-empty strong{display:block}.memory-empty span{color:var(--accent);font:600 .65rem var(--mono)}.memory-empty strong{margin:1rem 0;font:500 2rem var(--display)}

/* These presets change structure, route geometry, density, and image treatment. */
[data-memory-style=metro] .memory-days{gap:1.2rem}[data-memory-style=metro] .memory-day,[data-memory-style=metro] .memory-day:nth-child(even){width:82%;justify-self:start;grid-template-columns:54px 1fr}[data-memory-style=metro] .memory-day:nth-child(even) .memory-node{grid-column:1}[data-memory-style=metro] .memory-day:nth-child(even) .memory-card{grid-column:2}[data-memory-style=metro] .memory-node{width:38px;height:38px;border:6px solid var(--surface);outline:4px solid var(--accent)}[data-memory-style=metro] .memory-node i{display:none}[data-memory-style=metro] .memory-card{min-height:94px;grid-template-columns:110px 1fr;box-shadow:none;border-width:0 0 0 6px}[data-memory-style=metro] .memory-card>img,[data-memory-style=metro] .memory-placeholder{min-height:94px}[data-memory-style=metro] .memory-route path{stroke-width:12;stroke-dasharray:none}

[data-memory-style=passport]{padding:3rem;background:#e7dcc5;color:#352e26;box-shadow:inset 0 0 0 12px #c8b895}[data-memory-style=passport] .memory-days{grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem}[data-memory-style=passport] .memory-day,[data-memory-style=passport] .memory-day:nth-child(even){width:100%;display:block;transform:rotate(calc((var(--day) - 1)*1.1deg))}[data-memory-style=passport] .memory-node{position:absolute;right:-12px;top:-20px;z-index:2;border:3px double #a94b3d;border-radius:0;background:transparent;transform:rotate(12deg);box-shadow:none}[data-memory-style=passport] .memory-node i{display:none}[data-memory-style=passport] .memory-card{display:block;padding:1rem;border:0;background:#f6efdf;box-shadow:0 10px 25px #79694b33}[data-memory-style=passport] .memory-card>img,[data-memory-style=passport] .memory-placeholder{height:180px;min-height:0}[data-memory-style=passport] .memory-route path{stroke:#78684b;stroke-width:2;stroke-dasharray:1 8}

[data-memory-style=constellation]{padding:4rem 2rem;background:radial-gradient(circle at 25% 15%,#183c59,#07131f 58%);color:#eef7ff}[data-memory-style=constellation]:before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#fff 1px,transparent 1px);background-size:37px 37px;opacity:.25}[data-memory-style=constellation] .memory-days{gap:7rem}[data-memory-style=constellation] .memory-day{width:58%;grid-template-columns:50px 1fr}[data-memory-style=constellation] .memory-card{border:0;border-bottom:1px solid #a8d9ff66;background:transparent;box-shadow:none}[data-memory-style=constellation] .memory-node{background:#07131f;border-color:#86d8ff;box-shadow:0 0 24px #86d8ff}[data-memory-style=constellation] .memory-route path{stroke:#a9e5ff;stroke-width:1;stroke-dasharray:none;filter:drop-shadow(0 0 5px #fff)}

[data-memory-style=editorial] .memory-days{grid-template-columns:repeat(12,1fr);gap:1rem}[data-memory-style=editorial] .memory-day,[data-memory-style=editorial] .memory-day:nth-child(even){width:100%;display:block;grid-column:span 4;border-top:5px solid var(--primary);padding-top:.8rem}[data-memory-style=editorial] .memory-day:first-child{grid-column:span 8}[data-memory-style=editorial] .memory-node{width:auto;height:auto;display:block;border:0;border-radius:0;box-shadow:none;background:none;margin-bottom:.6rem}[data-memory-style=editorial] .memory-node i{display:none}[data-memory-style=editorial] .memory-node b{font-size:1.1rem}[data-memory-style=editorial] .memory-card{display:flex;flex-direction:column;border:0;box-shadow:none;background:none}[data-memory-style=editorial] .memory-card>img,[data-memory-style=editorial] .memory-placeholder{height:240px;min-height:0}[data-memory-style=editorial] .memory-route{display:none}

[data-memory-style=polaroid] .memory-days{display:flex;flex-wrap:wrap;justify-content:center;gap:2.4rem}[data-memory-style=polaroid] .memory-day,[data-memory-style=polaroid] .memory-day:nth-child(even){width:min(30%,320px);display:block;transform:rotate(calc((var(--day) - 2)*1.7deg))}[data-memory-style=polaroid] .memory-card{display:flex;flex-direction:column;padding:12px 12px 24px;background:#fff;color:#1d1d1d;border:0;box-shadow:0 12px 26px #18232c30}[data-memory-style=polaroid] .memory-card>img,[data-memory-style=polaroid] .memory-placeholder{height:220px;min-height:0}[data-memory-style=polaroid] .memory-node{position:absolute;z-index:2;width:42px;height:42px;top:-15px;left:calc(50% - 21px);border:0;background:#e9c76f;border-radius:2px;box-shadow:none}[data-memory-style=polaroid] .memory-node i,[data-memory-style=polaroid] .memory-route{display:none}

[data-memory-style=brutalist] .memory-days{grid-template-columns:repeat(2,1fr);gap:0}[data-memory-style=brutalist] .memory-day,[data-memory-style=brutalist] .memory-day:nth-child(even){width:100%;display:grid;grid-template-columns:72px 1fr;border:3px solid currentColor;margin:-1.5px}[data-memory-style=brutalist] .memory-day:nth-child(even) .memory-node{grid-column:1}[data-memory-style=brutalist] .memory-day:nth-child(even) .memory-card{grid-column:2}[data-memory-style=brutalist] .memory-node{border:0;border-radius:0;box-shadow:none;background:var(--accent);width:72px;height:100%}[data-memory-style=brutalist] .memory-card{border:0;box-shadow:none;background:var(--surface)}[data-memory-style=brutalist] .memory-route{display:none}

[data-memory-style=glass]{padding:4rem 3rem;border-radius:44px;background:linear-gradient(135deg,#0e7685,#b9d8b8 48%,#f4ae7b);box-shadow:inset 0 1px #fff8}[data-memory-style=glass] .memory-days{gap:2rem}[data-memory-style=glass] .memory-day{width:78%;grid-template-columns:45px 1fr}[data-memory-style=glass] .memory-card{border:1px solid #fff8;border-radius:26px;background:#ffffff2e;box-shadow:0 20px 40px #16425225;backdrop-filter:blur(18px)}[data-memory-style=glass] .memory-node{width:44px;height:44px;background:#ffffff55;border-color:#fff;backdrop-filter:blur(10px)}[data-memory-style=glass] .memory-route path{stroke:#fff;stroke-width:2;stroke-dasharray:none}

[data-memory-style=terminal]{padding:2rem;background:#07110b;color:#8dff9d;border:1px solid #41b95a;font-family:var(--mono)}[data-memory-style=terminal]:before{content:"memory-map.log   ● LIVE";display:block;padding-bottom:1rem;border-bottom:1px solid #286f35;font-size:.72rem}[data-memory-style=terminal] .memory-days{gap:0}[data-memory-style=terminal] .memory-day,[data-memory-style=terminal] .memory-day:nth-child(even){width:100%;display:grid;grid-template-columns:76px 1fr;border-bottom:1px dashed #286f35}[data-memory-style=terminal] .memory-day:nth-child(even) .memory-node{grid-column:1}[data-memory-style=terminal] .memory-day:nth-child(even) .memory-card{grid-column:2}[data-memory-style=terminal] .memory-node{border:0;border-radius:0;background:none;box-shadow:none;color:#8dff9d}[data-memory-style=terminal] .memory-node:before{content:">";margin-right:5px}[data-memory-style=terminal] .memory-node i{display:none}[data-memory-style=terminal] .memory-card{min-height:88px;grid-template-columns:90px 1fr;border:0;background:none;box-shadow:none}[data-memory-style=terminal] .memory-card>img,[data-memory-style=terminal] .memory-placeholder{min-height:88px;filter:grayscale(1) contrast(1.2)}[data-memory-style=terminal] .memory-copy strong{font-family:var(--mono)}[data-memory-style=terminal] .memory-route{display:none}

[data-memory-style=orbital]{min-height:700px;display:grid;place-items:center;background:radial-gradient(circle,transparent 0 12%,color-mix(in srgb,var(--accent) 18%,transparent) 12.3% 12.6%,transparent 13% 26%,color-mix(in srgb,var(--accent) 14%,transparent) 26.3% 26.6%,transparent 27%)}[data-memory-style=orbital] .memory-days{width:100%;grid-template-columns:repeat(3,1fr);align-items:center;gap:4rem 2rem}[data-memory-style=orbital] .memory-day,[data-memory-style=orbital] .memory-day:nth-child(even){width:100%;display:block;text-align:center}[data-memory-style=orbital] .memory-node{margin:0 auto -24px;z-index:2;background:var(--accent);border:8px solid var(--surface);box-shadow:0 0 0 1px var(--accent)}[data-memory-style=orbital] .memory-card{display:block;padding-top:30px;border-radius:50% 50% 20px 20px;box-shadow:none}[data-memory-style=orbital] .memory-card>img,[data-memory-style=orbital] .memory-placeholder{height:130px;min-height:0;border-radius:50% 50% 0 0}[data-memory-style=orbital] .memory-route{display:none}

[data-memory-style=notebook]{padding:2rem 3rem 2rem 6rem;background:repeating-linear-gradient(#fffdf5 0 31px,#b7d4e4 32px);color:#23364d;border-left:2px solid #df6d6d}[data-memory-style=notebook] .memory-days{gap:1.8rem}[data-memory-style=notebook] .memory-day,[data-memory-style=notebook] .memory-day:nth-child(even){width:100%;display:grid;grid-template-columns:54px 1fr}[data-memory-style=notebook] .memory-day:nth-child(even) .memory-node{grid-column:1}[data-memory-style=notebook] .memory-day:nth-child(even) .memory-card{grid-column:2}[data-memory-style=notebook] .memory-node{width:42px;height:42px;border:2px solid #253f77;background:#fffdf5;box-shadow:none}[data-memory-style=notebook] .memory-card{min-height:120px;border:0;background:#fffdf5cc;box-shadow:none;transform:rotate(calc((var(--day) - 2)*-.25deg))}[data-memory-style=notebook] .memory-route path{stroke:#df6d6d;stroke-width:2;stroke-dasharray:none}

[data-memory-style=museum] .memory-days{display:flex;gap:4rem;overflow-x:auto;padding:3rem 1rem 4rem;scroll-snap-type:x mandatory}[data-memory-style=museum] .memory-day,[data-memory-style=museum] .memory-day:nth-child(even){flex:0 0 min(72vw,620px);width:auto;display:flex;flex-direction:column;scroll-snap-align:center}[data-memory-style=museum] .memory-node{order:2;width:100%;height:auto;border:0;border-radius:0;background:none;box-shadow:none;justify-content:start;margin-top:1rem}[data-memory-style=museum] .memory-node i{display:none}[data-memory-style=museum] .memory-node b:before{content:"EXHIBIT ";color:var(--muted)}[data-memory-style=museum] .memory-card{order:1;display:flex;flex-direction:column;border:12px solid var(--surface);outline:1px solid var(--line);box-shadow:0 22px 50px #0002}[data-memory-style=museum] .memory-card>img,[data-memory-style=museum] .memory-placeholder{height:360px;min-height:0}[data-memory-style=museum] .memory-route{display:none}

[data-memory-style=expedition] .memory-day:nth-child(3n){margin-left:12%}

.memory-dialog{width:min(980px,calc(100% - 2rem));max-height:90vh;padding:0;border:0;color:var(--ink);background:var(--surface);box-shadow:0 35px 100px #07131f88}.memory-dialog::backdrop{background:#07131fc9;backdrop-filter:blur(8px)}.memory-dialog-close{position:sticky;float:right;top:1rem;margin:1rem;z-index:5;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--primary);cursor:pointer}#memory-detail header{padding:clamp(2rem,7vw,5rem);background:var(--primary);color:var(--surface);position:relative}#memory-detail header p{margin:0;color:var(--accent);font:600 .7rem var(--mono);letter-spacing:.1em;text-transform:uppercase}#memory-detail header>span{position:absolute;right:clamp(2rem,7vw,5rem);bottom:1.5rem;font:500 clamp(5rem,15vw,11rem)/.75 var(--display);opacity:.08}#memory-detail h2{max-width:780px;margin:1rem 0;font:500 clamp(2.6rem,7vw,6rem)/.92 var(--display)}.memory-detail-tags{display:flex;gap:.5rem;flex-wrap:wrap}.memory-detail-tags i{padding:.35rem .65rem;border:1px solid #fff5;border-radius:99px;font:normal .65rem var(--mono)}.memory-detail-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:3px;background:var(--line)}.memory-detail-gallery img{width:100%;height:min(48vw,460px);object-fit:cover;background:var(--bg)}.memory-detail-gallery img:first-child:nth-last-child(odd){grid-column:1/-1}.memory-detail-body{max-width:720px;margin:0 auto;padding:clamp(2rem,7vw,5rem);font-size:1.05rem;line-height:1.85}
@media(max-width:760px){.memory-intro{grid-template-columns:1fr;margin-bottom:2rem}.memory-style-badge{justify-self:start}.memory-map{padding:1rem 0}.memory-days{gap:2.5rem}.memory-day,.memory-day:nth-child(even){width:100%;grid-template-columns:42px minmax(0,1fr)}.memory-day:nth-child(even) .memory-node{grid-column:1}.memory-day:nth-child(even) .memory-card{grid-column:2}.memory-node{width:38px;height:38px}.memory-card{grid-template-columns:90px 1fr}.memory-card>img,.memory-placeholder{min-height:165px}.memory-copy{padding:1rem}.memory-copy>span{display:none}[data-memory-style=passport],[data-memory-style=glass],[data-memory-style=notebook]{padding:1.25rem}[data-memory-style=passport] .memory-days,[data-memory-style=editorial] .memory-days,[data-memory-style=brutalist] .memory-days,[data-memory-style=orbital] .memory-days{grid-template-columns:1fr}[data-memory-style=editorial] .memory-day,[data-memory-style=editorial] .memory-day:first-child{grid-column:span 1}[data-memory-style=polaroid] .memory-day,[data-memory-style=polaroid] .memory-day:nth-child(even){width:80%}[data-memory-style=constellation]{padding:2rem 1rem}[data-memory-style=constellation] .memory-day{width:90%}[data-memory-style=museum] .memory-day,[data-memory-style=museum] .memory-day:nth-child(even){flex-basis:85vw}[data-memory-style=museum] .memory-card>img,[data-memory-style=museum] .memory-placeholder{height:260px}.memory-detail-gallery{grid-template-columns:1fr}.memory-detail-gallery img{height:62vw}.memory-detail-gallery img:first-child:nth-last-child(odd){grid-column:auto}}
@media(prefers-reduced-motion:reduce){.memory-route path{animation:none}.memory-card{transition:none}}

/* User copy must remain inside every structural preset. */
.memory-section,.memory-map,.memory-days,.memory-day,.memory-card,.memory-copy{min-width:0}.memory-intro h2,.memory-intro p,.memory-copy strong,.memory-copy small,.memory-copy>span,#memory-detail h2,.memory-detail-body{overflow-wrap:anywhere;word-break:break-word}.memory-copy{overflow:hidden}.memory-copy strong,.memory-copy small,.memory-copy>span{max-width:100%}
@media(max-width:760px){[data-memory-style=passport] .memory-day,[data-memory-style=passport] .memory-day:nth-child(even){transform:none}}
