/* Mobile biography: natural panel heights, independent of the desktop life map. */
@media(max-width:760px),(max-width:1000px) and (pointer:coarse){
 .adrian-page .mobile-journey .about-journey-intro{min-height:0;max-width:none;box-sizing:border-box;padding:40px 0 24px;align-items:center;justify-content:flex-start;text-align:center}
 .adrian-page .mobile-journey .about-journey-intro>.section-heading{display:block;width:100%;margin:0;text-align:center}
 .adrian-page .mobile-journey .about-journey-intro>.section-heading>div{width:100%}
 .adrian-page .mobile-journey .about-journey-intro>.lead{width:100%;max-width:680px;margin:24px 0 0;padding:0;text-align:center}
 .adrian-page .mobile-journey .mobile-life-map .timeline{height:auto;min-height:0}
 .adrian-page .mobile-journey .mobile-life-map .timeline article{inset:auto;min-width:0;box-sizing:border-box}
 .adrian-page .mobile-journey .mobile-life-map .timeline article p{overflow-wrap:anywhere}
}
/* Rotation keeps the existing mobile DOM. Explicitly reset desktop geometry
   that otherwise leaks in above 760px, especially fixed height and year offsets. */
@media(orientation:landscape) and (max-height:600px){
 .adrian-page .mobile-journey{height:auto!important}
 .adrian-page .mobile-journey .about-story.section{position:relative;top:auto;height:auto;min-height:0;overflow:visible;margin:0;padding:0}
 .adrian-page .mobile-journey .about-journey-window{height:auto;padding:0;overflow:visible;mask-image:none!important;-webkit-mask-image:none!important;isolation:isolate}
 .adrian-page .mobile-journey .about-journey-rail{position:relative;transform:none!important;padding:0 max(24px,env(safe-area-inset-left)) 0 max(24px,env(safe-area-inset-right))}
 .adrian-page .mobile-journey .about-journey-window>.about-story-photo{position:sticky;top:var(--mobile-header-height,58px);inset-inline:0;width:100%;height:calc(100lvh + env(safe-area-inset-bottom,0px));margin-bottom:calc(-100lvh - env(safe-area-inset-bottom,0px));z-index:-1;overflow:hidden;opacity:1}
 .adrian-page .mobile-journey .about-story-photo :is(video,img){position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 70%!important}
 .adrian-page .mobile-journey .about-journey-intro{min-height:0;max-width:none;width:100%;box-sizing:border-box;padding:32px 0 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;scroll-margin-top:calc(var(--mobile-header-height,58px) + 16px)}
 .adrian-page .mobile-journey .about-journey-intro>.section-heading{display:block;width:100%;margin:0;text-align:center}
 .adrian-page .mobile-journey .about-journey-intro>.section-heading>div{width:100%}
 .adrian-page .mobile-journey .about-journey-intro h2{margin:18px 0 0;padding:0;font-size:clamp(34px,5.5vw,48px);line-height:1.06}
 .adrian-page .mobile-journey .about-journey-intro>.lead{width:100%;max-width:680px;margin:22px auto 0;padding:0;text-align:center;font-size:16px;line-height:1.5}
 .adrian-page .mobile-journey .mobile-life-map{position:relative;max-width:none;width:100%;min-height:0;box-sizing:border-box;padding:44px 0 55px!important}
 .adrian-page .mobile-journey .mobile-life-map>.section-heading{text-align:center;justify-content:center;margin-bottom:44px}
 .adrian-page .mobile-journey .mobile-life-map .timeline{position:relative;display:flex;flex-direction:column;height:auto;min-height:0;gap:100px}
 .adrian-page .mobile-journey .mobile-life-map .timeline article{position:relative;inset:auto;flex:none;align-self:center;display:flex;flex-direction:column;align-items:center;width:min(100%,640px);max-width:100%;min-width:0;gap:12px;padding:0;box-sizing:border-box;text-align:center;scale:1}
 .adrian-page .mobile-journey .mobile-life-map .timeline article p{width:100%;max-width:100%;visibility:visible!important;overflow-wrap:anywhere}
 .adrian-page .mobile-journey .mobile-life-map .timeline article p.is-shown{opacity:1!important}
 .adrian-page .mobile-journey .about-journey-statement{min-height:0;max-width:none;padding:48px 0;box-sizing:border-box}
 .adrian-page .mobile-journey .adrian-statement{width:100%;text-align:center}
 .adrian-page .mobile-journey .adrian-statement-title{font-size:clamp(27px,5vw,44px);line-height:1.12}
 .adrian-page .mobile-journey .adrian-statement-copy{font-size:18px;line-height:1.5;margin-top:26px}
 .adrian-page .mobile-journey .about-journey-instagram{position:relative;inset:auto;height:auto;min-height:0;overflow:visible;margin:0;opacity:1}
}

/* End the mobile path from 2016 on the right at a centered present-day station. */
.adrian-page .mobile-journey .mobile-life-map .timeline article:nth-child(6){align-self:flex-end;width:86%;max-width:640px}
.adrian-page .mobile-journey .mobile-life-map .timeline article:last-child{align-self:center;width:100%;max-width:640px}

/* Keep trail sizing with the mobile DOM across rotation past the desktop breakpoint. */
.adrian-page .mobile-journey .mobile-life-trail{position:absolute;inset:0;pointer-events:none;color:#fff;z-index:1}
.adrian-page .mobile-journey .mobile-life-trail span{position:absolute;width:13px;height:25px;opacity:0}
.adrian-page .mobile-journey .mobile-life-trail svg{width:100%;height:100%}
/* The Instagram collage gets the same approved bottom overlap as the piano video. */
@media(max-width:760px),(max-width:1000px) and (pointer:coarse){
 @supports(height:100lvh){
  .adrian-page .mobile-journey .instagram-collage-background{height:calc(100lvh + env(safe-area-inset-bottom,0px));margin-bottom:calc(-100lvh - env(safe-area-inset-bottom,0px))}
 }
}
@media(orientation:landscape) and (max-height:600px){
 .adrian-page .mobile-journey .instagram-collage-background{display:block;position:sticky;top:var(--mobile-header-height,58px);inset-inline:auto;width:calc(100% + 48px);height:calc(100lvh + env(safe-area-inset-bottom,0px));margin:0 -24px calc(-100lvh - env(safe-area-inset-bottom,0px));opacity:1;z-index:-1}
}

/* Keep the initialized phone Instagram stack and dots consistent on rotation. */
 html.iphone-experience .instagram-preview-section{position:relative}
 html.iphone-experience .instagram-preview-grid.mobile-instagram-rail{display:flex!important;grid-template-columns:none!important;gap:24px!important;width:100%!important;max-width:100%!important;overflow-x:hidden;overflow-y:hidden;scroll-behavior:auto;scroll-snap-type:none;touch-action:pan-y;position:relative;padding:0}
 html.iphone-experience .mobile-instagram-rail>.instagram-playback-card{flex:0 0 100%;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
 html.iphone-experience .mobile-instagram-rail .instagram-media{zoom:1!important;width:100%!important;max-width:100%!important;min-width:0!important}
 html.iphone-experience .mobile-instagram-arrows{display:flex!important;position:absolute;left:0;right:0;z-index:8;justify-content:space-between;align-items:center;translate:0 -50%;pointer-events:none;margin:0;height:40px;opacity:1;transition:opacity .18s ease}
 html.iphone-experience .mobile-instagram-arrows button{display:grid;place-items:center;width:34px;height:44px;padding:8px;border:0!important;background:transparent!important;box-shadow:none!important;color:#fff;pointer-events:auto;filter:drop-shadow(0 1px 4px #000);-webkit-tap-highlight-color:transparent}
 html.iphone-experience .mobile-instagram-arrows button:disabled{visibility:hidden;pointer-events:none}
 html.iphone-experience .mobile-instagram-arrows svg{width:16px;height:20px;fill:currentColor}
 html.iphone-experience .mobile-instagram-arrows.is-moving{opacity:0;pointer-events:none}
 html.iphone-experience .mobile-instagram-arrows.is-moving button{pointer-events:none}
 html.iphone-experience .mobile-instagram-rail+.mobile-price-dots{background:none;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;margin:20px auto}
 html.iphone-experience .mobile-instagram-rail+.mobile-price-dots button span,html.iphone-experience .mobile-instagram-rail+.mobile-price-dots button[aria-current=true] span{width:6px;height:6px}
 html.iphone-experience .mobile-instagram-rail.mobile-instagram-stack{gap:24px!important;padding-bottom:22px!important;isolation:isolate}
 html.iphone-experience .mobile-instagram-stack>.instagram-playback-card{flex:0 0 calc(100% - 42px);width:calc(100% - 42px);max-width:calc(100% - 42px);transform-origin:center;transition:opacity .35s ease}
 html.iphone-experience .mobile-instagram-stack::after{content:'';flex:0 0 18px}
 html.iphone-experience .instagram-preview-grid.mobile-instagram-rail{width:100%!important;max-width:540px!important;margin:30px auto 0!important}

/* Pagination keeps its phone geometry even beyond the portrait breakpoint. */
html.iphone-experience .mobile-instagram-rail+.mobile-price-dots{position:relative;z-index:4;display:flex;align-items:center;justify-content:center;gap:0;width:max-content;max-width:100%;padding:0 8px;border-radius:999px}
html.iphone-experience .mobile-instagram-rail+.mobile-price-dots button{display:grid;place-items:center;width:24px;height:36px;padding:0;border:0;border-radius:0;background:transparent;color:#fff;box-shadow:none;cursor:pointer}
html.iphone-experience .mobile-instagram-rail+.mobile-price-dots button span{display:block;border-radius:999px;background:#ffffff70;transition:width .22s,transform .22s,background .22s}
html.iphone-experience .mobile-instagram-rail+.mobile-price-dots button[aria-current=true] span{background:#fff;box-shadow:0 0 5px #ffffff35;transform:none}
@media(prefers-reduced-motion:reduce){html.iphone-experience .mobile-instagram-rail+.mobile-price-dots button span{transition:none}}

/* Crop ceiling, not the pianist: use the lower portion of the portrait video. */
.adrian-page .mobile-journey .about-journey-window>.about-story-photo :is(video,img){position:absolute;top:auto!important;bottom:0!important;left:0;width:100%;height:150%!important;object-fit:cover;object-position:62% bottom!important}

/* Same native zero-area ownership as the confirmed catalogue backdrop. */
.adrian-page .mobile-journey .about-journey-window>.about-story-photo.has-biography-paint-anchor{width:0!important;height:0!important;min-height:0!important;margin:0!important;overflow:visible!important}
.adrian-page .mobile-journey .about-story-photo.has-biography-paint-anchor::after{display:none!important}
.adrian-page .mobile-journey .biography-native-paint{position:absolute;top:0;left:0;width:100vw;height:calc(100lvh + env(safe-area-inset-bottom,0px));overflow:hidden;pointer-events:none}
.adrian-page .mobile-journey .biography-native-paint::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#030303b8,#03030366)}

/* Playback now belongs to the inner paint wrapper: never show its poster over it. */
.adrian-page .mobile-journey .biography-native-paint .alltag-background-video{opacity:1!important}
.adrian-page .mobile-journey .biography-native-paint.is-video-playing .alltag-video-poster{opacity:0!important;visibility:hidden}
@media(orientation:portrait){
 .adrian-page .mobile-journey .about-journey-window>.about-story-photo :is(video,img){object-position:48% bottom!important}
}

/* Raise the portrait framing while keeping the video flush with the lower edge. */
@media(orientation:portrait){
 .adrian-page .mobile-journey .about-journey-window>.about-story-photo :is(video,img){bottom:0!important;height:180%!important}
}
