/* Instituto Amar a Vida
   Paleta tirada do logo: tronco dourado, anel verde e folhas coloridas. */

:root {
  --ink: #1e2f24;
  --ink-soft: #4a5b4f;
  --paper: #ffffff;
  --tint: #f1f5e6;
  --line: #dbe4d0;

  --green-deep: #1d4a2a;
  --green: #2f7a35;
  --gold: #c99a2e;
  --gold-ink: #7e5a10;

  --red: #d2343f;
  --blue: #2a56ae;
  --purple: #7a3e9e;
  --cyan: #168baa;

  --on-dark: #f4f7f1;
  --on-dark-soft: #c6d4c3;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Gochi Hand", "Comic Sans MS", cursive;

  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);

  --leaf: 0 55% 0 55%;
  --leaf-flip: 55% 0 55% 0;
  --leaf-soft: 0 clamp(1.75rem, 4vw, 3.5rem) 0 clamp(1.75rem, 4vw, 3.5rem);

  --spring: cubic-bezier(0.3, 1.45, 0.5, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(2rem, 1.45rem + 2.1vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--green-deep);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

figure {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--green-deep);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lede {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Letra de educadora: bilhetes escritos à mão, como nos murais do CEI */

.hand,
.hand-note {
  font-family: var(--font-hand);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hand-note {
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--green-deep);
}

/* Folhas: a forma do logo usada como recorte e marcador */

.leaf {
  border-radius: 0 100% 0 100%;
}

.c-red { background: var(--red); }
.c-blue { background: var(--blue); }
.c-gold { background: var(--gold); }
.c-purple { background: var(--purple); }
.c-cyan { background: var(--cyan); }
.c-green { background: var(--green); }

.leaf-photo {
  overflow: hidden;
  border-radius: var(--leaf);
}

.leaf-photo.leaf-flip {
  border-radius: var(--leaf-flip);
}

.leaf-soft {
  overflow: hidden;
  border-radius: var(--leaf-soft);
}

.leaf-photo img,
.leaf-soft img,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botões com canto de folha */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--green-deep);
  border-radius: 0 1.25rem 0 1.25rem;
  background: var(--green-deep);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, border-radius 0.35s var(--ease-out);
}

.btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  border-radius: 1.25rem 0 1.25rem 0;
}

.btn-small {
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
}

.btn-ghost:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #ddb04a;
  border-color: #ddb04a;
  color: var(--ink);
}

.btn-ghost-light {
  background: transparent;
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.btn-ghost-light:hover {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--green-deep);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Cabeçalho */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.1;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a:not(.btn) {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--green);
  text-decoration: underline;
}

.site-nav li:last-child {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 2px solid var(--green-deep);
  border-radius: 0 1rem 0 1rem;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 1.25rem;
  height: 2px;
  margin-left: -0.625rem;
  background: var(--green-deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Abertura */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-text h1 {
  max-width: 13ch;
}

.hero-text .lede {
  max-width: 34rem;
  margin-top: 1.5rem;
}

.canopy {
  position: relative;
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 1 / 1;
  justify-self: end;
}

.canopy-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 74%;
  height: 84%;
  border-radius: 0 62% 0 62%;
}

.canopy-main img {
  object-position: 45% 30%;
}

.canopy-small {
  position: absolute;
  left: 2%;
  bottom: 2%;
  width: 44%;
  height: 40%;
  box-shadow: 0 0 0 0.4rem var(--paper);
}

.leaf-dot {
  position: absolute;
  width: var(--s);
  height: var(--s);
  transform: rotate(var(--r));
}

.d1 { --s: 2.6rem; --r: 10deg;  top: 4%;  left: 10%; }
.d2 { --s: 1.6rem; --r: -30deg; top: 16%; left: 2%; }
.d3 { --s: 3.4rem; --r: 75deg;  top: 22%; left: 17%; }
.d4 { --s: 1.4rem; --r: 40deg;  top: 0;   left: 24%; }
.d5 { --s: 2rem;   --r: -10deg; top: 40%; left: 6%; }
.d6 { --s: 1.3rem; --r: 100deg; top: 93%; right: 2%; }
.d7 { --s: 1.8rem; --r: 20deg;  top: 86%; right: 52%; }

.hero-note {
  position: absolute;
  right: 0;
  bottom: -1.25rem;
  width: 46%;
  padding-top: 2.4rem;
  text-align: center;
  transform: rotate(-4deg);
}

.note-arrow {
  position: absolute;
  top: 0;
  left: 34%;
  width: 3.25rem;
  height: 2.5rem;
  transform: rotate(28deg);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A árvore: 460 folhas, uma para cada criança */

.tree-section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--tint);
  overflow: hidden;
}

.tree-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.tree-figure {
  width: 100%;
  max-width: 36rem;
  justify-self: center;
}

.tree {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tree-wood path {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
}

.tree-grass path {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
}

.tree .lf {
  transform-box: fill-box;
  transform-origin: center;
}

.tree .f-green { fill: var(--green); }
.tree .f-lime { fill: #6aa83a; }
.tree .f-red { fill: var(--red); }
.tree .f-blue { fill: var(--blue); }
.tree .f-purple { fill: var(--purple); }
.tree .f-cyan { fill: var(--cyan); }
.tree .f-gold { fill: var(--gold); }

.tree-sway {
  transform-origin: 300px 592px;
}

.tree-count {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 6vw, 8rem);
  line-height: 0.9;
  color: var(--green);
  font-variant-numeric: lining-nums tabular-nums;
}

.tree-text h2 {
  margin-top: 0.75rem;
  max-width: 16ch;
}

.tree-text .lede {
  margin-top: 1.25rem;
  max-width: 32rem;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
}

.fact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fact-leaf {
  flex: none;
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 3.75rem;
  border-radius: 0 72% 0 72%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.fact-leaf.c-gold {
  color: var(--ink);
}

.fact dd {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.35;
}

/* Seções */

.section {
  padding-block: var(--section-space);
}

.section-tint {
  background: var(--tint);
}

.section-dark {
  background: var(--green-deep);
  color: var(--on-dark);
}

.section-dark .lede,
.section-dark p {
  color: var(--on-dark-soft);
}

.section-dark h2,
.section-dark h3 {
  color: var(--on-dark);
}

.section-dark a:not(.btn) {
  color: var(--on-dark);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 + p {
  margin-top: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.split-intro h2 {
  margin-bottom: 1.5rem;
}

.split-intro p {
  max-width: 34rem;
  color: var(--ink-soft);
}

.intro-photo {
  margin-top: 2.5rem;
  aspect-ratio: 3 / 2;
}

/* Linha do tempo: o tronco dourado com uma folha por marco */

.timeline {
  position: relative;
  padding-top: 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 0.85rem;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform-origin: top;
}

.timeline li {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2.25rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.tl-mark {
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 1.75rem;
  height: 1.75rem;
  box-shadow: 0 0 0 0.35rem var(--paper);
}

.tl-year {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--ink);
}

.timeline .tl-year + p {
  margin-top: 0.25rem;
  max-width: 32rem;
  color: var(--ink-soft);
}

/* Como educamos */

.method-head {
  max-width: 46rem;
}

.method-head .lede {
  margin-top: 1.5rem;
}

.method-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  align-items: start;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.values li {
  position: relative;
  padding-top: 2.25rem;
}

.value-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.4rem;
  height: 1.4rem;
}

.values h3 {
  margin-bottom: 0.5rem;
}

.values p {
  font-size: 1.0625rem;
}

.method-photo {
  aspect-ratio: 4 / 5;
}

.refs {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  line-height: 1.55;
}

/* CEIs */

.units {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.unit-photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
}

.unit-since {
  display: inline-block;
  color: var(--gold-ink);
  font-size: 1.5rem;
  line-height: 1.2;
  transform: rotate(-3deg);
}

.unit h3 {
  margin-top: 0.15rem;
  font-size: 1.5rem;
}

.units-note {
  margin-top: 2.5rem;
  color: var(--ink-soft);
}

/* Cotidiano */

.split-reverse {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
}

.split-reverse .split-intro {
  order: 2;
}

.checklist {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  max-width: 32rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 0 100% 0 100%;
  background: var(--green);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 0.375rem;
}

.tile-wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.tile-first {
  border-top-left-radius: clamp(1.75rem, 4vw, 3.5rem);
}

.mosaic .tile:last-child {
  border-bottom-right-radius: clamp(1.75rem, 4vw, 3.5rem);
}

/* Bilhete colado sobre a foto, como etiqueta de mural */
.tile-note {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.2rem 0.8rem 0.3rem;
  background: var(--paper);
  border-radius: 0.25rem;
  box-shadow: 0 2px 0 rgba(30, 47, 36, 0.12);
  transform: rotate(-3deg);
}

/* Famílias */

.family-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.family-photo {
  aspect-ratio: 16 / 10;
}

.family-text h2 {
  margin-bottom: 1.5rem;
}

.family-text p {
  color: var(--ink-soft);
}

.family-text .btn {
  margin-top: 2rem;
}

.faq {
  max-width: 46rem;
  margin-top: clamp(4rem, 8vw, 6rem);
}

.faq-title {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: -0.45rem;
  border-radius: 0 100% 0 100%;
  background: var(--gold);
  transition: transform 0.3s var(--spring), background-color 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(90deg);
  background: var(--green);
}

.faq summary:hover {
  color: var(--green);
}

.faq details p {
  padding-bottom: 1.25rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

/* Apoie */

.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
}

.ways li {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.way-mark {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.25rem;
}

.ways h3 {
  margin-bottom: 0.6rem;
}

.ways p {
  font-size: 1.0625rem;
}

.apoie-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.team-photo {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  aspect-ratio: 16 / 7;
}

/* Contato */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 2.25rem;
}

.contact-list dt {
  margin-bottom: 0.2rem;
  color: var(--gold-ink);
  font-weight: 600;
  font-size: 1rem;
}

.contact-list dd {
  font-size: 1.1875rem;
  line-height: 1.5;
}

.contact-list a {
  word-break: break-word;
}

.map {
  aspect-ratio: 4 / 3;
  background: var(--tint);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Rodapé */

.site-footer {
  padding-block: 3rem;
  background: var(--tint);
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand .brand-logo {
  width: 4rem;
  height: 4rem;
  flex: none;
}

.footer-brand strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
}

.footer-legal {
  display: grid;
  gap: 0.75rem;
}

.footer-legal dt {
  font-weight: 600;
  color: var(--ink);
}

.footer-note {
  grid-column: 1 / -1;
  max-width: 46rem;
  font-size: 0.9375rem;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Movimento
   Uma sequência na abertura (folhas brotando), a árvore crescendo quando
   aparece na tela, e o tronco da linha do tempo acompanhando a rolagem.
   O estado inicial escondido só vale com JS e sem preferência por menos movimento. */

@media (hover: hover) {
  .unit-photo img,
  .tile img,
  .family-photo img,
  .intro-photo img {
    transition: transform 0.9s var(--ease-out);
  }

  .unit:hover .unit-photo img,
  .tile:hover img,
  .family-photo:hover img,
  .intro-photo:hover img {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Abertura */
  .canopy .leaf-photo {
    animation: grow 1s var(--ease-out) both;
  }

  .canopy-small {
    animation-delay: 0.18s;
  }

  .leaf-dot {
    transform-origin: 0 100%;
    animation:
      sprout 0.7s var(--spring) var(--delay) both,
      sway 5s ease-in-out calc(var(--delay) + 0.7s) infinite alternate;
  }

  .d1 { --delay: 0.4s; }
  .d2 { --delay: 0.5s; }
  .d3 { --delay: 0.6s; }
  .d4 { --delay: 0.68s; }
  .d5 { --delay: 0.76s; }
  .d6 { --delay: 0.84s; }
  .d7 { --delay: 0.92s; }

  .d2, .d5, .d7 { animation-duration: 0.7s, 6.5s; }

  .hero-note {
    animation: note-in 0.6s var(--spring) 1.2s both;
  }

  .note-arrow path {
    stroke-dasharray: 100;
    animation: draw 0.7s ease-out 1.45s both;
  }

  /* Árvore */
  .js .tree.is-waiting .lf {
    opacity: 0;
    transform: scale(0);
  }

  .js .tree.is-waiting .tree-wood path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .tree.is-growing .tree-wood path {
    stroke-dasharray: 1;
    animation: draw-wood 0.8s var(--ease-out) both;
  }

  .tree.is-growing .tree-wood path:nth-child(n + 2) { animation-delay: 0.3s; }
  .tree.is-growing .tree-wood path:nth-child(n + 5) { animation-delay: 0.5s; }

  .tree.is-growing .lf {
    animation: leaf-in 0.55s var(--spring) var(--d) both;
  }

  .tree.is-grown .tree-sway {
    animation: tree-sway 7s ease-in-out infinite alternate;
  }

  /* Linha do tempo */
  .js .timeline li .tl-mark {
    transform: scale(0) rotate(-40deg);
  }

  .timeline li.is-in .tl-mark {
    animation: mark-in 0.6s var(--spring) 0.1s both;
  }

  @supports (animation-timeline: view()) {
    .timeline::before {
      animation: trunk-grow linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 55%;
    }
  }
}

@keyframes grow {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes sprout {
  from { opacity: 0; transform: rotate(var(--r)) scale(0); }
  to { opacity: 1; transform: rotate(var(--r)) scale(1); }
}

@keyframes sway {
  from { transform: rotate(var(--r)); }
  to { transform: rotate(calc(var(--r) + 9deg)); }
}

@keyframes note-in {
  from { opacity: 0; transform: rotate(-12deg) scale(0.8); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}

@keyframes draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes draw-wood {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes leaf-in {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes tree-sway {
  from { transform: rotate(-0.8deg); }
  to { transform: rotate(0.8deg); }
}

@keyframes mark-in {
  from { transform: scale(0) rotate(-40deg); }
  to { transform: scale(1) rotate(0); }
}

@keyframes trunk-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Responsivo */

@media (max-width: 1000px) {
  .method-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: end;
  }

  .refs {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }

  .site-nav li:last-child {
    margin: 1.25rem 0 0;
  }

  .site-nav .btn {
    width: 100%;
  }

  .hero-inner,
  .tree-inner,
  .split,
  .family-feature,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .canopy {
    justify-self: center;
    max-width: 30rem;
  }

  .tree-figure {
    max-width: 28rem;
  }

  .split-reverse .split-intro {
    order: 0;
  }

  .units {
    grid-template-columns: minmax(0, 1fr);
    max-width: 30rem;
  }

  .unit-photo {
    aspect-ratio: 4 / 3;
  }

  .ways {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .canopy {
    order: -1;
    max-width: 20rem;
    margin-bottom: 1.5rem;
  }

  .hand-note {
    font-size: 1.3rem;
  }

  .facts-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-photo {
    aspect-ratio: 4 / 3;
  }

  .actions .btn,
  .apoie-cta .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
