/* ============================================================
   PS Home & Garden Care — stylesheet
   Mobile-first, performant, accessible
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand colors lifted from logo */
  --green-900: #0f2f17;
  --green-800: #15401e;
  --green-700: #1e5a2a;
  --green-600: #2a7a3b;
  --green-500: #4a9c44;
  --green-400: #6db850;
  --green-300: #a8d68c;
  --green-50:  #eef6e8;

  --ink-900: #131613;
  --ink-700: #2f3530;
  --ink-500: #5a625b;
  --ink-300: #9aa39c;

  --paper:   #faf9f4;
  --paper-2: #f3f1e9;
  --white:   #ffffff;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-wordmark: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Nunito Sans", "Manrope", system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Radii / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(15, 47, 23, .06), 0 2px 8px rgba(15, 47, 23, .04);
  --shadow-md: 0 8px 24px rgba(15, 47, 23, .08), 0 2px 6px rgba(15, 47, 23, .04);
  --shadow-lg: 0 24px 60px rgba(15, 47, 23, .12), 0 6px 16px rgba(15, 47, 23, .06);

  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: transparent;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-4);
  line-height: 1.1;
  text-wrap: balance;
}
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
:focus-visible {
  outline: 3px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}

section {
  padding: var(--s-8) 0;
}
@media (min-width: 768px) {
  section { padding: var(--s-9) 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green-500);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: var(--s-3);
}
.section-lede {
  font-size: 1.05rem;
  color: var(--ink-500);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn--primary {
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(21, 64, 30, .25);
}
.btn--primary:hover { background: var(--green-700); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--green-800);
  border: 1.5px solid var(--green-800);
}
.btn--ghost:hover { background: var(--green-800); color: var(--white); }
.btn--soft {
  background: var(--green-50);
  color: var(--green-800);
}
.btn--soft:hover { background: var(--green-300); }
.btn--accent {
  background: var(--green-500);
  color: var(--white);
}
.btn--accent:hover { background: var(--green-600); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 244, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-scrolled {
  border-color: rgba(15, 47, 23, .08);
  background: rgba(250, 249, 244, 0.94);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--s-4);
  position: relative;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--green-900);
  white-space: nowrap;
}
.nav__brand-wordmark {
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
@media (min-width: 600px) {
  .nav__brand-wordmark { font-size: 1rem; }
}
.nav__brand img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.nav__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.nav__center > * { pointer-events: auto; }
.nav__links {
  display: none;
  gap: var(--s-6);
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}
.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
  position: relative;
  padding: 4px 2px;
  white-space: nowrap;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -4px 0;
  height: 2px;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover { color: var(--green-800); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-800);
  color: var(--white);
}
.nav__toggle svg { width: 22px; height: 22px; }

@media (min-width: 1024px) {
  .nav__links { display: flex; gap: var(--s-5); }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}
@media (min-width: 1180px) {
  .nav__links { gap: var(--s-6); }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 49;
  padding: var(--s-6) var(--s-5);
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  border-top: 1px solid rgba(15, 47, 23, .08);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--green-900);
  padding: var(--s-3) 0;
  border-bottom: 1px solid rgba(15, 47, 23, .08);
}
/* Button inside the mobile menu — keep its own colors */
.mobile-menu a.btn {
  padding: 0.95rem 1.4rem;
  border-bottom: 0;
  font-size: 0.98rem;
}
.mobile-menu a.btn--primary { color: var(--white); }
.mobile-menu .btn { margin-top: var(--s-4); }
@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--s-7) 0 var(--s-8);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: var(--s-8) 0 var(--s-9); }
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--s-8);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(15, 47, 23, .1);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: var(--s-5);
}
.hero__badge .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-500);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 12px;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  margin-bottom: var(--s-5);
  color: var(--green-900);
  font-weight: 500;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--green-600);
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-500);
  max-width: 52ch;
  margin-bottom: var(--s-6);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.chip {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(15, 47, 23, .1);
  color: var(--ink-700);
}

/* Hero visual */
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--green-50), var(--green-300));
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative leaves */
.leaves {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}
.leaves--tl { top: -40px; left: -40px; width: 280px; transform: rotate(-15deg); }
.leaves--br { bottom: -60px; right: -60px; width: 320px; transform: rotate(170deg); opacity: 0.35; }

/* ---------- Services ---------- */
.services {
  background: var(--white);
  border-top: 1px solid rgba(15, 47, 23, .06);
  border-bottom: 1px solid rgba(15, 47, 23, .06);
}
.services__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
  align-items: end;
}
@media (min-width: 768px) {
  .services__head { grid-template-columns: 1fr auto; }
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 600px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
}

.service-card {
  position: relative;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: var(--green-300);
  box-shadow: var(--shadow-md);
}
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-800);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  transition: background .25s ease, transform .25s ease;
}
.service-card:hover .service-card__icon {
  background: var(--green-500);
  transform: rotate(-4deg);
}
.service-card__icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.service-card h3 {
  font-size: 1.55rem;
  margin-bottom: var(--s-2);
  color: var(--green-900);
  font-weight: 600;
}
.service-card p {
  color: var(--ink-500);
  font-size: 0.95rem;
  margin: 0;
}
.service-card__corner {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  font-size: 0.75rem;
  color: var(--ink-300);
  font-variant-numeric: tabular-nums;
}

/* ---------- About ---------- */
.about__inner {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .about__inner { grid-template-columns: 1fr 1.1fr; gap: var(--s-8); }
}
.about__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--green-700);
  margin-top: var(--s-5);
}
.about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.pillar {
  background: var(--white);
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid rgba(15, 47, 23, .08);
}
.pillar strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-display);
  color: var(--green-700);
  line-height: 1;
}
.pillar span {
  font-size: 0.85rem;
  color: var(--ink-500);
}

/* ---------- Why ---------- */
.why {
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--r-xl);
  margin: 0 var(--s-5);
  padding: var(--s-7) var(--s-5);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .why { margin: 0 var(--s-5); padding: var(--s-8); }
}
.why::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-600) 0%, transparent 70%);
  top: -200px; right: -200px;
  opacity: .5;
}
.why .eyebrow { color: var(--green-300); }
.why .eyebrow::before { background: var(--green-300); }
.why h2 { color: var(--white); }
.why .section-lede { color: rgba(255,255,255,.75); }
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
@media (min-width: 600px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
  padding: var(--s-5);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  position: relative;
  z-index: 1;
}
.why-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  font-weight: 700;
  margin-bottom: var(--s-3);
  font-size: 0.95rem;
}
.why-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: var(--s-2);
}
.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.78);
  margin: 0;
}

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-6);
}
@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-4);
    grid-auto-rows: 180px;
    grid-auto-flow: row dense;
  }
  .gallery__item--big  { grid-column: span 2; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }
}
.gallery__item {
  position: relative;
  background: var(--green-50);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(15, 47, 23, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery__item:hover { box-shadow: var(--shadow-md); }
@media (min-width: 768px) {
  .gallery__item { aspect-ratio: auto; }
}
.gallery__item:hover { transform: scale(1.01); }
.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery__placeholder {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: var(--green-700);
  letter-spacing: 0.04em;
  text-align: center;
  padding: var(--s-3);
  background-image:
    repeating-linear-gradient(135deg,
      transparent, transparent 12px,
      rgba(74, 156, 68, 0.06) 12px, rgba(74, 156, 68, 0.06) 24px);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Contact (simplified) ---------- */
.contact {
  background: var(--white);
  border-top: 1px solid rgba(15, 47, 23, .06);
}
.contact__simple {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact__simple .eyebrow { justify-content: center; }
.contact__simple .eyebrow::before { display: none; }
.contact__simple .section-lede { margin-left: auto; margin-right: auto; }
.contact__big {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
@media (min-width: 700px) {
  .contact__big { grid-template-columns: 1fr 1fr; }
}
.contact-big {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--paper-2);
  border-radius: var(--r-lg);
  border: 1px solid rgba(15, 47, 23, .06);
  text-align: left;
  transition: background .2s ease, transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.contact-big:hover {
  background: var(--green-50);
  border-color: var(--green-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contact-big__icon {
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--green-800);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-big__icon svg { width: 24px; height: 24px; }
.contact-big__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-big__label {
  font-size: 0.74rem;
  color: var(--ink-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.contact-big__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--green-900);
  font-weight: 600;
  line-height: 1.1;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--s-7) 0 var(--s-6);
  background: var(--green-900);
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
}
.footer__top {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  margin-bottom: var(--s-6);
}
@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-wordmark);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: var(--s-3);
}
.footer__brand img { width: 50px; height: 50px; border-radius: 50%; }
.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: var(--green-300); }
.footer__bottom {
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}
@media (min-width: 600px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* Sticky call button (mobile) */
.fab-call {
  position: fixed;
  bottom: var(--s-5);
  right: var(--s-5);
  z-index: 40;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(15, 47, 23, .35), 0 0 0 8px rgba(74, 156, 68, .2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.fab-call:hover { background: var(--green-700); transform: scale(1.05); }
.fab-call svg { width: 26px; height: 26px; }
@media (min-width: 1024px) {
  .fab-call { display: none; }
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(5px);
  transition:
    opacity .45s cubic-bezier(0.16, 1, 0.3, 1),
    transform .45s cubic-bezier(0.16, 1, 0.3, 1),
    filter .35s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered reveals inside grids */
.services__grid .reveal:nth-child(1) { transition-delay: 0ms; }
.services__grid .reveal:nth-child(2) { transition-delay: 40ms; }
.services__grid .reveal:nth-child(3) { transition-delay: 80ms; }
.services__grid .reveal:nth-child(4) { transition-delay: 120ms; }
.services__grid .reveal:nth-child(5) { transition-delay: 160ms; }
.services__grid .reveal:nth-child(6) { transition-delay: 200ms; }

.gallery__grid .reveal:nth-child(1) { transition-delay: 0ms; }
.gallery__grid .reveal:nth-child(2) { transition-delay: 35ms; }
.gallery__grid .reveal:nth-child(3) { transition-delay: 70ms; }
.gallery__grid .reveal:nth-child(4) { transition-delay: 105ms; }
.gallery__grid .reveal:nth-child(5) { transition-delay: 140ms; }
.gallery__grid .reveal:nth-child(6) { transition-delay: 175ms; }

/* Initial hero entrance (no IO wait) */
.hero__text, .hero__visual {
  animation: heroIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__visual { animation-delay: .15s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ---------- Background leaves ---------- */
.bg-leaves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.leaf {
  position: absolute;
  background: linear-gradient(135deg, var(--green-400) 0%, var(--green-700) 100%);
  border-radius: 0 100% 0 100%;
  opacity: 0;
  will-change: transform, opacity;
  filter: blur(1px);
  animation: leafDrift linear infinite;
}
.leaf:nth-child(1)  { width: 26px; height: 38px; left:  8%; animation-duration: 32s; animation-delay: -2s;  }
.leaf:nth-child(2)  { width: 16px; height: 24px; left: 22%; animation-duration: 40s; animation-delay: -10s; }
.leaf:nth-child(3)  { width: 32px; height: 46px; left: 38%; animation-duration: 28s; animation-delay: -18s; }
.leaf:nth-child(4)  { width: 18px; height: 28px; left: 55%; animation-duration: 36s; animation-delay: -5s;  }
.leaf:nth-child(5)  { width: 22px; height: 34px; left: 70%; animation-duration: 34s; animation-delay: -22s; }
.leaf:nth-child(6)  { width: 14px; height: 22px; left: 84%; animation-duration: 38s; animation-delay: -13s; }
.leaf:nth-child(7)  { width: 28px; height: 40px; left: 15%; animation-duration: 44s; animation-delay: -26s; }
.leaf:nth-child(8)  { width: 20px; height: 30px; left: 48%; animation-duration: 30s; animation-delay: -7s;  }
.leaf:nth-child(9)  { width: 24px; height: 36px; left: 64%; animation-duration: 42s; animation-delay: -30s; }
.leaf:nth-child(10) { width: 16px; height: 24px; left: 92%; animation-duration: 35s; animation-delay: -15s; }
@keyframes leafDrift {
  0%   { transform: translate(0, -60px) rotate(0deg);        opacity: 0; }
  8%   {                                                     opacity: 0.22; }
  50%  { transform: translate(-40px, 55vh) rotate(220deg); opacity: 0.20; }
  92%  {                                                     opacity: 0.14; }
  100% { transform: translate(-90px, 115vh) rotate(420deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .leaf { display: none; }
}

/* No JS fallback */
.no-js .reveal { opacity: 1; transform: none; filter: none; }
