@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", sans-serif;
  background: #000;
  color: #fff;
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.home {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 20rem;
  overflow: hidden;
  background: #000;
}

.media,
.poster,
.hero-video,
.swap-layer,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media {
  z-index: -2;
  background: #000;
}

.poster,
.hero-video {
  object-fit: cover;
}

.poster {
  z-index: 0;
  opacity: 1;
  transition: opacity 300ms ease;
}

.poster.is-hidden {
  opacity: 0;
}

.base-video {
  z-index: 1;
  opacity: 0;
}

.base-video.is-playing {
  opacity: 1;
}

.interlude-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 700ms ease;
}

.interlude-video.is-playing {
  opacity: 1;
}

.swap-layer {
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.swap-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.swap-layer.is-visible {
  opacity: 1;
}

.shade {
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 32%, transparent 62%, rgba(0, 0, 0, .58)),
    linear-gradient(90deg, rgba(0, 0, 0, .34), transparent 45%, rgba(0, 0, 0, .22));
  pointer-events: none;
}

/* Top scrim: the hero film runs behind the masthead, and a bright chrome band
   crossing under the wordmark collapses its contrast. This keeps the mark legible
   over every frame of the loop without lighting up the page. */
.masthead-scrim {
  position: absolute;
  z-index: 15;
  top: 0;
  right: 0;
  left: 0;
  height: clamp(7rem, 14vh, 11rem);
  background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.masthead {
  position: absolute;
  z-index: 20;
  top: clamp(1rem, 2vw, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  left: clamp(1rem, 2vw, 2rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.pill,
.mail {
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(0, 0, 0, .2);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pill {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.menu-toggle {
  justify-self: start;
}

.wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .55);
}

/* OG ixprt lockup: the leading i carries the brand blue (src/styles.css:284) */
.wordmark-i {
  color: #4ea6ea;
}

.mail {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
}

.mail svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.roster {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: clamp(1rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .48rem;
  transform: translateY(-50%);
}

.roster-pill {
  min-height: 2.2rem;
}

.pill:hover,
.pill:focus-visible,
.mail:hover,
.mail:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #000;
  outline: none;
}

.positioning {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: clamp(1rem, 4vw, 4.5rem);
  width: min(23rem, 30vw);
  margin: 0;
  font-size: clamp(.95rem, 1.15vw, 1.18rem);
  line-height: 1.42;
  text-wrap: balance;
  transform: translateY(-50%);
}

.display-line {
  position: absolute;
  z-index: 10;
  right: 1rem;
  bottom: clamp(1.2rem, 3vw, 2.75rem);
  left: 1rem;
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(3rem, 8.5vw, 9.5rem);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.055em;
  text-align: center;
  white-space: nowrap;
}

.menu-overlay[hidden] {
  display: none;
}

.menu-overlay {
  position: absolute;
  z-index: 15;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  background: rgba(0, 0, 0, .88);
  opacity: 0;
  transition: visibility 0s linear 240ms, opacity 240ms ease;
}

body.menu-open .menu-overlay {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.menu-overlay nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

.menu-overlay a {
  font-family: "Newsreader", serif;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1;
}

.menu-overlay a:hover,
.menu-overlay a:focus-visible {
  color: rgba(255, 255, 255, .58);
  outline: none;
}

@media (hover: none), (pointer: coarse) {
  .swap-layer {
    display: none !important;
  }

  .roster {
    top: 4.75rem;
    right: auto;
    bottom: auto;
    left: .75rem;
    display: flex;
    gap: .3rem;
    transform: none;
  }

  .roster-pill {
    min-height: 2.35rem;
    padding: .55rem .8rem;
    font-size: clamp(.62rem, 2.4vw, .78rem);
  }

  .display-line {
    bottom: 1.5rem;
    font-size: clamp(2.15rem, 10.2vw, 3rem);
  }

  .positioning {
    top: 5rem;
    right: .75rem;
    left: auto;
    width: min(45vw, 11rem);
    font-size: clamp(.65rem, 2.7vw, .78rem);
    line-height: 1.45;
    text-align: left;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .swap-layer {
    display: none !important;
  }

  .poster {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none;
  }

  .menu-overlay,
  .pill {
    transition: none;
  }
}

.is-constrained .hero-video,
.is-constrained .swap-layer {
  display: none !important;
}

.is-constrained .poster {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-height: 560px) and (hover: hover) {
  .roster {
    gap: .25rem;
  }

  .roster-pill {
    min-height: 1.85rem;
    padding-block: .35rem;
  }

  .display-line {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
  }
}

@media (max-width: 700px) and (hover: hover) {
  .positioning {
    top: 45%;
    right: 1rem;
    width: min(15rem, 52vw);
  }
}
