:root {
  --bg: #f4faf7;
  --bg-deep: #e7f3ee;
  --ink: #0b4e4d;
  --ink-soft: #145a58;
  --muted: #4a7370;
  --line: rgba(11, 78, 77, 0.12);
  --accent: #29a482;
  --accent-bright: #60c080;
  --accent-deep: #006060;
  --accent-soft: rgba(41, 164, 130, 0.14);
  --highlight: #f0e428;
  --white: #ffffff;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background: var(--bg);
  overflow-x: hidden;
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(90% 70% at 88% 8%, rgba(96, 192, 128, 0.28), transparent 55%),
    radial-gradient(70% 55% at 8% 95%, rgba(0, 96, 96, 0.12), transparent 50%),
    linear-gradient(165deg, #f7fcf9 0%, #eef7f3 42%, #e6f2ee 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.top,
main,
.footer {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(72px, 9vw, 96px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav a:hover {
  color: var(--accent-deep);
}

.nav-cta {
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  box-shadow: 0 8px 20px rgba(0, 96, 96, 0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 96, 96, 0.24);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.hero-copy h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
}

.lede {
  margin: 0 0 2rem;
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 300;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: 0 10px 24px rgba(0, 96, 96, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 96, 96, 0.28);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(58vh, 480px);
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(88%, 420px);
  aspect-ratio: 1;
  border-radius: 36% 64% 55% 45% / 45% 40% 60% 55%;
  background:
    radial-gradient(circle at 30% 25%, rgba(240, 228, 40, 0.35), transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(96, 192, 128, 0.45), transparent 50%),
    linear-gradient(145deg, rgba(41, 164, 130, 0.22), rgba(0, 96, 96, 0.18));
  filter: blur(2px);
  z-index: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(0, 96, 96, 0.18));
}

.section {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18ch;
  color: var(--accent-deep);
}

.section-lede {
  margin: 0 0 2.5rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 300;
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}

.pillars h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.pillars p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
}

.pillars li {
  padding-top: 1rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--accent-bright), var(--accent-deep)) 1;
}

.contact .btn {
  margin-bottom: 2rem;
}

.address {
  font-style: normal;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

.footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.45);
}

.footer-brand img {
  display: block;
  width: 88px;
  height: auto;
}

.legal,
.copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
  max-width: 70ch;
}

/* Motion */
.motion-ok .hero-copy h1,
.motion-ok .lede,
.motion-ok .cta-row {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.motion-ok .lede { animation-delay: 0.12s; }
.motion-ok .cta-row { animation-delay: 0.24s; }

.motion-ok .hero-logo {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  animation: rise-scale 1s var(--ease) 0.1s forwards;
}

.motion-ok .hero-visual::before {
  opacity: 0;
  animation: fade-in 1.2s var(--ease) 0.2s forwards;
}

.motion-ok .section,
.motion-ok .pillars li {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.motion-ok .section.in,
.motion-ok .pillars li.in {
  opacity: 1;
  transform: none;
}

.motion-ok .pillars li:nth-child(2) { transition-delay: 0.08s; }
.motion-ok .pillars li:nth-child(3) { transition-delay: 0.16s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes rise-scale {
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
    text-align: center;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
    min-height: auto;
  }

  .hero-logo {
    width: min(72vw, 320px);
  }

  .hero-copy h1,
  .lede {
    margin-left: auto;
    margin-right: auto;
    max-width: 28ch;
  }

  .cta-row {
    justify-content: center;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section h2,
  .section-lede {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .brand img {
    width: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
