/* ===== Round 11 (Dec 2): Home scroll stops as static keyframes, with the Owners A3 shading and touches.
   Pictures are the live Home's own source frames (the canvas images under the text), so no old words sit under the new panels. ===== */

/* ---------- Type scale for this page (laptop / phone): page headline 48/36, section headline 40/28, label 13 caps, intro 20/17, body 17/16 ---------- */
.home .h-page { font:600 3rem/1.06 var(--display); letter-spacing:-.01em; margin:0; }
.home .h-sec { font:600 2.5rem/1.12 var(--display); letter-spacing:-.01em; margin:0; }
.home .label { font:300 .8125rem/1.4 var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--n200); margin:0 0 14px; }
.home .intro { font:400 1.25rem/1.5 var(--sans); color:var(--n100); max-width:34rem; margin-top:16px; }
.home .body { font:400 1.0625rem/1.55 var(--sans); color:var(--n100); margin-top:16px; }
.home .tone { color:var(--b200); }

/* ---------- One stop = one full screen with its picture behind ---------- */
.stop { position:relative; isolation:isolate; overflow:hidden; min-height:100vh; min-height:100svh; display:flex; flex-direction:column; background:var(--n950); }
.stop > .bg { position:absolute; inset:0; z-index:-2; display:block; }
.stop > .bg img { width:100%; height:100%; max-width:none; object-fit:cover; object-position:50% 50%; }
.stop::after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; }
.stop-main { flex:1; display:flex; align-items:center; }
.stop-main > .wrap { padding-top:56px; padding-bottom:56px; }

/* The A3 move: a soft pool of shade behind the words only, no box. The pool is sized off the text block,
   so it follows the words at every width (A3 desk: ellipse about 660 x 520 px around a 576 px column). */
.copy { position:relative; max-width:36rem; }
.copy::before { content:""; position:absolute; z-index:-1; inset:-360px -380px; pointer-events:none;
  background:radial-gradient(closest-side, rgba(9,15,21,var(--sh-a,.9)) 0%, rgba(9,15,21,var(--sh-b,.75)) 45%, rgba(9,15,21,0) 100%); }

/* ---------- Header: white banner (round 5) + transparent nav over the picture ---------- */
.home .topline { flex:none; }
.home .burger { background:transparent; padding:0; cursor:pointer; }
.home .links .cta { background:color-mix(in srgb,var(--b900) 35%,transparent); }

/* ---------- Buttons: primary Blue 200 + secondary outline, ticks under ---------- */
.home .actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.home .btn { justify-content:center; }
.home .btn-secondary { background:rgba(9,15,21,.35); border-color:rgba(255,255,255,.45); color:var(--n25); }
.home .ticks { list-style:none; display:flex; flex-wrap:wrap; gap:8px 18px; margin:18px 0 0; padding:0; font:500 .8125rem/1.4 var(--sans); color:rgba(255,255,255,.85); }
.home .ticks li::before { content:"✓ "; color:var(--b200); }

/* ---------- 1. Rest ---------- */
.s-rest { --sh-a:.72; --sh-b:.5; }
.s-rest::after { background:linear-gradient(180deg, rgba(9,15,21,.6) 0, rgba(9,15,21,0) 200px), linear-gradient(0deg, rgba(9,15,21,.92) 0%, rgba(9,15,21,.6) 14%, rgba(9,15,21,0) 30%); }
.s-rest .stop-main > .wrap { padding-top:96px; padding-bottom:24px; }
.rooms { display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; margin-top:20px; }
.room-pill { display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:0 18px 0 20px; border-radius:999px; border:1px solid rgba(255,255,255,.4); background:rgba(9,15,21,.45); color:var(--n25); font:500 .9375rem/1 var(--sans); cursor:pointer; }
.room-pill .chev { font-size:1.25rem; line-height:1; color:var(--n200); transform:translateY(-1px); }
.room-bars { display:flex; align-items:center; gap:6px; }
.room-bars i { display:block; width:18px; height:3px; border-radius:2px; background:rgba(255,255,255,.28); }
.room-bars i.now { width:30px; background:linear-gradient(90deg, var(--n25) 0 55%, rgba(255,255,255,.28) 55% 100%); }
.backers { flex:none; padding-bottom:36px; }
.backers .label { color:var(--n300); margin-bottom:14px; }
.backers ul { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:28px; align-items:center; }
.backers li { display:flex; align-items:center; height:40px; }
.backers img { max-height:26px; max-width:100%; width:auto; filter:brightness(0) invert(1); opacity:.72; }
.backers img[alt="Capital Eleven"] { max-height:38px; }

/* ---------- 2. Tray ---------- */
.s-tray { --sh-a:.7; --sh-b:.48; }
.chips-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.home .chip { min-height:44px; min-width:64px; display:inline-flex; align-items:center; justify-content:center; color:var(--n25); border-color:rgba(255,255,255,.35); background:rgba(9,15,21,.45); cursor:pointer; }
.home .chip[aria-pressed="true"] { background:var(--n25); color:var(--n950); border-color:var(--n25); }

/* ---------- 4. Building: bright towers, the full A3 strength ---------- */
.s-building { --sh-a:.9; --sh-b:.75; }

/* ---------- 5. City ---------- */
.s-city { --sh-a:.88; --sh-b:.72; }

/* ---------- 6. Footer: round-10 Company footer, social row with GitHub ---------- */
.fz .social { margin-top:24px; display:flex; gap:10px; }
.fz .social a { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--n200); border-radius:10px; color:var(--n900); }

/* ---------- States ---------- */
.home :is(a, button):focus-visible { outline:2px solid var(--b200); outline-offset:3px; }
@media (hover:hover) and (pointer:fine){
  .home .btn-primary:hover { background:var(--b100); }
  .home .btn-secondary:hover { border-color:var(--n0); background:rgba(9,15,21,.55); }
  .room-pill:hover, .home .chip:not([aria-pressed="true"]):hover { border-color:rgba(255,255,255,.7); }
  .fz .social a:hover { border-color:var(--n400); }
}

/* ---------- Very wide screens: the copy column hugs the left third like the live Home, clear of the rack ---------- */
@media (min-width:2001px){
  .home .wrap { max-width:2400px; }
  .home .fz .wrap { max-width:1340px; }
}

/* ---------- Phone ---------- */
@media (max-width:760px){
  .home .topline { white-space:normal; font-size:.8125rem; padding:8px 16px; }
  .home .h-page { font-size:2.25rem; line-height:1.08; }
  .home .h-sec { font-size:1.75rem; line-height:1.15; }
  .home .intro { font-size:1.0625rem; }
  .home .body { font-size:1rem; }
  .stop > .bg img { object-position:51.25% 50%; }
  .stop-main { align-items:flex-end; }
  .stop-main > .wrap { padding-top:96px; padding-bottom:40px; }
  /* A3 phone: ellipse about 390 x 460 px half-axes around the words (r8 M1 lightness so the picture still shows above) */
  .copy::before { inset:-220px -200px -260px; }
  .s-rest { --sh-a:.7; --sh-b:.55; }
  .s-building { --sh-a:.82; --sh-b:.62; }
  .s-city { --sh-a:.82; --sh-b:.62; }
  .s-rest::after { background:linear-gradient(180deg, rgba(9,15,21,.55) 0, rgba(9,15,21,0) 170px), linear-gradient(0deg, rgba(9,15,21,.94) 0%, rgba(9,15,21,.7) 16%, rgba(9,15,21,0) 40%); }
  .s-rest .stop-main > .wrap { padding-top:140px; padding-bottom:20px; }
  .home .actions { flex-direction:column; align-items:stretch; }
  .home .actions .btn { width:100%; }
  .room-bars { gap:5px; }
  .room-bars i { width:14px; }
  .room-bars i.now { width:24px; }
  .backers { padding-bottom:28px; }
  .backers ul { display:flex; flex-wrap:wrap; gap:14px 22px; }
  .backers li { height:26px; }
  .backers img { max-height:18px; }
  .backers img[alt="Capital Eleven"] { max-height:26px; }
}

/* ---------- Capture fixes (round 11 look): nav below the banner, headline break, even logo row ---------- */
.home .nav { position:relative; }
#h-rest .tone { display:block; }
@media (min-width:761px) { .backers ul { display:flex; justify-content:space-between; gap:24px; } .backers li { flex:none; } }

/* Room switch, quiet (Jacob: "make this more hidden ... don't need the button saying what the room is"): bars only, each a 44 px tap target */
.rooms-quiet { gap:0; margin-top:28px; }
.rooms-quiet .rb { background:none; border:0; padding:20px 4px; cursor:pointer; }
.rooms-quiet .rb i { display:block; width:22px; height:3px; border-radius:2px; background:rgba(255,255,255,.3); }
.rooms-quiet .rb.now i { width:34px; background:linear-gradient(90deg, var(--n25) 0 55%, rgba(255,255,255,.3) 55% 100%); }
@media (hover:hover) { .rooms-quiet .rb:hover i { background:rgba(255,255,255,.65); } }

/* ===== Round 12 (Dec 2) ===== */
/* Tray: a spec panel in dark glass, the same glass as the pop-ups; three big numbers */
.s-tray::after { background:linear-gradient(90deg, rgba(9,15,21,.55) 0%, rgba(9,15,21,0) 55%); }
.spec { max-width:36rem; padding:36px 36px 32px; border-radius:18px; background:rgba(13,27,42,.62); border:1px solid rgba(255,255,255,.14); -webkit-backdrop-filter:blur(18px) saturate(1.2); backdrop-filter:blur(18px) saturate(1.2); box-shadow:0 24px 60px rgba(0,0,0,.35); }
.spec .label { color:var(--n200); }
.spec .chips-row { margin-top:20px; }
.nums { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:28px 0 0; border-top:1px solid rgba(255,255,255,.16); }
.nums > div { padding:18px 16px 0 0; }
.nums > div + div { padding-left:16px; border-left:1px solid rgba(255,255,255,.16); }
.nums dt { font:600 1.75rem/1.1 var(--display); color:var(--n0); letter-spacing:-.01em; }
.nums > div:last-child dt { font-size:1.25rem; line-height:1.25; }
.nums dd { margin:8px 0 0; font:400 .9375rem/1.4 var(--sans); color:var(--n200); }
.spec .actions { margin-top:28px; }

/* Building: the Owners page's shade strength (0.72 at the centre), not the heavier 0.9 */
.s-building { --sh-a:.72; --sh-b:.5; }

/* City: the final frame, frozen, with no words and no shade */
.s-city::after { background:none; }

/* Close: pull back to a dotted globe with metro markers */
.s-globe { background:radial-gradient(120% 90% at 70% 50%, #13263a 0%, var(--n950) 60%); }
.s-globe .globe-city { position:absolute; inset:0; z-index:-1; width:100%; height:100%; object-fit:cover; opacity:.16; mix-blend-mode:luminosity; }
.globe-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); align-items:center; gap:24px; }
.globe-copy { max-width:36rem; }
.s-globe canvas { width:100%; max-width:720px; aspect-ratio:1; justify-self:center; }
.globe-note { margin-top:22px; font:500 .8125rem/1.5 var(--mono, ui-monospace, monospace); letter-spacing:.06em; color:#8ea4b8; }

@media (max-width:760px){
  /* Phone rest: the picture shrinks and sits below the menu, so the rack is centred and clear of the header; the wall above is the picture's own black */
  .s-rest { background:#000; }
  .s-rest > .bg { inset:auto 0 auto 0; top:104px; height:56svh; }
  .s-rest > .bg img { object-position:50% 40%; }
  .s-rest::after { inset:0 0 auto 0; height:100svh; background:linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 52%, rgba(9,15,21,.85) 70%, var(--n950) 86%); }
  .s-rest .stop-main { min-height:calc(100svh - 112px); }
  /* Phone logos: Company's centred layout, in their own band under the first screen */
  .backers { background:var(--n950); padding:32px 0 36px; border-top:1px solid rgba(255,255,255,.1); }
  .backers .label { text-align:center; }
  .backers ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 24px; }
  .backers li { justify-content:center; height:40px; }
  .backers img { max-height:24px; }
  .backers img[alt="Capital Eleven"] { max-height:38px; }
  .backers li:last-child:nth-child(odd) { grid-column:1 / -1; }
  /* Phone tray: picture in the top half, a solid panel holds the bottom half (no fade over the servers) */
  .s-tray > .bg { bottom:auto; height:50svh; }
  .s-tray::after { background:none; }
  .s-tray .stop-main { align-items:flex-end; }
  .s-tray .stop-main > .wrap { padding:0 20px calc(40px + env(safe-area-inset-bottom)); width:100%; max-width:none; }
  .spec { max-width:none; min-height:50svh; border-radius:0; border:0; border-top:1px solid rgba(255,255,255,.14); background:var(--n950); -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none; padding:28px 20px 32px; }
  .nums dt { font-size:1.25rem; }
  .nums > div:last-child dt { font-size:1rem; }
  .nums dd { font-size:.8125rem; }
  .nums > div { padding:14px 10px 0 0; }
  .nums > div + div { padding-left:10px; }
  .s-building { --sh-a:.78; --sh-b:.58; }
  .globe-grid { grid-template-columns:1fr; padding-top:48px; padding-bottom:48px; align-content:center; }
  .s-globe canvas { max-width:340px; order:-1; }
}
/* Phone tray: the three numbers stack as rows (number left, meaning right) so nothing wraps into a narrow column */
@media (max-width:760px){
  .nums { grid-template-columns:1fr; margin-top:20px; }
  .nums > div, .nums > div + div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); align-items:baseline; gap:12px; padding:12px 0; border-left:0; border-bottom:1px solid rgba(255,255,255,.12); }
  .nums dt, .nums > div:last-child dt { font-size:1.25rem; line-height:1.2; }
  .nums dd { margin:0; font-size:.875rem; }
}
/* Banner text matches the other pages (15 px at every width) */
.home .topline { font-size:15px !important; }

/* With the camera on, the city stop is a point, not a window: the run pins as the camera reaches frame 729, so the
   globe pull follows the rise with no held frame between. --h:0 because site.css sizes paced stops by --h (default 1). */
html.cam-on .stop.s-city { min-height:0; height:0; --h:0; }
/* Phone building stop: the small caps label sits over the light facade (worst pixel 3.05:1 under the stop's pool), so a
   soft dark patch sits behind the label's own box only; the pool, the words and their places stay as they are. */
@media (max-width:760px){
  .home .s-building .copy .label { position:relative; }
  .home .s-building .copy .label::before { content:""; position:absolute; z-index:-1; inset:-10px -16px; border-radius:20px; pointer-events:none;
    background:rgba(9,15,21,.6); filter:blur(10px); }
}
