:root {
  --ink: #15231c;
  --ink-soft: #3d5248;
  --paper: #f4f7f2;
  --leaf: #2f6b4f;
  --leaf-deep: #214836;
  --signal: #d4f06a;
  --line: rgba(21, 35, 28, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

*,
*::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(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.2rem, 4vw, 2.75rem);
  background: rgba(244, 247, 242, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 247, 242, 0.92);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: block;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.35rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  font-size: 0.88rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 0.4rem 0.85rem;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: 0.35rem;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--leaf-deep);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding:
    calc(var(--header-h) + 2.5rem)
    clamp(1.2rem, 4vw, 2.75rem)
    clamp(2.75rem, 7vh, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 48% 42% at 82% 28%, rgba(212, 240, 106, 0.55), transparent 68%),
    radial-gradient(ellipse 38% 40% at 58% 62%, rgba(126, 200, 163, 0.45), transparent 70%),
    radial-gradient(ellipse 42% 48% at 18% 78%, rgba(47, 107, 79, 0.32), transparent 65%),
    linear-gradient(145deg, #e8f3ec 0%, #c8e0d2 28%, #8fbfa8 58%, #4d8a6e 88%, #2a5c48 100%);
  transform: scale(1.04);
  animation: hero-breathe 10s var(--ease) infinite alternate;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 35, 28, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 35, 28, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 70% at 70% 38%, black, transparent 78%);
  opacity: 0.85;
  animation: grid-drift 18s linear infinite;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.65;
  mix-blend-mode: multiply;
}

.blob.b1 {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  right: 4%;
  top: 6%;
  background: radial-gradient(circle, #d4f06a 0%, transparent 70%);
  animation: blob-float 9s var(--ease) infinite alternate;
}

.blob.b2 {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  right: 28%;
  bottom: 12%;
  background: radial-gradient(circle, #7ec8a3 0%, transparent 68%);
  animation: blob-float 11s var(--ease) 0.8s infinite alternate-reverse;
}

.blob.b3 {
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  right: 12%;
  top: 48%;
  background: radial-gradient(circle, #f3ffc0 0%, transparent 70%);
  opacity: 0.5;
  animation: blob-float 7s var(--ease) 0.4s infinite alternate;
}

.hero-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fade-in 1s var(--ease) 0.25s forwards;
}

.flow-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-flow 2.6s var(--ease) forwards;
}

.flow-line.f1 {
  animation-delay: 0.3s;
}

.flow-line.f2 {
  animation-delay: 0.55s;
}

.flow-line.f3 {
  animation-delay: 0.8s;
}

.flow-node {
  fill: var(--signal);
  opacity: 0;
  animation: node-pop 0.5s var(--ease) forwards;
  filter: drop-shadow(0 0 8px rgba(212, 240, 106, 0.8));
}

.flow-node.n1 {
  animation-delay: 1.4s;
}

.flow-node.n2 {
  animation-delay: 1.65s;
  fill: #7ec8a3;
}

.flow-node.n3 {
  animation-delay: 1.9s;
}

.flow-node.n4 {
  animation-delay: 2.1s;
  fill: #fffef2;
}

.hero-beam {
  position: absolute;
  top: -20%;
  right: 8%;
  width: min(55vw, 560px);
  height: 140%;
  background: linear-gradient(
    108deg,
    transparent 35%,
    rgba(212, 240, 106, 0.22) 48%,
    rgba(255, 255, 255, 0.28) 51%,
    rgba(126, 200, 163, 0.18) 56%,
    transparent 68%
  );
  transform: skewX(-12deg);
  animation: beam-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(244, 247, 242, 0.96) 0%,
      rgba(244, 247, 242, 0.78) 36%,
      rgba(244, 247, 242, 0.18) 64%,
      rgba(244, 247, 242, 0.02) 100%
    ),
    linear-gradient(0deg, rgba(244, 247, 242, 0.8) 0%, transparent 40%);
}

.hero-orbit {
  position: absolute;
  width: min(62vw, 640px);
  aspect-ratio: 1;
  right: -8%;
  top: 10%;
  border: 1px solid rgba(21, 35, 28, 0.14);
  border-radius: 50%;
  animation: orbit-spin 22s linear infinite;
}

.hero-orbit.orbit-b {
  width: min(42vw, 420px);
  right: 8%;
  top: 28%;
  border-color: rgba(212, 240, 106, 0.35);
  animation-duration: 16s;
  animation-direction: reverse;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(212, 240, 106, 0.28);
}

.hero-orbit::before {
  width: 12px;
  height: 12px;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-orbit::after {
  width: 8px;
  height: 8px;
  bottom: 18%;
  right: 14%;
  background: var(--leaf);
  box-shadow: 0 0 0 5px rgba(47, 107, 79, 0.22);
}

.orbit-b::before {
  width: 9px;
  height: 9px;
  top: 20%;
}

.orbit-b::after {
  width: 6px;
  height: 6px;
  background: #fffef2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.15rem);
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 11vw, 7.6rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(1.2rem);
  animation: rise 0.85s var(--ease) 0.08s forwards;
}

.brand .logo-mark {
  width: clamp(2.75rem, 7vw, 4.5rem);
  height: clamp(2.75rem, 7vw, 4.5rem);
  border-radius: clamp(0.55rem, 1.2vw, 0.9rem);
}

.headline {
  margin: 0 0 0.95rem;
  max-width: 18ch;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.85s var(--ease) 0.22s forwards;
}

.lede {
  margin: 0 0 1.9rem;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.85s var(--ease) 0.36s forwards;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.85s var(--ease) 0.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(21, 35, 28, 0.18);
}

.btn-primary:hover {
  background: var(--leaf-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 107, 79, 0.28);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: rgba(47, 107, 79, 0.45);
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 1.55rem;
  font-size: 1.02rem;
}

/* ——— Sections ——— */

.section {
  padding: clamp(4.25rem, 9vw, 7rem) clamp(1.2rem, 4vw, 2.75rem);
}

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.section h2 {
  margin: 0 0 0.95rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-lede {
  margin: 0 0 2.5rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
}

.services {
  background: #fffef9;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(9rem, 0.85fr) 1.45fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.service-list p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 36rem;
}

.how {
  background:
    radial-gradient(520px 280px at 85% 15%, rgba(212, 240, 106, 0.28), transparent 60%),
    #e7efe8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.how-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 36rem;
  font-size: 1.02rem;
}

.how-copy p + p {
  margin-top: 1rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--leaf);
}

.step-label {
  flex: 1;
  text-align: right;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact {
  text-align: center;
  background: var(--paper);
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section-lede {
  margin-inline: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem clamp(1.2rem, 4vw, 2.75rem) 1.9rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-brand .logo-mark {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes draw-flow {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blob-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 5%, 0) scale(1.08);
  }
}

@keyframes beam-sweep {
  0%,
  100% {
    opacity: 0.35;
    transform: skewX(-12deg) translateX(-6%);
  }
  50% {
    opacity: 0.75;
    transform: skewX(-12deg) translateX(8%);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 56px 28px, 56px 28px;
  }
}

@keyframes hero-breathe {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.5%, 1.2%, 0);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .brand,
  .headline,
  .lede,
  .cta-group,
  .hero-photo,
  .hero-photo::after,
  .hero-orbit,
  .hero-flow,
  .flow-line,
  .flow-node,
  .blob,
  .hero-beam,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

@media (max-width: 900px) {
  .hero {
    align-items: center;
  }

  .hero-veil {
    background:
      linear-gradient(
        180deg,
        rgba(244, 247, 242, 0.55) 0%,
        rgba(244, 247, 242, 0.82) 48%,
        rgba(244, 247, 242, 0.94) 100%
      );
  }

  .headline {
    max-width: none;
  }

  .service-list li,
  .how-inner {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .step-label {
    text-align: left;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 520px) {
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
