/* polarjosh.com. Tokens and rules: spec sections "Theme and style", "Pages", "Intro". */
:root {
  --bg: #0b1622; --panel: #132131; --text: #e6eff6; --muted: #8aa3b8;
  --chip: #2f6690; --tile: #77a6c6; --card: #eef3f8; --accent: #a3c4dc;
  --on-chip: #eef3f8; --on-tile: #0b1622; --on-card: #132131;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f8fb; --panel: #dfe9f1; --text: #132131; --muted: #4f6577;
    --tile: #a3c4dc; --card: #ffffff; --accent: #1c4a6e; color-scheme: light;
  }
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .chip[aria-current="page"] { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); } }
:root[data-theme="light"] .chip[aria-current="page"] { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
:root[data-theme="light"] {
  --bg: #f4f8fb; --panel: #dfe9f1; --text: #132131; --muted: #4f6577;
  --tile: #a3c4dc; --card: #ffffff; --accent: #1c4a6e; color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .chip, .badge, .card-title, .controls, .cv-when { font-family: var(--mono); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.layout { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; min-height: 100vh; }
.sidebar { background: var(--panel); position: sticky; top: 0; height: 100vh; overflow: auto;
           padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.photo { width: 160px; height: 160px; object-fit: cover; background: var(--muted); }
.name { font-size: 1.5rem; margin: 8px 0 0; }
.name a { color: inherit; text-decoration: none; }
.role, .affil { margin: 0; }
.affil { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 200px; margin-top: 12px; }
.chip { display: block; background: var(--chip); color: var(--on-chip); text-decoration: none; padding: 6px 10px; font-size: .9rem; }
.chip[aria-current="page"] { background: var(--accent); color: var(--bg); font-weight: 600; box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
@media (hover: hover) { .chip:hover { filter: brightness(1.15); } }
.controls { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.controls a, .controls button { font: inherit; font-size: .85rem; background: transparent; color: var(--text);
                                border: 1px solid var(--muted); padding: 4px 10px; cursor: pointer; text-decoration: none; }
.controls [hidden] { display: none; }
/* external profiles: a quiet icon row under the page chips, kept apart from navigation by colour (no fill) and a hairline */
.links { display: contents; }                      /* desktop: profiles and controls are sidebar flex items; phones: one row */
.profiles { display: flex; justify-content: space-between; width: 100%; max-width: 200px; margin: 6px 0 0; padding: 12px 0 0;
            list-style: none; border-top: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); }
.profile { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); }
.profile svg { width: 22px; height: 22px; fill: currentColor; }
.profile:focus-visible { color: var(--text); }
@media (hover: hover) { .profile:hover { color: var(--text); background: color-mix(in srgb, var(--muted) 18%, transparent); } }
.badge { white-space: nowrap; }
/* page title as a tab on top of the first card */
.content > .page-title { display: inline-block; margin-bottom: 0; padding: 12px 24px 6px; border-radius: 4px 4px 0 0; }
.content > .page-title + * { border-top-left-radius: 0; }

.content { padding: 40px clamp(16px, 4vw, 56px); max-width: 1100px; min-width: 0; }
.content h2 { font-size: 1.1rem; margin: 32px 0 16px; }
.content section:first-child h2, .page-title { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { background: var(--tile); color: var(--on-tile); padding: 16px 20px; }
.tile h3 { margin: 0 0 6px; font-size: 1rem; }
.tile p { margin: 0; }
/* photo tiles: satellite-pixel photo that sharpens on hover, or on scroll on touch screens (static/tiles.js) */
.photo-tile { position: relative; overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.tile-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; }
.tile-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-pixels { image-rendering: pixelated; transition: opacity .9s ease; }
@media (hover: hover) { .photo-tile:hover .tile-pixels { opacity: 0; } }
@media (hover: none) { .tile-pixels { opacity: 0; } .js-reveal .photo-tile:not(.revealed) .tile-pixels { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tile-pixels { transition: none; } }
.photo-tile.open .tile-pixels, .js-reveal .photo-tile.open .tile-pixels { opacity: 0; }
/* with JS the pixels unravel block by block on a canvas (static/tiles.js) instead of fading */
.tile-blocks { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.js-unravel .tile-pixels { visibility: hidden; }
.tile-text { position: relative; width: 100%; padding: 44px 18px 14px; color: #e6eff6;
             background: linear-gradient(rgba(11, 22, 34, 0), rgba(11, 22, 34, .82) 40%); }
.tile-text p { color: #dbe7f0; font-size: .9rem; line-height: 1.45; }
/* unfolding topic panels (static/topics.js, templates/_topics.html); without JS every panel shows */
:root:not(.js-topics) .tiles { grid-template-columns: 1fr; }
.tiles { grid-auto-flow: dense; }
.js-topics .tile-media { cursor: pointer; }
.js-topics .tile:not(.open) .topic-panel { display: none; }
.tile.open { grid-column: 1 / -1; }
.tile.open .tile-media { aspect-ratio: 16 / 5; }
.tile-toggle { color: inherit; text-decoration: none; }
.tile-hint { display: none; margin-top: 6px; font: .75rem var(--mono); color: #a3c4dc; }
.js-topics .tile-hint { display: inline-block; }
.tile.open .tile-hint { display: none; }
.tile-close { display: none; position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; cursor: pointer;
              background: rgba(11, 22, 34, .7); color: #e6eff6; border: 1px solid #8aa3b8; font: 1.1rem var(--mono); }
.tile.open .tile-close { display: block; }
.topic-panel { background: var(--panel); color: var(--text); padding: 20px 22px 24px; }
.tile.open .topic-panel { animation: rise .45s .15s both ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .tile.open .topic-panel { animation: none; } }
.topic-lead { font-size: 1.1rem; margin: 0 0 16px; max-width: 70ch; }
.topic-panel figcaption, .topic-caption { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.topic-panel h4 { margin: 0 0 8px; font: 600 .8rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.topic-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 28px;
               margin-top: 22px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--muted) 40%, transparent); }
.topic-lists ul { list-style: none; margin: 0; padding: 0; }
.topic-lists li { margin: 0 0 9px; font-size: .9rem; line-height: 1.4; }
.topic-meta { display: block; font-size: .8rem; color: var(--muted); }
.cta { display: inline-block; background: var(--chip); color: var(--on-chip); text-decoration: none; padding: 8px 14px; font: .9rem var(--mono); }
.basemap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.basemap-map { position: relative; }
.basemap-map > img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.scene-box { position: absolute; outline: 1px solid rgba(230, 239, 246, .55); }
.scene-box canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.scene-box span { position: absolute; left: 0; bottom: 100%; padding: 1px 5px; font: .65rem var(--mono); color: #e6eff6; background: rgba(11, 22, 34, .75); white-space: nowrap; }
.place { position: absolute; transform: translate(-50%, -50%); font: italic .7rem system-ui, sans-serif; color: rgba(230, 239, 246, .8);
         text-shadow: 0 0 3px #0b1622; pointer-events: none; white-space: nowrap; }
.base.home { cursor: default; }
.base.home::before { border-radius: 50%; background: #0b1622; border-color: #e6eff6; }
.base { position: absolute; transform: translate(-6px, -50%); display: flex; align-items: center; gap: 5px; padding: 0;
        background: none; border: 0; cursor: pointer; font: .75rem var(--mono); color: #e6eff6; }
.base.left { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -50%); }
.base::before { content: ""; flex: none; width: 12px; height: 12px; background: #e6eff6; border: 2px solid #0b1622; }
.base span { background: rgba(11, 22, 34, .75); padding: 1px 5px; white-space: nowrap; }
.base.on::before { background: #f0a046; }
.base.on span { color: #f0a046; }
.album-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.album-tabs button { font: .8rem var(--mono); padding: 4px 9px; cursor: pointer; background: transparent; color: var(--text); border: 1px solid var(--muted); }
.album-tabs button span { color: var(--muted); }
.album-tabs button[aria-pressed="true"] { background: var(--chip); border-color: var(--chip); color: var(--on-chip); }
.album-tabs button[aria-pressed="true"] span { color: inherit; }
.album { margin: 0 0 14px; }
.js-topics .album:not(.on) { display: none; }
.js-topics .album-title, :root:not(.js-topics) .album-tabs, :root:not(.js-topics) .album-nav { display: none; }
.album-strip { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.album-strip::-webkit-scrollbar { display: none; }
.album-strip li { flex: 0 0 100%; scroll-snap-align: start; }
.album-strip img, .album-strip video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.album-cap { margin: 6px 0 0; font-size: .85rem; }
.album-tag { font: .7rem var(--mono); background: #f0a046; color: #0b1622; padding: 1px 5px; white-space: nowrap; }
.album-nav { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.album-nav button { width: 36px; height: 32px; cursor: pointer; font: 1.1rem var(--mono); background: transparent; color: var(--text); border: 1px solid var(--muted); }
.album-count { font: .8rem var(--mono); color: var(--muted); min-width: 3.5em; text-align: center; }
@media (pointer: coarse) { .album-nav button { width: 44px; height: 44px; } .album-tabs button { padding: 10px 12px; } }
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.platform { background: var(--bg); font-size: .85rem; }
.platform img, .platform-blank { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.platform-blank { display: grid; place-items: center; background: var(--chip); color: var(--on-chip); font: 600 1.2rem var(--mono); }
.platform p { margin: 8px 10px 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.stat { background: var(--bg); padding: 10px 12px; }
.stat b { display: block; font: 700 1.5rem var(--mono); }
.stat span { font-size: .8rem; color: var(--muted); }
.strip { position: relative; margin: 0 0 18px; }
.strip-rows { display: grid; grid-template-columns: 5.5em 1fr; gap: 6px 8px; align-items: center; }
.strip-label { font: .75rem var(--mono); }
.strip-track { position: relative; height: 22px; background-color: var(--bg); touch-action: pan-y;
               background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--muted) 30%, transparent) 0 1px, transparent 1px 12.5%); }
.tick { position: absolute; top: 4px; bottom: 4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--accent); }
.tick.on { top: 1px; bottom: 1px; background: var(--text); }
.strip-axis { position: relative; height: 1.3em; font: .7rem var(--mono); color: var(--muted); }
.strip-axis span { position: absolute; transform: translateX(-50%); }
.strip-axis span:first-child { transform: none; }
.strip-axis span:last-child { transform: translateX(-100%); }
.strip-tip { position: absolute; z-index: 2; transform: translate(-50%, -100%); pointer-events: none; white-space: nowrap;
             background: var(--text); color: var(--bg); font: 12px var(--mono); padding: 3px 7px; border-radius: 3px; }
.strip-tip[hidden] { display: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--bg); padding: 10px 12px; font-size: .9rem; }
.steps li::before { counter-increment: s; content: counter(s); display: block; font: 700 1rem var(--mono); color: var(--accent); }
.topic-figure { margin: 0 0 14px; }
.topic-figure img { display: block; max-width: min(100%, 720px); height: auto; background: #fff; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } .basemap { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .topic-panel { padding: 16px; }
  .strip-rows { grid-template-columns: 4.3em 1fr; }
  .strip-axis .odd { display: none; }
  .stats { grid-template-columns: 1fr; gap: 6px; }
  .stat { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; }
  .stat b { flex: none; min-width: 4.2em; font-size: 1.25rem; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); color: var(--on-card); text-decoration: none; display: flex; flex-direction: column; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card-title { font-weight: 600; padding: 12px 14px 4px; }
.card-host { padding: 0 14px 6px; font: .75rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.card-blurb { padding: 0 14px 14px; font-size: .9rem; }
.badge { font-size: .75rem; font-weight: 400; border: 1px solid currentColor; padding: 0 4px; margin-left: 6px; }
.footer { margin-top: 56px; font-size: .85rem; color: var(--muted); }
.footer a { color: var(--muted); }

.cv-list { list-style: none; padding: 0; margin: 0; }
.cv-list li { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 6px 0; }
.cv-when { color: var(--muted); }
.campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.campaign { display: grid; grid-template-columns: 136px 1fr; gap: 14px; background: var(--panel); align-items: center; }
.campaign img { width: 136px; height: 100%; min-height: 112px; object-fit: cover; display: block; }
.campaign-text { padding: 10px 12px 10px 0; }
.campaign-text p { margin: 2px 0; }
.campaign-head { font-family: var(--mono); font-weight: 600; }
.campaign-role { color: var(--muted); font-size: .9rem; }
.campaign-links { font-size: .85rem; }
.lost { margin: 0 0 16px; max-width: 420px; }
.lost img { width: 100%; height: auto; display: block; }
.lost figcaption { font-family: var(--mono); color: var(--muted); margin-top: 6px; }
.pubs { padding-left: 0; list-style: none; margin: 0; }
.paper { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; margin: 0 0 22px; }
.paper:not(:has(.paper-fig)) { grid-template-columns: 1fr; }
.pubs-first .paper { grid-template-columns: 320px 1fr; }
.paper-fig img { width: 100%; height: auto; display: block; border-radius: 2px; }
.paper-text p { margin: 0 0 8px; }
.paper-summary { border-left: 3px solid var(--accent); padding-left: 10px; }
.paper-credit { font-size: .75rem; color: var(--muted); }
.data-intro { color: var(--muted); max-width: 70ch; }
.collection { background: var(--panel); padding: 10px 14px; margin: 0 0 10px; }
.collection summary { cursor: pointer; font-weight: 600; }
.data-single { font-weight: 600; }
.data-count { font-weight: 400; color: var(--muted); }
.data-doi { margin: 6px 0; font-size: .9rem; }
.data-list { padding-left: 1.2em; margin: 6px 0; }
.data-list li { margin: 5px 0; }
.legal p { max-width: 70ch; white-space: pre-line; }
.legal h3 { font-size: 1rem; margin: 28px 0 6px; }
[data-todo] { outline: 1px dashed #d08a2e; outline-offset: 2px; }

/* intro (static/intro.js) */
.intro-pending body { visibility: hidden; }
.intro { position: fixed; inset: 0 auto 0 0; width: 100vw; height: 100%; z-index: 1000; visibility: visible; }   /* 100vw covers the scrollbar gutter too */
.intro-caption { background: rgba(11, 22, 34, .65); padding: 3px 7px; border-radius: 3px; position: fixed; left: 16px; bottom: 12px; z-index: 1001; visibility: visible; pointer-events: none;
                 font: 12px var(--mono); color: #a3c4dc; opacity: .8; }
.intro-credit { display: block; margin-top: 6px; }
.intro-skip { background: rgba(11, 22, 34, .65); padding: 3px 7px; border-radius: 3px; position: fixed; right: 16px; bottom: 12px; z-index: 1001; visibility: visible; pointer-events: none;
              font: 12px var(--mono); color: #a3c4dc; opacity: .8; }

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .chips { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
  .controls { margin-top: 8px; }
  .tiles, .cards { grid-template-columns: 1fr; }
  .cv-list li { grid-template-columns: 1fr; gap: 0; }
}

/* mobile */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 800px) {                       /* compact header, thumbnail-left cards */
  .sidebar { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; row-gap: 2px;
             align-items: center; text-align: left; padding: 16px; }
  .photo { grid-row: span 3; width: 72px; height: 72px; }
  .name { font-size: 1.25rem; margin: 0; }
  .chips, .controls { grid-column: 1 / -1; justify-content: flex-start; }
  .chips { margin-top: 10px; }
  .controls { margin-top: 4px; padding-top: 0; }
  .chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .chips .chip { text-align: center; padding-inline: 6px; }
  .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
  .profiles { width: auto; max-width: none; margin: 0 0 0 -11px; padding: 0; border: 0; }   /* icon edge lines up with the chips */
  .links .controls { margin: 0; gap: 0; }
  .links .controls > * + * { margin-left: -1px; }                     /* segmented: shared borders */
  .sidebar { padding-block: 12px; }
  .photo { width: 56px; height: 56px; }
  .role { font-size: .95rem; }
  .affil { font-size: .8rem; }
  .content { padding-top: 24px; }
  .card { display: grid; grid-template-columns: 112px 1fr; align-content: start; }
  .card img { grid-row: span 3; width: 112px; aspect-ratio: 4 / 3; }
  .card-title { padding-top: 10px; }
}
@media (max-width: 600px) {
  .paper, .pubs-first .paper { grid-template-columns: 1fr; gap: 10px; }
  .campaigns { grid-template-columns: 1fr; }
  .campaign { grid-template-columns: 104px 1fr; gap: 12px; }
  .campaign img { width: 104px; }
  .tile-media { aspect-ratio: 4 / 3; }
  .tile.open .tile-media { aspect-ratio: 16 / 7; }
}
@media (min-width: 801px) and (max-height: 560px) {   /* landscape phones */
  .sidebar { position: static; height: auto; }
  .controls { margin-top: 16px; }
}
@media (pointer: coarse) {                        /* 44 px touch targets */
  .chip { padding: 11px 14px; }
  .controls a, .controls button { display: inline-flex; align-items: center; justify-content: center;
                                  min-width: 44px; min-height: 44px; font-size: 1rem; }
  .footer a { display: inline-block; padding: 12px 0; }
}

/* Minecraft panorama background (static/pano.js); text gets solid cards under html.pano-on */
.pano, .pano-still { position: fixed; inset: 0 auto 0 0; width: 100vw; height: 100%; z-index: 0; }   /* 100vw covers the scrollbar gutter */
.pano { touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 1.2s ease; }
.pano:active { cursor: grabbing; }
.pano.on { opacity: 1; }
.pano-still { background: center / cover no-repeat; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pano { transition: none; } }
html.pano-on .layout { position: relative; z-index: 1; }
html.pano-on .layout, html.pano-on .content { pointer-events: none; }     /* gaps pass drags to the canvas */
html.pano-on .sidebar, html.pano-on .content > * { pointer-events: auto; }
.pano-credit { display: block; margin-top: 6px; }
html.pano-on body { background: transparent; }             /* html keeps --bg until the panorama shows */
/* cards always (not only under pano-on), so nothing moves when the panorama arrives or after the intro */
.content > * { background: color-mix(in srgb, var(--bg) 94%, transparent); padding: 20px 24px; border-radius: 4px; margin: 0 0 16px; }
.content > * > h2:first-child { margin-top: 0; }
.content > .footer { margin-top: 40px; }
@media (max-width: 600px) { .content > * { padding: 16px; } }
@media print { .pano, .pano-still, .pano-hint { display: none !important; } }
.layout { transition: opacity .3s ease; }
html.pano-idle .layout { opacity: 0; transition-duration: 1.5s; }
html.pano-look .layout { opacity: 0; }
html.pano-idle .layout, html.pano-idle .layout *, html.pano-look .layout, html.pano-look .layout * { pointer-events: none !important; }
.pano-hint { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; margin: 0; padding: 6px 10px; border-radius: 3px;
             display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; width: max-content; max-width: calc(100vw - 32px);
             background: rgba(11, 22, 34, .7); color: #e6eff6; font: 12px var(--mono); pointer-events: none; }
.pano-scene { font-weight: 600; }
.pano-next { pointer-events: auto; font: inherit; color: #0b1622; background: #e6eff6; border: 0; padding: 6px 12px; cursor: pointer; min-height: 32px; }
@media (pointer: coarse) { .pano-next { min-height: 44px; } }
.pano-hint[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .layout { transition: none; } }
/* frosted sidebar over the panorama: the scene glows through, text stays on ~80 % panel colour */
html.pano-on .sidebar { background: color-mix(in srgb, var(--panel) 80%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
/* room below the last card: scroll on and the panorama fills the window, no look mode needed */
html.pano-on .content::after { content: ""; display: block; height: 70vh; }
