@font-face {
  font-family: "Archivo";
  src: url("/fonts/Archivo-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Wide";
  src: url("/fonts/ArchivoWide-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #04050b;
  --bg-raised: #0a0d1a;
  --ink: #f1f1f4;
  --ink-muted: #a9adc4;
  --line: rgb(241 241 244 / 0.12);
  --line-strong: rgb(241 241 244 / 0.3);
  --blue: #4971ff;
  --cyan: #30ffff;

  --font-display: "Archivo Wide", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Film grain over the glow images, tiled so it stays sharp at any width */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/images/grain.png") 0 0 / 128px 128px;
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
}

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  padding-block: 28px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 160ms ease-out;
}

.site-header nav a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 920px);
  padding-block: 160px 96px;
  background: var(--bg) url("/images/hero-wave.webp") center top / cover no-repeat;
}

/* Blends the image's lower edge into the page ground */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
}

.lead {
  max-width: 56ch;
  margin-top: 28px;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: var(--ink-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.button:hover {
  border-color: var(--ink);
}

.button--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.button--primary:hover {
  background: #fff;
}

/* Sections */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.section__intro {
  max-width: 68ch;
}

.section h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}

.kicker {
  margin-top: 12px;
  font-weight: 600;
  color: var(--cyan);
}

.section__intro .kicker + p {
  margin-top: 24px;
  color: var(--ink-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  margin-top: 56px;
}

.card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--blue);
}

.card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.5rem;
}

.card p {
  color: var(--ink-muted);
}

.card p + p {
  margin-top: 16px;
}

.card .card__problem {
  color: var(--ink);
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.0625rem;
}

/* Team */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.person {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.person h3 {
  font-size: 1.25rem;
}

.person__role {
  margin-top: 6px;
  color: var(--cyan);
  font-weight: 600;
}

/* Contact */

.contact {
  padding-block: clamp(96px, 14vw, 176px);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(to right, var(--bg) 25%, transparent 75%),
    var(--bg) url("/images/glow-sweep.webp") right center / cover no-repeat;
}

.contact h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}

.contact p {
  max-width: 52ch;
  margin-top: 20px;
  color: var(--ink-muted);
}

.contact__email {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 5vw, 3.25rem);
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 160ms ease-out;
}

.contact__email:hover {
  text-decoration-color: var(--cyan);
}

/* Footer */

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  .site-header__logo img {
    height: 26px;
  }

  .site-header nav a:not([href="#contact"]) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
