:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --button-bg: #0a0a0a;
  --button-fg: #ffffff;
  --gutter: 24px;
  --max: 1200px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #fafafa;
    --muted: #a1a1a1;
    --line: #262626;
    --button-bg: #fafafa;
    --button-fg: #0a0a0a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Albert Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3, .wordmark { font-family: "Syne", system-ui, sans-serif; }

h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.02em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--muted);
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  color: #fafafa;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.nav.solid {
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav nav { display: flex; gap: 32px; }

.nav nav a {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav nav a:hover { opacity: 1; }

.wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.wordmark.small { font-size: 15px; }

/* Hero video */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
  color: #fafafa;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 71% center; /* the robot sits right of centre in the video */
}

/* Never show the native play button or controls on the background video */
.hero-video { pointer-events: none; }
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 72px;
}

.hero .eyebrow { color: rgba(250, 250, 250, 0.7); }

.hero h1 {
  max-width: 11ch;
  margin-bottom: 8px;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.98;
}

.button {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 28px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: opacity 0.2s;
}

.hero .button { background: #fafafa; color: #0a0a0a; }

.button:hover { opacity: 0.85; }

/* Mission, What we do */
.mission, .what, .deployments { padding: 128px 0; text-align: center; }

.what, .deployments { border-top: 1px solid var(--line); }

.section-title {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.15;
}

.statement {
  max-width: 40ch;
  margin: 32px auto 0;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--muted);
}

/* About */
.about {
  padding: 128px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 96px 120px;
  margin-top: 56px;
}

.person { margin: 0; }

.person img {
  display: block;
  margin: 0 auto;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.person h3 { margin-top: 20px; font-size: 22px; }

.person p { margin: 6px auto 0; max-width: 32ch; color: var(--muted); }

/* Contact */
.contact {
  padding: 128px 0;
  border-top: 1px solid var(--line);
}

.contact-link {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(24px, 4.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.contact-link:hover { text-decoration-thickness: 2px; }

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-link { text-decoration: none; }
.footer-link:hover { color: var(--fg); text-decoration: underline; }

/* Small screens */
@media (max-width: 820px) {
  :root { --gutter: 16px; }

  .nav nav { display: none; }
  .nav-inner { justify-content: center; }

  .mission, .what, .deployments, .about, .contact { padding: 88px 0; }

  .hero-content { padding-bottom: 48px; }

  .hero-video { object-position: 78% center; }
}
