@font-face { font-family: Lato; font-weight: 400; font-display: swap; src: url(../fonts/lato-regular.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-display: swap; src: url(../fonts/lato-bold.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 900; font-display: swap; src: url(../fonts/lato-black.woff2) format("woff2"); }

:root {
  --mist: #d8eceb;
  --mist-light: #eef8f6;
  --ridge: #93eae3;
  --sea: #4acabd;
  --teal: #1ab792;
  --forest: #037329;
  --deep: #06450e;
  --deeper: #04330a;
  --ink: #0d2b1c;
  --muted: #47605a;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(6 69 14 / .06), 0 12px 32px -12px rgb(6 69 14 / .25);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font: 400 1.0625rem/1.65 Lato, system-ui, sans-serif;
  color: var(--ink);
  background: var(--mist-light);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: .5rem 1rem; border-radius: 8px;
  background: var(--deep); color: #fff;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.eyebrow {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--forest);
}

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.4rem; border-radius: 999px;
  border: 2px solid var(--deep);
  background: var(--deep); color: #fff;
  font-weight: 700; text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--forest); border-color: var(--forest); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--deep); }
.btn-ghost:hover { background: #fff; color: var(--deep); border-color: var(--deep); }
.btn-sm { padding: .55rem 1rem; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .78);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgb(6 69 14 / .08);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-name { font-weight: 900; font-size: 1.1rem; line-height: 1; letter-spacing: -.01em; }
.brand-name small {
  display: block; margin-top: .2rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--forest);
}

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--deep); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex; flex-direction: column;
  background:
    radial-gradient(60rem 30rem at 85% 0%, #fff 0%, transparent 60%),
    linear-gradient(180deg, var(--mist-light) 0%, var(--mist) 100%);
}
.hero-copy { position: relative; z-index: 1; padding-block: clamp(4rem, 12vh, 8rem) 2rem; }
.hero h1 {
  margin-block: 1rem 1.25rem; max-width: 12ch;
  font-size: clamp(2.9rem, 7.5vw, 5.75rem); font-weight: 900;
  color: var(--deep);
}
.hero h1 span {
  background: linear-gradient(100deg, var(--forest), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 36rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.hero-mark {
  position: absolute; z-index: 0;
  right: max(1.25rem, (100% - 1120px) / 2); top: clamp(5rem, 14vh, 8rem);
  width: clamp(240px, 30vw, 420px); height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgb(255 255 255 / .55), 0 30px 60px -20px rgb(6 69 14 / .45);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: float 9s ease-in-out infinite; }
}
@keyframes float { 50% { transform: translateY(-12px); } }

.hero-ridges {
  width: 100%; height: clamp(220px, 29.2vw, 640px);
  margin-top: auto; margin-bottom: -1px;
  object-fit: cover; object-position: bottom;
}

/* Sections */
section { padding-block: clamp(4.5rem, 9vw, 6.5rem); }
.how { padding-bottom: clamp(2rem, 4vw, 3rem); }
.hero { padding-block: 0; }

.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2, .contact h2 { margin-block: .75rem 1rem; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; }
.section-head p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; }

/* Services: continues the dark tree line from the hero */
.services { background: linear-gradient(180deg, var(--deep), var(--deeper)); color: #fff; }
.services .eyebrow { color: var(--ridge); }
.services .section-head p:not(.eyebrow) { color: rgb(255 255 255 / .72); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  padding: 1.75rem; border-radius: var(--radius);
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(147 234 227 / .16);
  transition: transform .25s, background .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); background: rgb(255 255 255 / .08); border-color: rgb(147 234 227 / .4); }
.card h3 { margin-block: 1.25rem .5rem; font-size: 1.25rem; font-weight: 700; }
.card p { color: rgb(255 255 255 / .72); font-size: 1rem; }

.card-icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--sea));
  color: var(--deeper); font-size: 1.2rem;
}

/* How it works */
.how { background: var(--mist-light); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step {
  position: relative; padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 1rem;
  font-size: 2.75rem; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, var(--sea), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-bottom: .5rem; font-size: 1.25rem; font-weight: 700; color: var(--deep); }
.step p { color: var(--muted); font-size: 1rem; }

/* Contact */
.contact { background: linear-gradient(180deg, var(--mist-light), var(--mist)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact-card {
  display: grid; gap: .5rem; padding: .75rem;
  font-style: normal; border-radius: calc(var(--radius) + 6px);
  background: #fff; box-shadow: var(--shadow);
}
.contact-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; overflow-wrap: anywhere;
  transition: background .2s;
}
.contact-row:hover { background: var(--mist-light); }
.contact-row small {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.site-footer { padding-block: 3rem; background: var(--deeper); color: rgb(255 255 255 / .7); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: var(--ridge); }
.site-footer .fine { margin-left: auto; }

/* Scroll reveal, progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 820px) {
  .nav, .hero-mark { display: none; }
  .header-inner { justify-content: space-between; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .fine { margin-left: 0; }
}
@media (max-width: 480px) {
  .btn-sm span { display: none; }
  .btn-sm { padding: .65rem; }
  .brand-name { font-size: 1rem; }
}
