@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f6f5f0;
  --accent: #fbb909;
  --page-gutter: clamp(24px, 5.25vw, 100px);
}

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

body {
  margin: 0;
  background: #0a0b0d radial-gradient(ellipse at 82% 50%, #1d1919 0%, #111114 43%, #0a0b0d 78%);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  max-width: 1920px;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  overflow: hidden;
  overflow: clip;
}

.brand {
  z-index: 1;
  margin-inline: var(--page-gutter);
  padding-block: clamp(24px, 4.7vh, 46px);
}

.brand img {
  display: block;
  width: clamp(140px, 12.5vw, 189px);
  height: auto;
}

.hero {
  position: relative;
  display: grid;
  flex: 1;
  align-items: center;
  min-height: 520px;
  padding: clamp(42px, 8vh, 110px) var(--page-gutter) clamp(60px, 12vh, 145px);
}

.hero-copy {
  z-index: 1;
  max-width: min(51vw, 950px);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 5.3vw, 100px);
  font-weight: 490;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

h1 span {
  display: block;
}

p {
  max-width: 31em;
  margin: 1.55em 0 0;
  color: #c1c1c7;
  font-size: clamp(16px, 1.35vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.017em;
  text-wrap: pretty;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: calc(clamp(30px, 5.8vh, 70px) - 10px);
  color: var(--ink);
  font-size: clamp(16px, 1.38vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: underline 1px #99989b;
  text-underline-offset: 8px;
}

.invite {
  margin-top: clamp(30px, 5.8vh, 70px);
  color: #c1c1c7;
  font-size: clamp(16px, 1.38vw, 23px);
}

.invite + .contact, .invite ~ noscript .contact-plain {
  margin-top: 0;
}

.contact-plain {
  max-width: none;
  text-decoration: none;
}

.contact:hover {
  text-decoration-color: currentColor;
}

.contact:focus-visible, .motion-control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.art {
  position: absolute;
  inset: -6% -2% 0 auto;
  display: flex;
  width: 63%;
  align-items: center;
  justify-content: center;
}

.art-frame {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 760 / 590;
}

.art-bloom, .art-layer {
  position: absolute;
  display: block;
}

.art-bloom {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Extra drawing area leaves space for filaments drifting past the scene's edges. */
.art-layer {
  inset: -20%;
  width: 140%;
  height: 140%;
}

.art-layer[hidden], .motion-control[hidden], .contact[hidden],
.motion-control:not([data-paused]) .motion-play, .motion-control[data-paused] .motion-pause {
  display: none;
}

.motion-control {
  position: absolute;
  right: max(12px, calc(var(--page-gutter) - 14px));
  bottom: 12px;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a6a0a0;
  cursor: pointer;
}

.motion-control:hover, .motion-control:focus-visible {
  color: var(--ink);
}

.motion-control svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

@media (min-aspect-ratio: 2/1) and (min-width: 721px) {
  .hero {
    min-height: 420px;
  }

  .art {
    width: min(63%, max(58%, 115vh));
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 7vw;
  }

  .brand {
    padding-block: 26px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    padding-block: 26px 32px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    font-size: clamp(33px, 8.85vw, 58px);
  }

  p {
    max-width: 29em;
    margin-top: 16px;
    font-size: 16px;
  }

  .contact {
    margin-top: 12px;
    font-size: 16px;
  }

  .invite {
    margin-top: 20px;
    font-size: 16px;
  }

  .art {
    --art-height: clamp(210px, 32svh, 340px);
    position: relative;
    inset: auto;
    flex: none;
    width: 116%;
    height: var(--art-height);
    margin: 12px -8% 0;
  }

  .art-frame {
    width: min(100%, calc(var(--art-height) * 760 / 590));
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-control {
    display: none;
  }
}
