html:has(.showcase-page) { scrollbar-width: none; }
html:has(.showcase-page)::-webkit-scrollbar { display: none; }

.showcase-hero {
  min-height: min(780px, calc(100vh - 64px));
  padding: clamp(52px, 6vw, 84px) clamp(20px, 4vw, 44px) clamp(58px, 6vw, 88px);
}
.showcase-hero-stage { min-height: 520px; }
.showcase-phone { width: min(252px, 58%); }
.showcase-phone img {
  width: calc(100% + 7px);
  max-width: none;
  object-position: left top;
}
.showcase-intro {
  padding-top: clamp(64px, 6vw, 88px);
  padding-bottom: clamp(24px, 3vw, 40px);
}
.showcase-experience { padding: clamp(34px, 4vw, 56px) clamp(20px, 4vw, 44px); }
.showcase-experience-visual { min-height: 560px; }
.showcase-experience-visual > a {
  width: min(290px, 88%);
  border-radius: 30px;
}
.showcase-experience-visual img,
.showcase-third-image img {
  width: calc(100% + 7px);
  max-width: none;
}
.showcase-proof {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(64px, 7vw, 92px) clamp(20px, 4vw, 44px);
}
.showcase-third {
  padding: clamp(68px, 7vw, 94px) clamp(20px, 4vw, 44px);
  grid-template-columns: 1fr minmax(260px, 340px);
}
.showcase-third-image { width: min(286px, 100%); }

@media (max-width: 820px) {
  .showcase-hero-stage { min-height: 540px; }
  .showcase-experience-visual { min-height: auto; }
  .showcase-third { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .showcase-hero-stage { min-height: 460px; }
}

/* Keep content-led device cards from inheriting the hero's fixed-height image rule. */
.showcase-experience-visual > .device-shell--phone img,
.showcase-third-image.device-shell--phone img,
.responsive-device--phone .device-shell--phone img { height: auto !important; }
.device-shell--tablet { padding-top: 24px; }

/* Final media geometry. */
.showcase-phone.device-shell--phone img,
.showcase-experience-visual > .device-shell--phone img,
.showcase-third-image.device-shell--phone img,
.responsive-device--phone .device-shell--phone img { width: 100% !important; max-width: none; }
.responsive-device--phone { top: 235px; }
.device-shell--tablet { aspect-ratio: 4 / 3; padding-top: 24px; }
.device-shell--tablet img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Mobile showcase: keep every device fully in-flow and inside the viewport. */
@media (max-width: 520px) {
  .showcase-responsive-stage {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 34px !important;
    height: auto !important;
    margin-top: 36px !important;
    overflow: visible !important;
  }
  .showcase-responsive-stage .responsive-device {
    position: static !important;
    inset: auto !important;
    width: min(100%, 360px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    transform: none !important;
  }
  .showcase-responsive-stage .responsive-device--desktop {
    left: auto !important;
    transform: none !important;
  }
  .showcase-responsive .showcase-responsive-stage .responsive-device.responsive-device--desktop {
    left: auto !important;
    transform: none !important;
  }
  .showcase-responsive-stage .responsive-device--phone {
    width: min(220px, 68vw) !important;
  }
  .showcase-responsive-stage .responsive-device img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* Keep the desktop experience perfectly level and mathematically centered. */
.showcase-responsive-stage .responsive-device--desktop {
  left: 50% !important;
  right: auto !important;
  transform: translate3d(-50%, 0, 0) rotate(0deg) !important;
}

/* The desktop is the anchor; the phone and tablet are the angled side companions. */
.responsive-device--desktop { left: 50%; transform: translateX(-50%); }
.device-shell--tablet img { object-fit: contain; background: #080d16; }

/* Last-word overrides: clean crops win the older shell crop rule, and the tablet reads as 4:3. */
.showcase-phone.device-shell--phone img,
.showcase-experience-visual > .device-shell--phone img,
.showcase-third-image.device-shell--phone img,
.responsive-device--phone .device-shell--phone img { width: 100% !important; max-width: none; }
.responsive-device--phone { top: 235px; }
.device-shell--tablet { aspect-ratio: 4 / 3; padding-top: 24px; }
.device-shell--tablet img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* The hero previews are absolutely composed; the generic shell must not put them back in flow. */
.showcase-phone.device-shell--phone { position: absolute; }

/* The mobile captures are cropped at source; keep the full clean viewport visible. */
.showcase-phone.device-shell--phone img,
.showcase-experience-visual > .device-shell--phone img,
.showcase-third-image.device-shell--phone img,
.responsive-device--phone .device-shell--phone img { width: 100% !important; }
.responsive-device--phone { top: 235px; }

/* Final device presentation: crop captured browser chrome and keep hero phones side-by-side. */
.showcase-phone.device-shell--phone img,
.showcase-experience-visual > .device-shell--phone img,
.showcase-third-image.device-shell--phone img,
.responsive-device--phone .device-shell--phone img {
  width: calc(100% + 14px) !important;
  max-width: none;
  object-fit: cover;
  object-position: left top;
}
.showcase-phone-fix { top: 64px; bottom: auto; }
.device-shell--tablet { position: relative; padding-top: 24px; border-radius: 24px; background: #080d16; }
.device-shell--tablet::before { content: 'NORTH / FIX  ·  TABLET EXPERIENCE'; position: absolute; z-index: 2; inset: 0 0 auto; height: 24px; display: flex; align-items: center; padding-left: 14px; background: #111824; color: #7891b8; font: 9px/1 'JetBrains Mono', monospace; letter-spacing: .1em; }
@media (min-width: 821px) {
  .showcase-hero-stage { min-height: 590px; }
  .showcase-phone { width: min(240px, 48%); }
}
@media (max-width: 820px) {
  .showcase-hero-stage { min-height: 560px; }
  .showcase-phone { width: min(240px, 47%); }
  .showcase-phone-house { left: 1%; }
  .showcase-phone-fix { right: 1%; top: 58px; }
}
@media (max-width: 520px) {
  .showcase-hero-stage { min-height: 400px; }
  .showcase-phone { width: 47%; border-radius: 28px; }
  .showcase-phone-fix { top: 42px; }
}

.device-shell { position: relative; display: block; overflow: hidden; background: #090e17; box-shadow: 0 30px 78px rgba(0,0,0,.42); }
.device-shell--phone { padding: 9px; border: 1px solid rgba(170,191,225,.3); border-radius: 38px; background: #080c14; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 32px 72px rgba(0,0,0,.52); }
.device-shell--phone img { width: 100% !important; height: 100%; object-fit: cover; border-radius: 28px; }
.showcase-phone.device-shell--phone { padding: 8px; }
.showcase-phone.device-shell--phone img { border-radius: 28px; }
.device-shell--desktop { padding: 22px 8px 8px; border: 1px solid rgba(170,191,225,.3); border-radius: 20px; }
.device-shell--desktop::before { content: 'THE HOUSE INDEX  ·  LIVE DESKTOP EXPERIENCE'; position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 22px; display: flex; align-items: center; padding-left: 14px; background: #111824; color: #7891b8; font: 9px/1 'JetBrains Mono', monospace; letter-spacing: .1em; }
.device-shell--desktop img { display: block; width: 100%; height: auto; border-radius: 10px; }
.device-shell--tablet { padding: 9px; border: 1px solid rgba(170,191,225,.3); border-radius: 28px; }
.device-shell--tablet img { display: block; width: 100%; height: auto; border-radius: 20px; }
.showcase-responsive { position: relative; overflow: hidden; padding: clamp(76px, 9vw, 132px) clamp(20px, 4vw, 44px) clamp(82px, 9vw, 134px); background: #f2f1ed; color: #101827; }
.showcase-responsive-copy { max-width: 700px; margin: 0 auto; text-align: center; }
.showcase-responsive-copy .dc-eyebrow { color: #375e91; }
.showcase-responsive-copy h2 { margin: 16px 0 0; font-size: clamp(36px, 5vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.showcase-responsive-copy h2 span { color: #315a92; }
.showcase-responsive-copy p { max-width: 620px; margin: 20px auto 0; color: #58677b; line-height: 1.7; }
.showcase-responsive-points { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.showcase-responsive-points span { padding: 9px 12px; border: 1px solid rgba(49,90,146,.2); color: #315a92; font: 10px/1 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.showcase-responsive-stage { position: relative; max-width: 1120px; height: 700px; margin: 64px auto 0; }
.responsive-device { position: absolute; margin: 0; }
.responsive-device figcaption { display: flex; gap: 9px; align-items: center; margin-top: 12px; color: #526278; font-size: 12px; font-weight: 700; }
.responsive-device figcaption span { color: #315a92; font: 10px/1 'JetBrains Mono', monospace; }
.responsive-device--desktop { left: 8%; top: 0; z-index: 1; width: min(760px, 70%); transform: rotate(-1deg); }
.responsive-device--tablet { right: 3%; top: 256px; z-index: 2; width: min(440px, 45%); transform: rotate(2deg); }
.responsive-device--phone { left: 2%; top: 350px; z-index: 3; width: min(220px, 25%); transform: rotate(-4deg); }
.responsive-device--phone figcaption { justify-content: center; }
@media (max-width: 820px) {
  .showcase-responsive-stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; margin-top: 44px; }
  .responsive-device { position: static; transform: none; width: auto; }
  .responsive-device--desktop { grid-column: 1 / -1; }
  .responsive-device--tablet { grid-column: 1; }
  .responsive-device--phone { grid-column: 2; align-self: end; }
  .responsive-device figcaption { font-size: 10px; line-height: 1.35; }
}
@media (max-width: 520px) {
  .showcase-responsive { padding-top: 68px; padding-bottom: 76px; }
  .showcase-responsive-stage { grid-template-columns: 1fr; gap: 34px; }
  .responsive-device--desktop, .responsive-device--tablet, .responsive-device--phone { grid-column: auto; width: min(100%, 360px); margin: 0 auto; }
  .responsive-device--phone { width: min(220px, 68%); }
  .responsive-device figcaption { justify-content: flex-start; }
}

/* Final responsive-scene position: let the phone overlap the desktop frame instead of dropping below it. */
.responsive-device--phone { top: 235px; }

/* Final cascade for content-led device cards. */
.showcase-experience-visual > .device-shell--phone img,
.showcase-third-image.device-shell--phone img,
.responsive-device--phone .device-shell--phone img { height: auto !important; }
.device-shell--tablet { padding-top: 24px; }

/* Final media geometry. */
.showcase-phone.device-shell--phone img,
.showcase-experience-visual > .device-shell--phone img,
.showcase-third-image.device-shell--phone img,
.responsive-device--phone .device-shell--phone img { width: 100% !important; max-width: none; }
.responsive-device--phone { top: 235px; }
.device-shell--tablet { aspect-ratio: 4 / 3; padding-top: 24px; }
.device-shell--tablet img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
