:root {
  --paper: #f4f2ea;
  --cream: #e9e5d6;
  --forest: #2d3a2a;
  --forest-2: #3f4d37;
  --sage: #66745a;
  --sage-light: #b9c4a6;
  --ink: #1f2a21;
  --text: #46503f;
  --muted: #7c8475;
  --line: #d6d2c2;
  --r: 24px;
  --gap: 16px;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
em { font-style: italic; color: var(--sage); }
p { margin: 0 0 1em; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--sage); margin: 0 0 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: .9em 1.5em; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; transition: transform .3s var(--ease), background .3s; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn--small { padding: .6em 1.2em; font-size: .875rem; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; color: var(--ink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244,242,234,.85); backdrop-filter: blur(12px); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand__name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); letter-spacing: .04em; }
.brand__name small { font-family: var(--sans); font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.nav__links { display: flex; gap: 2rem; align-items: center; font-size: .925rem; }
.nav__links a:not(.btn) { text-decoration: none; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { bottom: 15px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Bento basics */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(12, 1fr); }
.tile { position: relative; border-radius: var(--r); padding: clamp(22px, 2.6vw, 34px); overflow: hidden; margin: 0; }
.tile--forest { background: var(--forest); color: rgba(255,255,255,.78); }
.tile--forest h1, .tile--forest h2, .tile--forest h3, .tile--forest b { color: #fff; }
.tile--forest em { color: var(--sage-light); }
.tile--forest .eyebrow { color: var(--sage-light); }
.tile--sage { background: var(--sage); color: rgba(255,255,255,.85); }
.tile--sage h3, .tile--sage b { color: #fff; }
.tile--cream { background: var(--cream); }
.tile--line { background: transparent; border: 1px solid var(--line); }
.tile--photo { padding: 0; }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo:hover img { transform: scale(1.04); }
.tile__icon { width: 44px; height: 44px; color: currentColor; opacity: .9; margin-bottom: auto; }
.tile--cream .tile__icon, .tile--line .tile__icon { color: var(--sage); }

.section { padding: clamp(56px, 8vw, 104px) 0 0; }
.section__head { margin-bottom: 28px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* Hero */
.hero { padding-top: 12px; }
.bento--hero { grid-template-rows: auto auto; }
.tile--hero { grid-column: span 7; grid-row: span 2; min-height: 560px; display: flex; align-items: flex-end; }
.tile--hero__content { position: relative; z-index: 2; max-width: 520px; }
.hero__sub { font-size: 1.1rem; max-width: 26em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }
.tile--hero-photo { grid-column: span 5; min-height: 300px; }
.tile--stat { grid-column: span 3; display: flex; flex-direction: column; min-height: 220px; }
.bento--hero .tile--stat:last-child { grid-column: span 2; }
.tile--stat b { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; margin-top: 18px; color: var(--ink); }
.tile--stat span { font-size: .9rem; opacity: .85; margin-top: 6px; }

/* Botanical branch (line drawing) */
.branch { position: absolute; right: 4%; top: 6%; height: 88%; width: auto; color: var(--sage-light); opacity: .55; z-index: 1; pointer-events: none; }
.branch--small { right: -2%; top: auto; bottom: -6%; height: 80%; opacity: .35; }
.branch__stem { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.branch__bud { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0; transition: opacity .6s 2.2s; }
.branch__leaves use { color: currentColor; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.is-in .branch__stem { animation: draw 2.2s var(--ease) forwards; }
.is-in .branch__bud { opacity: 1; }
.is-in .branch__leaves use { animation: leafIn .9s var(--ease) forwards, sway 6s ease-in-out infinite; animation-delay: calc(var(--i) * .25s + .4s), calc(var(--i) * .25s + 1.3s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes leafIn { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 6deg; } }

/* Falling leaves */
.falling { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.falling svg { position: absolute; top: -60px; width: 16px; height: 32px; color: var(--sage-light); opacity: .5; animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, 25vh) rotate(90deg); }
  50% { transform: translate(-20px, 50vh) rotate(180deg); }
  75% { transform: translate(25px, 75vh) rotate(270deg); }
  100% { transform: translate(0, 110vh) rotate(360deg); }
}

/* Marquee */
.marquee { overflow: hidden; margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); padding: 18px 0; }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--ink); white-space: nowrap; }
.marquee svg { width: 14px; height: 28px; color: var(--sage); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* About */
.tile--about { grid-column: span 5; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; }
.tile--about p:not(.eyebrow) { font-size: 1.05rem; max-width: 26em; position: relative; z-index: 2; }
.tile__deco { position: absolute; top: -20px; right: 24px; width: 120px; height: 240px; color: var(--sage); opacity: .25; transform: rotate(18deg); animation: sway 7s ease-in-out infinite; transform-origin: bottom center; }
.tile--about-photo { grid-column: span 4; grid-row: span 2; }
.tile--about-photo figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(244,242,234,.92); color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: .85rem; font-weight: 500; backdrop-filter: blur(6px); }
.bento--about .tile--stat { grid-column: span 3; min-height: 0; justify-content: flex-end; }
.bento--about .tile--stat b { margin-top: 0; }
.tile--wcd { grid-column: span 12; display: flex; align-items: center; gap: 24px; padding-block: 22px; }
.tile--wcd b { color: var(--ink); }
.big-num { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--sage); }

/* Direction cards */
.bento--3 > * { grid-column: span 4; }
.tile--card { padding: 0; min-height: 420px; color: #fff; display: flex; align-items: flex-end; }
.tile--card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,42,33,0) 35%, rgba(31,42,33,.88)); transition: opacity .5s; }
.tile--card:hover img { transform: scale(1.06); }
.tile--card__body { position: relative; z-index: 2; padding: 26px; }
.tile--card__body h3 { color: #fff; margin-bottom: .25em; }
.tile--card__body p { margin: 0; opacity: .85; font-size: .95rem; }
.tile--card .tile__icon { color: var(--sage-light); width: 38px; height: 38px; margin-bottom: 12px; }

/* Projects */
.tile--featured { grid-column: span 7; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: end; }
.tile--featured__img { border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; }
.tile--featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--featured:hover .tile--featured__img img { transform: scale(1.05); }
.tile--featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: .7em; }
.tile--featured small { display: block; font-size: .8rem; opacity: .65; margin-top: 1rem; }
.tile--chips { grid-column: span 5; display: flex; flex-direction: column; }
.tile--chips .eyebrow { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px; font-size: .85rem; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.35); transition: transform .3s var(--ease), background .3s; }
.pill:hover { transform: translateY(-2px); }
.pill--live { border-color: transparent; background: var(--paper); color: var(--ink); }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fa25f; box-shadow: 0 0 0 0 rgba(127,162,95,.6); animation: pulse 2s infinite; }
.tile--forest .pill--live { background: rgba(255,255,255,.12); color: #fff; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(127,162,95,0); } 100% { box-shadow: 0 0 0 0 rgba(127,162,95,0); } }

/* News */
.bento--4 > * { grid-column: span 3; }
.tile--news { padding: 10px 10px 18px; background: #fff; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.tile--news:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -20px rgba(31,42,33,.35); }
.tile--news img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 14px; }
.tile--news div { padding-inline: 8px; }
.tile--news time { font-size: .78rem; color: var(--muted); }
.tile--news h3 { font-size: 1.05rem; margin: .3em 0 0; line-height: 1.3; }

/* Awards */
.tile--award { display: flex; flex-direction: column; min-height: 210px; transition: transform .4s var(--ease); }
.tile--award:hover { transform: rotate(-1.2deg) translateY(-4px); }
.place { font-family: var(--serif); font-size: 3rem; line-height: 1; margin-bottom: auto; color: var(--sage); }
.tile--sage .place, .tile--forest .place { color: var(--sage-light); }
.tile--award b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--ink); margin-top: 20px; }
.tile--sage b, .tile--forest b { color: #fff; }
.tile--award small { font-size: .82rem; opacity: .75; margin-top: 4px; }

/* Contact */
.tile--cta { grid-column: span 6; grid-row: span 2; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.tile--cta > *:not(.branch) { position: relative; z-index: 2; }
.tile--cta p { max-width: 24em; }
.phone { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #fff; text-decoration: none; margin: .4rem 0 1.4rem; border-bottom: 1px solid rgba(255,255,255,.25); transition: border-color .3s; }
.phone:hover { border-color: #fff; }
.tile--format { grid-column: span 3; display: flex; flex-direction: column; min-height: 220px; transition: transform .4s var(--ease); }
.tile--format:hover { transform: translateY(-4px); }
.tile--format h3 { margin: 18px 0 .2em; font-size: 1.15rem; }
.tile--format p { margin: 0; font-size: .9rem; opacity: .8; }
.tile--video { grid-column: span 12; min-height: 340px; background: var(--forest) center / cover; cursor: pointer; }
.tile--video::after { content: ""; position: absolute; inset: 0; background: rgba(31,42,33,.35); transition: background .4s; }
.tile--video:hover::after { background: rgba(31,42,33,.15); }
.tile--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.tile--video__label { position: absolute; left: 24px; bottom: 20px; z-index: 2; color: #fff; font-family: var(--serif); font-size: 1.4rem; }
.video__play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; transition: transform .4s var(--ease); }
.video__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); animation: ring 2.4s ease-out infinite; }
.video__play::after { content: ""; position: absolute; left: 34px; top: 28px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); }
.tile--video:hover .video__play { transform: scale(1.08); }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* Footer */
.footer { background: var(--forest); color: rgba(255,255,255,.65); margin-top: clamp(56px, 8vw, 104px); padding: 48px 0 32px; font-size: .9rem; border-radius: var(--r) var(--r) 0 0; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: end; }
.footer__logo { width: 110px; height: auto; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__copy { margin: 0; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .branch__stem { stroke-dashoffset: 0; }
  .branch__leaves use, .branch__bud { opacity: 1; }
  .falling { display: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .tile--hero { grid-column: span 12; grid-row: auto; min-height: 520px; }
  .tile--hero-photo { grid-column: span 6; }
  .bento--hero .tile--stat, .bento--hero .tile--stat:last-child { grid-column: span 3; }
  .tile--about { grid-column: span 7; }
  .tile--about-photo { grid-column: span 5; }
  .bento--about .tile--stat { grid-column: span 6; min-height: 160px; }
  .tile--featured, .tile--chips { grid-column: span 12; }
  .bento--4 > * { grid-column: span 6; }
  .tile--cta { grid-column: span 12; grid-row: auto; min-height: 400px; }
}
@media (max-width: 760px) {
  :root { --gap: 12px; --r: 20px; }
  .nav__toggle { display: block; }
  .nav__links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 8px 16px 20px; display: none; box-shadow: 0 10px 20px -10px rgba(0,0,0,.15); }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; justify-content: center; }
  .tile--hero { min-height: 560px; }
  .branch { right: -14%; opacity: .35; }
  .tile--hero-photo { grid-column: span 12; min-height: 240px; }
  .bento--hero .tile--stat, .bento--hero .tile--stat:last-child { grid-column: span 6; min-height: 170px; }
  .tile--about, .tile--about-photo { grid-column: span 12; grid-row: auto; }
  .tile--about { min-height: 340px; }
  .tile--about-photo { min-height: 380px; }
  .tile--wcd { flex-direction: row; gap: 16px; }
  .bento--3 > * { grid-column: span 12; min-height: 340px; }
  .tile--featured { grid-template-columns: 1fr; }
  .tile--featured__img { aspect-ratio: 4 / 3; }
  .tile--award, .tile--format { grid-column: span 6; min-height: 180px; }
  .bento--4 > .tile--news { grid-column: span 12; }
  .tile--video { min-height: 220px; }
  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .footer__links { justify-content: flex-start; }
}

/* ===== Trees: progress, hero tree, grove, species, rings, treeline ===== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), #9cbf78); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* Growing tree in the hero */
.tree { position: absolute; right: 3%; bottom: 0; height: 94%; width: auto; color: var(--sage-light); z-index: 1; pointer-events: none; opacity: .75; transition: transform .4s ease-out; }
.tree__wood path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .tree__wood path { animation: draw 1.1s var(--ease) forwards; animation-delay: var(--d); }
.tree__crown use { color: currentColor; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.is-in .tree__crown use { animation: leafIn .8s var(--ease) forwards, sway 5s ease-in-out infinite; animation-delay: var(--d), calc(var(--d) + .8s); }
.tree__crown use.is-light { color: #dfe7d3; }

/* Forest counter */
.bento--forest .tile--grove { grid-column: span 8; min-height: 440px; display: flex; flex-direction: column; }
.grove__count b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: #fff; }
.grove__count span { opacity: .8; }
.grove { display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px 6px; margin: 28px 0 18px; color: var(--sage-light); }
.grove svg { width: 100%; aspect-ratio: 3 / 4; opacity: 0; transform: translateY(10px) scale(.3); transform-origin: 50% 100%; transition: opacity .5s, transform .7s var(--ease), color .3s; transition-delay: calc(var(--i) * 22ms); }
.grove svg.is-oak { color: #d6dfc8; }
.is-in .grove svg { opacity: 1; transform: none; }
.is-in .grove svg:hover { transform: scale(1.3) rotate(-5deg); color: #fff; transition-delay: 0s; }
.grove__legend { margin: auto 0 0; display: flex; align-items: center; gap: 8px; font-size: .85rem; opacity: .7; }
.grove__legend svg { width: 12px; height: 16px; }
.tile--co2 { grid-column: span 4; display: flex; flex-direction: column; justify-content: flex-end; }
.co2__num { font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; color: var(--sage); margin-bottom: 12px; }
.tile--co2 hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 6px 0 18px; }
.co2__result { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); line-height: 1.35; }
.co2__result b { font-weight: 600; }

/* Species */
.bento--species .tile--species { grid-column: span 4; min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; }
.species__art { width: 130px; height: 174px; align-self: center; margin: 4px 0 24px; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.tile--sage .species__art { color: #fff; }
.tile--cream .species__art { color: var(--sage); animation-delay: -3s; }
.tile--species p { margin: 0; font-size: .95rem; opacity: .85; }
.tile--seedlings { grid-column: span 4; min-height: 400px; display: flex; flex-direction: column; }
.tile--seedlings b { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 5vw, 4rem); line-height: 1; color: #fff; }
.tile--seedlings span { margin-top: 8px; opacity: .8; max-width: 20em; }
.sprouts { margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; color: var(--sage-light); }
.sprouts svg { width: 100%; aspect-ratio: 1; opacity: 0; transform: scale(0); transform-origin: 50% 100%; transition: opacity .4s, transform .6s var(--ease); transition-delay: calc(var(--i) * 35ms + .3s); }
.is-in .sprouts svg { opacity: 1; transform: none; }

/* Tree rings timeline */
.bento--rings .tile--rings { grid-column: span 5; display: grid; place-items: center; min-height: 440px; }
.rings { width: 100%; max-width: 400px; color: var(--sage-light); }
.ring, .crack { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .5; transition: opacity .35s, stroke-width .35s, color .35s; }
.crack { stroke-width: 1.2; opacity: .35; }
.is-in .ring, .is-in .crack { animation: draw 1.6s var(--ease) forwards; animation-delay: var(--d); }
.ring.is-active { opacity: 1; stroke-width: 3.2; color: #fff; }
.ring__core { fill: currentColor; }
.timeline { grid-column: span 7; list-style: none; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 14px; border-radius: 14px; cursor: default; transition: background .3s; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline li.is-active { background: rgba(255,255,255,.6); }
.timeline__year { font-family: var(--serif); font-size: 1.4rem; color: var(--sage); line-height: 1.2; }
.timeline b { color: var(--ink); font-weight: 600; }

/* Treeline above the footer */
.treeline { margin-top: clamp(56px, 8vw, 104px); height: clamp(80px, 10vw, 150px); line-height: 0; overflow: hidden; }
.treeline svg { width: 100%; height: 100%; display: block; }
.treeline__back { fill: var(--sage); opacity: .5; }
.treeline__front { fill: var(--forest); }
.footer { margin-top: 0; border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .tree__wood path, .ring, .crack { stroke-dashoffset: 0; }
  .tree__crown use, .grove svg, .sprouts svg { opacity: 1; transform: none; }
}
@media (max-width: 1020px) {
  .bento--forest .tile--grove, .tile--co2 { grid-column: span 12; }
  .bento--species .tile--species { grid-column: span 6; }
  .tile--seedlings { grid-column: span 12; min-height: 300px; }
  .bento--rings .tile--rings, .timeline { grid-column: span 12; }
  .bento--rings .tile--rings { min-height: 360px; }
}
@media (max-width: 760px) {
  .tree { right: -18%; opacity: .4; }
  .grove { grid-template-columns: repeat(10, 1fr); gap: 6px 4px; }
  .bento--species .tile--species { grid-column: span 12; min-height: 340px; }
  .timeline li { grid-template-columns: 56px 1fr; gap: 10px; padding: 14px 6px; }
}

/* Facts-only revision */
.bento--forest .tile--seedlings { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; gap: 32px; text-decoration: none; color: rgba(255,255,255,.8); }
.bento--forest .tile--seedlings > div:first-child { flex: 0 0 auto; max-width: 340px; }
.bento--forest .tile--seedlings span { display: block; }
.bento--forest .sprouts { flex: 1; margin: 0; padding: 0; grid-template-columns: repeat(15, 1fr); }
.tile--press { grid-column: span 12; }
.tile--press p:not(.eyebrow) { color: var(--text); max-width: 52em; }
.tile--press .chips { margin-bottom: 0; }
a.pill { text-decoration: none; color: var(--ink); }
a.pill:hover { background: var(--paper); }
.about__meta { font-size: .9rem !important; color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .bento--forest .tile--seedlings { flex-direction: column; align-items: flex-start; gap: 20px; }
  .bento--forest .sprouts { width: 100%; grid-template-columns: repeat(10, 1fr); }
}

/* Video block: proper 16:9 with a side caption on desktop */
.tile--video { grid-column: span 8; min-height: 0; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.tile--video::after { background: rgba(31,42,33,.18); }
.tile--video-info { grid-column: span 4; display: flex; flex-direction: column; justify-content: flex-end; }
.tile--video-info h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.tile--video-info p:not(.eyebrow) { color: var(--muted); }
@media (max-width: 1020px) {
  .tile--video, .tile--video-info { grid-column: span 12; }
}
.tile--video { background-size: auto 114%; }
.tile--video .video__play { inset: auto auto 22px 22px; margin: 0; width: 72px; height: 72px; }
.tile--video .video__play::after { left: 29px; top: 23px; border-width: 13px 0 13px 20px; }
@media (max-width: 760px) {
  .tile--video .video__play { left: 14px; bottom: 14px; width: 58px; height: 58px; }
  .tile--video .video__play::after { left: 23px; top: 18px; border-width: 11px 0 11px 17px; }
}

/* Press section */
.bento--press > * { grid-column: span 4; }
.tile--press-card { display: flex; flex-direction: column; gap: 6px; min-height: 250px; background: #fff; text-decoration: none; border: 1px solid transparent; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.tile--press-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -22px rgba(31,42,33,.4); border-color: var(--line); }
.tile--press-card:nth-child(3n+2) { background: var(--cream); }
.press__src { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--sage); }
.tile--press-card time { font-size: .8rem; color: var(--muted); }
.tile--press-card h3 { font-size: 1.15rem; line-height: 1.3; margin: 8px 0 4px; }
.tile--press-card p { font-size: .9rem; color: var(--text); margin: 0; }
.press__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .9rem; color: var(--ink); }
.press__more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tile--press-card:hover .press__more svg { transform: translateX(4px); }
.press__note { max-width: 26em; color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 1020px) { .bento--press > * { grid-column: span 6; } }
@media (max-width: 760px) { .bento--press > * { grid-column: span 12; min-height: 0; } }
.footer__home { display: inline-block; line-height: 0; transition: opacity .2s; }
.footer__home:hover { opacity: .8; }

/* width/height attributes (for layout stability) must not override the aspect ratio */
.tile--news img { height: auto; }
.about__meta { line-height: 1.8; }
.about__meta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sage-light); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.about__meta a:hover { color: var(--sage); text-decoration-color: currentColor; }

/* Leadership & partner list in "Про нас" */
.team { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; position: relative; z-index: 2; }
.team li { display: flex; flex-direction: column; gap: 1px; }
.team__role { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.team a { align-self: flex-start; font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sage-light); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.team a:hover { color: var(--sage); text-decoration-color: currentColor; }

/* Desktop keeps the original one-line look: "Посада — Ім'я"; the stacked list is for phones only */
@media (min-width: 761px) {
  .team { margin: 0; padding: 0; border-top: 0; gap: 0; }
  .team li { display: block; font-size: .9rem; line-height: 1.8; color: var(--muted); }
  .team__role { font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
  .team__role::after { content: " — "; }
  .team a { font-size: inherit; font-weight: 400; }
}

/* Language switch */
.nav__links .lang { font-size: .8rem; font-weight: 600; letter-spacing: .08em; padding: .35em .7em; border: 1px solid var(--line); border-radius: 999px; }
.nav__links .lang::after { display: none; }
.nav__links .lang:hover { border-color: var(--sage); color: var(--sage); }
@media (max-width: 760px) { .nav__links .lang { align-self: flex-start; margin-top: 12px; border-bottom: 1px solid var(--line); } }
@media (max-width: 760px) { .nav__links a.lang { padding: .45em .9em; border: 1px solid var(--line); margin-top: 14px; } }

/* Forest landscape above the footer (v2) */
.treeline { margin-top: clamp(56px, 8vw, 104px); height: clamp(150px, 16vw, 240px); line-height: 0; overflow: hidden; }
.treeline svg { width: 100%; height: 100%; display: block; }
.tl-sun { fill: var(--sage-light); opacity: .35; }
.tl-bird { fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; animation: tl-float 6s ease-in-out infinite; animation-delay: var(--bd); }
.tl-far { fill: var(--sage-light); opacity: .6; }
.tl-mid { fill: var(--sage); opacity: .75; }
.tl-near { fill: var(--forest); }
.tl-tree { transform-box: fill-box; transform-origin: 50% 100%; animation: tl-sway 7s ease-in-out infinite; animation-delay: calc(var(--sd) * -1); }
@keyframes tl-sway { 0%, 100% { rotate: calc(var(--sr) * -1); } 50% { rotate: var(--sr); } }
@keyframes tl-float { 0%, 100% { translate: 0 0; } 50% { translate: 6px -4px; } }
@media (prefers-reduced-motion: reduce) { .tl-tree, .tl-bird { animation: none; } }
.treeline { margin-bottom: -2px; position: relative; z-index: 1; }
