:root {
  --ink: #17201b;
  --muted: #5f6b64;
  --line: #dde6df;
  --panel: #f6f8f4;
  --panel-strong: #e8f0e5;
  --accent: #1f6b4a;
  --accent-dark: #174d37;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 32, 27, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--accent-dark); text-underline-offset: 0.18em; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow { max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-weight: 780;
  font-size: 1.04rem;
  letter-spacing: 0;
  text-decoration: none;
}

.main-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.main-nav a[aria-current="page"],
.main-nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.hero {
  padding: 84px 0 68px;
  background: linear-gradient(180deg, var(--panel), var(--white));
}

.hero-grid,
.split-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: clamp(2.15rem, 4.2vw, 3.75rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }

h3 { font-size: 1.2rem; }

p { margin: 16px 0 0; }

.lede {
  color: #334139;
  font-size: 1.17rem;
  max-width: 720px;
}

.hero-copy > p:not(.eyebrow),
.section-heading p,
.page-hero p,
.text-content p,
.note-panel p,
.cta-panel p {
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--accent);
}

.button.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-panel,
.cta-panel,
.note-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.hero-panel div {
  padding: 24px;
  background: var(--white);
}

.hero-panel strong {
  display: block;
  font-size: 2.15rem;
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.band {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stats-grid strong,
.stats-grid span {
  display: block;
}

.stats-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.93rem;
}

.section,
.page-hero {
  padding: 72px 0;
}

.page-hero {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

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

.section-heading p {
  max-width: 680px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portfolio-card {
  min-height: 242px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
}

.portfolio-card h3 {
  margin-top: 18px;
}

.portfolio-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.portfolio-card .muted {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.88rem;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}

.card-topline span {
  color: var(--accent-dark);
  font-weight: 760;
}

.card-topline a {
  color: var(--muted);
  text-decoration: none;
}

.center {
  margin-top: 28px;
  text-align: center;
}

.split-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list p {
  margin: 0;
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: var(--white);
}

.contact-band {
  background: var(--panel-strong);
}

.cta-panel,
.note-panel {
  padding: 28px;
}

.text-content {
  padding-top: 48px;
}

.text-content h2 {
  margin-top: 36px;
  font-size: 1.55rem;
}

.text-content ul {
  margin: 18px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.text-content li + li {
  margin-top: 8px;
}

.email-link {
  font-size: 1.25rem;
  font-weight: 760;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.site-footer a {
  color: var(--white);
}

.site-footer p,
.site-footer .small {
  color: rgba(255, 255, 255, 0.72);
}

.footer-brand {
  color: var(--white);
}

.footer-links {
  align-content: start;
  justify-content: end;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .main-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .main-nav a {
    font-size: 0.88rem;
  }

  .main-nav a:last-child {
    grid-column: 1 / -1;
  }

  .hero,
  .section,
  .page-hero {
    padding: 48px 0;
  }

  .stats-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 0;
  }
}
