.work-memory {position:relative;height:820svh;background:#141413;color:#f6f4ee;}
.memory-sticky {position:sticky;top:64px;height:calc(100svh - 64px);min-height:580px;overflow:hidden;isolation:isolate;}
.memory-layout {height:100%;display:grid;grid-template-columns:1fr 1.1fr;gap:45px;align-items:center;}
.memory-copy {position:relative;z-index:5;padding-block:25px;}
.memory-copy h2 {font-size:clamp(32px,3.5vw,54px);font-weight:500;line-height:1.2;letter-spacing:-.035em;white-space:pre-line;margin:0 0 24px;}
.memory-intro {font-size:16px;line-height:1.8;color:#93938f;max-width:460px;}
.memory-detail {margin-top:48px;min-height:170px;max-width:430px;}
.memory-detail-index {color:#b7a373;font-size:12px;letter-spacing:.12em;font-variant-numeric:tabular-nums;}
.memory-detail h3 {font-weight:500;font-size:24px;margin:15px 0 14px;line-height:1.3;}
.memory-detail p {font-size:15px;line-height:1.85;color:#aaa69b;margin:0;}
.memory-nav {display:flex;gap:16px;flex-wrap:wrap;margin-top:20px;}
.memory-nav button {border:0;border-bottom:1px solid transparent;padding:8px 0;background:none;font:inherit;font-size:12px;color:#777;cursor:pointer;}
.memory-nav button[aria-pressed="true"] {color:#ead59c;border-bottom-color:#a68d4f;}
.memory-nav button:focus-visible {outline:2px solid #dbc17e;outline-offset:4px;}
.memory-visual {position:relative;height:540px;min-width:0;}
.memory-scene {position:absolute;width:560px;height:520px;top:50%;left:50%;transform:translate(-50%,-50%) scale(var(--scene-scale,1));transform-origin:center;}
.memory-folder {position:absolute;left:20px;top:130px;width:400px;height:330px;--shine-angle:135deg;--shine-x:20%;--shine-y:10%;}
.memory-folder {--folder-top:82 63 13;--folder-bottom:140 113 37;--folder-light:255 232 166;--folder-text:#fff0ba;--folder-caption:#e2d3a4;}
.memory-folder[data-folder="repo"] {--folder-top:24 59 65;--folder-bottom:53 112 117;--folder-light:178 239 231;--folder-text:#d4fff4;--folder-caption:#b9dad5;}
.memory-folder[data-folder="personal"] {--folder-top:62 40 75;--folder-bottom:113 77 130;--folder-light:239 204 255;--folder-text:#f3dcff;--folder-caption:#dbc5e3;}
.memory-folder[data-folder="procedure"] {--folder-top:73 41 28;--folder-bottom:135 83 53;--folder-light:255 215 181;--folder-text:#ffe5ce;--folder-caption:#e7c9b3;}
.memory-folder-front {position:absolute;top:-24px;bottom:0;left:0;right:0;z-index:20;}
.memory-folder-glass {position:absolute;inset:0;clip-path:path("M 38 1 H 157 Q 170 1 181 7 L 217 25 Q 228 31 241 31 H 362 Q 399 31 399 68 V 315 Q 399 353 361 353 H 39 Q 1 353 1 315 V 39 Q 1 1 38 1 Z");background:radial-gradient(ellipse at 20% 10%,rgb(var(--folder-light) / calc(.10 * var(--folder-fade,1))),transparent 65%),linear-gradient(165deg,rgb(var(--folder-top) / calc(.86 * var(--folder-fade,1))),rgb(var(--folder-bottom) / calc(.80 * var(--folder-fade,1))));backdrop-filter:blur(var(--glass-blur,24px)) saturate(calc(1 - .2 * var(--folder-fade,1)));-webkit-backdrop-filter:blur(var(--glass-blur,24px)) saturate(calc(1 - .2 * var(--folder-fade,1)));}
.memory-folder-edge {position:absolute;inset:0;background:conic-gradient(from 279deg,rgb(var(--folder-light) / .13) 0deg,rgb(var(--folder-light) / .85) 36deg,rgb(var(--folder-light) / .13) 75deg,rgb(var(--folder-light) / .13) 180deg,rgb(var(--folder-light) / .7) 216deg,rgb(var(--folder-light) / .13) 255deg);mask:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20354%22%3E%3Cpath%20d%3D%22M%2038%201%20H%20157%20Q%20170%201%20181%207%20L%20217%2025%20Q%20228%2031%20241%2031%20H%20362%20Q%20399%2031%20399%2068%20V%20315%20Q%20399%20353%20361%20353%20H%2039%20Q%201%20353%201%20315%20V%2039%20Q%201%201%2038%201%20Z%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.25%22%2F%3E%3C%2Fsvg%3E') center / 100% 100% no-repeat;pointer-events:none;}
.memory-folder-content {position:relative;padding:56px 32px 32px;height:100%;display:flex;flex-direction:column;pointer-events:none;}
.memory-solid-icon {width:58px;height:58px;object-fit:contain;filter:invert(91%) sepia(26%) saturate(689%) hue-rotate(342deg) brightness(105%);}
.memory-folder h3 {font-size:29px;font-weight:500;letter-spacing:-.035em;color:var(--folder-text);margin:22px 0 0;}
.memory-folder-content p {margin:auto 0 0;color:var(--folder-caption);font-size:14px;line-height:1.8;max-width:305px;}
.memory-card-stack {position:absolute;inset:0;}
.memory-dimension {position:absolute;left:50px;top:0;width:144px;height:164px;border-radius:34px;background:var(--card-color);box-shadow:0 4px 14px #0003,inset 0 1px #fff6;display:grid;place-items:center;transform-origin:50% 100%;}
.memory-dimension .memory-solid-icon {width:56px;height:56px;filter:brightness(0) invert(1);opacity:.9;}
.memory-card-number {position:absolute;bottom:22px;left:24px;color:#45413d77;font-size:12px;letter-spacing:.1em;}
@media(max-width:800px){.work-memory{height:850svh}.memory-sticky{top:60px;height:calc(100svh - 60px);min-height:650px}.memory-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:0;padding-block:24px}.memory-copy{padding:0}.memory-copy h2{font-size:32px;margin-bottom:14px}.memory-intro{font-size:13px;margin:0}.memory-detail{margin-top:22px;min-height:110px}.memory-detail h3{font-size:20px;margin:10px 0}.memory-detail p{font-size:13px}.memory-nav{margin-top:0;gap:18px}.memory-visual{height:300px;min-height:0}.memory-scene{--scene-scale:.65}}
@media(max-width:430px){.memory-copy h2{font-size:28px}.memory-layout{width:calc(100% - 40px)}.memory-visual{height:270px}.memory-scene{--scene-scale:.57}.memory-intro{max-width:330px}.memory-detail{min-height:112px}}
@media(prefers-reduced-motion:reduce){.memory-folder,.memory-dimension{will-change:auto}}
/* Keep the full fan in view on narrow screens. */
.memory-folder { --shine-angle:279deg; }
@media(max-width:540px){.memory-scene{--scene-scale:.44;left:calc(50% + 37px)}.memory-sticky{min-height:0}.memory-visual{height:280px}}
@media(max-width:540px) and (max-height:740px){.memory-layout{padding-block:12px}.memory-copy h2{font-size:24px;margin-bottom:10px}.memory-intro{font-size:12px;line-height:1.6}.memory-detail{margin-top:15px;min-height:100px}.memory-detail h3{font-size:18px}.memory-nav{margin-top:0}.memory-visual{height:220px}.memory-scene{--scene-scale:.37;left:calc(50% + 32px)}}

.memory-folder[data-folder="repo"] .memory-folder-content .memory-solid-icon {filter:invert(91%) sepia(18%) saturate(521%) hue-rotate(105deg) brightness(108%);}
.memory-folder[data-folder="personal"] .memory-folder-content .memory-solid-icon {filter:invert(91%) sepia(18%) saturate(500%) hue-rotate(210deg) brightness(108%);}
.memory-folder[data-folder="procedure"] .memory-folder-content .memory-solid-icon {filter:invert(91%) sepia(28%) saturate(521%) hue-rotate(325deg) brightness(108%);}

/* Keep ancestors free of opacity/filter backdrop roots at rest, so the glass
   can sample the actual folders and cards behind it. Hover is a separate layer. */
.memory-folder-content {z-index:1;}

/* Fade the material and decoration independently; the sampling layer remains
   in the same backdrop root for every scroll frame, including resting states. */
.memory-folder-edge {opacity:var(--folder-fade,1);}

/* Scroll-linked copy shares the same handoff as the cards; no text replacement. */
.memory-detail {display:grid;align-content:start;}
.memory-detail-panel {grid-area:1 / 1;min-width:0;pointer-events:none;will-change:opacity,transform;}
.memory-dimension {clip-path:polygon(100.000% 50.000%,99.985% 63.695%,99.938% 68.065%,99.861% 71.234%,99.753% 73.807%,99.613% 76.005%,99.443% 77.941%,99.240% 79.678%,99.006% 81.258%,98.740% 82.708%,98.441% 84.049%,98.110% 85.295%,97.744% 86.458%,97.345% 87.546%,96.911% 88.566%,96.442% 89.524%,95.936% 90.426%,95.393% 91.274%,94.811% 92.071%,94.190% 92.822%,93.528% 93.528%,92.822% 94.190%,92.071% 94.811%,91.274% 95.393%,90.426% 95.936%,89.524% 96.442%,88.566% 96.911%,87.546% 97.345%,86.458% 97.744%,85.295% 98.110%,84.049% 98.441%,82.708% 98.740%,81.258% 99.006%,79.678% 99.240%,77.941% 99.443%,76.005% 99.613%,73.807% 99.753%,71.234% 99.861%,68.065% 99.938%,63.695% 99.985%,50.000% 100.000%,36.305% 99.985%,31.935% 99.938%,28.766% 99.861%,26.193% 99.753%,23.995% 99.613%,22.059% 99.443%,20.322% 99.240%,18.742% 99.006%,17.292% 98.740%,15.951% 98.441%,14.705% 98.110%,13.542% 97.744%,12.454% 97.345%,11.434% 96.911%,10.476% 96.442%,9.574% 95.936%,8.726% 95.393%,7.929% 94.811%,7.178% 94.190%,6.472% 93.528%,5.810% 92.822%,5.189% 92.071%,4.607% 91.274%,4.064% 90.426%,3.558% 89.524%,3.089% 88.566%,2.655% 87.546%,2.256% 86.458%,1.890% 85.295%,1.559% 84.049%,1.260% 82.708%,0.994% 81.258%,0.760% 79.678%,0.557% 77.941%,0.387% 76.005%,0.247% 73.807%,0.139% 71.234%,0.062% 68.065%,0.015% 63.695%,0.000% 50.000%,0.015% 36.305%,0.062% 31.935%,0.139% 28.766%,0.247% 26.193%,0.387% 23.995%,0.557% 22.059%,0.760% 20.322%,0.994% 18.742%,1.260% 17.292%,1.559% 15.951%,1.890% 14.705%,2.256% 13.542%,2.655% 12.454%,3.089% 11.434%,3.558% 10.476%,4.064% 9.574%,4.607% 8.726%,5.189% 7.929%,5.810% 7.178%,6.472% 6.472%,7.178% 5.810%,7.929% 5.189%,8.726% 4.607%,9.574% 4.064%,10.476% 3.558%,11.434% 3.089%,12.454% 2.655%,13.542% 2.256%,14.705% 1.890%,15.951% 1.559%,17.292% 1.260%,18.742% 0.994%,20.322% 0.760%,22.059% 0.557%,23.995% 0.387%,26.193% 0.247%,28.766% 0.139%,31.935% 0.062%,36.305% 0.015%,50.000% 0.000%,63.695% 0.015%,68.065% 0.062%,71.234% 0.139%,73.807% 0.247%,76.005% 0.387%,77.941% 0.557%,79.678% 0.760%,81.258% 0.994%,82.708% 1.260%,84.049% 1.559%,85.295% 1.890%,86.458% 2.256%,87.546% 2.655%,88.566% 3.089%,89.524% 3.558%,90.426% 4.064%,91.274% 4.607%,92.071% 5.189%,92.822% 5.810%,93.528% 6.472%,94.190% 7.178%,94.811% 7.929%,95.393% 8.726%,95.936% 9.574%,96.442% 10.476%,96.911% 11.434%,97.345% 12.454%,97.744% 13.542%,98.110% 14.705%,98.441% 15.951%,98.740% 17.292%,99.006% 18.742%,99.240% 20.322%,99.443% 22.059%,99.613% 23.995%,99.753% 26.193%,99.861% 28.766%,99.938% 31.935%,99.985% 36.305%);}
.memory-card-number {display:none;}
/* Four folders in depth; Personal Memory opens as one six-dimension overview. */
.work-memory {height:420svh;}
.memory-layout {grid-template-columns:1fr 1.12fr;gap:48px;}
.memory-copy h2 {font-size:clamp(30px,3.1vw,46px);}
.memory-intro {font-size:14px;}
.memory-detail {margin-top:28px;min-height:330px;}
.memory-detail-panel>h3 {font-size:22px;}
.memory-dimension-copy {display:grid;grid-template-columns:1fr 1fr;gap:17px 22px;margin-top:20px;}
.memory-dimension-copy h4 {margin:0 0 7px;font-size:14px;font-weight:500;color:#e1d9e7;}
.memory-dimension-copy p {font-size:12px;line-height:1.7;color:#9b969f;}
.memory-visual {height:650px;}
.memory-scene {height:640px;}
.memory-folder {top:270px;transform-origin:50% 95%;}
.memory-folder-depth {position:absolute;inset:0;pointer-events:none;background:rgb(0 0 0 / var(--depth-dark,0));clip-path:path("M 38 1 H 157 Q 170 1 181 7 L 217 25 Q 228 31 241 31 H 362 Q 399 31 399 68 V 315 Q 399 353 361 353 H 39 Q 1 353 1 315 V 39 Q 1 1 38 1 Z");opacity:var(--folder-fade,1);}
.memory-dimension {width:94px;height:94px;border-radius:24px;left:44px;box-shadow:none;}
.memory-dimension .memory-solid-icon {width:40px;height:40px;}
.memory-next {position:absolute;bottom:-22px;left:42%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:12px;padding:11px 24px;border:1px solid #ffffff40;border-radius:999px;background:transparent;color:#e9e5dd;font:inherit;font-size:14px;cursor:pointer;transition:background .2s,border-color .2s;}
.memory-next:hover {background:#ffffff0b;border-color:#ffffff80;}
.memory-next:focus-visible {outline:2px solid #eee;outline-offset:5px;}
.memory-next .icon {width:17px;height:17px;}
@media(max-width:1000px) and (min-width:801px){.memory-detail{min-height:370px}.memory-dimension-copy{gap:14px}.memory-dimension-copy p{font-size:11px}}
@media(max-width:800px){.memory-layout{grid-template-columns:1fr;gap:0;padding-block:16px;grid-template-rows:auto 1fr}.memory-copy h2{font-size:26px;white-space:normal;margin-bottom:10px}.memory-intro{font-size:12px;line-height:1.6}.memory-detail{margin-top:16px;min-height:246px}.memory-detail-panel>h3{font-size:18px;margin:8px 0}.memory-dimension-copy{gap:10px 16px;margin-top:12px}.memory-dimension-copy h4{font-size:12px;margin-bottom:4px}.memory-dimension-copy p{font-size:10px;line-height:1.55}.memory-nav{gap:15px;margin-top:0}.memory-nav button{font-size:10px}.memory-visual{height:300px}.memory-scene{--scene-scale:.43}.memory-next{bottom:-8px;left:50%;padding:8px 21px;font-size:12px}}
@media(max-width:540px) and (max-height:740px){.memory-copy h2{font-size:21px}.memory-intro{display:none}.memory-detail{min-height:218px;margin-top:12px}.memory-dimension-copy{gap:8px 12px}.memory-dimension-copy p{font-size:9.5px}.memory-detail-panel>h3{font-size:16px}.memory-visual{height:240px}.memory-scene{--scene-scale:.34}.memory-next{bottom:0}}

/* Keep all six descriptions and the next control inside the mobile scene. */
@media(max-width:800px){
 .memory-intro{display:none}
 .memory-nav{flex-wrap:nowrap;gap:12px;justify-content:space-between}
 .memory-nav button{font-size:9px;white-space:nowrap}
 .memory-visual{height:250px}
 .memory-scene{--scene-scale:.34;left:calc(50% + 20px);top:calc(50% - 18px)}
 .memory-next{bottom:0}
}
@media(max-width:540px) and (max-height:740px){
 .memory-visual{height:210px}
 .memory-scene{--scene-scale:.28}
 .memory-copy h2{font-size:20px}
 .memory-dimension-copy{gap:7px 12px}
 .memory-dimension-copy p{font-size:9px}
}

/* Personal dimensions bloom in front of the folder as a six-circle arc. */
.memory-card-stack{z-index:30;pointer-events:none}
.memory-dimension{left:0;top:0;width:76px;height:76px;border-radius:50%;clip-path:none;background:#896ba0;transform-origin:50% 50%;box-shadow:inset 0 1px 0 #ffffff26;will-change:transform,opacity}
.memory-dimension .memory-solid-icon{width:32px;height:32px;opacity:.96}

/* Glass circles and linked dimension descriptions. */
.memory-dimension {
 background:rgb(137 107 160 / .55);border:1px solid #ddc5f23d;
 backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
 box-shadow:0 8px 22px #0005,inset 0 1px 0 #ffffff29;
 cursor:pointer;transition:background .24s ease,border-color .24s ease,box-shadow .24s ease;
}
.memory-dimension .memory-solid-icon{transition:filter .24s ease}
.memory-dimension.is-highlighted{background:rgb(255 250 255 / .94);border-color:#fff9;box-shadow:0 10px 26px #0005,inset 0 1px #fff}
.memory-dimension.is-highlighted .memory-solid-icon{filter:invert(43%) sepia(17%) saturate(1118%) hue-rotate(230deg) brightness(90%)}
.memory-dimension:focus-visible{outline:2px solid #c2a1db;outline-offset:5px}
.memory-dimension-description{position:relative;isolation:isolate}
.memory-dimension-description::before{
 content:"";position:absolute;inset:-8px -9px;border:1px solid #a17bbd;
 border-radius:18px;corner-shape:superellipse(1.5);pointer-events:none;
 opacity:0;transition:opacity .24s ease;z-index:-1;
}
.memory-dimension-description.is-highlighted::before{opacity:1}
.memory-dimension-copy h4{display:flex;align-items:center;gap:7px}
.memory-copy-icon{width:15px;height:15px;flex:none;filter:brightness(0) invert(1);opacity:.8}
@media(max-width:800px){.memory-copy-icon{width:12px;height:12px}.memory-dimension-copy h4{gap:5px}.memory-dimension-description::before{inset:-4px -5px;border-radius:12px}}

/* Section title spans both columns, matching the surrounding sections. */
.memory-layout{grid-template-rows:auto minmax(0,1fr);column-gap:48px;row-gap:16px;padding-block:32px}
.memory-heading{grid-column:1 / -1;width:100%;margin-bottom:0}
.memory-heading .memory-intro{display:block;max-width:1000px;margin:16px auto 0;font-size:16px;line-height:1.8}
.memory-copy{padding:0}
.memory-detail{margin-top:0}
.memory-visual{height:min(600px,calc(100svh - 330px))}
.memory-scene{height:560px}
.memory-folder{top:190px}
.memory-next{bottom:0}
@media(max-width:800px){
 .memory-layout{grid-template-rows:auto auto minmax(0,1fr);row-gap:14px;padding-block:16px}
 .memory-heading h2{font-size:24px;line-height:1.25}
 .memory-heading .memory-intro{font-size:11px;line-height:1.5;margin-top:10px}
 .memory-visual{height:210px}
 .memory-scene{--scene-scale:.32;top:calc(50% - 12px)}
 .memory-detail{min-height:0}
}
@media(max-width:540px) and (max-height:740px){
 .memory-layout{row-gap:9px;padding-block:10px}
 .memory-heading h2{font-size:19px}
 .memory-heading .memory-intro{font-size:9px;margin-top:7px}
 .memory-visual{height:178px}
 .memory-scene{--scene-scale:.27}
}

/* Four clickable rows share one expanded content area with the folder stack. */
.memory-detail{display:block;min-height:0;max-width:560px;margin:0}
.memory-copy{align-self:center;transform:translateY(24px)}
.memory-list-index{font-size:14px;color:#8b8b8b;margin:0 0 26px;letter-spacing:.04em}
.memory-list-item{border-radius:25px;corner-shape:superellipse(1.5);background:transparent;transition:background .35s ease;margin:3px 0}
.memory-list-item.is-active{background:#252525}
.memory-list-trigger{display:block;width:100%;border:0;background:none;text-align:left;padding:18px 24px;font:inherit;font-size:22px;color:#858585;cursor:pointer;transition:color .3s}
.memory-list-item.is-active .memory-list-trigger{color:#f5f5f5;font-weight:500}
.memory-list-trigger:focus-visible{outline:1px solid #bda0d1;outline-offset:-4px;border-radius:22px}
.memory-list-body{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .45s ease,opacity .35s ease}
.memory-list-item.is-active .memory-list-body{grid-template-rows:1fr;opacity:1}
.memory-list-inner{overflow:hidden;min-height:0}
.memory-list-inner>p{padding:0 24px 22px;font-size:15px;line-height:1.7;color:#aaa}
.memory-dimension-viewport{display:grid;overflow:hidden;margin:0 14px}
.memory-dimension-page{grid-area:1/1;min-width:0;grid-template-columns:1fr 1fr;gap:20px;margin:0;padding:8px 10px 10px;align-content:start}
.memory-dimension-page h4{font-size:14px;line-height:1.5}
.memory-dimension-page p{font-size:12px;line-height:1.65}
.memory-pagination{display:flex;justify-content:center;gap:2px;padding:2px 0 12px}
.memory-pagination button{width:20px;height:20px;padding:6px;border:0;background:transparent;cursor:pointer}
.memory-pagination button::after{content:"";display:block;width:8px;height:8px;border-radius:50%;background:#626262;transition:background .25s}
.memory-pagination button[aria-current=true]::after{background:#ddd}
.memory-pagination button:focus-visible{outline:1px solid #bda0d1;border-radius:50%}
.memory-next{bottom:-20px}
@media(max-width:800px){
 .memory-copy{transform:none}.memory-list-index{margin-bottom:9px;font-size:11px}
 .memory-list-trigger{font-size:15px;padding:10px 15px}
 .memory-list-inner>p{font-size:11px;padding:0 15px 12px}
 .memory-list-item{border-radius:18px}.memory-dimension-viewport{margin:0 6px}
 .memory-dimension-page{gap:14px;padding:5px 9px 8px}.memory-dimension-page h4{font-size:12px}.memory-dimension-page p{font-size:10px}
 .memory-pagination{padding-bottom:5px}.memory-next{bottom:-8px}
}
@media(prefers-reduced-motion:reduce){.memory-list-body,.memory-list-item{transition:none}}
@media(max-width:540px) and (max-height:740px){
 .memory-list-trigger{padding-block:8px}
 .memory-visual{height:148px}
 .memory-scene{--scene-scale:.23;top:calc(50% - 14px)}
 .memory-next{bottom:0;padding:6px 18px}
}
/* Subtle hover surface for inactive memory rows. */
@media(hover:hover){
 .memory-list-item:not(.is-active):hover{background:#ffffff16}
 .memory-list-item:not(.is-active):hover .memory-list-trigger{color:#e2e2e2}
}
.memory-list-item:not(.is-active):focus-within{background:#ffffff16}

/* Reserve the tallest expanded row so selection cannot recenter the layout. */
.work-memory{overflow-anchor:none;--memory-entry-space:calc(var(--work-boundary-space) - 32px);padding-top:var(--memory-entry-space);height:calc(420svh + var(--memory-entry-space))}
@media(max-width:800px){.work-memory{--memory-entry-space:calc(var(--work-boundary-space) - 16px)}}
@media(max-width:540px) and (max-height:740px){.work-memory{--memory-entry-space:calc(var(--work-boundary-space) - 10px)}}
.memory-copy{height:var(--memory-copy-height,460px)}
@media(min-width:801px){
 .memory-sticky{min-height:var(--memory-min-height,580px);top:min(64px,calc(100svh - var(--memory-min-height,580px)))}
 .memory-layout{row-gap:32px;align-items:center}
 .memory-copy{align-self:center;transform:none}
 .memory-visual{height:100%;min-height:0;align-self:stretch;transform:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:28px}
 .memory-artboard{position:relative;width:100%;height:calc(468px * var(--scene-scale,1));flex:none}
 .memory-scene{left:calc(50% + 60px * var(--scene-scale,1));top:calc(50% - 26px * var(--scene-scale,1))}
 .memory-next{position:relative;inset:auto;transform:none;flex:none}
}

/* Selected rows reuse the shared card lighting without changing their size. */
.memory-list-item.border-light--card{
 border:0;--edge-radius:240px;--edge-proximity:100;--surface-radius:320px;
 --surface-alpha:.07;--spill-blur:8px;--glow-rgb:224,205,241;
 box-shadow:none;transition:background .35s ease,box-shadow .35s ease;
}
.memory-list-item.border-light--card.is-active{
 background:#343236;
 box-shadow:0 12px 30px #0005,0 3px 8px #0003;
}
.memory-list-item:not(.is-active)::before,
.memory-list-item:not(.is-active)::after,
.memory-list-item:not(.is-active)>.edge-bloom{opacity:0}
.memory-list-item.border-light--card::before,
.memory-list-item.border-light--card::after,
.memory-list-item.border-light--card>.edge-bloom,
.memory-list-item.border-light--card>.edge-bloom::before{corner-shape:superellipse(1.5)}

/* Align every lighting layer to the same contour; avoid half-pixel double rims. */
.memory-list-item.border-light--card::before,
.memory-list-item.border-light--card::after,
.memory-list-item.border-light--card>.edge-bloom,
.memory-list-item.border-light--card>.edge-bloom::before{
 inset:0;border-radius:inherit;corner-shape:inherit;
}
.memory-list-item.border-light--card::after{padding:1px}

/* Mobile: use the available row for the illustration, not a tiny fixed canvas. */
@media(max-width:800px){
 .memory-list-index{text-align:center;width:100%}
 .memory-copy{height:auto;align-self:start}
 .memory-visual{height:auto;min-height:0;align-self:stretch;transform:none}
 .memory-scene{left:calc(50% + 60px * var(--scene-scale));top:calc(50% - 24px - 63px * var(--scene-scale))}
 .memory-next{bottom:0;left:50%}
}

/* Compact desktop windows retain the same two-column alignment. */
@media(min-width:801px) and (max-height:800px){
 .memory-layout{padding-block:24px;row-gap:24px}
 .memory-heading h2{font-size:clamp(28px,3vw,40px)}
 .memory-heading .memory-intro{font-size:14px;margin-top:12px;line-height:1.6}
 .memory-list-index{margin-bottom:14px}
 .memory-list-trigger{font-size:19px;padding:12px 20px}
 .memory-list-inner>p{font-size:14px;padding:0 20px 16px}
 .memory-dimension-page{gap:14px}
 .memory-dimension-page p{font-size:11px}
}
@media(max-width:800px){.memory-artboard{position:absolute;inset:0}}
