/* ---- editorial scene engine: an article told as a sequence of art-directed scenes ---- */
#reader .inner.edmode { max-width: none; padding: 0; }
.ed { --ed-dark: #141220; --ed-dark2: #1d1a2c; --ed-line: #2c2840; --ed-soft: #cfc9dd; --ed-dim: #6f6a86; --ed-violet: #8b5cf6; --ed-ember: #f2b46b; --ed-h: calc(100vh - var(--barh, 73px)); position: relative; }
.ed .sc { position: relative; padding: 14vh 7vw; }
.ed .sc.dark { background: var(--ed-dark); color: #ece8f4; }
.ed .sc.tint { background: var(--paper2); }
.ed .lab { font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: flex; gap: 14px; align-items: center; }
.ed .dark .lab { color: #a98cf0; }
.ed .lab i { display: inline-block; width: 36px; height: 1px; background: currentColor; opacity: .6; }
.ed .h { font: 500 clamp(44px, 5.4vw, 96px)/0.9 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin-top: 22px; max-width: 16ch; }
.ed .h em, .ed .big em { font-style: normal; color: var(--accent); }
.ed .dark .h em, .ed .dark .big em { color: #a98cf0; }
.ed .p { font: 400 19px/1.72 var(--serif); color: var(--ink2); max-width: 62ch; margin-top: 22px; }
.ed .dark .p { color: var(--ed-soft); }
.ed .p + .p { margin-top: 18px; }
.ed .cap { font: 500 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.ed .dark .cap { color: var(--ed-dim); }
.ed .cap b { color: var(--accent); font-weight: 500; margin-right: 10px; }
.ed .dark .cap b { color: #a98cf0; }
.ed img { display: block; max-width: 100%; }

/* reveal system: motion, then rest */
.ed .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.ed .in .rv, .ed .rv.in { opacity: 1; transform: none; }
.ed .in .rv.d1 { transition-delay: .12s; } .ed .in .rv.d2 { transition-delay: .24s; } .ed .in .rv.d3 { transition-delay: .36s; } .ed .in .rv.d4 { transition-delay: .48s; }
.ed .mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.7,0,.2,1); }
.ed .in .mask { clip-path: inset(0 0 0 0); }
.ed .ln { display: block; overflow: hidden; }
.ed .ln > span { display: block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.ed .in .ln > span { transform: none; }
.ed .in .ln:nth-child(2) > span { transition-delay: .1s; } .ed .in .ln:nth-child(3) > span { transition-delay: .2s; } .ed .in .ln:nth-child(4) > span { transition-delay: .3s; }

/* the thread: a chapter rail that ties the scenes together */
.ed-rail { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
.ed-rail a { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 500 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: transparent; transition: color .3s; }
.ed-rail a i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #8a85a0; background: transparent; transition: all .35s; flex: none; }
.ed-rail a.on i { background: var(--ed-violet); border-color: var(--ed-violet); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.ed-rail a.done i { background: #8a85a0; }
.ed-rail:hover a { color: #8a85a0; }
.ed-rail a.on { color: var(--accent) !important; }
.ed-rail a span { background: var(--paper); padding: 3px 6px; }
.ed-rail:not(:hover) a span { background: transparent; }

/* HERO */
.ed .hero { align-items: stretch; gap: 0; border-bottom: 0; min-height: var(--ed-h); padding: 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--ed-dark); color: #f4f0e8; overflow: hidden; }
.ed .hero .copy { padding: 11vh 4vw 8vh 7vw; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; z-index: 2; }
.ed .hero .eyb { font: 500 11px/1.6 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #a98cf0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ed .hero .eyb span { color: var(--ed-dim); }
#reader .ed .hero h1 { font: 500 clamp(52px, 5.4vw, 104px)/0.88 var(--display); text-transform: uppercase; margin-top: 28px; display: block; letter-spacing: 0; color: #f4f0e8; background: none; -webkit-text-fill-color: #f4f0e8; }
#reader .ed .hero h1 em { font-style: normal; color: #a98cf0; -webkit-text-fill-color: #a98cf0; }
.ed .hero .dek { font: italic 300 clamp(19px, 1.55vw, 25px)/1.45 var(--serif); color: var(--ed-soft); max-width: 36ch; margin-top: 28px; }
.ed .hero .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ed .hero .meta span { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-soft); border: 1px solid #3a3550; padding: 7px 10px; }
.ed .hero .art { position: relative; overflow: hidden; }
.ed .hero .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.6s cubic-bezier(.2,.7,.2,1); }
.ed .hero.in .art img { transform: scale(1.0); }
.ed .hero .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ed-dark) 0%, rgba(20,18,32,0) 26%), linear-gradient(0deg, rgba(20,18,32,.55), rgba(20,18,32,0) 30%); }
.ed .hero .art .fig { position: absolute; right: 22px; bottom: 18px; z-index: 2; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #cfc9dd; }
.ed .hero .scroll { font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ed-dim); display: flex; align-items: center; gap: 12px; }
.ed .hero .scroll i { width: 1px; height: 42px; background: linear-gradient(#a98cf0, transparent); animation: edDrip 2.2s ease-in-out infinite; }
@keyframes edDrip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* DATA */
.ed .data .grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin-top: 7vh; border-top: 1px solid var(--ink); }
.ed .data .it { padding: 26px 26px 0 0; border-right: 1px solid var(--rule); }
.ed .data .it:last-child { border-right: 0; }
.ed .data .it + .it { padding-left: 26px; }
.ed .data .num { font: 500 clamp(80px, 10vw, 180px)/0.85 var(--display); font-variant-numeric: tabular-nums; }
.ed .data .num small { font-size: .32em; margin-left: 6px; color: var(--accent); }
.ed .data .il { font: 500 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 14px; max-width: 24ch; }
.ed .data .kick { margin-top: 8vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: end; }
.ed .data .kick .big { font: 500 clamp(34px, 3.6vw, 60px)/0.95 var(--display); text-transform: uppercase; }

/* STATEMENT */
.ed .statement { min-height: var(--ed-h); display: flex; flex-direction: column; justify-content: center; }
.ed .statement .big { font: 300 clamp(40px, 5.2vw, 92px)/1.06 var(--serif); letter-spacing: -.01em; max-width: 19ch; margin-top: 30px; }
.ed .statement .big em { font-style: italic; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 3px; background-repeat: no-repeat; background-position: 0 92%; transition: background-size 1.4s cubic-bezier(.7,0,.2,1) .6s; }
.ed .statement.in .big em { background-size: 100% 3px; }
.ed .statement .sub { margin-top: 36px; font: 500 11px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ed-dim); max-width: 60ch; }

/* READ (quiet) */
.ed .read { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 6vw; align-items: start; }
.ed .read .side { position: sticky; top: calc(var(--barh, 73px) + 8vh); }
.ed .read .body .p:first-child { margin-top: 0; }
.ed .read .body .p:first-child::first-letter { font: 500 4.1em/0.8 var(--display); float: left; margin: 6px 12px 0 0; color: var(--accent); }
.ed .pull { margin-top: 44px; padding: 26px 0 0; border-top: 1px solid var(--ink); font: italic 300 clamp(24px, 2.2vw, 34px)/1.3 var(--serif); color: var(--ink); max-width: 30ch; }
.ed .pull::before { content: ''; display: block; width: 44px; height: 3px; background: var(--accent); margin-bottom: 18px; }

/* COMPARE (drag slider or split) */
.ed .compare .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: end; }
.ed .cmp { position: relative; margin-top: 6vh; aspect-ratio: var(--ar, 1.283); background: #0f0d18; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; box-shadow: 0 40px 90px rgba(20,18,32,.28); }
.ed .cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed .cmp .b { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ed .cmp .bar { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(139,92,246,.6), 0 0 24px rgba(139,92,246,.8); }
.ed .cmp .bar::after { content: '\2194'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ed-dark); font: 500 18px/46px var(--mono); text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ed .cmp .tg { position: absolute; top: 16px; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 8px 10px; background: rgba(20,18,32,.82); color: #ece8f4; }
.ed .cmp .tg.l { left: 16px; } .ed .cmp .tg.r { right: 16px; background: #6a3fd6; }
.ed .switch { display: inline-flex; margin-top: 26px; border: 1px solid var(--ink); border-radius: 999px; padding: 4px; gap: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ed .switch span { padding: 9px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); transition: background .3s, color .3s; }
.ed .switch span.on { background: var(--ink); color: var(--paper); }
.ed .switch small { align-self: center; padding: 0 10px 0 6px; color: var(--faint); font-size: 9.5px; }
.ed .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4vw; margin-top: 6vh; }
.ed .split figure { margin: 0; }
.ed .split .fr { overflow: hidden; background: #0f0d18; }
.ed .split .fr img { width: 100%; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.ed .split figure:hover .fr img { transform: scale(1.04); }
.ed .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; margin-top: 5vh; }
.ed .cols .p { margin-top: 0; }

/* PROCESS */
.ed .process .steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 2.2vw; margin-top: 8vh; }
.ed .process .wire { position: absolute; left: 0; right: 0; top: 22px; height: 2px; }
.ed .process .wire::before { content: ''; position: absolute; inset: 0; background: var(--rule2); }
.ed .process .wire::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 2.2s cubic-bezier(.6,0,.2,1) .3s; }
.ed .process.in .wire::after { transform: scaleX(1); }
.ed .process .st { position: relative; }
.ed .process .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; font: 500 13px/1 var(--mono); position: relative; z-index: 1; transition: background .4s, color .4s, border-color .4s; }
.ed .process.in .st .dot { background: var(--ink); color: var(--paper); }
.ed .process.in .st:nth-child(2) .dot { transition-delay: .3s; } .ed .process.in .st:nth-child(3) .dot { transition-delay: .9s; } .ed .process.in .st:nth-child(4) .dot { transition-delay: 1.5s; } .ed .process.in .st:nth-child(5) .dot { transition-delay: 2.1s; }
.ed .process .st .crop { margin-top: 24px; }
.ed .process .st h4 { font: 500 clamp(24px, 2vw, 34px)/0.95 var(--display); text-transform: uppercase; margin-top: 22px; }
.ed .process .st p { font: 400 16px/1.6 var(--serif); color: var(--ink2); margin-top: 10px; }

/* crops of a larger image (used everywhere) */
.ed .crop { position: relative; overflow: hidden; background: #f1ece2; aspect-ratio: var(--car, 1.34); }
.ed .crop img { position: absolute; max-width: none; }

/* SCALE: the same render at game size and at reading size */
.ed .scale .row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6vw; align-items: center; margin-top: 6vh; }
.ed .scale .n { font: 500 clamp(140px, 19vw, 330px)/0.8 var(--display); letter-spacing: -.02em; }
.ed .scale .n small { font-size: .26em; color: #a98cf0; margin-left: 8px; }
.ed .scale .demo { display: grid; grid-template-columns: auto 1fr; gap: 3vw; align-items: end; }
.ed .scale .tiny { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ed .scale .tiny .box { width: 64px; outline: 1px dashed #a98cf0; outline-offset: 6px; }
.ed .scale .tiny img { width: 64px; image-rendering: auto; }
.ed .scale .large img { width: 100%; }
.ed .scale .large { position: relative; }
.ed .scale .large .ring { position: absolute; border: 2px solid var(--ed-ember); border-radius: 4px; opacity: 0; transition: opacity .6s ease 1s; }
.ed .scale.in .large .ring { opacity: 1; }
.ed .scale .large .ring b { position: absolute; left: -2px; top: calc(100% + 6px); white-space: nowrap; font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-dark); background: var(--ed-ember); padding: 5px 7px; }

/* STICKY sequence: the visual holds still while the explanation moves */
.ed .sticky { padding: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ed .sticky .stage { position: sticky; top: var(--barh, 73px); height: var(--ed-h); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4vh 3vw; background: var(--ed-dark); gap: 16px; }
.ed .sticky .frame { position: relative; width: min(100%, calc((var(--ed-h) - 150px) * var(--far, 1.339))); aspect-ratio: var(--far, 1.339); overflow: hidden; background: #f1ece2; }
.ed .sticky .cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.22,.7,.18,1); }
.ed .sticky .cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.ed .sticky .cam img.on { opacity: 1; }
.ed .sticky .ov { position: absolute; inset: 0; pointer-events: none; }
.ed .sticky .note { width: min(100%, calc((var(--ed-h) - 150px) * var(--far, 1.339))); display: flex; gap: 16px; align-items: baseline; color: #ece8f4; min-height: 48px; }
.ed .sticky .note b { font: 500 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.ed .sticky .note span { font: 400 17px/1.4 var(--serif); color: var(--ed-soft); transition: opacity .3s; }
.ed .sticky .text { padding: 16vh 5vw 30vh 4vw; }
.ed .sticky .text .h { font-size: clamp(40px, 4vw, 70px); }
.ed .sticky .stp { margin-top: 40vh; opacity: .3; transition: opacity .5s; }
.ed .sticky .stp:first-of-type { margin-top: 10vh; }
.ed .sticky .stp.on { opacity: 1; }
.ed .sticky .stp .k { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ed .sticky .stp .p { margin-top: 12px; }
/* highlight boxes (svg-free: bordered divs that draw in) */
.ed .hb { position: absolute; border: 2px solid var(--ed-violet); border-radius: 5px; opacity: 0; transition: left 1.1s cubic-bezier(.22,.7,.18,1), top 1.1s cubic-bezier(.22,.7,.18,1), width 1.1s cubic-bezier(.22,.7,.18,1), height 1.1s cubic-bezier(.22,.7,.18,1), opacity .4s ease .6s; box-shadow: 0 0 20px rgba(139,92,246,.5); }
.ed .hb.on { opacity: 1; }
.ed .hb.spot { box-shadow: 0 0 20px rgba(139,92,246,.5), 0 0 0 200vmax rgba(20,18,32,.34); }
.ed .hb b { position: absolute; left: -2px; bottom: calc(100% + 6px); white-space: nowrap; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: #6a3fd6; padding: 6px 8px 5px; border-radius: 3px; }
.ed .hb.low b { bottom: auto; top: calc(100% + 6px); }
.ed .hb.rt b { left: auto; right: -2px; }

/* CATALOG: objects presented like a museum drawer */
.ed .catalog .grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 1px; background: var(--ed-line); border: 1px solid var(--ed-line); margin-top: 7vh; }
.ed .catalog .cell { background: var(--ed-dark); position: relative; overflow: hidden; }
.ed .catalog .cell img { width: 100%; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.ed .catalog .cell:hover img { transform: scale(1.07); }
.ed .catalog .cell .lb { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 14px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #ece8f4; border-top: 1px solid var(--ed-line); }
.ed .catalog .cell .lb i { display: inline-flex; align-items: center; gap: 8px; font-style: normal; color: var(--ed-dim); }
.ed .catalog .cell .lb i::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--sw, #888); }
.ed .catalog .cell .no { position: absolute; left: 12px; top: 10px; font: 500 10px/1 var(--mono); color: var(--ed-dim); }

/* PAIR / STRIP of framed evidence */
.ed .strip .row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 2vw; margin-top: 6vh; }
.ed .strip figure { margin: 0; }
.ed .strip .fr { overflow: hidden; background: #0f0d18; }
.ed .strip .fr img { width: 100%; }

/* UI kit rebuilt as live components */
.ed .uikit .deck { margin-top: 7vh; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; align-items: stretch; }
.ed .uikit .plate { position: relative; background: linear-gradient(180deg, #2a2735, #1d1b26); border: 1px solid #3c3849; border-radius: 10px; padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 40px rgba(0,0,0,.35); }
.ed .uikit .plate::before, .ed .uikit .plate::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8a8698, #3a3746); top: 10px; left: 10px; box-shadow: calc(100% + 0px) 0 0 0 transparent; }
.ed .uikit .plate::after { left: auto; right: 10px; }
.ed .uikit .glass { margin-top: 12px; border-radius: 6px; background: linear-gradient(135deg, rgba(120,200,255,.10), rgba(120,200,255,.02)); border: 1px solid rgba(160,210,255,.18); padding: 16px; min-height: 120px; }
.ed .uikit .ttl { font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #8fe3ff; }
.ed .uikit .kv { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: #c9c4d6; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.ed .uikit .kv b { color: #fff; font-weight: 500; }
.ed .uikit .btns { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.ed .uikit .btn { position: relative; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #e8e4f2; background: linear-gradient(180deg, #2c2938, #211e2b); border: 1px solid #3f3b4d; border-radius: 8px; padding: 18px 16px; text-align: center; cursor: pointer; transition: box-shadow .25s, border-color .25s, color .25s; }
.ed .uikit .btn:hover, .ed .uikit .btn.demo { border-color: #58e1ff; color: #fff; box-shadow: 0 0 0 1px #58e1ff, 0 0 18px rgba(88,225,255,.55), inset 0 0 12px rgba(88,225,255,.18); }
.ed .uikit .btn.primary { background: linear-gradient(180deg, #ea7a2b, #c85a14); border-color: #f09a57; color: #1b1109; overflow: hidden; padding-bottom: 26px; }
.ed .uikit .btn.primary::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: repeating-linear-gradient(-45deg, #1b1109 0 7px, #f2b46b 7px 14px); }
.ed .uikit .btn.primary:hover { box-shadow: 0 0 22px rgba(240,154,87,.7); }
.ed .uikit .chip { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #b8f2c9; border: 1px solid #2f6b47; background: rgba(47,107,71,.25); padding: 7px 9px; border-radius: 4px; margin: 12px 8px 0 0; }
.ed .uikit .meter { margin-top: 16px; height: 12px; border-radius: 3px; background: #0e0d14; border: 1px solid #3c3849; overflow: hidden; }
.ed .uikit .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #58e1ff, #a98cf0); transition: width 2s cubic-bezier(.2,.7,.2,1) .6s; }
.ed .uikit.in .meter i { width: 68%; }
.ed .uikit .hint { font: 500 10px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-dim); margin-top: 14px; }
.ed .uikit .same { margin-top: 8vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center; }
.ed .uikit .same .big { font: 500 clamp(36px, 3.8vw, 64px)/0.95 var(--display); text-transform: uppercase; }

/* CINEMA: one image owns the viewport */
.ed .cinema { padding: 0; min-height: var(--ed-h); position: relative; overflow: hidden; background: #000; color: #fff; display: flex; align-items: flex-end; }
.ed .cinema .bg { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: edDrift 26s ease-in-out infinite alternate; }
.ed .cinema::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 38%, rgba(0,0,0,.72) 100%), linear-gradient(0deg, rgba(10,8,18,.9), rgba(10,8,18,0) 55%); }
@keyframes edDrift { from { transform: scale(1.02) translateX(-1.5%); } to { transform: scale(1.1) translateX(1.5%); } }
.ed .cinema .ov { position: relative; z-index: 2; padding: 0 7vw 9vh; width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 5vw; align-items: end; }
.ed .cinema .tagl { font: 500 clamp(40px, 5.6vw, 104px)/0.9 var(--display); text-transform: uppercase; text-shadow: 0 0 30px rgba(88,225,255,.35); }
.ed .cinema .tagl span { display: block; }
.ed .cinema .tagl span:last-child { color: #8fe3ff; }
.ed .cinema .p { color: #d9d4e6; }

/* LIST: numbered constraints */
.ed .list .items { margin-top: 6vh; border-top: 1px solid var(--ink); }
.ed .list .li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr); gap: 3vw; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ed .list .li .k { font: 500 44px/0.9 var(--display); color: var(--accent); }
.ed .list .li h4 { font: 500 clamp(26px, 2.3vw, 38px)/0.95 var(--display); text-transform: uppercase; }
.ed .list .li p { font: 400 17px/1.6 var(--serif); color: var(--ink2); }
.ed .dark .list .items, .ed .dark.list .items { border-top-color: #ece8f4; }
.ed .dark.list .li { border-bottom-color: var(--ed-line); }
.ed .dark.list .li p { color: var(--ed-soft); }
.ed .dark.list .li .k { color: #a98cf0; }

/* END */
.ed .endsc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: start; }
.ed .endsc .vis { position: relative; }
.ed .endnav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ed-line); }
.ed .endnav div { padding: 40px 7vw; font: 500 10.5px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ed-dim); }
.ed .endnav div + div { border-left: 1px solid var(--ed-line); text-align: right; }
.ed .endnav a { display: block; margin-top: 10px; font: 500 clamp(24px, 2.2vw, 36px)/1 var(--display); letter-spacing: 0; color: #ece8f4; cursor: pointer; }
.ed .endnav a:hover { color: #a98cf0; }

@media (prefers-reduced-motion: reduce) {
  .ed .rv, .ed .mask, .ed .ln > span, .ed .hero .art img, .ed .process .wire::after, .ed .sticky .cam, .ed .hb { transition: none !important; }
  .ed .rv { opacity: 1; transform: none; } .ed .mask { clip-path: none; } .ed .ln > span { transform: none; }
  .ed .cinema .bg, .ed .hero .scroll i { animation: none; }
}

@media (max-width: 900px), ((pointer: coarse) and (hover: none)) {
  .ed-rail { display: none; }
  .ed .sc { padding: 64px 16px; }
  .ed .h { font-size: 44px; max-width: none; }
  .ed .p { font-size: 18px; }
  .ed .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ed .hero .art { order: -1; height: 52vw; min-height: 220px; }
  .ed .hero .art::after { background: linear-gradient(0deg, var(--ed-dark) 0%, rgba(20,18,32,0) 40%); }
  .ed .hero .copy { padding: 8px 16px 48px; gap: 26px; }
  #reader .ed .hero h1 { font-size: 50px; margin-top: 18px; }
  .ed .hero .scroll { display: none; }
  .ed .data .grid { grid-template-columns: minmax(0, 1fr); }
  .ed .data .it, .ed .data .it + .it { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .ed .data .num { font-size: 92px; }
  .ed .data .kick, .ed .compare .head, .ed .cols, .ed .read, .ed .scale .row, .ed .uikit .same, .ed .endsc, .ed .cinema .ov { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ed .read .side { position: static; }
  .ed .statement { min-height: 80vh; }
  .ed .statement .big { font-size: 40px; }
  .ed .process .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .ed .process .wire { left: 22px; right: auto; width: 2px; top: 0; bottom: 0; height: auto; }
  .ed .process .wire::after { transform: scaleY(0); transform-origin: top; }
  .ed .process.in .wire::after { transform: scaleY(1); }
  .ed .scale .n { font-size: 150px; }
  .ed .sticky { grid-template-columns: minmax(0, 1fr); }
  .ed .sticky .stage { height: auto; padding: 12px 16px; z-index: 3; }
  .ed .sticky .frame, .ed .sticky .note { width: 100%; }
  .ed .sticky .note b { font-size: 24px; }
  .ed .sticky .note span { font-size: 15px; }
  .ed .sticky .text { padding: 24px 16px 40vh; }
  .ed .sticky .stp { margin-top: 36vh; }
  .ed .catalog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed .split, .ed .strip .row { grid-template-columns: minmax(0, 1fr); }
  .ed .uikit .deck { grid-template-columns: minmax(0, 1fr); }
  .ed .cinema { min-height: 88vh; }
  .ed .cinema .tagl { font-size: 46px; }
  .ed .list .li { grid-template-columns: 50px minmax(0, 1fr); }
  .ed .list .li p { grid-column: 2; }
  .ed .endnav { grid-template-columns: minmax(0, 1fr); }
  .ed .endnav div { padding: 28px 16px; }
  .ed .endnav div + div { border-left: 0; border-top: 1px solid var(--ed-line); text-align: left; }
  .ed .hb b { font-size: 8.5px; padding: 4px 5px; }
}
.ed .statement .sub.long { font: 400 20px/1.6 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink2); max-width: 58ch; }
.ed .statement.dark .sub.long { color: var(--ed-soft); }
@media (max-width: 900px), ((pointer: coarse) and (hover: none)) { .ed .phead { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; } }

.ed .process .pfig { margin: 6vh 0 0; max-width: 1100px; }
.ed .process .pfig .fr { overflow: hidden; border: 1px solid var(--ink); }
.ed .process .pfig img { width: 100%; }
.ed .compare .cmp { max-width: 1120px; margin-left: auto; margin-right: auto; }
.ed .compare .switch, .ed .compare .cmp + .cap { margin-left: max(0px, calc((100% - 1120px) / 2)); }
.ed .cinema .lab { color: #cfc9ff; }
.ed .cinema .ov > div:last-child { background: rgba(10,8,18,.62); padding: 24px 26px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-left: 2px solid #8fe3ff; }
.ed .cinema .ov > div:last-child .p:first-child { margin-top: 0; }
@media (max-width: 900px), ((pointer: coarse) and (hover: none)) {
  .ed .cinema { display: block; min-height: 0; padding: 0; background: var(--ed-dark); }
  .ed .cinema .bg { position: relative; inset: auto; height: 62vw; animation: none; background-size: cover; }
  .ed .cinema::after { display: none; }
  .ed .cinema .ov { padding: 26px 16px 56px; }
  .ed .cinema .ov > div:last-child { background: none; backdrop-filter: none; padding: 0 0 0 14px; }
}
.ed .scale .gen { position: relative; }
.ed .scale .gen img { width: 100%; border: 1px solid var(--ed-line); }
.ed .strip .row[style*="--n:3"] { grid-template-columns: 1.4fr 1fr 1fr; align-items: end; }
@media (max-width: 900px), ((pointer: coarse) and (hover: none)) { .ed .strip .row[style*="--n:3"] { grid-template-columns: minmax(0, 1fr); } }
