/* Retain the original section DOM for homepage initialization, but show one scene entry. */
#scenes{display:none!important}#scene-showcase{padding-top:68px;padding-bottom:20px}#tasks{padding-top:34px;border-top:1px solid #d5d5ce}#task-scenes{display:none}#tasks-title{font-size:28px!important;font-family:var(--serif,Charter,Georgia,serif)!important;font-weight:400!important}.gallery-task-select{position:absolute;inset:0;border:0;background:transparent;z-index:3;cursor:pointer}.gallery-task-select[aria-pressed=true]{box-shadow:inset 0 -3px #222}.gallery-task-name{font:inherit;border:0;padding:0;background:transparent;cursor:pointer}.gallery-task-name[aria-pressed=true]{text-decoration:underline;text-underline-offset:8px}.gallery-task-select:focus-visible{outline:3px solid #333;outline-offset:-4px}.showcase-card .inline-case{position:relative}.scene-gallery-ghost{pointer-events:none}#tasks .section-heading{margin-bottom:14px}.task-section .task-list{margin-bottom:22px}#tasks .task-layout[hidden]{display:none}.task-section{scroll-margin-top:95px}

/* Keep scene selection and its task controls in one compact visual group. */
.home-immersive-preview main > #scene-showcase{padding-bottom:0!important}
#scene-showcase .physics-copy{padding-top:10px}
#scene-showcase .physics-copy h3{margin-bottom:0;font-size:21px}
#tasks{padding-top:14px;border-top:0;margin-top:0}
#tasks>.section-heading{display:inline-flex;vertical-align:middle;margin:0 18px 12px 0;padding:0}
#tasks-title{font-size:23px!important;letter-spacing:-.35px!important}
#tasks>#task-list{display:inline-flex;vertical-align:middle;margin:0 0 12px;gap:8px}
#tasks .task-layout{clear:both}
#tasks .task-list button{border:1px solid rgba(255,255,255,.65);background:rgba(255,255,255,.32);backdrop-filter:blur(16px) saturate(135%);-webkit-backdrop-filter:blur(16px) saturate(135%);box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 3px 12px rgba(40,45,38,.055);border-radius:24px;transition:background .18s,border-color .18s,box-shadow .18s;color:#343731;filter:none}
#tasks .task-list button[aria-pressed=true]{background:rgba(42,48,39,.72);border-color:rgba(255,255,255,.5);color:#fff;box-shadow:inset 0 1px 0 #ffffff38,0 4px 14px #26302016}
#tasks .task-list button:hover{background:rgba(255,255,255,.62)}
#tasks .task-list button[aria-pressed=true]:hover{background:rgba(42,48,39,.82)}
@media(max-width:760px){#tasks>.section-heading{display:flex;margin-bottom:10px}#tasks>#task-list{display:flex;flex-wrap:wrap;margin-bottom:12px}#tasks-title{font-size:21px!important}}
@media(prefers-reduced-motion:reduce){#tasks .task-list button{transition:none}}

/* Glass needs real image content behind it: float task choices over the video. */
#tasks .task-screen #task-list{position:absolute;z-index:4;top:16px;left:16px;right:16px;display:flex;flex-wrap:nowrap;gap:8px;margin:0;padding:3px 3px 9px;overflow-x:auto;scrollbar-width:thin}
#tasks .task-screen #task-list button{flex:0 0 auto;background:rgba(255,255,255,.22);color:#151914;border:1px solid rgba(255,255,255,.62);backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 3px 12px rgba(0,0,0,.12);text-shadow:0 1px 3px rgba(255,255,255,.5)}
#tasks .task-screen #task-list button[aria-pressed=true]{background:rgba(255,255,255,.54);color:#101510;border-color:rgba(255,255,255,.95);box-shadow:inset 0 0 0 1px rgba(255,255,255,.45),0 3px 14px rgba(0,0,0,.18);font-weight:600}
#tasks .task-screen #task-list button:hover{background:rgba(255,255,255,.66)}
#tasks .task-screen #task-list .task-duration{color:inherit;opacity:.75}
#tasks #task-video-retry{top:80px;z-index:5}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#tasks .task-screen #task-list button{background:rgba(255,255,255,.92)}}
@media(max-width:760px){#tasks .task-screen #task-list{top:9px;left:9px;right:9px}#tasks .task-screen #task-list button{padding:10px 13px;font-size:12px}}

/* Task choices already identify the video; omit the duplicate detail block. */
#tasks .task-caption{display:none}

/* A dedicated hover/focus control preserves click-to-select on the scene image. */
.gallery-fullscreen{position:absolute;right:10px;top:10px;z-index:5;display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff80;border-radius:50%;color:white;background:#15181555;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer;opacity:0;transition:opacity .16s,background .16s}
.inline-case:hover .gallery-fullscreen,.inline-case:focus-within .gallery-fullscreen{opacity:1}
.gallery-fullscreen:hover{background:#15181588}
.gallery-fullscreen:focus-visible{outline:2px solid white;outline-offset:3px}
#scene-showcase video:fullscreen{width:100vw;height:100vh;max-height:none;object-fit:contain;background:#000}
@media(hover:none){.gallery-fullscreen{opacity:1}}
@media(prefers-reduced-motion:reduce){.gallery-fullscreen{transition:none}}

/* Group the task heading with its player, separate from the scene labels. */
.home-immersive-preview main > #tasks{padding-top:30px}
.home-immersive-preview main > #tasks > .section-heading{margin:0 0 12px!important;padding:0}

/* Scene gallery is a primary chapter, matching Physical realism. */
.home-immersive-preview main > #scene-showcase .section-heading #scene-showcase-title{font-size:48px!important;line-height:1.12;font-weight:600;letter-spacing:-.035em;color:var(--ink);margin:0}
@media(max-width:650px){.home-immersive-preview main > #scene-showcase .section-heading #scene-showcase-title{font-size:34px!important}}

/* White labels remain readable on the unselected dark glass surface. */
#tasks .task-screen #task-list button{color:#fff;background:rgba(20,24,20,.38);text-shadow:0 1px 3px rgba(0,0,0,.35)}
#tasks .task-screen #task-list button:hover{background:rgba(20,24,20,.52)}
#tasks .task-screen #task-list button[aria-pressed=true]{color:#101510;background:rgba(255,255,255,.64);text-shadow:none}
#tasks .task-screen #task-list button[aria-pressed=true]:hover{background:rgba(255,255,255,.76)}
.task-robot-badge{font-size:10px;font-weight:500;letter-spacing:.04em;padding:3px 6px;border:1px solid currentColor;border-radius:5px;line-height:1;opacity:.85}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#tasks .task-screen #task-list button{background:rgba(20,24,20,.9)}#tasks .task-screen #task-list button[aria-pressed=true]{background:rgba(255,255,255,.94)}}
