.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, var(--container-wide));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .section {
    padding: 6.5rem 0;
  }
}

.section--tight {
  padding: 3rem 0;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

.page-hero {
  padding: 7.5rem 0 3.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 9rem 0 4.5rem;
  }
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  backdrop-filter: blur(12px);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 18ch;
  margin-inline: auto;
}

.page-hero p {
  margin: 1.1rem auto 0;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack--lg {
  gap: 1.75rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.row--between {
  justify-content: space-between;
}

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding: 3.5rem 0 6.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--bg-elevated));
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 3.5rem;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand p {
  color: var(--text-soft);
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.28rem 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-bottom a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-bottom a:hover {
  color: var(--text);
}
