/* Global layout — container, nav, sections, footer */

.container { width: var(--container); margin: 0 auto; }
.container-wide { width: var(--container-wide); margin: 0 auto; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--olive-deep);
}

.section {
  padding: 120px 0;
  position: relative;
}
.section--tight { padding: 80px 0; }
.section--dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}
.section--cream { background: var(--bg-cream); }

.section h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.05;
  color: var(--ink);
  max-width: 780px;
}
.section--dark h2 { color: var(--ink-on-dark); }

.section .lede {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
}
.section--dark .lede { color: rgba(242, 237, 225, 0.7); }

/* ── Top nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(250, 247, 240, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: background var(--t-quick) var(--ease-out);
}
.nav__inner {
  width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.nav__brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 30%, var(--olive) 0%, var(--olive-deep) 100%);
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-feature-settings: "tnum" 1;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--t-quick) var(--ease-out);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}
.nav__cta {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--olive-deep);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--olive-soft);
  transition: background var(--t-quick) var(--ease-out);
}
.nav__cta:hover { background: rgba(148, 184, 58, 0.18); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: rgba(242, 237, 225, 0.65);
  padding: 80px 0 60px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer__brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--ink-on-dark);
}
.footer__copy {
  font-size: 13px;
  line-height: 1.55;
  max-width: 560px;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 237, 225, 0.08);
  font-size: 12px;
  color: rgba(242, 237, 225, 0.45);
}

/* ── Generic grid utilities ─────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--gutter);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .section h2 { font-size: clamp(28px, 7vw, 40px); }
  .nav__links { gap: 18px; }
}

@media (max-width: 640px) {
  .nav__brand-name { display: none; }
  .nav__links { gap: 14px; }
  .nav__cta { display: none; }
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
