:root{--frame-inset:6.5vw;--ink:#1b242e;--muted:#4e5965;--paper:#cbd2db;--ease:cubic-bezier(.19,1,.22,1)}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--paper);color:var(--ink);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:300}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #a54312;outline-offset:6px}button{border:0;background:none}button:disabled{cursor:wait}::selection{background:#ec8e50;color:#17232e}.skip{position:fixed;top:-100px;left:20px;z-index:100;background:white;padding:15px}.skip:focus{top:10px}header{position:fixed;inset:0 0 auto;z-index:30;pointer-events:none;height:90px}header>*{pointer-events:auto}#wordmark{position:absolute;left:6.25vw;top:calc(50svh - 230px);font-size:clamp(82px,8.2vw,142px);font-weight:400;line-height:1;letter-spacing:-.055em;transition:top 1.3s var(--ease),left 1.3s var(--ease),font-size 1.3s var(--ease),opacity .6s,color .6s}body.compact #wordmark{left:var(--frame-inset);top:31px;font-size:27px;letter-spacing:-.045em}.try-button{position:absolute;right:var(--frame-inset);top:27px;display:flex;gap:30px;align-items:center;font-size:14px;border:1px solid #64707d66;border-radius:3px;padding:13px 17px;transition:background .3s}.try-button:hover{background:#ffffff55}.try-button span{font-size:19px}main{height:100svh;position:relative}#world{position:absolute;inset:0;transition:transform 1.65s var(--ease);overflow:hidden;background:radial-gradient(ellipse at 69% 36%,#e3e7ed 0%,#cbd3dd 44%,#bdc7d2 100%)}.ambient{position:absolute;width:40vw;height:18vw;right:4vw;bottom:-7vw;filter:blur(60px);background:#dd9c6d;opacity:.18}.floor-shadow{position:absolute;left:60%;top:76%;width:26vw;height:5vh;background:#586171;filter:blur(28px);border-radius:50%;opacity:.19;transition:opacity .8s}#viewport{position:absolute;inset:0;touch-action:none}canvas{display:block;width:100%;height:100%;outline:none}#loading{position:absolute;inset:48% 0 auto;text-align:center;font-size:13px;letter-spacing:.02em;transition:opacity .5s}#loading span{display:block;height:1px;width:48px;background:#8995a1;margin:16px auto;animation:pulse 1.2s infinite}@keyframes pulse{50%{width:95px;opacity:.3}}#render-error{position:absolute;inset:35% 10%;text-align:center;padding:25px;background:#d5dce4}#render-error button{text-decoration:underline;padding:15px}#copy-wrap{position:absolute;left:6.5vw;top:50%;width:35vw;transform:translateY(-50%);z-index:5;transition:transform 1.65s var(--ease),opacity .9s}#chapter-copy{will-change:opacity,transform,filter}#chapter-copy h1{font-size:clamp(27px,2.7vw,45px);font-weight:300;letter-spacing:-.035em;line-height:1.13;margin:26px 0 27px}#chapter-copy p{margin:0}#chapter-copy .intro{font-size:clamp(17px,1.45vw,24px);line-height:1.5;letter-spacing:-.012em}#chapter-copy .ai{display:flex;align-items:center;gap:12px;margin-top:31px;font-size:13px;color:var(--muted)}.seed{font-size:25px;line-height:1;font-weight:300}.chapter-caption{font-size:12px;color:var(--muted);margin-bottom:34px!important}.chapter-body{font-size:clamp(27px,2.8vw,47px);font-weight:300;line-height:1.19;letter-spacing:-.035em;max-width:15ch}.chapter-body.memory{font-size:clamp(26px,2.5vw,40px);max-width:16ch}.chapter-secondary{font-size:clamp(16px,1.3vw,21px);line-height:1.5;max-width:28ch;margin-top:25px!important}.purchase-wrap{position:absolute;z-index:25;left:6.5vw;bottom:16vh;transition:bottom 1.5s var(--ease),left 1.5s var(--ease),transform 1.5s var(--ease),color .7s}.cta{display:flex;align-items:center;justify-content:space-between;gap:38px;padding:12px 0 15px;min-width:176px;font-size:15px;border-bottom:1px solid currentColor;transition:gap .3s}.cta:hover{gap:55px}.cta span{font-size:20px}.stage-detail{position:absolute;right:5vw;bottom:16vh;display:flex;gap:24px;font-size:11px;letter-spacing:.015em;color:var(--muted);transition:opacity .6s}.chapters{position:absolute;left:2vw;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:10px;z-index:20}.chapters button{padding:9px;width:25px;position:relative}.chapters button:before{content:'';width:4px;height:4px;background:#75828e;position:absolute;top:50%;left:50%;border-radius:50%;transform:translate(-50%,-50%);transition:height .5s}.chapters button[aria-current]:before{height:19px;border-radius:2px;background:#293541}.chapters span{font-size:0}.bottom-line{position:absolute;bottom:32px;left:6.5vw;right:4vw;display:flex;justify-content:space-between;z-index:25;font-size:12px;color:var(--muted);transition:opacity .5s}.bottom-line button{padding:10px 0;display:flex;gap:13px;align-items:center}.scroll-line{height:26px;width:1px;background:#8c98a3;position:relative;overflow:hidden}.scroll-line:after{content:'';position:absolute;top:0;width:1px;height:10px;background:#283541;animation:scroll 2s infinite}@keyframes scroll{to{transform:translateY(27px)}}.sound-bars{display:flex;align-items:center;gap:3px;height:16px}.sound-bars i{width:1px;height:4px;background:currentColor}#sound[aria-pressed=true] i:nth-child(1){height:9px}#sound[aria-pressed=true] i:nth-child(2){height:15px}#sound[aria-pressed=true] i:nth-child(3){height:7px}#ending{position:absolute;inset:0;background:#080909;color:#f0f1ed;transform:translateY(100%);transition:transform 1.65s var(--ease);z-index:10;display:grid;place-items:center}.ending-inner{width:100%;transition:transform 1.2s var(--ease)}#ending h2{font-size:24.3vw;letter-spacing:-.067em;font-weight:400;line-height:.88;text-align:center;margin:0 3vw 36px -1vw}#ending p{font-size:clamp(20px,2vw,33px);line-height:1.5;margin:0 var(--frame-inset);font-weight:300}#ending p span{color:#89908b}body.final #world{transform:translateY(-110%)}body.final #copy-wrap{transform:translateY(calc(-50% - 110svh));opacity:0}body.final #ending{transform:translateY(0)}body.final header{opacity:0;pointer-events:none}body.final header>*{pointer-events:none}body.final .purchase-wrap{left:var(--frame-inset);color:#f0f1ed;bottom:7vh}body.final .chapters,body.final .stage-detail,body.final .bottom-line{opacity:0;pointer-events:none}#footer{position:absolute;inset:auto 0 0;height:35svh;background:#080909;color:#a4aaa5;z-index:15;padding:40px 6.5vw;transform:translateY(101%);transition:transform 1.2s var(--ease);display:flex;flex-direction:column;justify-content:space-between}#footer p{font-size:25px;line-height:1.25;margin:0;color:#e1e5de}#footer>div{display:flex;justify-content:space-between;gap:20px;font-size:12px}#footer button{padding:0}body.at-footer .ending-inner{transform:translateY(-23svh)}body.at-footer #footer{transform:translateY(0)}body.at-footer .purchase-wrap{bottom:39vh}#explore{position:fixed;inset:0;z-index:40;pointer-events:none}#explore>*{pointer-events:auto}.explore-top{position:absolute;top:28px;left:4vw;right:4vw;display:flex;justify-content:space-between;align-items:center}.explore-top h2{font-size:24px;font-weight:400;margin:0;letter-spacing:-.04em}.explore-top h2 span{font-weight:300;font-size:14px;letter-spacing:0;margin-left:20px}.text-button{font-size:14px;padding:10px}.text-button span{font-size:23px;margin-left:25px}.explore-bottom{position:absolute;bottom:30px;left:4vw;right:4vw;display:flex;justify-content:space-between;align-items:flex-end}.explore-bottom p{font-size:14px;line-height:1.6}.explore-bottom p span{color:#4d5864}.explore-bottom>div{display:flex;gap:10px}.explore-bottom button{border:1px solid #65727b77;padding:10px 16px;font-size:13px;border-radius:3px}body.exploring header,body.exploring #copy-wrap,body.exploring .purchase-wrap,body.exploring .bottom-line,body.exploring .chapters,body.exploring .stage-detail{opacity:0;pointer-events:none}body.exploring #world{transform:none;z-index:35}body.exploring #ending{visibility:hidden}.exploring .floor-shadow{left:35%;width:30vw}dialog{border:0;padding:55px;width:min(460px,90vw);background:#e4e8ec;color:#17242e;box-shadow:0 30px 120px #0004}dialog::backdrop{background:#17212b66;backdrop-filter:blur(10px)}.dialog-close{position:absolute;right:17px;top:12px;font-size:26px;padding:5px 10px}.dialog-kicker{font-size:17px;font-weight:400}dialog h2{font-size:43px;letter-spacing:-.04em;font-weight:300;line-height:1.05;margin:35px 0 25px}dialog p{font-size:17px;line-height:1.5}.purchase-small{font-size:13px;margin:25px 0;color:#53616c}dialog .cta{font-size:14px}body[data-chapter='0'] #copy-wrap{top:calc(50% - 75px);transform:none}body[data-chapter='0'] .purchase-wrap{bottom:15vh}@media(min-width:1700px){#copy-wrap{width:32vw}.purchase-wrap{bottom:18vh}#wordmark{top:calc(50svh - 245px)}}@media(max-height:700px) and (min-width:761px){#wordmark{top:19vh;font-size:82px}#chapter-copy h1{margin:15px 0;font-size:30px}#chapter-copy .intro{font-size:17px}#chapter-copy .ai{margin-top:18px}.purchase-wrap{bottom:13vh}#chapter-copy .chapter-body{font-size:31px}.chapter-caption{margin-bottom:20px!important}}
@media(max-width:760px){:root{--frame-inset:7vw}#wordmark{left:7vw;top:16vh;font-size:65px}body.compact #wordmark{top:26px;font-size:24px}.try-button{top:22px;font-size:12px;padding:9px 12px;gap:15px}#copy-wrap,body[data-chapter='0'] #copy-wrap{left:7vw;top:17%;width:80vw;transform:none}body[data-chapter='0'] #copy-wrap{top:26%}#chapter-copy h1{font-size:24px;line-height:1.1;margin:0 0 13px}#chapter-copy .intro{font-size:14px;line-height:1.45;max-width:47%;position:absolute;left:53%;top:0}#chapter-copy .ai{margin-top:0;font-size:11px}.seed{font-size:18px}.chapter-caption{font-size:11px;margin-bottom:15px!important}.chapter-body,.chapter-body.memory{font-size:clamp(24px,6.5vw,33px);max-width:25ch;line-height:1.12}.chapter-secondary{font-size:14px;margin-top:12px!important;max-width:36ch}.purchase-wrap,body[data-chapter='0'] .purchase-wrap{left:7vw;bottom:13vh}.cta{font-size:13px;min-width:157px;padding-bottom:12px}.stage-detail{right:7vw;bottom:14vh;font-size:10px;max-width:38%;text-align:right}.chapters{left:auto;right:3vw;top:55%;gap:4px}.bottom-line{left:7vw;right:7vw;bottom:20px;font-size:11px}.floor-shadow{left:25%;top:76%;width:50vw;height:3vh}#ending h2{font-size:24vw;margin-bottom:40px}#ending p{font-size:22px;margin:0 7vw;max-width:80vw}#footer{padding:30px 7vw;height:33svh}#footer>div{flex-wrap:wrap;font-size:11px}#footer p{font-size:24px}.explore-top{left:6vw;right:6vw}.explore-top h2 span{display:none}.explore-bottom{left:6vw;right:6vw;bottom:25px;display:block}.explore-bottom p{font-size:12px}.explore-bottom>div{gap:6px;flex-wrap:wrap}.explore-bottom button{font-size:12px;padding:10px 12px}.exploring .floor-shadow{left:20%;width:60vw}.chapter-body.memory+.chapter-secondary{max-width:33ch}body.final #copy-wrap{transform:translateY(-110svh)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition-duration:.01s!important}}



@media(max-width:760px){#chapter-copy h1{max-width:46%;font-size:22px}#memory-index{white-space:nowrap}body[data-chapter="0"] #copy-wrap{top:25%}}

/* Bring the two halves together inside one continuous full-window stage. */
@media(min-width:761px){#wordmark{left:10.75vw}#copy-wrap{left:11vw;width:34vw}.purchase-wrap{left:11vw}.bottom-line{left:11vw;right:7vw}.stage-detail{right:9vw}.floor-shadow{left:58%;width:25vw}}

/* Full-window exploration: scene previews and contextual dock controls. */
#explore:not([data-scene="device"]) .device-only,
#explore:not([data-scene="desk-dock"]) .dock-only,
#explore:not([data-scene="on-iphone"]) .phone-only,
#explore[data-scene="on-iphone"] #turn-ring,
#explore:not([data-film]) .film-only,
#explore[data-film] .explore-bottom {
  display: none;
}

.scene-picker {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(88px, 8.1vw, 118px);
  display: grid;
  gap: 9px;
}

.scene-preview {
  position: relative;
  padding: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid #52606d59;
  border-radius: 3px;
  background: #eff2f4ec;
  text-align: left;
  color: #28313b;
  transition: border-color .2s, background .2s;
}

.scene-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 18 / 11;
  max-height: clamp(16px, calc(20svh - 75px), 73px);
  object-fit: cover;
  background: #c8d1da;
}

.scene-preview span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  gap: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

.scene-preview[aria-pressed="true"] {
  border-color: var(--ink);
  background: #f5f6f6;
}

.scene-preview[aria-pressed="true"] span::after {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: currentColor;
  border-radius: 50%;
}

@media (hover: hover) {
  .scene-preview:hover { border-color: var(--ink); }
  #explore[data-scene="desk-dock"] .explore-bottom button:hover {
    background: #f3f4f4;
  }
}

#explore[data-scene="desk-dock"]::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(180deg, #edf0f254 0%, transparent 13%, transparent 80%, #edf0f2bf 100%);
}

#explore[data-scene="desk-dock"] .explore-bottom button {
  background: #f0f1f2de;
  border-color: #53606d66;
}

#explore .explore-top,
#explore .explore-bottom {
  pointer-events: none;
}

#explore .explore-top button,
#explore .explore-bottom button {
  pointer-events: auto;
}

#scene-status {
  position: absolute;
  top: 82px;
  left: 4vw;
  max-width: min(330px, 75vw);
  margin: 0;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  background: #f0f2f3ee;
  border-radius: 3px;
  pointer-events: none;
}

#scene-status:empty { display: none; }

@media (max-width: 760px) {
  .scene-picker {
    top: max(82px, 10svh);
    right: max(12px, env(safe-area-inset-right));
    width: 72px;
    gap: 6px;
    transform: none;
  }

  .scene-preview span {
    font-size: 10px;
    padding: 5px;
  }

  #explore[data-scene="on-iphone"] h2 .phone-only {
    display: inline;
    margin-left: 10px;
    font-size: 12px;
  }
  #close-explore { white-space: nowrap; }
  #close-explore span { margin-left: 14px; }
  #explore .explore-bottom button { min-height: 42px; }
  #scene-status { top: 74px; left: 6vw; max-width: 62vw; }
}

@media (min-width: 761px) and (max-height: 590px) {
  .scene-picker { width: 82px; gap: 6px; }
}
@media (max-height: 470px) and (orientation: landscape) {
  .scene-picker {
    top: 50%;
    right: 3vw;
    width: 72px;
    gap: 5px;
    transform: translateY(-50%);
  }

  .scene-preview img { height: clamp(12px, calc(20svh - 48px), 38px); max-height: none; }
  .scene-preview span { font-size: 10px; padding: 4px 6px; }
  #explore .explore-top { top: 7px; }
  #close-explore { padding-block: 4px; }
  #explore .explore-bottom {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    bottom: 10px;
  }
  #explore .explore-bottom p { margin: 0; font-size: 11px; }
  #explore .explore-bottom button { min-height: 36px; padding: 6px 10px; }
  #scene-status { top: 48px; }
}

#explore[data-film] {
  background: #171b1e;
  color: #f1f1ed;
}
#explore[data-film] .explore-top h2 span { color: #bdc5c9; }
#explore[data-film] #scene-status { color: var(--ink); z-index: 1; }

#voice-stage {
  position: absolute;
  inset: 88px calc(4vw + clamp(88px, 8.1vw, 118px) + 30px) 38px 4vw;
  display: grid;
  place-items: center;
  container-type: size;
}
.voice-player {
  width: min(100%, calc((100cqh - 52px) * 1.77778));
}
#voice-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101213;
}
.voice-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.voice-controls button {
  min-height: 40px;
  min-width: 65px;
  padding: 7px 14px;
  border: 1px solid #a6aeb46b;
  border-radius: 3px;
  font-size: 13px;
}
#voice-mute { margin-left: auto; }
.voice-controls button:focus-visible,
#explore[data-film] button:focus-visible { outline-color: #f2ad70; }
@media (hover: hover) {
  .voice-controls button:hover { background: #ffffff12; }
}
@media (max-width: 760px) and (orientation: portrait) {
  #explore[data-film]:not([hidden]) {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    padding: 20px 5vw max(20px, env(safe-area-inset-bottom));
  }
  #explore[data-film] .explore-top { position: static; }
  #explore[data-film] .scene-picker {
    position: static;
    justify-self: end;
    width: 116px;
    gap: 5px;
  }
  #explore[data-film] .scene-preview {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    min-height: 35px;
  }
  #explore[data-film] #scene-status { left: 5vw; max-width: calc(90vw - 128px); }
  #voice-stage { position: relative; inset: auto; }
}
@media (max-height: 470px) and (orientation: landscape) {
  #voice-stage { inset: 45px calc(3vw + 78px) 8px 4vw; }
  .voice-player { width: min(100%, calc((100cqh - 39px) * 1.77778)); }
  .voice-controls { margin-top: 5px; }
  .voice-controls button { min-height: 32px; padding: 4px 9px; }
}

/* OrbitControls writes an inline cursor for orbit gestures. */
#product[data-ring-cursor="pointer"] { cursor: pointer !important; }
#product[data-ring-cursor="grabbing"], #product.pulling-device { cursor: grabbing !important; }
