@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/sora-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/ibm-plex-mono-600-latin.woff2") format("woff2");
}

:root {
  --ink: #071027;
  --ink-soft: #25324c;
  --ice: #eef5fb;
  --ice-2: #ddeaf6;
  --white: #ffffff;
  --cyan: #16d9ff;
  --violet: #8d67ff;
  --line-dark: rgba(7, 16, 39, 0.2);
  --line-light: rgba(255, 255, 255, 0.28);
  --pad: clamp(1.25rem, 3.2vw, 3.5rem);
  --header-h: clamp(4.5rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --entrance-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ice);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ice);
  font-family: "Sora", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  min-height: var(--header-h);
  padding: 1.2rem var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.brand {
  width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  width: 40px;
  height: 40px;
  display: block;
}

.site-header__statement {
  margin: 0;
  font-weight: 600;
  text-align: center;
}

.menu-toggle {
  justify-self: end;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--ink);
  background: rgba(238, 245, 251, 0.72);
  border: 1px solid rgba(7, 16, 39, 0.24);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--ease);
}

.menu-toggle:hover {
  color: var(--white);
  background: var(--ink);
  transform: translateY(-2px);
}

.menu-toggle:active {
  transform: translateY(0);
}

.menu-toggle__line {
  width: 20px;
  height: 1.5px;
  display: block;
  background: currentColor;
}

.menu-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(7, 16, 39, 0.32);
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: opacity 240ms ease;
}

.menu-backdrop[hidden],
.site-menu[hidden] {
  display: none;
}

.menu-backdrop.is-open {
  opacity: 1;
}

.site-menu {
  position: fixed;
  z-index: 21;
  inset: 0 0 0 auto;
  width: min(100%, 30rem);
  padding: clamp(1.25rem, 3.2vw, 3.5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--white);
  background: var(--ink);
  transform: translateX(100%);
  transition: transform 320ms var(--ease);
}

.site-menu.is-open {
  transform: translateX(0);
}

.site-menu.is-open .site-menu__label,
.site-menu.is-open .site-menu__close,
.site-menu.is-open .site-menu__link,
.site-menu.is-open .site-menu__note {
  animation: menu-item-enter 680ms var(--entrance-ease) both;
}

.site-menu.is-open .site-menu__close { animation-delay: 40ms; }
.site-menu.is-open .site-menu__link { animation-delay: 90ms; }
.site-menu.is-open .site-menu__note { animation-delay: 160ms; }

@keyframes menu-item-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.site-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-menu__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-menu__close {
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-menu__close:hover {
  color: var(--ink);
  background: var(--white);
}

.site-menu__close svg,
.site-menu__link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.site-menu__nav {
  display: flex;
  align-items: center;
}

.site-menu__link {
  width: 100%;
  min-height: 88px;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.site-menu__link svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 180ms var(--ease);
}

.site-menu__link:hover svg {
  transform: translate(3px, -3px);
}

.site-menu__note {
  max-width: 26rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.site-menu :focus-visible {
  outline-color: var(--cyan);
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 72%, rgba(93, 183, 255, 0.28), transparent 35%),
    var(--ice);
}

.hero__media,
.hero__video,
.hero__media-scrim,
.hero__frame {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -2;
  background: var(--ice) url("assets/stage-poster.jpg") 50% 58% / cover no-repeat;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.hero__media-scrim {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(241, 247, 252, 0.76) 0%, rgba(238, 245, 251, 0.22) 38%, rgba(8, 16, 39, 0.05) 100%),
    linear-gradient(90deg, rgba(238, 245, 251, 0.3), transparent 18%, transparent 82%, rgba(238, 245, 251, 0.3));
  pointer-events: none;
}

.hero.is-media-failed .hero__video {
  display: none;
}

.hero__frame {
  inset: 0.75rem;
  z-index: 2;
  border: 1px solid rgba(7, 16, 39, 0.13);
  pointer-events: none;
}

.hero__corner {
  position: absolute;
  width: 18px;
  height: 18px;
}

.hero__corner::before,
.hero__corner::after {
  content: "";
  position: absolute;
  background: rgba(7, 16, 39, 0.55);
}

.hero__corner::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 1px;
}

.hero__corner::after {
  left: 8px;
  top: 0;
  width: 1px;
  height: 18px;
}

.hero__corner--tl { top: 1rem; left: 1rem; }
.hero__corner--tr { top: 1rem; right: 1rem; }
.hero__corner--bl { bottom: 1rem; left: 1rem; }
.hero__corner--br { right: 1rem; bottom: 1rem; }

.hero__index {
  position: absolute;
  right: var(--pad);
  top: 46%;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  font-size: 12px;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.hero__index-line {
  width: 1px;
  height: 3.5rem;
  background: rgba(7, 16, 39, 0.42);
  transform-origin: 50% 0%;
}

.hero__heading-wrap {
  position: absolute;
  z-index: 3;
  top: clamp(5.4rem, 10.5vh, 8.25rem);
  left: 50%;
  width: min(94vw, 92rem);
  transform: translateX(-50%);
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 clamp(1rem, 2vh, 1.8rem);
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  display: grid;
  row-gap: 0.08em;
  color: var(--ink);
  font-size: clamp(3.5rem, 8.9vw, 9.25rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero__title span {
  display: block;
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
}

.js.motion-pending [data-enter="media"] {
  opacity: 0.55;
  transform: scale(1.055);
}

.js.motion-pending [data-enter="frame"],
.js.motion-pending .brand__logo,
.js.motion-pending .site-header__statement,
.js.motion-pending .menu-toggle,
.js.motion-pending .hero__eyebrow,
.js.motion-pending .hero__title > span,
.js.motion-pending .hero__cta,
.js.motion-pending [data-enter="index"],
.js.motion-pending [data-enter="caption"],
.js.motion-pending [data-enter="metadata"],
.js.motion-pending .hero__corner {
  opacity: 0;
}

.hero__cta {
  min-height: 48px;
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
  padding: 0.85rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--ease);
}

.hero__cta:hover {
  color: var(--ink);
  background: var(--white);
  transform: translateY(-2px);
}

.hero__cta:active {
  transform: translateY(0);
}

.hero__cta-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transition: transform 180ms var(--ease);
}

.hero__cta:hover .hero__cta-icon {
  transform: translate(2px, -2px);
}

.hero__cta:focus-visible {
  outline-color: var(--cyan);
}

.hero__caption {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: clamp(1.8rem, 5vh, 4rem);
  width: min(23rem, 38vw);
}

.hero__caption p {
  margin: 0 0 1.2rem;
  max-width: 21rem;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero__metadata {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  bottom: clamp(1.8rem, 5vh, 4rem);
}

.hero__coords {
  margin: 0 0 0.72rem;
  font-size: 12px;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: right;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header__statement {
    display: none;
  }

  .hero__title {
    font-size: clamp(3.7rem, 12vw, 7rem);
  }

  .hero__coords,
  .hero__index {
    display: none;
  }

}

@media (max-width: 520px) {
  .site-menu {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 1rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__video {
    object-position: 50% 64%;
  }

  .hero__media {
    background-position: 50% 64%;
  }

  .hero__heading-wrap {
    top: clamp(6.5rem, 15vh, 8rem);
    width: calc(100% - 2.5rem);
  }

  .hero__eyebrow {
    margin-bottom: 1.25rem;
    font-size: 12px;
  }

  .hero__title {
    font-size: clamp(3.45rem, 17vw, 5.5rem);
    line-height: 0.96;
  }

  .hero__cta {
    width: min(100%, 19rem);
    margin-top: 1.5rem;
  }

  .hero__caption {
    left: var(--pad);
    right: var(--pad);
    bottom: 5.75rem;
    width: auto;
  }

  .hero__caption p {
    max-width: 17rem;
    font-size: 16px;
  }

  .hero__metadata {
    right: var(--pad);
    bottom: 1.5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-menu.is-open .site-menu__label,
  .site-menu.is-open .site-menu__close,
  .site-menu.is-open .site-menu__link,
  .site-menu.is-open .site-menu__note {
    animation: none;
  }

  .js.motion-pending [data-enter],
  .js.motion-pending .brand__logo,
  .js.motion-pending .site-header__statement,
  .js.motion-pending .menu-toggle,
  .js.motion-pending .hero__eyebrow,
  .js.motion-pending .hero__title > span,
  .js.motion-pending .hero__cta,
  .js.motion-pending .hero__corner {
    opacity: 1;
    transform: none;
    clip-path: none;
    filter: none;
  }

}
