/* NIGHT GARDEN — green-black nocturne. One ease token, one lit focal point per screen. */

:root {
  --bg: #06110B;
  --bg-deep: #040D08;
  --ink: #F2F5EA;
  --ink-dim: #A9BFA6;
  --lime: #B7FF5C;
  --lime-dim: #86C24A;
  --lime-ghost: rgba(183, 255, 92, 0.14);
  --moss: #16301F;
  --ease-garden: cubic-bezier(0.23, 1, 0.32, 1);
  --t-quick: 0.45s;
  --t-slow: 0.9s;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--bg-deep); }

/* ---------- fixed layers ---------- */

#garden, #air {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
#garden { z-index: -2; }
#air { z-index: 6; }

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(2, 8, 5, 0.5) 100%),
    linear-gradient(rgba(4, 13, 8, 0.75), transparent 18%);
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.2rem 2.2rem;
}
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.head-cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--lime-ghost);
  transition: border-color var(--t-quick) var(--ease-garden), color var(--t-quick) var(--ease-garden);
}
.head-cta:hover, .head-cta:focus-visible { border-color: var(--lime); }

.skip {
  position: absolute;
  left: -200vw;
  top: 0;
  z-index: 20;
  background: var(--lime);
  color: var(--bg-deep);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

a:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 2vw;
  padding: 16vh 6vw 10vh;
}
.hero-copy { grid-column: 1 / 8; max-width: 46rem; position: relative; }
.hero .fig { grid-column: 8 / 13; }

/* quiet field behind the copy so the bloom stays the single lit subject */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -2.5rem -2rem;
  z-index: -1;
  background: radial-gradient(ellipse 85% 70% at 40% 42%, rgba(4, 13, 8, 0.62), rgba(4, 13, 8, 0.3) 60%, transparent 82%);
  pointer-events: none;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime-dim);
  margin-bottom: 2.2rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(4, 13, 8, 0.9);
}
h1 em {
  font-style: italic;
  color: var(--lime);
  text-shadow: 0 0 34px rgba(183, 255, 92, 0.28), 0 2px 30px rgba(4, 13, 8, 0.9);
}

.lede {
  margin-top: 2.4rem;
  max-width: 34rem;
  font-size: 1.13rem;
  color: var(--ink-dim);
  text-shadow: 0 1px 12px rgba(4, 13, 8, 0.8);
}

.hero-actions { margin-top: 2.6rem; }

.scroll-hint {
  margin-top: 5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hint-stem {
  display: inline-block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--lime), transparent);
  transform-origin: top;
}
html:not(.reduced) .hint-stem { animation: stem-grow 2.6s var(--ease-garden) infinite; }
@keyframes stem-grow {
  0% { transform: scaleY(0); opacity: 0; }
  35% { opacity: 1; }
  75% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* hero entrance — the stagger ladder, one curve */
.hero [data-r] { opacity: 0; transform: translateY(24px); }
html.fonts-in .hero [data-r] {
  animation: rise 0.95s var(--ease-garden) forwards;
  animation-delay: var(--rd, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */

.bloom-section {
  min-height: 96vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 2vw;
  padding: 8vh 6vw;
}
.fig {
  aspect-ratio: 1;
  width: 100%;
  max-width: 500px;
  justify-self: center;
}
.bloom-section .fig { grid-column: 1 / 6; grid-row: 1; }
.bloom-section .card { grid-column: 6 / 13; grid-row: 1; justify-self: start; }
.bloom-section.alt .fig { grid-column: 8 / 13; }
.bloom-section.alt .card { grid-column: 1 / 8; justify-self: end; }

.card {
  max-width: 580px;
  padding: 2.6rem 2.8rem 2.4rem;
  border-radius: 18px;
  background: rgba(5, 14, 9, 0.78);
  border: 1px solid rgba(183, 255, 92, 0.12);
  box-shadow: 0 40px 90px rgba(1, 5, 3, 0.55);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lime-dim);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 1.1rem;
}

.headline {
  margin-top: 1rem;
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--ink);
}

.body {
  margin-top: 1.1rem;
  color: var(--ink-dim);
  max-width: 44rem;
}

.stat-line, .price {
  margin-top: 1.6rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.9rem;
  row-gap: 0.3rem;
}
.stat {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1;
  color: var(--lime);
  text-shadow: 0 0 26px rgba(183, 255, 92, 0.3);
}
.stat-label {
  font-size: 0.92rem;
  color: var(--ink-dim);
  max-width: 26rem;
}
.stat-line .stat + .stat-label { margin-right: 0.7rem; }

.status {
  margin-top: 1.3rem;
  font-style: italic;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.98rem;
}
.bud {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: transparent;
  border: 1.5px solid var(--lime-dim);
  box-shadow: 0 0 10px rgba(183, 255, 92, 0.25);
}

.card-cta { margin-top: 1.8rem; }
.card-cta a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--lime-ghost);
  padding-bottom: 2px;
  transition: border-color var(--t-quick) var(--ease-garden);
}
.card-cta a:hover, .card-cta a:focus-visible { border-color: var(--lime); }
.card-cta .arrow { display: inline-block; transition: transform var(--t-quick) var(--ease-garden); }
.card-cta a:hover .arrow { transform: translateX(5px); }

/* card reveal choreography */
.card > * { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease-garden), transform var(--t-slow) var(--ease-garden); }
.in .card > *:nth-child(1) { transition-delay: 0s; }
.in .card > *:nth-child(2) { transition-delay: 0.1s; }
.in .card > *:nth-child(3) { transition-delay: 0.2s; }
.in .card > *:nth-child(4) { transition-delay: 0.3s; }
.in .card > *:nth-child(5) { transition-delay: 0.38s; }
.in .card > *:nth-child(6) { transition-delay: 0.44s; }
.in .card > *, html.reduced .card > * { opacity: 1; transform: none; }

/* ---------- CTA buttons ---------- */

.cta {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  transition: box-shadow var(--t-quick) var(--ease-garden), background-color var(--t-quick) var(--ease-garden), color var(--t-quick) var(--ease-garden), transform var(--t-quick) var(--ease-garden);
}
.cta.ghost {
  color: var(--lime);
  border: 1px solid rgba(183, 255, 92, 0.4);
}
.cta.ghost:hover {
  background: var(--lime);
  color: var(--bg-deep);
  box-shadow: 0 0 44px rgba(183, 255, 92, 0.35);
}
.cta.lantern {
  background: var(--lime);
  color: var(--bg-deep);
  font-size: 1.05rem;
  padding: 1.15rem 2.9rem;
  box-shadow: 0 0 60px rgba(183, 255, 92, 0.4), 0 0 140px rgba(183, 255, 92, 0.18);
}
.cta.lantern:hover { transform: translateY(-2px); box-shadow: 0 0 80px rgba(183, 255, 92, 0.55), 0 0 180px rgba(183, 255, 92, 0.25); }

/* ---------- closing ---------- */

.closing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 14vh 6vw 6vh;
  gap: 3rem;
}
.closing-line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(4, 13, 8, 0.9);
}
.site-foot {
  margin-top: 8vh;
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.foot-guide { color: var(--ink-dim); text-decoration: underline; text-decoration-color: var(--lime-dim); text-underline-offset: 3px; }
.foot-guide:hover, .foot-guide:focus-visible { color: var(--lime); }
.foot-spine {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--lime);
  text-shadow: 0 0 18px rgba(183, 255, 92, 0.25);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding: 11vh 7vw 8vh; row-gap: 1rem; }
  .hero .fig { grid-column: 1; grid-row: 1; max-width: 175px; aspect-ratio: 1; justify-self: end; margin-right: 4vw; }
  .hero-copy { grid-column: 1; grid-row: 2; position: relative; z-index: 1; }
  /* soft scrim so kicker + h1 hold over glowing foliage on small screens */
  .hero-copy::before {
    content: "";
    position: absolute;
    inset: -2rem -1.4rem;
    z-index: -1;
    background: radial-gradient(ellipse 90% 70% at 42% 38%, rgba(4, 13, 8, 0.85), rgba(4, 13, 8, 0.45) 60%, transparent 82%);
    pointer-events: none;
  }
  .bloom-section { grid-template-columns: 1fr; min-height: auto; padding: 10vh 6vw; }
  .bloom-section .fig, .bloom-section.alt .fig { grid-column: 1; grid-row: 1; max-width: 300px; aspect-ratio: 4/3; }
  .bloom-section .card, .bloom-section.alt .card { grid-column: 1; grid-row: 2; justify-self: stretch; margin-top: -3rem; }
  .card { padding: 2rem 1.6rem 1.9rem; }
  .site-head { padding: 1rem 1.3rem; }
  .scroll-hint { margin-top: 3.2rem; }
}

/* ---------- reduced motion / no-js ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero [data-r], html.fonts-in .hero [data-r] { opacity: 1; transform: none; animation: none; }
  .card > * { opacity: 1; transform: none; transition: none; }
  .hint-stem { animation: none; transform: none; }
  .cta, .card-cta .arrow, .head-cta { transition: none; }
}

noscript ~ main .hero [data-r], html.no-js .hero [data-r] { opacity: 1; transform: none; }
