:root { color-scheme:light; --ink:#000; --paper:#fff; }
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; }
body { background:var(--paper); color:var(--ink); font-family:Georgia,'Times New Roman',serif; }
.top-banner, .bottom-banner { background:#c5c4a5; }
.visitor-icon, .login-icon { mix-blend-mode:multiply; }
a { color:inherit; text-decoration:none; }
a:hover { text-decoration:underline; text-underline-offset:5px; }
a:focus-visible, summary:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
.page { width:100%; min-height:100svh; display:grid; grid-template-rows:auto minmax(18rem,1fr) auto; }
.top-banner { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:clamp(8px,2vw,24px); padding:16px clamp(12px,4vw,72px); border-bottom:1px solid; }
.visitor { justify-self:start; display:inline-flex; align-items:center; gap:.4em; font-size:clamp(.8rem,1.4vw,1.1rem); }
.visitor-icon, .login-icon { width:auto; height:clamp(4rem,10svh,6rem); object-fit:contain; }
.brand-heading { min-width:0; display:flex; align-items:center; justify-content:center; gap:clamp(10px,1.5vw,24px); }
.tagline { margin:0; white-space:nowrap; font-size:clamp(.7rem,1.15vw,.95rem); line-height:1.5; letter-spacing:.055em; text-wrap:balance; }
.brand { margin:0; font-weight:400; font-size:clamp(1.15rem,3vw,3rem); letter-spacing:.025em; }
.brand a { display:inline-flex; align-items:center; }
.brand .brand-icon { width:auto; height:2.4em; margin-right:-.7em; }
.login { position:relative; justify-self:end; text-align:right; font-size:clamp(.75rem,1.3vw,1.02rem); }
summary { cursor:pointer; }
.login summary { display:flex; align-items:center; justify-content:flex-end; gap:.5em; min-height:44px; list-style:none; }
.login summary::-webkit-details-marker { display:none; }
.login summary span { line-height:1.4; }
.visitor { min-height:44px; }
.visitor:hover, .login summary:hover { text-decoration:underline; text-underline-offset:5px; }
.login p { position:absolute; right:0; top:100%; z-index:3; width:min(270px,85vw); padding:18px; border:1px solid; background:#fff; box-shadow:0 4px 16px #00000012; font-size:.95rem; line-height:1.5; text-align:left; }
.stage { position:relative; min-width:0; min-height:clamp(18rem,65svh,70rem); overflow:hidden; isolation:isolate; }
.stage-lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.stage-lines path { stroke:currentColor; stroke-width:2.6; vector-effect:non-scaling-stroke; fill:none; }
.can-light { position:absolute; top:5.2%; width:clamp(40px,8vw,100px); height:auto; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; }
.can-light.left { left:35%; transform:translateX(-50%) rotate(8deg); }
.can-light.right { left:65%; transform:translateX(-50%) rotate(-8deg); }
.can-light .rim { stroke-width:1.7; }
.can-light .inner-rim { stroke-width:1.3; }
.can-light .well { stroke-width:1.1; }
.can-light .back { stroke-width:1.25; }
.can-light .hatch { stroke-width:.75; }
.stage-content { position:absolute; inset:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; gap:24px; padding:12% 6%; text-align:center; }
.featured-work { min-width:0; }
.featured-work a { display:block; }
.featured-work img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.featured-work h2 { margin:12px 0 0; font-size:clamp(.85rem,1.4vw,1.3rem); font-weight:400; overflow-wrap:anywhere; }
.featured-work p { margin:6px 0 0; font-size:clamp(.75rem,1vw,.9rem); }
/* JavaScript projects each complete painting and label onto its wall plane. */
.stage-content.is-projected { display:block; padding:0; }
.is-projected .featured-work { position:absolute; top:0; left:0; width:30%; height:44%; transform-origin:0 0; }
.is-projected .featured-work a { height:100%; display:flex; flex-direction:column; }
.is-projected .featured-work img { flex:1; height:0; }
.artwork-layer { position:absolute; inset:0; height:100%; }
.artwork-layer.is-leaving { position:absolute; inset:0; pointer-events:none; }
#resume-gallery { padding:.5rem .85rem; border:1px solid #777; background:#fff; color:inherit; font:.8rem Georgia,serif; cursor:pointer; }
#resume-gallery[hidden] { display:none; }
.stage-content .artist-portrait a { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.stage-content .artist-portrait img { flex: none; width: auto; height: auto; max-width: 100%; max-height: var(--portrait-image-height, 182px); margin-inline: auto; object-fit: contain; }
.room-controls { position:absolute; bottom:3%; left:5%; width:90%; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; }
.collection-link { font-size:clamp(.85rem,1.4vw,1.1rem); padding:6px; }
@media (max-width:1000px) {
    .top-banner { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .brand-heading { grid-column:1 / -1; grid-row:1; }
    .visitor, .login { grid-row:2; }
}
@media (max-width:420px) {
    .brand-heading { gap:8px; }
}
.bottom-banner { border-top:1px solid; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:clamp(24px,6vw,80px); padding:10px 16px; }
.bottom-banner > a, .about-panel > summary { font-size:clamp(.9rem,1.5vw,1.1rem); padding:10px 0; }
.skip-link { position:absolute; top:8px; left:8px; z-index:5; padding:12px; background:#fff; transform:translateY(-200%); }
.skip-link:focus { transform:translateY(0); }
.bottom-banner { position:relative; }
.about-panel > summary { list-style:none; }
.about-panel > summary::-webkit-details-marker { display:none; }
.about-panel > summary:hover { text-decoration:underline; text-underline-offset:5px; }
.about-content { position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%); z-index:3; width:min(32rem,calc(100vw - 32px)); padding:20px; border:1px solid; background:#fff; box-shadow:0 4px 16px #00000012; text-align:left; }
.about-content p { margin:0 0 12px; line-height:1.7; }
.about-content a { text-decoration:underline; text-underline-offset:4px; }
@media (max-width:420px) {
    .top-banner { gap:6px; padding:10px; }
    .visitor, .login summary { flex-direction:column; gap:3px; text-align:center; }
    .visitor-icon, .login-icon { height:4rem; }
    .tagline { font-size:.6rem; letter-spacing:.015em; }
    .brand { font-size:1.1rem; }
    .login { font-size:.7rem; }
    .featured-work h2 { font-size:.8rem; }
}
@media (max-height:500px) and (orientation:landscape) {
    .brand { font-size:1rem; }
    .visitor-icon, .login-icon { height:3rem; }
    .top-banner, .bottom-banner { padding-block:6px; }
}

@media (max-width:899px) {
    .stage-content:not(.is-projected) { grid-template-columns:repeat(2,minmax(0,1fr)); padding:8% 6%; gap:16px; }
    .is-projected .featured-work h2 { margin-top:5px; font-size:clamp(.7rem,1.8vw,.9rem); }
    .is-projected .featured-work p { margin-top:3px; font-size:.7rem; }
}

/* The login entry navigates to its own page. */
a.login { display:flex; align-items:center; justify-content:flex-end; gap:.5em; min-height:44px; color:inherit; text-decoration:none; }
a.login span { line-height:1.4; }
a.login:hover { text-decoration:underline; text-underline-offset:5px; }
@media (max-width: 600px) { a.login { flex-direction:column; gap:3px; text-align:center; } }

/* Narrow artist wall at left; a broad artwork wall opens to the right. */
.can-light { top:1%; }
.can-light.left { left:12%; transform:translateX(-50%) rotate(12deg); }
.can-light.right { left:65%; transform:translateX(-50%) rotate(-5deg); }
.stage-content:not(.is-projected) { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:699px) {
    .stage { min-height:34rem; }
    .stage-content .artist-portrait h2 { font-size:.85rem; }
    .stage-content:not(.is-projected) { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .stage-content:not(.is-projected) .artist-portrait { grid-row:span 3; }
    .room-controls { bottom:2%; }
}

/* The WebGL room enhances the same accessible, linked gallery content. */
.museum-canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.museum-ready .stage-lines, .museum-ready .can-light { display:none; }
.museum-ready .stage-content { z-index:1; pointer-events:none; }
.museum-ready .featured-work { pointer-events:auto; color:#302a22; }
.museum-ready .stage-content .featured-work a { display:flex; flex-direction:column; height:100%; justify-content:flex-start; }
.museum-ready .featured-work img,
.museum-ready .stage-content .artist-portrait img { display:block; flex:none; width:100%; height:78%; max-height:none; max-width:none; padding:6%; margin:0; object-fit:contain; }
.museum-ready .featured-work h2 { margin:8px 3px 0; font-size:14px; line-height:1.14; font-weight:400; }
.museum-ready .featured-work p { position:static; margin:4px 0 0; font-size:11px; line-height:1.15; }
.museum-ready .room-controls { z-index:2; bottom:2.5%; }
.museum-ready .collection-link { background:#f9f5ebdd; border:1px solid #ad9f86; border-radius:2px; padding:.6rem 1rem; box-shadow:0 3px 14px #30251618; }
.museum-ready #resume-gallery { background:#f9f5eb; }

.museum-ready .featured-work:has(a:focus-visible) { outline:2px solid #5c492c; outline-offset:5px; }

.room-controls .artist-choice { display:flex; align-items:center; gap:.6rem; max-width:100%; padding:.45rem .7rem; background:#f9f5ebed; border:1px solid #ad9f86; border-radius:2px; }
.room-controls .artist-choice[hidden] { display:none; }
.artist-choice label { font-size:.9rem; }
.artist-choice select { min-height:36px; max-width:min(65vw,22rem); padding:.3rem .5rem; border:1px solid #8d806a; background:#fffaf1; color:#302a22; font:1rem Georgia,serif; }
.artist-choice select:focus-visible { outline:2px solid #5c492c; outline-offset:3px; }
