:root {
  --ink: #f7f8fa;
  --muted: #b8c0ca;
  --canvas: #05080c;
  --panel: #0a0f15;
  --line: rgb(255 255 255 / 16%);
  --focus: #c6e7ff;
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: Didot, "Bodoni MT", "Bodoni 72", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none;
}

nav a {
  color: #e4e8ed;
  font-size: 0.86rem;
}

.technical-nav ul {
  gap: 0.5rem;
}

.technical-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  background: rgb(5 8 12 / 42%);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-index {
  color: var(--muted);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  align-items: end;
  background: var(--canvas);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 50% 51%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(49rem, calc(100% - 2.5rem));
  margin: 0 clamp(1.25rem, 8vw, 8rem) clamp(2rem, 4vh, 3rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: #dce2e8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.3rem, 8.5vw, 8.6rem);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 0.89;
}

.hero-definition {
  max-width: 43rem;
  margin-bottom: 0;
  color: #e4e8ec;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

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

.feature {
  position: relative;
  min-height: 32rem;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  scroll-margin-top: 5rem;
}

.feature:nth-child(even) {
  background: var(--canvas);
}

.feature h2 {
  max-width: 14ch;
  margin-bottom: 2rem;
  font-size: clamp(2.3rem, 5vw, 5.4rem);
  font-weight: 520;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.feature > p:last-of-type {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 4rem);
  background: #020407;
}

footer p {
  margin: 0;
  color: #9ba4ad;
  font-size: 0.8rem;
}

@media (max-width: 719px) {
  .site-header {
    gap: 1rem;
    padding-block: 1.2rem;
  }

  nav ul {
    gap: 0.85rem;
  }

  .brand {
    font-size: 0.77rem;
    letter-spacing: 0.11em;
  }

  .technical-nav ul {
    gap: 0.35rem;
  }

  .technical-nav a {
    gap: 0.35rem;
    padding: 0.4rem;
    font-size: 0.64rem;
  }

  .nav-index {
    font-size: 0.58rem;
  }

  .hero-media img {
    object-position: 50% 50%;
  }

  .hero-copy {
    margin-bottom: 3.5rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5.2rem);
  }

  .feature {
    min-height: 28rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .technical-nav {
    width: 100%;
  }

  .technical-nav ul {
    justify-content: space-between;
  }
}

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