:root {
  --ink: #1c2218;
  --ink-soft: #3a4534;
  --moss: #3f5f38;
  --leaf: #5f8348;
  --sprout: #7ea45a;
  --gold: #c2a24e;
  --gold-soft: #dfc98a;
  --parchment: #e8efdf;
  --parchment-deep: #d5e0c8;
  --cream: #f4f7ef;
  --line: rgba(63, 95, 56, 0.18);
  --shadow: 0 24px 60px rgba(28, 34, 24, 0.12);
  --radius: 28px;
  --font-display: "Lilita One", system-ui, sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --nav-h: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(126, 164, 90, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 5%, rgba(194, 162, 78, 0.18), transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(63, 95, 56, 0.14), transparent 55%),
    linear-gradient(165deg, var(--cream) 0%, var(--parchment) 42%, var(--parchment-deep) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.field-glow {
  pointer-events: none;
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(126, 164, 90, 0.16), transparent 28%),
    radial-gradient(circle at 80% 60%, rgba(194, 162, 78, 0.12), transparent 32%);
  animation: field-drift 18s ease-in-out infinite alternate;
}

@keyframes field-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

#seed-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.vine-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  z-index: 60;
  background: rgba(63, 95, 56, 0.08);
}

.vine-progress__fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--sprout), var(--moss), var(--gold));
  box-shadow: 0 0 16px rgba(126, 164, 90, 0.55);
  transition: height 0.1s linear;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 239, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(232, 239, 223, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(28, 34, 24, 0.06);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav__logo {
  width: 48px;
  height: auto;
  border-radius: 50%;
  border: 2px solid var(--moss);
  box-shadow: 0 6px 16px rgba(63, 95, 56, 0.2);
  animation: logo-bob 4s ease-in-out infinite;
}

@keyframes logo-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.nav__word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav__word strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--moss);
}

.nav__word small {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav__links {
  display: none;
  gap: 1.4rem;
}

.nav__links a {
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--leaf);
  transition: width 0.25s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--moss);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.icon-link img {
  width: 16px;
  height: 16px;
}

.icon-link:hover {
  transform: translateY(-2px) scale(1.05);
  background: #fff;
  border-color: var(--moss);
}

.nav__toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  display: grid;
  place-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.5);
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 39;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(232, 239, 223, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 0.85rem 0.5rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .mobile-menu { display: none !important; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn__icon {
  width: 18px;
  height: 18px;
}

.btn--small {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
  background: var(--moss);
  color: #f7fbef;
}

.btn--small .btn__icon {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
}

.btn--primary {
  background: linear-gradient(135deg, var(--moss), var(--leaf));
  color: #f7fbef;
  box-shadow: 0 14px 28px rgba(63, 95, 56, 0.28);
}

.btn--primary .btn__icon,
.btn--ghost .btn__icon {
  filter: none;
}

.btn--primary .btn__icon {
  filter: brightness(0) invert(1);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid var(--moss);
  color: var(--moss);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary:hover {
  box-shadow: 0 18px 34px rgba(63, 95, 56, 0.36);
}

.btn--ghost:hover {
  background: #fff;
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 4rem;
  overflow: hidden;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-float 10s ease-in-out infinite;
}

.orb--a {
  width: 280px;
  height: 280px;
  top: 12%;
  left: 8%;
  background: rgba(126, 164, 90, 0.35);
}

.orb--b {
  width: 340px;
  height: 340px;
  right: 4%;
  bottom: 8%;
  background: rgba(194, 162, 78, 0.28);
  animation-delay: -4s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -22px) scale(1.08); }
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--ink);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.55;
  animation: sparkle 3.2s ease-in-out infinite;
}

.spark--1 { top: 22%; left: 14%; animation-delay: 0s; }
.spark--2 { top: 28%; right: 16%; animation-delay: 0.8s; background: var(--moss); }
.spark--3 { bottom: 24%; left: 22%; animation-delay: 1.4s; background: var(--gold); }
.spark--4 { bottom: 30%; right: 20%; animation-delay: 2s; }

@keyframes sparkle {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.25; }
  50% { transform: scale(1.2) rotate(18deg); opacity: 0.85; }
}

.hero__content {
  position: relative;
  width: min(920px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
}

.hero__logo {
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  border: 4px solid var(--moss);
  box-shadow:
    0 0 0 8px rgba(126, 164, 90, 0.15),
    0 28px 50px rgba(28, 34, 24, 0.18);
  animation: logo-glow 5s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
    box-shadow:
      0 0 0 8px rgba(126, 164, 90, 0.15),
      0 28px 50px rgba(28, 34, 24, 0.18);
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
    box-shadow:
      0 0 0 14px rgba(126, 164, 90, 0.22),
      0 36px 60px rgba(28, 34, 24, 0.22);
  }
}

.hero__title {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--moss);
  text-shadow: 3px 4px 0 rgba(194, 162, 78, 0.28);
  animation: title-sway 6s ease-in-out infinite;
}

@keyframes title-sway {
  0%, 100% { transform: rotate(-0.4deg); }
  50% { transform: rotate(0.5deg); }
}

.hero__symbol {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__tag {
  margin: 1.1rem auto 0;
  max-width: 28ch;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}

.hero__cta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.contract {
  margin: 1.6rem auto 0;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
}

.contract__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--leaf);
}

.contract code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.68rem, 2vw, 0.82rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(52vw, 340px);
}

.contract__copy {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--moss);
  color: #f7fbef;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contract__copy:hover {
  transform: scale(1.04);
  background: var(--leaf);
}

.contract--lg {
  width: min(720px, 100%);
  justify-content: space-between;
  border-radius: 18px;
  padding: 0.9rem 1rem;
}

.contract--lg code {
  max-width: none;
  white-space: normal;
  word-break: break-all;
}

.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.1rem, 4vw, 2.5rem);
}

.section__head {
  width: min(760px, 100%);
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
}

.lede {
  margin: 1rem auto 0;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.about__stage {
  width: min(1080px, 100%);
  margin: 0 auto 2.5rem;
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .about__stage {
    grid-template-columns: 1.35fr 0.9fr;
  }
}

.about__video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 3px solid var(--moss);
  box-shadow: var(--shadow);
  background: #10140e;
}

.about__stage-copy {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(213, 224, 200, 0.85));
  border: 1.5px solid var(--line);
}

.about__stage-copy h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.about__stage-copy p {
  margin: 0;
  color: var(--ink-soft);
}

.gallery {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .gallery {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
  .gallery__item { grid-column: span 2; }
  .gallery__item--wide { grid-column: span 3; }
}

.gallery__item {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(63, 95, 56, 0.22);
  background: #fff;
  box-shadow: 0 16px 30px rgba(28, 34, 24, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  transition-delay: calc(var(--d, 0) * 40ms);
}

.gallery__item img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery__item:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 40px rgba(28, 34, 24, 0.14);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.pillars {
  width: min(1080px, 100%);
  margin: 2.75rem auto 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, background 0.35s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 164, 90, 0.22), transparent 70%);
}

.pillar:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.82);
}

.pillar__glyph {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.pillar h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
}

.howto {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(820px, 100%);
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.3rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid var(--line);
  box-shadow: 0 14px 28px rgba(28, 34, 24, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateX(6px);
  border-color: rgba(63, 95, 56, 0.4);
}

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #f7fbef;
  background: linear-gradient(145deg, var(--moss), var(--leaf));
  box-shadow: 0 8px 18px rgba(63, 95, 56, 0.28);
  animation: step-pulse 3.5s ease-in-out infinite;
}

@keyframes step-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--moss);
}

.text-link img {
  width: 16px;
  height: 16px;
}

.howto__ca {
  width: min(820px, 100%);
  margin: 2rem auto 0;
  text-align: center;
}

.howto__ca > p {
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--leaf);
}

.chart__frame {
  width: min(1100px, 100%);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid var(--moss);
  box-shadow: var(--shadow);
  background: #fff;
  min-height: 560px;
}

.chart__frame iframe {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
}

.chart__links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.join__banner {
  width: min(1100px, 100%);
  margin: 0 auto 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--moss);
  box-shadow:
    0 0 0 10px rgba(126, 164, 90, 0.12),
    var(--shadow);
  animation: banner-breathe 7s ease-in-out infinite;
}

@keyframes banner-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 10px rgba(126, 164, 90, 0.12),
      var(--shadow);
  }
  50% {
    transform: scale(1.01);
    box-shadow:
      0 0 0 16px rgba(126, 164, 90, 0.18),
      0 28px 60px rgba(28, 34, 24, 0.16);
  }
}

.join__banner img {
  width: 100%;
  height: auto;
  display: block;
}

.join__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: rgba(213, 224, 200, 0.45);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.footer__brand img {
  width: 52px;
  height: auto;
  border-radius: 50%;
  border: 2px solid var(--moss);
}

.footer__brand div {
  display: grid;
  text-align: left;
  line-height: 1.15;
}

.footer__brand strong {
  font-family: var(--font-display);
  color: var(--moss);
  font-size: 1.15rem;
}

.footer__brand span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer__tag {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
}

.footer__note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #f4f7ef;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.toast.is-on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
