/* Компонова — palette taken from the logo */
:root {
  --paper: #F3EFE4;
  --paper-2: #EAE3D2;
  --ink: #33200F;        /* deepened logo brown for text */
  --brown: #4C2E1C;      /* logo brown */
  --brown-soft: #8A6B55;
  --green: #608831;      /* logo green */
  --green-ink: #4A6B23;  /* green with enough contrast on paper */
  --green-pale: #A8C470;
  --line: rgba(51, 32, 15, .16);
  --line-strong: rgba(51, 32, 15, .38);

  --f-sans: "Golos Text", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "Consolas", monospace;

  --gutter: clamp(18px, 4vw, 48px);
  --max: 1240px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --sprout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.6 22c0-3.6.1-6.4.4-8.6'/%3E%3Cpath d='M12 13.6c.2-5.6 3.3-9.1 9.5-10.1-.6 6.3-4 9.8-9.5 10.1z' fill='%23000' fill-opacity='.25'/%3E%3Cpath d='M11.8 16.2C7 16 3.6 13.4 2.8 8.7c4.8-.2 8.2 2.7 9 7.5z' fill='%23000' fill-opacity='.25'/%3E%3C/svg%3E");
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20C3 10 9 3.5 21 3c.3 12-6.5 18-17 17z' fill='%23000' fill-opacity='.55' stroke='%23000' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M4 20c4-5 8-9 13-12.5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11C40 4 80 3 110 7s60 5 87-2' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* desktop smooth scroll is driven by main.js, so native smoothing must not fight it */
html.smooth-scroll { scroll-behavior: auto; }

/* elastic scroll feedback: blocks lag behind by their own depth (--sv = scroll speed, --k = depth, set in main.js) */
.flex { translate: 0 calc(var(--sv, 0) * var(--k, 1) * .6px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* custom scrollbar */
html { scrollbar-width: thin; scrollbar-color: var(--brown-soft) var(--paper-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background: var(--brown-soft);
  border: 3px solid var(--paper-2);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--green); }
::-webkit-scrollbar-thumb:active { background: var(--green-ink); }
::selection { background: var(--green-pale); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* no blue tap flash / long-press selection on links and buttons (phones) */
html { -webkit-tap-highlight-color: transparent; }
a, button, .pill, .btn, img, svg {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
          user-select: none;
}
h1, h2, h3, p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 228, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(51, 32, 15, .55); }
.header__in {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
  transition: min-height .3s ease;
}
.header.is-scrolled .header__in { min-height: 56px; }
.header__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.header__logo img:first-child { width: 34px; transform-origin: 50% 80%; }
.header__logo:hover img:first-child { animation: sway 1.2s ease-in-out; }
.header__logo img:last-child { width: 150px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  position: relative;
  padding-block: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--green);
  transition: right .25s ease;
}
.nav a:hover::after { right: 0; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px 10px 14px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(74, 107, 35, .7);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.header__phone:hover {
  background: var(--green-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(74, 107, 35, .8);
}
.header__phone svg { transform-origin: 50% 50%; }
.header__phone:hover svg { animation: ring .6s ease; }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-16deg); }
  40% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(6deg); }
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 30;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brown);
  color: var(--paper);
  box-shadow: 0 10px 24px -10px rgba(51, 32, 15, .6);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s;
}
.to-top.is-on { opacity: 1; transform: none; }
.to-top:hover { background: var(--green); }
.to-top svg { width: 22px; height: 22px; transition: transform .25s ease; }
.to-top:hover svg { transform: translateY(-3px); }

@media (max-width: 860px) {
  .nav { display: none; }
  .header__phone { margin-left: auto; }
}
@media (max-width: 420px) {
  .header__logo img:last-child { width: 112px; }
  .header__phone span { display: none; }
  .header__phone { padding: 10px; }
}

/* ---------- common ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 15px 22px 15px 26px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background .2s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 5s 2.4s ease-in-out infinite;
}
.btn:hover { background: var(--green-ink); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

.link-under {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.link-under:hover { color: var(--green-ink); border-color: var(--green); }

.section { padding-block: clamp(72px, 10vw, 128px); }

.section__head {
  position: relative;
  padding-top: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
/* top rule draws itself in from the left */
.section__head::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: 0 50%;
  transition: transform 1.3s var(--ease);
}
.section__head.watch:not(.is-in)::before { transform: scaleX(0); }
.section__title {
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
@media (max-width: 560px) {
  .section__head { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 104px) 0; overflow: hidden; position: relative; }
.hero > .wrap { position: relative; z-index: 1; }

.hero__text > * { animation: rise 1s var(--ease) both; }
.hero__text > :nth-child(1) { animation-delay: .1s; }
.hero__text > :nth-child(2) { animation-delay: .22s; }
.hero__text > :nth-child(3) { animation-delay: .4s; }
.hero__text > :nth-child(4) { animation-delay: .55s; }

/* drifting leaves */
.hero__leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__leaves i {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  background: var(--green);
  opacity: 0;
  -webkit-mask: var(--leaf) center / contain no-repeat;
          mask: var(--leaf) center / contain no-repeat;
  animation: leaf-fall var(--t) var(--dl) ease-in-out infinite;
}
.hero__leaves i:nth-child(even) { background: var(--green-pale); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.hero__title em {
  font-style: normal;
  font-weight: 500;
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.16em;
  height: .24em;
  background: var(--green-pale);
  -webkit-mask: var(--squiggle) center / 100% 100% no-repeat;
          mask: var(--squiggle) center / 100% 100% no-repeat;
  animation: draw-x 1.1s 1.1s var(--ease) both;
}
.hero__lead {
  margin-top: 30px;
  max-width: 34em;
  font-size: clamp(17px, 1.4vw, 19px);
  color: rgba(51, 32, 15, .82);
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
}
.hero__mark {
  justify-self: end;
  width: min(100%, 440px);
  transform: translateX(6%);
  position: relative;
  transition: translate .8s var(--ease);
}
/* logo taken apart: two arcs orbit, the sprout sways, each leaf moves on its own */
.logo-anim { position: relative; aspect-ratio: 819 / 836; }
.logo-anim .la,
.la-sprout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.logo-anim .la { opacity: 0; }
.la-ring-g,
.la-ring-b {
  transform-origin: 50.4% 49.8%;
  translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 8px);
  transition: translate .9s var(--ease);
}
.la-sprout {
  transform-origin: 47% 79%;
  translate: calc(var(--px, 0) * 24px) calc(var(--py, 0) * 24px);
  transition: translate .9s var(--ease);
  animation: sprout-sway 6s ease-in-out infinite;
}
.la-stem { transform-origin: 47% 79%; }
.la-leaf-l,
.la-leaf-r { transform-origin: 47.4% 66%; }

/* both arcs share one motion so they keep their gaps and never slide over each other */
.logo-anim.is-in .la-ring-g,
.logo-anim.is-in .la-ring-b { animation: ring-in 1.4s .1s var(--ease) both, spin 40s 1.5s linear infinite; }
.logo-anim.is-in .la-stem   { animation: stem-in .7s .6s var(--ease) both; }
.logo-anim.is-in .la-leaf-l { animation: leaf-in 1s 1s var(--ease) both, leaf-sway-l 4.6s 2s ease-in-out infinite; }
.logo-anim.is-in .la-leaf-r { animation: leaf-in 1s .85s var(--ease) both, leaf-sway-r 5.4s 1.85s ease-in-out infinite; }
.logo-anim:hover .la-leaf-l,
.logo-anim:hover .la-leaf-r { animation-duration: 1s, 1.6s; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__mark { justify-self: center; width: min(76vw, 320px); transform: none; }
}
/* phone: the moving logo becomes a soft backdrop behind the text */
@media (max-width: 640px) {
  .hero__grid { position: relative; gap: 0; }
  .hero__text { position: relative; z-index: 1; }
  .hero__mark {
    position: absolute;
    z-index: 0;
    top: -24px;
    right: -38%;
    width: min(100vw, 440px);
    opacity: .16;
    pointer-events: none;
  }
}

.facts {
  margin: clamp(56px, 8vw, 96px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.facts__item {
  padding: 26px 24px 30px 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.facts__item + .facts__item { padding-left: 24px; border-left: 1px solid var(--line); }
/* fixed two-digit column: text starts at the same x in every item and doesn't shift while counting */
.facts dt {
  flex: none;
  width: 2ch;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  color: var(--brown);
  font-variant-numeric: tabular-nums;
}
.facts dd { margin: 0; font-size: 15px; line-height: 1.4; max-width: 15em; color: rgba(51, 32, 15, .78); }

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts__item { padding: 18px 0; }
  .facts__item + .facts__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- technology (dark) ---------- */
.tech {
  background: #2C1C0F;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.tech > .wrap { position: relative; z-index: 1; }
.section__head--light::before { background: rgba(243, 239, 228, .3); }

/* spores rising from the tunnel */
.tech__spores { position: absolute; inset: 0; pointer-events: none; }
.tech__spores i {
  position: absolute;
  bottom: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--green-pale);
  opacity: 0;
  animation: spore var(--t) var(--dl) linear infinite;
}
.section__head--light .section__num { color: var(--green-pale); }

.tech__intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 860px) { .tech__intro { grid-template-columns: 1fr; } }

.tech__big {
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.3;
  font-weight: 400;
}
.tech__small { color: rgba(243, 239, 228, .7); max-width: 30em; }

.points {
  list-style: none;
  padding: 0;
  margin: clamp(56px, 7vw, 96px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pt {
  position: relative;
  padding: 28px clamp(16px, 2vw, 28px) 34px;
  border-top: 1px solid rgba(243, 239, 228, .2);
  transition: background-color .3s ease;
}
.pt + .pt { border-left: 1px solid rgba(243, 239, 228, .12); }
.pt:first-child { padding-left: 0; }
.pt::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--green-pale);
  transition: width .45s ease;
}
.pt:hover::before { width: 100%; }

.pt__ico {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--green-pale);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pt__ico .i-dot { fill: var(--green-pale); stroke: none; }
.pt__ico * { transform-box: view-box; }

.i-hand { transform-origin: 24px 27px; transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.pt:hover .i-hand { transform: rotate(360deg); }

.i-spin { transform-origin: 24px 24px; transition: transform 1.2s cubic-bezier(.3, .7, .2, 1); }
.pt:hover .i-spin { transform: rotate(180deg); }

.i-needle { transform-origin: 24px 29px; transform: rotate(-80deg); transition: transform .8s cubic-bezier(.3, 1.6, .4, 1); }
.pt:hover .i-needle { transform: rotate(0deg); }

.i-l1, .i-l2 { transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
.pt:hover .i-l1 { transform: translateY(-5px); }
.pt:hover .i-l2 { transform: translateY(-2px); }

.pt__big {
  margin-top: 26px;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--green-pale);
}
.pt__title {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--paper);
}
.pt__text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(243, 239, 228, .7);
}

@media (max-width: 1000px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt:nth-child(3) { border-left: 0; }
  .pt:nth-child(odd) { padding-left: 0; }
  .pt:nth-child(even) { padding-right: 0; }
}
/* phone: a vertical process rail — icons sit on a line that fills green as you scroll */
@media (max-width: 640px) {
  .points { grid-template-columns: 1fr; gap: 0; margin-top: 44px; }
  .pt,
  .pt:nth-child(n) {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    padding: 0 0 36px;
    border: 0;
  }
  .pt:last-child { padding-bottom: 0; }

  .points .pt:nth-child(n)::before,
  .points .pt:nth-child(n)::after {
    content: "";
    display: block;
    position: absolute;
    top: 64px;
    bottom: 8px;
    left: 27px;
    width: 2px;
    height: auto;
    border-radius: 2px;
    background: rgba(243, 239, 228, .12);
    transition: none;
  }
  .points .pt::after {
    background: linear-gradient(var(--green-pale), rgba(168, 196, 112, .25));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.1s var(--ease) calc(var(--d, 0ms) + .6s);
  }
  .points .pt.is-in::after { transform: scaleY(1); }
  .points .pt:last-child::before,
  .points .pt:last-child::after { display: none; }

  .pt__ico {
    grid-row: 1 / span 4;
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    padding: 12px;
    border-radius: 50%;
    border: 1px solid rgba(168, 196, 112, .35);
    background: #2C1C0F;
    transition: box-shadow .8s var(--ease) calc(var(--d, 0ms) + .3s), background-color .8s var(--ease) calc(var(--d, 0ms) + .3s);
  }
  .pt.is-in .pt__ico {
    background-color: #3A2A17;
    box-shadow: 0 0 0 6px rgba(168, 196, 112, .08), 0 0 28px rgba(168, 196, 112, .18);
  }

  .pt__big { margin-top: 12px; font-size: 28px; white-space: normal; }
  .pt__title { margin-top: 10px; font-size: 16px; }
  .pt__text { margin-top: 4px; }
}

/* icons play their motion once when the card scrolls in (works on touch too) */
.pt.is-in .i-hand   { animation: hand-go 1.4s calc(var(--d, 0ms) + .5s) var(--ease) backwards; }
.pt.is-in .i-spin   { animation: snow-go 1.6s calc(var(--d, 0ms) + .5s) var(--ease) backwards; }
.pt.is-in .i-needle { animation: needle-go 1.6s calc(var(--d, 0ms) + .5s) var(--ease) backwards; }
.pt.is-in .i-l1     { animation: layer-go 1.1s calc(var(--d, 0ms) + .5s) var(--ease) backwards; }
.pt.is-in .i-l2     { animation: layer-go2 1.1s calc(var(--d, 0ms) + .6s) var(--ease) backwards; }
/* main.js toggles .is-idle off now and then to replay an icon's motion */
.pt.is-in.is-idle .pt__ico * { animation: none; }
@media (hover: none) {
  .pt.is-in::before { width: 100%; transition: width 1.2s var(--ease) calc(var(--d, 0ms) + .3s); }
}

/* ---------- product ---------- */
.section--soil {
  background: var(--paper-2);
  position: relative;
}

.compo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 96px);
}
.compo__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}
.compo__row:nth-child(-n+2) { border-top: 1px solid var(--line); }
.compo__name {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--brown);
  transition: color .2s, transform .25s;
}
.compo__row:hover .compo__name { color: var(--green-ink); transform: translateX(6px); }
.compo__text { font-size: 15.5px; color: rgba(51, 32, 15, .78); line-height: 1.5; }
@media (max-width: 900px) {
  .compo { grid-template-columns: 1fr; }
  .compo__row:nth-child(2) { border-top: 0; }
}
@media (max-width: 560px) {
  .compo__row { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- who ---------- */
.who__split {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.who__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.who__card--garden { background: #E8DDC1; color: var(--ink); }
.who__card--field { background: #3D4E21; color: var(--paper); }

.who__body {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
}
.who__card--garden .who__body {
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: clamp(40px, 5vw, 72px);
}
.who__card--field .who__body {
  padding-left: clamp(40px, 5vw, 72px);
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}


.who__title {
  margin-top: 0;
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: .95;
  letter-spacing: -.035em;
}
.who__card--garden .who__title em { font-style: normal; color: var(--green-ink); }
.who__card--field .who__title em { font-style: normal; color: var(--green-pale); }

.who__text {
  margin-top: 24px;
  max-width: 28em;
  color: rgba(51, 32, 15, .78);
}
.who__card--field .who__text { color: rgba(243, 239, 228, .78); }

.tags {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-size: 14px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
}
.who__card--field .tags li { border-color: rgba(243, 239, 228, .35); }

/* illustration melts into the card background */
.who__img {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}
.who__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  transform: translateY(var(--shift, 0px)) scale(1.06);
  transform-origin: 50% 100%;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.who__card:hover .who__img img { transform: translateY(var(--shift, 0px)) scale(1.1); }

.who__arrow {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(clamp(64px, 8vw, 112px) + clamp(22px, 3.2vw, 46px));
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px rgba(243, 239, 228, .25);
}
.who__arrow svg { width: 26px; height: 26px; animation: nudge 2.2s ease-in-out infinite; }
.who__arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--paper);
  animation: pulse 2.2s ease-out infinite;
}

@media (max-width: 860px) {
  .who__split { grid-template-columns: 1fr; }
  .who__card--garden .who__body,
  .who__card--field .who__body { padding-inline: var(--gutter); }
  .who__body { padding-top: 56px; }
  .who__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .who__img img { transition: none; transform: scale(1.06); }
}

/* ---------- contacts ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .contacts__grid { grid-template-columns: 1fr; } }
.contacts__intro { display: grid; gap: 18px; align-content: start; }
.contacts__intro p:last-child { color: rgba(51, 32, 15, .8); max-width: 26em; }

.reach__line {
  display: block;
  position: relative;
  text-decoration: none;
  padding: 22px 56px 24px 0;
  border-bottom: 1px solid var(--line);
}
.reach__line::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  background: var(--brown-soft);
  -webkit-mask: var(--arrow) center / contain no-repeat;
          mask: var(--arrow) center / contain no-repeat;
  transition: transform .35s var(--ease), background-color .2s;
}
.reach__line:hover::after { transform: translate(4px, -4px); background: var(--green); }
.reach__line::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.reach__line:hover::before { transform: none; }
@media (max-width: 560px) {
  .reach__line { padding-right: 34px; }
  .reach__line::after { width: 22px; height: 22px; margin-top: -11px; right: 0; }
  .reach__value { font-size: 22px; }
}
.reach__line:first-child { border-top: 1px solid var(--line); }
.reach__label {
  display: block;
  font-size: 14px;
  color: var(--brown-soft);
  margin-bottom: 4px;
}
.reach__value {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.reach__value--addr { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; display: block; max-width: 26em; }
.reach__line:hover .reach__value { color: var(--green-ink); }

/* ---------- footer ---------- */
.footer {
  --lap: clamp(90px, 11vw, 150px);
  background: linear-gradient(var(--paper) 0 var(--lap), #2C1C0F var(--lap));
  color: rgba(243, 239, 228, .72);
  font-size: 15px;
  overflow: hidden;
}

/* green call-to-action card straddling the paper and the dark soil */
@property --rip { syntax: "<length>"; initial-value: 0px; inherits: false; }
.footer__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) clamp(28px, 6vw, 80px);
  border-radius: clamp(24px, 3vw, 36px);
  background: linear-gradient(135deg, #4A6B23 0%, #354F18 55%, #2A3F12 100%);
  box-shadow: 0 40px 80px -40px rgba(20, 12, 4, .8);
}
.footer__card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1400px;
  height: 1400px;
  right: calc(clamp(28px, 6vw, 80px) + clamp(170px, 20vw, 260px) / 2 - 700px);
  top: 50%;
  margin-top: -700px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle,
    transparent 0 var(--rip),
    rgba(243, 239, 228, .09) var(--rip) calc(var(--rip) + 1.5px),
    transparent calc(var(--rip) + 1.5px) 46px);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 60%);
          mask: radial-gradient(circle, #000 10%, transparent 60%);
  animation: ripple 3.2s linear infinite;
}
.footer__card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, rgba(243, 239, 228, .08) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask: linear-gradient(90deg, #000, transparent 55%);
          mask: linear-gradient(90deg, #000, transparent 55%);
}
@keyframes ripple { to { --rip: 44.5px; } }

.footer__big {
  max-width: 10em;
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--paper);
}
.footer__big em { font-style: normal; color: #D5E8A6; position: relative; white-space: nowrap; }
.footer__big em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.14em;
  height: .2em;
  background: rgba(243, 239, 228, .7);
  -webkit-mask: var(--squiggle) center / 100% 100% no-repeat;
          mask: var(--squiggle) center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s .5s var(--ease);
}
.footer__big.is-in em::after { clip-path: inset(0 0 0 0); }
.footer__sub {
  margin-top: 24px;
  max-width: 28em;
  font-size: clamp(16px, 1.4vw, 18px);
  color: rgba(243, 239, 228, .8);
}

.footer__actions { margin-top: clamp(28px, 3.5vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px 15px 22px;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 228, .45);
  color: var(--paper);
  text-decoration: none;
  font-size: clamp(16px, 1.5vw, 18px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s, border-color .35s;
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.pill:hover { color: var(--ink); border-color: var(--paper); }
.pill:hover::before { transform: none; }
.pill svg { width: 20px; height: 20px; flex: none; }
.pill:hover svg { animation: ring .6s ease; }
.pill--fill { background: var(--paper); border-color: var(--paper); color: var(--ink); font-family: var(--f-mono); font-weight: 500; }
.pill--fill::before { background: var(--green-pale); }

.footer__logo { width: clamp(170px, 20vw, 260px); }

/* columns */
.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) max-content minmax(0, 1.3fr);
  padding-top: clamp(40px, 5vw, 60px);
}
.footer__col { padding-inline: clamp(20px, 2.6vw, 36px); }
.footer__col:first-child { padding-left: 0; }
.footer__col:last-child { padding-right: 0; }
.footer__col + .footer__col { border-left: 1px solid rgba(243, 239, 228, .1); }
/* tablet: brand on its own row, sections + contacts below */
@media (min-width: 761px) and (max-width: 1024px) {
  .footer__main { grid-template-columns: max-content minmax(0, 1fr); row-gap: 40px; }
  .footer__col:first-child { grid-column: 1 / -1; padding: 0; }
  .footer__col + .footer__col:nth-child(2) { padding-left: 0; border-left: 0; }
}

.footer__word {
  width: 150px;
  filter: brightness(0) invert(.93) sepia(.15);
  opacity: .95;
}
.footer__about { margin-top: 16px; max-width: 20em; line-height: 1.6; }

.footer__h {
  margin-bottom: 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-pale);
}
.footer__list { list-style: none; margin: 0; padding: 0 24px 0 0; display: grid; gap: 12px; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--paper);
  transition: color .2s, margin .3s var(--ease);
}
.footer__list a::before {
  content: "";
  flex: none;
  width: 0;
  height: 16px;
  background: var(--green-pale);
  -webkit-mask: var(--sprout) left center / 16px 16px no-repeat;
          mask: var(--sprout) left center / 16px 16px no-repeat;
  transition: width .3s var(--ease), margin .3s var(--ease);
}
/* the sprout's 24px is taken back from the reserved padding, so the column doesn't jump */
.footer__list a:hover { color: var(--green-pale); margin-right: -24px; }
.footer__list a:hover::before { width: 16px; margin-right: 8px; }

.footer__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer__contacts a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.footer__contacts .ic {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(243, 239, 228, .2);
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.footer__contacts svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.footer__contacts a:hover { color: var(--green-pale); }
.footer__contacts a:hover .ic { background: var(--green); border-color: var(--green); color: #fff; transform: rotate(-12deg); }


/* sprouts growing out of the soil (built in main.js), they stretch toward the cursor */
.footer__ground {
  position: relative;
  height: clamp(72px, 8vw, 96px);
  margin-top: clamp(8px, 2vw, 20px);
}
.sprout {
  position: absolute;
  bottom: 0;
  left: calc(var(--x) - var(--h) * .3333);
  height: var(--h);
  width: calc(var(--h) * .6667);
  overflow: visible;
  fill: rgba(168, 196, 112, 0);
  stroke: var(--green-pale);
  stroke-width: var(--sw, 1.7);
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 100%;
  transition: fill 1s ease, scale .6s var(--ease);
}
/* no non-scaling-stroke here: it breaks pathLength-based dashes in Chrome and leaves leaves half-drawn;
   --sw (set in main.js) keeps the on-screen stroke at 1.7px instead. Slight overshoot closes the leaf outline. */
.sprout path { stroke-dasharray: 1.05 2; stroke-dashoffset: 1.05; }
.footer__ground.is-in .sprout {
  animation: sway-sm 5s calc(var(--d) + 2s) ease-in-out infinite;
  fill: rgba(168, 196, 112, .16);
  transition-delay: calc(var(--d) + 1.3s), 0s;
}
.footer__ground.is-in .s-stem { animation: draw .9s var(--d) var(--ease) forwards; }
.footer__ground.is-in .s-leaf { animation: draw 1s calc(var(--d) + .6s) var(--ease) forwards; }

.footer__soil {
  position: relative;
  border-top: 1px solid rgba(243, 239, 228, .22);
  background-color: #1D1208;
  background-image:
    radial-gradient(circle, rgba(168, 196, 112, .18) 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(243, 239, 228, .07) 1px, transparent 1.6px);
  background-size: 34px 34px, 21px 21px;
  background-position: 0 0, 9px 13px;
  animation: soil 80s linear infinite;
}
.footer__soil::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 48px;
  background: linear-gradient(rgba(96, 136, 49, .14), transparent);
  pointer-events: none;
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-block: 22px 24px;
  font-size: 14px;
}
.powered {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, .5);
  transition: color .2s;
}
.powered img {
  height: 13px;
  width: auto;
  filter: invert(1);
  opacity: .65;
  transition: opacity .2s, transform .3s var(--ease);
}
.powered:hover { color: var(--paper); }
.powered:hover img { opacity: 1; transform: translateY(-2px); }

/* phone: centred, tappable layout */
@media (max-width: 760px) {
  .footer__card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 36px 22px 28px;
  }
  .footer__logo { order: -1; width: 112px; }
  .footer__card::before { right: auto; left: 50%; margin-left: -700px; top: calc(36px + 57px); }
  .footer__card::after { -webkit-mask: none; mask: none; opacity: .5; }
  .footer__big { margin-inline: auto; font-size: clamp(36px, 10.5vw, 48px); }
  .footer__sub { margin-inline: auto; margin-top: 16px; }
  .footer__actions { justify-content: center; width: 100%; }
  .pill { width: 100%; justify-content: center; }

  .footer__main { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .footer__col,
  .footer__col + .footer__col { padding: 0; border: 0; }
  .footer__col:first-child { text-align: center; }
  .footer__word { margin-inline: auto; }
  .footer__about { margin-inline: auto; margin-top: 12px; }
  .footer__main { gap: 28px; }
  .footer__h { margin-bottom: 12px; padding-left: 4px; }

  /* sections and contacts share one card look */
  .footer__list,
  .footer__contacts {
    gap: 0;
    border-radius: 18px;
    background: rgba(243, 239, 228, .05);
    border: 1px solid rgba(243, 239, 228, .1);
    overflow: hidden;
  }

  .footer__list { grid-template-columns: 1fr 1fr; padding: 0; }
  .footer__list li:nth-child(even) { border-left: 1px solid rgba(243, 239, 228, .1); }
  .footer__list li:nth-child(n+3) { border-top: 1px solid rgba(243, 239, 228, .1); }
  .footer__list a {
    display: flex;
    min-height: 56px;
    padding: 0 16px;
    font-size: 15px;
  }
  .footer__list a::before { width: 16px; margin-right: 10px; }
  .footer__list a:hover { margin-right: 0; }
  .footer__list a:active { color: var(--green-pale); background: rgba(243, 239, 228, .05); }

  .footer__contacts { padding: 0 16px; }
  .footer__contacts li + li { border-top: 1px solid rgba(243, 239, 228, .1); }
  .footer__contacts a { padding-block: 9px; font-size: 15px; }

  .footer__ground { margin-top: 16px; height: 80px; }
  .sprout:nth-child(even) { display: none; }
  .footer__bottom { flex-direction: column; justify-content: center; text-align: center; gap: 12px; padding-block: 24px 28px; }
}

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

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal--pop { transform: translateY(10px) scale(.9); }
.reveal--side { transform: translateX(-32px); }
.reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .reveal:not(.is-in) { transform: translateY(22px); }
}

/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes sway-sm { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring-in { from { opacity: 0; rotate: -140deg; scale: .85; } to { opacity: 1; rotate: 0deg; scale: 1; } }
@keyframes stem-in { from { opacity: 0; scale: 1 0; } to { opacity: 1; scale: 1 1; } }
@keyframes leaf-in { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
@keyframes sprout-sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(2.5deg); } 75% { transform: rotate(-2.5deg); } }
@keyframes leaf-sway-l { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-8deg); } 70% { transform: rotate(3deg); } }
@keyframes leaf-sway-r { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(5deg); } 75% { transform: rotate(-4deg); } }
@keyframes soil { to { background-position: 340px 0, -210px 0; } }
@keyframes draw-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shine { 0% { transform: translateX(-120%); } 20%, 100% { transform: translateX(120%); } }
@keyframes nudge { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
@keyframes hand-go { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes snow-go { from { transform: rotate(0); } to { transform: rotate(180deg); } }
@keyframes needle-go { 0% { transform: rotate(-80deg); } 55% { transform: rotate(8deg); } 100% { transform: rotate(-80deg); } }
@keyframes layer-go { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
@keyframes layer-go2 { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@keyframes leaf-fall {
  0%   { transform: translate(0, 0) rotate(0); opacity: 0; }
  8%   { opacity: .45; }
  25%  { transform: translate(46px, 25vh) rotate(80deg); }
  50%  { transform: translate(-12px, 50vh) rotate(190deg); }
  75%  { transform: translate(52px, 75vh) rotate(280deg); }
  88%  { opacity: .45; }
  100% { transform: translate(8px, 100vh) rotate(380deg); opacity: 0; }
}
@keyframes spore {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: .45; }
  50%  { transform: translate(var(--dx, 20px), -500px); }
  85%  { opacity: .3; }
  100% { transform: translate(0, -1000px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hero__leaves, .tech__spores { display: none; }
}
