/* Stable page geometry and one consistent family of line icons. */
html{overflow-x:clip;overscroll-behavior-x:none;scrollbar-gutter:stable}
body{max-width:100%;overflow-x:clip;min-width:0}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.ui-icon{display:inline-block;flex-shrink:0;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.primary-link>.ui-icon{width:19px;height:19px;color:var(--gold)}
.art-open{gap:11px}.art-open>.ui-icon{width:17px;height:17px;color:#debe8f}
.dialog-close{display:grid;place-items:center}.dialog-close>.ui-icon{width:20px;height:20px}
.control-buttons button{display:inline-flex;align-items:center;justify-content:center}.control-buttons .ui-icon{width:20px;height:20px;color:#d9c39d}
.controls>button>.ui-icon{width:17px;height:17px;color:var(--gold)}
.career-connector{width:30px;height:1px;background:#d5b58780;position:relative}.career-connector:after{content:'';position:absolute;right:0;top:-2px;width:5px;height:5px;border-radius:50%;background:#e5c093}
.reading-progress span{width:100%;transform:scaleX(0);transform-origin:left center;will-change:transform}
.support-navigation #support-previous{display:grid;place-items:center}.support-navigation #support-previous .ui-icon{width:19px;height:19px}
.mobile-motion .scene-visual img{animation-name:mobile-cinema;animation-duration:28s;transform-origin:center center;will-change:auto}
.mobile-motion .scene.active .scene-visual img{will-change:transform}
.mobile-motion .light-wash{inset:0;height:100%;animation:none;transform:none;mix-blend-mode:normal;background:radial-gradient(ellipse at 78% 36%,#edc5980c,transparent 65%);opacity:.5}
.mobile-motion .grain{display:none}
.mobile-motion #atmosphere{height:100lvh;opacity:.3}
.mobile-motion.is-scrolling .scene-visual img,.mobile-motion.is-scrolling .support-illustration{animation-play-state:paused!important}
body.dialog-open .scene-visual img,body.dialog-open .light-wash{animation-play-state:paused!important}
@keyframes mobile-cinema{from{transform:scale(1.008)}to{transform:scale(1.035)}}
@media(max-width:760px){
  :root{--phone-gutter:clamp(22px,6.2vw,32px)}
  html{scroll-snap-type:none;touch-action:pan-y pinch-zoom}
  .topbar{padding-left:var(--phone-gutter);padding-right:var(--phone-gutter);background:#091e25f7;gap:12px;border-bottom:1px solid #d5b58714}
  .topbar .support-trigger{border-color:#dec6a23d;background:#10282ee8;backdrop-filter:none;border-radius:24px;font-size:9px;padding:10px 13px}
  .wordmark{letter-spacing:.15em}.wordmark svg{width:25px}.wordmark small{color:#c1c7b7}
  .chapter{padding-left:var(--phone-gutter);padding-right:var(--phone-gutter);padding-bottom:calc(160px + env(safe-area-inset-bottom))}
  .chapter h2,.scale-chapter .chapter-copy h2{font-size:clamp(36px,9vw,51px);letter-spacing:-.045em;line-height:1.12;margin-bottom:27px}
  .chapter .scene-visual,.chapter.framed .scene-visual,.home-chapter .scene-visual,.scale-chapter .scene-visual{width:100%;margin:0;inset:auto;height:auto;aspect-ratio:1672/941;border:1px solid #d8bd8d35;border-radius:12px;box-shadow:0 12px 40px #0002;overflow:hidden}
  .chapter .scene-visual:after{background:linear-gradient(0deg,#071b2310,transparent 30%)}
  .chapter .scene-visual img,.chapter.framed .scene-visual img{object-fit:cover;object-position:center;transform-origin:center}
  .chapter .body-copy{font-size:14px;line-height:1.9;margin-top:25px;color:#e3e5d9}
  .chapter .body-copy.secondary{font-size:13px;line-height:1.9;color:#bfc9bd;margin-top:14px}
  .chapter .personal-line{font-size:21px;line-height:1.55;border-left-color:#c8a97080;padding-left:17px;margin-top:29px}
  .js-ready .scene .reveal{transform:none;transition:opacity .6s ease;transition-delay:0ms}
  .js-ready .scene:not(.seen) .reveal{transform:none}
  .scene-foot{left:var(--phone-gutter);right:var(--phone-gutter);bottom:calc(107px + env(safe-area-inset-bottom));gap:12px;font-size:7px;letter-spacing:.09em}
  .scene-foot>span:first-child{max-width:52%;line-height:1.7;color:#b9c4b6}
  .art-open,.hero-bottom .art-open,.closing-scene .scene-foot .art-open{border:1px solid #c9b58c40;border-radius:24px;min-height:44px;padding:10px 13px;font-size:10px;letter-spacing:.02em;gap:9px;background:#17303745;color:#e7deca}
  .art-open>.ui-icon{width:16px;height:16px;opacity:.9}
  .hero-inner{padding-left:var(--phone-gutter);padding-right:var(--phone-gutter);padding-bottom:190px}
  .hero h1{letter-spacing:-.055em}.hero .lead{font-size:18px;line-height:1.6}.hero-note{font-size:12px;line-height:1.9}
  .hero .primary-link,.closing-actions .primary-link{border-radius:9px;border-color:#e1bd808a;background:#b99b6b12;backdrop-filter:none;padding:17px 21px;min-height:54px;gap:25px;font-size:12px}
  .hero-bottom{left:var(--phone-gutter);right:var(--phone-gutter);bottom:calc(111px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center}
  .hero-bottom>span:first-child{max-width:none;font-size:7px;letter-spacing:.14em}.hero-bottom .scroll-invitation{display:none}
  .closing-scene{padding-top:calc(108px + env(safe-area-inset-top));padding-bottom:calc(160px + env(safe-area-inset-bottom))}
  .closing-scene .closing-portrait{width:calc(100% - 2 * var(--phone-gutter));margin-inline:var(--phone-gutter);height:auto;aspect-ratio:1672/941;border-radius:12px;border:1px solid #d8bd8d35;overflow:hidden}
  .closing-portrait img{object-position:center;transform-origin:center}
  .closing-inner{padding:33px var(--phone-gutter) 0}.closing-inner h2{font-size:clamp(42px,10vw,60px)}.closing-prelude{font-size:11px;max-width:none}.closing-note{font-size:12px;line-height:1.9}
  .closing-actions{gap:23px}.text-link{font-size:12px;line-height:1.6;padding-bottom:6px}
  .controls{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));height:64px;padding:9px 10px;gap:8px;background:#0d252def;backdrop-filter:none;border:1px solid #d5b58738;border-radius:17px;box-shadow:0 10px 35px #0005}
  .controls>button{font-size:10px;min-height:44px;gap:7px;padding:0 8px;color:#e4ddca;flex-shrink:0}
  .scene-status{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;margin:0;font-size:9px;line-height:1.3}
  #scene-name{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#c5cebf}
  #scene-index{display:block;font-size:8px;letter-spacing:.1em;color:#a7b8aa}.status-divider{display:none}
  .control-buttons{gap:1px;flex-shrink:0}.control-buttons button,.control-buttons #motion-toggle{display:flex;align-items:center;justify-content:center;min-width:44px;width:44px;height:44px;padding:0;margin:0;border-radius:50%;background:#c4b08407}
  .control-buttons #motion-toggle{background:transparent}.control-buttons #motion-toggle[aria-pressed=false]{opacity:.55}.control-buttons .ui-icon{width:18px;height:18px}.control-buttons #fullscreen{display:none}
  .primary-link{backdrop-filter:none}.primary-link:hover{transform:none}.controls button:active,.art-open:active{background:#d5b58720}
  dialog::backdrop{backdrop-filter:none;background:#03151be8}
  #chapters-dialog{border-radius:16px;border-color:#d5b58740;background:#0c252b}.chapter-list a{padding-top:12px;padding-bottom:12px}.chapter-thumb{border-radius:7px}.chapter-list a .chapter-title{font-size:12px;line-height:1.6}
  #art-dialog{border-radius:14px;border-color:#d5b58740}.art-description{padding:23px 24px 28px}.art-description h2{font-size:26px}.art-description>p:last-child{font-size:11px}
  #support-dialog .support-illustration{will-change:auto;animation-duration:28s;animation-name:mobile-cinema;transform-origin:center}
  #support-dialog .support-visual-shade{background:linear-gradient(0deg,#091d23e8,transparent 52%)}
  .support-navigation .primary-link,#support-save-step{border-radius:8px}.support-navigation #support-previous{border-radius:8px}.support-progress button:before{border-radius:3px;height:2px}
  #support-dialog .dialog-close{background:#0c2630d9}.support-visual-caption{bottom:14px}
}
@media(max-width:350px){.controls{left:9px;right:9px;gap:4px;padding-left:7px;padding-right:7px}.controls>button{padding-left:5px;padding-right:5px;font-size:9px;gap:6px}.scene-status{font-size:8px}.topbar .support-trigger{padding:9px 11px;font-size:8px}.wordmark{font-size:7px}.wordmark small{font-size:6px}.chapter h2,.scale-chapter .chapter-copy h2{font-size:35px}.chapter .body-copy{font-size:13px}}
@media(prefers-reduced-motion:reduce){.mobile-motion .scene-visual img,.mobile-motion #support-dialog .support-illustration{animation:none!important}}
@supports not (overflow:clip){html,body{overflow-x:hidden}}
