/* Lyrics media and the scroll-driven device chapter. */
.expression { background:#fff; color:var(--ink); padding-top:110px; padding-bottom:100px; }
.expression .eyebrow { color:#16732a; }
.expression .section-intro { color:#657268; }
.expression-media { position:relative; display:block; padding:0; margin:0 0 56px; width:100%; aspect-ratio:80/59; overflow:hidden; border:3px solid #26372b; border-radius:18px; background:#10233f; box-shadow:0 24px 64px #10251b24; transition:box-shadow .4s; }
.expression-media video { display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; transition:transform .5s; }
.expression-media:focus-visible video { transform:scale(1.015); }
@media(hover:hover) and (pointer:fine) {
  .expression-media:hover video { transform:scale(1.015); }
  .expression-media:hover { box-shadow:0 28px 72px #10251b38; }
}
body.media-open { overflow:hidden; }
.video-dialog { width:fit-content; max-width:94vw; padding:24px 24px 17px; }
.video-dialog>video { display:block; width:auto; height:auto; max-width:min(86vw,1100px); max-height:76svh; object-fit:contain; border-radius:9px; background:#080a09; }
.video-dialog .dialog-close { z-index:2; }
.expression .feature-notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px; padding:0; }
.expression .feature-notes article { padding:24px 0 0; border-color:#dbe4dc; }
.expression .feature-notes .index { position:static; display:block; color:#2a8b39; margin-bottom:16px; }
.expression .feature-notes h3 { font-size:21px; color:#17291c; }
.expression .feature-notes p { color:#657268; max-width:none; }
.expression .feature-footnote { color:#78837c; }
/* A framed tour of the music library, using full, uncropped app captures. */
.library-gallery-stage { position:relative; aspect-ratio:2853/2007; touch-action:pan-y pinch-zoom; }
.library-slide.tv-frame { position:absolute; inset:0; width:100%; max-width:100%; height:100%; margin:0; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .4s ease,visibility 0s linear .4s; }
.library-slide.tv-frame.is-active { z-index:1; opacity:1; visibility:visible; pointer-events:auto; transition-delay:0s; }
.library-slide.tv-frame img { width:100%; height:100%; object-fit:contain; }
.library-gallery-footer { display:flex; align-items:center; justify-content:space-between; gap:34px; margin-top:28px; }
.library-gallery-captions { display:grid; flex:1; max-width:650px; }
.library-slide-copy { grid-area:1/1; visibility:hidden; opacity:0; transition:opacity .25s ease; }
.library-slide-copy.is-active { visibility:visible; opacity:1; }
.library-slide-copy h3 { color:var(--text); font-size:21px; line-height:1.4; letter-spacing:-.025em; }
.library-slide-copy p { margin-top:8px; font-size:13px; line-height:1.85; color:#8fa294; }
.library-gallery-controls,.library-gallery-pickers { display:flex; align-items:center; }
.library-gallery-controls { flex:none; gap:9px; }
.library-gallery-pickers { margin-right:12px; gap:2px; }
.library-picker { display:grid; place-items:center; min-width:27px; height:38px; padding:0; border-radius:30px; background:transparent; }
.library-dot { display:block; width:6px; height:6px; border-radius:20px; background:#435248; transition:width .25s,background .25s; }
.library-picker[aria-pressed=true] .library-dot { width:19px; background:var(--green); }
.library-carousel-button { display:grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid #344b3b; border-radius:50%; background:#131e16; color:#b9c7bc; }
.library-carousel-button svg { width:16px; height:16px; }
.library-carousel-button:hover { border-color:#82a987; color:var(--green); }
.library-picker:hover .library-dot { background:#93b097; }
.library-picker[aria-pressed=true]:hover .library-dot { background:var(--green); }
@media(max-width:380px) {
  .library-picker { min-width:24px; }
  .library-carousel-button { width:36px; height:36px; }
}
/* Content-sized chapters keep tall windows from adding an empty black footer. */
.devices { --duo-top:88px; background:var(--bg); color:var(--text); padding:0; }
.devices .eyebrow { color:var(--green); }
.devices .section-intro { color:#88978a; }
.duo-scroll-track { position:relative; height:calc(var(--duo-pin-height, 650px) + var(--duo-scroll-distance, 1600px)); }
.duo-sticky { position:sticky; top:var(--duo-pin-top, var(--duo-top)); }
.duo-sticky>.shell { max-width:1360px; width:100%; display:flex; flex-direction:column; gap:32px; padding-top:32px; padding-bottom:32px; }
.devices .section-heading { flex-shrink:0; margin:0; }
.devices .device-panel { display:grid; grid-template-columns:minmax(0,2.1fr) minmax(280px,1fr); gap:48px; align-items:center; min-height:0; }
.duo-showcase { width:100%; height:clamp(300px,48svh,520px); min-height:0; }
.duo-scene { position:relative; width:100%; height:100%; background:transparent; overflow:hidden; isolation:isolate; }
.ecosystem-world { position:absolute; left:0; top:0; width:1920px; height:1080px; transform-origin:0 0; visibility:hidden; will-change:transform; }
.duo-scene.is-positioned .ecosystem-world { visibility:visible; }
.ecosystem-device { position:absolute; }
.ecosystem-hardware { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; }
.ecosystem-screen { position:absolute; display:block; object-fit:cover; background:#10233f; }
/* These coordinates follow the user's 1920×1080 composition. Only the parent
   world camera scales: the hardware never changes relative size or position. */
.ecosystem-tv { left:621.815px; top:263.604px; width:1255.225px; height:811.517px; opacity:0; }
.ecosystem-tv .ecosystem-screen { left:2.39535%; top:4.28058%; width:89.30233%; height:77.69784%; }
.ecosystem-mac { left:173.55px; top:456.44px; width:629px; height:484.563px; opacity:0; }
.ecosystem-mac .ecosystem-screen { left:2.59259%; top:3.36538%; width:94.81481%; height:69.23077%; object-fit:contain; }
/* Rasterize at the source-frame resolution before the common camera zooms in. */
.ecosystem-duo { left:52px; top:767px; width:1120px; height:800px; transform:scale(.223); transform-origin:0 0; }
.duo-canvas-container { position:absolute; inset:0; opacity:0; transition:opacity .2s ease; }
.duo-canvas-container canvas { display:block; width:100%; height:100%; }
.duo-scene.is-ready .duo-canvas-container { opacity:1; }
.duo-placeholder { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; transition:opacity .2s ease; }
.duo-poster { display:block; width:100%; height:100%; object-fit:contain; }
.duo-scene.is-ready .duo-placeholder { opacity:0; }
.devices .device-copy { display:grid; max-width:400px; }
.ecosystem-copy { grid-area:1/1; align-self:center; visibility:hidden; opacity:0; transition:opacity .2s ease; }
.ecosystem-copy.is-active { visibility:visible; opacity:1; }
.devices .device-copy h3 { color:var(--text); }
.devices .device-copy p:not(.eyebrow) { color:var(--muted); margin-top:18px; }
.devices .device-copy .eyebrow { color:var(--green); margin:0 0 14px; }
.devices .device-tags { margin-top:20px; }
.devices .device-tags span { color:#93a992; border-color:#314435; }
.duo-scroll-track.is-static { height:auto; }
.duo-scroll-track.is-static .duo-sticky { position:relative; top:0; }
@media(max-width:1000px) {
  .devices .device-panel { grid-template-columns:minmax(0,1.45fr) minmax(220px,1fr); gap:36px; }
}
@media(max-width:860px) {
  .devices { --duo-top:76px; }
  .expression .feature-notes { gap:24px; }
  .expression .feature-notes h3 { font-size:18px; }
  .duo-sticky>.shell { gap:26px; padding-top:28px; padding-bottom:32px; }
  .devices .section-heading { display:block; }
  .devices .section-intro { margin-top:14px; max-width:440px; }
  .devices .device-panel { display:flex; flex-direction:column; gap:26px; height:auto; align-items:stretch; }
  .duo-showcase { flex:none; height:var(--duo-stage-height, clamp(240px,44svh,500px)); }
  .devices .device-copy { flex:none; max-width:580px; width:100%; margin-inline:auto; }
  .devices .device-copy h3 { font-size:27px; }
  .devices .device-copy p:not(.eyebrow) { max-width:480px; margin-top:12px; font-size:13px; line-height:1.85; }
  .devices .device-copy .eyebrow { margin-bottom:10px; }
  .devices .device-tags { margin-top:16px; }
}
@media(max-width:680px) {
  .library-gallery-footer { align-items:stretch; flex-direction:column; gap:18px; margin-top:23px; }
  .library-slide-copy h3 { font-size:18px; }
  .library-slide-copy p { font-size:12px; margin-top:7px; }
  .library-gallery-controls { gap:8px; }
  .library-gallery-pickers { margin-right:auto; }
  .expression { padding-top:68px; padding-bottom:68px; }
  .expression-media { margin-bottom:32px; border-width:2px; border-radius:12px; }
  .video-dialog { max-width:96vw; padding:14px 14px 15px; }
  .video-dialog>video { max-width:calc(96vw - 30px); max-height:78svh; border-radius:6px; }
  .expression .section-heading { margin-bottom:30px; }
  .expression .feature-notes { display:block; }
  .expression .feature-notes article { padding:23px 0; }
  .expression .feature-notes .index { margin-bottom:11px; font-size:9px; }
  .devices { --duo-top:73px; }
  .duo-sticky>.shell { gap:24px; padding-top:24px; padding-bottom:28px; }
  .devices .device-panel { gap:24px; }
  .devices .device-copy h3 { font-size:25px; }
}
@media(max-height:900px) and (max-width:860px) {
  .duo-sticky>.shell { gap:20px; padding-top:22px; padding-bottom:24px; }
  .devices .section-heading h2 { font-size:30px; margin-top:10px; }
  .devices .section-heading .eyebrow { font-size:8px; }
  .devices .device-panel { gap:20px; }
  .devices .device-copy .eyebrow { margin-bottom:8px; }
  .devices .device-copy h3 { font-size:23px; }
  .devices .device-copy p:not(.eyebrow) { margin-top:10px; font-size:12px; line-height:1.75; }
  .devices .device-tags { margin-top:12px; }
}
@media(max-height:580px) {
  .duo-sticky>.shell { gap:16px; padding-top:12px; padding-bottom:16px; }
  .devices .section-heading h2 { font-size:25px; margin-top:7px; }
  .devices .section-heading .eyebrow { font-size:8px; }
  .devices .section-intro { font-size:11px; line-height:1.65; margin-top:8px; padding-bottom:0; }
  .devices .device-copy h3 { font-size:22px; }
  .devices .device-copy p:not(.eyebrow) { font-size:12px; line-height:1.75; margin-top:10px; }
  .devices .device-copy .eyebrow { margin-bottom:8px; }
  .devices .device-tags { margin-top:12px; }
  .duo-showcase { height:clamp(160px,45svh,280px); }
}
@media(max-height:580px) and (max-width:860px) {
  .duo-showcase { height:var(--duo-stage-height, 160px); }
}
@media(max-height:580px) and (min-width:600px) {
  .devices .section-heading { display:flex; align-items:flex-end; gap:28px; }
  .devices .section-intro { max-width:310px; margin-top:0; }
}
@media(max-height:580px) and (min-width:600px) and (max-width:860px) {
  .devices .device-panel { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:24px; }
  .duo-showcase { height:clamp(140px,38svh,240px); }
}
@media(prefers-reduced-motion:reduce) {
  .duo-scroll-track { height:auto; }
  .duo-sticky { position:relative; top:0; }
  .duo-canvas-container,.duo-placeholder,.ecosystem-copy { transition:none; }
}
