/* ==========================================================================
   Miloš Herceg — kandidát na starostu obce Buková
   Dizajnový koncept: „obecná kronika“ — editoriálna sadzba, vlasové linky,
   číslované záznamy. Zeleň obce (#108615) je použitá ako štruktúra
   a atrament, nie ako reklamná plocha. Zlatá je prevzatá z erbu obce.
   ========================================================================== */

/* ------------------------------------------------------------- premenné -- */
:root {
  /* zeleň obce a jej odtiene */
  --green:        #108615;   /* oficiálna zeleň obce Buková */
  --green-ink:    #0A5C10;   /* tmavšia — pre text na svetlom podklade (8,2 : 1) */
  --green-dark:   #0B3D12;   /* tmavá plocha */
  --green-darker: #072A0C;   /* najtmavšia plocha, päta */
  --green-tint:   #EDF3EA;
  --green-tint-2: #DFEBDB;

  /* zlatá z erbu (kríž, holubica, oko) */
  --gold:         #C79A1E;
  --gold-ink:     #8A6212;   /* pre drobný text na svetlom podklade */
  --gold-light:   #E8C445;

  /* papier a atrament */
  --paper:        #FBFAF5;
  --paper-2:      #F3F1E8;
  --paper-3:      #E9E6DA;
  --ink:          #16211A;
  --ink-2:        #2A3830;
  --fg-muted:     #55625A;
  --fg-faint:     #6B776F;

  --line:         rgba(22, 33, 26, .16);
  --line-soft:    rgba(22, 33, 26, .09);
  --line-green:   rgba(16, 134, 21, .28);
  --line-light:   rgba(251, 250, 245, .18);

  /* zástupné texty */
  --ph-fg:        #6B7770;
  --ph-line:      rgba(199, 154, 30, .7);

  /* typografia */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* rozvrh */
  --gutter:    clamp(20px, 5vw, 60px);
  --maxw:      1220px;
  --section-y: clamp(76px, 9.5vw, 150px);
  --head-h:    68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  letter-spacing: .003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--gold-light); color: var(--ink); }

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--green-darker); color: var(--paper);
  padding: .9em 1.4em; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Jemná zrnitosť — dodáva plochám papierový charakter. */
.grain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  opacity: .038; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- rozvrh -- */
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }

/* ----------------------------------------------------------- typografia -- */
.h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.022em;
}
.h2--display { font-size: clamp(2.3rem, 5.6vw, 4.3rem); letter-spacing: -.028em; }

.h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.22;
  letter-spacing: -.014em;
}

.eyebrow {
  display: flex; align-items: center; gap: .8em;
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: clamp(16px, 2.2vw, 26px);
}
.eyebrow .num {
  position: relative; padding-right: 1em;
  color: var(--green-ink); font-variant-numeric: tabular-nums;
}
.eyebrow .num::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: .6em; height: 1px; background: currentColor; opacity: .5;
}
.eyebrow--light { color: rgba(251, 250, 245, .66); }
.eyebrow--light .num { color: var(--gold-light); }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.85vw, 1.5rem);
  line-height: 1.54; letter-spacing: -.01em;
  color: var(--ink-2);
}
.lead em { font-style: italic; color: var(--green-ink); }

.prose { color: var(--fg-muted); max-width: 60ch; }
.prose p + p { margin-top: 1.1em; }
.lead + .prose { margin-top: 1.6rem; }

.s-head { margin-bottom: clamp(34px, 4.6vw, 64px); }
.s-head--split {
  display: grid; gap: clamp(20px, 3vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}
.s-head__aside { color: var(--fg-muted); font-size: .98rem; max-width: 42ch; }
.s-head__lead {
  font-family: var(--serif); font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.6; color: var(--ink-2); max-width: 46ch;
  margin-top: clamp(16px, 2.2vw, 26px);
}
.s-head__lead--light { color: rgba(251, 250, 245, .8); }
.s-head__kicker {
  margin-top: .9em;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--fg-muted); max-width: 40ch;
}

@media (min-width: 860px) {
  .s-head--split { grid-template-columns: 1fr auto; }
}

/* Zástupný text — čo ešte treba doplniť pred spustením. */
.ph {
  color: var(--ph-fg);
  border-bottom: 1px dashed var(--ph-line);
  padding-bottom: .05em;
}

/* -------------------------------------------------------------- tlačidlá -- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.7em;
  font-size: .88rem; font-weight: 600; letter-spacing: .04em;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
/* Šípka doprava — jasné „pokračovať“, nie rozbaľovacia striežka. */
.btn::after {
  content: ""; width: 1.15em; height: .55em; flex: none;
  background: currentColor;
  clip-path: polygon(0 44%, 68% 44%, 68% 0, 100% 50%, 68% 100%, 68% 56%, 0 56%);
  transition: transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(.22em); }

.btn--paper { background: var(--paper); color: var(--green-darker); border-color: var(--paper); }
.btn--paper:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--ghost { color: var(--paper); border-color: rgba(251, 250, 245, .42); }
.btn--ghost:hover { background: rgba(251, 250, 245, .1); border-color: var(--paper); }

.link-btn {
  display: inline-flex; align-items: center; gap: .6em;
  margin-top: 1.2rem; padding: 0;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-ink); cursor: pointer;
  border-bottom: 1px solid var(--line-green); padding-bottom: .3em;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-btn::after {
  content: ""; width: .5em; height: .5em; margin-bottom: .25em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.link-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -.05em; }
.link-btn:hover { color: var(--green); border-color: var(--green); }

/* ------------------------------------------------------------- hlavička -- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 200;
  height: var(--head-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-head[data-at-top="true"] { background: transparent; }
.site-head[data-at-top="false"] {
  background: rgba(251, 250, 245, .93);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.site-head__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 100%;
}

.site-head__progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .12s linear;
}
.site-head[data-at-top="true"] .site-head__progress { opacity: 0; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Monogram kandidáta — erb obce sa bez súhlasu obce použiť nesmie. */
.brand__mark,
.foot__mark {
  display: grid; place-items: center; flex: none;
  border-radius: 50%;
  background: var(--green-dark);
  box-shadow: inset 0 0 0 2px var(--green-dark), inset 0 0 0 3.5px var(--gold);
  color: var(--paper);
  font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1;
}
.brand__mark { width: 38px; height: 38px; font-size: .95rem; }
.site-head[data-at-top="true"] .brand__mark {
  box-shadow: inset 0 0 0 2px var(--green-dark), inset 0 0 0 3.5px var(--gold), 0 1px 10px rgba(0, 0, 0, .45);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name {
  font-family: var(--serif); font-size: 1.06rem; letter-spacing: -.012em;
  white-space: nowrap;
}
.brand__role {
  font-size: .66rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase;
  color: var(--fg-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.site-head[data-at-top="true"] .brand { color: var(--paper); text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.site-head[data-at-top="true"] .brand__role { color: rgba(251, 250, 245, .82); }

.nav__list { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.nav__list a {
  position: relative; display: block; padding: .35em 0;
  font-size: .82rem; font-weight: 500; letter-spacing: .01em;
  transition: color .25s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease);
}
.nav__list a:hover::after,
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__list a[aria-current="true"] { color: var(--green-ink); }
.site-head[data-at-top="true"] .nav__list a { color: var(--paper); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.site-head[data-at-top="true"] .nav__list a::after { background: var(--gold-light); }

.nav-toggle { display: none; }

/* --- mobilná navigácia --- */
@media (max-width: 940px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px; cursor: pointer;
  }
  .nav-toggle__bars { display: grid; gap: 5px; width: 22px; }
  .nav-toggle__bars i {
    height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform .32s var(--ease), opacity .2s var(--ease);
  }
  .site-head[data-at-top="true"] .nav-toggle { color: var(--paper); }
  .nav-toggle[aria-expanded="true"] { color: var(--paper); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Prekryv menu leží NAD pozadím hlavičky. S pôvodným z-index: -1 sa po
     zrolovaní schoval za nepriehľadné pozadie hlavičky a menu „zmizlo“. */
  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: grid; place-content: center;
    background: var(--green-darker);
    opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility .38s;
  }
  .site-head__inner { position: relative; z-index: 2; }

  /* Pri otvorenom menu je za hlavičkou tmavá plocha — logo a krížik zosvetliť. */
  body[data-nav-open="true"] .site-head {
    background: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  body[data-nav-open="true"] .brand,
  body[data-nav-open="true"] .nav-toggle { color: var(--paper); }
  body[data-nav-open="true"] .brand__role { color: rgba(251, 250, 245, .82); }
  body[data-nav-open="true"] .site-head__progress { opacity: 0; }
  .nav[data-open="true"] { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 4px; text-align: center; }
  .nav__list a {
    padding: .5em 1em;
    font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 2.1rem);
    letter-spacing: -.02em; color: var(--paper);
  }
  .site-head[data-at-top="true"] .nav__list a { text-shadow: none; }
  .nav__list a::after { display: none; }
  .nav__list a:hover { color: var(--gold-light); }
  body[data-nav-open="true"] { overflow: hidden; }
}

/* ═══════════════════════════════ 1 · HERO ═══════════════════════════════ */
.hero {
  position: relative;
  min-height: min(100svh, 880px);
  display: flex; align-items: flex-end;
  padding-block: calc(var(--head-h) + 40px) clamp(64px, 9vw, 116px);
  background: var(--green-darker);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
/* <picture> musí mať výšku, inak sa obrázku nemá o čo oprieť height: 100%. */
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 55%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7, 42, 12, .94) 0%, rgba(7, 42, 12, .74) 34%,
                    rgba(7, 42, 12, .34) 62%, rgba(7, 42, 12, .5) 100%),
    linear-gradient(to right, rgba(7, 42, 12, .6), rgba(7, 42, 12, 0) 62%);
}
.hero__inner { position: relative; color: var(--paper); }

.hero__eyebrow {
  display: flex; align-items: center; gap: .85em;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(251, 250, 245, .85);
  margin-bottom: clamp(18px, 2.6vw, 30px);
}
.hero__eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 10.5vw, 8.2rem);
  line-height: .92; letter-spacing: -.035em;
  max-width: 15ch;
}
.hero__title-line { display: block; }
.hero__title-line--accent { color: var(--gold-light); font-style: italic; }

.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  line-height: 1.4; letter-spacing: -.012em;
  color: rgba(251, 250, 245, .9);
  margin-top: clamp(18px, 2.4vw, 30px);
  max-width: 24ch;
}

.hero__who {
  display: flex; align-items: center; flex-wrap: wrap; gap: .1em .9em;
  margin-top: clamp(22px, 3vw, 36px);
  font-size: .9rem; letter-spacing: .02em; color: rgba(251, 250, 245, .82);
}
.hero__who strong { font-weight: 600; color: var(--paper); letter-spacing: .04em; }
.hero__who-sep { width: 24px; height: 1px; background: rgba(251, 250, 245, .4); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.6vw, 44px); }

.hero__down {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 5vw, 52px);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(251, 250, 245, .3); border-radius: 50%;
  color: var(--paper);
}
.hero__down span {
  width: 8px; height: 8px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 2.4s var(--ease) infinite;
}
.hero__down:hover { border-color: var(--gold-light); color: var(--gold-light); }
@keyframes nudge {
  0%, 68%, 100% { transform: rotate(45deg) translate(0, 0); }
  80% { transform: rotate(45deg) translate(3px, 3px); }
}
@media (max-width: 720px) { .hero__down { display: none; } }

/* --- Hero na mobile ---------------------------------------------------
   Panoráma obce je na šírku (2,3 : 1). Keby vypĺňala celú výšku telefónu,
   orezala by sa na úzky zvislý prúžok a z obce by nebolo vidieť nič.
   Preto ju necháme ako pás navrchu v jej vlastnom pomere strán a text
   posadíme pod ňu na plnú zeleň — fotka aj titulok tak ostanú čitateľné. */
@media (max-width: 720px) {
  .hero {
    display: block;
    min-height: 0;
    padding-block: 0 clamp(44px, 10vw, 68px);
  }
  .hero__media {
    position: relative; inset: auto;
    height: clamp(240px, 40vh, 360px);
    margin-bottom: clamp(30px, 7vw, 44px);
  }
  .hero__media img { object-position: 42% 62%; }
  /* Fotka sa zospodu plynulo stráca do zelenej plochy pod ňou. */
  .hero__scrim {
    background:
      linear-gradient(to top, var(--green-darker) 0%, rgba(7, 42, 12, .55) 26%,
                      rgba(7, 42, 12, .12) 58%, rgba(7, 42, 12, .46) 100%);
  }
  .hero__sub { text-wrap: balance; }
  /* Tlačidlá na rovnakú šírku, aby stĺpec nepôsobil rozstrapkane. */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: space-between; }
}

/* ═════════════════════════ 2 · BILANCIA V ČÍSLACH ═══════════════════════ */
.ledger {
  background: var(--green-dark); color: var(--paper);
  padding-block: clamp(44px, 6vw, 76px);
  border-top: 1px solid rgba(251, 250, 245, .08);
}
.ledger__grid {
  display: grid; gap: clamp(28px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* Číslo a popis sú zarovnané cez mriežku, nie cez účiaru — číslo má pevný
   stĺpec (tabuľkové číslice), takže „8“, „12“ aj „16“ začínajú aj končia
   na rovnakej zvislici a popisy vedľa nich sedia v jednej výške. */
.stat {
  position: relative;
  display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(14px, 1.6vw, 22px);
}
/* Odsadenie a deliaca linka len tam, kde čísla stoja vedľa seba —
   po zalomení pod seba by odsadenie rozhádzalo ich ľavú zvislicu. */
@media (min-width: 720px) {
  .stat + .stat { padding-left: clamp(20px, 3vw, 40px); }
  .stat + .stat::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 1px; background: rgba(251, 250, 245, .18);
  }
}
.stat__num {
  min-width: 1.2em;                    /* šírka dvoch tabuľkových číslic */
  font-family: var(--serif); font-size: clamp(2.9rem, 5.6vw, 4.3rem);
  line-height: 1; letter-spacing: -.045em;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__label {
  font-size: .88rem; line-height: 1.4; letter-spacing: .01em;
  color: rgba(251, 250, 245, .78);
  max-width: 19ch; text-wrap: balance;
}

/* ═══════════════════════════ 3 · PRÍHOVOR ═══════════════════════════════ */
.section--letter { background: var(--paper); }
.letter {
  display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .letter { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); align-items: start; }
  .letter__portrait { position: sticky; top: calc(var(--head-h) + 40px); }
}

.portrait-frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--paper-2);
}
.portrait-frame::before {
  content: ""; position: absolute; inset: -1px auto auto -1px;
  width: 52px; height: 52px;
  border-top: 2px solid var(--green); border-left: 2px solid var(--green);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: auto -1px -1px auto;
  width: 52px; height: 52px;
  border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold);
}
.portrait-frame img { width: 100%; filter: contrast(1.04); }

.letter__portrait figcaption {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: 18px; font-size: .84rem; color: var(--fg-muted);
}
.letter__portrait figcaption strong {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em;
}

.pull {
  margin: clamp(28px, 3.6vw, 42px) 0 0;
  padding: clamp(20px, 2.6vw, 28px) 0 clamp(20px, 2.6vw, 28px) clamp(20px, 2.6vw, 30px);
  border-left: 2px solid var(--green);
  background: linear-gradient(to right, var(--green-tint), transparent 88%);
}
.pull p {
  font-family: var(--serif); font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 1.56; letter-spacing: -.008em; color: var(--ink-2);
  max-width: 48ch;
}

.letter__thanks {
  margin-top: clamp(24px, 3vw, 34px);
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink-2);
}

.signature {
  margin-top: 1.1rem;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -.02em; color: var(--green-ink);
}
.signature--light { color: var(--gold-light); }

/* ═════════════════════════ 4 · ČO SA PODARILO ═══════════════════════════ */
.section--record { background: var(--paper); }
.section--record::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: var(--line-soft);
}

.record { border-top: 1px solid var(--ink); }

.rec { border-bottom: 1px solid var(--line); }
.rec__head {
  position: relative;
  display: grid; align-items: center;
  column-gap: clamp(12px, 2vw, 28px);
  /* Štyri položky = štyri stĺpce; inak ikona prepadne na nový riadok. */
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "num title count icon";
  width: 100%; padding: clamp(20px, 2.4vw, 28px) clamp(14px, 1.6vw, 22px);
  text-align: left; cursor: pointer;
  transition: color .3s var(--ease);
}
.rec__num   { grid-area: num;   align-self: center; }
.rec__title { grid-area: title; }
.rec__count { grid-area: count; justify-self: end; }
.rec__icon  { grid-area: icon;  align-self: center; }

/* Na úzkych displejoch ide počet pod názov, nie vedľa neho. */
@media (max-width: 640px) {
  .rec__head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "num title icon"
      "num count icon";
    row-gap: .6em;
  }
  .rec__count { justify-self: start; }
}
/* Zelený „vyliaty atrament“ pri prejdení myšou / otvorení. */
.rec__head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green-tint);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.rec { position: relative; isolation: isolate; }
.rec__head:hover::before,
.rec__head[aria-expanded="true"]::before { transform: scaleX(1); }

.rec__num {
  font-family: var(--serif); font-size: .95rem; font-variant-numeric: tabular-nums;
  color: var(--gold-ink); letter-spacing: .06em;
  transition: color .3s var(--ease);
}
.rec__head[aria-expanded="true"] .rec__num { color: var(--green-ink); }

.rec__title {
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.5vw, 1.85rem);
  line-height: 1.2; letter-spacing: -.017em;
  text-wrap: balance;
}
.rec__head:hover .rec__title,
.rec__head[aria-expanded="true"] .rec__title { color: var(--green-ink); }

.rec__count {
  font-size: .7rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--fg-faint); white-space: nowrap;
  padding: .4em .8em; border: 1px solid var(--line);
  border-radius: 100px; background: var(--paper);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.rec__head[aria-expanded="true"] .rec__count { border-color: var(--line-green); color: var(--green-ink); }

.rec__icon {
  position: relative; width: 15px; height: 15px; flex: none;
  color: var(--green-ink);
}
.rec__icon::before, .rec__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor; transform: translate(-50%, -50%);
  transition: transform .38s var(--ease), opacity .3s var(--ease);
}
.rec__icon::before { width: 15px; height: 1.5px; }
.rec__icon::after  { width: 1.5px; height: 15px; }
.rec__head[aria-expanded="true"] .rec__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.rec__panel { overflow: hidden; }
.rec__inner {
  padding: 0 clamp(14px, 1.6vw, 22px) clamp(26px, 3vw, 38px);
  max-width: 78ch;
}
@media (min-width: 700px) { .rec__inner { padding-left: clamp(46px, 5vw, 74px); } }

.rec__intro {
  color: var(--fg-muted); font-size: .98rem;
  margin-bottom: 1.3em; max-width: 58ch;
}
.rec__note {
  margin-top: 1.5em; padding-top: 1.2em;
  border-top: 1px solid var(--line-soft);
  font-size: .93rem; color: var(--fg-faint); font-style: italic; max-width: 58ch;
}

/* zoznam so „zaškrtnutím“ */
.ticks { display: grid; gap: .7em; }
.ticks li {
  position: relative; padding-left: 1.9em;
  font-size: 1rem; line-height: 1.55; color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: .15em; top: .52em;
  width: .45em; height: .8em;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(42deg);
}
.ticks--sm li { font-size: .95rem; color: var(--fg-muted); }
.ticks--sm li::before { border-color: var(--gold); }

.wide-quote {
  margin: clamp(48px, 6vw, 84px) auto 0;
  max-width: 32ch; text-align: center;
}
.wide-quote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 2.9vw, 2.1rem);
  line-height: 1.34; letter-spacing: -.018em; color: var(--green-ink);
  text-wrap: balance;
}
.wide-quote::before {
  content: ""; display: block; width: 46px; height: 1px;
  background: var(--gold); margin: 0 auto clamp(22px, 3vw, 32px);
}

/* ═══════════════════════════ 5 · BUKOVÁ ŽIJE ════════════════════════════ */
.section--alive {
  background: var(--green-dark); color: var(--paper);
  overflow: hidden;
}
/* Jemná zlatá žiara v pozadí. */
.section--alive::after {
  content: ""; position: absolute; right: -8%; top: 50%;
  width: min(560px, 62vw); aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(232, 196, 69, .1), transparent 62%);
  pointer-events: none;
}
.alive { position: relative; z-index: 1; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; max-width: 62ch; }
.pills li {
  padding: .62em 1.15em;
  font-size: .92rem; letter-spacing: .01em;
  color: rgba(251, 250, 245, .95);
  border: 1px solid rgba(251, 250, 245, .24);
  border-radius: 100px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.pills li:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  color: var(--green-darker); transform: translateY(-2px);
}

.alive__close {
  margin-top: clamp(36px, 5vw, 60px);
  font-family: var(--serif); font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.38; letter-spacing: -.018em;
  color: rgba(251, 250, 245, .94); max-width: 26ch;
}
.alive__close em { font-style: italic; color: var(--gold-light); }

/* ═══════════════════════════ 6 · PRÁCA NEKONČÍ ══════════════════════════ */
.section--plans { background: var(--paper-2); }

.plans {
  display: grid; gap: clamp(14px, 1.6vw, 20px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.plan {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper); border: 1px solid var(--line-soft);
  border-top: 2px solid var(--line);
  transition: border-top-color .35s var(--ease), transform .35s var(--ease),
              box-shadow .35s var(--ease);
}
.plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -18px rgba(11, 61, 18, .4);
  border-top-color: var(--green);
}
.plan--wide { grid-column: span 1; }
@media (min-width: 980px) { .plan--wide { grid-column: span 2; } }

.plan__tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: .55em;
  font-size: .66rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 1.1em;
}
.plan__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plan__tag--sent { color: var(--green-ink); }
.plan__tag--doc  { color: var(--gold-ink); }
.plan__tag--prep { color: var(--fg-faint); }

.plan__title {
  font-family: var(--serif); font-size: clamp(1.24rem, 1.9vw, 1.5rem);
  line-height: 1.2; letter-spacing: -.016em; text-wrap: balance;
}
.plan__text { margin-top: .7em; font-size: .98rem; color: var(--ink-2); }
.plan__text + .ticks { margin-top: 1em; }

.plan__status {
  margin-top: auto; padding-top: 1.3em;
  font-size: .87rem; line-height: 1.55; color: var(--fg-faint);
}
.plan__text + .plan__status,
.ticks + .plan__status { margin-top: 1.3em; border-top: 1px solid var(--line-soft); }

/* ═══════════════════════ 7 · BÝVANIE A ROZVOJ OBCE ══════════════════════ */
.section--housing { background: var(--paper); }

.housing__grid {
  display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.housing__card {
  padding: clamp(26px, 3.2vw, 40px);
  background: var(--green-tint);
  border-left: 3px solid var(--green);
}
.housing__card .housing__sub {
  margin-top: .5em; margin-bottom: 1.2em;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-ink);
}
.housing__card > p { color: var(--ink-2); font-size: 1rem; }
.housing__card .plan__status {
  margin-top: 1.3em; padding-top: 1.3em;
  border-top: 1px solid rgba(16, 134, 21, .2);
}

.housing__outro {
  margin: clamp(30px, 3.6vw, 44px) auto 0;
  max-width: 62ch; text-align: center;
  color: var(--fg-muted); font-size: 1rem;
}

.housing__close {
  margin: clamp(26px, 3.4vw, 40px) auto 0;
  max-width: 34ch; text-align: center;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.7vw, 1.95rem);
  line-height: 1.36; letter-spacing: -.02em; color: var(--green-ink);
  text-wrap: balance;
}

/* ═══════════════════════ 8 · 16 ROKOV SLUŽBY OBCI ═══════════════════════ */
.section--service { background: var(--paper); border-top: 1px solid var(--line-soft); }
.service { max-width: 66ch; margin-inline: auto; }
.service .s-head, .service__body { text-align: left; }

.statement {
  margin: clamp(30px, 4vw, 46px) 0;
  padding: clamp(26px, 3.4vw, 40px) clamp(24px, 3vw, 40px);
  background: var(--green-darker); color: var(--paper);
  position: relative;
}
.statement::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--gold);
}
.statement p {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.36; letter-spacing: -.018em; text-wrap: balance;
}

/* ═══════════════════════════ 9 · CHCEM POKRAČOVAŤ ═══════════════════════ */
.section--close {
  background: var(--green-darker); color: var(--paper);
  overflow: hidden;
}
.section--close::before {
  content: ""; position: absolute; left: 50%; top: -20%;
  width: min(900px, 120vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(16, 134, 21, .28), transparent 60%);
  pointer-events: none;
}
.close { position: relative; z-index: 1; max-width: 62ch; margin-inline: auto; }
.close__body { display: grid; gap: 1.1em; color: rgba(251, 250, 245, .82); }
.close__strong {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.4; letter-spacing: -.015em; color: var(--paper);
}

.creed {
  display: grid; gap: .12em;
  margin: clamp(44px, 5.6vw, 76px) 0;
  padding: clamp(30px, 4vw, 44px) 0;
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  font-family: var(--serif); font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  line-height: 1.08; letter-spacing: -.03em; text-wrap: balance;
}
.creed__accent { color: var(--gold-light); font-style: italic; }

.close__thanks { font-size: 1.02rem; color: rgba(251, 250, 245, .8); }

/* ═══════════════════════════════ PÄTA ═══════════════════════════════════ */
.site-foot {
  background: #051F07; color: rgba(251, 250, 245, .72);
  padding-block: clamp(52px, 6vw, 84px) 30px;
  font-size: .9rem;
}
.foot__top {
  display: grid; gap: clamp(30px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  padding-bottom: clamp(36px, 4.4vw, 56px);
  border-bottom: 1px solid rgba(251, 250, 245, .13);
}
.foot__mark { width: 56px; height: 56px; font-size: 1.35rem; margin-bottom: 16px; }
.foot__name {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.016em;
  color: var(--paper);
}
.foot__role { margin-top: 3px; font-size: .82rem; }

.foot__h {
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.2em;
}
.foot__nav ul, .foot__plain { display: grid; gap: .6em; }
.foot__nav a, .foot__link {
  transition: color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.foot__nav a:hover, .foot__link:hover { color: var(--paper); border-bottom-color: var(--gold); }

.foot__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px;
  padding-top: 26px; font-size: .78rem; color: rgba(251, 250, 245, .5);
}
.foot__legal { max-width: 60ch; }
.site-foot .ph { color: rgba(251, 250, 245, .58); border-bottom-color: rgba(232, 196, 69, .6); }

/* ═══════════════════════════════ FOTOGRAFIE ═════════════════════════════ */
.i-cam {
  width: 1.05em; height: 1.05em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round;
}

/* Položka zoznamu, ku ktorej sú fotky — klikne sa na celý text. */
.tick-btn {
  display: inline; padding: 0; text-align: left; cursor: pointer;
  border-bottom: 1px dotted var(--line-green);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tick-btn .i-cam { display: inline-block; vertical-align: -.14em; margin-left: .45em; color: var(--green); }
.tick-btn:hover { color: var(--green-ink); border-bottom-color: var(--green); }

/* --- pás náhľadov --- */
.gal { margin-top: clamp(26px, 3vw, 36px); }
.gal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.gal__label {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink);
}
.gal__n { color: var(--fg-faint); }
.gal__arrows { display: flex; gap: 6px; }
.gal__arrows[hidden] { display: none; }
.gal__arrow {
  display: grid; place-items: center; width: 36px; height: 36px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 50%; color: var(--green-ink);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), opacity .25s var(--ease);
}
.gal__arrow svg, .lb__nav svg, .lb__close svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.gal__arrow:hover { border-color: var(--green); background: var(--green-tint); }
.gal__arrow:disabled { opacity: .3; cursor: default; background: none; border-color: var(--line); }

.gal__track {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 2px 2px 10px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
/* Keď pás pokračuje, pravý okraj zmäkne — je vidno, že sa dá posúvať. */
.gal[data-more="true"] .gal__track {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
.gal__track > li { flex: 0 0 clamp(148px, 40vw, 184px); scroll-snap-align: start; }

.gal__item { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.gal__img {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--green-tint);
}
.gal__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gal__item:hover .gal__img img { transform: scale(1.04); }
.gal__badge {
  position: absolute; left: 7px; bottom: 7px;
  padding: .3em .6em; border-radius: 3px;
  font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(7, 42, 12, .82); color: var(--paper);
}
.gal__cap {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: .55em; font-size: .84rem; line-height: 1.4; color: var(--fg-muted);
}
.gal__item:hover .gal__cap { color: var(--green-ink); }

/* --- Buková žije: tmavý pás podujatí --- */
.gal--dark { margin-top: clamp(40px, 5vw, 64px); }
.gal--dark .gal__label { color: var(--gold-light); }
.gal--dark .gal__n { color: rgba(251, 250, 245, .55); }
.gal--dark .gal__arrow { border-color: rgba(251, 250, 245, .3); color: var(--paper); }
.gal--dark .gal__arrow:hover { border-color: var(--gold-light); background: rgba(251, 250, 245, .08); }
.gal--dark .gal__arrow:disabled { border-color: rgba(251, 250, 245, .3); background: none; }
.gal--dark .gal__track { scrollbar-color: rgba(251, 250, 245, .25) transparent; gap: 14px; }
.gal--dark .gal__track > li { flex-basis: clamp(210px, 66vw, 280px); }
.gal--dark .gal__img { background: rgba(251, 250, 245, .06); }
.gal--dark .gal__cap {
  font-family: var(--serif); font-size: 1.02rem; color: rgba(251, 250, 245, .92);
}
.gal--dark .gal__item:hover .gal__cap { color: var(--gold-light); }

/* Štítky podujatí, ku ktorým sú fotky. */
.pills li.pill--photo { padding: 0; }
.pill--photo button {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .62em 1.15em; cursor: pointer; color: inherit;
}
.pill--photo .i-cam { opacity: .7; }
.pills li.pill--photo:hover .i-cam { opacity: 1; }

/* --- obrázok na karte plánu --- */
.plan__media {
  position: relative; display: block; overflow: hidden; cursor: zoom-in;
  --pad: clamp(22px, 2.6vw, 30px);   /* = padding karty .plan */
  width: calc(100% + 2 * var(--pad)); align-self: stretch;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 1.3em;
  aspect-ratio: 16 / 10; background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.plan__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.plan__media--contain img { object-fit: contain; padding: 8px; }
.plan__media:hover img { transform: scale(1.03); }
/* Široká karta (park): dva vizuály vedľa seba v nižšom ráme. */
.plan__media--pair { display: flex; justify-content: center; gap: 4px; aspect-ratio: 16 / 9; }
.plan__media--pair img { width: 50%; }
@media (min-width: 980px) { .plan--wide .plan__media--pair { aspect-ratio: 32 / 11; } }
.plan__zoom {
  position: absolute; right: 8px; bottom: 8px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(7, 42, 12, .82); color: var(--paper); font-size: .95rem;
}

/* --- lightbox --- */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #06170A; color: var(--paper);
  overscroll-behavior: contain;
}
.lb[open] {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
}
.lb::backdrop { background: rgba(6, 20, 9, .6); }
.lb__bar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px clamp(14px, 3vw, 28px) 10px;
}
.lb__title {
  font-family: var(--serif); font-size: clamp(1.02rem, 2vw, 1.3rem);
  line-height: 1.3; letter-spacing: -.01em; max-width: 60ch; padding-top: 6px;
}
.lb__close, .lb__nav {
  display: grid; place-items: center; flex: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(251, 250, 245, .28); color: var(--paper);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.lb__close:hover, .lb__nav:hover { border-color: var(--gold-light); background: rgba(251, 250, 245, .08); }
.lb__close svg { width: 20px; height: 20px; }
.lb__nav svg { width: 22px; height: 22px; }

.lb__stage {
  display: grid; gap: 12px; min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  padding: 4px clamp(10px, 3vw, 28px);
  touch-action: pan-y;
}
@media (min-width: 760px) {
  .lb__stage { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 16px; }
}
/* Popis (Pred / Po) je hneď nad fotkou, nie na okraji plochy. */
.lb__fig {
  margin: 0; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.lb__fig img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0;
  object-fit: contain;
  /* kým sa načíta veľká fotka, prekrýva ju už stiahnutý náhľad */
  background: center / cover no-repeat;
}
.lb__fig--cap img { max-height: calc(100% - 34px); }
.lb__fig figcaption {
  order: -1;
  padding: .32em .75em; border-radius: 3px;
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(251, 250, 245, .92); color: var(--green-darker); white-space: nowrap;
}
.lb__fig figcaption.is-after { background: var(--gold-light); }

.lb__foot {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
}
.lb__count { min-width: 5ch; text-align: center; font-size: .9rem; font-variant-numeric: tabular-nums; color: rgba(251, 250, 245, .8); }
.lb__foot[data-single="true"] .lb__nav { visibility: hidden; }
html[data-lb-open="true"] { overflow: hidden; }

/* ═══════════════════════ odhaľovanie pri rolovaní ═══════════════════════ */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: .09s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .18s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .27s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: .36s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Kartám a záznamom sa oneskorenie počíta v JS podľa poradia v mriežke. */
.plan[data-reveal], .rec[data-reveal] { transition-delay: var(--stagger, 0s); }

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