/* Browser-only composition. TV source and the installed package are unchanged. */
:root{--orb:clamp(110px,10.2vw,170px)}html,body{min-width:0;overflow-x:clip}.topbar{padding:10px 5%;min-height:94px;height:auto;gap:18px}.brand .brand-wordmark{width:168px;height:auto;max-height:72px}.brand-copy{transform:none;margin-left:20px}.brand-copy .brand-tagline{font-size:14px;white-space:normal;max-width:240px}.library-duration{font-size:11px;margin-left:18px}.header-right{gap:15px}#clock{font-size:12px;transform:none}.web-links{display:flex;align-items:center;gap:20px;font-size:11px;white-space:nowrap;color:#d3d9c9}.web-links a{min-height:44px;display:inline-flex;align-items:center}.web-links a:hover{color:#fff2d6}.home{max-width:1600px;padding:0 6%}#home .intro{min-height:170px;padding:30px 0}#home .intro h1{font-size:clamp(37px,4.5vw,66px)}#home .intro-copy{font-size:17px}#home .section-heading{padding-bottom:22px}#home .section-heading h2{font-size:27px}#home .section-heading>p{font-size:19px}#home .moment-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 15px;align-items:start}#home .moment-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;height:auto;min-height:calc(var(--orb) + 76px);margin:0;padding-top:10px;flex:none}#home .moment-card>img{position:static;width:var(--orb);height:var(--orb);margin:0 0 18px;flex:none}#home .moment-card .card-wash,#home .moment-card::after{top:10px;width:var(--orb);height:var(--orb);margin-left:calc(var(--orb) / -2)}#home .card-bottom{position:static;inset:auto;width:100%;display:block}#home .card-title{font-size:clamp(19px,2vw,28px);white-space:normal;line-height:1.2}#home .home-footer{padding:30px 0;display:flex;justify-content:space-between}#home .home-footer>span{display:block;font-size:9px}.experience{width:100%;max-width:1800px;min-height:calc(100svh - 94px);height:auto;margin:auto;padding:0 6% 30px;display:flex;flex-direction:column}.experience-title{padding:clamp(40px,6vh,90px) 0 35px}.experience-title h1{font-size:clamp(52px,7vw,105px)}.experience-title>p:last-child{font-size:21px}.listening{margin-top:auto;width:100%}.listening-header{gap:20px;flex-wrap:wrap}.session-tools{flex-wrap:wrap;gap:14px}.session-tools button{min-height:44px;font-size:12px}.transport button,.view-tools button{min-width:44px;min-height:44px}.view-tools .text-button{font-size:12px}.panel{max-height:80svh;overflow-y:auto;overscroll-behavior:contain}.panel-action{min-height:44px}.experience-mode .web-links{display:none}.immersed .topbar{pointer-events:none}.web-status-note{font-size:10px;color:#bdc9ba;text-align:center;padding:5px 10px 20px;position:relative;z-index:3}.experience-mode .web-status-note{display:none}@media(max-width:1100px){:root{--orb:clamp(120px,16vw,170px)}.brand-copy{display:none}.header-right{gap:17px}.web-links{font-size:11px;gap:18px}#home .moment-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px}#home .moment-card{width:100%;height:auto}#home .card-title{font-size:25px}#home .intro{min-height:165px}#home .intro h1{font-size:45px}.player{grid-template-columns:1fr auto;gap:22px}.track-info{grid-column:1/-1}.transport{justify-content:flex-start}.volume-control{justify-content:flex-end}.experience-title{padding-top:55px}.experience-top>.eyebrow{display:none}}
@media(max-width:600px){:root{--orb:clamp(112px,31vw,160px)}.topbar{padding:7px 5%;min-height:82px;gap:10px}.brand .brand-wordmark{width:125px;max-height:58px}.brand-group{flex:0 0 auto}.header-right{gap:12px;flex:1;justify-content:flex-end}.header-right #clock,.header-right .quiet-label,.header-line{display:none}.header-right .icon-button{width:44px;height:44px;margin:0}.web-links{gap:12px;font-size:10px}.web-links .account-link{display:none}.home{padding:0 6%}#home .intro{min-height:170px;padding:27px 0 24px}#home .intro h1{font-size:35px;line-height:1.13;margin-bottom:15px}#home .intro h1 br{display:block}#home .intro h1 em{margin-left:0}#home .intro-copy{font-size:14px;line-height:1.6}#home .section-heading{padding:7px 0 25px}#home .section-heading h2{font-size:24px}#home .section-heading>p{display:none}#home .moment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 12px}#home .moment-card{height:auto;min-height:calc(var(--orb) + 73px);width:100%}#home .card-title{font-size:22px;white-space:normal}#home .random-art svg{width:45px;height:45px}#home .home-footer{padding:25px 0;align-items:center}#home .home-footer>span{font-size:7px;max-width:150px;line-height:1.8}#home .home-footer button{min-height:44px;font-size:11px}.experience{min-height:calc(100svh - 82px);padding:0 6% 20px}.experience-top{gap:15px;flex-wrap:wrap;padding-top:10px}.experience-top .back-button{min-height:44px}.view-tools{gap:14px}.view-tools .text-button{font-size:10px;min-height:44px}.experience-title{padding:38px 0 28px;max-width:100%}.experience-title h1{font-size:46px;line-height:1.12;overflow-wrap:anywhere}.experience-title>p:last-child{font-size:18px;max-width:290px}.experience-title .eyebrow{font-size:8px}.listening-header{padding:0 0 10px}.session-tools{justify-content:flex-start;gap:4px 14px}.session-tools .text-button{font-size:10px;min-height:44px}.session-tools svg{width:17px;height:17px}.player{grid-template-columns:1fr auto;padding:15px 0 10px;gap:15px 10px}.track-info{grid-column:1/-1;min-width:0}.track-info p{font-size:16px;overflow-wrap:anywhere}.track-info span:not(.sound-bars){font-size:10px}.transport{gap:7px;margin:0}.transport .play-button{width:54px;height:54px}.transport .icon-button{width:44px;height:44px}.volume-control input{width:64px}.volume-control>span{display:none}.progress-row{gap:10px}.player-footnote{font-size:8px;line-height:1.6;flex-wrap:wrap}.panel{padding:22px;max-height:85svh}.panel h2{font-size:32px}.setting-row{gap:15px}.setting-row>span{font-size:14px}.setting-row small{font-size:11px}.exit-options{flex-wrap:wrap}.panel-action{min-height:46px}#landscape-guide{display:none!important}.immersed #reveal-hint{font-size:11px}.web-status-note{font-size:9px}}
@media(max-height:500px) and (orientation:landscape){.experience{min-height:calc(100svh - 82px)}.experience-title{padding:20px 0 15px}.experience-title h1{font-size:38px}.experience-title>p:last-child{font-size:15px}.experience-title .eyebrow{display:none}.session-tools{gap:10px}.player{grid-template-columns:1fr auto auto;gap:15px}.track-info{grid-column:auto}.volume-control input{width:60px}}
.experience .listening{background:linear-gradient(0deg,rgba(6,16,18,.82),rgba(6,16,18,.38));border:1px solid rgba(239,229,204,.1);border-radius:14px;padding:17px 22px 14px;backdrop-filter:blur(14px)}
@media(max-width:600px){.experience .listening{padding:13px 14px 12px;border-radius:12px}.experience .listening-header{border-bottom:0}.experience .player-footnote{gap:8px}}

/* Match the supplied Aliavela wordmark surface without a contrasting rectangle. */
.topbar{background:#112f2a}.brand .brand-wordmark{mix-blend-mode:lighten}

/* Browser home: size the two rows against the available height, without clipping content. */
#startup-logo{width:clamp(250px,42vw,570px);max-width:76vw}
@media(min-width:700px){
  :root{--orb:clamp(74px,min(10vw,calc((100svh - 366px)/2)),144px)}
  body:not(.experience-mode) .topbar{height:76px;min-height:76px;padding-top:4px;padding-bottom:4px}
  body:not(.experience-mode) .brand .brand-wordmark{width:145px;max-height:60px}
  #home{min-height:calc(100svh - 76px);display:flex;flex-direction:column;padding-bottom:8px}
  #home .intro{min-height:0;padding:18px 0 16px;flex:none}
  #home .intro h1{font-size:clamp(30px,3.1vw,46px);line-height:1.12;margin:0 0 10px}
  #home .intro h1 br{display:none}
  #home .intro h1 em{margin-left:.22em}
  #home .intro-copy{font-size:16px;line-height:1.4;margin:0}
  #home .section-heading{padding:0 0 16px;align-items:center}
  #home .section-heading h2{font-size:24px}
  #home .section-heading>p{font-size:17px}
  #home .moments{flex:1;display:flex;flex-direction:column;justify-content:center}
  #home .moment-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 16px}
  #home .moment-card{min-height:calc(var(--orb) + 61px);height:auto;padding-top:7px}
  #home .moment-card>img{margin-bottom:12px}
  #home .moment-card .card-wash,#home .moment-card::after{top:7px}
  #home .card-title{font-size:clamp(17px,1.65vw,23px);line-height:1.2}
  #home .random-art svg{width:42px;height:42px}
  #home .home-footer{flex:none;padding:10px 0 0;min-height:44px}
  #home .home-footer>span{font-size:11px}
  #home .home-footer button{font-size:13px;min-height:36px}
}
@media(min-width:700px) and (max-height:720px){
  :root{--orb:clamp(62px,calc((100svh - 320px)/2),105px)}
  #home .intro{padding:12px 0}
  #home .intro h1{font-size:30px;margin-bottom:6px}
  #home .intro-copy{font-size:14px}
  #home .section-heading{padding-bottom:9px}
  #home .section-heading h2{font-size:21px}
  #home .moment-grid{gap:6px 14px}
  #home .moment-card{min-height:calc(var(--orb) + 53px)}
  #home .card-title{font-size:17px}
}
@media(max-width:699px){
  :root{--orb:clamp(56px,calc((100svh - 325px)/5),96px)}
  #startup-logo{width:65vw;max-width:290px}
  body:not(.experience-mode) .topbar{height:70px;min-height:70px;padding-top:3px;padding-bottom:3px}
  #home .intro{min-height:0;padding:16px 0 15px}
  #home .intro h1{font-size:27px;margin-bottom:7px;line-height:1.1}
  #home .intro-copy{font-size:13px;line-height:1.4}
  #home .section-heading{padding:0 0 12px}
  #home .section-heading h2{font-size:21px}
  #home .moment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}
  #home .moment-card{min-height:calc(var(--orb) + 35px);padding-top:5px}
  #home .moment-card>img{margin-bottom:8px}
  #home .moment-card .card-wash,#home .moment-card::after{top:5px}
  #home .card-title{font-size:16px;line-height:1.15}
  #home .random-art svg{width:30px;height:30px}
  #home .card-bottom::after{height:2px;margin-top:4px}
  #home .home-footer{padding:8px 0 4px;gap:8px}
  #home .home-footer>span{font-size:8px}
  #home .home-footer button{min-height:32px;font-size:11px}
}
@media(max-width:699px){
  :root{--orb:clamp(56px,calc((100svh - 480px)/5),80px)}
  #home .intro{padding:12px 0}
  #home .intro h1{font-size:25px;margin-bottom:6px}
  #home .section-heading{padding-bottom:8px}
  #home .section-heading h2{font-size:20px}
  #home .moment-card{min-height:calc(var(--orb) + 30px)}
  #home .moment-card>img{margin-bottom:6px}
  #home .card-bottom::after{display:none}
  #home .home-footer{padding-top:5px}
}

/* Original name stack retained; only the ambience labels use the new font. */
@font-face{font-family:Lora;src:url('assets/fonts/lora-variable.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
:root{--ambience-font-original:'Iowan Old Style',Baskerville,'Palatino Linotype',Georgia,serif;--ambience-font-previous-web:Lora,var(--ambience-font-original);--ambience-font:'Cormorant Garamond',var(--ambience-font-original)}
#home .card-title{font-family:var(--ambience-font);min-height:2.4em;line-height:1.2}
#home .moment-grid{align-items:start}
.brand-group{flex:1;min-width:0}.brand-copy{flex:1;min-width:0}.brand-copy .brand-tagline{max-width:none;white-space:nowrap;font-size:15px}
.header-right{flex:none}.header-right .quiet-label,.header-right .header-line{display:none}.header-right .library-duration{margin:0;padding:4px 10px;border-left:0;font-size:13px;max-width:none}
body .topbar .brand:focus,body.keyboard-navigation .topbar .brand:focus{outline:none!important;box-shadow:none!important;border:0!important}
body.keyboard-navigation .topbar .brand:focus::after{content:'';display:block;position:absolute;bottom:3px;left:30%;right:30%;height:2px;background:#efe5cc}
.topbar .brand{position:relative}
@media(min-width:1101px){.brand-copy{margin-left:18px}.brand-copy .brand-tagline{max-width:none;white-space:nowrap}.header-right{gap:14px}.web-links{font-size:14px;gap:16px}}
@media(min-width:700px) and (max-width:1100px){.brand-copy{display:block;margin-left:16px}.brand-copy .brand-tagline{white-space:normal;font-size:14px}.header-right .library-duration{font-size:12px}.web-links .account-link{display:none}}
@media(max-width:699px){
 .brand-copy,.header-right .library-duration{display:none}.brand-group{flex:0 0 auto}.web-links{font-size:14px}.web-links a{min-height:44px}
 #home .intro-copy{font-size:15px;line-height:1.45}
 #home .home-footer{flex-direction:column;align-items:stretch;gap:0;padding-top:6px}
 #home .home-footer>span{font-size:11px;letter-spacing:.8px;white-space:nowrap;max-width:none;text-align:center}
 #home .home-footer button{font-size:13px;min-height:34px;align-self:center}
 .experience-top .text-button,.experience-top .back-button{font-size:13px}
 .session-tools .text-button{font-size:13px}.track-info span:not(.sound-bars),.player-footnote{font-size:12px}.progress-row>span{font-size:12px}
 .setting-row small,.panel-copy,.panel-note{font-size:13px;line-height:1.6}.panel .eyebrow{font-size:11px}.panel .language-options button{font-size:16px}
 body #home .moment-card:focus::after{border-width:2px;box-shadow:0 0 0 1px rgba(255,242,214,.18)}
 #home .card-title{min-height:2.4em;font-size:16px}
}
/* A landscape player is a deliberate two-column console, sized to the visible viewport. */
@media(orientation:landscape) and (max-height:540px) and (max-width:1100px){
 .experience-mode .topbar{height:48px;min-height:48px;padding:0 3%}
 .experience-mode .brand .brand-wordmark{width:100px;max-height:44px}
 .experience-mode .brand-copy,.experience-mode #clock,.experience-mode .library-duration{display:none}
 .experience-mode .header-right{gap:8px}.experience-mode .header-right .icon-button{width:44px;height:44px;margin:0}
 .experience{height:calc(100dvh - 48px);min-height:0;padding:0 3% 10px;display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.8fr);grid-template-rows:44px minmax(0,1fr);column-gap:20px;align-items:center}
 .experience-top{grid-column:1/-1;grid-row:1;margin:0;padding:0;flex-wrap:nowrap;min-width:0}
 .experience-top .back-button,.experience-top .text-button{min-height:40px;font-size:12px;padding:4px 8px}
 .view-tools{gap:12px}.experience-title{grid-column:1;grid-row:2;align-self:center;margin:0;padding:0;min-width:0}
 .experience-title .eyebrow{font-size:10px}.experience-title h1{font-size:clamp(28px,4.2vw,43px);line-height:1.1;letter-spacing:-1px;margin:10px 0 12px;overflow-wrap:normal}
 .experience-title>p:last-child{font-size:15px;line-height:1.4;max-width:240px}
 .experience .listening{grid-column:2;grid-row:2;margin:0;padding:8px 12px;min-width:0;align-self:center;border-radius:12px}
 .listening-header{padding:0 0 4px;display:block}.listening-header>.eyebrow{display:none}.session-tools{gap:0 12px;flex-wrap:wrap;justify-content:flex-start}
 .session-tools .text-button{font-size:12px;min-height:36px;gap:5px}.session-tools svg{width:16px;height:16px}
 .player{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 0;margin:0;align-items:center}
 .track-info{grid-column:1;gap:9px}.track-info p{font-size:15px;margin:0 0 3px}.track-info span:not(.sound-bars){font-size:11px}
 .transport{grid-column:2;gap:3px;margin:0}.transport .icon-button{width:40px;height:44px;min-width:40px}.transport .play-button{width:44px;height:44px}
 .volume-control{display:none}.progress-row{gap:8px}.progress-row>span{font-size:12px}
 .player-footnote{margin-top:7px;gap:6px;font-size:11px;line-height:1.3;flex-wrap:wrap}
 #music-feedback{font-size:13px;margin:4px 0}.panel{max-height:88dvh}
 body #home .moment-card:focus::after{border-width:2px;box-shadow:none}
}
@media(orientation:landscape) and (max-height:360px) and (max-width:1100px){
 .experience{grid-template-columns:minmax(135px,.7fr) minmax(0,1.8fr);column-gap:14px}
 .experience-title .eyebrow,.track-info span:not(.sound-bars){display:none}
 .experience-title h1{font-size:29px}.experience-title>p:last-child{font-size:13px}
 .session-tools .text-button{min-height:32px}.player-footnote{font-size:11px}.experience .listening{padding:5px 10px}
}
@media(orientation:landscape) and (max-height:540px) and (max-width:1100px){
 body:not(.experience-mode) .topbar{height:48px;min-height:48px;padding:0 3%}
 body:not(.experience-mode) .brand .brand-wordmark{width:100px;max-height:44px}
 body:not(.experience-mode) .brand-copy,body:not(.experience-mode) .library-duration{display:none}
 :root{--orb:clamp(44px,calc((100dvh - 285px)/2),76px)}
 #home{min-height:calc(100dvh - 48px);padding:0 4% 4px}
 #home .intro{padding:8px 0}#home .intro h1{font-size:26px;margin-bottom:4px}
 #home .intro-copy{font-size:14px}#home .section-heading{padding-bottom:6px}#home .section-heading h2{font-size:20px}
 #home .moment-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px 12px}
 #home .moment-card{min-height:calc(var(--orb) + 40px);padding-top:4px}
 #home .moment-card>img{margin-bottom:5px}#home .moment-card::after,#home .moment-card .card-wash{top:4px}
 #home .card-title{font-size:14px;min-height:2.4em}#home .home-footer{min-height:30px;padding:0;flex-direction:row}
 #home .home-footer>span{font-size:11px;text-align:left}#home .home-footer button{font-size:12px;min-height:30px}
}
@media(max-width:699px) and (orientation:portrait){:root{--orb:clamp(52px,calc((100svh - 570px)/5),76px)}}

/* Align the text and actions with the lower, visible lettering of the logo. */
.topbar .brand-copy,.topbar .header-right{transform:translateY(8px)}
@media(max-width:699px){.topbar .header-right{transform:translateY(6px)}}
@media(orientation:landscape) and (max-height:540px) and (max-width:1100px){.topbar .header-right{transform:translateY(2px)}}

/* A compact, centred group with legible ambience names. */
@media(min-width:700px){
 #home .moment-grid{max-width:1080px;width:100%;margin-inline:auto;column-gap:12px}
 #home .card-title{font-size:clamp(22px,2vw,28px);line-height:1.12;min-height:2.24em}
}
@media(min-width:700px) and (max-height:720px){#home .card-title{font-size:22px}#home .moment-grid{max-width:940px;row-gap:4px}}
@media(max-width:699px) and (orientation:portrait){
 #home .moment-grid{max-width:340px;width:100%;margin-inline:auto;column-gap:8px;row-gap:2px}
 #home .card-title{font-size:20px;min-height:2.24em;line-height:1.12}
 :root{--orb:clamp(48px,calc((100svh - 590px)/5),72px)}
}
@media(orientation:landscape) and (max-height:540px) and (max-width:1100px){#home .card-title{font-size:18px}#home .moment-grid{max-width:800px}}
/* Settings are read at arm's length on desktop and touch devices. */
#settings-dialog .panel{width:min(680px,94vw);padding:28px 32px;max-height:88dvh}
#settings-dialog .panel-copy,#settings-dialog .setting-row>span,#settings-dialog .panel-action,#settings-dialog .language-options button{font-size:17px;line-height:1.45}
#settings-dialog .setting-row small,#settings-dialog .panel-note,#settings-dialog .panel-note p{font-size:15px;line-height:1.55}
#settings-dialog .panel .eyebrow{font-size:13px}#settings-dialog .setting-row{padding-block:15px}
#settings-dialog .panel-action{min-height:46px}#settings-dialog .panel-note strong{font-size:17px}
.header-right .library-duration{display:flex;flex-direction:column;gap:2px;line-height:1.25;white-space:nowrap}
.access-duration{display:block;font-size:12px;color:#c5cfbd;font-weight:400}
@media(max-width:699px){#settings-dialog .panel{padding:22px;max-height:88dvh}#settings-dialog .panel h2{font-size:34px}#settings-dialog .setting-row{gap:12px}#settings-dialog .setting-row>span{min-width:0}}
@media(min-width:700px) and (min-height:721px){:root{--orb:clamp(70px,min(9vw,calc((100svh - 530px)/2)),132px)}}
@media(min-width:700px) and (max-height:720px){:root{--orb:clamp(54px,calc((100svh - 480px)/2),96px)}}

@media(max-width:1100px){.web-links .access-link{display:none}}
@media(max-width:699px){.header-right .library-duration{display:none}}
@media(min-width:700px) and (max-width:900px){.topbar .brand-copy{display:none}}
/* Locked content remains visible, but cannot enter the player. */
#home .moment-card.is-locked{cursor:default}#home .moment-card.is-locked>img{filter:grayscale(.8) brightness(.38);opacity:.7}#home .moment-card.is-locked .card-title{color:#a3aca3}#home .moment-card.is-locked:hover>img{filter:grayscale(.8) brightness(.38);transform:none}#home .moment-card.access-pending>img{filter:brightness(.55)}
#home .moment-card.is-locked .card-wash{opacity:0}#home .access-lock{position:absolute;top:calc(var(--orb)/2 - 8px);left:50%;transform:translateX(-50%);display:grid;place-items:center;width:30px;height:30px;color:#f3e7ce;pointer-events:none}
.access-lock svg,.track-choice svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.web-access-dialog{border:1px solid #f4e7cd33;border-radius:20px;padding:0;background:#102723;color:#eee5d1;width:min(640px,94vw);max-height:90dvh}.web-access-dialog::backdrop{background:#020c0bd9;backdrop-filter:blur(7px)}.web-access-dialog .panel{width:100%;margin:0;padding:28px;max-height:88dvh;overflow-y:auto}.web-access-dialog h2{font-size:34px;line-height:1.15}.web-access-dialog .panel-copy{font-size:16px;line-height:1.6}.access-actions{display:grid;gap:12px;margin-top:24px}.access-actions .panel-action{text-align:center;text-decoration:none;font-size:16px;min-height:46px;display:grid;place-items:center}
.track-choices{display:grid;gap:10px}.track-choice{display:grid;grid-template-columns:1fr auto;gap:5px 12px;text-align:left;padding:15px;border:1px solid #d9e4d02b;border-radius:12px;color:#f3ecd9;background:#254137;font-size:16px;min-height:60px}.track-choice-access{font-size:13px;color:#bacdb6;grid-column:1}.track-choice svg{grid-column:2;grid-row:1/3;align-self:center}.track-choice.is-locked{background:#091d19;color:#919c94;border-color:#b7c0b316;cursor:default}.track-choice.is-locked .track-choice-access{color:#919c94}.web-access-dialog a:focus-visible,.web-access-dialog button:focus-visible{outline:2px solid #f8d796;outline-offset:3px}
@media(max-width:699px){.web-access-dialog .panel{padding:22px}.web-access-dialog h2{font-size:30px}}
/* Keep the original left/right composition, aligned to the outer sphere edges. */
#home{--home-grid-max:1080px;--home-copy-width:calc(min(100%,var(--home-grid-max)) * .8 + var(--orb) + 9.6px)}
#home .intro,#home .section-heading,#home .home-footer{width:var(--home-copy-width);max-width:none;margin-inline:auto;padding-inline:0;text-align:left}
#home .hero-copy{width:100%;text-align:left}
#home .section-heading{flex-direction:row;justify-content:space-between;align-items:center}
#home .section-heading>div{text-align:left}#home .section-heading>p{margin:0;text-align:right}
#home .home-footer{flex-direction:row;justify-content:space-between;align-items:center}
#home .home-footer>span{text-align:left}#home .home-footer>button{position:static;align-self:auto}
@media(min-width:700px) and (max-height:720px){#home{--home-grid-max:940px}}
@media(orientation:landscape) and (max-height:540px) and (max-width:1100px){#home{--home-grid-max:800px}}
@media(max-width:699px) and (orientation:portrait){
 #home{--home-copy-width:calc(min(100%,340px) * .5 + var(--orb) + 4px)}
 #home .home-footer{flex-direction:column;align-items:stretch}
 #home .home-footer>button{align-self:flex-end}
}

/* The dialog owns its width; the scrolling panel stays inside it. */
#settings-dialog{width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);overflow:hidden;box-sizing:border-box}
#settings-dialog .panel{width:100%;max-width:100%;max-height:calc(100dvh - 48px);overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding:28px 32px}
#settings-dialog .setting-row>span:first-child{flex:1;min-width:0;white-space:normal}
#settings-dialog .setting-row>input,#settings-dialog .setting-row>span#brightness-value{flex:none}
#settings-dialog .language-options{flex-wrap:wrap;flex-shrink:0}
#settings-dialog .panel-header{align-items:center}#settings-dialog .panel-header .icon-button{flex:none}
@media(max-width:699px){
 #settings-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
 #settings-dialog .panel{padding:20px;max-height:calc(100dvh - 24px)}
 #settings-dialog .language-row{flex-wrap:wrap}
 #home .home-footer>span{text-align:center;width:100%}
 #home .home-footer>button{align-self:center}
}
/* Fit the portrait player to the visible viewport, keeping all playback controls. */
@media(max-width:699px) and (orientation:portrait){
 body.experience-mode .topbar{height:64px;min-height:64px;padding-block:3px}
 #experience{height:calc(100dvh - 64px);min-height:calc(100dvh - 64px);margin:0;padding:8px 5% max(10px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(76px,1fr) auto;gap:8px;box-sizing:border-box}
 #experience .experience-top{margin:0;padding:0;gap:8px;align-items:center;flex-wrap:wrap}
 #experience .experience-top .back-button,#experience .view-tools .text-button{font-size:12px;min-height:36px}
 #experience .view-tools{gap:8px}
 #experience .experience-title{margin:0;padding:6px 0;align-self:center;min-width:0}
 #experience .experience-title h1{font-size:clamp(30px,8vw,42px);line-height:1.1;margin:8px 0 10px}
 #experience .experience-title>p:last-child{font-size:16px;line-height:1.4;max-width:none;margin:0}
 #experience .experience-title .eyebrow{font-size:10px}
 #experience .listening{margin:0;padding:10px 12px;min-width:0;align-self:end}
 #experience .listening-header{padding-bottom:4px}
 #experience .session-tools{gap:0 10px}
 #experience .session-tools .text-button{min-height:36px;font-size:12px}
 #experience .player{padding:8px 0;gap:8px;grid-template-columns:minmax(0,1fr) auto}
 #experience .track-info{grid-column:1/-1}
 #experience .track-info p{font-size:16px;margin:0 0 3px}
 #experience .track-info span:not(.sound-bars){font-size:12px}
 #experience .transport{gap:5px}#experience .transport .play-button{width:48px;height:48px}
 #experience .volume-control input{width:70px}
 #experience .player-footnote{font-size:11px;line-height:1.35;margin-top:7px;gap:5px}
 #experience .progress-row>span{font-size:12px}
}
@media(max-width:699px) and (orientation:portrait) and (max-height:690px){
 #experience{gap:4px;padding-top:4px}#experience .experience-title h1{font-size:30px;margin:5px 0}
 #experience .experience-title>p:last-child{font-size:14px}
 #experience .session-tools .text-button{min-height:32px}#experience .listening{padding:7px 10px}
 #experience .player{padding:5px 0}#experience .player-footnote{margin-top:4px}
}
/* Home-screen mode extends to the display edges without covering notches or the home indicator. */
#ios-fullscreen-help{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 32px)}
#ios-fullscreen-help .panel{max-height:calc(100dvh - 32px)}
.install-steps{padding-left:24px;font-size:16px;line-height:1.6}.install-steps li{padding:6px 0}.install-steps strong{color:#f5e8cf}
@media(max-width:699px) and (orientation:portrait){
 .standalone-app body .topbar{padding-top:calc(3px + env(safe-area-inset-top));height:calc(70px + env(safe-area-inset-top));min-height:calc(70px + env(safe-area-inset-top))}
 .standalone-app body.experience-mode .topbar{height:calc(64px + env(safe-area-inset-top));min-height:calc(64px + env(safe-area-inset-top))}
 .standalone-app #experience{height:calc(100dvh - 64px - env(safe-area-inset-top));min-height:calc(100dvh - 64px - env(safe-area-inset-top))}
}
@media(orientation:landscape) and (max-height:540px) and (max-width:1100px){
 .standalone-app body .topbar{padding-left:max(3%,env(safe-area-inset-left));padding-right:max(3%,env(safe-area-inset-right))}
 .standalone-app #experience{padding-left:max(3%,env(safe-area-inset-left));padding-right:max(3%,env(safe-area-inset-right));padding-bottom:max(10px,env(safe-area-inset-bottom))}
}

/* A short question stays on one line within the sphere-aligned mobile column. */
@media(max-width:699px){#home .section-heading h2{font-size:clamp(15.5px,4.2vw,18.5px);white-space:nowrap;letter-spacing:-.2px}}
/* Touch-only help replaces the remote instructions, in either orientation. */
.mobile-gestures #landscape-guide:not([hidden]){display:block!important;box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-width:none;bottom:max(28px,calc(env(safe-area-inset-bottom) + 16px));padding:22px;border-radius:22px}
.mobile-gestures #landscape-guide[hidden]{display:none!important}
.mobile-gestures .landscape-guide-heading{display:block;margin-bottom:18px}
.mobile-gestures .landscape-guide-heading .eyebrow{font-size:11px;letter-spacing:1.8px}
.mobile-gestures .landscape-guide-heading p{font-size:27px;margin-top:8px}
.mobile-gestures .landscape-guide-controls{display:block}
.mobile-gestures .landscape-guide-item{gap:15px}
.mobile-gestures .landscape-guide-item+.landscape-guide-item{border-left:0;border-top:1px solid #efe5cc26;margin:15px 0 0;padding:15px 0 0}
.mobile-gestures .landscape-guide-item strong{font-size:17px;margin-bottom:5px}
.mobile-gestures .landscape-guide-item div>span{font-size:14px;line-height:1.45}
.touch-guide-icon{width:38px;flex:none;text-align:center;font-size:34px;color:#edc985}
.mobile-gestures .landscape-guide-footer{font-size:14px;line-height:1.5;margin-top:18px}
.mobile-gestures .landscape-guide-footer>span{display:block;float:none;margin-top:7px;font-size:13px}
.mobile-gestures .immersed{touch-action:none;overscroll-behavior:none;cursor:auto}
.mobile-gestures .immersed dialog{touch-action:auto}
.mobile-gestures .immersed #reveal-hint,.mobile-gestures #brightness-hud{display:none}
#mobile-light-trigger{position:fixed;z-index:32;right:max(20px,env(safe-area-inset-right));bottom:max(20px,calc(env(safe-area-inset-bottom) + 12px));display:flex;align-items:center;gap:9px;min-height:48px;padding:10px 16px;border:1px solid #efe5cc40;border-radius:30px;background:#101f1cdd;color:#efe5cc;font-size:15px;box-shadow:0 8px 30px #0003;cursor:pointer}
#mobile-light-trigger svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
#mobile-light-trigger[hidden],#mobile-volume-hud[hidden]{display:none}
#mobile-light-trigger:focus-visible{outline:2px solid #edc985;outline-offset:4px}
#mobile-light-wake{position:fixed;z-index:32;right:0;bottom:0;width:calc(88px + env(safe-area-inset-right));height:calc(88px + env(safe-area-inset-bottom));padding:20px max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) 20px;background:transparent;border:0;color:#efe5cc;opacity:0;cursor:pointer}
#mobile-light-wake svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5}
#mobile-light-wake[hidden]{display:none}
#mobile-light-wake:focus-visible{opacity:1;outline:2px solid #edc985;outline-offset:-8px;background:#10272399;border-radius:20px}
#mobile-light-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;margin:auto;padding:24px;border:1px solid #efe5cc40;border-radius:24px;background:#102723f5;color:#efe5cc;box-shadow:0 16px 80px #0006;touch-action:auto}
#mobile-light-dialog::backdrop{background:#03100c55;backdrop-filter:blur(5px)}
.mobile-light-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
#mobile-light-title{font-family:var(--serif);font-weight:400;font-size:28px;margin:0}
#mobile-light-dialog label{display:flex;justify-content:space-between;font-size:16px;gap:12px}
#mobile-light-dialog input{display:block;width:100%;margin:24px 0;height:6px}
#mobile-light-dialog input::-webkit-slider-thumb{width:24px;height:24px}
#mobile-light-dialog input::-moz-range-thumb{width:24px;height:24px}
#mobile-light-dialog p{font-size:14px;color:#c3cbbb;margin:20px 0 0}
#mobile-volume-hud{position:fixed;z-index:35;top:50%;left:50%;transform:translate(-50%,-50%);background:#102723e8;color:#efe5cc;border:1px solid #efe5cc40;border-radius:30px;padding:15px 24px;font-size:18px;pointer-events:none}
@media(orientation:landscape) and (max-height:540px){
 .mobile-gestures #landscape-guide:not([hidden]){width:min(660px,calc(100vw - 40px));padding:18px 24px;bottom:max(18px,env(safe-area-inset-bottom))}
 .mobile-gestures .landscape-guide-controls{display:flex;gap:20px}
 .mobile-gestures .landscape-guide-item+.landscape-guide-item{border-top:0;border-left:1px solid #efe5cc26;margin:0;padding:0 0 0 20px}
 .mobile-gestures .landscape-guide-heading{margin-bottom:12px}.mobile-gestures .landscape-guide-heading p{font-size:24px;margin-top:5px}
 .mobile-gestures .landscape-guide-footer{margin-top:14px;font-size:13px}.mobile-gestures .landscape-guide-footer>span{font-size:12px;margin-top:3px}
}
/* Show touch instructions at full contrast for their entire reading time. */
.mobile-gestures #landscape-guide.show{animation:none;opacity:1;transform:translateX(-50%)}
