@font-face {
  font-family: Gilroy;
  src: url("media/gilroy-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Gilroy;
  src: url("media/gilroy-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Bellota;
  src: url("media/Bellota-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --fg: #f7f7f2;
  --muted: #8a8a8a;
  --lime: #b6ff00;
  --pill-dark: #3a4a00;
  --pill-gray: #3a3a3a;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 500 1rem/1.55 Gilroy, system-ui, sans-serif;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.05; }

.wrap { width: min(1160px, calc(100% - 3.5rem)); margin-inline: auto; }
.bar {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bar-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  white-space: nowrap;
  font-family: Bellota, Gilroy, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--lime);
  text-decoration: none;
}
.brand-mark { width: auto; height: 0.75em; }
nav { display: inline-block; white-space: nowrap; margin-left: auto; }
nav a { display: inline-block; color: var(--muted); text-decoration: none; line-height: 1; }
nav a + a { margin-left: 1.25rem; }
@media (width > 790px) {
  nav a + a { margin-left: 2.5rem; }
}
nav a:hover { color: var(--lime); }
nav a[aria-current="page"] { color: var(--lime); }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h1 {
  font-size: 68px;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
  color: var(--lime);
}
.intro {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}
.button {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.5rem;
  padding-block: calc(0.9rem + 0.11em) calc(0.9rem - 0.11em);
  border: 1.5px solid var(--lime);
  border-radius: 999px;
  background: transparent;
  color: var(--lime);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.button:hover {
  background: var(--lime);
  color: #101300;
}

.pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: auto;
  margin-bottom: 80px;
}
.pill {
  display: block;
  width: 100%;
  height: 0.9rem;
  border-radius: 999px;
  background: var(--charge-color, var(--pill-dark));
}
.pill.active { --charge-color: var(--lime); }

h2 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.045em; }
.policy { max-width: 760px; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.policy h1 { font-size: 68px; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.policy h2 { font-size: 1.65rem; margin-top: 2.25rem; margin-bottom: .55rem; }
.policy p { color: var(--muted); margin-bottom: .55rem; }
.policy ul {
  margin: .3rem 0 1.4rem;
  padding: 0;
  list-style: none;
}
.policy li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: .5rem;
  color: var(--muted);
}
.policy li::before {
  content: "—";
  position: absolute;
  left: 0;
}

@media (max-width: 790px) {
  h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .policy h1 { font-size: clamp(1.75rem, 9vw, 3rem); }
}
@media (max-width: 480px) {
  .pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pill:nth-child(n + 4) { display: none; }
  .pill:nth-child(3) { --charge-color: var(--lime); }
  .wrap { width: calc(100% - 2rem); }
  .bar { min-height: 70px; }
  .bar-inner { align-items: center; }
  .brand-name { display: none; }
  .brand-mark { height: 30px; }
  nav { white-space: normal; text-align: right; }
  nav a { font-size: .9375rem; }
  nav a + a { margin-left: 20px; }
}
@media (max-width: 400px) {
  nav a { font-size: .875rem; }
}

@keyframes battery-charge {
  from { background-color: transparent; }
  50% { background-color: var(--lime); }
  to { background-color: var(--charge-color, var(--pill-dark)); }
}

@keyframes landing-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

:is(.landing, .policy-page) {
  --brand-duration: 120ms;
  --intro-duration: 120ms;
  --headline-duration: 120ms;
  --headline-start: var(--brand-duration);
  --intro-delay: calc(var(--headline-start) + var(--headline-duration));
  --button-duration: var(--brand-duration);
  --enter-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

:is(.landing, .policy-page) :is(.brand, nav) {
  animation: landing-fade-in var(--brand-duration) ease-in-out;
}

.policy h1 ~ *,
.hero-text .intro,
.hero-text .button {
  animation: landing-fade-in var(--fade-duration, var(--brand-duration)) ease-in-out
    var(--enter-delay) backwards;
}

:is(.hero-text, .policy) h1 {
  animation: landing-fade-in var(--headline-duration) var(--enter-ease)
    var(--headline-start) backwards;
}

.hero-text h1 { letter-spacing: -0.04em; }
.headline-line { display: block; }

@keyframes mask-reveal-up {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.policy h1 ~ *,
.hero-text .intro {
  --fade-duration: var(--intro-duration);
  --enter-delay: var(--intro-delay);
}
.hero-text .button {
  --fade-duration: var(--button-duration);
  --enter-delay: var(--intro-delay);
}

@media (prefers-reduced-motion: no-preference) {
  :is(.landing, .policy-page) {
    --brand-duration: 900ms;
    --headline-start: 200ms;
    --intro-delay: 350ms;
    --intro-duration: 900ms;
    --line-duration: 760ms;
    --line-stagger: 90ms;
  }

  .landing {
    --button-duration: 600ms;
    --headline-duration: calc(var(--line-duration) + var(--line-stagger));
  }

  :is(.hero-text, .policy) h1 { animation: none; }
  .headline-line { overflow: clip; overflow-clip-margin: 0.15em; }
  .headline-line + .headline-line { --line-delay: var(--line-stagger); }
  .headline-line > span {
    display: block;
    animation: mask-reveal-up var(--line-duration) cubic-bezier(0.22, 1, 0.36, 1)
      calc(var(--headline-start) + var(--line-delay, 0ms)) backwards;
  }

  .landing .pills {
    --pills-delay: var(--intro-delay);
    --pills-duration: 600ms;
    --charge-start: calc(var(--pills-delay) + var(--pills-duration) / 2);
    --charge-step: 200ms;
    animation: landing-fade-in var(--pills-duration) ease-in-out var(--pills-delay) backwards;
  }

  .pills .pill {
    overflow: hidden;
    background: var(--pill-gray);
  }

  .pills .pill:nth-child(2) { --charge-index: 1; }
  .pills .pill:nth-child(3) { --charge-index: 2; }
  .pills .pill:nth-child(4) { --charge-index: 3; }
  .pills .pill:nth-child(5) { --charge-index: 4; }
  .pills .pill:nth-child(6) { --charge-index: 5; }

  .pills .pill::before {
    content: "";
    display: block;
    height: 100%;
    border-radius: inherit;
    background-color: transparent;
    animation: battery-charge calc(2 * var(--charge-step)) ease-in-out
      calc(var(--charge-start) + var(--charge-index, 0) * var(--charge-step)) forwards;
  }

  .pills.has-random-accent .pill { --charge-color: var(--pill-dark); }
  .pills.has-random-accent .is-highlighted { --charge-color: var(--lime); }
  .pills.has-random-accent .pill::before {
    animation: none;
    background-color: var(--charge-color);
    transition: background-color 600ms ease-in-out;
  }
}

:is(.landing, .policy-page) .brand:focus,
.hero-text .button:focus,
.policy h1 ~ *:focus-within,
:is(.landing, .policy-page) nav:focus-within { animation: none; }
