@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #202020;
  --ink: rgb(255 255 255 / 0.8);
  --muted: rgb(255 255 255 / 0.8);
  --green: #119980;
  --green-bright: #38ef7d;
  --link-line: #6fcf97;
  --apex: 14rem;
  --orbit-radius: clamp(40rem, 85vw, 145rem);
  --orbit-size: calc((var(--apex) + var(--orbit-radius)) * 2);
  --orbit-window: min(58vh, calc(var(--apex) + var(--orbit-radius) * 0.26 + 3.5rem));
  --card-w: clamp(16.5rem, 22vw, 24.5rem);
  --spin-duration: 70s;
  --count: 20;
  color-scheme: dark;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr var(--orbit-window);
  min-height: 100dvh;
  overflow: hidden;
}

.brand {
  position: relative;
  z-index: 2;
  justify-self: center;
  margin-top: 1.35rem;
  color: var(--ink);
}

.brand:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 4px;
}

.logo {
  display: block;
  height: 2.15rem;
  width: auto;
  fill: url("#logo-green");
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  padding: 1.5rem 1.5rem clamp(1rem, 3vh, 2.5rem);
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
  color: transparent;
  background-image: linear-gradient(98deg, var(--green) 0%, var(--green-bright) 32%);
  background-clip: text;
}

.hero-copy h1,
.hero-copy p {
  animation: hero-fade 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy p {
  margin: 1.15rem auto 0;
  max-width: 34em;
  font-size: clamp(1.35rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
  animation-delay: 0.22s;
}

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
}

.hero-copy a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--link-line), var(--link-line));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  padding-bottom: 0.06em;
  transition: background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-copy a:hover,
.hero-copy a:focus-visible {
  background-size: 100% 1.5px;
}

.orbit {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin-left: calc(var(--orbit-size) / -2);
  animation: orbit-spin var(--spin-duration) linear infinite;
}

.orbit-slots {
  position: absolute;
  inset: 0;
}

.orbit-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(calc((var(--i) - 1) * 360deg / var(--count)));
}

.site-card {
  position: absolute;
  left: 0;
  top: calc(var(--orbit-radius) * -1);
  width: var(--card-w);
  padding: 0.22rem 0.22rem 0;
  border-radius: 0.35rem;
  background: #f4f4f4;
  color: #202020;
  box-shadow: 0 1.1rem 2.4rem rgb(0 0 0 / 0.45);
  transform: translate(-50%, -50%);
  text-decoration: none;
  cursor: pointer;
}

.site-card:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

.preview {
  aspect-ratio: 16 / 10.2;
  border-radius: 0.18rem;
  overflow: hidden;
  background: #e4e4e4;
}

.preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.site-card-title {
  margin: 0;
  padding: 0.72rem 0.45rem 0.78rem;
  font-size: 0.84rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-align: left;
}

@keyframes orbit-spin {
  to {
    transform: rotate(-360deg);
  }
}

@media (max-width: 720px) {
  :root {
    --apex: 12rem;
    --orbit-radius: 262vw;
    --orbit-window: min(46vh, 24rem);
    --card-w: 70vw;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring,
  .hero-copy h1,
  .hero-copy p {
    animation: none;
  }
}
