.orbit-intro {
  --orbit-intro-ready: 1;
  --intro-night: #101b30;
  --intro-ink: #fff7ee;
  --intro-silver: #d7e3f3;
  --intro-space: clamp(24px, 5svh, 72px);
  --open-duration: 1660ms;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  background:
    linear-gradient(90deg, #101b30a6, #101b306b 47%, #101b301a 100%),
    var(--intro-night) url("assets/orbit-winter-silk.webp") 70% center / cover no-repeat;
  color: var(--intro-ink);
  color-scheme: dark;
}

.orbit-intro:not([open]) { display: none; }
.orbit-intro::backdrop { background: #101b30; }
html.orbit-intro-active { overflow: hidden; scroll-behavior: auto; }
html.orbit-intro-defer-scenes:not(:has(:target)) :is(main > :not(.orbit-hero), .orbit-signoff) { display: none; }

.orbit-intro-wrap {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
  align-items: center;
  gap: clamp(16px, 3.8vw, 68px);
  width: 100%;
  max-width: 1540px;
  min-height: 100%;
  padding-block: max(var(--intro-space), env(safe-area-inset-top, 0px)) max(var(--intro-space), env(safe-area-inset-bottom, 0px));
  padding-inline: max(var(--edge), env(safe-area-inset-left, 0px)) max(var(--edge), env(safe-area-inset-right, 0px));
  margin-inline: auto;
}

.orbit-intro-copy {
  container-type: inline-size;
  text-shadow: 0 2px 24px #050c18bd;
}

.orbit-intro-copy::before {
  content: "";
  display: block;
  width: min(4rem, 22%);
  height: 1px;
  margin-bottom: clamp(16px, 2vw, 29px);
  background: linear-gradient(90deg, #f1f4fc, #93aac260);
  transform-origin: left;
}

.orbit-intro-copy h2 {
  font: 500 min(22.5cqi, 8.6rem)/.87 var(--serif);
  letter-spacing: -.052em;
}

.orbit-intro-copy h2 span,
.orbit-intro-copy h2 em { display: block; white-space: nowrap; }
.orbit-intro-copy h2 em { color: var(--intro-silver); }

.orbit-intro-copy p {
  margin-top: clamp(20px, 2.5vw, 38px);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 570;
}

.orbit-intro-open {
  position: absolute;
  z-index: 4;
  top: calc(60% - var(--seal-hit) / 2);
  bottom: calc(14% - 64px);
  left: 49.7%;
  display: grid;
  grid-template-rows: var(--seal-hit) 1fr 48px;
  justify-items: center;
  padding: 0;
  border: 0;
  transform: translateX(-50%);
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.orbit-seal-hit {
  display: grid;
  place-items: center;
  width: var(--seal-hit);
  height: var(--seal-hit);
  border-radius: 50%;
}

.orbit-seal-label {
  position: relative;
  isolation: isolate;
  grid-row: 3;
  display: grid;
  place-items: center;
  padding-inline: 17px;
  border-radius: 30px;
  color: #f0f4fb;
  font: 650 .91rem/1 var(--sans);
  white-space: nowrap;
}

.orbit-seal-label::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  border: 1px solid #b6c5df9e;
  border-radius: inherit;
  background: #14233a;
}

.orbit-intro-open:focus-visible { outline: none; }
.orbit-intro:not(.is-opening) .orbit-intro-open:focus-visible :is(.orbit-seal-hit, .orbit-seal-label) {
  outline: 2px solid #fbf4ee;
  outline-offset: 3px;
}

.orbit-intro.is-opening .orbit-intro-open { pointer-events: none; }
.orbit-intro.is-opening .orbit-seal-label { opacity: 0; }

.orbit-seal-face {
  position: relative;
  display: block;
  width: 16.4cqi;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 49% 52% 49% 51%;
  background: #a7a7ae url("assets/orbit-seal.webp") center / cover;
  box-shadow: 0 0 clamp(8px, 2.1cqi, 17px) #b8d2f59e, 2px 3px 9px #06101a7a;
  transition: transform .25s ease, box-shadow .25s ease;
}

.orbit-seal-face::before,
.orbit-seal-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-seal-face::before {
  border-radius: inherit;
  box-shadow: inset 0 1px 2px #f7fdffbd;
  background: radial-gradient(ellipse at 23% 15%, #f3f9ffa8, #c7ddf142 28%, transparent 57%);
}

.orbit-seal-face::after {
  inset: -21%;
  background: linear-gradient(115deg, transparent 28%, #b1d3fc43 41%, #f8fdffd9 48%, #fff 51%, #dceeff42 58%, transparent 71%);
  opacity: 0;
}

@media (hover: hover) {
  .orbit-intro-open:hover .orbit-seal-face { transform: scale(1.06); box-shadow: 0 0 23px #d1ddf2a6; }
  .orbit-intro-open:hover .orbit-seal-label::before { background: #22334e; border-color: #dce7fa; }
}
.orbit-intro-open:active .orbit-seal-face { transform: scale(.96); }

.orbit-intro-art {
  --seal-hit: max(48px, 16.4cqi);
  --seal-label-space: 40px;
  position: relative;
  isolation: isolate;
  align-self: center;
  justify-self: center;
  aspect-ratio: 3 / 2;
  width: 100%;
  margin-bottom: var(--seal-label-space);
  container-type: inline-size;
}

.orbit-intro-envelope {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.orbit-intro-envelope > img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  mask-image:
    linear-gradient(90deg, transparent, #000 7.5%, #000 93%, transparent),
    linear-gradient(180deg, transparent, #000 12%, #000 87%, transparent);
  mask-composite: intersect;
}

.orbit-envelope-mechanism {
  position: absolute;
  inset: 13% 7.5% 14%;
  opacity: 0;
  perspective: 880px;
  background: radial-gradient(ellipse at 50% 70%, #30415f, #101a2e);
  border-radius: 4px;
  box-shadow: 0 10px 28px #17254960;
}

.orbit-envelope-sheet {
  position: absolute;
  inset: 9% 10% 13%;
  container-type: inline-size;
}

.orbit-envelope-sheet, .orbit-live-card {
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid #c7ccdb;
  color: #fbf5ef;
  background: #151e39;
  box-shadow: 0 3px 12px #0e142b7d;
}

.orbit-envelope-sheet img, .orbit-live-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.orbit-envelope-sheet::before, .orbit-live-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101728e8 1%, #10172896 36%, #10172808 77%);
}

.orbit-envelope-sheet::after, .orbit-live-card::after {
  content: "";
  position: absolute;
  inset: 6% 4%;
  border: 1px solid #f5edf079;
}

.orbit-envelope-sheet p, .orbit-live-card p {
  margin-inline: 9%;
  font: 500 max(10px, 11cqi)/.88 var(--serif);
  letter-spacing: -.05em;
}

.orbit-envelope-sheet p em, .orbit-live-card p em { display: block; color: #d1ddf8; }

.orbit-live-card {
  position: fixed;
  z-index: 10;
  container-type: inline-size;
  pointer-events: none;
  transform-origin: center center;
  background: #101728;
}

.orbit-live-card::after { animation: orbit-live-border 760ms ease both; }
.orbit-envelope-sheet.is-out { visibility: hidden; }

.orbit-envelope-pocket {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background:
    linear-gradient(30deg, #40547700 49%, #2c3e60 50%, #40547700 51%),
    linear-gradient(-30deg, #40547700 49%, #2c3e60 50%, #40547700 51%),
    linear-gradient(0deg, #17213a, #283b60);
  clip-path: polygon(0 0, 50% 38%, 100% 0, 100% 100%, 0 100%);
}

.orbit-envelope-pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/orbit-unsealed.webp") center center / 117.65% auto;
  clip-path: polygon(0 54%, 29% 62%, 50% 86%, 71% 62%, 100% 54%, 100% 100%, 0 100%);
}

.orbit-envelope-flap {
  position: absolute;
  inset: 0 0 20%;
  transform-origin: center top;
}

.orbit-envelope-flap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #293e61 url("assets/orbit-unsealed.webp") center 31.8% / 117.65% auto;
  clip-path: polygon(0 0, 100% 0, 97% 12%, 52% 93%, 50% 96%, 48% 93%, 3% 12%);
}

.orbit-intro.is-opening { animation: orbit-intro-away var(--open-duration) ease-in-out both; }
.orbit-intro.is-opening::backdrop { animation: orbit-intro-away var(--open-duration) ease-in-out both; }
.orbit-intro.is-opening .orbit-intro-copy { animation: orbit-intro-copy-away var(--open-duration) ease-in-out both; }
.orbit-intro.is-opening .orbit-intro-envelope > img { animation: orbit-closed-away var(--open-duration) ease-out both; }
.orbit-intro.is-opening .orbit-seal-face { box-shadow: none; animation: orbit-seal-release var(--open-duration) cubic-bezier(.21, .71, .25, 1) both; }
.orbit-intro.is-opening .orbit-seal-face::before { opacity: 0; }
.orbit-intro.is-opening .orbit-envelope-mechanism { animation: orbit-mechanism-in var(--open-duration) linear both; }
.orbit-intro.is-opening .orbit-envelope-flap { animation: orbit-flap-open var(--open-duration) cubic-bezier(.22, .72, .29, 1) both; }
.orbit-intro.is-opening .orbit-envelope-sheet { animation: orbit-sheet-rise var(--open-duration) cubic-bezier(.22, .74, .2, 1) both; }
.orbit-intro.is-art-fallback .orbit-envelope-mechanism { opacity: 1; }

.orbit-snow {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orbit-hero .orbit-layout { position: relative; z-index: 1; }
.orbit-layout h1.orbit-focus-from-pointer:focus { outline: none; }
.orbit-snow i {
  position: absolute;
  top: var(--flake-y);
  left: var(--flake-x);
  width: var(--flake-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ebf3ff;
  box-shadow: 0 0 4px #dce9ff7d;
  animation: orbit-snow-drift 3.75s var(--flake-delay) linear both;
}

.orbit-snow i:nth-child(4n + 3)::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: #ebf3ff9e;
  clip-path: polygon(42% 0, 58% 0, 58% 40%, 94% 22%, 100% 36%, 64% 52%, 100% 70%, 92% 83%, 58% 64%, 58% 100%, 42% 100%, 42% 64%, 8% 83%, 0 70%, 36% 52%, 0 36%, 6% 22%, 42% 40%);
}

@media (prefers-reduced-motion: no-preference) {
  html.orbit-intro-active:not(.orbit-intro-revealing) .orbit-layout { animation: none; }
  .orbit-intro[open]:not(.is-opening) .orbit-intro-copy > *,
  .orbit-intro[open]:not(.is-opening) .orbit-intro-art {
    animation: orbit-ink-in 760ms var(--ink-delay, 65ms) cubic-bezier(.2, .7, .2, 1) both;
  }
  .orbit-intro[open]:not(.is-opening) .orbit-intro-copy::before { animation: orbit-foil-in 890ms 110ms cubic-bezier(.21, .71, .25, 1) both; }
  .orbit-intro-copy p { --ink-delay: 150ms; }
  .orbit-intro[open]:not(.is-opening) .orbit-seal-face::after { animation: orbit-seal-glint 3.4s .6s ease-in-out 3 both; }

  html.orbit-intro-revealing .orbit-layout > * {
    animation: orbit-ink-in 610ms var(--ink-delay, 1380ms) cubic-bezier(.19, .75, .31, 1) both;
  }
  html.orbit-intro-revealing .orbit-occasion { --ink-delay: 1510ms; }
  html.orbit-intro-revealing .orbit-date { --ink-delay: 1580ms; }
  html.orbit-intro-revealing .orbit-hero-actions,
  html.orbit-intro-revealing .orbit-read { --ink-delay: 1680ms; }
  html.orbit-intro-revealing .orbit-date::before { animation: orbit-foil-in 700ms 1580ms ease both; }
  /* Chapter entrances on scroll: see orbit-scroll.css / orbit-scroll.js. */
}

.orbit-date::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin-inline-end: .65rem;
  vertical-align: .28em;
  background: linear-gradient(90deg, #b3c4dc80, #f1f4fc);
  transform-origin: left;
}

@keyframes orbit-intro-away {
  0%, 77% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes orbit-intro-copy-away {
  0%, 28% { opacity: 1; transform: none; }
  69%, 100% { opacity: 0; transform: translateY(14px); }
}

@keyframes orbit-closed-away {
  0%, 6% { opacity: 1; }
  17%, 100% { opacity: 0; }
}

@keyframes orbit-mechanism-in {
  0% { opacity: 0; }
  15%, 100% { opacity: 1; }
}

@keyframes orbit-seal-glint {
  0% { transform: translateX(-76%); opacity: 0; }
  14% { opacity: .82; }
  32%, 100% { transform: translateX(76%); opacity: 0; }
}

@keyframes orbit-seal-release {
  0% { transform: perspective(350px) scale(.95); opacity: 1; }
  11% { transform: perspective(350px) translateY(-7%) rotateY(-24deg) rotateZ(-8deg) scale(1.07); opacity: 1; }
  26% { transform: perspective(350px) translate(66%, -68%) rotateY(46deg) rotateZ(23deg) scale(.93); opacity: 1; }
  43%, 100% { transform: perspective(350px) translate(125%, -88%) rotateY(68deg) rotateZ(34deg) scale(.82); opacity: 0; }
}

@keyframes orbit-flap-open {
  0%, 15% { transform: rotateX(0); }
  47%, 100% { transform: rotateX(-106deg); }
}

@keyframes orbit-sheet-rise {
  0%, 25% { transform: translateY(0); }
  55%, 100% { transform: translateY(-34%); }
}

@keyframes orbit-live-border {
  0%, 33% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes orbit-snow-drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  22%, 63% { opacity: .64; }
  54% { transform: translate3d(calc(var(--flake-drift) * .41), 33px, 0); }
  100% { opacity: 0; transform: translate3d(var(--flake-drift), 74px, 0); }
}

@keyframes orbit-ink-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes orbit-foil-in {
  from { opacity: .26; transform: scaleX(.04); }
  to { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 740px) {
  .orbit-intro {
    background:
      linear-gradient(180deg, #101b30b5, #101b3075 65%, #101b3038),
      var(--intro-night) url("assets/orbit-winter-silk.webp") 71% center / cover no-repeat;
  }

  .orbit-intro-wrap {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: clamp(10px, 2.6vw, 23px);
    max-width: 574px;
  }

  .orbit-intro-copy { text-align: center; }
  .orbit-intro-copy::before { margin-inline: auto; transform-origin: center; }
  .orbit-intro-copy h2 { font-size: min(20.5cqi, 6.65rem); }
  .orbit-intro-copy p { margin-top: clamp(16px, 4vw, 23px); }
}

@media (max-width: 600px) and (orientation: portrait) {
  .orbit-live-card img {
    object-position: 77% center;
    mask-image: linear-gradient(#000 48%, #000000bf 70%, transparent);
  }
}

@media (orientation: landscape) and (max-height: 530px) and (min-width: 380px) {
  .orbit-intro-wrap { grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); max-width: 1540px; }
  .orbit-intro-copy { text-align: start; }
  .orbit-intro-copy::before { margin-inline: 0; transform-origin: left; }
  .orbit-intro-copy h2 { font-size: min(22.5cqi, 17svh, 8.6rem); }
  .orbit-intro-copy p { margin-top: clamp(12px, 3svh, 21px); }
  .orbit-intro-art { max-width: max(14rem, calc((100svh - 2 * var(--intro-space) - var(--seal-label-space)) * 1.5)); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-intro.is-opening, .orbit-intro.is-opening::backdrop,
  .orbit-intro.is-opening * { animation: none; transition: none; }
  .orbit-intro-open .orbit-seal-face { transition: none; }
  .orbit-intro-open:is(:hover, :active) .orbit-seal-face { transform: none; }
  .orbit-snow { display: none; }
}
