:root {
  /* Sage tokens remapped for dark-theme readability: the lower numbers are
     darker surfaces/borders; higher numbers are bright accents that read on dark. */
  --sage-50:  #1e2321;  /* elevated surface */
  --sage-100: #2a2f2c;  /* borders */
  --sage-200: #beccc0;  /* brightest sage accent */
  --sage-400: #aabda0;  /* mid-bright sage */
  --sage-600: #7e9278;  /* mid sage */
  --sage-800: #aabda0;  /* semantic accent — was #5b695d; lifted for contrast */

  --ink:   #e8e5dc;     /* moonlight cream (primary text) */
  --ink-2: #c8c6bb;
  --muted: #8a9088;
  --line:  #2a2f2c;
  --bg:    #171b1a;     /* soft dark — night ground */
  --surface: #1e2321;   /* elevated card/panel */
  --warm:  #edd799;     /* warm street-light amber */
  --warm-strong: #f5e2ab;
  --btn-ink: #141817;   /* dark text used on warm buttons */

  /* Bulma overrides */
  --bulma-family-primary: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bulma-family-secondary: "Fraunces", Georgia, serif;
  --bulma-scheme-main: var(--bg);
  --bulma-scheme-main-bis: var(--surface);
  --bulma-scheme-main-ter: var(--surface);
  --bulma-body-color: var(--ink);
  --bulma-body-background-color: var(--bg);
  --bulma-text: var(--ink);
  --bulma-text-strong: var(--ink);
  --bulma-link-h: 42deg;
  --bulma-link-s: 60%;
  --bulma-link-l: 72%;
}

html {
  color-scheme: dark;
}
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

/* ---------- Navbar ---------- */
.at-navbar {
  background: rgba(23, 27, 26, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.at-navbar .navbar-item { color: var(--ink-2); font-weight: 500; }
.at-navbar .navbar-item:hover { background: transparent; color: var(--warm); }

.at-brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.at-logo {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sage-200), var(--sage-600));
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.15);
  display: inline-block;
}
.at-wordmark {
  font-family: var(--bulma-family-secondary);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  color: var(--ink);
}

.at-cart { display: inline-flex !important; align-items: center; gap: 0.5rem; }
.at-cart-count {
  background: var(--sage-400) !important;
  color: #fff !important;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.at-btn {
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.at-btn.is-primary {
  background: var(--warm);
  color: var(--btn-ink);
  border: 1px solid var(--warm);
  box-shadow: 0 0 32px -12px rgba(237, 215, 153, 0.6);
}
.at-btn.is-primary:hover {
  background: var(--warm-strong);
  border-color: var(--warm-strong);
  color: var(--btn-ink);
  box-shadow: 0 0 42px -10px rgba(245, 226, 171, 0.8);
}
.at-btn.is-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.at-btn.is-ghost:hover {
  background: var(--surface);
  border-color: var(--sage-400);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.at-hero {
  position: relative;
  padding: 7rem 0 6rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.at-hero > .container { position: relative; z-index: 1; }

.at-hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.at-blob-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
  will-change: transform;
}
.at-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform, opacity;
}
.at-blob-1 {
  width: 560px; height: 560px;
  top: -15%; right: -8%;
  background: radial-gradient(circle, rgba(190, 204, 192, 0.22), transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.at-blob-2 {
  width: 460px; height: 460px;
  bottom: -20%; left: -6%;
  background: radial-gradient(circle, rgba(170, 189, 160, 0.20), transparent 70%);
  animation: drift-b 28s ease-in-out infinite alternate;
}
.at-blob-3 {
  width: 320px; height: 320px;
  top: 38%; left: 42%;
  background: radial-gradient(circle, rgba(237, 215, 153, 0.18), transparent 70%);
  animation: drift-c 20s ease-in-out infinite alternate;
  opacity: 0.85;
}
@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.08); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, -50px) scale(1.12); }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-80px, -30px) scale(1.15); opacity: 0.75; }
}

.at-hero-bloom {
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin-left: -280px;
  margin-top: -280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(255, 224, 160, 0.55) 0%,
    rgba(237, 215, 153, 0.32) 25%,
    rgba(190, 204, 192, 0.12) 55%,
    transparent 75%
  );
  filter: blur(34px);
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
}
.at-hero-bloom.is-visible { opacity: 1; }

.at-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 80px;
  z-index: 0;
  pointer-events: none;
  animation: wave-shift 14s ease-in-out infinite alternate;
}
@keyframes wave-shift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-24px); }
}

.at-hero-wave-dynamic {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 80px;
  z-index: 0;
  pointer-events: none;
}
.at-wave-follower {
  fill: none;
  stroke: #edd799;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.45s ease;
  filter: drop-shadow(0 0 4px rgba(237, 215, 153, 0.5));
}

/* Hero magnetic title words */
.at-hero-title .at-word {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.2, 1, 0.3, 1);
  will-change: transform;
}

/* Hero cursor particle cloud */
.at-hero-particles {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Hero intro cascade */
.at-hero .at-eyebrow,
.at-hero-title,
.at-hero-sub,
.at-hero-cta {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.at-hero .at-eyebrow { animation-delay: 0.10s; }
.at-hero-title       { animation-delay: 0.22s; }
.at-hero-sub         { animation-delay: 0.40s; }
.at-hero-cta         { animation-delay: 0.58s; }
@keyframes hero-in {
  to { opacity: 1; transform: none; }
}
.at-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage-800);
  margin-bottom: 1rem;
}
.at-hero-title {
  font-family: var(--bulma-family-secondary);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.at-hero-sub {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.at-hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.at-section { padding: 6rem 0; }
.at-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.at-section-title {
  font-family: var(--bulma-family-secondary);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.at-section-sub { color: var(--muted); margin: 0; }
.at-prose { color: var(--ink-2); max-width: 56ch; line-height: 1.65; font-size: 1.05rem; }
.at-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 500;
  color: var(--sage-800);
  border-bottom: 1px solid var(--sage-200);
  padding-bottom: 2px;
}
.at-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Filters ---------- */
.at-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.at-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.at-chip:hover { border-color: var(--sage-400); color: var(--ink); }
.at-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--btn-ink);
}

/* ---------- Product grid ---------- */
.at-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.at-product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.at-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px -22px rgba(0, 0, 0, 0.7),
              0 0 32px -18px rgba(237, 215, 153, 0.35);
  border-color: var(--sage-400);
}
.at-product.is-hidden { display: none; }

.at-product-cover {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.at-cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.at-product:hover .at-cover { transform: scale(1.03); }

/* Cover generative art — pure CSS gradients in the palette */
.at-cover-a {
  background:
    radial-gradient(circle at 30% 30%, #beccc0, transparent 55%),
    radial-gradient(circle at 70% 70%, #5b695d, transparent 60%),
    linear-gradient(135deg, #aabda0, #6e7864);
}
.at-cover-b {
  background:
    repeating-linear-gradient(110deg, rgba(0,0,0,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #beccc0 0%, #7e9278 55%, #5b695d 100%);
}
.at-cover-c {
  background:
    radial-gradient(ellipse at 50% 120%, #111311 0%, transparent 55%),
    linear-gradient(180deg, #aabda0, #6e7864);
}
.at-cover-d {
  background:
    radial-gradient(circle at 20% 80%, #beccc0, transparent 45%),
    radial-gradient(circle at 80% 20%, #5b695d, transparent 50%),
    #7e9278;
}
.at-cover-e {
  background:
    conic-gradient(from 220deg at 60% 40%, #beccc0, #7e9278, #5b695d, #aabda0, #beccc0);
  filter: saturate(0.9);
}
.at-cover-f {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 6px),
    linear-gradient(135deg, #5b695d, #111311);
}

.at-product-body {
  padding: 1.25rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}
.at-product-tag {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--sage-800);
  font-weight: 600;
  margin: 0;
}
.at-product-title {
  font-family: var(--bulma-family-secondary);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
.at-product-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  flex-grow: 1;
}
.at-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.at-price {
  font-family: var(--bulma-family-secondary);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ---------- Feature sections ---------- */
.at-feature {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.at-feature-alt { background: var(--surface); }
.at-feature-art {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 25%, #beccc0, transparent 55%),
    radial-gradient(circle at 75% 75%, #5b695d, transparent 60%),
    linear-gradient(135deg, #aabda0, #6e7864);
  box-shadow: 0 30px 60px -30px rgba(91, 105, 93, 0.4);
}
.at-feature-art-alt {
  background:
    repeating-linear-gradient(45deg, rgba(17,19,17,0.08) 0 2px, transparent 2px 18px),
    linear-gradient(160deg, #beccc0 0%, #7e9278 60%, #5b695d 100%);
}

/* ---------- About ---------- */
.at-about { max-width: 760px; }

/* ---------- Newsletter ---------- */
.at-newsletter {
  padding: 5rem 0 6rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.at-newsletter-card {
  background: linear-gradient(140deg, var(--surface) 0%, #262b28 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 0 80px -30px rgba(237, 215, 153, 0.22);
}
.at-newsletter-card .at-section-title { color: var(--ink); }
.at-newsletter-card .at-prose { color: var(--ink-2); }
.at-newsletter-form { display: flex; gap: 0.5rem; }
.at-newsletter-form .input {
  background: rgba(232, 229, 220, 0.06);
  border: 1px solid rgba(232, 229, 220, 0.14);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  height: auto;
}
.at-newsletter-form .input::placeholder { color: rgba(232, 229, 220, 0.4); }
.at-newsletter-form .input:focus { border-color: var(--warm); box-shadow: 0 0 0 3px rgba(237, 215, 153, 0.12); }
.at-newsletter-form .at-btn.is-primary {
  background: var(--warm);
  color: var(--btn-ink);
  border-color: var(--warm);
}
.at-newsletter-form .at-btn.is-primary:hover {
  background: var(--warm-strong); border-color: var(--warm-strong); color: var(--btn-ink);
}

@media (max-width: 768px) {
  .at-newsletter-card { grid-template-columns: 1fr; padding: 2rem; }
  .at-newsletter-form { flex-direction: column; }
  .at-newsletter-form .at-btn { width: 100%; }
}

/* ---------- Footer ---------- */
.at-footer {
  background: var(--bg);
  color: var(--muted);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}
.at-footer .at-wordmark { color: var(--ink); }
.at-footer-head {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.at-footer ul { list-style: none; padding: 0; margin: 0; }
.at-footer li { margin-bottom: 0.4rem; }
.at-footer a { color: var(--muted); }
.at-footer a:hover { color: var(--warm); }
.at-footer-note { color: var(--muted); margin-top: 0.6rem; font-size: 0.95rem; }
.at-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .at-footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ---------- Marquee ---------- */
.at-marquee {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.95rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.at-marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 45s linear infinite;
  font-family: var(--bulma-family-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-800);
  white-space: nowrap;
  will-change: transform;
}
.at-marquee-track > * { flex-shrink: 0; }
.at-marquee-track > span:nth-child(even) {
  color: var(--sage-200);
  font-size: 0.75rem;
  align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Scroll reveal ---------- */
.at-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.at-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Breathing product covers ---------- */
.at-product-cover { position: relative; }
.at-cover {
  animation: breathe 18s ease-in-out infinite;
  transform-origin: center;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50%      { transform: scale(1.04); filter: saturate(1.08); }
}
/* Let the breathing run uninterrupted — card lift already provides hover feedback */
.at-product:hover .at-cover { transform: none; }

/* ---------- Cart badge pop ---------- */
.at-cart-count {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.at-cart-count.is-bumped {
  animation: cart-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cart-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------- Parallax feature art ---------- */
.at-feature-art {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ---------- Tree section ---------- */
.at-tree-section {
  position: relative;
  padding: 6rem 0 6rem;
  background: var(--sage-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.at-tree-section > .container { position: relative; z-index: 1; }
.at-tree-fireflies {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.at-global-fireflies {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}
.at-tree-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.at-tree {
  width: 500px;
  max-width: 94vw;
  height: auto;
  display: block;
  overflow: visible;
}
.at-tree-copy { max-width: 640px; margin: 0 auto; }
.at-tree-copy .at-prose { margin-left: auto; margin-right: auto; }

.at-tree .branch {
  fill: none;
  stroke: #b8c7b9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--grow-delay, 0s);
  filter: drop-shadow(0 0 3px rgba(184, 199, 185, 0.15));
}
.at-tree .trunk { stroke-width: 6; --grow-delay: 0s; transition-duration: 1.1s; }
.at-tree .main  { stroke-width: 3.4; --grow-delay: 0.9s; transition-duration: 0.9s; }
.at-tree .sub   { stroke-width: 2.1; --grow-delay: 1.5s; transition-duration: 0.8s; }
.at-tree .twig  { stroke-width: 1.4; --grow-delay: 2.0s; transition-duration: 0.6s; }

/* Lamppost — fades in after tree branches finish drawing */
.at-lamppost {
  opacity: 0;
  transition: opacity 1.2s ease 2.4s;
}
.at-tree.is-grown .at-lamppost { opacity: 1; }

.at-lamp-bulb {
  filter: drop-shadow(0 0 6px rgba(255, 224, 156, 0.9))
          drop-shadow(0 0 14px rgba(255, 205, 110, 0.55));
}

.at-lamp-bloom {
  mix-blend-mode: screen;
}
.at-lamp-bloom-1 {
  animation: lamp-pulse-inner 3.8s ease-in-out infinite;
  filter: blur(3px);
}
.at-lamp-bloom-2 {
  animation: lamp-pulse-mid 3.8s ease-in-out 0.25s infinite;
  filter: blur(10px);
}
.at-lamp-bloom-3 {
  animation: lamp-pulse-outer 3.8s ease-in-out 0.5s infinite;
  filter: blur(22px);
}

/* Left lamppost breathes slightly out of phase so the two lamps aren't synchronised */
.at-lamppost-left .at-lamp-bloom-1 { animation-delay: 1.4s; }
.at-lamppost-left .at-lamp-bloom-2 { animation-delay: 1.65s; }
.at-lamppost-left .at-lamp-bloom-3 { animation-delay: 1.9s; }
@keyframes lamp-pulse-inner {
  0%, 100% { r: 11; opacity: 0.55; }
  50%      { r: 15; opacity: 0.88; }
}
@keyframes lamp-pulse-mid {
  0%, 100% { r: 22; opacity: 0.30; }
  50%      { r: 30; opacity: 0.52; }
}
@keyframes lamp-pulse-outer {
  0%, 100% { r: 42; opacity: 0.14; }
  50%      { r: 58; opacity: 0.26; }
}

.at-tree.is-grown .branch {
  stroke-dashoffset: 0;
}

.at-tree-canopy {
  transform-origin: 200px 340px;
  transform-box: view-box;
  animation: none;
}
.at-tree.is-grown .at-tree-canopy {
  animation: tree-sway 7s ease-in-out 2.6s infinite alternate;
}
@keyframes tree-sway {
  0%   { transform: rotate(-1.2deg); }
  100% { transform: rotate(1.4deg); }
}

.at-tree .leaf {
  opacity: 0;
  transition: opacity 0.9s ease;
  transition-delay: calc(2.3s + var(--leaf-delay, 0s));
}
.at-tree.is-grown .leaf { opacity: var(--leaf-opacity, 0.9); }

.at-tree .falling-leaf {
  transform-box: fill-box;
  transform-origin: center;
  animation: tree-fall var(--drift-dur, 8s) cubic-bezier(0.55, 0, 0.45, 1) forwards;
}
@keyframes tree-fall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: var(--leaf-opacity, 0.9); }
  15%  { transform: translate(calc(var(--drift-x, 40px) * 0.2), 30px) rotate(calc(var(--drift-rot, 360deg) * 0.15)); }
  55%  { transform: translate(calc(var(--drift-x, 40px) * 0.7), 140px) rotate(calc(var(--drift-rot, 360deg) * 0.6)); opacity: var(--leaf-opacity, 0.9); }
  100% { transform: translate(var(--drift-x, 40px), 260px) rotate(var(--drift-rot, 360deg)); opacity: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .at-reveal { opacity: 1; transform: none; }
  .at-hero .at-eyebrow,
  .at-hero-title,
  .at-hero-sub,
  .at-hero-cta { opacity: 1; transform: none; }
  .at-marquee-track { animation: none; }
  .at-cover { animation: none; }
  .at-blob, .at-hero-wave { animation: none; }
  .at-tree .branch { stroke-dashoffset: 0; transition: none; }
  .at-tree .leaf { opacity: var(--leaf-opacity, 0.9); transition: none; }
  .at-tree-canopy { animation: none; }
  .at-tree .falling-leaf { display: none; }
  .at-lamp-bloom { animation: none; opacity: 0.4; }
  .at-tree-fireflies { display: none; }
  .at-global-fireflies { display: none; }
  .at-hero-bloom { display: none; }
  .at-hero-particles { display: none; }
  .at-hero-wave-dynamic { display: none; }
  .at-hero-title .at-word { transition: none; transform: none !important; }
  .at-blob-wrap { transition: none; transform: none !important; }
}
