:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f6;
  --ink: #141816;
  --ink-muted: #5a635f;
  --accent: #1f5c4f;
  --accent-soft: rgba(31, 92, 79, 0.08);
  --line: rgba(20, 24, 22, 0.08);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.3s var(--ease);
}

.nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: -0.02em;
}

.mobile-nav:not(.open) {
  visibility: hidden;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
  background: #17473d;
  border-color: #17473d;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--ink);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(31, 92, 79, 0.07), transparent 55%),
    linear-gradient(180deg, #f8faf9 0%, #ffffff 55%, #ffffff 100%);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.graph {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.node {
  transform-origin: center;
  animation: pulse-node 4.5s var(--ease) infinite;
}

.n2 { animation-delay: 0.4s; }
.n3 { animation-delay: 0.8s; }
.n5 { animation-delay: 1.2s; }
.n7 { animation-delay: 1.6s; }

@keyframes pulse-node {
  0%, 100% { transform: scale(1); opacity: inherit; }
  50% { transform: scale(1.35); }
}

.edges line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-line 2.2s var(--ease) forwards;
}

.edges line:nth-child(1) { animation-delay: 0.2s; }
.edges line:nth-child(2) { animation-delay: 0.35s; }
.edges line:nth-child(3) { animation-delay: 0.5s; }
.edges line:nth-child(4) { animation-delay: 0.65s; }
.edges line:nth-child(5) { animation-delay: 0.8s; }
.edges line:nth-child(6) { animation-delay: 0.95s; }
.edges line:nth-child(7) { animation-delay: 1.1s; }
.edges line:nth-child(8) { animation-delay: 1.25s; }
.edges line:nth-child(9) { animation-delay: 1.4s; }
.edges line:nth-child(10) { animation-delay: 1.55s; }

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.hero-lead {
  max-width: 32rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.section-inner.wide {
  max-width: 68rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

.problem {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.solution {
  background: var(--bg-soft);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 3.5rem;
}

.pillar-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.98rem;
  color: var(--ink-muted);
}

/* Process */
.steps {
  list-style: none;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1.2;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Values */
.values {
  background: var(--bg-soft);
}

.value-list {
  list-style: none;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.value-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.value-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.value-list strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.value-list span {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Mission */
.mission {
  text-align: center;
}

.mission blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 28ch;
  margin: 0 auto 1.75rem;
}

.mission-text {
  color: var(--ink-muted);
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Founders */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-top: 3rem;
}

.founder-photo {
  margin: 0 0 1.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-soft);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.8s var(--ease);
}

.founder:hover .founder-photo img {
  transform: scale(1.03);
}

.founder h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.founder-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}

.founder p:last-child {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* CTA */
.cta-section {
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(31, 92, 79, 0.06), transparent 60%),
    var(--bg-soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta-section h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .section-text {
  margin: 0 auto 2rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.contact-block a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.3s var(--ease);
}

.contact-block a:hover {
  color: #17473d;
}

.contact-block p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 2.25rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 28rem;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: right;
}

.footer-contact a {
  color: var(--ink-muted);
  transition: color 0.3s var(--ease);
}

.footer-contact a:hover {
  color: var(--accent);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.hero .reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 0.9s var(--ease) forwards;
}

.hero .delay-1 { animation-delay: 0.15s; }
.hero .delay-2 { animation-delay: 0.3s; }
.hero .delay-3 { animation-delay: 0.45s; }

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav,
  .site-header > .btn-sm {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .brand {
    margin-bottom: 1.1rem;
  }

  .hero h1 {
    margin-bottom: 1rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact {
    text-align: left;
  }

  .step {
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .hero .reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .node,
  .edges line {
    animation: none;
  }

  .edges line {
    stroke-dashoffset: 0;
  }

  .founder:hover .founder-photo img {
    transform: none;
  }
}
