:root {
  --bg: #f5f0e7;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fffdf9;
  --text: #1d1815;
  --muted: #655a52;
  --line: rgba(29, 24, 21, 0.1);
  --line-strong: rgba(29, 24, 21, 0.18);
  --accent: #a24a22;
  --accent-deep: #7d3413;
  --accent-soft: rgba(162, 74, 34, 0.1);
  --max: 1160px;
  --shadow: 0 24px 60px rgba(48, 34, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(162, 74, 34, 0.08), transparent 28%),
    linear-gradient(180deg, #efe7db 0%, #f7f3ec 36%, #f5f0e7 100%);
}

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

.site-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: rgba(250, 246, 239, 0.8);
  backdrop-filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(29, 24, 21, 0.08);
}

.site-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: grid;
  gap: 0.16rem;
}

.brand-kicker,
.eyebrow,
.section-kicker,
.aside-label,
.lab-label,
.roadmap-label {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand-name {
  color: var(--muted);
  font-size: 0.98rem;
}

.site-nav,
.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.site-nav a,
.button-solid,
.button-outline,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.site-nav a,
.button-outline {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.site-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
}

.button-solid,
.nav-cta {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fffaf5;
}

.site-nav a:hover,
.button-solid:hover,
.button-outline:hover,
.nav-cta:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 3.5rem 0 2.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  gap: 2rem;
  align-items: end;
}

.hero-copy,
.hero-aside,
.connect-strip,
.article-block,
.roadmap-item {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.5rem;
  border-radius: 36px;
}

.hero-aside {
  padding: 1.6rem;
  border-radius: 28px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1,
.page-hero h1 {
  margin-top: 0.35rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 11ch;
}

.section h2,
.article-block h2,
.roadmap-item h2,
.lab-entry h2,
.lab-entry h3,
.connect-strip h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
}

.lede,
.story-copy p,
.lab-body p,
.article-block p,
.roadmap-item p,
.footer-copy,
.connect-strip p,
.section-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.lede {
  margin-top: 1rem;
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.5rem;
}

.process-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
  display: grid;
  gap: 0.95rem;
}

.process-list li {
  counter-increment: process;
  position: relative;
  padding-left: 2.7rem;
  line-height: 1.6;
  color: var(--muted);
}

.process-list li::before {
  content: "0" counter(process);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.section,
.page-hero {
  padding: 1.6rem 0 2.6rem;
}

.section-quiet {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.story-grid h2 {
  margin-top: 0.45rem;
  max-width: 14ch;
}

.story-copy {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin-top: 0.45rem;
  max-width: 16ch;
}

.section-note {
  max-width: 30ch;
}

.lab-list,
.roadmap-list,
.article-grid {
  display: grid;
  gap: 1rem;
}

.lab-entry,
.roadmap-item,
.article-block {
  padding: 1.5rem;
  border-radius: 24px;
}

.lab-entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
}

.lab-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.lab-entry:last-child {
  padding-bottom: 0;
}

.lab-number {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: var(--accent-deep);
}

.lab-body {
  display: grid;
  gap: 0.5rem;
}

.lab-body h2,
.lab-body h3 {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.lab-action {
  justify-self: end;
}

.connect-strip {
  padding: 1.7rem 1.8rem;
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 1.4rem;
  align-items: center;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.page-hero-inner {
  padding-top: 1rem;
}

.page-copy {
  max-width: 760px;
}

.page-copy h1 {
  max-width: 14ch;
}

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

.article-block,
.roadmap-item {
  background: rgba(255, 253, 249, 0.74);
}

.roadmap-item + .roadmap-item,
.article-block + .article-block {
  margin-top: 0;
}

.site-footer {
  margin-top: 1rem;
  border-top: 1px solid rgba(29, 24, 21, 0.08);
}

.site-footer-inner {
  padding: 1.4rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

@media (max-width: 1040px) {
  .hero-inner,
  .story-grid,
  .connect-strip,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .lab-entry {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .lab-action {
    grid-column: 2;
    justify-self: start;
  }

  .section-heading,
  .site-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(var(--max), calc(100% - 1rem));
  }

  .site-header-inner {
    padding: 0.9rem 0;
    align-items: start;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-copy,
  .hero-aside,
  .connect-strip,
  .article-block,
  .roadmap-item {
    padding: 1.25rem;
  }

  .lab-entry {
    grid-template-columns: 1fr;
  }

  .lab-number {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .lab-action,
  .lab-action .button-solid,
  .hero-actions a,
  .site-nav a,
  .nav-cta {
    width: 100%;
  }

  .site-nav {
    width: 100%;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.7rem);
  }
}
