:root{color-scheme:dark;font:16px/1.5 "Segoe UI",Arial,sans-serif;color:#f6f3eb;background:#08090b}
*{box-sizing:border-box}body{margin:0}header{position:relative;display:flex;align-items:center;gap:2rem;padding:.9rem clamp(18px,4vw,70px);background:#0b0c0e;border-bottom:1px solid #333237}
a{color:inherit;text-decoration:none}.name{font:1.2rem Georgia,serif;margin-right:auto}nav{display:flex;gap:1.2rem;align-items:center}header nav a{font-size:.9rem;color:#c1bfc3}header [aria-current]{color:white;text-decoration:underline;text-underline-offset:.45em;text-decoration-color:#c4aa8d}.languages{gap:.65rem}
main{position:relative;isolation:isolate;height:calc(100svh - 58px);min-height:540px;overflow:hidden;background:#070809}
canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
main:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(0deg,#06070a 0%,#06070a93 14%,transparent 40%),linear-gradient(62deg,#05070bc9,transparent 49%)}
.caption{position:absolute;left:4.5vw;bottom:2.7rem;max-width:41vw;text-shadow:0 2px 18px #09090d}
h1{font:400 clamp(2.8rem,5.4vw,6rem)/.97 Georgia,serif;letter-spacing:-.063em;margin:0;text-wrap:balance}h1 em{font-weight:400;color:#ffe1c1}
.caption p{max-width:35ch;color:#e3dfd9;line-height:1.4;margin:.9rem 0 0;text-wrap:pretty}
.scenes{position:absolute;bottom:2.8rem;right:4.5vw;gap:.55rem;align-items:stretch}
button{position:relative;overflow:hidden;text-align:left;display:flex;flex-direction:column;gap:.4rem;cursor:pointer;color:#d0ccca;background:#090a0d;border:1px solid #ffffff3d;border-radius:4px;padding:0 0 .4rem;text-indent:.55rem;font:500 .83rem/1.4 "Segoe UI",sans-serif;width:clamp(6.7rem,9vw,9rem)}
button i{width:100%;height:clamp(40px,4.6vw,68px);background-size:cover;background-position:center;filter:brightness(.75);transition:filter .2s}
button:hover i,button[aria-pressed=true] i{filter:brightness(1.16)}
button[aria-pressed=true]{border-color:#f6c695;color:#fff4e6;box-shadow:0 2px 0 #f6c695}
:focus-visible{outline:2px solid #ffe7c2;outline-offset:3px}
@media(max-width:850px){.caption{bottom:9.5rem;max-width:70vw}.scenes{left:4.5vw;right:auto;bottom:1.8rem}}
@media(max-width:650px){header{flex-wrap:wrap;gap:.5rem 1rem;padding-block:.65rem}.name{width:100%}.languages{margin-left:auto}main{height:calc(100svh - 88px);min-height:580px}canvas{height:66%}main:before{background:linear-gradient(0deg,#070809 31%,#070809d8 36%,transparent 55%)}.caption{max-width:91vw;bottom:8.6rem}h1{font-size:clamp(2.5rem,9vw,3.8rem)}.scenes{right:4.5vw;bottom:1.2rem}.scenes button{flex:1;min-width:0;width:auto}.caption p{max-width:38ch}}
@media(prefers-reduced-motion:reduce){button i{transition:none}}
@media(max-width:480px){header nav{gap:.65rem;flex-wrap:wrap}}
.scenes{width:min(49vw,52rem);overflow-x:auto;scroll-snap-type:x proximity;scrollbar-color:#776654 #19171a;padding:.25rem .25rem .6rem}
.scenes button{flex:0 0 clamp(7.5rem,10vw,10rem);scroll-snap-align:center;text-indent:0;padding-inline:.35rem;overflow-wrap:anywhere}
.scenes button i{border-radius:2px}
@media(max-width:850px){.scenes{width:91vw}.caption{bottom:10rem}}
@media(max-width:650px){.caption{bottom:9rem}}

/* Keep the artwork, picker and caption in reading order on narrow screens. */
@media (max-width: 720px), (max-height: 500px) and (pointer: coarse) {
  main { display: grid; height: auto; min-height: 0; overflow: visible; }
  main::before { display: none; }
  #universe {
    position: relative; z-index: 0; display: block; width: 100%; height: auto;
    aspect-ratio: 16 / 10; max-height: 76svh; touch-action: pan-y pinch-zoom;
  }
  .scenes {
    position: static; grid-row: 2; width: 100%; min-width: 0; gap: .6rem;
    padding: .85rem 1rem; scroll-padding-inline: 1rem; align-items: stretch;
    border-bottom: 1px solid #302d30;
  }
  .scenes button { flex: 0 0 7.4rem; padding: .22rem .22rem .45rem; line-height: 1.25; }
  .scenes button i { height: 3.25rem; }
  .caption { position: static; grid-row: 3; max-width: none; padding: 1.25rem 1rem 2rem; }
  .caption h1 { font-size: clamp(2.1rem, 8vw, 3.5rem); }
  .caption p { max-width: 52ch; }
}
