/* AirLoop: preserve the original cinematic map, material, palette and type. */
[hidden]{display:none!important}
.city-control{display:flex;align-items:center;gap:14px;background:var(--sky);border:1px solid var(--line);border-radius:10px;padding:9px 14px;margin-bottom:7px}
.city-control label{font:12px var(--mono);color:var(--amber)}
.city-control select{flex:1;min-width:0;border:0;background:var(--sky);color:var(--ink);font:14px var(--body);padding:3px;cursor:pointer}
.traffic-steps{list-style:none;padding:0;margin:24px 0;display:grid;gap:0;counter-reset:none}
.traffic-steps li{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;padding:14px 0;border-top:1px solid var(--line);align-items:start}
.traffic-steps li:last-child{border-bottom:1px solid var(--line)}
.traffic-steps b{font:12px/1.6 var(--mono);color:var(--faint);white-space:nowrap}
.traffic-steps span{font:16px/1.5 var(--body);color:var(--dim)}
.traffic-steps li.active b{color:var(--amber)}
.traffic-steps li.active span{color:var(--ink)}
.scene-replay{background:none;border:1px solid var(--line);border-radius:5px;color:var(--amber);font:13px var(--mono);padding:10px 13px;cursor:pointer;margin-top:12px}
.scene-replay:hover{background:rgba(var(--amber-rgb),.08)}
.network-readout{position:fixed;z-index:21;top:104px;right:24px;max-width:calc(44vw - 30px);background:rgba(var(--sky-rgb),.94);border:1px solid var(--line);border-radius:10px;padding:15px 18px;font:12px/1.6 var(--mono);pointer-events:none}
.network-readout .network-kicker{display:block;color:var(--amber);letter-spacing:.08em}
.network-readout strong{display:block;font-size:13px;font-weight:400;color:var(--ink);margin:5px 0}
.network-readout small{display:block;font-size:12px;color:var(--dim)}
@media(max-width:900px){
 .city-control{padding:7px 12px;margin-bottom:5px}
 .city-control label{font-size:11px}
 .city-control select{font-size:14px}
 .network-readout{top:109px;right:16px;max-width:calc(100vw - 32px);padding:8px 12px}
 .network-readout .network-kicker,.network-readout small{display:none}
 .network-readout strong{margin:0;font-size:12px}
 .traffic-steps li{grid-template-columns:95px minmax(0,1fr);gap:10px}
 section.scene-section{height:100svh;min-height:100svh;padding:12svh 14px!important;align-items:center!important;scroll-snap-align:center}
 section.scene-section .card{max-height:76svh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 section,section.short{padding-bottom:205px!important}
 .corridor-switcher #routeRange{font-size:10px}
 #routeOptions{max-height:43vh!important}
}
html{scroll-behavior:smooth;scroll-snap-type:y proximity}
body{font-size:16px}
.brand{text-decoration:none;font-size:12px}
.hud .unit-toggle{border:1px solid rgba(var(--amber-rgb),.55);background:rgba(var(--amber-rgb),.08);border-radius:4px;color:var(--amber);font:10px var(--mono);letter-spacing:.05em;padding:2px 6px;margin:-3px -5px -3px 0;cursor:pointer;min-width:42px}
.hud .unit-toggle:hover{background:rgba(var(--amber-rgb),.18)}
.hud .unit-toggle:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
.simulation-label{position:fixed;top:64px;right:21px;z-index:20;font:11px var(--mono);letter-spacing:.09em;color:var(--amber)}
.hud{font-size:11px}
.eyebrow{font-size:12px;letter-spacing:.16em}
.card{max-width:34rem}
.card p{font-size:16px;line-height:1.6}
.card p.fine{font-size:12px;line-height:1.6;color:var(--faint);margin-top:16px}
.status{font-size:12px;line-height:1.9;letter-spacing:.1em}
.cue{font-size:12px;letter-spacing:.18em}
.tag{font-size:11px;letter-spacing:.07em;vertical-align:baseline;white-space:normal}
a.tag.src{display:inline-block;margin:8px 4px 0 0;line-height:1.6}
.card p.thesis{font-size:17px;line-height:1.5}
.card.pane{max-width:34rem}
section.hero{padding-bottom:10vh}
h1{font-size:clamp(2.7rem,5.2vw,4.8rem);max-width:14ch}
h2{font-size:clamp(1.8rem,3.1vw,2.5rem)}
.hero-actions{margin-top:24px}
.actions .btn{font-size:14px}
.text-link{font:14px var(--body);color:var(--dim);text-decoration:none;border:0;background:none;cursor:pointer;padding:8px 0}
.text-link:hover{color:var(--amber)}
.back-start{display:inline-block;margin-top:20px}
.spec-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;margin:25px 0}
.spec-grid>div{border-top:1px solid var(--line);padding-top:15px}
.spec-grid b{font:500 2.5rem var(--disp);letter-spacing:-.03em;color:var(--ink);display:block}
.spec-grid b>span{font:13px var(--mono);color:var(--amber);margin-left:6px;letter-spacing:0}
.spec-grid small{display:block;font:12px/1.7 var(--mono);color:var(--faint);margin-top:5px}
.spec-full{grid-column:1/-1}
ol.turn li{font-size:16px;line-height:1.55}
ol.turn li::before{font-size:11px}
.flow{font-size:14px;line-height:1.9}
.vs .v b{font-size:12px;letter-spacing:.04em}
.vs .v>span{font-size:1.7rem}
.vs .v em{font-size:12px;line-height:1.6;letter-spacing:0}
.uc .u b{font-size:12px;letter-spacing:.07em}
.uc .u span{font-size:14px;line-height:1.5}
.inst .i b{font-size:16px}
.inst .i span{font-size:13px;letter-spacing:0;line-height:1.6}
.system-list{margin:24px 0}
.system-list>div{padding:13px 0;border-top:1px solid var(--line)}
.system-list b{display:block;font:12px var(--mono);color:var(--amber);margin-bottom:6px}
.system-list span{font-size:16px;color:var(--dim)}
.evidence-list>div{padding:16px 0;border-top:1px solid var(--line)}
.evidence-list b{font:12px var(--mono);letter-spacing:.08em;color:var(--amber)}
.evidence-list p{margin:7px 0 0}
.evidence-list .tag.src{margin-top:6px}
.milestones{margin:22px 0}
.milestones span{display:flex;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:15px;color:var(--ink)}
.milestones i{font:12px var(--mono);font-style:normal;color:var(--amber)}
.editorial-note{border-left:2px solid var(--line);padding-left:12px}
.corridor-switcher{position:fixed;right:24px;bottom:24px;z-index:30;width:min(360px,calc(100vw - 32px));font-family:var(--mono);filter:drop-shadow(0 8px 22px rgba(0,0,0,.35))}
.corridor-switcher[hidden]{display:none!important}
.corridor-switcher details{background:rgba(var(--sky-rgb),.94);border:1px solid rgba(var(--rule-rgb),.3);border-radius:12px;backdrop-filter:blur(20px)}
.corridor-switcher summary{list-style:none;padding:15px 18px;cursor:pointer}
.corridor-switcher summary::-webkit-details-marker{display:none}
.switch-label{display:flex;justify-content:space-between;color:var(--amber);font-size:11px;letter-spacing:.08em}
.corridor-switcher summary>b{display:block;font:500 16px var(--body);color:var(--ink);margin-top:8px}
#routeCategory{display:block;font-size:11px;color:var(--faint);margin-top:4px}
#routeRange{display:block;font-size:11px;line-height:1.6;color:var(--dim);margin-top:5px}
.route-group-label{font:12px/1.5 var(--mono);letter-spacing:.04em;color:var(--amber);padding:12px 12px 4px;margin:0;border-top:1px solid var(--line)}
.route-group-label:first-child{border-top:0}
#routeOptions{border-top:1px solid var(--line);max-height:min(55vh,430px);overflow:auto;padding:5px}
#routeOptions button{width:100%;display:grid;grid-template-columns:1fr auto;text-align:left;color:var(--dim);background:none;border:0;border-radius:7px;padding:13px 12px;cursor:pointer;gap:5px 8px}
#routeOptions button:hover{background:rgba(255,255,255,.055)}
#routeOptions button[aria-pressed=true]{background:rgba(var(--amber-rgb),.1);color:var(--ink)}
#routeOptions button b{font:500 14px var(--body)}
#routeOptions button small{font:11px var(--mono);color:var(--faint)}
#routeOptions button .route-km{font:12px var(--mono);color:var(--amber);grid-column:2;grid-row:1/3;align-self:center}
.map-tools{display:flex;justify-content:space-between;padding:9px 3px 0}
.map-tools button{background:rgba(var(--sky-rgb),.7);color:var(--dim);border:0;border-radius:4px;font:11px var(--mono);padding:4px;cursor:pointer}
.map-tools button:hover{color:var(--amber)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--amber);outline-offset:5px}
dialog{background:var(--sky);color:var(--ink);border:1px solid var(--line);border-radius:16px;width:min(740px,calc(100vw - 32px));max-height:85dvh;padding:0;margin:auto;box-shadow:0 30px 100px #0009}
dialog::backdrop{background:rgba(4,8,14,.8);backdrop-filter:blur(7px)}
.dialog-head{padding:28px 30px 20px;display:flex;align-items:flex-start;gap:20px;border-bottom:1px solid var(--line)}
.dialog-head h2{font-size:28px;line-height:1.2;margin:0}
.dialog-head button{border:1px solid var(--line);background:none;border-radius:50%;color:var(--dim);width:36px;height:36px;font-size:25px;line-height:1;flex:none;cursor:pointer}
.dialog-body{padding:24px 30px;overflow:auto}
.dialog-body>p{font-size:16px}
.copyright{font-size:11px;color:var(--faint);text-align:center;padding:8px 20px 24px}
.copyright a{color:inherit;text-underline-offset:3px}
footer{position:relative;z-index:15;padding:8px 30px 24px;font-size:12px;line-height:1.6}
body.nomap #poster{display:none}
body.nomap::before{content:"MAP UNAVAILABLE · ALL CORRIDOR DETAILS REMAIN BELOW";position:fixed;right:20px;top:92px;font:11px var(--mono);color:var(--faint)}
@media(min-width:901px){section{padding-right:420px}.hud{max-width:calc(100vw - 330px)}.hero .card{max-width:40rem}.scene-section .card{max-height:calc(100svh - 120px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}}
@media(max-width:1100px) and (min-width:901px){.hud .hidem2{display:none}.card.pane{max-width:31rem}.corridor-switcher{width:320px}}
@media(max-width:900px){
  .brand{font-size:11px;left:16px;top:18px}
  .hud{top:51px;right:16px;font-size:10px;gap:10px;max-width:calc(100vw - 32px)}
  .hud .unit-toggle{font-size:10px;padding:3px 5px}
  .hud .hidem,.hud .hidem2,.hud #hWndW{display:none}
  .simulation-label{top:90px;right:16px;font-size:10px}
  .simulation-label span{display:none}
  .corridor-switcher{right:16px;bottom:12px;width:calc(100vw - 32px)}
  .corridor-switcher summary{padding:10px 14px}
  .switch-label{font-size:10px}
  .corridor-switcher summary>b{font-size:14px;margin-top:4px}
  #routeCategory{display:none}
  .map-tools{padding-top:5px}
  .map-tools button{font-size:10px;min-height:26px}
  section,section.short{padding:32svh 16px 140px;min-height:100svh;align-items:flex-end;scroll-margin-top:0}
  section.hero{padding:29svh 22px 155px}
  .card,.card.pane{max-width:none;width:100%}
  .card.pane{padding:23px 22px}
  h1{font-size:clamp(2.6rem,8.5vw,3.8rem);line-height:1.07;max-width:14ch}
  h2,.dense h2{font-size:1.85rem;line-height:1.12}
  .card p,.dense .card p{font-size:16px;line-height:1.6}
  .card p.fine{font-size:12px;line-height:1.6}
  .eyebrow{font-size:11px;line-height:1.7;letter-spacing:.1em}
  .status{font-size:11px}
  .cue{display:none}
  .hero-actions{gap:15px;align-items:center}
  .hero-actions .btn{font-size:13px}
  .text-link{font-size:14px}
  .spec-grid{gap:18px}.spec-grid b{font-size:2rem}
  .uc{grid-template-columns:1fr 1fr;gap:10px}
  .uc .u{padding:12px}.uc .u span{font-size:14px}.uc .u b{font-size:11px}
  .flow{font-size:12px}
  .vs .v{padding:12px}
  .vs .v b{font-size:10px}
  .vs .v>span{font-size:1.4rem}
  .vs .v em{font-size:11px}
  .inst{grid-template-columns:1fr 1fr}.inst .i span{font-size:12px;letter-spacing:0}
  .dialog-head{padding:22px 20px}.dialog-head h2{font-size:24px}
  .dialog-body{padding:20px}
  footer{padding:12px 22px 22px}
}
@media(max-width:380px){.brand{font-size:10px;letter-spacing:.1em}.card.pane{padding:22px 18px}.uc,.inst{grid-template-columns:1fr}.spec-grid{grid-template-columns:1fr}.spec-full{grid-column:auto}h1{font-size:2.65rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card{filter:none}.cue::after{animation:none}}

/* Temporary in-page editor for the founder's motion and camera review. */
.tune-open,.tune-panel{font-family:var(--mono);z-index:70}
.tune-open{position:fixed;top:92px;right:22px;border:1px solid rgba(var(--amber-rgb),.55);border-radius:5px;background:rgba(var(--sky-rgb),.94);color:var(--amber2);padding:9px 12px;font-size:10px;letter-spacing:.08em;cursor:pointer;backdrop-filter:blur(12px)}
.scene-quick-controls{position:fixed;z-index:69;top:92px;left:20px;width:min(270px,calc(100vw - 32px));padding:11px 13px;background:rgba(var(--card-rgb),.93);border:1px solid rgba(var(--rule-rgb),.3);border-radius:9px;box-shadow:0 12px 38px #0007;color:var(--ink);font:10px var(--mono);backdrop-filter:blur(13px)}
.scene-quick-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.scene-quick-head b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--amber2);font-size:9px;letter-spacing:.04em}
.scene-quick-head button,.quick-parameters{flex:none;border:1px solid rgba(var(--amber-rgb),.42);border-radius:4px;background:#111a2a;color:var(--amber2);padding:6px 8px;font:10px var(--mono);cursor:pointer}.scene-quick-head button:hover,.quick-parameters:hover{background:rgba(var(--amber-rgb),.15)}
.quick-time-label{display:flex;justify-content:space-between;align-items:center;margin-top:8px;color:var(--faint);font-size:9px}.quick-time-label output{color:var(--amber2)}
#quickDuration{display:block;width:100%;height:14px;margin:3px 0 7px;accent-color:var(--amber);cursor:pointer}#quickDuration:disabled{opacity:.35;cursor:default}
.quick-parameters{width:100%;text-align:left;font-size:9px;letter-spacing:.04em}
.tune-open:hover,.tune-actions button:hover{background:rgba(var(--amber-rgb),.16)}
.tune-panel{position:fixed;top:132px;right:22px;width:min(390px,calc(100vw - 28px));max-height:calc(100vh - 154px);overflow:auto;padding:16px;background:rgba(var(--card-rgb),.97);border:1px solid rgba(var(--rule-rgb),.32);border-radius:12px;box-shadow:0 20px 60px rgba(0,0,0,.55);color:var(--ink);font-size:11px;backdrop-filter:blur(16px)}
.tune-panel[hidden]{display:none!important}
.tune-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(var(--rule-rgb),.18);padding-bottom:10px}
.tune-head .eyebrow{font-size:9px;letter-spacing:.13em;color:var(--amber2)}.tune-head h2{font:600 20px/1.2 var(--body);margin:5px 0 0}
.tune-head button{border:0;background:none;color:var(--dim);font-size:24px;cursor:pointer;padding:0 5px}
.tune-note{font:11px/1.5 var(--body);color:var(--faint);margin:10px 0}
.tune-scene{display:flex;align-items:center;justify-content:space-between;color:var(--amber2);font-size:10px;letter-spacing:.08em;margin:10px 0 12px}
.tune-scene select{max-width:72%;background:#111a2a;border:1px solid rgba(var(--rule-rgb),.32);border-radius:5px;color:var(--ink);padding:7px;font:11px var(--mono)}
.tune-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tune-row{display:block;min-width:0;padding:8px;border:1px solid rgba(var(--rule-rgb),.16);border-radius:6px;background:rgba(255,255,255,.025)}
.tune-row-head{display:flex;align-items:flex-start;justify-content:space-between;gap:5px;min-height:29px;color:var(--dim);font-size:9px;line-height:1.35}
.tune-row-head output{flex:none;color:var(--amber2);font-size:9px;white-space:nowrap}
.tune-row input{width:100%;height:15px;margin:5px 0 0;accent-color:var(--amber);cursor:pointer}
.tune-points{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tune-point-group{padding:8px;border:1px solid rgba(var(--rule-rgb),.16);border-radius:6px;background:rgba(255,255,255,.025)}
.tune-point-group>b{display:block;color:var(--amber2);font-size:9px;letter-spacing:.08em;margin-bottom:6px}
.tune-coordinate{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:5px;color:var(--dim);font-size:9px}
.tune-coordinate input{width:105px;max-width:60%;background:#111a2a;border:1px solid rgba(var(--rule-rgb),.28);border-radius:3px;color:var(--ink);padding:5px;font:10px var(--mono)}
.tune-global-label{font-size:9px;letter-spacing:.13em;color:var(--dim);margin:14px 0 7px}
.tune-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.tune-actions button{border:1px solid rgba(var(--amber-rgb),.4);border-radius:4px;background:#111a2a;color:var(--amber2);padding:8px;font:10px var(--mono);cursor:pointer}
.tune-actions #tunePreview{flex:1}
.tune-status{margin-top:9px;color:var(--faint);font-size:9px;line-height:1.4}
.tune-export{display:block;width:100%;height:180px;margin-top:9px;padding:9px;border:1px solid rgba(var(--rule-rgb),.24);border-radius:5px;background:var(--card);color:var(--dim);font:10px/1.45 var(--mono);resize:vertical}.tune-export[hidden]{display:none!important}
@media(max-width:700px){.scene-quick-controls{top:83px;left:10px;width:min(245px,calc(100vw - 20px));padding:9px 10px}.tune-open{top:83px;right:12px;padding:7px 9px;font-size:9px}.tune-panel{top:119px;right:10px;max-height:calc(100vh - 132px);padding:12px}.tune-controls{gap:6px}.tune-row{padding:7px}.tune-row-head{font-size:8px}}
/* iPhone portrait: keep a clean, visible flight window above readable copy.
   Tall copy panels scroll internally so no text is clipped and the scene
   remains visible; opaque surfaces also reduce GPU cost from live blur. */
@media(max-width:430px) and (orientation:portrait){
  section:not(.hero){padding:24svh 12px calc(82px + env(safe-area-inset-bottom,0px))!important;}
  .card.pane{width:100%;max-height:68svh;overflow-y:auto;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;padding:18px 16px;}
  .card p,.dense .card p{font-size:15px;line-height:1.55;}
  .card p.fine{font-size:12px;line-height:1.5;}
  .card.pane h2{font-size:clamp(22px,6.2vw,27px);line-height:1.13;}
  .card.pane .tag{font-size:10px;letter-spacing:.04em;}
}
@media(max-width:430px) and (max-height:740px) and (orientation:portrait){
  section:not(.hero){padding-top:17svh!important;}
  .card.pane{max-height:73svh;padding:14px 14px;}
  .card p,.dense .card p{font-size:14px;line-height:1.48;}
  .card p.fine{font-size:11.5px;}
}

/* ===== Phones (portrait): the flight owns the top half of every page =====
   The copy sits in a compact sheet on the lower half (max ~48% of the screen,
   scrolls inside itself when longer); the map focus band is the upper half. */
@media (max-width:900px) and (orientation:portrait){
  html{scroll-snap-type:y mandatory}
  section,section.short,section:not(.hero){padding:52svh 10px calc(10px + env(safe-area-inset-bottom,0px))!important;min-height:100svh;align-items:flex-end}
  section.hero{padding:50svh 16px calc(14px + env(safe-area-inset-bottom,0px))!important}
  .card,.card.pane{width:100%;max-width:none;max-height:calc(48svh - 14px - env(safe-area-inset-bottom,0px));overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:auto;scrollbar-width:thin}
  /* Same card look as desktop: radius, opacity, blur and style come from the editor's Look settings. */
  .card.pane{padding:13px 14px 12px!important}
  .card .eyebrow{font-size:9px!important;letter-spacing:.2em;margin-bottom:7px}
  .card.pane h2,.dense .card.pane h2,section.short .card h2{font-size:clamp(17px,4.8vw,20px)!important;line-height:1.16!important;margin-bottom:8px!important;letter-spacing:-.012em}
  .card p,.dense .card p,.card li,.card td,.card .step,.card .flow{font-size:12.5px!important;line-height:1.45!important}
  .card p{margin-bottom:7px}
  .card p.fine{font-size:10.5px!important;line-height:1.4!important}
  .card .thesis{font-size:13px!important}
  .card .tag{font-size:8.5px!important;padding:1px 5px}
  .card ol,.card ul,.traffic-steps{margin-top:6px;margin-bottom:8px}
  .card .traffic-steps li{padding:6px 0!important}
  .card .uc .u,.card .inst .i,.card .figs .fig,.card .vs .v{padding:7px 9px!important}
  .card .uc .u b,.card .inst .i span,.card .figs .fig b,.card .figs .fig em,.card .vs .v b,.card .vs .v em{font-size:8.5px!important}
  .card .inst .i b,.card .figs .fig span{font-size:13px!important}
  section.scene-section{height:auto;min-height:100svh;align-items:flex-end!important;scroll-snap-align:start}
  section.scene-section .card,.scene-section .card{max-height:calc(48svh - 14px - env(safe-area-inset-bottom,0px));overscroll-behavior:auto}
  /* Every text element inside a page sheet shares one compact size. */
  .card.pane :is(span,li,div,td,th,b,em,strong,a,label,small):not(h1 *,h2 *){font-size:12.5px;line-height:1.42}
  .card.pane :is(.traffic-steps li b,.flow .k,.uc .u b,.gap .note,.gaphead,.reg .date,.chips){font-size:9px!important;letter-spacing:.12em}
  .card.pane .traffic-steps li{grid-template-columns:86px 1fr;gap:8px}
  /* Opening: same rule — headline and actions on the lower half. */
  .hero .card{max-height:none;overflow:visible}
  .hero h1{font-size:clamp(26px,7.6vw,32px)!important;line-height:1.06!important;margin-bottom:8px}
  .hero .sub{font-size:14px!important;margin-bottom:6px}
  .hero p{font-size:12.5px!important;line-height:1.45!important}
  .hero .status{margin-top:8px;font-size:9px!important}
  .hero .actions{margin-top:12px}
  .hero .btn{font-size:14px;padding:11px 18px}
  .hero .cue{margin-top:12px}
  .btn{font-size:14px;padding:11px 18px}
  /* Lighter compositing while the map animates. */
  .hud,.corridor-switcher,.scene-quick-controls{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
/* Short phone screens (in-app browsers such as X) keep the same content as Safari;
   only the scroll cue is dropped. */
@media (max-width:900px) and (orientation:portrait) and (max-height:700px){
  .hero .cue{display:none}
}

/* ===== Phones: one idea per page =====
   Each page shows its label, headline and a one-line summary (.m-sum); the
   full detail stays on larger screens. */
.m-sum{display:none}
@media (max-width:900px) and (orientation:portrait){
  .card.pane > :not(.eyebrow):not(h2):not(.m-sum):not(.m-stats):not(.m-note):not(.scene-progress){display:none!important}
  #contact .card.pane > .actions{display:flex!important;margin-top:12px}
  .card.pane .m-sum{display:block;font-size:12.5px;line-height:1.45;color:var(--dim)}
  .card.pane{padding:12px 14px 13px!important;overflow:visible;max-height:none}
  .card.pane h2,.dense .card.pane h2{font-size:clamp(16px,4.4vw,18px)!important;line-height:1.18!important;margin-bottom:6px!important}
  .card .eyebrow{margin-bottom:6px}
  section,section.short,section:not(.hero),section.scene-section{padding-top:60svh!important}
  /* One bottom gap for every phone browser (Safari, Instagram, X): at least 22px,
     or the home-indicator area when the browser reports one. */
  section,section.short,section:not(.hero),section.scene-section,section.hero{padding-bottom:max(22px,env(safe-area-inset-bottom,0px))!important}
  /* Brand and HUD share the top row. */
  .brand{top:calc(env(safe-area-inset-top,0px) + 20px)!important;left:16px!important;letter-spacing:.16em}
  .hud > span:nth-child(4){display:none!important}
  .hud{top:calc(env(safe-area-inset-top,0px) + 12px)!important;right:12px!important;font-size:9.5px!important;gap:8px!important;padding:6px 9px!important}
  /* The map credit moves into the last page on phones (see .map-credit). */
  .maplibregl-ctrl-attrib{display:none!important}
  #contact .card.pane > .map-credit{display:block!important}
  .hero p.sub.mt-8,.hero .cue{display:none!important}
  .hero h1{font-size:clamp(24px,7vw,30px)!important}
  section.short .card h2{font-size:clamp(17px,4.8vw,20px)!important}
}

/* Even vertical rhythm on the opening and closing cards (desktop/tablet). */
@media (min-width:761px){
  .hero .card h1{margin-bottom:0}
  .hero p.sub.sub-lead{margin-top:26px;margin-bottom:0}
  .hero p.sub.mt-8{margin-top:10px;margin-bottom:0}
  .hero .status{margin-top:26px}
  .hero .actions{margin-top:26px}
  .hero .cue{margin-top:30px}
  #contact .card .eyebrow{margin-bottom:16px}
  #contact .card h2{margin-bottom:0}
  #contact .card p.sub{margin-top:18px;margin-bottom:0;color:var(--dim)}
  #contact .card .actions{margin-top:28px}
  #contact .card p.fine{margin-top:28px;margin-bottom:0;max-width:34rem}
  #contact .back-start{margin-top:14px}
}
@media (max-width:760px){.hero-specs-label{margin-top:14px;font-size:9px}.hero-specs{margin-top:8px}.hero-specs{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:14px;width:100%}.hero-specs>div{padding:0}.hero-specs b{font-size:17px}.hero-specs span{font-size:10.5px!important;margin-top:2px}}

/* The HUD already marks this as a simulation. */
.simulation-label{display:none!important}

.map-credit{display:none}
#contact .card .map-credit{margin:10px 0 0;font-size:9.5px!important;line-height:1.4;color:var(--faint);opacity:.7}
.map-credit a{color:inherit;font-size:inherit!important;text-decoration:none}

/* The unit button follows the HUD corner (concentric with the Look radius). */
.hud .unit-toggle{border-radius:max(4px,calc(var(--card-radius,10px) - 6px))!important}

/* Phones: the aircraft page adds its design targets under the one-line summary. */
.m-spec{display:block;margin-top:6px;font-family:var(--mono);font-size:10px!important;letter-spacing:.06em;color:var(--amber)}


/* One public corridor for now: the city and route pickers are hidden (routes stay available in the editor). */
.corridor-switcher .city-control,.corridor-switcher #routePicker{display:none!important}
.corridor-switcher{width:auto!important}

/* Phone stat rows: the same big-number style as the opening design targets. */
.m-stats{display:none}
@media (max-width:760px) and (orientation:portrait){
  .card.pane > .m-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:14px;margin-top:12px}
  .card.pane > .m-stats.four{grid-template-columns:repeat(4,auto)}
  .card.pane > .m-stats > div{padding:0!important;border-left:0;min-width:0}
  .card.pane > .m-stats > div:first-child{padding-left:0;border-left:0}
  .card.pane > .m-stats b{display:block;color:var(--ink);font-weight:600;font-size:17px!important;line-height:1.15;letter-spacing:-.01em;white-space:nowrap}
  .card.pane > .m-stats span{display:block;margin-top:3px;font-size:10.5px!important;line-height:1.3;color:var(--dim);white-space:nowrap}
  .card.pane > .m-stats.four{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:10px}
  .card.pane > .m-stats.four b{font-size:15px!important}
  .card.pane > .m-stats.four > div:first-child{padding-left:0}
  .card.pane > .m-stats b,.card.pane > .m-stats span{font-family:var(--body)!important;letter-spacing:normal!important;text-transform:none!important}
  .card.pane > .m-stats b{letter-spacing:-.01em!important}
}

/* Phones: one small honesty/detail line under the summary where it matters. */
.m-note{display:none}
@media (max-width:760px) and (orientation:portrait){
  .card.pane > .m-note{display:block!important;margin-top:10px;font-size:10.5px!important;line-height:1.4;color:var(--faint);opacity:.8}
  .card.pane > .m-note b{font-family:var(--mono);font-weight:400;font-size:9px!important;letter-spacing:.14em;color:var(--amber);margin-right:6px}
}

/* =====================================================================
   TYPE SCALE — the only text sizes on the page. Every role maps to one
   token; nothing else sets a size after this block.
     display  opening headline        desktop clamp(44–60)   phone 30
     h2       page headline           40                     20
     stat     big numbers             30                     16
     lead     summary line            18                     14
     body     paragraphs, lists       16                     13
     small    steps, links, buttons   14                     13
     label    stat / spec labels      13                     11
     micro    eyebrows, tags, notes   12                     10
   ===================================================================== */
:root{--fs-display:clamp(44px,4.4vw,60px);--fs-h2:40px;--fs-stat:30px;--fs-lead:18px;--fs-body:16px;--fs-small:14px;--fs-label:13px;--fs-micro:12px}
@media (max-width:760px){:root{--fs-display:30px;--fs-h2:20px;--fs-stat:16px;--fs-lead:14px;--fs-body:13px;--fs-small:13px;--fs-label:11px;--fs-micro:10px}}
main .card:not(#_) h1{font-size:calc(var(--fs-display) * var(--ts-h,1))!important}
main .card:not(#_) h2,main .card:not(#_) h2 .lead{font-size:calc(var(--fs-h2) * var(--ts-h,1))!important}
main .card:not(#_) .hero-specs b,main .card:not(#_) .m-stats b,main .card:not(#_) .spec-grid b{font-size:calc(var(--fs-stat) * var(--ts-n,1))!important}
main .card:not(#_) .spec-grid b span{font-size:calc(var(--fs-label) * var(--ts-lab,1))!important}
main .card:not(#_) p.sub-lead,main .card:not(#_) .m-sum{font-size:calc(var(--fs-lead) * var(--ts-l,1))!important}
main .card:not(#_) p,main .card:not(#_) li,main .card:not(#_) .thesis,main .card:not(#_) .milestones span{font-size:calc(var(--fs-body) * var(--ts-b,1))!important}
main .card:not(#_) .flow .step,main .card:not(#_) .flow .step span,main .card:not(#_) .uc .u span,main .card:not(#_) .turn li b,main .card:not(#_) .text-link,main .card:not(#_) .btn{font-size:calc(var(--fs-small) * var(--ts-b,1))!important}
main .card:not(#_) .hero-specs span,main .card:not(#_) .m-stats span,main .card:not(#_) .spec-grid small,main .card:not(#_) .uc .u b{font-size:calc(var(--fs-label) * var(--ts-lab,1))!important}
main .card:not(#_) .eyebrow,main .card:not(#_) .hero-specs-label,main .card:not(#_) .fine,main .card:not(#_) .fine *,main .card:not(#_) .tag,main .card:not(#_) .cue,main .card:not(#_) .map-credit,main .card:not(#_) .map-credit a{font-size:var(--fs-micro)!important}

/* Phones: the map is sized to the LARGE viewport so it never resizes when the
   Safari toolbar collapses on the first swipe (that resize nudged the camera). */
@media (max-width:900px){#map,#overlay{bottom:auto!important;height:100vh!important;height:100lvh!important}}

.tune-sub{grid-column:1/-1;margin:10px 0 2px;font:10px var(--mono);letter-spacing:.14em;color:var(--amber2)}

/* Scene jump (skip ahead / jump back): a soft veil fades out while the map
   settles from a slight zoom, like an iPhone app opening. Transform/opacity only. */
#jumpVeil{position:fixed;inset:0;z-index:5;pointer-events:none;opacity:0;
  background:radial-gradient(120% 90% at 50% 45%,rgba(var(--sky-rgb),.55),rgba(var(--sky-rgb),.92))}
#jumpVeil.go{animation:jumpVeil 600ms cubic-bezier(.32,.72,0,1) both}
#map.jump-in,#overlay.jump-in{animation:jumpZoom 600ms cubic-bezier(.32,.72,0,1) both;will-change:transform}
@keyframes jumpVeil{0%{opacity:1}100%{opacity:0}}
@keyframes jumpZoom{0%{transform:scale(1.045)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){#jumpVeil.go,#map.jump-in,#overlay.jump-in{animation:none}}

/* Licence credit (OpenStreetMap ODbL requires it): as small and quiet as legibility allows. */
main #contact .card:not(#_) .map-credit,main #contact .card:not(#_) .map-credit a{font-size:8px!important;letter-spacing:.02em;opacity:.38;margin-top:8px}

/* Phones: no label above the opening numbers. */
@media (max-width:760px) and (orientation:portrait){#top .hero-specs-label{display:none!important}#top .hero-specs{margin-top:14px}}
/* Opening line: what we carry is the emphasis; the rest steps back. */
#top .sub-lead{color:var(--dim)}
#top .sub-lead strong{color:var(--amber);font-weight:650}

/* Pages follow the measured visible height when a browser's svh is too small (see fitAppHeight). */
@media (max-width:900px) and (orientation:portrait){section,section.short,section.hero,section.scene-section,section:not(.hero){min-height:var(--app-h,100svh)!important}section.scene-section{height:auto!important}}

/* Desktop hero: only the two copy lines sit in a small glass box, so map
   labels stay behind them. Heading and button stay open. Phone unchanged. */
@media not all and (max-width:760px) and (orientation:portrait){
  #top .hero-copy{display:inline-block;box-sizing:border-box;max-width:var(--hb-w,576px);margin-top:var(--hb-gap,18px);padding:var(--hb-py,16px) var(--hb-px,20px);
    background:var(--hb-bg,var(--panel));border:1px solid var(--line);border-top-color:rgba(var(--rule-rgb),.30);
    border-radius:var(--hb-r,16px);
    -webkit-backdrop-filter:blur(var(--hb-blur,6px)) saturate(165%);backdrop-filter:blur(var(--hb-blur,6px)) saturate(165%);
    box-shadow:0 12px 32px -12px rgba(0,0,0,.5)}
  body.hero-box-off #top .hero-copy{display:block;padding:0;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:0}
  #top .hero-copy > p:first-child{margin-top:0}
  #top .hero-copy > p:last-child{margin-bottom:0}
}
/* Desktop hero copy at the same sizes as other pages: lead line = body text,
   second line = small text. Phone keeps its own scale. */
@media not all and (max-width:760px) and (orientation:portrait){
  main .card:not(#_) #top .sub-lead,#top .card:not(#_) p.sub.sub-lead{font-size:var(--hb-lead,17px)!important;line-height:1.55}
  #top .card:not(#_) p.sub.mt-8{font-size:var(--hb-sub,14px)!important;line-height:1.55}
}

/* Logo mark beside the wordmark: as tall as the capital letters' line box. */
.brand{display:inline-flex;align-items:center;gap:.6em;line-height:1}
.brand .brand-mark{height:1.25em;width:auto;flex:none;display:block;color:#fff}
.brand .brand-mark{order:2;margin-left:-.25em}
/* Editor nudge for the logo mark (desktop / phone). */
.brand .brand-mark{transform:translate(var(--bm-x,0px),var(--bm-y,0px))}
@media (max-width:760px) and (orientation:portrait){.brand .brand-mark{transform:translate(var(--bm-x-ph,0px),var(--bm-y-ph,0px))}}
/* Wordmark typeface / weight / tracking from the editor (desktop / phone). */
.brand > span,.brand > span b{font-family:var(--bf-fam);font-weight:var(--bf-w);font-stretch:var(--bf-st)}
.brand > span{letter-spacing:var(--bf-ls)}
@media (max-width:760px) and (orientation:portrait){
  .brand > span,.brand > span b{font-family:var(--bf-fam-ph);font-weight:var(--bf-w-ph);font-stretch:var(--bf-st-ph)}
  .brand > span{letter-spacing:var(--bf-ls-ph)}
}
/* Desktop: wordmark + logo span the HUD pill's height and share its centre line. */
@media (min-width:1100px){
  body .brand{top:calc(env(safe-area-inset-top,0px) + 16px);height:36px;font-size:var(--brand-fs,14px)}
  body .brand .brand-mark{height:var(--brand-mark-h,24px)}
}
/* Phone wordmark and logo sizes from the editor. */
@media (max-width:760px) and (orientation:portrait){
  body .brand{font-size:var(--brand-fs-ph,11px)!important}
  body .brand .brand-mark{height:var(--brand-mark-h-ph,13.8px)}
}
/* X in-app browser (class set by script): no status-bar inset at the top
   (X's own header already sits there). */
@media (max-width:760px) and (orientation:portrait){
  html.inapp-x .hud{top:12px!important}
  html.inapp-x .brand{top:16px!important}
}
/* X in-app browser: line pages up by their bottom edge, under X's header. */
html.inapp-x section,html.inapp-x section.short,html.inapp-x section.hero,html.inapp-x section.scene-section{scroll-snap-align:end!important}
/* Phone: when the browser's bottom bar slides away (Safari, Safari windows opened
   from apps such as X's profile links), the visible area grows past the page
   height. Nudge each card down by exactly that growth so it always sits the same
   distance above the visible bottom edge. Zero when the bar is showing. */
@media (max-width:760px) and (orientation:portrait){
  main section .card{translate:0 max(0px, calc(100dvh - var(--app-h, 100svh)))}
}
/* Desktop page 01 uses the phone's pattern: one summary line, then the three
   figures in the same type and colours, then the bold line and the note. */
@media not all and (max-width:760px) and (orientation:portrait){
  #problem .card > #routeContext{display:none!important}
  main #problem .card:not(#_) > .m-sum{display:block!important;font-size:calc(var(--fs-body) * var(--ts-b,1))!important;line-height:1.6;color:var(--dim);margin-top:14px}
  #problem .card > .m-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;margin:20px 0 6px;max-width:30rem}
  #problem .card > .m-stats > div{padding:0;border:0;min-width:0}
  #problem .card > .m-stats b{display:block;color:var(--ink);font-family:var(--body);font-weight:500;line-height:1.15;letter-spacing:-.01em;white-space:nowrap;text-transform:none}
  #problem .card > .m-stats span{display:block;margin-top:6px;font-family:var(--body);line-height:1.5;color:var(--faint);white-space:nowrap;letter-spacing:normal;text-transform:none}
  #problem .card > .thesis{margin-top:22px}
}

/* ===== One type system across every card (desktop and phone) =====
   Roles, same on every page:
   eyebrow / step label (amber caps) · headline · body · item text (small) ·
   figure (number) · figure caption (grey) · fine print (grey) · button. */
/* Emphasis inside a line never grows past the line itself. */
#top .sub-lead strong{font-size:1em!important}
/* Step labels: "01 / SEE", "01 / AIRCRAFT", milestone numbers, use-case kickers. */
main .card:not(#_) .traffic-steps li > b,main .card:not(#_) .system-list > div > b,main .card:not(#_) .milestones i,main .card:not(#_) .uc .u > b{
  font-size:calc(var(--fs-label) * var(--ts-lab,1))!important;font-weight:500!important;color:var(--amber)!important;letter-spacing:.08em!important;text-transform:uppercase}
/* A bold lead-in word is the same size as the sentence it starts. */
main .card:not(#_) .turn li > b{font-size:1em!important}
/* Item text in grids: one size and colour. */
main .card:not(#_) .uc .u > span,main .card:not(#_) .inst .i > span{font-size:calc(var(--fs-small,14px) * var(--ts-b,1))!important;color:var(--dim)!important}
/* Figures and their captions: one weight, captions grey, on both layouts. */
main .card:not(#_) .m-stats b,main .card:not(#_) .spec-grid b{font-weight:500!important}
main .card:not(#_) .m-stats span{color:var(--faint)!important}
/* Tags (DESIGN TARGET, SIMULATED, VISION, NOT FORECAST, source links): sized in
   proportion to the note they sit in, a small badge on the same text line. */
main .card:not(#_) .tag{font-size:calc(var(--fs-micro) * .82)!important;line-height:1.35;padding:.18em .6em .14em!important;
  border-radius:4px;letter-spacing:.08em!important;vertical-align:.12em;margin:0 .55em 0 0}
main .card:not(#_) a.tag.src{margin:.5em .5em 0 0;vertical-align:.12em}
main .card:not(#_) p.fine{line-height:1.75}
/* Phone: the closing page keeps the site-wide status note (prototype, simulated
   flights, design targets), in the same small style as other phone notes. */
@media (max-width:760px) and (orientation:portrait){
  #contact .card.pane > p.fine{display:block!important;margin-top:12px;font-size:10.5px!important;line-height:1.4;color:var(--faint);opacity:.8;max-width:none}
}
/* Last page: a small AirLoop mark beside "Talk to us". */
#contact .actions{display:flex;align-items:center;gap:16px}
#contact .contact-mark{height:26px;width:auto;flex:none;display:block;color:#fff}
@media (max-width:760px) and (orientation:portrait){#contact .contact-mark{height:20px}}
