:root {
  --bg: #f5f1e8;
  --ink: #151412;
  --muted: #5b554f;
  --accent: #ce3b2d;
  --accent-2: #1f5b5d;
  --panel: #ffffff;
  --panel-shadow: 0 20px 60px rgba(15, 12, 8, 0.12);
  --radius: 24px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top, #fdf7ef 0%, var(--bg) 55%, #efe6d8 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.bg-orbit {
  position: fixed;
  top: -20vmax;
  left: -20vmax;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, rgba(206, 59, 45, 0.2), transparent 70%);
  filter: blur(10px);
  z-index: -2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(21, 20, 18, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 20, 18, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  z-index: -3;
}

.hero {
  padding: 32px 7vw 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 32px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--panel);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-weight: 600;
  color: var(--muted);
}

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

.pill {
  border: 1.5px solid var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--panel);
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 18px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin-bottom: 18px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 30px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(206, 59, 45, 0.3);
}

.btn.ghost {
  border: 1.5px solid var(--ink);
  background: var(--panel);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 10px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--panel-shadow);
  text-align: left;
}

.card h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.section {
  padding: 80px 7vw;
}

.section.alt {
  background: #f2e8da;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
}

.timeline,
.grid,
.stack {
  display: grid;
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--panel-shadow);
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.panel-head span {
  color: var(--muted);
  font-size: 0.95rem;
}

.panel ul {
  margin-top: 8px;
  padding-left: 18px;
  color: var(--muted);
}

.panel li {
  margin-bottom: 8px;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tags span {
  border: 1px solid rgba(21, 20, 18, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #fff8ef;
}

.footer {
  padding: 60px 7vw 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.footer p {
  color: var(--muted);
  max-width: 620px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .nav {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 24px 6vw 64px;
  }

  .section {
    padding: 64px 6vw;
  }

  .card,
  .panel {
    padding: 20px;
  }
}
