/* ===== Round 6 (Dec 2, 02:25Z): Jacob's second batch on the round-5 board ===== */

/* Owners hero card at the same place as Company's: the hero aligns to the top and the card gets Company's margin (190 px desktop, 110 px phone) */
.r6.card-up .plate.full { align-items:flex-start !important; }
.r6.card-up .plate .first-copy { margin-top:190px !important; }
@media (max-width:760px){
  .r6.card-up .plate .first-copy { margin-top:110px !important; padding:18px !important; }
  .r6.card-up.o-mosaic .plate h1 { font-size:1.85rem !important; }
}

/* Soft hero bottom: fade into the same white as the section below, no muddy band and no seam */
.r6.fade .plate.full::after { background:linear-gradient(90deg,color-mix(in srgb,var(--n950) 72%,transparent),transparent 62%), linear-gradient(0deg,var(--n0) 0%,rgba(255,255,255,.9) 9%,rgba(255,255,255,.45) 22%,rgba(255,255,255,0) 40%) !important; }

/* Hero without a card: text straight on the render, a stronger left scrim carries the contrast */
.r6.nocard .plate .first-copy { background:none !important; border:0 !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; box-shadow:none !important; padding-left:0 !important; padding-right:0 !important; }
.r6.nocard .plate.full::after { background:linear-gradient(90deg,rgba(9,15,21,.9) 0%,rgba(9,15,21,.72) 34%,rgba(9,15,21,.2) 62%,transparent 80%), linear-gradient(0deg,var(--n0) 0%,rgba(255,255,255,.9) 9%,rgba(255,255,255,0) 36%) !important; }

/* Team on a phone: a quiet "Read bio" link under the role instead of the + */
@media (max-width:760px){
  .r6.tm-link.m-flip .team .person .front::after { content:none !important; display:none !important; }
  .r6.tm-link.m-flip .team .person .front .txt::after { content:"Read bio →" !important; display:block !important; position:static !important; width:auto !important; height:auto !important; border:0 !important; background:none !important; margin-top:6px; font:500 .8125rem/1.3 var(--sans) !important; letter-spacing:0 !important; text-transform:none !important; color:var(--b600) !important; box-shadow:none !important; }
}

/* "We do it all": text back beside the headline (Jacob: "let's go back to what we had with text on the side") */

/* Rooms on desktop: one row; the room you point at widens to show the whole room */
@media (min-width:761px){
  .r6.rm-strip .r3 { display:flex !important; gap:10px !important; height:380px; width:auto !important; margin:56px 0 0 !important; overflow:hidden !important; }
  .r6.rm-strip .r3 figure { flex:1 1 0; min-width:0; height:100% !important; aspect-ratio:auto !important; margin:0; border-radius:14px; overflow:hidden; position:relative; transition:flex-grow var(--pc-duration-slower, 600ms) var(--pc-ease-in-out, cubic-bezier(0.4, 0, 0.2, 1)); }
  .r6.rm-strip .r3 figure.on { flex-grow:5; }
  .r6.rm-strip .r3 img { width:100%; height:100%; object-fit:cover; object-position:50% 50% !important; }
  .r6.rm-strip .r3 figure:not(.on) figcaption { opacity:0; transition:opacity var(--pc-duration-base, 200ms) var(--pc-ease-out, cubic-bezier(0.4, 1, 0.6, 1)); }
  .r6.rm-strip .r3 figure.on figcaption { opacity:1; transition-duration:var(--pc-duration-slow, 400ms); }
}
/* Reduced motion: the room you point at widens at once; its name still fades (opacity only). */
@media (min-width:761px) and (prefers-reduced-motion:reduce){
  .r6.rm-strip .r3 figure { transition:none; }
}
/* Rooms on a phone: small tiles in one swipe row, the name under each picture */
@media (max-width:760px){
  .r6.rm-strip .r3 { display:flex !important; grid-template-areas:none !important; grid-template-rows:none !important; overflow-x:auto !important; scroll-snap-type:x mandatory; gap:10px !important; margin:28px -20px 0 !important; padding:0 20px 4px !important; scrollbar-width:none; height:auto; width:auto !important; }
  .r6.rm-strip .r3 figure { flex:0 0 42%; height:auto !important; aspect-ratio:auto !important; margin:0; border-radius:0; overflow:visible; scroll-snap-align:start; background:none; }
  .r6.rm-strip .r3 img { display:block; width:100%; aspect-ratio:4/5; height:auto !important; object-fit:cover; object-position:50% 50% !important; border-radius:10px; }
  .r6.rm-strip .r3 figcaption { position:static !important; margin-top:8px; padding:0 !important; border:0 !important; background:none !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; font:500 .8125rem/1.3 var(--sans) !important; color:var(--n700) !important; }
}

/* Estimate on a phone: intro text straight on the render like desktop; only the form is glass */
@media (max-width:760px){
  .r6.est-plain .gest .split > div:first-child { background:none !important; border:0 !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; box-shadow:none !important; padding:0 !important; }
}

/* Build your cluster from a hero button: a centred liquid-glass modal */
.r6.cl-glass .scrim .dlg ~ .dlg { display:none !important; }
.r6.cl-glass .scrim { backdrop-filter:blur(2px) !important; background:rgba(9,15,21,.35) !important; }
.r6.cl-glass .dlg { max-width:520px; background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(255,255,255,.42)), rgba(244,246,248,.5) !important; border:1px solid rgba(255,255,255,.6) !important; backdrop-filter:blur(30px) saturate(180%); -webkit-backdrop-filter:blur(30px) saturate(180%); box-shadow:inset 0 1px 0 rgba(255,255,255,.7), 0 30px 70px rgba(0,0,0,.35) !important; border-radius:20px; }
/* fix: the white fade sits on top of the left scrim, so the hero bottom has no dark edge */
.r6.fade .plate.full::after { background:linear-gradient(0deg,var(--n0) 0%,rgba(255,255,255,.9) 9%,rgba(255,255,255,.45) 22%,rgba(255,255,255,0) 40%), linear-gradient(90deg,color-mix(in srgb,var(--n950) 72%,transparent),transparent 62%) !important; }
.r6.nocard .plate.full::after { background:linear-gradient(0deg,var(--n0) 0%,rgba(255,255,255,.9) 9%,rgba(255,255,255,0) 36%), linear-gradient(90deg,rgba(9,15,21,.9) 0%,rgba(9,15,21,.72) 34%,rgba(9,15,21,.2) 62%,transparent 80%) !important; }
@media (max-width:760px){
  .r6.rm-strip .r3 figure { flex:0 0 36% !important; }
  .r6.rm-strip .r3 figure:first-child { margin-left:20px !important; }
  .r6.rm-strip .r3 figure:last-child { margin-right:20px !important; }
}
.r6.cl-glass .scrim { display:flex !important; justify-content:center !important; align-items:center !important; }
.r6.cl-glass .scrim .dlg { margin:0 auto !important; position:relative !important; left:auto !important; transform:none !important; }
@media (max-width:760px){ .r6.est-plain .gest.plate::after { background:linear-gradient(180deg,rgba(9,15,21,.84),rgba(9,15,21,.62)) !important; } }
@media (min-width:761px){ .r6.cl-glass .scrim .dlg { position:fixed !important; left:50% !important; top:50% !important; transform:translate(-50%,-50%) !important; margin:0 !important; width:520px; } }
@media (max-width:760px){
  .r6.rm-strip .r3 { margin:28px 0 0 !important; padding:0 0 4px !important; }
  .r6.rm-strip .r3 figure:first-child { margin-left:0 !important; }
  .r6.rm-strip .r3 figure:last-child { margin-right:0 !important; }
}
@media (min-width:761px){ .r6.rm-strip .r3 figure:not(.on) figcaption { display:none !important; } }
