/* Shared additions over the round 12 mocks: Home's phone menu (pages carry the same rules in r11.css). */
.home .nav-panel { display:none; }
.home .nav-panel:not([hidden]) { display:block; position:absolute; left:0; right:0; top:100%; background:var(--n0,#fff); border-bottom:1px solid var(--n200,#dde2e8); padding:4px 0 20px; }
.home .nav-panel a:not(.btn) { display:flex; align-items:center; min-height:48px; border-top:1px solid var(--n200,#dde2e8); color:var(--n900,#141a21); text-decoration:none; font:600 1rem/1.3 Inter,system-ui,sans-serif; }
.home .nav-panel a:first-child { border-top:0; }
.home .nav-panel .btn { display:flex; justify-content:center; margin-top:12px; background:var(--b600,#2f5d8a); color:#fff; }
@media (min-width:761px){ .nav-panel:not([hidden]) { display:none !important; } }
/* Home camera (home-camera.js): once the first frame draws, the canvas replaces the stops' still pictures. */
.cam { position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none; display:block; }
html.cam-on { background:#090f15; }
html.cam-on body { background:transparent; }
html.cam-on .stop[data-frame] { background:transparent; }
html.cam-on .stop[data-frame] > .bg { visibility:hidden; }
/* Home globe stop: the static globe picture (home/globe.png) in the mock's canvas slot */
.s-globe #globe { width:100%; max-width:720px; aspect-ratio:1; justify-self:center; background:url(home/globe.png) center/contain no-repeat; }
@media (max-width:760px){ .s-globe #globe { max-width:340px; order:-1; } }
/* Home scroll pacing (home-camera.js sets html.cam-pace, and per stop --h and --gap in screens): each leg is
   its frames x (1.75 + 48 / H) / 96 screens long (the 12-02 build), a stop with words holds still for its data-hold before the next leg,
   and the door is a pass-through. A screen here is 100svh, divided by the page's enlargement --s above 1440 wide. */
html.cam-pace .s-door { display:none; }
html.cam-pace .stop[data-frame]:not(.s-rest) { min-height:calc(var(--h, 1) * 100svh / var(--s, 1)); margin-bottom:calc(var(--gap, 0) * 100svh / var(--s, 1)); }
html.cam-pace .stop.s-rest { margin-bottom:calc(var(--gap, 0) * 100svh / var(--s, 1)); }
html.cam-pace .stop[data-hold]:not(.s-rest) { overflow:clip; }
html.cam-pace .stop[data-hold]:not(.s-rest) > .stop-main { position:sticky; top:0; flex:none; min-height:calc(100svh / var(--s, 1)); }
html.cam-cut .s-hall { display:none; }
/* Home globe ending (home-globe.css): its run and stage are measured in screens, divided by the page's enlargement
   --s above 1440 wide; with no WebGL the static globe picture stands in. */
.home .g-run { height:calc(220svh / var(--s, 1)); }
.home .g-stage { height:calc(100svh / var(--s, 1)); }
.home.no-webgl .g-stage { background:url(home/globe.png) 71% 50% / auto 80% no-repeat, radial-gradient(110% 90% at 68% 48%, #13263a 0%, #0d1b2a 55%, #09131e 100%); }
@media (max-width:760px){ .home.no-webgl .g-stage { background-position:50% 20%, 0 0; background-size:auto 45%, auto; } }
/* Hand-over from the camera canvas to the globe run (home-camera.js): until the run is pinned, its stage is clear and
   its city layer hidden, so the fixed canvas (the same city frame) shows through without a seam. */
html.cam-on.run-off .g-stage { background:transparent; }
html.cam-on.run-off .g-city { visibility:hidden; }
html.cam-on.run-off .g-run { background:transparent; }
/* First screen: the shade pool behind the words (home.css .copy::before, inset -380px) reached across the rack and
   dimmed it by ~40 levels while the cable ladder beside it stayed bright, so the ladder read as a lighter band right of
   the rack (Jacob 11-30). Its right side now stops 40 px past the words, so it fades out before the rack. */
.home .s-rest .copy::before { right:-40px; }


/* Wide screens: the header (banner and bar) grows with the page only up to 4/3, the old build's header scale at
   2560 and 3440 (its nav type 18.67 px = 14 x 4/3), so at 3440 the logo is 1.35x the old one, as at 1440. The bar's
   side padding divides back out, keeping the old 64 px edges. At 1920 and below --hz equals --s, so nothing moves. */
@media (min-width:1441px){
  :root { --hz:min(var(--s, 1), 1.3333); }
  :is(.home, .r11) :is(.topline, .nav) { zoom:calc(var(--hz) / var(--s, 1)); }
}
@media (min-width:1920px){
  .home .s-rest .nav .wrap, html:not(.home) .nav .wrap { padding-inline:calc(40px * var(--s, 1) / var(--hz)) !important; }
}
/* From 2001 px the links and button take the old build's 14 px base (18.67 px at 4/3) rather than today's 15 px. */
@media (min-width:2001px){ :is(.home, .r11) .nav .links { zoom:.9333; } }
/* The open phone menu is a white sheet, so its primary button is the light-section near-black one (r12.css). */
html.home .nav-panel .btn, html.r11 .nav-panel .btn { background:var(--n950); color:var(--n0); border-color:var(--n950); }
@media (hover:hover) and (pointer:fine){ html.home .nav-panel .btn:hover, html.r11 .nav-panel .btn:hover { background:var(--n800); } }

/* ===== Round 14 fixes ===== */
/* R8: on phone each open role's title takes the full row, with its place and Apply on the line below, so no title
   shares its width with the Apply column. */
@media (max-width:760px){
  .pg-careers .rlist a { grid-template-columns:minmax(0,1fr) auto; row-gap:4px; }
  .pg-careers .rlist .t { grid-column:1 / -1; grid-row:1; }
  .pg-careers .rlist .m { grid-column:1; grid-row:2; }
  .pg-careers .rlist .go { grid-column:2; grid-row:2; }
}
/* R9: on phone the news cards keep the page gutter, their radius and their own borders, like the other cards. */
@media (max-width:760px){
  .pg-company .news3 { margin-inline:0; gap:16px; }
  .pg-company .news3 .nc { border-radius:12px; border:1px solid var(--n200); }
  .pg-company .news3 .nc-ann { border-color:var(--b900); }
  .pg-company .news3 .nc + .nc { border-top:1px solid var(--n200); }
}
/* R9: an advisor whose affiliations wrap makes its card taller; every card in a row takes that height (the grid
   stretches them) and starts its photo and name at the top, so the names line up across the row. */
.pg-company .advisors { align-items:stretch; }
.pg-company .adv { align-items:flex-start; }
/* R4: on phone the page heroes take the Home first screen's 34 px headline, so every phone headline is one size. It
   sits in r11.css's cascade layer, where the type scale's layered !important lives; later in the layer, it wins. */
@layer r11 { @media (max-width:760px){ .r11 h1 { font-size:34px !important; } } }
/* R3: the phone page heroes' shade is the same feathered rectangle as the Home stops (home-stops.css): full over the
   words' block, gone half the block's height above and below; Owners keeps the darker strength its tower needs. */
@media (max-width:760px){
  .r11 section.plate:first-of-type > .wrap > :is(.first-copy, .copy)::before { inset:-50% -20px !important;
    background:rgb(9 15 21 / var(--shf, .72)) !important;
    -webkit-mask-image:linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-composite:source-in; mask-image:linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    mask-composite:intersect; }
  .pg-owners section.plate:first-of-type, .r11 section.plate.full:has(.ticks) { --shf:.85; }
}
/* R3, phone only: a page hero's words take their shade only from the feathered rectangle on their own block. The
   plate keeps the header's top band; the bands and ellipses that shaded the words from the screen's left edge go.
   Wider screens keep the plates' left-edge shade (Jacob 19:21Z: "this page actually already looks fine the way the
   feathering goes"). :not(#_) gives these the id weight that out-counts the older !important plate rules. */
@media (max-width:760px){
  html.r11:not(#_) section.plate:first-of-type::before { display:none !important; }
  html.r11:not(#_) section.plate:first-of-type::after { background:linear-gradient(180deg, rgba(9,15,21,.55) 0, rgba(9,15,21,0) 18%) !important; }
}
/* R2: above 1920 px a page's header takes Home's: its padding is Home's headline edge (--copy-l, set by site.js),
   converted into the header's own zoom as home-wide.css does for Home. */
@media (min-width:1921px){
  html.r11 .nav .wrap.nav-in { padding-inline:calc(var(--copy-l, 40px) * var(--s, 1) / var(--hz, 1)) !important; }
}

/* Edge band above 1920 px (design partner mb_ag0fumFqVB): each hero keeps its 1440 left-edge shade, slid right with the
   words. the words' left edge above 1920 px is 50% - 622 px (the 1340 px column, centred, plus its gutter); at 1440 it
   is 98 px, so every 1440 stop at x moves to that edge + (x - 98px), and the shade holds its edge strength from the screen's left edge to there. The fade therefore
   ends the same distance past the words as at 1440: Company 622 px (1.44 x its 432 px block), Careers 510 px (0.94 x
   544), Owners 273 px (0.45 x 608). The header's top band, Owners' top shade and Company's fade into white stay. */
@media (min-width:1921px){
  html.r11:not(#_) .pg-company section.plate:first-of-type::after { background:
    linear-gradient(0deg, rgb(255 255 255) 0%, rgba(255,255,255,.9) 9%, rgba(255,255,255,0) 36%),
    linear-gradient(90deg, rgba(9,15,21,.9) calc(50% - 720px), rgba(9,15,21,.72) calc((50% - 622px) + 392px), rgba(9,15,21,.2) calc((50% - 622px) + 795px), rgba(9,15,21,0) calc((50% - 622px) + 1054px)) !important; }
  html.r11:not(#_) .pg-careers section.plate:first-of-type::after { background:
    linear-gradient(180deg, rgba(9,15,21,.6) 0, rgba(9,15,21,0) 140px),
    linear-gradient(90deg, rgba(9,15,21,.9) calc(50% - 720px), rgba(9,15,21,.74) calc((50% - 622px) + 420px), rgba(9,15,21,.22) calc((50% - 622px) + 795px), rgba(9,15,21,0) calc((50% - 622px) + 1054px)) !important; }
  /* Owners' 1440 shade is an ellipse (46% x 58% of 1440 = 662 px wide radius, centred 317 px in). It slides with the
     words; left of where 1440's screen edge would sit, a strip carries the ellipse's own vertical profile at that
     column (0.71 at the centre line to 0 at 50.9% of the height), so the edge holds with no seam. */
  html.r11:not(#_) .pg-owners section.plate:first-of-type::after {
    background:radial-gradient(662px 58% at calc((50% - 622px) + 219px) 46%, rgba(9,15,21,.9) 0%, rgba(9,15,21,.75) 45%, rgba(9,15,21,0) 100%),
      radial-gradient(20000px 50.9% at 50% 46%, rgba(9,15,21,.709) 0%, rgba(9,15,21,.646) 25%, rgba(9,15,21,.497) 50%, rgba(9,15,21,.273) 75%, rgba(9,15,21,0) 100%) !important;
    background-size:auto, calc(50% - 720px) 100% !important; background-repeat:no-repeat !important; background-position:0 0 !important; }
}
