@font-face {
  font-family: "Montserrat Local";
  src: url("../fonts/Montserrat-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #3c5943;
  --forest-dark: #203428;
  --forest-ink: #15231a;
  --sage: #dfe6de;
  --sage-deep: #bccbbc;
  --paper: #f7f6f0;
  --white: #ffffff;
  --ink: #172019;
  --muted: #667069;
  --line: #ccd2cb;
  --brand-weight: 500;
  --content: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat Local", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.logo-d { --brand-weight: 550; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.container {
  width: min(var(--content), calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(32, 52, 40, 0.14);
  background: rgba(247, 246, 240, 0.95);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 158px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #435048;
  font-size: 0.79rem;
  font-weight: 580;
}

.nav-links > a:not(.button) {
  position: relative;
  padding: 8px 0;
}

.nav-links > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links > a:not(.button):hover::after,
.nav-links > a:not(.button):focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px auto;
  background: var(--forest-dark);
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--forest-dark);
  padding: 0 24px;
  background: var(--forest-dark);
  color: var(--white);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible { background: transparent; color: var(--forest-dark); }
.button-small { min-height: 42px; padding-inline: 19px; }
.button-light { border-color: var(--paper); background: var(--paper); color: var(--forest-dark); }
.button-light:hover,
.button-light:focus-visible { background: transparent; color: var(--paper); }

.hero {
  overflow: hidden;
  background: var(--paper);
}

.hero-grid {
  min-height: min(820px, calc(100vh - 84px));
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: stretch;
}

.hero-copy {
  position: relative;
  display: flex;
  min-height: 680px;
  flex-direction: column;
  justify-content: center;
  margin-left: calc((100vw - min(var(--content), calc(100vw - 64px))) / -2);
  padding: 70px 72px 58px max(32px, calc((100vw - min(var(--content), calc(100vw - 64px))) / 2));
  background: var(--forest);
  color: var(--paper);
}

.kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 46px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.3rem, 5.35vw, 6.2rem);
  font-weight: 390;
  letter-spacing: -0.062em;
  line-height: 0.95;
}

.hero h1 strong { color: var(--sage); font-weight: 680; }

.hero-lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(247, 246, 240, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.17rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 32px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid currentColor;
  padding: 8px 0 6px;
  font-size: 0.78rem;
  font-weight: 650;
}

.text-link-light { color: var(--paper); }

.hero-note {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: auto;
  padding-top: 30px;
  font-size: 0.72rem;
}

.hero-note > span { color: var(--sage-deep); font-size: 0.66rem; font-weight: 700; }
.hero-note p { margin: 0; line-height: 1.45; }

.hero-visual {
  position: relative;
  min-height: 680px;
  margin: 0 calc((100vw - min(var(--content), calc(100vw - 64px))) / -2) 0 0;
  border-left: 1px solid rgba(32, 52, 40, 0.12);
  background: var(--white);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(60, 89, 67, 0.035), transparent 16%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 34px;
  top: 22px;
  left: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--forest-dark);
  font-size: 0.67rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal { border-bottom: 1px solid var(--line); background: var(--sage); }

.signal-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.signal-grid > div {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(32, 52, 40, 0.17);
  padding: 28px 32px;
}

.signal-grid > div:last-child { border-right: 1px solid rgba(32, 52, 40, 0.17); }
.signal-grid strong { font-size: 0.94rem; font-weight: 680; }
.signal-grid span { margin-top: 7px; color: #526057; font-size: 0.73rem; line-height: 1.45; }
.signal-lead { background: var(--forest-dark); color: var(--paper); }
.signal-lead strong { font-size: 1.15rem; }
.signal-lead span { color: var(--sage-deep); font-size: 0.65rem; font-weight: 680; letter-spacing: 0.12em; text-transform: uppercase; }

.section { padding: 132px 0; }
.eyebrow { margin: 0; color: var(--forest); font-size: 0.66rem; font-weight: 720; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow-light { color: var(--sage-deep); }

.section-heading {
  display: grid;
  grid-template-columns: 0.7fr 2fr 0.9fr;
  align-items: start;
  gap: 44px;
  margin-bottom: 76px;
}

.section-heading h2,
.team-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.2vw, 4.8rem);
  font-weight: 430;
  letter-spacing: -0.054em;
  line-height: 1.04;
}

.section-heading > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 0.88rem; }

.service-list { border-top: 1px solid var(--forest-dark); }

.service-row {
  display: grid;
  grid-template-columns: 0.36fr 1.25fr 1.3fr 48px;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
  transition: background 180ms ease, padding 180ms ease;
}

.service-row:hover { margin-inline: -22px; padding-inline: 22px; background: var(--sage); }
.service-number { color: var(--forest); font-size: 0.68rem; font-weight: 700; }
.service-row h3 { margin: 0; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 580; letter-spacing: -0.035em; }
.service-row p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.service-row > a { font-size: 1.35rem; text-align: right; }

.method { background: var(--forest-dark); color: var(--paper); }

.method-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(70px, 10vw, 150px);
}

.method-copy { position: sticky; top: 130px; align-self: start; }
.method-copy h2 { margin: 34px 0 36px; font-size: clamp(3rem, 5.1vw, 5.8rem); font-weight: 390; letter-spacing: -0.06em; line-height: 0.99; }
.method-copy h2 span { color: var(--sage-deep); font-weight: 680; }
.method-copy > p:last-child { max-width: 540px; margin: 0; color: rgba(247, 246, 240, 0.72); }

.method-steps { margin: 0; padding: 0; list-style: none; }
.method-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 24px; border-top: 1px solid rgba(247, 246, 240, 0.2); padding: 34px 0 42px; }
.method-steps li:last-child { border-bottom: 1px solid rgba(247, 246, 240, 0.2); }
.method-steps > li > span { color: var(--sage-deep); font-size: 0.68rem; font-weight: 700; }
.method-steps h3 { margin: -5px 0 10px; font-size: 1.5rem; font-weight: 570; }
.method-steps p { margin: 0; color: rgba(247, 246, 240, 0.66); font-size: 0.84rem; }

.statement { background: var(--sage); }
.statement-grid { display: grid; grid-template-columns: 0.6fr 2.2fr 0.8fr; align-items: end; gap: 46px; }
.statement blockquote { margin: 0; font-size: clamp(2.3rem, 4.55vw, 5.15rem); font-weight: 470; letter-spacing: -0.06em; line-height: 1.03; }
.statement-copy { margin: 0 0 8px; color: #4f5c53; font-size: 0.84rem; }

.team { background: var(--paper); }
.team-heading { display: grid; grid-template-columns: 1.6fr 0.6fr; align-items: end; gap: 80px; margin-bottom: 68px; }
.team-heading .eyebrow { margin-bottom: 24px; }
.team-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 0.87rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person-card { border-bottom: 1px solid var(--forest-dark); }
.person-photo { overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid rgba(32, 52, 40, 0.1); background: var(--white); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.person-card:hover .person-photo img { transform: scale(1.025); }
.person-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 3px 25px; }
.person-meta h3 { margin: 0; font-size: 1.2rem; font-weight: 620; }
.person-meta p { margin: 4px 0 0; color: var(--muted); font-size: 0.72rem; }
.person-meta > span { color: var(--forest); font-size: 0.65rem; font-weight: 700; }

.contact { background: var(--forest); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.5fr 0.7fr; align-items: end; gap: 100px; }
.contact .eyebrow { margin-bottom: 28px; }
.contact-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-side p { margin: 0 0 26px; color: rgba(247, 246, 240, 0.74); font-size: 0.9rem; }
.contact-side a { font-size: 0.86rem; }
.contact-mail { display: flex; width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(247, 246, 240, 0.45); padding: 0 0 12px; font-size: 1rem !important; font-weight: 630; }

.site-footer { padding: 84px 0 26px; background: var(--forest-ink); color: var(--paper); }
.site-footer .brand-logo { filter: brightness(0) invert(1); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 0.7fr 1fr; gap: 70px; padding-bottom: 76px; }
.footer-brand p { max-width: 370px; margin: 24px 0 0; color: rgba(247, 246, 240, 0.62); font-size: 0.8rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: rgba(247, 246, 240, 0.68); font-size: 0.72rem; }
.footer-links strong { margin-bottom: 8px; color: var(--sage-deep); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(247, 246, 240, 0.16); padding-top: 24px; color: rgba(247, 246, 240, 0.45); font-size: 0.63rem; }

.demo-switch {
  position: fixed;
  z-index: 60;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(32, 52, 40, 0.25);
  padding: 5px;
  background: rgba(247, 246, 240, 0.95);
  box-shadow: 0 10px 36px rgba(21, 35, 26, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.62rem;
}

.demo-switch > span { padding: 0 8px; color: var(--muted); text-transform: uppercase; }
.demo-switch a { display: flex; align-items: center; gap: 6px; padding: 7px 8px; }
.demo-switch a.active { background: var(--forest-dark); color: var(--paper); }
.demo-switch b { font-weight: 650; }
.demo-switch small { opacity: 0.65; font-size: 0.57rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr 0.92fr; }
  .hero-copy { padding-right: 48px; }
  .section-heading { grid-template-columns: 0.45fr 1.65fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .statement-grid { grid-template-columns: 0.4fr 2fr; }
  .statement-copy { grid-column: 2; max-width: 560px; }
  .service-row { grid-template-columns: 0.25fr 1.1fr 1.2fr 40px; }
}

@media (max-width: 820px) {
  .container { width: min(var(--content), calc(100% - 36px)); }
  .nav-wrap { min-height: 72px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
    background: var(--paper);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a { padding: 13px 4px !important; }
  .nav-links .button { margin-top: 10px; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero-grid { display: flex; min-height: 0; flex-direction: column; width: 100%; }
  .hero-copy { min-height: 620px; margin: 0; padding: 66px 24px 42px; }
  .hero-visual { min-height: 620px; margin: 0; }
  .hero h1 { font-size: clamp(3.35rem, 14vw, 5.5rem); }
  .kicker { margin-bottom: 54px; }

  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal-grid > div:nth-child(3) { border-top: 1px solid rgba(32, 52, 40, 0.17); }
  .signal-grid > div:nth-child(4) { border-top: 1px solid rgba(32, 52, 40, 0.17); border-right: 1px solid rgba(32, 52, 40, 0.17); }

  .section { padding: 92px 0; }
  .section-heading,
  .method-grid,
  .team-heading,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-heading > p:last-child { grid-column: auto; max-width: 620px; }
  .section-heading { margin-bottom: 52px; }
  .service-row { grid-template-columns: 46px 1fr 30px; gap: 18px; }
  .service-row p { grid-column: 2; }
  .service-row > a { grid-column: 3; grid-row: 1 / span 2; }
  .method-copy { position: static; }
  .statement-grid { grid-template-columns: 1fr; }
  .statement-copy { grid-column: auto; }
  .team-grid { gap: 12px; }
  .footer-grid { grid-template-columns: 1.35fr 0.65fr; }
  .footer-links:last-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .brand-logo { width: 140px; }
  .hero-copy { min-height: 600px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-visual { min-height: 540px; }
  .hero-visual figcaption { top: 20px; right: 20px; bottom: auto; left: 20px; flex-direction: column; gap: 5px; }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid > div { min-height: 112px; border-right: 1px solid rgba(32, 52, 40, 0.17); border-bottom: 1px solid rgba(32, 52, 40, 0.17); }
  .service-row:hover { margin-inline: 0; padding-inline: 0; background: transparent; }
  .method-steps li { grid-template-columns: 44px 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 48px; }
  .person-photo { aspect-ratio: 4 / 5; }
  .contact-grid { gap: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-links:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .demo-switch { right: 10px; bottom: 10px; }
  .demo-switch > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
