/* =========================================================
   Holzbau Knauseder Manfred – Stylesheet
   Farben stammen aus dem Logo: Grün #8CC63F, Anthrazit #58595B
   ========================================================= */

:root {
  /* Brand */
  --green: #8cc63f;          /* Logo-Grün */
  --green-hover: #7ab534;
  --green-text: #4d7a1a;     /* dunkleres Grün für Text auf Weiß (Kontrast ≥ 4.5:1) */
  --green-tint: #f1f8e6;
  --green-tint-2: #e3f1cf;
  --anthracite: #58595b;     /* Logo-Anthrazit */
  --ink: #2b2c2e;
  --on-green: #1c2a0c;

  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f7f4;
  --card: #ffffff;
  --border: #e4e6e1;
  --muted: #6b6d70;

  /* Type */
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing (spacious scale) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(43, 44, 46, 0.06), 0 2px 8px rgba(43, 44, 46, 0.06);
  --shadow-md: 0 6px 24px rgba(43, 44, 46, 0.10);
  --container: 1180px;
  --header-h: 80px;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--green-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.container {
  width: min(100% - 2 * var(--space-3), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--space-7); }
.section--soft { background: var(--bg-soft); }

/* Dekorativer Baum aus dem Logo, rechts unten angeschnitten (wie auf der Bautafel) */
.section--tree { position: relative; overflow: hidden; }
.section--tree > .container { position: relative; z-index: 1; }
.section--tree::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: 0;
  width: clamp(260px, 30vw, 460px);
  aspect-ratio: 28 / 31;
  background: url("../assets/baum.svg") no-repeat center / contain;
  opacity: 0.16;
  pointer-events: none;
}
@media (max-width: 600px) {
  .section--tree::after { right: -50px; bottom: 0; width: 240px; opacity: 0.12; }
}

.section-head { max-width: 680px; margin-bottom: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.lead { font-size: 1.125rem; color: var(--anthracite); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary { background: var(--green); color: var(--on-green); }
.btn--primary:hover { background: var(--green-hover); color: var(--on-green); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--anthracite); color: var(--ink); }

.btn--light { background: rgba(255, 255, 255, 0.92); color: var(--ink); border-color: rgba(255,255,255,0.92); }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--dark { background: var(--anthracite); color: #fff; }
.btn--dark:hover { background: var(--ink); color: #fff; }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.brand__logo { height: 56px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 52px;
  min-height: 52px;
  border-radius: var(--radius);
  color: var(--green);
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.nav__phone svg { width: 24px; height: 24px; }
.nav__phone:hover { color: var(--green-hover); background: var(--green-tint); transform: translateY(-1px); }
.nav__phone-label { display: none; }
.nav__list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--anthracite);
  text-decoration: none;
  position: relative;
  transition: color 200ms ease, background-color 200ms ease;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__link.is-active { color: var(--green-text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 6px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .brand__logo { height: 46px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-3);
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { min-height: 52px; font-size: 1.1rem; }
  .nav__link.is-active::after { display: none; }
  .nav__phone { justify-content: flex-start; padding: 0 0.9rem; min-height: 56px; background: var(--green-tint); }
  .nav__phone-label { display: inline; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--green-text); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 820px);
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 24, 14, 0.82) 0%, rgba(20, 24, 14, 0.62) 45%, rgba(20, 24, 14, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 24, 14, 0.55) 0%, rgba(20, 24, 14, 0) 40%);
}
.hero__inner {
  padding-block: var(--space-7) var(--space-6);
  max-width: 720px;
}
.hero .eyebrow { color: var(--green); }
.hero .eyebrow::before { background: var(--green); }
.hero h1 { color: #fff; margin-bottom: var(--space-3); }
.hero__text {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px;
}
.hero__scroll svg { width: 20px; height: 20px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Trust strip */
.trust {
  background: var(--green);
  color: var(--on-green);
}
.trust__list {
  list-style: none;
  margin: 0; padding: var(--space-3) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.trust__item svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 900px) { .trust__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust__list { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.service {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-tint-2); }
.service__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--green-tint);
  color: var(--green-text);
  margin-bottom: var(--space-3);
}
.service__icon svg { width: 30px; height: 30px; }
.service h3 { margin-bottom: 0.5rem; }
.service p { color: var(--anthracite); }
.service__tag {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-text);
  background: var(--green-tint);
  padding: 4px 10px;
  border-radius: 999px;
}
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about__badge {
  position: absolute;
  right: -16px; bottom: 32px;
  background: var(--green);
  color: var(--on-green);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
  max-width: 220px;
}
.about__badge small { display: block; font-weight: 500; font-size: 0.8rem; opacity: 0.85; margin-top: 2px; }

.checklist {
  list-style: none;
  margin: var(--space-3) 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.checklist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.checklist svg {
  width: 24px; height: 24px; flex: none;
  color: var(--green-text);
  background: var(--green-tint);
  border-radius: 50%;
  padding: 4px;
}
.checklist strong { display: block; font-family: var(--font-display); }
.checklist span { color: var(--anthracite); }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: var(--space-4); }
  .about__media img { aspect-ratio: 16 / 10; }
  .about__badge { right: 16px; bottom: -16px; }
}

/* ---------- Warum Holz ---------- */
.why { background: var(--anthracite); color: #fff; }
.why h2, .why h3 { color: #fff; }
.why .eyebrow { color: var(--green); }
.why .lead { color: rgba(255,255,255,0.8); }
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.benefit {
  padding: var(--space-3);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
}
.benefit svg { width: 32px; height: 32px; color: var(--green); margin-bottom: var(--space-2); }
.benefit h3 { font-size: 1.1rem; }
.benefit p { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- Referenzen ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(220px, 24vw, 320px);
  gap: var(--space-3);
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  margin: 0;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-3) var(--space-3) var(--space-2);
  background: linear-gradient(0deg, rgba(20,24,14,0.85), rgba(20,24,14,0));
  color: #fff;
}
.gallery__caption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.gallery__caption span { font-size: 0.85rem; opacity: 0.85; }
.gallery__item--wide { grid-column: span 2; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 30vw, 300px); }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: clamp(200px, 60vw, 280px); }
  .gallery__item--wide { grid-column: span 1; }
}
.gallery-note {
  margin-top: var(--space-3);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  counter-reset: step;
}
.step {
  position: relative;
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-green);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.step p { color: var(--anthracite); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--green-tint);
  border-top: 1px solid var(--green-tint-2);
  border-bottom: 1px solid var(--green-tint-2);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
}
.cta-band h2 { margin-bottom: 0.25rem; }
.cta-band p { color: var(--anthracite); }
.cta-band__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
@media (max-width: 900px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg {
  width: 44px; height: 44px; flex: none;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--green-tint);
  color: var(--green-text);
}
.contact-list strong { display: block; font-family: var(--font-display); margin-bottom: 2px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { color: var(--anthracite); }
.contact-list address { font-style: normal; color: var(--anthracite); }

.contact-card {
  background: var(--green-tint);
  border: 1px solid var(--green-tint-2);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.contact-card h3 { font-size: 1.4rem; }
.contact-card > p { color: var(--anthracite); margin-bottom: var(--space-3); }
.contact-card__actions { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.contact-card__actions .btn { font-size: 1.1rem; min-height: 56px; }
.contact-card__list { list-style: none; margin: 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--green-tint-2); display: grid; gap: 0.75rem; }
.contact-card__list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--anthracite); font-size: 0.95rem; }
.contact-card__list svg { width: 22px; height: 22px; flex: none; color: var(--green-text); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 600px) {
  .contact-card { padding: var(--space-3); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding-block: var(--space-5) var(--space-3);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__brand img { height: 72px; width: auto; background: #fff; padding: 6px; border-radius: var(--radius); }
.footer h3 { color: #fff; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.link-btn {
  appearance: none; -webkit-appearance: none;
  background: transparent; border: 0; padding: 0; border-radius: 0; box-shadow: none;
  font: inherit; color: var(--green-text);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }
.footer a, .footer .link-btn { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer a:hover, .footer .link-btn:hover { color: var(--green); }
.footer address { font-style: normal; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer__bottom .link-btn { font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { display: flex; gap: var(--space-3); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Dialog (Impressum / Datenschutz) ---------- */
.dialog {
  width: min(100% - 2rem, 760px);
  max-height: min(88svh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  color: var(--ink);
  background: #fff;
}
.dialog::backdrop { background: rgba(20, 24, 14, 0.6); backdrop-filter: blur(2px); }
.dialog__head {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: #fff;
  z-index: 1;
}
.dialog__head h2 { font-size: 1.4rem; margin: 0; }
.dialog__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 150ms ease;
}
.dialog__close:hover { background: var(--bg-soft); }
.dialog__close svg { width: 20px; height: 20px; }
.dialog__body { padding: var(--space-4); font-size: 0.97rem; }
.dialog__body h3 { font-size: 1.1rem; margin-top: var(--space-4); }
.dialog__body h3:first-child { margin-top: 0; }
.dialog__body p, .dialog__body ul { color: var(--anthracite); }
.dialog__body ul { padding-left: 1.2rem; }
.dialog[open] { animation: dialog-in 220ms ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 400ms ease, transform 400ms ease; }
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

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

/* Back to top */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--green);
  color: var(--on-green);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 40;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 22px; height: 22px; }
