/* sofinity-build: 20261002-copy-v2-mobile-1 */
/* Sofinity: choose a scene, stay, and respond. */
.wrap { width: min(1200px, calc(100% - 2 * clamp(20px, 5vw, 72px))); margin: 0 auto; }
html { scrollbar-gutter: stable; }
html.home-open { overflow: hidden; }
html.home-open body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
/* The house is a room in this viewport, not another scroll destination. */
#s04 { display: none; padding: 0; }
#s04.is-immersive { display: block; position: fixed; inset: var(--nav) 0 0; z-index: 90; opacity: 0; pointer-events: none; transition: opacity 1.5s cubic-bezier(.4,0,.2,1); }
#s04.is-home-visible { opacity: 1; pointer-events: auto; }
.home-back { position: absolute; z-index: 4; top: 20px; left: clamp(20px,4vw,64px); display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 17px; border-radius: 30px; background: #faf6e9e6; box-shadow: 0 3px 18px #392e2015; font-size: 13px; font-weight: 600; }
.experience-shell[data-scene="night"] .home-back { color: #e7f2fa; background: #1c3246e3; }
/* Give the real-world introduction the same clear reading area as the first hero. */
.copy-d { padding: 28px 32px 28px 0; isolation: isolate; }
.copy-d::before { content: ''; position: absolute; z-index: -1; inset: -44px -120px -40px -90px; pointer-events: none; background: radial-gradient(ellipse at 30% 46%,#f4f1e6 0%,#f4f1e6fa 45%,#f4f1e6d9 70%,#f4f1e600 100%); filter: blur(24px); }
.copy-d .body { color: #294f40; font-weight: 500; }
.copy-d .btn--ghost { background: #f4f1e6; border-color: #294f4066; }
@media (max-width: 720px) {
  .copy-d { left: 0; right: 0; bottom: 0; padding: 20px 20px 24px; background: none; }
  .copy-d::before { inset: -14px 0 0; background: linear-gradient(180deg,#f4f1e600,#f4f1e6f7 12%,#f4f1e6 34%); filter: none; }
  .copy-d .body { margin-top: 12px; line-height: 1.7; }
  .copy-d .greet { margin-top: 16px; padding-top: 12px; }
  .copy-d .greet-lead { font-size: 14px; line-height: 1.6; margin-bottom: 0; }
  .copy-d .actions { margin-top: 14px; }
  .copy-d .btn { min-height: 44px; }
}
.experience-shell { position: relative; width: 100%; margin: 0; isolation: isolate; --scene-duration: 850ms; --scene-ease: cubic-bezier(.4,0,.2,1); }
.experience-stage { position: relative; height: calc(100svh - var(--nav)); min-height: 540px; overflow: hidden; isolation: isolate; background: #e7e2d2; }
#s04.is-immersive .experience-stage { min-height: 0; }
.experience-shell::after { content: ''; position: absolute; z-index: 2; inset: auto 0 0; height: 240px; pointer-events: none; background: linear-gradient(transparent, #1b25252b); }
.day { position: absolute; inset: 0; margin: 0; height: 100%; opacity: 0; visibility: hidden; pointer-events: none; z-index: 0; transition: none; --light-core: #fff8dc; --light-mid: #ffdf90; --light-edge: #ffd78b44; }
.day.is-selected { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--scene-duration) var(--scene-ease); z-index: 2; }
/* Keep the previous room opaque underneath the incoming room: no pale flash. */
.day.is-leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.day.is-preparing { visibility: visible; z-index: 2; transition: none; }
.experience-shell[data-transitioning="true"] .day.is-selected,
.day.is-preparing, .day.is-leaving { will-change: opacity; }
.experience-shell[data-transitioning="true"] .scene-hotspot,
.experience-shell[data-transitioning="true"] .scene-tab { cursor: default; }
.day-stage { position: absolute; inset: 0; height: 100%; overflow: hidden; }
.day-stage .scene-bg { transform: none; transition: none; background-position: center 61%; }
.day-stage .scene-bg::after { display: none; }
.day-stage .scene-bg { will-change: auto; }
.house-entry { position: absolute; z-index: 9; width: 166px; height: 172px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transform: translate(-50%,-50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .8s; border-radius: 70px 70px 30px 30px; }
.istage[data-phase="e"] .house-entry { opacity: 1; visibility: visible; pointer-events: auto; }
.hotspot-pin { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; color: #294f40; border: 1px solid #fffdf4d9; background: #f8f4e7e8; box-shadow: 0 0 0 7px #fff8df30,0 5px 18px #45381c18; font-size: 21px; transition: box-shadow .3s, transform .3s; }
.hotspot-label { display: inline-block; font-size: 12px; font-weight: 650; white-space: nowrap; }
.house-entry .hotspot-label { padding: 9px 14px; border-radius: 24px; background: #f8f4e7e8; box-shadow: 0 4px 16px #45381c12; }
.house-entry:hover .hotspot-pin, .scene-hotspot:hover .hotspot-pin { box-shadow: 0 0 0 12px #fff8df38,0 5px 18px #45381c18; transform: translateY(-2px); }
.house-entry:focus-visible, .scene-hotspot:focus-visible { outline: 3px solid #718c5d; outline-offset: 7px; }
.scene-hotspot { position: absolute; z-index: 6; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 10px; min-height: 48px; border-radius: 30px; padding: 5px 15px 5px 5px; background: #faf6e9eb; box-shadow: 0 4px 24px #392e201c; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.scene-hotspot .hotspot-pin { box-shadow: none; border-color: #294f4020; width: 36px; height: 36px; font-size: 18px; }
.sofa-hotspot::before { content: ''; position: absolute; inset: -20px -38px; border-radius: 40px; }
.window-toggle { padding: 10px 15px; gap: 10px; }
.window-switch { width: 36px; height: 22px; background: #bcc5ad; border-radius: 20px; position: relative; transition: background .45s; }
.window-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fffdf6; transition: transform .45s; }
.window-toggle[aria-checked="true"] .window-switch { background: #66869e; }
.window-toggle[aria-checked="true"] .window-switch::after { transform: translateX(14px); }
.day[data-mode="night"] .window-toggle { color: #e7f2fa; background: #1c3246e3; border: 1px solid #cee7f83b; }
.dusk-tint { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(100deg,#25385380,#51485e40 48%,#4b526040); opacity: 0; transition: opacity var(--scene-duration) var(--scene-ease); }
.day[data-dusk="true"] .dusk-tint { opacity: 1; }
.day[data-mode="rest"] { --light-core: #fff7df; --light-mid: #ffe2ae; --light-edge: #ffe4b63d; }
.day[data-mode="night"] { --light-core: #e8f5ff; --light-mid: #abd9ff; --light-edge: #8ac9ff38; }
.day[data-mode="night"] .scene-bg { filter: brightness(.88); }
.sophi--glow { position: absolute; left: var(--sx); bottom: max(var(--sy), 170px); width: min(var(--sw), 38svh); transform: translateX(-50%); filter: drop-shadow(4px 8px 9px #30241630); opacity: 1; }
.sophi--glow img.base { width: 100%; height: auto; }
.sophi--glow::before { display: none; }
.sophi--glow::after { content: ''; position: absolute; left: 50%; bottom: -1%; width: 122%; height: 10%; transform: translateX(-50%); background: radial-gradient(ellipse, #372d2557, #372d2524 45%, transparent 72%); filter: blur(5px); z-index: -1; }
.glow { position: absolute; inset: 0; -webkit-mask: url(assets/sophi.png) center / 100% 100% no-repeat; mask: url(assets/sophi.png) center / 100% 100% no-repeat; pointer-events: none; overflow: hidden; }
.glow-core, .glow-react { position: absolute; left: 50%; top: 64%; width: 116%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%) scale(.92); background: radial-gradient(ellipse, var(--light-core) 0%, var(--light-mid) 23%, var(--light-edge) 49%, transparent 69%); opacity: .38; filter: blur(5px); }
.glow-react { opacity: 0; background: radial-gradient(ellipse, #fffdf2 0%, var(--reaction-tint, #ffdf95) 25%, transparent 69%); }
.floor-light { position: absolute; left: var(--sx); bottom: calc(max(var(--sy), 170px) - 2%); width: calc(var(--sw) * 1.85); height: calc(var(--sw) * .35); transform: translateX(-50%); background: radial-gradient(ellipse, var(--light-mid), transparent 70%); filter: blur(12px); mix-blend-mode: screen; opacity: .15; pointer-events: none; }
.sophi-touch { position: absolute; inset: -4% -5%; border-radius: 48%; cursor: pointer; background: transparent; touch-action: manipulation; }
.sophi-touch:focus-visible { outline: 3px solid #527558; outline-offset: 9px; }
.day[data-mode="night"] .sophi-touch:focus-visible { outline-color: #c1e4ff; }
/* Remove the warm light baked into the source render before adding blue light. */
.day[data-mode="night"] img.base { filter: grayscale(1) brightness(.88); }
.day[data-mode="night"] .glow-core { opacity: .63; mix-blend-mode: screen; }
.day[data-mode="night"] .glow::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 66%, #9bd6ff 0%, #bddfffaa 23%, transparent 56%); mix-blend-mode: color; opacity: .85; }
.day[data-mode="night"] .glow-react { background: radial-gradient(ellipse, #e3f6ff 0%, #9fd4ff 28%, transparent 67%); }
@property --reaction-tint { syntax: '<color>'; inherits: true; initial-value: #ffdf95; }
@keyframes soft-idle { 0%,100% { opacity: .28; transform: translate(-50%,-50%) scale(.87); } 50% { opacity: .47; transform: translate(-50%,-50%) scale(.99); } }
@keyframes soft-calm { 0%,100% { opacity: .31; transform: translate(-50%,-50%) scale(.87); } 50% { opacity: .61; transform: translate(-50%,-50%) scale(1.04); } }
@keyframes soft-night { 0%,100% { opacity: .48; transform: translate(-50%,-50%) scale(.88); } 50% { opacity: .68; transform: translate(-50%,-50%) scale(1.01); } }
@keyframes soft-floor { 0%,100% { opacity: .10; } 50% { opacity: .22; } }
.day .glow-core { animation: soft-idle 7s ease-in-out infinite; animation-play-state: paused; }
.day[data-mode="rest"] .glow-core { animation-name: soft-calm; animation-duration: 8s; }
.day[data-mode="night"] .glow-core { animation-name: soft-night; animation-duration: 12s; }
.day .floor-light { animation: soft-floor 7s ease-in-out infinite; animation-play-state: paused; }
.day[data-mode="rest"] .floor-light { animation-duration: 8s; }
.day[data-mode="night"] .floor-light { animation-duration: 12s; }
.experience-shell.is-visible .day.is-selected .glow-core,
.experience-shell.is-visible .day.is-selected .floor-light { animation-play-state: running; }
@keyframes greeting-light { 0%,100% { opacity: 0; transform: translate(-50%,-50%) scale(.88); --reaction-tint: #fff1bc; } 18% { opacity: .80; transform: translate(-50%,-50%) scale(1.15); --reaction-tint: #ffd379; } 34% { opacity: .38; transform: translate(-50%,-50%) scale(1.02); } 52% { opacity: .70; transform: translate(-50%,-50%) scale(1.12); --reaction-tint: #ffe08f; } }
@keyframes curious-light { 0%,100% { opacity: 0; transform: translate(-50%,-50%) scale(.88); --reaction-tint: #fff0c7; } 30%,54% { opacity: .72; transform: translate(-50%,-50%) scale(1.12); --reaction-tint: #ffc99d; } }
@keyframes sleepy-light { 0%,100% { opacity: 0; transform: translate(-50%,-50%) scale(.9); } 38% { opacity: .49; transform: translate(-50%,-50%) scale(1.05); } }
@keyframes response-floor { 0%,100% { opacity: .12; } 28%,55% { opacity: .28; } }
.day[data-response="welcome"] .glow-react { animation: greeting-light var(--response-duration,3.2s) cubic-bezier(.4,0,.3,1); }
.day[data-response="curious"] .glow-react { animation: curious-light var(--response-duration,4.6s) cubic-bezier(.4,0,.3,1); }
.day[data-response="sleepy"] .glow-react { animation: sleepy-light var(--response-duration,7.2s) cubic-bezier(.4,0,.3,1); }
.day[data-response] .floor-light { animation: response-floor var(--response-duration,4s) ease-in-out; }
.experience-controls { position: absolute; z-index: 3; left: clamp(20px, 4vw, 64px); right: clamp(20px, 4vw, 64px); bottom: max(24px, env(safe-area-inset-bottom)); padding: 16px 22px; border: 1px solid #fffdf6a6; border-radius: 25px; background: #f7f5eae6; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 8px 32px #15291e0c; }
.scene-tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid #294f4017; border-radius: 100px; width: fit-content; background: #e9e8db99; }
.scene-tab { padding: 11px 24px; min-height: 46px; border-radius: 100px; font-size: 14px; font-weight: 650; white-space: nowrap; transition: background .2s, color .2s; }
.scene-tab[aria-selected="true"] { background: var(--ink); color: #fffdf4; }
.scene-tab[aria-selected="false"]:hover { background: #294f400b; }
.experience-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.experience-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding: 0 9px; }
.experience-hint { font-size: 14px; color: #53695a; }
.sound-control { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: 9px; padding: 10px 19px; border: 1px solid #294f4040; border-radius: 100px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.sound-control::before { content: ''; display: inline-block; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.sound-control[aria-pressed="true"]::before { background: #637d50; border-color: #637d50; }
.experience-next { font-size: 13px; border-bottom: 1px solid #294f4050; min-height: 32px; display: inline-flex; align-items: center; white-space: nowrap; }
.aux .where { display: none; }
body[data-day-visible="true"] .aux { opacity: 0; pointer-events: none; }
.experience-motion { font-size: 12px; min-height: 44px; color: #5e6d60; padding: 0 8px; }
.experience-options { display: flex; align-items: center; gap: 10px; }
.experience-controls { transition: background var(--scene-duration), color var(--scene-duration), border-color var(--scene-duration); }
.experience-shell[data-scene="night"] .experience-controls { color: #e4eff8; background: #162737e8; border-color: #b4d6eb30; }
.experience-shell[data-scene="night"] .scene-tabs { background: #0e1e2c66; border-color: #b4d6eb20; }
.experience-shell[data-scene="night"] .scene-tab[aria-selected="true"] { background: #c8dfed; color: #203c50; }
.experience-shell[data-scene="night"] .scene-tab[aria-selected="false"]:hover { background: #bedcf11a; }
.experience-shell[data-scene="night"] .experience-hint,
.experience-shell[data-scene="night"] .experience-motion { color: #bfd0dd; }
.experience-shell[data-scene="night"] .sound-control,
.experience-shell[data-scene="night"] .experience-next { border-color: #b4d6eb55; }
.experience-shell[data-scene="night"] .sound-control[aria-pressed="true"]::before { background: #b4d6ed; border-color: #b4d6ed; }
body.reduce .day, body.reduce .day-stage { height: 100%; }
body.reduce .glow-core { animation: none; opacity: .5; transform: translate(-50%,-50%); }
body.reduce .day[data-mode="night"] .glow-core { opacity: .64; }
body.reduce .day[data-response] .glow-react { opacity: .3; animation: none; transform: translate(-50%,-50%); }
body.reduce .floor-light { animation: none; opacity: .15; }

/* Write in the app, then watch the physical Sofi answer. */
#s05 { padding: 100px 0; border-top: 1px solid var(--line); background: #eeeade; scroll-margin-top: var(--nav); }
.app-layout { display: grid; grid-template-columns: 1.12fr 1fr; align-items: start; column-gap: 64px; row-gap: 30px; }
.app-copy { grid-column: 1; grid-row: 1; align-self: end; }
.app-copy h2 { font-size: clamp(30px,3.6vw,48px); line-height: 1.25; }
.app-copy .body { margin-top: 20px; font-size: 16px; line-height: 1.8; }
.phone { grid-column: 2; grid-row: 1 / span 2; width: 370px; max-width: 100%; margin: auto; border: 7px solid #e5dfcf; outline: 1px solid #cec6b5; border-radius: 43px; padding: 9px; background: #fffdf6; box-shadow: 0 22px 45px #59472215; }
.phone-screen { overflow: hidden; border-radius: 29px; background: #f8f5ed; padding-bottom: 19px; }
.phone-top { display: flex; justify-content: space-between; padding: 13px 20px 10px; font-size: 10px; font-weight: 700; }
.phone-top span:last-child { letter-spacing: .05em; }
.phone-world { position: relative; height: 144px; margin: 0 10px; border-radius: 21px; overflow: hidden; background: #ecebd9 url(assets/world_4k.jpg) 60% 68% / 180% auto; }
.phone-world::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#fffdf3c9, transparent 60%); }
.phone-world h3 { position: relative; z-index: 1; padding: 15px; font-size: 14px; }
.phone-sofi { position: absolute; width: 84px; left: 50%; bottom: 1px; transform: translateX(-50%); z-index: 2; }
.phone-sofi img { width: 100%; height: auto; position: relative; }
.phone-glow { position: absolute; inset: 3%; border-radius: 50%; background: radial-gradient(circle,#ffe17bcc,transparent 68%); transform: scale(1.65); opacity: var(--app-brightness,.6); transition: opacity .3s; }
.app-label { color: #71806e; font-size: 11px; letter-spacing: .02em; margin-bottom: 5px; }
.app-settings { margin: 12px 23px 0; border-top: 1px solid #294f4017; }
.app-settings summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 12px; list-style: none; }
.app-settings summary::-webkit-details-marker { display: none; }
.app-settings[open] summary span { transform: rotate(45deg); }
.setting { margin: 12px 0; }
.setting-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; gap: 8px; }
.setting-label output { font-size: 11px; color: #788370; }
.setting input[type="range"] { display: block; width: 100%; height: 26px; margin: 3px 0 0; accent-color: #657854; cursor: pointer; }
.phone-home-line { width: 85px; height: 4px; background: #52604855; border-radius: 5px; margin: 16px auto 0; }
.journal-form, .journal-receipt { margin: 19px 23px 0; }
.journal-question { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
.journal-prompt { margin-top: 8px; color: #687360; font-size: 12px; line-height: 1.7; }
.journal-form textarea { display: block; resize: vertical; width: 100%; min-height: 124px; max-height: 280px; padding: 13px 14px; margin-top: 13px; border: 1px solid #d9dfcf; border-radius: 16px; background: #fffef8; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.7; transition: border-color .2s, box-shadow .2s; }
.journal-form textarea::placeholder { color: #919782; }
.journal-form textarea:focus { outline: none; border-color: #819875; box-shadow: 0 0 0 3px #81987520; }
.journal-counter { margin-top: 4px; text-align: right; font-size: 10px; color: #7a8575; }
.journal-save { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 16px; border-radius: 15px; background: var(--ink); color: #fffdf4; font-size: 13px; font-weight: 650; transition: opacity .2s, background .2s; }
.journal-save:disabled { background: #e1e6d6; color: #7b8677; cursor: default; }
.journal-status { min-height: 18px; margin: 10px 23px 0; font-size: 12px; line-height: 1.6; color: #456343; }
.journal-status:empty { min-height: 0; margin-top: 0; }
.journal-status[data-error="true"] { color: #964538; }
.journal-storage-note { margin: 10px 23px 0; color: #74806d; font-size: 10px; line-height: 1.6; }
.journal-saved-label { font-size: 12px; font-weight: 700; color: #56754c; }
.journal-saved-label span { display: inline-grid; place-items: center; background: #e3ecd4; width: 23px; height: 23px; border-radius: 50%; margin-right: 4px; }
.journal-receipt time { display: block; margin: 10px 0 17px; font-size: 11px; color: #7a8370; }
.journal-receipt h4 { font-size: 17px; letter-spacing: -.03em; margin-bottom: 12px; }
.journal-saved-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.9; max-height: 230px; overflow-y: auto; padding: 15px; border-radius: 15px; background: #fffdf7; border: 1px solid #294f4014; }
.journal-record-actions { display: flex; justify-content: space-between; margin-top: 9px; }
.journal-record-actions button, .journal-undo { min-height: 44px; font-size: 12px; padding: 8px 2px; text-decoration: underline; text-underline-offset: 4px; }
.journal-record-actions button:last-child { color: #858978; }
.journal-undo { margin-left: 23px; }
.journal-companion { grid-column: 1; grid-row: 2; min-width: 0; }
.journal-scene { position: relative; height: 360px; overflow: hidden; border-radius: 24px; isolation: isolate; background: #e0dfcb; scroll-margin-top: calc(var(--nav) + 18px); --light-core: #fff8de; --light-mid: #ffe1a0; --light-edge: #ffe4b640; }
.journal-scene .scene-bg { transform: none; background-position: center 65%; }
.journal-scene .scene-bg::after { background: linear-gradient(#f6f1e17a,transparent 30%,transparent 62%,#f6f1e1ed); }
.journal-scene-toolbar { position: absolute; top: 14px; left: 18px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.journal-scene-toolbar > span { font-size: 12px; font-weight: 650; }
.journal-scene-toolbar .sound-control { min-height: 38px; padding: 8px 13px; font-size: 11px; background: #faf8ecd9; }
.journal-scene .journal-sofi { width: 172px; max-width: 41%; bottom: 57px; left: 54%; }
.journal-scene .glow-core { animation: soft-calm 8s ease-in-out infinite; animation-play-state: paused; }
.journal-scene.is-visible .glow-core { animation-play-state: running; }
.journal-scene[data-reply="true"] .glow-react { animation: greeting-light 3.2s cubic-bezier(.4,0,.3,1); }
.phone[data-reply="true"] .phone-glow { animation: journal-phone-reply 3.2s ease-in-out; }
@keyframes journal-phone-reply { 0%,100% { opacity: var(--app-brightness,.6); transform: scale(1.65); } 35%,60% { opacity: 1; transform: scale(2.0); } }
.journal-scene-caption { position: absolute; z-index: 2; bottom: 14px; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.journal-scene-caption p { font-size: 12px; line-height: 1.5; }
.journal-scene-caption button { min-height: 36px; font-size: 11px; white-space: nowrap; border-bottom: 1px solid #294f4030; }
.journal-scene-caption button:disabled { opacity: .5; }
body.reduce .journal-scene[data-reply="true"] .glow-react { opacity: .5; transform: translate(-50%,-50%); }
#s05 [hidden] { display: none !important; }
@media (max-width: 1000px) { .experience-motion { display: none; } .scene-tab { padding-inline: 18px; } .app-layout { gap: 36px; } }
@media (max-width: 720px) {
  .house-entry { width: 146px; height: 145px; gap: 9px; }
  .scene-hotspot { gap: 7px; }
  .hotspot-label { font-size: 11px; }
  .experience-stage { min-height: 570px; }
  .day-stage .scene-bg { background-position: var(--bgx, 53%) 62%; }
  .sophi--glow { width: min(55%, 32svh); left: var(--sxm, 50%); bottom: max(25%, 214px); }
  .floor-light { left: var(--sxm,50%); bottom: calc(max(25%, 214px) - 1%); width: calc(var(--swm) * 1.8); height: calc(var(--swm) * .35); }
  .experience-controls { left: 12px; right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); padding: 12px; border-radius: 23px; }
  .experience-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: normal; gap: 10px; }
  .scene-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 3px; }
  .scene-tab { padding: 10px 4px; font-size: 12px; min-height: 45px; }
  .experience-options { justify-content: space-between; }
  .experience-motion { display: block; }
  .sound-control { min-height: 44px; font-size: 12px; padding-inline: 15px; }
  .experience-help { align-items: center; gap: 10px; margin-top: 4px; padding: 0 5px; }
  .experience-hint { font-size: 11px; line-height: 1.5; }
  .experience-next { font-size: 11px; min-height: 36px; }
  #s05 { padding: 54px 0 64px; }
  .app-layout { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .app-copy { grid-column: 1; grid-row: 1; }
  .app-copy .body { font-size: 15px; }
  .phone { grid-column: 1; grid-row: 2; width: 370px; }
  .journal-companion { grid-column: 1; grid-row: 3; }
  .journal-scene { height: 330px; }
  .journal-scene .journal-sofi { width: 152px; max-width: 47%; }
  .journal-scene-caption { gap: 6px; left: 14px; right: 14px; }
  .journal-scene-caption p { font-size: 11px; }
  .journal-form, .journal-receipt { margin-inline: 16px; }
  .journal-question { font-size: 20px; }
}
@media (max-width: 370px) { .scene-tab { font-size: 11px; } .experience-help { flex-direction: column; gap: 1px; } }
@media (max-height: 600px) and (min-width: 721px) {
  .experience-stage { min-height: 440px; }
  .experience-controls { bottom: 16px; padding-block: 11px; }
  .sophi--glow { width: min(var(--sw), 42svh); bottom: 145px; }
  .floor-light { bottom: 135px; }
}

/* Mobile layout: reserve real space for copy, controls and the phone safe area. */
:root { --nav-base: 72px; --nav: calc(var(--nav-base) + env(safe-area-inset-top, 0px)); }
html { scroll-padding-top: calc(var(--nav) + 12px); }
.top { padding-top: env(safe-area-inset-top, 0px); padding-left: max(clamp(20px,3.3vw,48px), env(safe-area-inset-left)); padding-right: max(clamp(20px,3.3vw,48px), env(safe-area-inset-right)); }
.mmenu { max-height: calc(100dvh - var(--nav)); overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
.menu-motion { min-height: 44px; text-align: left; font-size: 14px; padding: 12px 4px; }
.copy-b, .copy-c, .copy-d { --o: 0; }
#s04.is-immersive .experience-shell, #s04.is-immersive .experience-stage { height: 100%; }
.day .sophi--glow { bottom: var(--sofi-bottom, 170px); width: min(var(--sw), 38svh, var(--sofi-max-width, 999px)); }
.day .floor-light { bottom: calc(var(--sofi-bottom, 170px) - 8px); }
.experience-controls { left: max(clamp(20px,4vw,64px),env(safe-area-inset-left)); right: max(clamp(20px,4vw,64px),env(safe-area-inset-right)); }
.home-back { left: max(clamp(20px,4vw,64px),env(safe-area-inset-left)); }
@media (max-width: 720px) {
  :root { --nav-base: 64px; }
  html { scrollbar-gutter: auto; }
  .aux { display: none; }
  .copy h1 { font-size: clamp(30px,8.8vw,38px); }
  .copy h2 { font-size: clamp(27px,7.6vw,30px); }
  .copy .body { line-height: 1.7; }
  .copy-a .actions { margin-top: 20px; }
  .copy-d { padding: 16px 20px max(18px,env(safe-area-inset-bottom)); }
  .copy-d .greet { margin-top: 12px; padding-top: 10px; }
  .copy-d .greet-lead { font-size: 13px; }
  .copy-d .btn { padding: 10px 16px; font-size: 13px; }
  .copy-d .actions { gap: 8px; margin-top: 12px; }
  .istage { --mobile-sofi-width: min(52vw, max(70px, calc((100svh - var(--nav) - var(--intro-copy-height,240px) - 24px) * .898))); }
  .sophi--intro { top: min(74%,calc(100% - var(--intro-copy-height,240px) + 4px)); width: var(--mobile-sofi-width); }
  .shadow { top: min(74%,calc(100% - var(--intro-copy-height,240px) + 4px)); width: calc(var(--mobile-sofi-width) * 1.45); height: calc(var(--mobile-sofi-width) * .28); }
  .day .sophi--glow { width: min(55%,32svh,var(--sofi-max-width,999px)); }
  .experience-controls { left: max(12px,env(safe-area-inset-left)); right: max(12px,env(safe-area-inset-right)); padding: 10px 12px; }
  .experience-next { min-height: 44px; }
  .experience-help { flex-direction: column; gap: 0; margin-top: 6px; }
  .experience-hint { text-align: center; }
  .experience-options { gap: 6px; }
  .experience-motion { font-size: 11px; padding-inline: 4px; }
  .sound-control { font-size: 12px; padding-inline: 12px; }
  .home-back { top: 12px; left: max(16px,env(safe-area-inset-left)); }
  .app-copy h2 { font-size: clamp(26px,7.5vw,30px); }
  .app-copy, .phone, .phone-screen { min-width: 0; }
  .journal-form textarea { scroll-margin-top: calc(var(--nav) + 16px); }
  .journal-question { font-size: clamp(18px,5.2vw,20px); }
  .journal-scene-toolbar .sound-control, .journal-scene-caption button { min-height: 44px; }
  .setting input[type="range"] { height: 44px; }
  .journal-storage-note { font-size: 11px; }
  .journal-scene-caption { align-items: center; }
  .journal-scene-caption p { overflow-wrap: anywhere; }
  #s06 { padding: 54px 0; }
  .faq summary { font-size: 16px; line-height: 1.55; gap: 12px; padding-block: 18px; }
  .faq summary::after { flex: 0 0 24px; text-align: center; }
  .faq details p { font-size: 15px; line-height: 1.8; }
  #s07 { padding: 60px 0 max(32px,env(safe-area-inset-bottom)); }
  .footer { margin-top: 36px; gap: 12px; }
  .footer .links { gap: 4px 16px; }
  .footer .links a { min-height: 44px; display: inline-flex; align-items: center; }
  body.reduce .frame { height: max(620px,100svh); }
  body.reduce .frames { padding-top: var(--nav); }
  body.reduce .frame .copy-a, body.reduce .frame .copy-b, body.reduce .frame .copy-c { top: 20px; }
}
@media (max-width: 370px) {
  .copy-d { padding-inline: 16px; }
  .copy-d .body { font-size: 14px; }
  .phone { border-width: 5px; padding: 5px; border-radius: 34px; }
  .journal-form, .journal-receipt, .app-settings, .journal-storage-note { margin-inline: 14px; }
}
@media (max-height: 500px) and (min-width: 560px) {
  :root { --nav-base: 56px; }
  .nav, .company, .aux { display: none; }
  .menu-btn { display: inline-flex; }
  .wordmark { font-size: 25px; }
  .experience-controls { left: auto; right: max(12px,env(safe-area-inset-right)); bottom: max(12px,env(safe-area-inset-bottom)); width: min(310px,44%); padding: 10px 12px; border-radius: 22px; }
  .experience-toolbar { display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; }
  .scene-tabs { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; gap: 3px; }
  .scene-tab { padding: 8px 4px; min-height: 44px; font-size: 12px; }
  .experience-options { justify-content: flex-end; }
  .experience-motion, .experience-hint { display: none; }
  .sound-control { min-height: 44px; }
  .experience-help { justify-content: flex-end; margin-top: 0; }
  .experience-next { min-height: 44px; }
  .day .sophi--glow { left: var(--landscape-sofi-x,30%); width: min(28%,54svh,var(--sofi-max-width,999px)); }
  .day .floor-light { left: var(--landscape-sofi-x,30%); }
  .home-back { top: 10px; }
  .copy-a, .copy-b, .copy-c { top: calc(var(--nav) + 8px); padding-top: 10px; max-width: 52%; }
  .copy h1 { font-size: 32px; }
  .copy h2 { font-size: 28px; }
  .copy .eyebrow { margin-bottom: 8px; }
  .copy .body { margin-top: 10px; font-size: 14px; line-height: 1.55; }
  .copy .actions { margin-top: 12px; }
  .copy-d { top: calc(var(--nav) + 14px); bottom: auto; max-width: 48%; padding-top: 8px; }
  .copy-d .greet { margin-top: 10px; padding-top: 10px; }
  .copy-d .greet-lead { font-size: 13px; }
  .copy-d .btn { min-height: 44px; padding: 8px 16px; font-size: 13px; }
  .sophi--intro { left: 67%; top: 90%; width: min(24vw,40svh); }
  .shadow { left: 67%; top: 90%; width: min(32vw,54svh); }
  .scroll-cue { left: auto; right: 20px; transform: none; font-size: 11px; bottom: 12px; }
  body.reduce .frame { height: max(540px,100svh); }
}

/* Approved companion copy v2. Keep the existing mobile and immersive layout. */
.nav .nav-welcome{background:var(--ink);color:var(--paper);border-radius:28px;padding:10px 18px;border-color:transparent}
.nav .nav-welcome:hover{background:#1f3d31;border-color:transparent}
.mmenu .nav-welcome{color:var(--ink);font-weight:800}
@media(min-width:721px) and (min-height:501px){#copy-a{max-width:620px}}
.copy-a .actions{gap:12px 20px}
.greet [hidden]{display:none!important}
.loading{pointer-events:none}
.loading[data-show="false"]{visibility:hidden}
.app-copy .note{margin-top:16px;font-size:13px;opacity:.8}
.app-copy .actions{margin-top:22px}
.app-copy .btn{font-size:14px}
#journal-entry{scroll-margin-top:calc(var(--nav) + 36px)}
#s06,#s07{scroll-margin-top:var(--nav)}
#s07 .lead{margin-top:24px;font-size:clamp(15px,1.2vw,18px);line-height:1.85}
.contact-note{font-size:12px;margin-top:14px}
@media(max-width:720px){
 .copy-a .actions{gap:8px 16px;margin-top:22px}
 .copy-a .btn,.copy-a .link{font-size:13px}
 .journal-scene-caption{flex-wrap:wrap}
 .journal-scene-caption p{flex:1 1 170px}
 #s07 h2{font-size:clamp(27px,7.5vw,38px)}
}

/* 모바일: 소피 반응 장면을 폰 화면 위에 고정해 저장 순간을 같은 화면에서 본다 (2026-10-02) */
@media (max-width: 720px) {
  .app-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
  .app-copy { grid-row: 1; }
  .journal-companion { grid-row: 2; position: sticky; top: var(--nav); z-index: 6; margin: 0 -2px; }
  .journal-companion.is-pinned .journal-scene { height: 190px; border-radius: 18px; box-shadow: 0 10px 24px #3a2c1428; }
  .journal-companion.is-pinned .journal-scene .journal-sofi { width: 112px; max-width: 34%; bottom: 30px; left: 56%; }
  .journal-companion.is-pinned .journal-scene-caption { flex-direction: column; align-items: flex-start; gap: 4px; bottom: 10px; }
  .journal-companion.is-pinned .journal-scene-caption p { font-size: 11px; flex: none; }
  .journal-companion.is-pinned .journal-scene-caption button { min-height: 32px; font-size: 11px; padding: 4px 0; }
  .journal-companion.is-pinned .journal-scene-toolbar span { font-size: 12px; }
  .journal-scene { transition: height .35s ease, border-radius .35s ease; }
  .phone { grid-row: 3; }
}
