:root {
  --bg: #FAFBFC;
  --bg-alt: #F1F5F9;
  --text: #0B1426;
  --text-soft: #4A5568;
  --heading: #1A2744;
  --accent: #0D9488;
  --accent-soft: #CCFBF1;
  --border: #E2E8F0;
  --max-w: 900px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; font-family: "DM Sans", sans-serif; font-weight: 600; color: var(--heading); letter-spacing: 0; }

p { margin: 0 0 1em; color: var(--text-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--heading);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 10px;
  transform: translateY(-1px);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-toggle {
    display: block;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    color: var(--heading);
  }
}

/* Sections */
section {
  padding: 96px 24px;
}
section.alt { background: var(--bg-alt); }
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Hero */
.hero {
  padding-top: 120px;
  padding-bottom: 120px;
  text-align: left;
}
.hero .eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 { max-width: 720px; }
.hero .lede {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--text-soft);
  max-width: 640px;
  margin-top: 20px;
}
.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 40px;
  border: 0;
}

/* Section headings */
.eyebrow-sm {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Values grid */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 540px) {
  .values { grid-template-columns: 1fr; }
}
.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
}
section.alt .value-card { background: #ffffff; }
.value-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.value-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--text-soft);
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-top: 20px;
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.contact-grid h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.contact-grid p { color: var(--heading); font-size: 1.05rem; margin: 0; }

/* Footer */
footer {
  padding: 48px 24px 56px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.footer-inner a { color: var(--text-soft); }
.footer-inner a:hover { color: var(--accent); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
