:root {
  --bg: #f8f4ec;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #1b1f1d;
  --muted: #5f685f;
  --line: rgba(23, 32, 42, 0.08);
  --accent: #176b5a;
  --accent-dark: #104f42;
  --accent-soft: rgba(23, 107, 90, 0.12);
  --shadow: 0 28px 80px rgba(38, 41, 35, 0.1);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Assistant", "Heebo", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(23, 107, 90, 0.14), transparent 28%),
    radial-gradient(circle at left 20%, rgba(191, 146, 87, 0.12), transparent 22%),
    linear-gradient(180deg, #fcfaf6 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 75%);
}

.page-shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 28px 0 80px;
  position: relative;
}

.top-nav {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 22px;
  padding: 12px;
  width: fit-content;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(23, 107, 90, 0.12);
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(38, 41, 35, 0.08);
  backdrop-filter: blur(14px);
}

.top-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.top-nav__link:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.section {
  padding: 68px 0;
}

.section--centered {
  text-align: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.94fr) minmax(360px, 1.06fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 96px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
}

.hero__content h1,
.hero__content h2,
.section-heading h2,
.cta h2,
.project-card h3,
.step-card h3 {
  margin: 0;
}

.hero__content h1 {
  font-size: clamp(3.1rem, 6vw, 5.4rem);
  line-height: 0.95;
  margin-bottom: 14px;
}

.hero__content h2 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.16;
  margin-bottom: 18px;
  max-width: 11ch;
}

.hero__lead,
.section-footer p,
.project-meta p,
.testimonial-card__quote,
.cta p,
.problem-card p,
.step-card p,
.audience-list li {
  color: var(--muted);
  font-size: 1.12rem;
}

.hero__lead {
  max-width: 32rem;
  margin: 0 0 32px;
  font-size: 1.18rem;
}

.hero__lead--emphasis {
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  line-height: 1.6;
  font-weight: 600;
  color: var(--muted);
  max-width: 26rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 54px;
  height: 2px;
  background: currentColor;
  opacity: 0.32;
}

.hero .eyebrow {
  font-size: 1rem;
  margin-bottom: 26px;
  opacity: 0.9;
}

.hero-photo-frame,
.card,
.cta {
  backdrop-filter: blur(12px);
}

.hero-photo-frame {
  min-height: 620px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(23, 107, 90, 0.12), rgba(255, 255, 255, 0.72)),
    var(--surface-strong);
  border: 1px solid rgba(23, 107, 90, 0.14);
  box-shadow: var(--shadow);
  display: block;
  padding: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0;
  transform: rotate(-1.5deg);
}

.hero-photo-frame::before,
.hero-photo-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(23, 107, 90, 0.08);
  z-index: 0;
}

.hero-photo-frame::before {
  width: 220px;
  height: 220px;
  top: -60px;
  left: -30px;
}

.hero-photo-frame::after {
  width: 180px;
  height: 180px;
  bottom: -45px;
  right: -20px;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius-xl) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 30px rgba(23, 107, 90, 0.24);
}

.button--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.02);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 34px;
}

.section-heading h2,
.cta h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.08;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--problems {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.grid--projects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--testimonials {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}

.card,
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card {
  padding: 30px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.card:hover,
.cta:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 107, 90, 0.18);
  box-shadow: 0 30px 90px rgba(38, 41, 35, 0.14);
}

.problem-card {
  min-height: 164px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.problem-card p,
.step-card p,
.project-meta p,
.testimonial-card__quote {
  margin: 0;
}

.section-footer {
  margin: 28px auto 0;
  max-width: 760px;
}

.section-footer p {
  margin: 0;
}

.section-footer--emphasis {
  margin-top: 34px;
  padding: 26px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(23, 107, 90, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(38, 41, 35, 0.08);
}

.section-footer--emphasis p {
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.55;
  font-weight: 700;
}

.section-footer--emphasis p + p {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  font-weight: 600;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  align-items: center;
}

.step-number {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.step-card h3,
.project-card h3,
.testimonial-card__name {
  font-size: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right;
}

.project-meta h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: var(--text);
}

.testimonial-card {
  padding: 18px;
  text-align: center;
  display: flex;
}

.testimonial-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 32, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(248, 244, 236, 0.95), rgba(255, 255, 255, 0.98));
  padding: 12px;
}

.audience-card {
  padding: 24px 28px;
  max-width: 860px;
  margin: 0 auto;
}

.audience-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.audience-list li {
  position: relative;
  padding: 0 34px 0 0;
  text-align: center;
}

.audience-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
  transform: translateY(-50%);
}

.section--cta {
  padding-bottom: 30px;
}

.section--stats {
  padding-top: 24px;
}

.stat-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 236, 0.88));
}

.stat-card__value {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
}

.stat-card__label {
  margin: 0;
  max-width: 18ch;
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.55;
}

.cta {
  padding: 46px 36px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 146, 87, 0.18), transparent 70%);
  pointer-events: none;
}

.cta__actions {
  margin: 28px 0 22px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-link {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(23, 107, 90, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(38, 41, 35, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.contact-link:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 107, 90, 0.28);
  box-shadow: 0 18px 34px rgba(38, 41, 35, 0.12);
}

.contact-link__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--left {
  transform: translateX(-42px);
}

.reveal--right {
  transform: translateX(42px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 1080px) {
  .hero,
  .grid--projects,
  .grid--testimonials,
  .grid--stats {
    grid-template-columns: 1fr;
  }

  .grid--steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--problems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    gap: 30px;
    text-align: center;
  }

  .hero__content {
    max-width: 860px;
    margin: 0 auto;
    align-items: center;
  }

  .hero__lead {
    margin: 0 auto 32px;
  }

  .hero__content h2 {
    max-width: none;
  }

  .hero .eyebrow {
    justify-content: center;
  }

  .hero-photo-frame,
  .hero-photo {
    min-height: 460px;
  }

  .hero-photo-frame {
    max-width: 620px;
    margin: 0 auto;
    transform: none;
  }

  .hero {
    min-height: auto;
    padding-top: 12px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--container));
    padding-top: 18px;
  }

  .top-nav {
    position: static;
    border-radius: 28px;
    margin-bottom: 18px;
  }

  .section {
    padding: 42px 0;
  }

  .grid--problems,
  .grid--steps {
    grid-template-columns: 1fr;
  }

  .grid--projects,
  .grid--testimonials {
    gap: 18px;
  }

  .hero__content h1 {
    font-size: clamp(2.7rem, 11vw, 4rem);
  }

  .hero__content h2 {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }

  .hero .eyebrow {
    font-size: 0.92rem;
    margin-bottom: 18px;
  }

  .hero__lead--emphasis,
  .section-footer--emphasis p,
  .section-footer--emphasis p + p {
    max-width: none;
  }

  .hero-photo-frame,
  .hero-photo {
    min-height: 320px;
  }

  .card,
  .cta {
    padding: 22px;
  }

  .button {
    width: 100%;
  }
}
