:root {
  --font-display: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --color-bg: #F5F2EC;
  --color-bg-dark: #1A1A18;
  --color-surface: #EDEAE2;
  --color-ink: #1A1A18;
  --color-ink-muted: #5A5A54;
  --color-ink-faint: #9A9A90;
  --color-accent: #2D5A3D;
  --color-accent-light: #4A8A5E;
  --color-rule: #C8C4B8;
  --max-width: 1100px;
  --section-pad: 6rem 2rem;
}

*, *::before, *::after {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── TYPOGRAPHY ── */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 500; font-family: var(--font-body); line-height: 1.3; }

.eyebrow { font-size: 1.2rem; font-weight: 500; font-family: var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }

p {
  color: var(--color-ink-muted);
  max-width: 62ch;
}

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

a:hover {
  text-decoration: underline;
}

/* ── LAYOUT ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-pad);
}

.rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: 0;
}

/* ── NAV ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-rule);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-ink);
  text-decoration: none;
}

.nav-reg {
  font-size: 0.75rem;
  color: var(--color-ink-faint);
  letter-spacing: 0.04em;
}

/* ── HERO ── */

.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--color-accent);
}

.hero h1 {
  margin-bottom: 2rem;
  max-width: 14ch;
  color: var(--color-ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-ink);
  padding-bottom: 0.25rem;
  transition: color 0.2s, border-color 0.2s;
}

.hero-cta:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

.hero-meta {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-rule);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}

/* ── ABOUT ── */

.about {
  background-color: var(--color-bg-dark);
  color: #F5F2EC;
}

.about h2 {
  color: #F5F2EC;
  margin-bottom: 2rem;
}

.about .eyebrow {
  color: #6BAF82;
}

.about p {
  color: #A8A89E;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-body p + p {
  margin-top: 1.2rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pillar {
  padding-left: 1.5rem;
  border-left: 1px solid #3A3A34;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 500;
  color: #F5F2EC;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

/* ── SERVICES ── */

.services-header {
  margin-bottom: 4rem;
}

.services-header h2 {
  margin-top: 0.75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-rule);
}

.service-card {
  padding: 2.5rem;
  border-right: 1px solid var(--color-rule);
  position: relative;
}

.service-card:last-child {
  border-right: none;
}

.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-rule);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── METHODOLOGY ── */

.methodology {
  background-color: var(--color-surface);
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.methodology-intro h2 {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.methodology-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.step:first-child {
  border-top: 1px solid var(--color-rule);
}

.step-index {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-ink-faint);
  padding-top: 0.2rem;
}

.step h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.9rem;
}

/* ── CLIENTS ── */

.clients-header {
  margin-bottom: 4rem;
}

.clients-header h2 {
  margin-top: 0.75rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.client-type {
  padding: 2rem;
  border: 1px solid var(--color-rule);
}

.client-type h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.client-type p {
  font-size: 0.875rem;
}

/* ── PROJECTS ── */

.projects {
  background-color: var(--color-surface);
}

.projects-header {
  margin-bottom: 4rem;
}

.projects-header h2 {
  margin-top: 0.75rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project {
  display: grid;
  grid-template-columns: 10rem 1fr 8rem;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.project:first-child {
  border-top: 1px solid var(--color-rule);
}

.project-date {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
  padding-top: 0.3rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  line-height: 1.3;
}

.project-description {
  font-size: 0.875rem;
  max-width: none;
}

.project-tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.3rem 0.75rem;
  display: inline-block;
  white-space: nowrap;
}

/* ── COMPLIANCE ── */

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.compliance-intro h2 {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.compliance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compliance-list li {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-rule);
}

.compliance-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── CONTACT ── */

.contact {
  background-color: var(--color-bg-dark);
  color: #F5F2EC;
}

.contact-eyebrow {
  color: #6BAF82;
}

.contact h2 {
  color: #F5F2EC;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.contact p {
  color: #A8A89E;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #2E2E28;
  margin-top: 3rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #2E2E28;
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5A5A54;
}

.contact-value {
  font-size: 0.9rem;
  color: #A8A89E;
}

.contact-value a {
  color: #6BAF82;
}

/* ── FOOTER ── */

footer {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-rule);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-ink);
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--color-ink-faint);
}

.footer-osm {
  font-size: 0.8rem;
  color: var(--color-ink-faint);
}

.footer-osm a {
  color: var(--color-accent);
}

/* ── PRIVACY PAGE ── */

.privacy {
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.privacy h1 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.privacy-meta {
  font-size: 0.85rem;
  color: var(--color-ink-faint);
  letter-spacing: 0.04em;
  margin-bottom: 4rem;
}

.privacy-body {
  max-width: 68ch;
}

.privacy-body h2 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-ink);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.privacy-body p + p {
  margin-top: 0.75rem;
}

/* ── HAMBURGER MENU ── */

.nav-toggle-input {
  display: none;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 0.4);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  :root { --section-pad: 4rem 1.5rem; }

  .about-grid,
  .methodology-grid,
  .compliance-grid { grid-template-columns: 1fr; gap: 3rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--color-rule); }
  .service-card:last-child { border-bottom: none; }

  .clients-grid { grid-template-columns: 1fr; }

  .project { grid-template-columns: 1fr; gap: 0.75rem; }
  .project-tag { justify-self: start; }

  .hero-meta { grid-template-columns: 1fr; gap: 1.5rem; }

  .contact-row { grid-template-columns: 1fr; gap: 0.25rem; }

  footer { flex-direction: column; gap: 1rem; text-align: center; }

  .nav-reg { display: none; }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-rule);
    padding: 5rem 2rem 2rem;
    z-index: 199;
    transition: right 0.35s ease;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-rule);
  }

  .nav-links a {
    display: block;
    padding: 1.1rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .nav-overlay {
    display: block;
  }

  .nav-toggle-input:checked ~ nav .nav-links {
    right: 0;
  }

  .nav-toggle-input:checked ~ nav .nav-hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle-input:checked ~ nav .nav-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .nav-toggle-input:checked ~ nav .nav-hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav-toggle-input:checked ~ .nav-overlay {
    opacity: 1;
    pointer-events: all;
  }
}
