body[data-page="crux"],body[data-page="crossing-memories"]{color-scheme:light;--paper:#f8fafb;--ink:#202d36;--muted:#53616a;--line:#cbd5da;--accent:#365d76;--surface:#edf2f5;color:var(--ink)}
body[data-page="crossing-memories"]{--paper:#faf9f6;--ink:#303534;--muted:#58625f;--line:#d2d6d1;--accent:#44646b;--surface:#edf0ec}
:is(body[data-page="crux"],body[data-page="crossing-memories"]) :is(nav a,.subtitle,.project-facts dd,.project-narrative>p,.project-chapter p,figcaption strong){color:var(--ink)}
body:is([data-page="crux"],[data-page="crossing-memories"],[data-page="light-stage"]) .project-hero img{mask-image:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent),linear-gradient(to bottom,transparent,#000 12%,#000 79%,transparent);mask-composite:intersect;aspect-ratio:auto;object-fit:contain}
:is(body[data-page="crux"],body[data-page="crossing-memories"]) footer{background:var(--surface);border-color:var(--line)}
:is(body[data-page="crux"],body[data-page="crossing-memories"]) .footer-bottom{color:var(--muted);border-color:var(--line)}
.project-narrative h2{font-size:clamp(21px,1.9vw,28px);line-height:1.65;font-weight:400}.project-narrative>p{font-size:16px;line-height:1.9}.project-chapter{padding-bottom:35px}
.gallery-featured .triptych,.model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.gallery-featured .triptych>figure img,.gallery-featured .triptych>figure:first-child img{aspect-ratio:6/5;object-fit:contain;background:transparent}.model-grid img{aspect-ratio:4/3;max-height:320px;object-fit:contain;background:var(--surface)}.model-grid figcaption strong{font-size:14px}.model-grid figcaption>span,.triptych figcaption>span{font-size:13px}.model-grid .zoom-icon,.triptych .zoom-icon{width:28px;height:28px;right:8px;bottom:8px}
.editorial-section{padding:0 var(--gutter) 75px}.editorial-section .section-label{margin-top:65px}.editorial-section>.section-label:first-child{margin-top:0}.section-intro{font-size:16px;line-height:1.85;max-width:78ch;color:var(--muted);margin:0 0 28px}.journey-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;max-width:1000px;margin:0 auto 48px}.journey-grid img{aspect-ratio:1.7;object-fit:contain}.editorial-section figure img{object-fit:contain}.site-plan{margin:30px 0 52px}.editorial-heading{font-size:26px;font-weight:600;margin-bottom:15px}.sensory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-bottom:65px}.sensory-grid article>p{font-size:15px;line-height:1.8;margin:14px 0 20px;color:var(--muted)}.sensory-grid article>figure img{aspect-ratio:1.13;object-fit:contain}.sensory-grid details figure img{height:230px;object-fit:contain}.sensory-grid details figure{padding:20px 8px}
summary{cursor:pointer;list-style:none;padding:14px 30px 14px 0;border-top:1px solid var(--line);position:relative;font-size:15px;font-weight:600}summary::-webkit-details-marker{display:none}summary:after{content:'+';position:absolute;right:3px;top:12px;font-size:22px;font-weight:400}details[open]>summary:after{content:'−'}summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.tower-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:8vw;align-items:start}.tower-grid>figure img{height:760px;object-fit:contain}.tower-grid>div>figure img{max-height:430px}.tower-stories{margin-top:35px}.tower-stories summary{font-size:20px}.tower-stories summary span{font-size:13px;color:var(--accent);margin-right:22px}.tower-stories p{font-size:16px;line-height:1.8;padding:0 30px 23px 40px;color:var(--muted)}
.process-copy{margin:28px 0 45px;max-width:85ch}.performance-arrival{display:grid;grid-template-columns:1fr 1fr;gap:6vw;align-items:center}.performance-arrival h3{font-size:24px;font-weight:600;margin-bottom:20px}.performance-arrival p{color:var(--muted);font-size:15px;line-height:1.8}.sequence-list{padding-left:24px;margin-bottom:25px}.sequence-list li{padding:0 0 14px 8px;line-height:1.8}.sequence-list li::marker{color:var(--accent);font-weight:600}.scenario-composition{display:grid;grid-template-columns:1fr 2.25fr;gap:28px;align-items:start}.scenario-plan figure{width:100%}.scenario-plan img{max-height:1000px}.scenario-row{display:grid;grid-template-columns:1.5fr 1.85fr;gap:18px;margin-bottom:28px;align-items:start}.scenario-row h3{font-size:17px;font-weight:600;margin-bottom:10px}.scenario-row p{font-size:14px;line-height:1.7;color:var(--muted)}.scenario-copy{display:grid;grid-template-columns:1fr .85fr;gap:0 18px;align-content:start}.scenario-copy>h3,.scenario-copy>p{grid-column:1}.scenario-copy .scenario-reference{grid-column:2;grid-row:1/3}.scenario-reference h4{font-size:13px;line-height:1.5;margin:0 0 10px;font-weight:600}.scenario-reference p{font-size:13px;margin-bottom:12px}.scenario-row figcaption strong{font-size:14px}.scenario-reference figcaption{font-size:12px}.scenario-reference figure{max-width:180px}.scenario-reference .zoom-icon{width:24px;height:24px;right:5px;bottom:5px}.elevations-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.elevations-grid img{aspect-ratio:2;object-fit:contain}
.concept-panel{max-width:1000px;margin:0 auto 65px;background:#080706;padding:24px}.lighting-composition{background:#080706;padding:28px}.lighting-composition>figure img{max-height:670px}.lighting-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 32px;border-top:1px solid #4f4540;margin-top:28px;padding-top:28px}.lighting-legend>div{display:flex;align-items:center;gap:15px}.lighting-legend img{width:44px;height:44px;object-fit:contain}.lighting-legend strong{display:block;font-size:14px;font-weight:600}.lighting-legend small{display:block;font-size:13px;color:#c9c1b7}
.fixture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.fixture-card{border:1px solid #514a43;background:#211f20;padding:24px}.fixture-header{display:flex;align-items:center;gap:18px}.fixture-header img{height:58px;width:58px;object-fit:contain;background:#eee}.fixture-header h3{font-size:16px;font-weight:600;line-height:1.55;margin-top:5px}.fixture-header .eyebrow{font-size:11px;color:var(--accent);letter-spacing:.04em}.fixture-location{font-size:13px;line-height:1.7;color:#c9b294;margin:18px 0}.fixture-card dl{margin:0}.fixture-card dl>div{display:grid;grid-template-columns:100px 1fr;gap:12px;border-top:1px solid #3f3b38;padding:9px 0;font-size:13px;line-height:1.6}.fixture-card dt{color:#bfb8ae}.fixture-card dd{margin:0;color:#f0ebe4;overflow-wrap:anywhere}
.resume{grid-template-columns:1fr 1fr}.resume .tools-block{grid-column:1/-1;margin-top:30px;padding-top:40px;border-top:1px solid var(--line)}.software-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px}.software-groups h3{font-size:15px;margin-bottom:18px;color:var(--accent)}.software-list,.skills-list{list-style:none;padding:0;margin:0}.software-list li{display:flex;align-items:center;gap:15px;min-height:58px;font-size:15px}.software-list img{width:32px;height:32px;object-fit:contain;filter:grayscale(1) invert(.85);opacity:.95}.software-list img[src$=".png"]{filter:grayscale(1);border-radius:5px}.skills-heading{margin-top:35px!important;margin-bottom:18px!important}.skills-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 30px}.skills-list li{padding:14px 0;border-bottom:1px solid var(--line);font-size:15px}.languages{display:flex;gap:60px;flex-wrap:wrap}.languages>div{display:flex;gap:20px;font-size:15px}.languages dt{font-weight:600}.languages dd{margin:0;color:var(--muted)}
.lightbox{display:none;max-height:96vh;overflow:hidden;color:#eee9e2}.lightbox[open]{display:flex;flex-direction:column}.lightbox-toolbar{flex-shrink:0;margin-bottom:5px}.viewer-hint{font-size:12px;line-height:1.6;color:#c7c1b9;margin-bottom:10px}.lightbox-stage{height:calc(87vh - 200px);flex-shrink:1;min-height:150px;touch-action:pan-x pan-y}.lightbox.is-zoomed .lightbox-stage{cursor:grab;touch-action:none}.lightbox.is-zoomed .lightbox-stage img{cursor:grab;user-select:none}.lightbox.is-dragging .lightbox-stage,.lightbox.is-dragging .lightbox-stage img{cursor:grabbing}.lightbox-caption{max-height:23vh;overflow:auto;padding-top:16px;flex-shrink:0}.lightbox-caption h2{font-size:18px;font-weight:600;color:#eee9e2;text-align:left;line-height:1.5}.lightbox-caption p{text-align:left;max-width:100ch;margin-top:7px;font-size:15px;line-height:1.75;color:#d4cdc4}.lightbox-caption p:empty{display:none}
@media(max-width:1100px){.fixture-grid{grid-template-columns:1fr 1fr}.fixture-card{padding:20px}.scenario-composition{grid-template-columns:.7fr 2.3fr;gap:20px}.scenario-row{grid-template-columns:1.2fr 1fr;gap:16px}.scenario-copy{display:block}.scenario-copy .scenario-reference{margin-top:18px}.scenario-reference figure{max-width:120px}.scenario-reference figure img{max-height:85px}.scenario-reference figcaption{display:none}.tower-grid>figure img{height:auto;max-height:800px}}
@media(max-width:850px){.software-groups{grid-template-columns:1fr 1fr}.gallery-featured .triptych,.model-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gallery-featured .triptych>figure img,.gallery-featured .triptych>figure:first-child img{aspect-ratio:6/5}.model-grid img{aspect-ratio:4/3;max-height:240px}.tower-grid{gap:30px}.sensory-grid{gap:20px}}
@media(max-width:700px){.editorial-section{padding-bottom:45px}.editorial-section .section-label{margin-top:40px}.project-hero img{aspect-ratio:auto;object-fit:contain}.project-narrative h2{font-size:22px}.journey-grid{gap:18px}.journey-grid figcaption strong{font-size:14px}.sensory-grid{grid-template-columns:1fr}.sensory-grid article{margin-bottom:12px}.sensory-grid article>figure img{max-height:330px}.tower-grid{grid-template-columns:1fr}.tower-grid>figure img{max-height:720px}.performance-arrival{grid-template-columns:1fr;gap:24px}.elevations-grid{grid-template-columns:1fr;gap:30px}.scenario-composition{display:block}.scenario-plan{max-width:190px;margin:0 auto 30px}.scenario-plan img{max-height:390px;height:auto}.scenario-row{grid-template-columns:1fr;gap:14px;margin-bottom:42px}.scenario-reference figure{max-width:160px}.scenario-reference figure img{max-height:130px}.scenario-row p{font-size:15px}.scenario-reference p{font-size:14px}.concept-panel,.lighting-composition{padding:14px}.lighting-legend{grid-template-columns:1fr 1fr;gap:18px 12px}.lighting-legend>div{gap:8px}.lighting-legend img{width:30px;height:30px}.lighting-legend strong,.lighting-legend small{font-size:12px}.fixture-grid{grid-template-columns:1fr}.fixture-card dl>div{grid-template-columns:110px 1fr;font-size:14px}.software-groups{gap:28px 18px}.skills-list{grid-template-columns:1fr 1fr;gap:0 20px}.software-list li,.skills-list li{font-size:14px}.software-list img{width:27px;height:27px}.languages{gap:20px}.gallery-featured .triptych,.model-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.model-grid img{aspect-ratio:4/3;max-height:none}.triptych figcaption strong,.model-grid figcaption strong{font-size:12px;line-height:1.5}.triptych figcaption>span,.model-grid figcaption>span{display:none}.model-grid .zoom-icon,.triptych .zoom-icon{width:22px;height:22px;right:4px;bottom:4px}.lightbox-caption p{font-size:14px}.lightbox-stage{height:calc(85vh - 220px)}.viewer-hint{font-size:11px}.lightbox-caption{max-height:27vh}.resume{grid-template-columns:1fr}.resume .tools-block{grid-column:1}}

/* Aligned detail controls and faithful, square drawing previews. */
.sensory-grid article{display:grid;grid-template-rows:subgrid;grid-row:span 3;gap:0}
.sensory-grid details figure{padding:18px 0 0}
.sensory-grid details .zoom{aspect-ratio:1;display:grid;place-items:center;background:white}
.sensory-grid details figure img{width:100%;height:100%;aspect-ratio:1;object-fit:contain;padding:16px}
.lightbox-navigation{display:flex;align-items:center;gap:12px;margin-right:auto}
.lightbox-navigation[hidden],.lightbox-caption[hidden]{display:none}
.lightbox-count{font-size:14px;min-width:42px;text-align:center}
@media(min-width:701px){
 .scenario-composition{grid-template-columns:1.2fr 2.05fr}
 .scenario-plan .zoom{display:flex;align-items:flex-end}
 .scenario-plan img{width:100%;height:auto;max-height:100%;object-fit:contain;object-position:bottom}
}
/* Equal-height photographic rows follow the original image proportions. */
.observation-grid{display:block;columns:auto}
.observation-grid>.photo-row{display:flex;align-items:flex-start;gap:20px;margin:0 0 32px}
.observation-grid>.photo-row[hidden],.observation-drawings[hidden]{display:none}
.photo-row figure{flex:var(--ratio) 1 0;min-width:0;margin:0}
.photo-row .zoom{display:block;width:100%}
.photo-row img{width:100%;height:auto;object-fit:contain}
.observation-drawings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;margin-top:65px}
.observation-drawings figure{margin:0}
@media(max-width:700px){
 .observation-grid>.photo-row{flex-wrap:wrap;gap:12px;margin-bottom:24px}
 .photo-row figure{min-width:calc(40% - 12px)}
 .observation-drawings{gap:20px;margin-top:40px}
 .lightbox-toolbar{flex-wrap:wrap}
 .lightbox-navigation{gap:6px}
 .lightbox-toolbar button{padding:7px 10px}
}

.photo-pair{display:contents}
@media(max-width:700px){.photo-row figure{min-width:0}.photo-row>.photo-pair{display:flex;gap:12px;flex:1 0 100%;min-width:0}}

/* Drawings use the same equal-height row composition in both filter views. */
.observation-drawings{display:block}
.observation-drawings[hidden]{display:none}
.drawing-row{display:flex;gap:20px;margin-bottom:32px;align-items:flex-start}
.drawing-row>figure{flex:var(--ratio) 1 0;min-width:0}
.drawing-row img{width:100%;height:auto}
/* Photographic thumbnails fill their frame; the viewer retains the full image. */
.gallery-featured .triptych>figure img,.gallery-featured .triptych>figure:first-child img{object-fit:cover}
.model-grid img{object-fit:cover;background:transparent;max-height:none}
.gallery.gallery-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.gallery.gallery-trio img,.gallery.gallery-trio>figure:first-child img{aspect-ratio:4/3;object-fit:cover}
.sensory-grid article>figure img{object-fit:cover}
.scenario-reference figure img{object-fit:cover}
@media(max-width:700px){.drawing-row{gap:12px;margin-bottom:24px}.gallery.gallery-trio{gap:10px}.gallery-trio figcaption strong{font-size:12px}.gallery-trio .zoom-icon{height:22px;width:22px;bottom:4px;right:4px}}

/* Warm paper and graphite frame the portfolio; individual projects keep their palettes. */
body:is([data-page="spatial-stories"],[data-page="about"],[data-page="observations"]){color-scheme:light;--paper:#f8f7f3;--ink:#29312f;--muted:#5d6662;--line:#d6dbd5;--accent:#4f6b69;--surface:#eeeee7;color:var(--ink)}
body:not([data-page="light-stage"]) :is(nav a,.intro-bottom p,.page-intro p,.about-story p,.about-story .lead,figcaption strong){color:var(--ink)}
body:not([data-page="light-stage"]) footer{background:var(--surface);border-color:var(--line)}
body:not([data-page="light-stage"]) .footer-bottom{color:var(--muted);border-color:var(--line)}
body:not([data-page="light-stage"]) :is(.text-link,.button,.circle-link){border-color:var(--accent)}
body:not([data-page="light-stage"]) .software-list img{filter:grayscale(1);opacity:1}
body:not([data-page="light-stage"]) ::selection{background:#cbdcd5;color:#202d2b}
body:not([data-page="light-stage"]) .project-image{background:var(--surface)}
body:not([data-page="light-stage"]) .dot{box-shadow:none;background:var(--accent)}
/* Dialogs inherit the page palette, including captions, controls and viewing canvas. */
body{--viewer-backdrop:#0a0a0ce8;--viewer-canvas:#171719;--viewer-hover:#343133}
body:not([data-page="light-stage"]){--viewer-backdrop:#e9eee8ed;--viewer-canvas:var(--paper);--viewer-hover:#e1e8e2}
body[data-page="crux"]{--viewer-backdrop:#e6edf2ed;--viewer-hover:#dfe9ef}
body[data-page="crossing-memories"]{--viewer-backdrop:#eeece6ed;--viewer-hover:#e5e8e1}
.lightbox{background:var(--paper);border-color:var(--line);color:var(--ink);box-shadow:0 16px 80px #202a2a18}
.lightbox::backdrop{background:var(--viewer-backdrop);backdrop-filter:blur(8px)}
.lightbox-stage{background:var(--viewer-canvas)}
.lightbox-toolbar button{background:var(--surface);border-color:var(--line);color:var(--ink)}
.lightbox-toolbar button:hover{background:var(--viewer-hover)}
.lightbox-toolbar button:focus-visible,.lightbox-stage:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.lightbox-caption h2,.lightbox-count{color:var(--ink)}
.lightbox-caption p,.viewer-hint{color:var(--muted)}
