:root {
  --bg: #f4efe6;
  --paper: rgba(255, 250, 242, 0.88);
  --ink: #1f1c17;
  --muted: #655e55;
  --line: rgba(49, 39, 25, 0.12);
  --amber: #c66a1c;
  --amber-deep: #9c4a07;
  --cyan: #0f6c74;
  --olive: #4f6b37;
  --shadow: 0 24px 80px rgba(39, 27, 12, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(198, 106, 28, 0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(15, 108, 116, 0.16), transparent 22%),
    linear-gradient(180deg, #fbf6ee 0%, #efe5d6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 28, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 28, 23, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 88%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(39, 27, 12, 0.06);
}

.brand,
.nav a,
.button {
  text-decoration: none;
}

.brand {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

main {
  display: grid;
  gap: 22px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: rise 0.7s ease both;
}

.panel:nth-child(2) { animation-delay: 0.08s; }
.panel:nth-child(3) { animation-delay: 0.14s; }
.panel:nth-child(4) { animation-delay: 0.2s; }
.panel:nth-child(5) { animation-delay: 0.26s; }

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 28px;
  align-items: end;
}

.compact-hero {
  grid-template-columns: 1fr;
}

.hero h1,
.section-heading h2,
.grid-section h2,
.callout h2,
.article-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  max-width: 11ch;
}

.section-heading h2,
.grid-section h2,
.callout h2,
.article-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 14ch;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--amber-deep);
  font-weight: 600;
}

.lead,
.hero-copy p,
.info-card p,
.path-card p,
.article-panel p,
.timeline-step p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fffdf8;
  background: linear-gradient(135deg, var(--amber) 0%, #db8b30 100%);
  box-shadow: 0 14px 30px rgba(198, 106, 28, 0.24);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(49, 39, 25, 0.1);
}

.hero-aside,
.card-grid,
.timeline {
  display: grid;
  gap: 16px;
}

.metric-card,
.info-card,
.path-card,
.article-panel pre {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  border-radius: 20px;
}

.metric-card,
.info-card,
.path-card {
  padding: 18px;
}

.metric-card strong,
.info-card h3,
.path-card h3,
.timeline-step h3,
.article-panel h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-card {
  position: relative;
}

.path-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  border-radius: 20px 20px 0 0;
}

.accent-cyan::before {
  background: linear-gradient(90deg, #0f6c74 0%, #4ca8a0 100%);
}

.accent-amber::before {
  background: linear-gradient(90deg, #b85c12 0%, #e59e44 100%);
}

pre {
  overflow-x: auto;
}

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

.path-card pre,
.article-panel pre {
  margin: 18px 0;
  padding: 16px;
  color: #f9f4ea;
  background: #1f2a2a;
}

.tight-list,
.step-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.tight-list li,
.step-list li {
  margin-bottom: 8px;
}

.strip-panel {
  background:
    linear-gradient(135deg, rgba(15, 108, 116, 0.08) 0%, rgba(255, 255, 255, 0.7) 44%, rgba(198, 106, 28, 0.08) 100%),
    var(--paper);
}

.timeline-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.timeline-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f6c74 0%, #db8b30 100%);
  color: #fffef9;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(31, 108, 89, 0.14) 0%, rgba(255, 251, 244, 0.9) 48%, rgba(198, 106, 28, 0.18) 100%);
}

.article-panel {
  max-width: 900px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero,
  .three-up,
  .two-up,
  .callout {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-step {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 16px;
  }

  .topbar,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .nav {
    gap: 10px;
  }

  .hero h1 {
    max-width: none;
  }
}