.public-simulation { position: fixed; z-index: 999; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); padding: 8px 12px; border: 1px solid var(--edge-strong); border-radius: 12px; background: var(--sidebar, #111522); color: var(--text); font: 13px Archivo, sans-serif; white-space: nowrap; box-shadow: 0 8px 24px -8px #000; }
.public-simulation strong { font-weight: 650; }
.public-simulation span { color: var(--muted); }
body.public-demo .mode { cursor: pointer; }
body.public-demo .room-placeholder { max-width: 380px; }
@media (max-width: 1100px) { .public-simulation { bottom: calc(76px + env(safe-area-inset-bottom)); gap: 7px; padding: 7px 9px; font-size: 12px; } .public-simulation span { display: none; } .public-simulation .mini { padding-inline: 8px; } }
@media (prefers-reduced-motion: reduce) { .public-simulation { transition: none; } }
.demo-loading { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font: 14px Archivo, sans-serif; background: var(--bg, #090b12); transition: opacity .4s ease; }
/* Site sections, at the top of the room view beside its title. On phones the bar
   moves into the menu (main.js). */
.site-bar { position: absolute; z-index: 6; top: 22px; right: calc(var(--control-width, 380px) + 64px); display: flex; gap: 2px; padding: 4px; border: 1px solid var(--edge); border-radius: 999px; background: var(--glass, rgba(17, 21, 34, .6)); -webkit-backdrop-filter: var(--blur, blur(16px)); backdrop-filter: var(--blur, blur(16px)); box-shadow: var(--sheen, none), 0 10px 30px -14px #000; font: 600 13px Archivo, sans-serif; transition: right var(--slow, .5s) var(--ease, ease), opacity .3s ease, transform .3s ease; animation: site-bar-in .6s var(--ease, ease) both; }
.site-bar a { padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.site-bar a:hover { color: var(--text); background: var(--surface-hover, rgba(255, 255, 255, .06)); }
.site-bar a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .1); }
body:not([data-route="room"]):not([data-route="scenes"]):not([data-route="effects"]):not([data-route="sync"]) .site-bar { right: 32px; }
/* Beside the room panel there is no room for the bar next to the room title and its 2D/3D switch below ~1600px, so it drops under the title */
@media (max-width: 1599px) { body:is([data-route="room"], [data-route="scenes"], [data-route="effects"], [data-route="sync"]) .site-bar { top: 108px; } }
body.editing .site-bar, body.watching .site-bar { opacity: 0; transform: translateY(-12px); pointer-events: none; }
@keyframes site-bar-in { from { opacity: 0; transform: translateY(-10px); } }
.nav-tools .site-bar { position: static; flex-wrap: wrap; justify-content: space-between; margin: 0 0 12px; border-radius: 20px; animation: none; }
.nav-tools .site-bar a { flex: 1 1 auto; text-align: center; padding: 10px 8px; }
@media (prefers-reduced-motion: reduce) { .site-bar { transition: none; animation: none; } }

/* Moving between Dashboard, Explore and Real Projects: the old page fades back,
   the new one rises in, and the site links glide between their positions. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: site-page-out .3s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: site-page-in .5s cubic-bezier(.16, 1, .3, 1) .05s both; }
::view-transition-group(site-nav) { animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
@keyframes site-page-out { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes site-page-in { from { opacity: 0; transform: translateY(16px); } }
/* Browsers without cross-page transitions get the same fade from site-transition code */
html.page-entering body { animation: site-page-fade .45s ease both; }
@keyframes site-page-fade { from { opacity: 0; } }
html.page-leaving body { opacity: 0; transition: opacity .24s ease; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  html.page-entering body { animation: none; }
}.site-bar { view-transition-name: site-nav; }

/* The Presentation showreel (src/showreel.js): over the room on desktop, under it on phones */
.showreel { --reel-accent: rgb(255 180 110); --reel-live: var(--reel-accent); position: absolute; z-index: 3; left: calc(var(--hs-rail-w, 0px) + 28px); bottom: 84px; width: min(620px, calc(100% - var(--hs-rail-w, 0px) - var(--control-width, 384px) - 110px)); font-family: var(--font, Archivo, sans-serif); color: #fff; pointer-events: none; }
.showreel > * { pointer-events: auto; }
.showreel::before { content: ""; position: absolute; z-index: -1; inset: -120px -160px -90px -80px; background: radial-gradient(ellipse at 20% 75%, rgb(2 4 14 / .78), rgb(2 4 14 / .35) 45%, transparent 70%); pointer-events: none; transition: opacity .6s ease; }
.showreel[data-state="idle"]::before, .showreel[data-state="idle"] .reel-panel { opacity: 0; visibility: hidden; }
.showreel:not([data-state="idle"]) .reel-resume { display: none; }
.reel-panel { display: grid; gap: 14px; transition: opacity .5s ease, visibility .5s; }
.reel-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .78); }
.reel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--reel-live); box-shadow: 0 0 0 3px rgb(255 255 255 / .12), 0 0 18px 3px var(--reel-live); transition: background .2s linear; }
.showreel[data-state="playing"] .reel-dot { animation: reel-breathe 2.4s ease-in-out infinite; }
.reel-count { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: .08em; color: rgb(255 255 255 / .5); }
.reel-title { margin: 0; font-family: var(--display, var(--font)); font-size: clamp(34px, 3.6vw, 54px); font-weight: 720; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 30px rgb(0 0 0 / .55); }
.reel-text { margin: 12px 0 0; max-width: 50ch; font-size: 16px; line-height: 1.5; color: rgb(255 255 255 / .8); text-wrap: pretty; text-shadow: 0 1px 12px rgb(0 0 0 / .7); }
.reel-caption.enter .reel-kicker { animation: reel-in .6s var(--ease, cubic-bezier(.2, .8, .2, 1)) both; }
.reel-caption.enter .reel-title { animation: reel-title-in .9s var(--ease, cubic-bezier(.2, .8, .2, 1)) .06s both; }
.reel-caption.enter .reel-text { animation: reel-in .7s var(--ease, cubic-bezier(.2, .8, .2, 1)) .22s both; }
.reel-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reel-extra:empty { display: none; }
.reel-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; background: rgb(10 14 30 / .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; font-weight: 600; color: rgb(255 255 255 / .62); transition: color .3s, border-color .3s, transform .3s; }
.reel-chip > i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.reel-chip.lit { color: #fff; border-color: rgb(255 255 255 / .32); transform: translateY(-2px); }
.reel-chip.lit > i { box-shadow: 0 0 12px 1px rgb(255 255 255 / .35); }
.reel-brand { color: #fff; animation: reel-in .5s var(--ease, ease) var(--delay, 0s) both; }
.reel-now b { color: #fff; font-weight: 700; }
.reel-now.flash { animation: reel-flash .6s ease both; }
.reel-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.reel-bars i { width: 7px; height: 100%; border-radius: 3px; background: linear-gradient(to top, var(--reel-accent), var(--reel-live)); transform-origin: bottom; transform: scaleY(.1); }
.reel-bpm { margin-left: 8px; font-size: 12px; font-weight: 650; letter-spacing: .12em; color: rgb(255 255 255 / .6); }
.reel-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; background: rgb(10 14 30 / .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font: 650 14px var(--font, Archivo, sans-serif); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; animation: reel-in .6s var(--ease, ease) .4s both; }
.reel-cta:hover { background: rgb(255 255 255 / .12); transform: translateY(-1px); }
.reel-cta.primary { border-color: transparent; background: var(--orange, #ff8a1f); color: #160b00; }
.reel-cta.primary:hover { background: #ffa04a; }
.reel-signal-row { display: grid; gap: 6px; }
.reel-signal-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .5); }
.reel-signal { display: block; width: 100%; height: 8px; border-radius: 4px; image-rendering: pixelated; background: #05070f; box-shadow: 0 0 22px -4px var(--reel-live), inset 0 0 0 1px rgb(255 255 255 / .08); }
.reel-chapters { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin: 0; padding: 0; list-style: none; }
.reel-chapter { position: relative; display: block; width: 100%; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.reel-chapter::before { content: ""; position: absolute; inset: 7px 0; border-radius: 2px; background: rgb(255 255 255 / .16); transition: background .2s; }
.reel-chapter:hover::before { background: rgb(255 255 255 / .3); }
.reel-chapter i { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--reel-accent); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px var(--reel-accent); }
.reel-controls { display: flex; gap: 8px; }
.reel-control, .reel-resume { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; min-height: 40px; padding: 0 12px; border: 1px solid rgb(255 255 255 / .18); border-radius: 999px; background: rgb(10 14 30 / .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font: 600 13px var(--font, Archivo, sans-serif); cursor: pointer; transition: background .2s, border-color .2s; }
.reel-control:hover, .reel-resume:hover { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .3); }
.reel-control:focus-visible, .reel-resume:focus-visible, .reel-chapter:focus-visible, .reel-cta:focus-visible { outline: 2px solid var(--reel-accent); outline-offset: 2px; }
.reel-take { margin-left: auto; }
.reel-icon { display: inline-flex; }
.reel-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reel-resume .reel-icon svg, .reel-control.is-play svg { fill: currentColor; stroke-width: 1.2; }
.reel-resume { padding: 0 18px 0 14px; box-shadow: 0 10px 30px -12px #000; animation: reel-in .5s var(--ease, ease) both; }
@keyframes reel-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes reel-title-in { from { opacity: 0; transform: translateY(18px); filter: blur(10px); } }
@keyframes reel-flash { 0% { transform: scale(.96); border-color: var(--reel-live); } }
@keyframes reel-breathe { 50% { box-shadow: 0 0 0 5px rgb(255 255 255 / .06), 0 0 28px 6px var(--reel-live); } }
body.watching .showreel .reel-controls, body.editing .showreel { display: none; }
@media (min-width: 1101px) and (max-height: 760px) { .showreel { bottom: 74px; } .reel-title { font-size: 34px; } .reel-text { font-size: 14px; } .reel-signal-row { display: none; } }
@media (max-width: 1100px) {
  .showreel { position: relative; left: auto; bottom: auto; width: auto; margin: 12px 10px 4px; }
  .showreel::before { display: none; }
  .showreel[data-state="idle"] .reel-panel { display: none; }
  .reel-panel { gap: 12px; padding: 18px; border: 1px solid rgb(255 255 255 / .12); border-radius: 22px; background: linear-gradient(160deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02)), rgb(10 14 30 / .72); box-shadow: 0 20px 50px -30px var(--reel-live); }
  .reel-title { font-size: clamp(26px, 7.4vw, 36px); }
  .reel-text { margin-top: 8px; font-size: 14.5px; }
  .reel-take > span:not(.reel-icon) { display: none; }
  .reel-take { min-width: 40px; padding: 0; }
  .reel-resume { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .showreel *, .showreel::before { animation: none !important; transition: none !important; }
}
