﻿:root {
  --bg-0: #f4f7f3;
  --bg-1: #edf3ec;
  --ink: #192119;
  --muted: #4f5c50;
  --accent: #2fb56f;
  --accent-soft: #9adab7;
  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(25, 33, 25, 0.11);
  --shadow: 0 12px 34px rgba(20, 34, 20, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% -8%, rgba(47, 181, 111, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 5% 108%, rgba(122, 162, 124, 0.1) 0%, transparent 36%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  line-height: 1.58;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
  opacity: 0;
  transition: opacity 320ms ease;
}

body.is-loaded {
  opacity: 1;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.16;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      rgba(37, 54, 37, 0.05) calc(10% - 1px),
      rgba(37, 54, 37, 0.05) 10%
    );
}

#ambient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#boids-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#magic-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

#stats-burst-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.022;
  background-image: radial-gradient(rgba(0, 0, 0, 0.45) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 3;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.06rem 1.6rem;
  backdrop-filter: blur(7px);
  background: rgba(244, 247, 243, 0.9);
  border-bottom: 1px solid rgba(25, 33, 25, 0.16);
  box-shadow: 0 8px 24px rgba(20, 34, 20, 0.12);
  z-index: 10;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(47, 181, 111, 0.65), transparent);
  opacity: 0.75;
}

.logo {
  color: var(--ink);
  font-family: "Manrope", "Arial", sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.08rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.87rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.38rem 0.12rem 0.5rem;
  position: relative;
  transition: color 220ms ease;
}

nav a:hover,
nav a:focus-visible,
nav a.is-active {
  color: var(--accent);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.12rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
nav a.is-active::after {
  transform: scaleX(1);
}

main {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.6rem 0;
  scroll-margin-top: 6.5rem;
}

.section.is-current {
  filter: none;
  transform: none;
}

.hero {
  padding-top: 8.4rem;
  padding-bottom: 3.4rem;
}

#about {
  padding-top: 8rem;
}

#hero-heading {
  position: relative;
  display: inline-block;
}

.eyebrow {
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--accent);
  margin-bottom: 0.78rem;
}

h1,
h2,
h3 {
  font-family: "Manrope", "Arial", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  max-width: 13ch;
  letter-spacing: -0.015em;
}

h1 span {
  color: var(--accent);
}

#magic-word {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  min-width: 4.8ch;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

#magic-word .magic-source {
  display: inline-block;
  line-height: 1;
}

.lead {
  margin-top: 1.2rem;
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 0.72rem 1.04rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 0 0 rgba(47, 181, 111, 0);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 260ms ease, border-color 260ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(115deg, transparent, rgba(47, 181, 111, 0.22), transparent);
  transition: transform 520ms ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

 .btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #f3f8f3;
  box-shadow: 0 10px 24px rgba(47, 181, 111, 0.3), 0 0 0 1px rgba(20, 34, 20, 0.05);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 14px 30px rgba(47, 181, 111, 0.36), 0 0 0 1px rgba(20, 34, 20, 0.1);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 16px rgba(20, 34, 20, 0), 0 0 0 1px rgba(47, 181, 111, 0);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  box-shadow: 0 10px 20px rgba(20, 34, 20, 0.12), 0 0 0 1px rgba(47, 181, 111, 0.18);
}


.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 280ms ease, box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stat {
  cursor: pointer;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 15%, rgba(47, 181, 111, 0.1) 50%, transparent 85%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 42%);
  opacity: 0;
  transform: translateX(-12%);
  transition: opacity 280ms ease, transform 480ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(47, 181, 111, 0.36);
  box-shadow: 0 16px 32px rgba(20, 34, 20, 0.14);
}

.card:hover::after,
.card:focus-within::after {
  opacity: 1;
  transform: translateX(12%);
}

.glass {
  padding: 1.85rem;
}

.glass p,
.principle p,
.timeline-item p,
.connect-text,
.stat .label,
.link-tile small {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.stat .value {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--accent);
}

#principles h2,
#journey h2,
#connect h2 {
  margin-bottom: 1rem;
}

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

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline-item {
  border-left: 2px solid rgba(47, 181, 111, 0.42);
  padding: 0.5rem 1rem 0.5rem 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  transition: border 250ms ease-out !important;
}

.timeline-item:hover,
.timeline-item:focus-within {
  border-left-color: var(--accent);
  border-left: 9px solid var(--accent);
  background: rgba(255, 255, 255, 0.94);
}

.timeline-item .year {
  font-family: "Manrope", sans-serif;
  color: var(--accent);
  margin: 0;
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-top: 0.36rem;
}

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

.link-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 16px rgba(20, 34, 20, 0), 0 0 0 1px rgba(47, 181, 111, 0);
  transition: border-color 260ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 260ms ease, box-shadow 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.link-tile:hover,
.link-tile:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(20, 34, 20, 0.16), 0 0 0 1px rgba(47, 181, 111, 0.18);
}

.link-tile span {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  display: block;
}

.site-footer {
  padding: 3rem 1rem 2.4rem;
  text-align: center;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  display: inline-block;
  margin: 0;
  transition: color 220ms ease, text-shadow 280ms ease, transform 280ms ease;
}

.site-footer:hover p,
.site-footer:focus-within p {
  color: #2e8f57;
  text-shadow:
    0 0 10px rgba(111, 205, 145, 0.28),
    0 0 22px rgba(111, 205, 145, 0.18),
    0 0 38px rgba(154, 218, 183, 0.12);
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transition: opacity 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
}



@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }

  body {
    opacity: 1;
    transition: none;
  }

  .section,
  .card,
  .btn,
  .link-tile,
  .timeline-item,
  .reveal {
    transition: none;
    animation: none;
  }
}

@media (max-width: 860px) {
  .stats,
  .grid-3,
  .links-grid {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 0.58rem;
  }

  nav a {
    font-size: 0.73rem;
  }

  .section {
    padding: 3.2rem 0;
    scroll-margin-top: 7.5rem;
  }

  .hero {
    min-height: calc(100svh - 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3.5rem;
    padding-bottom: 6rem;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 4.4rem);
    max-width: 11ch;
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgba(79, 92, 80, 0.78);
    max-width: 52ch;
  }

  #about {
    padding-top: 1.5rem;
  }
}
