/* ===== Round 12, shared across Home and the pages ===== */
/* Header (Jacob agreed H2, with today's outline button): the lockup 1.3x; the CTA keeps the outline ("ghost") style */
.logo img { height:46px; }
@media (max-width:760px){ .logo img { height:39px; } }
/* Light sections: the primary button is near-black with white text (the mid-blue only ever showed here) */
.pal-light .section .btn-primary { background:var(--n950); color:var(--n0); border-color:var(--n950); }
@media (hover:hover) and (pointer:fine){ .pal-light .section .btn-primary:hover { background:var(--n800); } }

/* ===== Round 12 sweep fixes ===== */
/* One header and footer measure on every page at very wide: Home's wrap matches the pages' 1340 (no jump between pages) */
@media (min-width:2001px){ .home .wrap { max-width:1340px !important; } }
/* One header everywhere, Home's (the approved first screen): the banner's 9 px / 1.3 line, and the bar across the
   whole window, 49 px from its sides up to 1919 px, 40 enlarged px (64 at 3440) from 1920 (home-wide.css). Page
   content keeps its own column. */
@media (min-width:761px){
  html:not(.home) .topline { padding:9px 16px; line-height:1.3; }
  html:not(.home) .nav .wrap { max-width:none !important; padding-inline:49px !important; }
}
@media (min-width:1920px){ html:not(.home) .nav .wrap { padding-inline:40px !important; } }
/* Ghost header: a soft top shade under the bar on every page, so links never sit on a bright ceiling light or a glass tower */
.nav { background:linear-gradient(180deg, rgba(9,15,21,.6) 0%, rgba(9,15,21,.28) 70%, rgba(9,15,21,0) 100%); }
/* Banner: 15 px on laptop, 13 px on phone, as on the pages */
@media (max-width:760px){ .home .topline { font-size:13px !important; } }

/* Home footer = the pages' footer (Home does not load r11.css) */
.home .fz, .home .dir .who, .home .dir .co .who, .home .dir .what, .home .fz10 .side .line10 { font-size:17px !important; line-height:1.55 !important; }
.home .fz .mono, .home .fz .legal, .home .dir .fl { font-size:13px !important; }
@media (min-width:761px){ .home .dir .go { font-size:17px !important; } }
.home .fz10 .side .line10 { margin-top:20px !important; font-weight:500 !important; max-width:22rem !important; }
.home .fz .social a { background:var(--n0); color:var(--n900); }
.home .fz.pb { border-top:1px solid var(--n200); }
@media (max-width:760px){ .home .fz, .home .dir .who, .home .dir .co .who, .home .fz10 .side .line10 { font-size:16px !important; } }

/* Backer logos: one size set on Home and Company; Jane Street and Capital Eleven read at the size of the others */
@media (min-width:761px){
  .home .backers img { max-height:30px; }
  .home .backers img[alt="Capital Eleven"], .backer-row img[alt="Capital Eleven"] { max-height:44px; }
  .home .backers img[alt="Jane Street"], .backer-row img[alt="Jane Street"] { max-height:36px; }
}
@media (max-width:760px){ .home .backers img[alt="Jane Street"], .backer-row img[alt="Jane Street"] { max-height:30px; } }
.backers img, .backer-row img { margin-inline:auto; }

/* Words wrap cleanly everywhere: headings balance, paragraphs avoid a lone last word */
:is(h1, h2, h3, .h-page, .h-sec) { text-wrap:balance; }
:is(p, li, dd, .what, .line10, .lead, .intro) { text-wrap:pretty; }

/* Small labels above headings are 13 px everywhere (the ".head p" rule had caught them at 20 px) */
@layer r11 {
  .r11 .head p.kicker { font-size:13px !important; line-height:1.4 !important; }
  /* The section under a hero is white, so the hero's fade into white has no edge (only the backers strip is tinted) */
  .r11 .plate.full + .section.band { background:var(--n0) !important; }
  /* Careers: the hero fills the first screen, and the left shade covers the signs behind the headline */
  @media (min-width:761px){ .pg-careers .hero { min-height:calc(100svh / var(--s, 1) - var(--banner-h, 42px)) !important; } }
}
.pg-careers .hero::after { background:
  linear-gradient(0deg, var(--n0) 0%, rgba(255,255,255,.85) 4%, rgba(255,255,255,0) 14%),
  linear-gradient(180deg, rgba(9,15,21,.6) 0, rgba(9,15,21,0) 140px),
  linear-gradient(90deg, rgba(9,15,21,.92) 0%, rgba(9,15,21,.84) 34%, rgba(9,15,21,.4) 56%, rgba(9,15,21,0) 78%); }

/* Home owners block = the Owners hero: same headline break, same buttons and icons; the tick line reads on busy fronts */
.s-building #h-building { max-width:12.5em; }
.home .btn svg { flex:none; }
.home .btn { gap:8px; }
.s-building .ticks { text-shadow:0 1px 2px rgba(9,15,21,.9), 0 0 12px rgba(9,15,21,.8); }

/* Spec panel numbers: room for each figure on laptop, no word left alone */
@media (min-width:761px){
  .spec { max-width:40rem; }
  .nums dt { white-space:nowrap; font-size:1.5rem; }
  .nums > div:last-child dt { white-space:normal; font-size:1.125rem; }
}

@media (max-width:760px){
  /* Phone rest: the picture fades into the dark itself, so no line crosses the headline */
  .s-rest > .bg img { -webkit-mask-image:linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); mask-image:linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); }
  /* Phone door stop: frame the rack and switchgear, not the empty middle of the room */
  .s-door > .bg img { object-position:74% 50%; }
}
/* Company: the team strip that overlaps the hero sits on white, so the hero's fade into white has no grey band under the cards */
@layer r11 { .r11 .plate.full + section:not([class]) { background:var(--n0) !important; } }
/* Company team strip: clear where it overlaps the hero (the hero's own fade into white shows), white below */
@layer r11 { .r11 .plate.full + section:not([class]) { background:linear-gradient(180deg, transparent 0, transparent var(--tm-fold, 220px), var(--n0) var(--tm-fold, 220px)) !important; } }

/* ===== Round 12b (Jacob, 23:00Z) ===== */
/* The banner is always one line: phones get the short sentence; it never wraps */
@media (max-width:760px){
  .topline { white-space:nowrap !important; overflow:hidden; text-overflow:ellipsis; }
  .topline .long { display:none !important; }
  .topline .short { display:inline !important; }
}
/* Phone Home first screen: the copy moves up and the backers sit inside the first screen, compact, in Company's centred grid */
@media (max-width:760px){
  .home .s-rest { min-height:100svh; }
  .home .s-rest > .bg { top:96px; height:42svh; }
  .home .s-rest::after { height:100svh; background:linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 40%, rgba(9,15,21,.88) 54%, var(--n950) 66%); }
  .home .s-rest .stop-main { min-height:0; flex:1; }
  .home .s-rest .stop-main > .wrap { padding-top:0; padding-bottom:4px; }
  .home .s-rest .rooms-quiet { margin-top:8px; }
  .home .s-rest .rooms-quiet .rb { padding:16px 4px; }
  .home .backers { background:transparent; border-top:0; padding:4px 0 8px; }
  .home .backers .label { margin-bottom:8px; font-size:11px; line-height:13px; color:rgb(240 245 250 / .72); }
  .home .s-rest .copy .actions { margin-top:31px; }
  .home .backers ul { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 14px; }
  .home .backers li { height:24px; }
  .home .backers img { max-height:15px !important; }
  .home .backers img[alt="Capital Eleven"] { max-height:22px !important; }
  .home .backers img[alt="Jane Street"] { max-height:18px !important; }
  .home .backers li:last-child:nth-child(odd) { grid-column:auto; }
  .home .backers img { opacity:1; }
}
@media (max-width:760px){
  .home .backers ul { display:flex !important; flex-wrap:wrap; justify-content:center; gap:10px 0; }
  .home .backers li { flex:0 0 25%; justify-content:center; }
}
/* Company team on phone: one clean row per person, like the Careers role rows. Photo left; name and title each on one line; the short bio shown, so no "Read bio" link repeated five times.
   The page script moves each card's photo and text into a .front wrapper and adds a .back (the flip face), so the row grid sits on .front and .back is hidden. */
@layer r11 {
  @media (max-width:760px){
    .r11 .plate.full + section:not([class]) { margin-top:0 !important; padding-top:28px !important; background:var(--n0) !important; }
    .r11 .team { display:flex !important; flex-direction:column !important; gap:0 !important; perspective:none !important; }
    .r11 .team::before { content:none !important; display:none !important; }
    .r11 .team .person { display:block !important; width:100% !important; max-width:none !important; flex:none !important; grid-column:auto !important; padding:0 !important; border:0 !important; border-bottom:1px solid var(--n200) !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; transform:none !important; transition:none !important; cursor:auto !important; overflow:visible !important; }
    .r11 .team .person:first-child { border-top:1px solid var(--n200) !important; }
    .r11 .team .person .back { display:none !important; }
    .r11 .team .person .front { display:grid !important; grid-template-columns:76px minmax(0,1fr) !important; column-gap:16px !important; align-items:start !important; padding:18px 0 !important; height:auto !important; border:0 !important; border-radius:0 !important; background:transparent !important; overflow:visible !important; backface-visibility:visible !important; -webkit-backface-visibility:visible !important; }
    .r11 .team .person .front::after { content:none !important; display:none !important; }
    .r11 .team .person .photo { width:76px !important; height:auto !important; aspect-ratio:4/5 !important; border-radius:10px !important; overflow:hidden !important; margin:0 !important; }
    .r11 .team .person .photo::after { content:none !important; display:none !important; }
    .r11 .team .person .photo img { display:block !important; width:100% !important; height:100% !important; aspect-ratio:auto !important; object-fit:cover !important; }
    .r11 .team .person .txt { padding:0 !important; min-width:0 !important; position:static !important; }
    .r11 .team .person .txt::after, .r11 .team .person .front .txt::after { content:none !important; display:none !important; }
    .r11 .team .person h3 { display:block !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; margin:2px 0 0 !important; }
    .r11 .team .person h3::after { content:none !important; }
    .r11 .team .person .role { white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; margin:2px 0 0 !important; }
    .r11 .team .person .front .bio { display:block !important; -webkit-line-clamp:unset !important; overflow:visible !important; font-size:15px !important; line-height:1.5 !important; margin:8px 0 0 !important; color:var(--n600) !important; }
  }
}

/* Hero bottoms end on a clean edge, as on Building owners: no fade into white */
.pg-careers .hero::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) 0%, rgba(9,15,21,.74) 36%, rgba(9,15,21,.22) 62%, rgba(9,15,21,0) 80%); }
@media (min-width:1441px){
  .r11 .pg-careers .hero::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) 0%, rgba(9,15,21,.9) calc((100% - 1340px) / 2),
      rgba(9,15,21,.74) calc((100% - 1340px) / 2 + 468px), rgba(9,15,21,.22) calc((100% - 1340px) / 2 + 843px),
      rgba(9,15,21,0) calc((100% - 1340px) / 2 + 1102px)); }
}
/* Phone: the words take the whole width, so the shade runs top to bottom behind them (the left-to-right one leaves
   the headline's right half on the corridor's lit exit sign and ceiling bars). */
@media (max-width:760px){
  .pg-careers .hero::after { background:
    linear-gradient(180deg, rgba(9,15,21,.6) 0%, rgba(9,15,21,.86) 22%, rgba(9,15,21,.86) 70%, rgba(9,15,21,.35) 100%); }
}
/* Company on phone: the team rows sit below the hero, so the hero ends on a clean edge too */
@media (max-width:760px){
  .r11.r7.nc-m .pg-company .plate.full::after { background:linear-gradient(180deg, rgba(9,15,21,.5) 0%, rgba(9,15,21,.86) 26%, rgba(9,15,21,.86) 64%, rgba(9,15,21,.3) 82%) !important; }
}


/* Phone, one placement rule for every hero and Home stop: a full-window picture with the words anchored to its foot
   and the last button's bottom where Home's first screen puts its button, 138px above the window's foot on every
   phone size (measured on live: .793 of 667, .836 of 844, .849 of 915). A tick row under the buttons hangs in that
   foot space, so it never lifts the buttons. Page heroes start under the one-line banner, so they are a window less
   the banner tall and end at the window's foot. */
@media (max-width:760px){
  .r11 { --foot-btn:138px; }
  .home { --foot-btn:138px; }
  .r11 section.plate:first-of-type { min-height:calc(100svh - var(--banner-h, 39px)) !important; display:flex !important; flex-direction:column !important; justify-content:flex-end !important; align-items:stretch !important; padding:0 !important; }
  .r11 section.plate:first-of-type > .wrap { padding-top:96px !important; padding-bottom:var(--foot-btn) !important; margin-top:0 !important; margin-bottom:0 !important; }
  .r11 section.plate:first-of-type > .wrap > :is(.first-copy, .copy) { padding-top:0 !important; padding-bottom:0 !important; margin-top:0 !important; margin-bottom:0 !important; position:relative; }
  .r11.r11.r11 section.plate.plate:first-of-type::after { background:linear-gradient(180deg, rgba(9,15,21,.55) 0, rgba(9,15,21,0) 18%, rgba(9,15,21,0) 34%, rgba(9,15,21,.8) 60%, rgba(9,15,21,.92) 100%) !important; }
  .home :is(.s-tray, .s-building) .stop-main { align-items:flex-end !important; }
  .home :is(.s-tray, .s-building) .stop-main > .wrap { padding-bottom:var(--foot-btn) !important; }
  :is(.r11 section.plate:first-of-type, .home .s-building) .ticks { position:absolute !important; left:0; right:0; top:calc(100% + 18px); margin:0 !important; }
  .home .s-building .stop-main > .wrap > * { position:relative; }
}
/* Phone page heroes with bottom-anchored words: the Home stops' soft pool of shade behind the words only (home.css
   .copy::before), sized off the text block so it follows the words down. Owners' glass tower is the brightest picture
   behind its words, so its pool is the darkest. */
@media (max-width:760px){
  .r11 section.plate:first-of-type > .wrap > :is(.first-copy, .copy)::before { content:""; position:absolute; z-index:-1; inset:-200px -220px -150px; pointer-events:none;
    background:radial-gradient(closest-side, rgba(9,15,21,var(--sh-a,.72)) 0%, rgba(9,15,21,var(--sh-b,.5)) 45%, rgba(9,15,21,0) 100%); }
  .pg-owners section.plate:first-of-type, .r11 section.plate.full:has(.ticks) { --sh-a:.9; --sh-b:.78; }
}

/* SH: wider than 1920 px the words sit inset on the text column, so each hero's shade is a soft ellipse centred on the
   words (the column's left edge plus half the 544 px copy) instead of a band from the screen's left edge. */
@media (min-width:1921px){
  .r11.r6.nocard .plate.full::after { background:
    linear-gradient(0deg, var(--n0) 0%, rgba(255,255,255,.9) 9%, rgba(255,255,255,0) 36%),
    radial-gradient(ellipse 640px 62% at calc((100% - 1340px) / 2 + 272px) 44%, rgba(9,15,21,.9) 0%, rgba(9,15,21,.72) 45%, rgba(9,15,21,0) 100%) !important; }
  .r11 .pg-careers .hero::after { background:
    linear-gradient(180deg, rgba(9,15,21,.6) 0, rgba(9,15,21,0) 140px),
    radial-gradient(ellipse 620px 62% at calc((100% - 1340px) / 2 + 272px) 50%, rgba(9,15,21,.9) 0%, rgba(9,15,21,.74) 45%, rgba(9,15,21,0) 100%) !important; }
  .r11 .gcar::after { background:radial-gradient(ellipse 640px 70% at calc((100% - 1340px) / 2 + 272px) 50%, rgba(9,15,21,.55) 0%, rgba(9,15,21,.42) 45%, rgba(9,15,21,0) 100%) !important; }
  /* Owners also carries .r6.nocard: its own ellipse comes last so it wins at equal specificity. */
  .r11.r7.ow-a3 .plate.full::after { background:radial-gradient(ellipse 600px 58% at calc((100% - 1340px) / 2 + 272px) 46%, rgba(9,15,21,.9) 0%, rgba(9,15,21,.75) 45%, rgba(9,15,21,0) 100%) !important; }
}

/* W1: the banner is gated by the server; with no banner on the page, page heroes fill the full screen height. */
:root:not(:has(.topline)) { --banner-h: 0px; }
/* W1: with no banner on the page (gated until launch), the Owners hero fills the first screen. */
:root:not(:has(.topline)) .pg-owners .plate.full { min-height: max(860px, calc(100svh / var(--s, 1))) !important; }
