@font-face {
  font-family: "Morena";
  src: url("/fonts/Morena-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Morena";
  src: url("/fonts/Morena-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #121212;
  --text: #8a8a8a;
  --bright: #c7c7c7;
  font-family: "Morena", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; }
[hidden] { display: none !important; }
::selection { background: #8a8a8a; color: #121212; }
:focus-visible { outline: 1px solid var(--bright); outline-offset: 8px; border-radius: 2px; }

.landing {
  min-height: 540px;
  height: 100svh;
  position: relative;
  overflow: clip;
}

.identity {
  position: absolute;
  inset: 50% 24px auto;
  transform: translateY(-50%);
  text-align: center;
}

.wordmark {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.2;
  white-space: nowrap;
}

.wordmark span { font-weight: 300; }

.portal {
  position: absolute;
  bottom: calc(100% + 28px);
  left: 50%;
  width: 300px;
  height: 260px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
}

.object-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  transition: opacity 360ms ease, transform 600ms cubic-bezier(.2,.75,.25,1), filter 400ms ease;
}

.object-button:hover { filter: brightness(1.12); }
.object-button:active { transform: scale(.97); }
.object-canvas, .object-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(.8); transform-origin: 50% 63%; }
.object-fallback { transform: translateY(36px) scale(.8); }
.object-canvas { opacity: 0; }
.canvas-ready .object-canvas { opacity: 1; }
.canvas-ready .object-fallback { visibility: hidden; }

.main-navigation { width: 230px; }
.main-navigation ul, .site-footer ul { list-style: none; margin: 0; padding: 0; }
.main-navigation a {
  display: grid;
  grid-template-columns: 24px 1fr 20px;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  padding: 6px 8px;
  text-align: left;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.025em;
  transition: color 200ms ease;
}

.menu-number { font-size: 10px; letter-spacing: .05em; opacity: .8; }
.menu-arrow { font-size: 19px; opacity: 0; transform: translate(-4px, 4px); transition: opacity 200ms ease, transform 200ms ease; }
a:hover, a:focus-visible { color: var(--bright); }
a:hover .menu-arrow, a:focus-visible .menu-arrow { opacity: 1; transform: none; }
.is-enhanced .main-navigation { visibility: hidden; pointer-events: none; }
.is-enhanced .main-navigation li { opacity: 0; transform: translateY(10px); transition: opacity 400ms ease, transform 500ms cubic-bezier(.2,.75,.25,1); }
.is-open .main-navigation { visibility: visible; pointer-events: auto; }
.is-open .main-navigation li { opacity: 1; transform: none; transition-delay: calc(90ms + var(--index) * 60ms); }
.main-navigation li:nth-child(1) { --index: 0; }
.main-navigation li:nth-child(2) { --index: 1; }
.main-navigation li:nth-child(3) { --index: 2; }
.main-navigation li:nth-child(4) { --index: 3; }
.is-open .object-button { opacity: 0; transform: scale(.83) rotate(7deg); pointer-events: none; }

.interaction-caption {
  position: absolute;
  top: calc(100% + 28px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  min-height: 44px;
  align-items: center;
  font-size: 11px;
  letter-spacing: .06em;
}

.close-button { min-height: 44px; padding: 8px 12px; font-size: 11px; letter-spacing: .06em; }
.close-button span { display: inline-block; font-size: 19px; margin-right: 8px; vertical-align: -1px; }
.close-button:hover { color: var(--bright); }

.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(24px, 5vw, 64px); }
.home-link { font-size: 17px; letter-spacing: -.04em; }
.back-link { font-size: 12px; }
.back-link span { margin-right: 8px; }
.section-content { width: min(720px, calc(100% - 48px)); margin: clamp(70px, 14vh, 150px) auto; }
.eyebrow { font-size: 11px; letter-spacing: .12em; }
.section-content h1 { font-size: clamp(44px, 8vw, 76px); line-height: 1.1; font-weight: 400; letter-spacing: -.055em; margin: 24px 0 48px; }
.section-content p { max-width: 46ch; font-size: 15px; line-height: 1.7; }
.section-content .eyebrow { font-size: 11px; }
.section-content .section-status { color: var(--bright); font-size: 21px; margin-bottom: 8px; }
.return-link { display: inline-block; min-height: 44px; margin-top: 32px; font-size: 13px; padding: 14px 0; border-bottom: 1px solid #353535; }
.return-link span { margin-left: 28px; }
.site-footer { padding: 32px 24px; border-top: 1px solid #242424; }
.site-footer ul { display: flex; justify-content: center; gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.site-footer .menu-number, .site-footer .menu-arrow { display: none; }
.site-footer [aria-current="page"] { color: var(--bright); }

@media (max-width: 600px) {
  .portal { width: 250px; height: 235px; bottom: calc(100% + 24px); }
  .main-navigation { width: 210px; }
  .main-navigation a { font-size: 21px; min-height: 49px; }
  .interaction-caption { top: calc(100% + 22px); }
}

@media (max-height: 650px) {
  .landing { min-height: 360px; }
  .identity { top: max(50%, 240px); }
  .portal { height: 205px; width: 240px; bottom: calc(100% + 12px); }
  .main-navigation a { min-height: 45px; font-size: 20px; }
  .interaction-caption { top: calc(100% + 10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
