:root {
  --bg: #000000;
  --text: #e7e9ea;
  --text-muted: #71767b;
  --border: #222326;
  --border-strong: #2f3336;
  --radius-btn: 8px;
  --radius-block: 12px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #ffffff;
  color: #000000;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: var(--radius-btn);
}

.container {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Navigation: one line, 64px, sticky with hairline */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 4rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover {
  color: #ffffff;
}

/* Buttons: white primary, one label per intent */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.875rem 1.5rem;
  border: 1px solid #ffffff;
  border-radius: var(--radius-btn);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: #d9dbdc;
  border-color: #d9dbdc;
}

.btn:active {
  transform: scale(0.98);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero: left-aligned manifesto, fits viewport */
.hero {
  min-height: calc(100vh - 4rem);
  min-height: calc(100svh - 4rem);
  display: flex;
  align-items: center;
  padding-block: 4rem 6rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 14ch;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

.hero-cta {
  margin-top: 2.25rem;
}

/* Sections: airy rhythm, hairline top */
.section {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

/* Services: rows grouped by hairline, title left / body right on desktop */
.services {
  list-style: none;
}

.services li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-block: 1.75rem;
}

.services li + li {
  border-top: 1px solid var(--border);
}

.services h3,
.principle h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.services p,
.principle p {
  color: var(--text-muted);
  max-width: 60ch;
}

/* Approach: asymmetric split, headline left / principles right */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.split h2 {
  margin-bottom: 0;
}

.principle + .principle {
  margin-top: 2rem;
}

.principle p {
  margin-top: 0.375rem;
}

/* Closing CTA */
.closing h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.closing p {
  color: var(--text-muted);
  max-width: 60ch;
  margin-top: -1.25rem;
  margin-bottom: 2.25rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Hero load-in: sequence communicates hierarchy */
@media (prefers-reduced-motion: no-preference) {
  .hero .container > * {
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero .container > :nth-child(2) {
    animation-delay: 0.07s;
  }

  .hero .container > :nth-child(3) {
    animation-delay: 0.14s;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* Desktop composition for rows and split */
@media (min-width: 768px) {
  .services li {
    grid-template-columns: 16rem 1fr;
    gap: 2rem;
    align-items: baseline;
  }

  .split {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

@media (max-width: 639px) {
  .container {
    padding-inline: 1.25rem;
  }
}
