/* Selected Orbit + Circuit hero. */
.theme-orbit {
  --paper: #050c18;
  --muted: #b5c9de;
  --line: #23415e;
}
.theme-orbit .site-header {
  position: absolute;
  justify-content: flex-end;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.theme-orbit .nav-cta {
  border-color: #7fa4ca;
}
.orbit-opening {
  --orbit-brand-width: clamp(320px, 37vw, 520px);
  --orbit-brand-top: max(160px, calc(50svh - var(--orbit-brand-width) / 2.44));
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.orbit-backdrop {
  position: absolute;
  inset: 0;
  bottom: auto;
  /* Center the footage on the logo, independently of the content below it. */
  height: calc(var(--orbit-brand-top) * 2 + var(--orbit-brand-width) / 1.22);
  z-index: -2;
  background: #06192d url("/assets/orbit-circuit.webp") center / cover;
}
.orbit-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.orbit-backdrop video.video-is-ready {
  opacity: 1;
}
.orbit-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #020b2080 0%,
    #0310234d 30%,
    #020c2160 60%,
    #050c18 100%
  );
}
.orbit-hero {
  min-height: max(930px, 100vh);
  min-height: max(930px, 100dvh);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Place the logo's center halfway down the first viewport. */
  padding-top: var(--orbit-brand-top);
  padding-bottom: 112px;
  text-align: center;
}
.orbit-hero-copy {
  position: relative;
  z-index: 1;
}
.orbit-opening[data-clip="circuit"] .orbit-hero {
  /* Approximately 2 cm higher, with clearance for the navigation. */
  padding-top: max(104px, calc(var(--orbit-brand-top) - 76px));
}
.orbit-hero-brand {
  position: relative;
  width: var(--orbit-brand-width);
  max-width: 100%;
  aspect-ratio: 1.22;
  overflow: hidden;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px #0006);
}
.orbit-hero-logo {
  /* Fit the original artwork's transparent canvas without shrinking the mark. */
  position: absolute;
  width: 112%;
  max-width: none;
  top: -18%;
  left: -6%;
}
.orbit-logo-lettering {
  display: none;
}
@supports (mask-mode: luminance) {
  .orbit-logo-emblem {
    /* Preserve the user's S; older browsers retain the complete original logo. */
    clip-path: inset(0 28.5% 37.4% 28.5%);
  }
  .orbit-logo-lettering {
    /* Reveal the video through the clean master's black matte and counters. */
    display: block;
    clip-path: inset(61.7% 0 0);
    mask-image: url("/assets/logo-engineering-light.webp");
    mask-mode: luminance;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
  }
}
.theme-orbit h2 span,
.orbit-panel h3 span {
  color: #9bdbff;
}
.orbit-hero-copy > p {
  max-width: 650px;
  margin: 24px auto 0;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.55;
  color: #d0e0f2;
  text-wrap: pretty;
}
.orbit-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 440px;
  margin: 30px auto 0;
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}
.orbit-action-link {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #a9d7ff55;
  color: #f7fbff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}
.orbit-action-link .icon {
  width: 18px;
  height: 18px;
}
.orbit-action-primary {
  flex: 1.2;
}
.orbit-action-primary .icon {
  width: 32px;
  height: 32px;
  padding: 7px;
  border: 1px solid #9dd7ff66;
  border-radius: 50%;
  background: #1688e82b;
}
.orbit-action-secondary {
  color: #c3d9ed;
}
.orbit-action-link:hover {
  color: #fff;
  border-color: #b9e5ff;
}
.orbit-action-primary:hover .icon {
  background: #1688e866;
}
@media (scripting: enabled) {
  .orbit-actions:not(.is-revealed) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
  }
}
.orbit-offer {
  position: absolute;
  bottom: 0;
  inset-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #55779680;
  padding: 25px 0 30px;
  color: #c0d3e7;
  font-size: 14px;
}
.orbit-offer > span + span {
  border-left: 1px solid #447196;
}

@media (max-width: 700px) {
  .theme-orbit .site-header { height: 88px; }
  .orbit-opening {
    --orbit-brand-width: min(340px, calc(100vw - 48px));
    --orbit-brand-top: max(140px, calc(45svh - var(--orbit-brand-width) / 2.44));
  }
  .orbit-hero-copy > p { font-size: 17px; margin-top: 24px; max-width: 460px; }
  .orbit-actions { gap: 18px; max-width: 340px; margin-top: 24px; }
  .orbit-action-link { min-height: 48px; gap: 6px; font-size: 13px; }
  .orbit-action-primary .icon { width: 28px; height: 28px; padding: 5px; }
  .orbit-backdrop { background-image: url("/assets/orbit-circuit-mobile.webp"); }
  .orbit-offer { grid-template-columns: 1fr 1fr; row-gap: 16px; padding: 23px 0; font-size: 12px; }
  .orbit-offer > span:nth-child(3) { border: 0; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .orbit-opening { --orbit-brand-width: clamp(220px, 28vw, 320px); --orbit-brand-top: max(104px, calc(50svh - var(--orbit-brand-width) / 2.44)); }
}
@media (max-width: 700px), (max-width: 1000px) and (max-height: 600px) and (orientation: landscape) {
  /* Fill the visible screen, while allowing long copy and landscape to grow. */
  .orbit-hero { min-height: 100vh; min-height: 100dvh; padding-bottom: 0; row-gap: 32px; }
  .orbit-offer { position: static; margin-top: auto; }
  /* Preserve the logo/video framing and blend the bottom into the next chapter. */
  .orbit-opening::after { content: ""; position: absolute; inset: auto 0 0; height: 80px; z-index: -1; background: linear-gradient(180deg, transparent, #050c18); pointer-events: none; }
}

/* Shared footer width. Continuation components live in experience.css. */
.premium-wrap { max-width: 1600px; }
