@font-face {
  font-family: Kite;
  src: url("/fonts/kite-wide-core.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("/fonts/barlow-core.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #10151a;
  --text: #f3f0e9;
  --subtle: #b9c1c5;
  --brass: #e4ba78;
  --rule: #727d874d;
  --inset: clamp(1.5rem, 6.5vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 1.125rem/1.5 Barlow, system-ui, sans-serif;
}

h1, h2, p, figure { margin: 0; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 4;
  padding: .55rem .85rem;
  background: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.studio-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  border-block-end: 1px solid #c1c9d033;
  padding: clamp(.8rem, 2.2vw, 1.55rem) var(--inset);
}

.studio-mark {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.studio-mark img { inline-size: 2.3rem; block-size: auto; }
.studio-mark .studio-wordmark { inline-size: 8.1rem; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding: 9rem var(--inset) clamp(5.4rem, 13vh, 11rem);
  background: #17222a;
}

.hero-picture, .berth-window, .hero::before {
  position: absolute;
  inset: 0;
}

.hero-picture {
  z-index: -2;
  overflow: hidden;
}

.hero-picture img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 58% 48%;
}

.hero::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--ink), #0c1218d9 15%, #0c12185e 47%, transparent 70%),
    linear-gradient(90deg, #0a0f16ba, #0a0f1640 52%, transparent 76%),
    linear-gradient(180deg, #0a0f167a, transparent 18%);
}

.hero-copy { max-inline-size: 84rem; }

.status {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-block-end: 1.1rem;
  color: #f0c88b;
  font: 650 .76rem/1.25 system-ui, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  inline-size: .45rem;
  block-size: .45rem;
  background: currentColor;
  transform: rotate(45deg);
}

.hero h1 {
  font: 800 clamp(2.65rem, 10vw, 10.6rem)/.96 Kite, "Arial Black", system-ui, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.hero-description {
  max-inline-size: 30ch;
  margin-block: 1.1rem 1.8rem;
  color: #e2e6e6;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.first-look-link {
  display: inline-flex;
  align-items: center;
  gap: 1.7rem;
  min-block-size: 3rem;
  padding: .6rem 1.05rem;
  border: 1px solid #e4ba787a;
  background: #11171dcd;
  text-decoration: none;
}

.first-look-link span { color: var(--brass); }

.hero-foot {
  position: absolute;
  inset: auto var(--inset) .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 1.4rem;
}

.berth-view { margin-inline-start: auto; }
.berth-view summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-block-size: 2.75rem;
  padding: .3rem .7rem;
  border: 1px solid #a5afb445;
  background: #10151ac2;
  color: #f3eee4;
  font: 550 .82rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  list-style: none;
}
.berth-view summary::-webkit-details-marker { display: none; }
.berth-kind {
  border-inline-start: 1px solid #a5afb475;
  padding-inline-start: .65rem;
  color: #bcc6cb;
  font-size: .74rem;
  font-weight: 450;
}
.berth-arrow { color: var(--brass); }
.berth-return, .berth-view[open] :is(.berth-enter, .berth-kind) { display: none; }
.berth-view[open] .berth-return { display: inline; }
.berth-view[open] { display: flow-root; inline-size: 100%; }
.berth-view[open] summary { float: right; margin-inline-start: 1.5rem; }
.berth-view summary:hover, .berth-center:hover { border-color: var(--brass); }
.hero:has(.berth-view[open]) .hero-copy { opacity: 0; pointer-events: none; }
.hero:has(.berth-view[open]) .first-look-link { visibility: hidden; }
.hero:has(.berth-view[open])::before { opacity: 0; }
.hero-foot:has(.berth-view[open]) :is(.signal-trigger, .signal-error) { display: none; }
.hero-foot:has(.berth-view[open]) {
  display: block;
  inset: auto 0 0;
  padding: .8rem var(--inset) max(.8rem, env(safe-area-inset-bottom));
  border-block-start: 1px solid #bdc7c754;
  background: linear-gradient(100deg, #172026f5, #0c1217f5);
}
.berth-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1.4rem;
  min-block-size: 2.75rem;
}
.berth-caption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: .65rem;
  color: var(--text);
  line-height: 1.15;
}
.berth-view[open] .berth-caption::before {
  content: "";
  grid-row: span 2;
  inline-size: 2.55rem;
  block-size: 1.8rem;
  background: url("/brand/orbital.svg") center / contain no-repeat;
}
.berth-caption strong { font: 650 clamp(1.25rem, 1.8vw, 1.8rem)/1.06 Barlow, system-ui, sans-serif; }
.berth-caption > span { color: #c9d0d2; font-size: .9rem; }
.berth-description {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.berth-original { color: var(--brass); text-underline-offset: .2em; }
.berth-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .15rem .8rem;
}
.berth-controls[hidden], .berth-original[hidden] { display: none; }
.berth-controls label { color: #d4dadd; font-size: 1rem; }
.berth-controls input {
  inline-size: clamp(8rem, 17vw, 19rem);
  min-inline-size: 0;
  block-size: 2.75rem;
  margin: 0;
  accent-color: var(--brass);
  cursor: ew-resize;
}
.berth-center {
  min-block-size: 2.75rem;
  padding: .3rem .65rem;
  border: 1px solid #a5afb459;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.berth-window {
  z-index: -2;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.hero:has(.berth-view[open]) .berth-window[data-ready] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.hero:has(.berth-view[open]) .berth-window[data-dragging] { cursor: grabbing; }
.berth-window :is(picture, img, canvas) {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
}
.berth-window img {
  object-fit: cover;
  object-position: var(--berth-x, 55%) 48%;
  transform: scale(var(--berth-zoom, 1));
  transform-origin: var(--berth-x, 55%) 48%;
}
.berth-window canvas[hidden] { display: none; }

.signal-trigger {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-block-size: 2.75rem;
  padding: 0 .65rem;
  border: 1px solid transparent;
  background: #10151a70;
  color: #d6c7ac;
  font: 500 .7rem/1.3 ui-monospace, Consolas, monospace;
  letter-spacing: .055em;
  cursor: pointer;
}

.signal-trigger[hidden] { display: none; }
.signal-trigger:is(:hover, :focus-visible) { border-color: #9d7955; color: #ffe0ad; }
.signal-trigger[aria-busy="true"] { cursor: progress; }

.signal-trigger-light {
  inline-size: .42rem;
  block-size: .42rem;
  border-radius: 50%;
  background: #d8a361;
  box-shadow: 0 0 9px #d8a3618c;
}

.signal-error {
  position: absolute;
  inset: auto auto 100% 0;
  padding: .25rem .65rem;
  background: var(--ink);
  color: var(--text);
  font-size: .95rem;
}

.signal-error:empty { padding: 0; }

.first-looks, .footer {
  max-inline-size: 114rem;
  margin-inline: auto;
  padding-inline: var(--inset);
}

.first-looks {
  padding-block: clamp(3.7rem, 8vw, 8rem) clamp(3.5rem, 7vw, 7rem);
  scroll-margin-block-start: 1rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 3rem;
  margin-block-end: clamp(1.55rem, 4vw, 3rem);
}

.section-heading h2 {
  font: 750 clamp(2.1rem, 4.8vw, 4.6rem)/1.06 system-ui, sans-serif;
  letter-spacing: -.055em;
}

.section-heading p, .footer { color: var(--subtle); }

.stills {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
}

.stills figure { min-inline-size: 0; }

.still-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: #1a252e;
}

.still-link picture, .still-link img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.still-link img { object-fit: cover; }

.still-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: .85rem;
  min-block-size: 2.75rem;
  padding-inline: .85rem;
  border: solid #c1c9d066;
  border-width: 1px 0 0 1px;
  background: #10151aee;
  color: var(--text);
  font-size: 1rem;
}

.still-arrow span { color: var(--brass); }

figcaption {
  padding-block-start: .85rem;
  color: #e5e6e1;
  font-size: 1.22rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: .65rem 1.5rem;
  padding-block: 1.35rem 2rem;
  border-block-start: 1px solid var(--rule);
  font-size: 1rem;
}

.footer details { max-inline-size: 36ch; }
.footer summary { cursor: pointer; }
.footer details p { margin-block-start: .45rem; }

@media (hover: hover) {
  .first-look-link:hover { border-color: var(--brass); }
  .still-link:hover .still-arrow { background: #332a20; }
}

@media (max-width: 700px) {
  .hero {
    min-block-size: max(37rem, 90svh);
    padding-block: 8rem 6rem;
  }

  .hero-picture img { object-position: 56% 40%; }

  .hero::before {
    background:
      linear-gradient(0deg, var(--ink), #0c1218e6 16%, #0c121864 52%, transparent 76%),
      linear-gradient(180deg, #0c12188c, transparent 20%);
  }

  .hero h1 { font-size: clamp(1.95rem, 9.85vw, 4.7rem); }
  .hero-description { margin-block: .95rem 1.45rem; }
  .hero-foot { inset-block-end: .9rem; }
  .section-heading { display: grid; gap: .5rem; }
  .stills { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 800px) {
  .berth-toolbar { display: block; }
  .berth-caption { min-block-size: 2.75rem; justify-content: start; grid-template-columns: auto auto; }
  .berth-original, .berth-controls { clear: both; }
  .berth-original { display: inline-block; margin-block-start: .4rem; }
  .berth-controls { padding-block-start: .45rem; }
  .berth-controls input { flex: 1 1 5rem; }
}
@media (max-width: 420px) {
  .berth-kind { display: none; }
  .berth-view[open] summary { margin-inline-start: .55rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .signal-trigger-light { animation: receiver-beacon 2.5s .8s both; }
  .hero::before, .hero-copy { transition: opacity .3s ease; }
  .berth-window { transition: opacity .28s ease; }
  .first-look-link {
    transition: border-color .2s ease, background .2s ease;
  }
  .still-link img { transition: transform .5s cubic-bezier(.2, .75, .25, 1); }

  @media (hover: hover) {
    .still-link:hover img { transform: scale(1.04); }
  }

  @supports (animation-timeline: view()) {
    .still-link picture {
      animation: appear linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 27%;
    }
  }
}

@keyframes appear {
  from { opacity: .22; transform: translateY(.6rem); }
  to { opacity: 1; transform: none; }
}

@keyframes receiver-beacon {
  0%, 45%, 100% { opacity: 1; }
  24%, 68% { opacity: .46; }
}
