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

/* ── Palette ── */
:root {
  --fg: #111;
  --fg-secondary: #5a5a5a;
  --fg-tertiary: #8a8a8a;
  --bg: #faf9f7;
  --bg-alt: #f4f3f0;
  --accent: #1a4a7a;
  --rule: #d8d4ce;
  --rule-light: #e8e5e0;
  --serif: Charter, 'Iowan Old Style', 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'Cascadia Mono', 'Fira Mono', 'DejaVu Sans Mono', Menlo, monospace;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.72;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ── Layout ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Fade-in on load ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Sections ── */
section {
  padding: 80px 0;
  animation: fadeUp 0.8s ease both;
}

section:nth-child(2) { animation-delay: 0.08s; }
section:nth-child(3) { animation-delay: 0.16s; }
section:nth-child(4) { animation-delay: 0.24s; }
section:nth-child(5) { animation-delay: 0.32s; }
section:nth-child(6) { animation-delay: 0.40s; }
section:nth-child(7) { animation-delay: 0.48s; }
section:nth-child(8) { animation-delay: 0.56s; }

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  position: relative;
  animation-delay: 0s;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}

.hero .wordmark {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero .wordmark::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

.hero .thesis {
  font-size: 1.7rem;
  line-height: 1.4;
  font-weight: 400;
  max-width: 540px;
  letter-spacing: -0.01em;
}

.hero .thesis .em {
  color: var(--accent);
}

/* ── Section dividers ── */
section + section {
  position: relative;
}

section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}

/* ── Headings ── */
h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule-light);
}

/* ── Body text ── */
p {
  margin-bottom: 22px;
  color: var(--fg);
}

p:last-child {
  margin-bottom: 0;
}

/* ── Technical inline terms ── */
.t {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--fg-secondary);
  letter-spacing: -0.02em;
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--rule-light);
  white-space: nowrap;
}

/* ── Markets list ── */
.markets-grid {
  display: grid;
  gap: 0;
}

.market-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-light);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: baseline;
}

.market-item:first-child {
  padding-top: 0;
}

.market-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.market-item .label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg);
}

.market-item p {
  color: var(--fg-secondary);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ── Engineering: capabilities ── */
.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
}

.cap {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--fg-tertiary);
  letter-spacing: 0.01em;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cap::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--rule);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── About ── */
.about p {
  font-size: 1.02rem;
}

/* ── Founder ── */
.founder-name {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.founder-links {
  margin-top: 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.founder-links a {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.founder-links a:hover {
  border-bottom-color: var(--accent);
}

/* ── Contact ── */
.contact {
  padding-bottom: 40px;
}

.contact a {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.contact a:hover {
  border-bottom-color: var(--accent);
}

/* ── Footer ── */
footer {
  padding: 48px 0;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--rule);
}

footer p {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .hero {
    padding: 100px 0 64px;
  }

  .hero .thesis {
    font-size: 1.4rem;
  }

  section {
    padding: 56px 0;
  }

  .market-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .capabilities {
    grid-template-columns: 1fr;
  }
}
