:root {
  color-scheme: dark;
  --black: #020203;
  --white: #f5f3f1;
  --muted: #aaa7a7;
  --red: #ff4050;
  --line: rgba(245, 243, 241, .55);
  --page: min(1440px, calc(100vw - 48px));
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

html { scrollbar-gutter: stable; }

body {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--white);
  font-family: "Archivo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(2, 2, 3, .12) 15%, rgba(2, 2, 3, .54) 72%, rgba(2, 2, 3, .84) 100%),
    linear-gradient(180deg, rgba(2, 2, 3, .18), rgba(2, 2, 3, .6));
  pointer-events: none;
}

.background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--black);
  filter: saturate(.75) contrast(.94) brightness(.72);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 92px 1fr 54px;
  width: var(--page);
  min-height: 100svh;
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 92px;
  padding-inline: max(24px, calc((100% - 1440px) / 2 + 24px));
  background: linear-gradient(180deg, rgba(2, 2, 3, .96), rgba(2, 2, 3, .78) 72%, transparent);
}

.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { display: block; width: clamp(158px, 15vw, 210px); height: auto; }

.outline-link,
.primary-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(2, 2, 3, .52);
  color: var(--white);
  font: 600 .72rem/1 var(--mono);
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 200ms cubic-bezier(.16, 1, .3, 1);
}

.outline-link { flex: 0 0 auto; height: 40px; padding-inline: 16px; }

.outline-link:hover,
.primary-links a:hover {
  border-color: var(--red);
  background: rgba(226, 31, 47, .16);
  color: var(--red);
}

a:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
::selection { background: var(--red); color: var(--black); }

.hero {
  grid-row: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  min-height: 0;
  min-width: 0;
  padding: clamp(40px, 7vh, 84px) 24px clamp(28px, 5vh, 56px);
  text-align: center;
}

.hero-copy { align-self: center; min-width: 0; }

h1 {
  max-width: 12ch;
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-stretch: 84%;
  font-variation-settings: "wdth" 84;
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: .92;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 span { color: var(--red); }

.hero-copy p {
  max-width: 64ch;
  margin: 26px auto 0;
  color: var(--muted);
  font: 500 clamp(.72rem, 1.15vw, .9rem)/1.7 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.primary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.primary-links a {
  min-width: 144px;
  height: 46px;
  padding-inline: 18px;
  border-color: var(--white);
  font-size: .78rem;
  font-weight: 700;
}

.primary-links a:hover { transform: translateY(-2px); }

footer {
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  color: rgba(245, 243, 241, .7);
  font: 400 .65rem/1 var(--mono);
  letter-spacing: .05em;
}

@media (max-width: 680px) {
  :root { --page: min(calc(100% - 32px), 620px); }
  .page-shell { grid-template-rows: 78px 1fr 48px; }
  .site-header { height: 78px; padding-inline: 16px; }
  .brand img { width: 148px; }
  .outline-link { height: 36px; padding-inline: 12px; font-size: .64rem; }
  .hero { padding: 48px 0 30px; }
  h1 { width: 100%; max-width: 100%; font-size: clamp(2.9rem, 14vw, 4.5rem); }
  .hero-copy p { max-width: 30ch; }
  .primary-links { display: grid; width: min(100%, 320px); margin-inline: auto; }
  .primary-links a { width: 100%; }
}

@media (max-height: 700px) and (min-width: 681px) {
  .hero { padding-block: 24px; }
  h1 { font-size: clamp(3rem, 6vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .background-video { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
