/* Home from 1920 px wide: Monday's live layout (Jacob 12-02, "the actual current render is what the home screen
   should look like ... that's what we need to make sure it looks on the ultra wide too").
   The header spans the full width, and the investor logos run large across the full width, hugging the bottom
   of the first screen. Lengths are in the page's enlarged pixels (body zoom --s from home-scale.css), so 40px
   here is 64 screen px at 3440 x 1440. */
@media (min-width:1920px){
  .home .s-rest .nav .wrap, .home .s-rest .backers .wrap { max-width:none !important; padding-inline:40px; }
  .home .s-rest .backers { padding-bottom:12px; }
  .home .s-rest .backers .label { margin-bottom:6px; }
  .home .s-rest .backers ul { display:flex !important; justify-content:space-between; align-items:center; gap:0 24px; }
  .home .s-rest .backers li { height:56px; flex:none; justify-content:center; }
  .home .s-rest .backers img { height:28px; width:auto; max-height:none !important; max-width:none !important; margin-inline:0; }
  .home .s-rest .backers img[alt="Jane Street"] { height:34px; }
  .home .s-rest .backers img[alt="Capital Eleven"] { height:38px; }
  .home .s-rest .backers img[alt="Montauk Capital"] { height:32px; }
}
/* Ultra-wide (wider than 2:1): the copy starts where Monday's did, a sixth of the way in, and the logo row is one even
   row under it: its label and first mark on the headline's left edge (--copy-l, set by site.js from the same arithmetic as
   alignCopy, which places the words), the last mark the same inset from the right, the marks at the 1440 scale of that row. */
@media (min-width:2001px) and (min-aspect-ratio:2/1){
  .home .s-rest .stop-main > .wrap { max-width:none !important; padding-left:calc(16.6vw / var(--s)); }
  .home .s-rest .backers .wrap { padding-inline:var(--copy-l, calc(16.6vw / var(--s, 1))) !important; }
}

/* Restore the pre-12-01 backer row (site-b12-38q scout.css :213, :366-371 + banner-names/names-all-row.css): each mark is
   sized to carry the same visual weight, height = --bh x --bk, where --bh = the row's width x .7 / 31.1; marks near-white
   at full strength; on a window 2:1 or wider the marks sit on one bottom line, close to the bottom edge. */
.home .s-rest .backers .wrap { container-type:inline-size; }
@media (min-width:761px){
  .home .s-rest .backers ul { --bh:clamp(14px, calc(100cqw * .7 / 31.1), calc(58px / var(--s, 1))); display:flex !important; justify-content:space-between; align-items:center; gap:0 !important; }
  .home .s-rest .backers li { height:auto !important; flex:none; }
  .home .s-rest .backers img { height:calc(var(--bh) * var(--bk, 1)) !important; width:auto !important; max-height:none !important; max-width:none !important; margin:0 !important; filter:brightness(0) invert(1); opacity:.97; }
  .home .s-rest .backers img[alt="Prelude Ventures"] { --bk:.64; }
  .home .s-rest .backers img[alt="Jane Street"] { --bk:1.04; }
  .home .s-rest .backers img[alt^="JLL Spark"] { --bk:.85; }
  .home .s-rest .backers img[alt="Constellation"] { --bk:.78; }
  .home .s-rest .backers img[alt^="Entropy"] { --bk:.6; }
  .home .s-rest .backers img[alt="Capital Eleven"] { --bk:1.08; }
  .home .s-rest .backers img[alt="Montauk Capital"] { --bk:1.08; }
}
@media (min-width:2001px) and (min-aspect-ratio:2/1){
  .home .s-rest .backers { padding-bottom:calc(15px / var(--s, 1)) !important; }
}
/* Optional: Monday's 1440 edges, header and logo row both 49 px from the window's sides (old --ex at 1440). */
@media (min-width:761px) and (max-width:1919px){
  .home .s-rest .nav .wrap, .home .s-rest .backers .wrap { max-width:none !important; padding-inline:49px !important; }
}

/* Room bars as the cycle's loader: home-camera.js sets --fill (0 to 1) on the active bar over the 6 s cycle. */
.home .rooms-quiet .rb.now i { background:linear-gradient(90deg, var(--n25) 0 calc(var(--fill, 0) * 100%), rgba(255,255,255,.3) calc(var(--fill, 0) * 100%) 100%); }

/* The first screen's shading, the 12-02 build's (styles.css 1308-1336): no shade over the whole screen and no pool
   behind the words, only the backer row's band, .55 dark 48 px in, .85 at the row's foot, then easing out over 240 px
   past it, so no edge shows once the page scrolls; it leaves with the row. Measured at 1440 x 900, quarter-width
   mean luma under the header: old 45.8 53.2 63.5 74.6, this 46.3 52.3 62.1 73.5 (the round-11 shade gave 42.7 49.1
   60.3 70.6). The label is the old one (getComputedStyle there): Inter 300 11 px caps, 1.76 px tracking, off-white at 72%, 13 px
   tall at every width, so it divides out the page zoom. */
@media (min-width:761px){
  .home .s-rest::after, .home .s-rest .copy::before { display:none; }
  .home .s-rest .backers { position:relative; isolation:isolate; }
  .home .s-rest .backers::before { content:""; position:absolute; z-index:-1; inset:-88px 0 -240px; pointer-events:none;
    background:linear-gradient(180deg, rgb(9 15 21 / 0), rgb(9 15 21 / .55) 48px, rgb(9 15 21 / .85) calc(100% - 240px), rgb(9 15 21 / .62) calc(100% - 165px), rgb(9 15 21 / .28) calc(100% - 75px), rgb(9 15 21 / 0) 100%); }
  @media (max-width:1919px){
    /* Up to 1919 px the old band was darker between the logos: mean luma there 54.3 old, 64.0 at .55/.85, 54.0 at .8/.95. */
    .home .s-rest .backers::before { background:linear-gradient(180deg, rgb(9 15 21 / 0), rgb(9 15 21 / .8) 48px, rgb(9 15 21 / .95) calc(100% - 240px), rgb(9 15 21 / .62) calc(100% - 165px), rgb(9 15 21 / .28) calc(100% - 75px), rgb(9 15 21 / 0) 100%); }
  }
  .home .s-rest .backers .label { font:300 calc(11px / var(--s, 1))/calc(13px / var(--s, 1)) var(--sans); letter-spacing:calc(1.76px / var(--s, 1)); text-transform:uppercase; color:rgb(240 245 250 / .72); }
}

/* Home first-screen type, the 12-02 build's (measured there with getComputedStyle): the headline
   clamp(40px, 3.125vw, 60px) at line-height 1.1, so 45 px at 1440 and 60 px at 1920; the subtitle 20/30 px; both
   rgb(244 246 248). Above 1440 the page is zoomed by --s (1.2 at 1920, 1.6 at 2560 and 3440), so 50 px here draws the
   old 60 px at 1920 and its 4/3-scaled 80 px at 2560 and 3440. Phone: 34 px headline, 20/30 px subtitle. */
.home #h-rest { font-size:clamp(40px, 3.125vw, 45px); line-height:1.1; color:#f4f6f8; }
.home .s-rest .copy > .intro { font-size:20px; line-height:30px; color:#f4f6f8; }
@media (min-width:1441px){ .home #h-rest { font-size:50px; } }
@media (max-width:760px){ .home #h-rest { font-size:34px; } }

/* First-screen words, the 12-02 build's spacing and rendering (measured there): 24 px from the headline to the
   subtitle, and the browser's default font smoothing (old: auto) on the words and the logo label, which drew them
   fuller than antialiased. */
.home .s-rest .copy > .intro { margin-top:24px; }
.home .s-rest .copy :is(h1, .intro), .home .s-rest .backers .label { -webkit-font-smoothing:auto; -moz-osx-font-smoothing:auto; }
.home .s-rest .copy h1 { letter-spacing:-.02em; }

/* Phone first screen, the 12-02 build's (same-v2c-lean.html): full bleed, no band and no dark ground, the header
   clear over the picture, the backer row on an eased band that starts 6 px above the row, under the room bars (0 to 92.5% over 56 px
   from the row's top on a smoothstep, solid to its foot, clear again 240 px below), and buttons sized to their text. */
@media (max-width:760px){
  .home .s-rest { background:none; }
  .home .s-rest > .bg { top:0; height:100svh; }
  .home .s-rest > .bg img { -webkit-mask-image:none; mask-image:none; }
  .home .s-rest::after { display:none; }
  .home .s-rest .backers { position:relative; isolation:isolate; }
  .home .s-rest .backers::before { content:""; position:absolute; z-index:-1; inset:-6px 0 -240px; pointer-events:none;
    background:linear-gradient(180deg, rgb(9 15 21 / 0), rgb(9 15 21 / .46) 24px, rgb(9 15 21 / .78) 40px, rgb(9 15 21 / .925) 56px, rgb(9 15 21 / .925) calc(100% - 240px), rgb(9 15 21 / 0) 100%); }
  .home .actions { align-items:flex-start; }
  .home .actions .btn { width:auto; }
}

/* Ultra-wide first screen (3440 x 1440 measured against the 12-02 build): the subtitle keeps the old 640 px measure
   (two lines), and the bar's shade is deeper, as the 21:9 room picture puts bright switchgear under the links
   (right half, y 40-100: old 41.8, this build before 103.8). */
@media (min-width:2001px) and (min-aspect-ratio:2/1){
  .home .s-rest .copy > .intro { max-width:calc(640px / var(--s, 1)); }
  .home .s-rest .nav { background:linear-gradient(180deg, rgb(9 15 21 / .85) 0%, rgb(9 15 21 / .7) 60%, rgb(9 15 21 / .35) 100%); }
  .home .s-rest .nav::after { content:""; position:absolute; left:0; right:0; top:100%; height:64px; pointer-events:none; z-index:-1;
    background:linear-gradient(180deg, rgb(9 15 21 / .35), rgb(9 15 21 / 0)); }
}
/* From 1921 px wide (Jacob's picks, HL option 2 header and option 4 logos): the header sits on the headline column,
   its logo's left edge on the headline's left edge (--copy-l, page px, converted into the header's own zoom --hz).
   The logo row runs edge to edge at the old 40 px inset with marks 1.5x, and its label grows with the marks, keeping
   1440's ratio of label size to the tallest mark (11 px to 1.08 x 30.2 px, so .3643 x --bh). */
@media (min-width:1921px){
  .home .s-rest .nav .wrap.nav-in { padding-inline:calc(var(--copy-l, 40px) * var(--s, 1) / var(--hz, 1)) !important; }
  .home .s-rest .backers .wrap { padding-inline:40px !important; }
  .home .s-rest .backers :is(ul, .label) { --bh:clamp(14px, calc(100cqw * .7 / 31.1), calc(96px / var(--s, 1))); }
  .home .s-rest .backers .label { font-size:calc(var(--bh) * .3643) !important; line-height:1.18 !important; letter-spacing:.16em !important; }
}
/* From 1921 px, the logo row keeps 1440's air: its bottom gap is the same share of the window's height (36 of 900 px,
   4%), and the label-to-mark gap the same share of the tallest mark (14 of 32.6 px, .4293). */
@media (min-width:1921px){
  .home .s-rest .backers { padding-bottom:calc(4svh / var(--s, 1)) !important; }
  .home .s-rest .backers .label { margin-bottom:calc(var(--bh) * 1.08 * .4293) !important; }
}

/* S3 (Monday standard): a light shade over the floor (about 0.85x its brightness) under the label, as on Monday; under the
   logos it deepens to .38, so every logo clears 3:1 on the graded floor (worst 4.15:1, 1920, electrical). */
@media (min-width:761px){
  html.home .s-rest .backers::before { background:linear-gradient(180deg, rgb(9 15 21 / 0), rgb(9 15 21 / .15) 48px, rgb(9 15 21 / .15) 72px, rgb(9 15 21 / .38) 104px, rgb(9 15 21 / .38) calc(100% - 200px), rgb(9 15 21 / 0) 100%) !important; }
}
