:root {
  --bg: #f2eadf;
  --paper: rgba(255, 250, 244, 0.74);
  --paper-strong: #fff9f2;
  --text: #1e1d1a;
  --muted: #635d56;
  --line: rgba(30, 29, 26, 0.12);
  --accent: #b5421a;
  --accent-dark: #7b2910;
  --teal: #0f6d67;
  --shadow: 0 24px 80px rgba(76, 48, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(181, 66, 26, 0.16), transparent 24rem),
    radial-gradient(circle at 85% 20%, rgba(15, 109, 103, 0.14), transparent 28rem),
    linear-gradient(180deg, #efe1d1 0%, #f6efe6 55%, #efe7da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 29, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 29, 26, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 20px auto 48px;
}

.hero,
.section,
.section-metrics {
  background: var(--paper);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 54px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a,
.project-card a {
  color: var(--text);
  text-decoration: none;
}

.nav-links a:hover,
.project-card a:hover {
  color: var(--accent-dark);
}

.eyebrow,
.card-topline,
.panel-label {
  margin: 0 0 14px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-copy h1,
.section-heading h2,
.project-card h3,
.theme-card h3 {
  margin: 0;
  line-height: 1;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  max-width: 14ch;
  line-height: 1;
}

.hero-copy h1 span {
  display: block;
  color: var(--accent-dark);
}

.lead,
.theme-card p,
.project-card p,
.position-copy p {
  font-family: "Source Serif 4", serif;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}

.lead {
  max-width: 60ch;
  margin: 24px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 500;
}

.button-primary {
  background: var(--accent);
  color: #fff7f0;
  border-color: transparent;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
}

.hero-panel {
  padding-top: 18px;
}

.panel-card,
.metric-card,
.project-card,
.theme-card,
.positioning-layout,
.stack-card,
.contact-panel {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.panel-card {
  padding: 22px;
}

.signal-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.8;
}

.section {
  margin-top: 22px;
  padding: 28px;
  border-radius: 28px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.theme-card {
  padding: 20px;
}

.theme-card p {
  margin: 14px 0 0;
}

.compact {
  margin: 0;
}

@media (max-width: 920px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 1160px);
    margin: 8px auto 28px;
  }

  .hero,
  .section,
  .section-metrics {
    padding: 18px;
    border-radius: 22px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
}
