/* Each route occupies the same product stage; the source device changes. */
.opening{background:radial-gradient(ellipse at 77% 63%,#1b2430,transparent 65%),#0c1017}
.intro h1{font-size:clamp(43px,4.65vw,77px);line-height:1.13;letter-spacing:-.045em}
.intro h1 span{display:block;white-space:nowrap}
.intro-lead{max-width:22em}
.route-tabs{display:inline-flex;gap:3px;padding:4px;margin-top:clamp(21px,2.5vw,38px);background:#ffffff08;border:1px solid #ffffff18;border-radius:30px}
.route-tabs button{min-height:35px;padding:5px 16px;color:#a8b4c3;font-size:13px;border-radius:23px;white-space:nowrap}
.route-tabs button[aria-pressed=true]{background:#e9edf1;color:#182433;box-shadow:0 1px 2px #0002}
.mode-note{max-width:31em;color:#a9b7c6}
.quiet-link{display:inline-flex;align-items:center;gap:12px;color:#c8d8eb;font-size:14px;margin-top:22px}
.devices{--phone-width:clamp(273px,40cqw,322px);--shared-edge:clamp(27px,3.7cqw,49px);height:clamp(620px,75svh,728px)}
.phone-fit{aspect-ratio:451/943}
.hero-phone{width:var(--phone-width)}
.hero-mac{right:auto;left:calc(var(--phone-width) - var(--shared-edge));top:54%;width:min(calc(100% - var(--phone-width) + var(--shared-edge)),clamp(360px,38.7vw,620px))}
.hero-peer{display:none}
.devices[data-route=mac] .hero-phone,.devices[data-route=mac] .device-focus{display:none}
.devices[data-route=mac] .hero-mac{left:0;top:38%;width:min(58%,478px);z-index:1}
.devices[data-route=mac] .hero-peer{display:block;position:absolute;right:0;top:55%;width:80%;transform:translateY(-36%);z-index:3}
.devices[data-route=mac]:not(.host-focus)[data-front=mac] .hero-mac{z-index:5}
.devices[data-route=mac] .hero-mac>mm-host,.devices[data-route=mac] .hero-peer>mm-viewer{transition:transform .24s cubic-bezier(.22,.78,.24,1),filter .24s ease}
.devices[data-route=mac]:not(.host-focus)[data-front=mac] .hero-mac>mm-host{transform:translateY(-4px);filter:drop-shadow(0 24px 46px rgba(2,6,16,.62))}
.devices[data-route=mac]:not(.host-focus):not([data-front=mac]) .hero-peer>mm-viewer{filter:drop-shadow(-16px 20px 38px rgba(2,6,16,.54))}
.devices.phone-large{--phone-width:clamp(310px,43cqw,365px);height:clamp(660px,83svh,825px)}
.devices.phone-large .hero-phone{width:var(--phone-width)}
@media(min-width:761px) and (min-height:900px){.devices.phone-large{height:960px;--phone-width:451px}}
.mac-link-chapter{position:relative;color-scheme:light;color:#1d252d;background:#eeefec;padding:clamp(61px,7vw,111px) 0 clamp(48px,5.6vw,94px)}
.mac-link-heading{display:grid;grid-template-columns:1.1fr .78fr;align-items:end;gap:6vw}
.mac-link-heading .eyebrow,.peer-narrative>.eyebrow{color:#60706e}.mac-link-heading h2{letter-spacing:-.05em}.mac-link-heading>p{font-size:clamp(15px,1.22vw,20px);line-height:1.86;color:#566065;text-wrap:pretty}
.peer-showcase{display:grid;grid-template-columns:minmax(177px,.44fr) minmax(0,1.28fr);gap:clamp(40px,5.6vw,100px);align-items:center;margin-top:clamp(35px,4.7vw,77px)}
.peer-narrative{min-width:0}.peer-narrative>.eyebrow{font-size:12px;margin-bottom:10px}
.route-line{display:flex;align-items:center;gap:11px;color:#25343d;font-size:clamp(15px,1.5vw,23px);letter-spacing:-.035em;margin-bottom:24px}
.route-line b{font-weight:570;white-space:nowrap}.route-line i{height:1px;width:clamp(16px,2.05vw,35px);position:relative;background:#788989}.route-line i:after{content:"";position:absolute;right:0;top:-2px;width:5px;height:5px;border-right:1px solid #788989;border-top:1px solid #788989;transform:rotate(45deg)}
.peer-choice{display:grid;border-top:1px solid #c5cac8}
.peer-choice button{border-bottom:1px solid #c5cac8;text-align:left;padding:15px 0;color:#647075}
.peer-choice button>b{display:block;font-size:17px;font-weight:550}.peer-choice button>span{display:block;font-size:13px;margin-top:4px;line-height:1.65}
.peer-choice button[aria-pressed=true]{border-bottom-color:#637778;color:#1e343d}.peer-choice button[aria-pressed=true]>b::before{content:"";display:inline-block;vertical-align:middle;width:5px;height:5px;margin-right:8px;border-radius:50%;background:#3d655b}
.peer-mode-control{display:inline-flex;align-items:center;gap:2px;margin-top:20px;padding:3px;border:1px solid #bcc5c4;border-radius:21px}.peer-mode-control button{font-size:12px;min-height:29px;border-radius:18px;color:#5a656a;padding:3px 11px}
.peer-mode-control button[aria-pressed=true]{background:#34484c;color:#fff}.peer-note{color:#5d686d;font-size:12px;margin-top:8px}
.peer-stage{position:relative;display:grid;align-items:center;min-width:0;min-height:0}
#peer-remote,#peer-list{grid-area:1/1;min-width:0;width:100%}#peer-list{width:min(100%,575px);justify-self:center}
#peer-list[hidden],#peer-remote[hidden]{display:none}
.peer-caption{display:flex;align-items:center;justify-content:space-between;padding-top:12px;grid-row:2;color:#5e6b72;font-size:11px}
.reading-strip{display:flex;align-items:center;gap:22px;border-top:1px solid #c9cecb;margin-top:clamp(32px,3.2vw,55px);padding-top:16px;color:#3d4c51}
.reading-strip>div:first-child{display:flex;align-items:baseline;gap:14px;min-width:0}.reading-strip small{font-size:11px;color:#65716f;white-space:nowrap}.reading-strip strong{font-size:14px;font-weight:520;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.read-meter{height:2px;flex:1;min-width:20px;background:#d2d8d4;overflow:hidden}.read-meter i{display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:left;background:#68847b}.reading-strip button{font-size:12px;white-space:nowrap;color:#354c4f}
.rotate-stage .rotator{--air-ratio:943/451;aspect-ratio:var(--air-ratio);padding:0;background:transparent url(assets/air-shell-landscape.webp) center/100% 100%;border-radius:0;box-shadow:none;filter:drop-shadow(0 10px 17px #27394c27)}
.rotate-stage .rotator[data-orientation=tall]{aspect-ratio:451/943;background-image:url(assets/air-shell.webp);border-radius:0}
.rotator .rotate-screen{inset:3.437% 1.644%;border-radius:0;mask:url(assets/air-display-landscape.svg) center/100% 100% no-repeat;-webkit-mask:url(assets/air-display-landscape.svg) center/100% 100% no-repeat}
.rotator[data-orientation=tall] .rotate-screen{inset:1.644% 3.437%;border-radius:0;mask-image:url(assets/air-display.svg);-webkit-mask-image:url(assets/air-display.svg)}
.rotator #mini-viewport{aspect-ratio:1728/1117}.rotator .wide-bar,.rotator .rail-toggle{z-index:5}
.rotator.is-zoomed .os-desktop{transform:scale(1.18)}
@media(min-width:761px) and (max-width:1000px){.hero-grid{grid-template-columns:.61fr 1.13fr;gap:18px}.intro h1{font-size:clamp(32px,4.2vw,43px)}.devices{--phone-width:clamp(219px,44cqw,255px);height:570px}.route-tabs button{padding:4px 9px;font-size:12px}.peer-showcase{grid-template-columns:.45fr 1.14fr;gap:26px}}
@media(max-width:760px){
.intro h1{font-size:clamp(34px,8vw,53px);line-height:1.1}.intro h1 span{display:inline;white-space:normal}.intro h1 span+span:before{content:" "}
.route-tabs{margin-top:14px}.route-tabs button{min-height:30px;font-size:12px;padding:3px 13px}
.devices{--phone-width:clamp(241px,75cqw,292px);height:clamp(530px,153vw,663px)}
.hero-phone{width:var(--phone-width);left:0;top:49%}.hero-mac{right:0;left:auto;top:56%;width:69%}
.devices.phone-large{height:clamp(648px,180vw,826px);--phone-width:min(92%,360px)}
.devices.phone-large .hero-phone{width:var(--phone-width);left:4%;top:50%}
.devices[data-route=mac]{height:clamp(345px,89vw,515px)}.devices[data-route=mac] .hero-mac{width:74%;top:38%;left:0}.devices[data-route=mac] .hero-peer{width:89%;top:62%}
.mac-link-chapter{padding:49px 0 37px}.mac-link-heading{grid-template-columns:1fr;gap:14px}.mac-link-heading h2 br{display:none}
.peer-showcase{display:flex;flex-direction:column;gap:18px;margin-top:24px;align-items:stretch}
.peer-narrative>.eyebrow,.peer-choice button>span{display:none}.route-line{font-size:16px;margin:0 0 10px}.peer-choice{display:inline-flex;gap:16px;border-top:0}.peer-choice button{padding:7px 0}.peer-choice button>b{font-size:14px}.peer-mode-control{float:right;margin-top:3px}.peer-note{margin-top:7px}
.peer-caption{font-size:10px;padding-top:8px}.reading-strip{gap:12px;margin-top:22px;padding-top:12px}.reading-strip>div:first-child{display:block}.reading-strip small,.reading-strip strong{display:block}.reading-strip strong{font-size:12px;max-width:34vw}.reading-strip button{font-size:11px}
}
.intro{container-type:inline-size}
.intro h1{font-size:clamp(28px,14.05cqw,70px);line-height:1.13}
@media(min-width:761px) and (max-height:780px){.hero-grid{padding-top:20px;padding-bottom:25px}.devices{height:612px;--phone-width:clamp(270px,39.1cqw,298px)}}
@media(max-width:760px){.intro h1{font-size:clamp(36px,10.6cqw,54px)}.intro h1 span{display:block;white-space:normal}.intro h1 span+span:before{content:none}}
@media(min-width:761px){
.mac-link-chapter>.wrap{display:grid;grid-template-columns:minmax(238px,.61fr) minmax(0,1.36fr);gap:23px clamp(30px,5.4vw,84px);align-items:center}
.mac-link-heading{display:block;grid-column:1;grid-row:1;align-self:end}.mac-link-heading h2{font-size:clamp(32px,3.5vw,60px)}
.mac-link-heading>p{margin-top:16px;font-size:clamp(15px,1.1vw,18px);line-height:1.75}
.peer-showcase{display:contents}.peer-narrative{grid-column:1;grid-row:2;align-self:start}.peer-stage{grid-column:2;grid-row:1 / 3;width:min(100%,711px);justify-self:center}
.reading-strip{grid-column:1/-1;grid-row:3;margin-top:12px}
.peer-narrative>.eyebrow{display:none}.route-line{margin-bottom:13px}.peer-choice button{padding:10px 0}.peer-mode-control{margin-top:13px}
}
.hero-machine-tag{position:absolute;bottom:100%;left:1.5%;margin-bottom:6px;font:500 12px/1.4 var(--ui);color:#aeb9c8}.hero-machine-tag[hidden],.peer-mode-control[hidden],.peer-note[hidden],.reading-strip[hidden],.orientation-phone-slot[hidden],.rotate-stage .rotator[hidden]{display:none!important}
.devices[data-route=phone] .hero-mac{z-index:1}.devices[data-route=phone] .hero-phone{z-index:2}
.devices[data-route=phone]:not(.host-focus)[data-front=mac] .hero-mac{z-index:5}
.devices[data-route=phone] .hero-mac>mm-host,.devices[data-route=phone] .hero-phone>mm-phone{transition:transform .24s cubic-bezier(.22,.78,.24,1),filter .24s ease}
.devices[data-route=phone]:not(.host-focus)[data-front=mac] .hero-mac>mm-host{transform:translateY(-5px);filter:drop-shadow(0 20px 38px rgba(2,6,16,.55))}
.devices[data-route=phone]:not(.host-focus):not([data-front=mac]) .hero-phone>mm-phone{filter:drop-shadow(-14px 18px 32px rgba(2,6,15,.52))}
@media(prefers-reduced-motion:reduce){.devices[data-route=phone] .hero-mac>mm-host,.devices[data-route=phone] .hero-phone>mm-phone{transition:none}.devices[data-route=phone]:not(.host-focus)[data-front=mac] .hero-mac>mm-host{transform:none}}
@media(min-width:761px){
.devices[data-route=phone]{--shared-edge:clamp(74px,11.5cqw,106px)}
.devices.phone-large{--phone-width:min(451px,calc((100svh - 64px)*.47826));min-height:calc(100svh - 32px)}
}
.orientation-phone-slot{position:relative;width:clamp(222px,20.5vw,282px);place-self:center}
.rotate-stage[data-layout=tall]{height:auto;min-height:unset;padding:12px 0}
.peer-watch{top:3%;right:3%;bottom:auto;font-size:1.9cqw;color:#fff;background:#202833eb;box-shadow:0 2px 7px #0d142333}
@media(max-width:760px){.orientation-phone-slot{width:clamp(232px,65vw,305px)}}
.shortcut-strip{display:flex;align-items:center;gap:clamp(16px,2.5vw,36px);padding-top:18px;border-top:1px solid #c9cecb;color:#37484d;grid-column:1/-1;grid-row:4}
.shortcut-strip[hidden]{display:none}.shortcut-strip>div small,.shortcut-strip strong{display:block}.shortcut-strip small{font-size:11px;color:#62736f}.shortcut-strip strong{font-size:14px;font-weight:550}.shortcut-strip button{display:flex;gap:3px;flex:none}.shortcut-strip kbd{display:grid;place-items:center;min-width:28px;height:27px;border-radius:5px;border:1px solid #aeb9b4;box-shadow:0 1px 0 #adb8b2;background:#f8f8f5;color:#354b43;font:500 13px var(--ui)}.shortcut-strip button:active kbd{transform:translateY(1px);box-shadow:none}.shortcut-strip output{font-size:13px;color:#58665f}
@media(max-width:760px){.shortcut-strip{margin-top:20px;display:grid;grid-template-columns:1fr auto;gap:8px}.shortcut-strip output{grid-column:1/-1;font-size:12px}}

/* Layered paired stage: Mac sits slightly behind on the left; iPhone overlaps on the right; hovering either brings it forward. */
@media(min-width:761px){
  .devices[data-route=phone]{
    --reveal:clamp(74px,11.5cqw,106px);
    --host-width:min(calc(100cqw - var(--phone-width) + var(--reveal)),clamp(370px,43vw,604px));
    --pair-left:calc((100cqw - var(--host-width) - var(--phone-width) + var(--reveal))/2);
  }
  .devices[data-route=phone] .hero-mac{
    left:var(--pair-left);right:auto;top:48%;
    width:var(--host-width);transform:translateY(-50%);
  }
  .devices[data-route=phone] .hero-phone{
    left:calc(var(--pair-left) + var(--host-width) - var(--reveal));right:auto;top:50%;
  }
  .devices[data-route=phone] .device-focus{left:var(--pair-left,0px);right:auto;bottom:3.5%}
  .devices[data-route=phone].phone-large .device-focus{left:auto;right:0;bottom:2%}
}
@media(max-width:760px){
  .devices[data-route=phone]:not(.phone-large){height:clamp(566px,165vw,698px)}
  .devices[data-route=phone]:not(.phone-large) .hero-mac{left:0;right:auto;top:20px;width:min(79%,420px);transform:none}
  .devices[data-route=phone]:not(.phone-large) .hero-phone{left:auto;right:0;top:clamp(73px,20vw,95px);transform:none}
  .devices[data-route=phone]:not(.phone-large) .device-focus{right:auto;left:0;bottom:8%}
  .devices[data-route=phone].phone-large .hero-phone{left:50%;right:auto;top:50%;transform:translate(-50%,-50%)}
}
@media(max-width:760px){
  .hero-grid{padding-top:26px;gap:7px}
  .intro-lead{line-height:1.55}
  .devices[data-route=phone]:not(.phone-large){height:clamp(525px,154vw,675px)}
  .devices[data-route=phone]:not(.phone-large) .hero-mac{top:11px}
  .devices[data-route=phone]:not(.phone-large) .hero-phone{top:clamp(45px,13.2vw,72px)}
}
.mac-native button.host-zoom{width:1.521cqw;height:1.521cqw;border-radius:50%;background:#62c355;box-shadow:inset 0 0 0 .5px #0002;position:relative}
.mac-native button.host-zoom:before{content:"";position:absolute;inset:-.6cqw}
.mac-native button.host-zoom:hover{background:#79cd70}
.devices.host-focus .hero-phone,.devices.host-focus .hero-peer{visibility:hidden;pointer-events:none}
.devices.host-focus .hero-mac,.devices[data-route=phone].host-focus:not(.phone-large) .hero-mac{left:50%;right:auto;top:50%;width:min(100%,650px);transform:translate(-50%,-50%);z-index:4}
.devices.host-focus .device-focus{display:grid;left:auto;right:0}

@media(min-width:761px){
  .devices[data-route=phone]:not(.phone-large):not(.host-focus){min-height:calc(var(--phone-height,620px) + 6px)}
}
@media(pointer:coarse){.mac-native button.host-zoom::before{inset:-9px}}

/* One continuous highlight behind both route labels. */
.route-tabs{position:relative;isolation:isolate}
.route-tabs .route-thumb{display:none}
.route-tabs[data-enhanced] .route-thumb{display:block;position:absolute;z-index:2;pointer-events:none;inset:4px auto 4px 0;width:var(--route-w);transform:translateX(var(--route-x));border-radius:100px;background:#e9edf1;overflow:hidden;box-shadow:0 1px 3px #080e1633;transition:transform .3s cubic-bezier(.22,.78,.22,1),width .3s cubic-bezier(.22,.78,.22,1)}
.route-ink{display:block;width:100vw;height:100%;transform:translateX(calc(-1 * var(--route-x)));transition:transform .3s cubic-bezier(.22,.78,.22,1)}
.route-ink>span{position:absolute;inset-block:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;color:#17212d}
.route-tabs[data-enhanced] button,.route-tabs[data-enhanced] button[aria-pressed=true]{z-index:1;background:transparent;color:#b0bac7;box-shadow:none}
.route-tabs:has(button:focus-visible){outline:2px solid #9abde3;outline-offset:3px}
.devices .hero-mac,.devices .hero-phone,.devices .hero-peer{transform-origin:top left}
.devices[data-route] .hero-phone[data-retiring],.devices[data-route] .hero-peer[data-retiring]{display:block!important;position:absolute!important;pointer-events:none!important;inset:auto!important;left:var(--old-left)!important;top:var(--old-top)!important;width:var(--old-width)!important;height:var(--old-height)!important;transform:none!important;visibility:visible!important;z-index:2}
@media(prefers-reduced-motion:reduce){.route-tabs[data-enhanced] .route-thumb,.route-ink{transition:none}}

@media(prefers-reduced-motion:reduce){
  #devices,#devices .hero-phone,#devices .hero-mac,#devices .hero-peer,.route-tabs[data-enhanced] .route-thumb,.route-ink{transition:none!important;animation:none!important}
}

/* The copy and segmented control keep their baseline while the devices exchange places. */
@media(min-width:761px){.devices[data-route=mac]:not(.host-focus){min-height:var(--route-stage-height,0px)}}
