/* U0500: a finite public entrance. Session/workspace routing remains authoritative. */
html[data-brand-intro="waiting"] body.homepage[data-entry="public"]:not([data-session-pending]) :is(.site-header,#landing){visibility:hidden}
html[data-brand-intro="playing"]{overflow:hidden}
html[data-brand-intro="playing"] .site-header .brand img{visibility:hidden}
body.hw-school-shell dialog.brand-intro{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:transparent;color:#233440;box-shadow:none}
body.hw-school-shell dialog.brand-intro::backdrop{background:transparent;backdrop-filter:none}
body.hw-school-shell dialog.brand-intro > div{padding:0;border:0;margin:0;box-sizing:border-box}
.brand-intro-wash{position:absolute;inset:0;background:#e3e4e5}
body.hw-school-shell dialog.brand-intro[data-theme="dark"]{color:#e8f0fa}
.brand-intro[data-theme="dark"] .brand-intro-wash{background:#071020 url("assets/brand-intro/dark-backdrop.jpg") center / calc(min(100vw,100svh,1080px) * 4) auto no-repeat}
.brand-intro-stage{position:absolute;width:min(100vw,100svh,1080px);aspect-ratio:1;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}
body.hw-school-shell dialog.brand-intro .brand-intro-video{margin:0;padding:0;border:0;box-sizing:border-box;display:block;width:100%;height:100%;object-fit:contain;max-width:none;max-height:none;mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent),linear-gradient(transparent,#000 2%,#000 98%,transparent);mask-composite:intersect}
body.hw-school-shell dialog.brand-intro .brand-intro-emblem{margin:0;padding:0;border:0;max-height:none;position:fixed;display:block;opacity:0;max-width:none;transform-origin:top left;pointer-events:none;object-fit:fill}
body.hw-school-shell dialog.brand-intro .brand-intro-controls{position:absolute;inset:auto 0 max(28px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;gap:12px;padding:0 20px}
.brand-intro-controls button{min-height:44px;padding:10px 17px;border:1px solid #23344025;border-radius:30px;color:inherit;background:#ffffff80;font:inherit;font-size:13px;font-weight:500;line-height:1.4;cursor:pointer;transition:background .18s ease,opacity .18s ease}
.brand-intro-controls button:hover{background:#fff}
.brand-intro-controls button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.brand-intro[data-theme="dark"] .brand-intro-controls button{background:#ffffff0a;border-color:#ffffff25}
.brand-intro[data-theme="dark"] .brand-intro-controls button:hover{background:#ffffff18}
.brand-intro-controls .brand-intro-skip{border-color:transparent;background:transparent}
.brand-intro-controls [data-theme-toggle]{width:44px;padding:10px;font-size:0}

.brand-intro[data-state="docking"] .brand-intro-controls{opacity:0;pointer-events:none}
.brand-intro-replay{appearance:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;white-space:nowrap;padding:10px 4px;opacity:.7}
.brand-intro-replay:hover{opacity:1}
@media(max-width:650px){body.hw-school-shell dialog.brand-intro .brand-intro-controls{gap:4px;bottom:max(22px,env(safe-area-inset-bottom))}.brand-intro-controls button{padding:10px 12px}.homepage #public-nav{gap:8px}#public-nav .brand-intro-replay{font-size:0;width:36px;height:44px;padding:0}#public-nav .brand-intro-replay::before{content:'↻';font:22px/1 sans-serif}}
@media(prefers-reduced-motion:reduce){.brand-intro-replay{display:none}.brand-intro-controls button{transition:none}}
