:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --brand: #10b981;
  --brand-2: #60a5fa;
  --alt: #f9fafb;
  --card: #ffffff;
  --ring: rgba(16, 185, 129, 0.35);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
body[data-disable-cta="zapisy"] .floating-cta {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem;
  background: #fff;
  border: 2px solid var(--brand);
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef2ff;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--text);
  font-size: 1.25rem;
}
.brand img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.navmenu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.navmenu a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}
.navmenu a:hover {
  background: #f3f4f6;
  text-decoration: none;
}
.nav-toggle {
  display: none;
}

.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #ecfeff, #f0fdf4);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 1rem + 3vw, 3.2rem);
  margin: 0 0 0.5rem;
}
.accent {
  color: var(--brand);
}
.cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 0;
  box-shadow: var(--shadow);
}
.btn:hover {
  filter: brightness(0.95);
  text-decoration: none;
}
.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid #e5e7eb;
}

.section {
  padding: 4rem 0;
}
.section.alt {
  background: var(--alt);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  align-items: start;
}
.cards {
  display: grid;
  align-items: center;
  justify-content: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid #eef2ff;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card .decor {
  width: 96px;
  opacity: 0.6;
}

.checklist {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.5rem;
}
.checklist li {
  position: relative;
  padding-left: 1.5rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

.faq {
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}
.faq[open] {
  background: #fff;
}

.form label {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0;
  font-weight: 600;
}
.form input,
.form textarea {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font: inherit;
}
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--ring);
  border-color: var(--brand);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.map-embed {
  margin-top: 1rem;
  display: grid;
  place-items: center;
  border: 2px dashed #e5e7eb;
  border-radius: 18px;
  padding: 2rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid #eef2ff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
.footer-grid h3 {
  margin-top: 0;
}
.footer-bottom {
  border-top: 1px solid #eef2ff;
  padding: 1rem 0;
  color: var(--muted);
  text-align: center;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
  }
  .navmenu {
    position: absolute;
    right: 4%;
    top: 60px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
  }
  .navmenu.open {
    display: flex;
  }
}

/* --- THEME OVERRIDES FOR DINO KIDS LOGO --- */

:root {
  --bg: #f7f2ee; /* warm cream */
  --text: #2b3442; /* deep slate */
  --muted: #6b7280;
  --brand: #e44c27; /* logo orange-red */
  --brand-2: #45699d; /* denim blue */
  --accent: #548660; /* dino green */
  --yellow: #f4b21a; /* sunny yellow */
  --alt: #fff;
  --card: #ffffff;
  --ring: rgba(69, 105, 157, 0.35);
  --shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}
body {
  background: var(--bg);
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans";
}
h1,
h2,
h3,
h4 {
  font-family: "Baloo 2", "Nunito", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial;
  line-height: 1.1;
  letter-spacing: 0.2px;
}
.brand span {
  font-family: "Baloo 2";
}

.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #fff 0%, #f7f2ee 100%);
}
.btn {
  background: var(--brand);
}
.btn.ghost {
  background: #fff;
  color: var(--brand-2);
  border: 2px solid var(--brand-2);
}
a {
  color: var(--brand-2);
}

.card {
  border: 2px solid #f3e9e5;
}
.checklist li::before {
  color: var(--accent);
}

.section.alt {
  background: #fff;
}
.footer-bottom {
  background: #fff;
}

/* === Global Navigation === */
.site-nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-toggle {
  display: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
.nav-menu a[aria-current="page"] {
  background: var(--alt);
  text-decoration: none;
}
@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid #eee;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li {
    border-top: 1px solid #f3f4f6;
  }
  .nav-menu a {
    padding: 1rem 6%;
  }
}

/* === Footer === */
.site-footer {
  background: #0f172a;
  color: white;
  margin-top: 3rem;
  padding: 3rem 0 2rem;
}
.site-footer a {
  color: #e2e8f0;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand p {
  color: #cbd5e1;
}
.footer-nav h3,
.footer-contact h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #f1f5f9;
}
.footer-nav ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li,
.footer-contact li {
  margin: 0.4rem 0;
}
.smallprint {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  padding-top: 1rem;
  color: #94a3b8;
}
@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* === Sections (hero/feature/gallery/testimonials/faq) === */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #ecfeff, #f0fdf4);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 1rem + 3vw, 3.2rem);
  margin: 0 0 0.5rem;
}
.accent {
  color: var(--brand);
}
.cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 0;
  box-shadow: var(--shadow);
}
.btn:hover {
  filter: brightness(0.95);
  text-decoration: none;
}
.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid #e5e7eb;
}

.section {
  padding: 4rem 0;
}
.section.alt {
  background: var(--alt);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid #eef2ff;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card .decor {
  width: 96px;
  border: 1px solid #eef2ff;
  border-radius: 18px;
  opacity: 1;
}

.timeline {
  border-left: 3px solid #e5e7eb;
  margin-left: 1rem;
  padding-left: 1rem;
}
.timeline .row {
  margin: 1rem 0;
}
.timeline .time {
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery img {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.quote {
  background: #fff;
  border: 1px solid #eef2ff;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
  position: relative;
}
.quote:before {
  content: "“";
  position: absolute;
  left: 0.75rem;
  top: 0.25rem;
  font-size: 2.5rem;
  color: #e5e7eb;
}

.faq details {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  margin: 0.75rem 0;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 920px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .testimonials {
    grid-template-columns: 1fr;
  }
}

/* Page title banner */
.page-banner {
  background: linear-gradient(90deg, #f0fdf4, #ecfeff);
  border-bottom: 1px solid #eef2ff;
}
.page-banner .container {
  padding: 2.5rem 0;
}
.page-banner h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1rem + 2vw, 2.4rem);
}

/* === Responsive / Off-canvas Navigation === */
.site-nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.desktop-only {
  display: flex; /* horizontal list visible */
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.desktop-only a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
.desktop-only a[aria-current="page"] {
  background: var(--alt);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: #111827;
  display: block;
  border-radius: 2px;
}

/* Drawer & overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(84%, 360px);
  background: #fff;
  border-left: 1px solid #eee;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 1001;
}
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 800;
}
.nav-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
}
.nav-drawer-menu a {
  display: block;
  padding: 1rem;
  border-radius: 0.75rem;
}
.nav-drawer-menu a[aria-current="page"] {
  background: var(--alt);
}

.nav-close {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  .desktop-only,
  .nav-menu.desktop-only {
    display: none !important;
  } /* hide horizontal list */
  .nav-toggle {
    display: inline-flex;
  } /* show the hamburger */
}

/* Open state toggled on <body> */
body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}
body.nav-open .nav-drawer {
  transform: translateX(0);
}
body.nav-open {
  overflow: hidden;
}

/* Visibility fixes */
.nav-overlay {
  z-index: 1000;
}
.nav-drawer {
  z-index: 1001;
}
.nav-close {
  font-size: 1.25rem;
  line-height: 1;
  border-color: #e5e7eb;
}
.nav-drawer-header {
  background: #fff;
}

/* Drawer header always visible */
.nav-drawer-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}
.nav-close {
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.2rem 0.6rem;
}

/* === Floating "Zapisy online" CTA === */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: 0;
  text-decoration: none;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  font-weight: 700;
}
.floating-cta.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
body.nav-open .floating-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

/* Center FAQ horizontally */
.faq {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
.faq > h2 {
  text-align: center;
}

/* === Floating CTA: pill + icon === */
.floating-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  border-radius: 9999px;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  border: 0;
  text-decoration: none;
}
.floating-cta .icon {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 0;
}
.floating-cta .icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.floating-cta:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

/* === Form styles (inputs/select/textarea) === */
input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ring);
  border-color: transparent;
}
label {
  display: block;
  margin: 0.5rem 0;
}

/* Map embed */
.map-wrap {
  margin-top: 1rem;
}
.map-embed {
  width: 100%;
  height: 360px;
  border: 1px solid #eef2ff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* === Custom fonts (Jirogi + Sharp Sans) === */
@font-face {
  font-family: "Jirogi";
  src: url("/assets/fonts/Jirogi/Jirogi.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sharp Sans";
  src: url("/assets/fonts/SharpSans/SharpSans.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-heading: "Jirogi", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  --font-body: "Sharp Sans", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
}
body {
  font-family: var(--font-body);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  letter-spacing: 0.2px;
}

/* Emphasized submit button */
#contact-send.btn {
  display: inline-flex; /* or flex if you want full-width */
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  gap: 0.5rem; /* space between icon and text */
  text-align: center;
  line-height: 1.1; /* keeps text nicely centered */
}
#contact-send.btn:hover {
  filter: brightness(0.95);
}
#contact-send.btn:active {
  transform: translateY(1px);
}
#contact-send.btn .icon {
  display: inline-flex;
  align-items: center; /* centers the SVG inside the span */
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
}

#contact-send.btn .icon svg {
  display: block; /* prevents baseline wiggle */
  width: 100%;
  height: 100%;
}

/* Price table improvements */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
  min-width: 640px;
}
.price-table thead th {
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
  border: 1px solid #eef2ff;
  padding: 0.9rem 1rem;
  text-align: left;
}
.price-table tbody td {
  background: #fff;
  border: 1px solid #eef2ff;
  padding: 0.9rem 1rem;
  vertical-align: top;
}
.price-table tbody tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.price-table tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.price-table th:nth-child(2),
.price-table td:nth-child(2) {
  text-align: right;
  white-space: nowrap;
}
.price-table th:nth-child(3),
.price-table td:nth-child(3) {
  color: var(--muted);
}
@media (max-width: 720px) {
  .price-table {
    min-width: 520px;
  }
}

:root {
  --decor-opacity: 0.1;
  --decor-max: 8;
}
.decor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.decor-sprite {
  position: absolute;
  opacity: var(--decor-opacity);
  transition: transform 0.6s ease, opacity 0.4s ease;
  filter: saturate(0.95);
  will-change: transform;
}
/* Keep real content above the background sprites */
#site-nav,
main,
[data-include="/assets/includes/footer.html"] {
  position: relative;
  /* z-index: 1; */
}

/* Reduce density on small screens */
@media (max-width: 900px) {
  :root {
    --decor-max: 4;
    --decor-opacity: 0.1;
  }
}
@media (max-width: 640px) {
  :root {
    --decor-max: 2;
    --decor-opacity: 0.08;
  }
}
/* Respect users who prefer less motion (keep static) */
@media (prefers-reduced-motion: reduce) {
  .decor-sprite {
    transition: opacity 0.2s ease;
  }
}

/* === Decorative background sprites (parallax + float) === */
:root {
  --decor-opacity: 0.18;
  --decor-max: 8;
}
.decor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.decor-sprite {
  position: absolute;
  opacity: var(--decor-opacity);
  filter: saturate(1.05) contrast(1.05)
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg))
    translateY(var(--parallax, 0px));
  transition: opacity 0.35s ease;
  will-change: transform;
}
.decor-sprite.d0 {
  transform: translate(-50%, -50%) scale(1.05) rotate(var(--rot))
    translateY(var(--parallax));
  opacity: calc(var(--decor-opacity) + 0.04);
}
.decor-sprite.d1 {
  transform: translate(-50%, -50%) scale(0.95) rotate(var(--rot))
    translateY(var(--parallax));
}
.decor-sprite.d2 {
  transform: translate(-50%, -50%) scale(0.88) rotate(var(--rot))
    translateY(var(--parallax));
  opacity: calc(var(--decor-opacity) - 0.04);
}
@keyframes floatY {
  from {
    transform: translate(-50%, -50%) rotate(var(--rot))
      translateY(calc(var(--parallax) - 4px));
  }
  to {
    transform: translate(-50%, -50%) rotate(var(--rot))
      translateY(calc(var(--parallax) + 4px));
  }
}
.decor-sprite.float {
  animation: floatY 3.5s ease-in-out infinite alternate;
}
@media (max-width: 900px) {
  :root {
    --decor-opacity: 0.22;
    --decor-max: 6;
  }
}
@media (max-width: 640px) {
  :root {
    --decor-opacity: 0.26;
    --decor-max: 5;
  }
}
body[data-decor="strong"] {
  --decor-opacity: 0.3;
}
body[data-decor="strong"] .decor-sprite {
  filter: saturate(1.1) contrast(1.08)
    drop-shadow(0 3px 10px rgba(0, 0, 0, 0.07));
}
@media (prefers-reduced-motion: reduce) {
  .decor-sprite {
    animation: none !important;
  }
}


/* === Lottie pin (top-right in #content) === */
main#content{ position: relative; } /* ensure positioning context */
.lottie-pin{
  position:absolute;
  top: .5rem;
  right: .5rem;
  width: clamp(96px, 13vw, 200px);
  aspect-ratio: 1 / 1;
  z-index: 2;             /* above decor, below nav/menu/CTA */
  pointer-events: none;   /* don't block clicks */
  opacity: .95;
}
@media (max-width: 900px){
  .lottie-pin{ width: clamp(88px, 18vw, 180px); top: .4rem; right: .4rem; }
}
@media (max-width: 640px){
  .lottie-pin{ width: clamp(72px, 22vw, 160px); top: .3rem; right: .3rem; opacity: 1; }
}
