:root {
  --forest-950: #0f2721;
  --forest-900: #17362d;
  --forest-800: #1f4c3f;
  --mist-100: #f5f7f4;
  --mist-200: #edf2ee;
  --text: #17362d;
  --muted: #4c655c;
  --light-text: #f6fbf8;
  --light-muted: #d8e3de;
  --line: rgba(23, 54, 45, 0.14);
  --card: #ffffff;
  --card-soft: #f2f6f3;
  --shadow: 0 16px 42px rgba(11, 32, 27, 0.12);
  --hero-bg: url("assets/images/hero-forest.jpg");
  --radius-pill: 1.15rem;
  --radius-lg: 1rem;
  --radius-md: 0.85rem;
  --space-1: 0.5rem;
  --space-2: 0.8rem;
  --space-3: 1.1rem;
  --space-4: 1.5rem;
  --shell-max-inset: 52px;
  --shell-max-radius: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--mist-100);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(1120px, calc(100% - 2rem));
  margin: 0;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(233, 245, 239, 0.26);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px);
  background: rgba(14, 39, 31, 0.66);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--light-text);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.3px;
}

.brand svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--light-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-nav a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.8rem;
  transition: background-color 220ms ease, color 220ms ease;
}

.site-nav a:not(.button):hover {
  background: rgba(239, 246, 243, 0.12);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.2rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0;
  border-radius: 0.55rem;
  background: var(--light-text);
  transform-origin: center;
  transition: transform 300ms ease, opacity 220ms ease, background-color 220ms ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.3);
}

.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-main {
  width: 100%;
  margin: 0;
}

.hero-media {
  position: fixed;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  transform: scale(1.04);
  pointer-events: none;
  z-index: -4;
}

.hero {
  position: relative;
  min-height: 110vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(8rem, 13vh, 10rem) max(1rem, calc((100vw - 1120px) / 2)) clamp(8rem, 18vh, 11rem);
  display: grid;
  align-content: center;
  z-index: 2;
}

.hero-content {
  display: grid;
  gap: 1.1rem;
  max-width: 64rem;
}

.content-shell {
  --shell-inset: var(--shell-max-inset);
  --shell-radius: var(--shell-max-radius);
  --shell-shadow-alpha: 0.2;
  position: relative;
  z-index: 5;
  width: calc(100vw - (var(--shell-inset) * 2));
  margin-left: calc(50% - 50vw + var(--shell-inset));
  margin-top: clamp(-17rem, -24vh, -10rem);
  background: var(--mist-100);
  border: 1px solid rgba(23, 54, 45, 0.12);
  border-radius: var(--shell-radius) var(--shell-radius) 0 0;
  box-shadow:
    0 -24px 60px rgba(11, 32, 27, var(--shell-shadow-alpha)),
    0 10px 36px rgba(11, 32, 27, 0.08);
  overflow: clip;
}

.content-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #31594b;
}

.hero .eyebrow {
  color: #e7f0eb;
  text-shadow: 0 2px 10px rgba(7, 20, 16, 0.5);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.2px;
  color: var(--forest-900);
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

.hero h1 {
  color: var(--light-text);
  max-width: 12ch;
  text-shadow: 0 6px 24px rgba(7, 20, 16, 0.55);
}

.hero-copy {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.75vw, 1.25rem);
  color: var(--light-muted);
  text-shadow: 0 3px 14px rgba(7, 20, 16, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-actions .button:not(.button-ghost) {
  color: #2c1605;
  background: linear-gradient(180deg, #ffb14f 0%, #ff8a1f 100%);
  border-color: rgba(255, 180, 92, 0.85);
  box-shadow:
    0 0 0 1px rgba(124, 62, 13, 0.5) inset,
    0 1px 0 rgba(255, 239, 214, 0.48) inset,
    0 4px 14px rgba(116, 55, 10, 0.24);
}

.hero-actions .button-ghost {
  background: linear-gradient(180deg, rgba(33, 82, 69, 0.94) 0%, rgba(22, 55, 46, 0.94) 100%);
  border-color: rgba(189, 219, 208, 0.42);
  box-shadow:
    0 0 0 1px rgba(11, 33, 27, 0.62) inset,
    0 1px 0 rgba(228, 242, 235, 0.16) inset,
    0 4px 14px rgba(8, 24, 20, 0.24);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(242, 250, 246, 0.48);
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--light-text);
  background: linear-gradient(180deg, #2f7460 0%, #215242 100%);
  box-shadow:
    0 0 0 1px rgba(14, 38, 31, 0.55) inset,
    0 1px 0 rgba(245, 251, 248, 0.16) inset,
    0 4px 14px rgba(15, 39, 32, 0.2);
  transition: transform 160ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: scale(1.01);
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(14, 38, 31, 0.62) inset,
    0 1px 0 rgba(245, 251, 248, 0.22) inset,
    0 6px 16px rgba(15, 39, 32, 0.24);
}

.button:active {
  transform: scale(0.99);
  filter: brightness(0.98);
}

.button-ghost {
  color: var(--light-text);
  background: linear-gradient(180deg, rgba(241, 248, 245, 0.2) 0%, rgba(241, 248, 245, 0.08) 100%);
  border-color: rgba(241, 248, 245, 0.4);
  box-shadow:
    0 0 0 1px rgba(16, 42, 34, 0.5) inset,
    0 1px 0 rgba(241, 248, 245, 0.2) inset;
}

.section {
  padding: 4rem 0;
}

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

.section-head {
  margin-bottom: 2.2rem;
  display: grid;
  gap: var(--space-2);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: grid;
  gap: var(--space-1);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.card p,
.section p,
li p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.metrics {
  border: 1px solid var(--line);
  background: var(--card-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: grid;
  gap: var(--space-3);
}

.metrics > div {
  display: grid;
  gap: 0.35rem;
}

.metric {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  margin-bottom: 0;
  color: var(--forest-900);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.steps li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  display: grid;
  gap: var(--space-1);
  box-shadow: var(--shadow);
}

.steps h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.cta {
  margin-bottom: 3rem;
  border: 1px solid rgba(32, 82, 68, 0.3);
  background: linear-gradient(140deg, #123126, #1f4c3f);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.3rem;
  box-shadow: 0 22px 50px rgba(14, 39, 31, 0.25);
}

.cta .eyebrow,
.cta h2,
.cta p {
  color: var(--light-text);
}

.cta p {
  color: var(--light-muted);
}

.contact-actions {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

#about > div:first-child,
.cta > div:first-child,
.page-hero,
.careers-card {
  display: grid;
  align-content: start;
  gap: var(--space-2);
}

.site-footer {
  margin-top: 0;
  padding: 2.2rem 0 1.4rem;
  border-top: 1px solid rgba(204, 223, 214, 0.28);
  background: #0f2721;
  color: #e8f4ef;
  position: relative;
  z-index: 8;
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem 1.4rem;
}

.site-footer p {
  margin: 0;
  color: #d0e3da;
  line-height: 1.6;
}

.footer-title {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f4fbf8;
  margin-bottom: 0.3rem;
}

.footer-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #a8c2b8;
  margin-bottom: 0.25rem;
}

.site-footer a {
  color: #eef8f3;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-copy {
  color: #c6dad0;
}

.footer-meta {
  grid-column: 1 / -1;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(186, 209, 199, 0.2);
  font-size: 0.9rem;
  text-align: left;
}

.page-hero {
  margin-top: 7.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #e7efe9, #f8faf7);
  border: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  gap: 0.9rem;
}

.page-hero h1 {
  max-width: 16ch;
}

.careers-section {
  padding-top: 2rem;
}

.careers-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.8vw, 2.2rem);
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
  box-shadow: var(--shadow);
}

.small-note {
  font-size: 0.9rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .card-grid,
  .steps,
  .split,
  .cta {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: var(--radius-lg);
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-top: 0.35rem;
  }

  .site-nav {
    display: flex;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: max-height 360ms ease, opacity 260ms ease, transform 320ms ease;
  }

  .site-nav a {
    text-align: center;
  }

  .nav-open .site-nav {
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(239, 246, 243, 0.25);
    max-height: 18rem;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero {
    min-height: 110vh;
    padding: 6.8rem 1rem 7.4rem;
  }

  .content-shell {
    --shell-max-inset: 18px;
    --shell-max-radius: 22px;
    margin-top: clamp(-9rem, -14vh, -5rem);
  }

  .content-inner {
    width: calc(100% - 1.5rem);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .site-nav,
  .menu-toggle span {
    transition: none !important;
  }

  .content-shell {
    --shell-inset: 0px !important;
    --shell-radius: 0px !important;
    --shell-shadow-alpha: 0 !important;
  }
}
