/* The sharp cover and translucent sheet share one continuous Orbit panorama. */
.spread {
  position: relative;
  isolation: isolate;
  --rule: rgba(231,241,255,.28);
  --muted: #e0e5ec;
}
.spread::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(180deg,rgba(4,7,16,.12),transparent 28%,transparent 54%,rgba(3,6,17,.64)),url("orbit-glass.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center,clamp(min(0px,calc(100vw - 234.375svh)),calc(30.55vw - 97.5svh),0px) center;
  background-color: #050811;
}
.cover { background: transparent; }
.cover-art { display: none; }
.sheet {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px,3.2vw,60px);
  border-inline-start: 1px solid rgba(227,240,255,.24);
  background: rgba(7,13,24,.94);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sheet {
    -webkit-backdrop-filter: blur(19px) saturate(1.35);
    backdrop-filter: blur(19px) saturate(1.35);
    background: linear-gradient(145deg,rgba(206,230,255,.065),transparent 40%,rgba(143,177,217,.055)),rgba(6,10,20,.66);
  }
}
@media (max-width:820px) {
  .spread::before { background-position: center,clamp(min(0px,calc(100vw - 234.375svh)),calc(56vw - 90svh),0px) center; }
  .cover { height: max(565px,85svh); }
  .sheet { padding: 30px 22px 34px; border-inline-start: 0; border-top: 1px solid rgba(227,240,255,.24); }
  h1 { padding-bottom: 35px; }
}
@media (prefers-reduced-transparency:reduce) {
  .sheet { background:#0c111a; -webkit-backdrop-filter:none; backdrop-filter:none; }
}

/* Keep the previously shared floating preview available for comparison. */
.floating-glass .sheet {
  margin: 18px 18px 18px 0;
  border-radius: 32px;
  border: 1px solid rgba(227,240,255,.42);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.37), inset 1px 0 2px rgba(220,237,255,.16), inset 0 -1px 2px rgba(146,181,230,.19), 0 16px 44px rgba(0,0,0,.28);
}
@media(max-width:820px){.floating-glass .sheet{margin:0 10px 12px;border-radius:26px;}}

/* Share the cover column so the header can stay pinned beyond the cover on phones. */
.site-header, .cover { grid-area: 1 / 1; }
.site-header { position: sticky; top: 0; align-self: start; z-index: 3; }
.sheet { grid-area: 1 / 2; }
.cover { justify-content: flex-end; }
.scroll-origin { position: absolute; inset: 0 auto auto 0; width: 1px; height: 2px; pointer-events: none; }
#contact:target .contact-links a:first-child,
#contact:focus .contact-links a:first-child {
  text-decoration-thickness: 2px;
  background: rgba(205, 228, 255, .13);
  border-radius: 3px;
  outline: 3px solid rgba(205, 228, 255, .13);
}
@media (max-width: 820px) {
  html { --bar-height: calc(68px + env(safe-area-inset-top, 0px)); scroll-padding-top: calc(var(--bar-height) + 12px); scroll-behavior: auto; }
  .spread::before { content: none; }
  .site-header {
    height: var(--bar-height);
    padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    margin-bottom: calc(-1 * var(--bar-height));
    border-bottom: 1px solid transparent;
  }
  .site-header.is-scrolled { background: #101724; border-color: rgba(227,240,255,.24); }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header.is-scrolled {
      background: linear-gradient(115deg,rgba(26,39,57,.79),rgba(9,14,24,.71));
      -webkit-backdrop-filter: blur(12px) saturate(1.25);
      backdrop-filter: blur(12px) saturate(1.25);
    }
  }
  .site-header .brand { max-width: 48%; }
  .site-header nav { gap: 4px; }
  .site-header nav a { display: grid; align-items: center; min-height: 44px; padding-inline: 8px; }
  .cover {
    background: linear-gradient(180deg,rgba(4,7,16,.12),transparent 54%,rgba(3,6,17,.64)),
                url("orbit-mobile.webp") 45% top / cover no-repeat #050811;
  }
  .sheet {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(155deg,rgba(6,10,20,.73),rgba(6,10,20,.86)),url("orbit-mobile-frost.webp") center / cover #101724;
  }
  #contact .contact-links a { min-height: 44px; align-items: center; width: fit-content; }
}
@media (max-width: 820px) and (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .sheet { background: #0c111a; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
