/* The successful studio is the native How it works page, with the shared site navigation. */
:root{--site-header-height:90px;--bg:#FFF1E5;--surface:#FFFAF5;--text:#292546;--muted:#655B79;--accent:#4338A4;--line:#E7D7CF;--soft:#F9D6CB;--button-text:#fff;color-scheme:light}
:root[data-theme=dark]{--bg:#211D30;--surface:#2C263D;--text:#FFF1E5;--muted:#CBC1D7;--accent:#C0B5FF;--line:#51455F;--soft:#433040;--button-text:#211D30;color-scheme:dark}
body{background:var(--bg);color:var(--text)}
.site-header{position:absolute;inset:0 0 auto;padding:0 max(28px,calc((100vw - 1120px)/2));background:var(--surface);border-bottom:1px solid var(--line);pointer-events:auto;z-index:6}
.site-header nav{width:100%;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:17px 0}
.site-header .brand-line{max-width:590px;flex:1;margin:0;font-size:13px;line-height:1.5;color:var(--muted)}
.site-header .brand-line .brand{display:inline;margin-right:4px;font-size:19px;letter-spacing:normal;white-space:normal;font-weight:600;color:var(--accent)}
.site-header a{color:var(--accent)}.site-header .nav-right{display:flex;gap:14px;align-items:center;flex-shrink:0}.site-header .links{display:flex;gap:16px;font-size:13px;align-items:center;flex-wrap:wrap}.site-header .links a{text-decoration:none;color:var(--muted);padding:4px 0}.site-header .links a[aria-current=page]{color:var(--accent);border-bottom:2px solid var(--accent)}.site-header .theme-toggle{padding:8px 12px;background:transparent;border:1px solid var(--line);border-radius:4px;color:var(--text);font-size:12px;white-space:nowrap}
.integrated-scene .intro{top:calc(var(--site-header-height) + 22px);left:36px}.integrated-scene .intro h1{font-size:clamp(29px,3.7vw,48px);letter-spacing:-1.7px}.integrated-scene .intro .eyebrow{color:var(--accent)}.integrated-scene .intro>p:last-child{color:var(--muted)}
.integrated-scene .views{top:calc(var(--site-header-height) + 22px);max-width:400px}
.integrated-scene .task,.integrated-scene .views button,.integrated-scene dialog{background:var(--surface);border-color:var(--line);color:var(--text)}.integrated-scene .views button{color:var(--accent)}.integrated-scene .views button[aria-pressed=true],.integrated-scene .primary{background:var(--accent);border-color:var(--accent);color:var(--button-text)}.integrated-scene .task p:not(.eyebrow),.integrated-scene .text-button,.integrated-scene .gesture{color:var(--muted)}.integrated-scene .eyebrow{color:var(--accent)}.integrated-scene .dialogue{background:var(--soft)}.integrated-scene .dialogue blockquote,.integrated-scene #decoded{color:var(--text)!important}.integrated-scene select{background:var(--surface);color:var(--text);border-color:var(--line)}.integrated-scene #loading{background:var(--surface);border-color:var(--line);color:var(--text)}.integrated-scene #signal-progress{accent-color:var(--accent)}
:root[data-theme=dark] .integrated-scene .task{box-shadow:0 18px 60px #0004}:root[data-theme=dark] .integrated-scene .intro{opacity:1}
@media(max-width:1050px){.site-header nav{flex-direction:column;align-items:stretch;gap:12px}.site-header .brand-line{max-width:none}.site-header .nav-right{justify-content:space-between}}
@media(max-width:700px){.site-header{padding:0 16px}.site-header nav{padding:13px 0;gap:10px}.site-header .brand-line{font-size:12px}.site-header .brand-line .brand{font-size:17px}.site-header .links{gap:11px;font-size:11px}.site-header .nav-right{gap:9px;align-items:flex-start}.site-header .theme-toggle{font-size:10px;padding:7px 9px}.integrated-scene .intro{left:18px;top:calc(var(--site-header-height) + 20px);max-width:145px}.integrated-scene .intro h1{font-size:27px;letter-spacing:-1px}.integrated-scene .intro .eyebrow{font-size:7px}.integrated-scene .views{top:calc(var(--site-header-height) + 16px);right:14px;max-width:178px}.integrated-scene .views button{font-size:9px;padding:7px 9px}.integrated-scene .task{max-height:42vh}.integrated-scene .gesture{font-size:8px}}

:root[data-theme=dark] .integrated-scene #world{filter:brightness(.55) saturate(.85)}



/* Opening film doubles as a real asset-loading cover, rather than a timed spinner. */
.integrated-scene #world{transition:opacity .45s ease}
body[data-entry="intro"] #world{opacity:0;visibility:hidden;pointer-events:none}
body[data-entry="intro"] .intro,body[data-entry="intro"] .views,body[data-entry="intro"] #task,body[data-entry="intro"] .gesture,body[data-entry="intro"] #loading{visibility:hidden;pointer-events:none}
body[data-entry="intro"] #loading{display:none!important}
.experience-intro{position:fixed;inset:var(--site-header-height) 0 0;z-index:5;display:grid;grid-template-rows:minmax(0,1fr) auto;background:#171521;color:#fffaf5}
.experience-intro[hidden]{display:none!important}.entry-film-frame{position:relative;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.entry-film-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#171521}.entry-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:17px 25px;border-radius:40px;border:1px solid #ffffff80;background:#fffaf5eb;color:#292546;box-shadow:0 10px 40px #0004;font-size:14px;font-weight:600;white-space:nowrap}.entry-play span{margin-right:8px}.entry-play[hidden]{display:none!important}.entry-dock{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:22px max(30px,calc((100vw - 1120px)/2));background:var(--surface);color:var(--text);border-top:1px solid var(--line)}.entry-copy .eyebrow{font-size:9px;margin:0 0 6px;color:var(--accent)}.entry-copy h2{font-size:28px;letter-spacing:-.7px;line-height:1.15;margin:0 0 7px}.entry-copy>p:last-child{font-size:12px;color:var(--muted);margin:0}.entry-actions{min-width:210px}.entry-actions .primary{width:100%;font-size:12px;padding:13px 20px;background:var(--accent);color:var(--button-text)}.entry-actions .text-button{color:var(--muted)}.entry-actions [hidden]{display:none!important}
@media(max-width:700px){.entry-dock{padding:17px 18px 21px;display:block}.entry-copy h2{font-size:24px}.entry-copy>p:last-child{font-size:11px;line-height:1.5}.entry-actions{margin-top:13px;min-width:0}.entry-actions .primary{min-height:43px}.entry-play{font-size:12px;padding:14px 20px}.experience-intro{background:#171521}.integrated-scene .views{max-width:190px}}
@media(prefers-reduced-motion:reduce){.integrated-scene #world{transition:none}}

.integrated-scene #intro-enter{min-height:58px;padding:15px 24px;font-size:16px;font-weight:700}

.character-selection {
  position: fixed;
  inset: var(--site-header-height) 0 0;
  z-index: 6;
  overflow: auto;
  background: var(--bg);
  color: var(--text);
  padding: clamp(24px, 5vh, 56px) max(24px, calc((100vw - 1160px) / 2));
}
.character-heading h2 {font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -1.4px;}
.character-heading > p:last-child {color: var(--muted); margin: 0 0 28px; font-size: 15px;}
.character-options {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; border: 0;}
.character-card {display: block; position: relative; margin: 0; cursor: pointer; font-size: 15px;}
.character-card input {position: absolute; opacity: 0; width: 1px; height: 1px;}
.character-preview {display: block; overflow: hidden; border: 2px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--surface);}
.character-preview video {display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;}
.character-label {display: flex; justify-content: space-between; align-items: center; min-height: 58px; padding: 14px 16px; background: var(--surface); border: 2px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; font-weight: 600;}
.character-check {visibility: hidden; color: var(--accent);}
.character-card input:checked ~ .character-label .character-check {visibility: visible;}
.character-card input:checked ~ span {border-color: var(--accent);}
.character-card input:focus-visible ~ span {outline: 3px solid var(--accent); outline-offset: 4px;}
.character-options:disabled .character-card {cursor: wait;}
.character-footer {display: flex; gap: 24px; justify-content: space-between; align-items: center; margin-top: 26px;}
.character-footer p {color: var(--muted); font-size: 14px;}
.character-footer .primary {min-width: 220px; min-height: 56px; font-size: 16px;}
@media(max-width: 760px) {
  .character-selection {padding: 24px 18px;}
  .character-options {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;}
  .character-preview video {aspect-ratio: 1 / 1;}
  .character-label {font-size: 13px; min-height: 48px; padding: 10px;}
  .character-footer {flex-direction: column; align-items: stretch; gap: 4px; margin-top: 16px;}
}

.character-options legend {position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;}
