:root {
  --espresso:   #251b13;
  --oak:        #815b41;
  --tan:        #e0d3c4;
  --champagne:  #ebe7e2;
  --turquoise:  #35d8c6;
  --turquoise2: #22c4b2;
  --white:      #ffffff;
  --ff-head:    'Bricolage Grotesque', sans-serif;
  --ff-body:    'Montserrat', sans-serif;
  --ff-script:  'Caveat', cursive;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--champagne);
  color: var(--espresso);
  overflow-x: hidden;
}

/* GRAIN OVERLAY */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 1000;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--champagne); }
::-webkit-scrollbar-thumb { background: var(--turquoise); border-radius: 3px; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 5rem;
  background: rgba(255,255,255,.98);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
nav.scrolled {
  background: rgba(255,255,255,1);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(37,27,19,.12);
  padding: 1rem 5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .8rem; text-decoration: none;
}
.nav-logo-text .pre { font-family: var(--ff-body); font-weight: 300; font-size: .7rem; color: var(--tan); letter-spacing: .08em; text-transform: uppercase; }
.nav-logo-text .main { font-family: var(--ff-head); font-weight: 800; font-size: 1.25rem; color: var(--white); line-height: 1; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: #251b13;
  text-decoration: none; position: relative; padding-bottom: 3px;
  transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--turquoise);
  transition: width .3s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: #815b41; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--turquoise) !important; color: var(--espresso) !important;
  padding: .55rem 1.5rem !important; border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--turquoise2) !important; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(129, 91, 65, .18);
  border-radius: 999px;
  background: rgba(129,91,65,.06);
  backdrop-filter: blur(10px);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #251b13;
  content: '';
  transition: .2s ease;
}

.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }
.menu-toggle[aria-expanded='true'] span { background: transparent; }
.menu-toggle[aria-expanded='true'] span::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span::after { transform: rotate(-45deg) translate(1px, -1px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 5.4rem;
  right: 1.5rem;
  z-index: 490;
}

.mobile-nav-inner {
  display: grid;
  gap: 1rem;
  min-width: 240px;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(129, 91, 65, .14);
  box-shadow: 0 20px 50px rgba(37, 27, 19, .18);
}

.mobile-nav a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #251b13;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}

.mobile-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--turquoise);
  transition: width .3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.is-active { color: #815b41; }
.mobile-nav a:hover::after,
.mobile-nav a.is-active::after { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  background: var(--espresso);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(53,216,198,.05) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(129,91,65,.15) 0%, transparent 70%);
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 22s linear infinite;
}
@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 4rem 6rem 8rem;
  position: relative; z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-script); font-size: 1.4rem; color: var(--turquoise);
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .8s .3s forwards;
}
.hero-eyebrow span { display: block; width: 40px; height: 1px; background: var(--turquoise); }
.hero-h1 {
  font-family: var(--ff-head); font-weight: 800;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1.0; color: var(--white);
  margin-bottom: 1rem;
  opacity: 0; animation: fadeUp .9s .5s forwards;
}
.hero-h1 em { font-style: normal; color: var(--turquoise); display: block; }
.hero-sub {
  font-size: 1rem; font-weight: 300; line-height: 1.75;
  color: var(--tan); max-width: 420px; margin-bottom: 2.8rem;
  opacity: 0; animation: fadeUp .9s .7s forwards;
}
.hero-pills {
  display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 3rem;
  opacity: 0; animation: fadeUp .9s .85s forwards;
}
.pill {
  border: 1px solid rgba(53,216,198,.35); color: var(--turquoise);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: .4rem 1rem; border-radius: 20px;
}
.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  opacity: 0; animation: fadeUp .9s 1s forwards;
}
.btn-primary {
  background: var(--turquoise); color: var(--espresso);
  font-family: var(--ff-body); font-weight: 700; font-size: .88rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 1rem 2.5rem; border: none; border-radius: 2px;
  text-decoration: none; display: inline-block;
  transition: background .25s, transform .2s, box-shadow .25s;
}
.btn-primary:hover {
  background: var(--turquoise2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(53,216,198,.35);
}
.btn-ghost {
  color: var(--tan); font-size: .88rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
  transition: color .25s;
}
.btn-ghost:hover { color: var(--white); }

/* Hero Right — Orbit Illustration */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  opacity: 0; animation: fadeIn 1.2s 1.1s forwards;
}
.hero-icon-wrap { position: relative; width: 380px; height: 380px; }
.hero-photo-card {
  position: absolute;
  inset: 42px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 90px rgba(37,27,19,.38);
}
.hero-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(37,27,19,.02), rgba(37,27,19,.5)),
    linear-gradient(135deg, rgba(53,216,198,.22), transparent 42%);
}
.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-copy {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(37,27,19,.72);
  backdrop-filter: blur(12px);
  color: var(--white);
}
.hero-photo-copy strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1rem;
  margin-bottom: .35rem;
}
.orbit {
  position: absolute; inset: 0;
  border: 1px dashed rgba(53,216,198,.18); border-radius: 50%;
  animation: spin 20s linear infinite;
}
.orbit-2 {
  inset: 30px;
  border-color: rgba(129,91,65,.25);
  animation: spin 28s linear infinite reverse;
}
.orbit-dot {
  position: absolute; width: 8px; height: 8px;
  background: var(--turquoise); border-radius: 50%;
  top: 0; left: 50%; transform: translateX(-50%) translateY(-4px);
}
.main-svg-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.main-svg-wrap svg {
  width: 260px; height: 260px;
  filter: drop-shadow(0 0 40px rgba(53,216,198,.22));
  animation: breathe 3.5s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { filter: drop-shadow(0 0 30px rgba(53,216,198,.18)); }
  50%      { filter: drop-shadow(0 0 60px rgba(53,216,198,.42)); }
}
.ftag {
  position: absolute;
  background: rgba(255,255,255,.06); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
  padding: .7rem 1.1rem; color: var(--white);
  font-size: .75rem; font-weight: 500; white-space: nowrap;
}
.ftag .val {
  font-family: var(--ff-head); font-weight: 800; font-size: 1.2rem;
  color: var(--turquoise); display: block; line-height: 1.2;
}
.ft1 { top: 10%; right: -4%; animation: fl1 4s ease-in-out infinite; }
.ft2 { bottom: 22%; left: -6%; animation: fl2 5s ease-in-out infinite; }
.ft3 { bottom: 6%; right: 4%; animation: fl1 4.5s 1s ease-in-out infinite; }
.ft4 { top: 28%; left: 8%; animation: fl2 4.2s 0.7s ease-in-out infinite; }
@keyframes fl1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fl2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll Hint */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem; z-index: 10;
  opacity: 0; animation: fadeIn 1s 2.2s forwards;
  color: rgba(255,255,255,.3); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
}
.scroll-bar {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(53,216,198,.7), transparent);
  animation: barPulse 2s 2s ease-in-out infinite;
}
@keyframes barPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Shared Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--turquoise); color: var(--espresso);
  overflow: hidden; padding: .75rem 0; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 3rem;
  animation: tickerAnim 30s linear infinite;
}
.t-item {
  font-family: var(--ff-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .7rem;
}
.t-dot { width: 5px; height: 5px; background: var(--espresso); border-radius: 50%; opacity: .5; }
@keyframes tickerAnim { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SHARED SECTION UTILITIES
   ============================================================ */
section { position: relative; }
.s-label { font-family: var(--ff-script); font-size: 1.2rem; color: var(--turquoise); margin-bottom: .4rem; }
.s-title {
  font-family: var(--ff-head); font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.08;
  color: var(--espresso);
}
.s-title.lt { color: var(--white); }
#how > .reveal { text-align: center; }
.s-body { font-size: .95rem; line-height: 1.8; color: var(--oak); max-width: 560px; margin-top: 1rem; font-weight: 300; }
.s-body.lt { color: var(--tan); }
.reveal {
  opacity: 0; transform: translateY(38px);
  transition: opacity .85s ease, transform .85s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--champagne); padding: 9rem 8rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: center; }
.about-vis { position: relative; height: 460px; }
.ab-main {
  position: absolute; width: 80%; height: 340px;
  background: var(--espresso); top: 0; right: 0;
  border-radius: 3px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px rgba(37,27,19,.22);
}
.ab-main svg { width: 150px; height: 150px; opacity: .65; }
.ab-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-accent {
  position: absolute; width: 52%; height: 200px;
  background: var(--turquoise); bottom: 0; left: 0; border-radius: 3px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .3rem;
  box-shadow: 0 20px 50px rgba(53,216,198,.28);
}
.ab-accent .bignum { font-family: var(--ff-head); font-weight: 800; font-size: 3.8rem; color: var(--espresso); line-height: 1; }
.ab-accent .numlbl { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--espresso); opacity: .65; }
.about-stats { display: flex; gap: 2.5rem; margin-top: 2.8rem; }
.stat { border-top: 2px solid var(--turquoise); padding-top: .8rem; }
.stat .num { font-family: var(--ff-head); font-weight: 800; font-size: 2.2rem; color: var(--espresso); }
.stat .lbl { font-size: .76rem; font-weight: 500; color: var(--oak); text-transform: uppercase; letter-spacing: .07em; margin-top: .2rem; }
.about-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
}
.about-list li + li {
  margin-top: .75rem;
}
.about-actions {
  margin-top: 2rem;
}

/* ============================================================
   PILLARS
   ============================================================ */
#pillars { background: var(--espresso); padding: 9rem 8rem; }
.pillars-hd {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 5rem;
}
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pcard {
  background: rgba(255,255,255,.04); padding: 3rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden;
  transition: background .3s;
}
.pcard:hover { background: rgba(53,216,198,.07); }
.pcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--turquoise); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.pcard:hover::before { transform: scaleX(1); }
.pnum {
  font-family: var(--ff-head); font-weight: 800; font-size: 4rem;
  color: rgba(255,255,255,.05); line-height: 1; margin-bottom: 1.5rem;
}
.picon {
  width: 48px; height: 48px; background: rgba(53,216,198,.1);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.picon svg { width: 22px; height: 22px; stroke: var(--turquoise); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ptitle { font-family: var(--ff-head); font-weight: 700; font-size: 1.3rem; color: var(--white); margin-bottom: .8rem; }
.pdesc { font-size: .87rem; line-height: 1.78; color: rgba(255,255,255,.42); font-weight: 300; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how { background: var(--tan); padding: 7rem 8rem; }
.how-grid { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(420px, 1fr); gap: 5rem; align-items: start; margin-top: 3.5rem; }
.steps { display: flex; flex-direction: column; }
.step {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 1.35rem 0; border-bottom: 1px solid rgba(37,27,19,.1);
}
.step:last-child { border-bottom: none; }
.stepnum {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--oak);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 800; font-size: .82rem;
  color: var(--oak); transition: all .3s;
}
.step:hover .stepnum { background: var(--turquoise); border-color: var(--turquoise); color: var(--espresso); }
.steptitle { font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; color: var(--espresso); margin-bottom: .35rem; }
.stepdesc { font-size: .86rem; line-height: 1.58; color: var(--oak); font-weight: 300; max-width: 560px; }
.how-card {
  background:
    linear-gradient(145deg, rgba(53,216,198,.05), transparent 34%),
    var(--espresso);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 3rem;
  position: relative; overflow: hidden;
  box-shadow: 0 28px 80px rgba(37,27,19,.2);
  align-self: center;
  max-width: 760px;
}
.how-card::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px; background: var(--turquoise);
  border-radius: 50%; opacity: .06;
}
.qmark { font-family: var(--ff-head); font-size: 4.2rem; font-weight: 800; color: var(--turquoise); opacity: .28; line-height: .8; margin-bottom: 1rem; }
.qtext { font-family: var(--ff-head); font-size: clamp(1.25rem, 1.7vw, 1.55rem); font-weight: 600; color: var(--white); line-height: 1.42; margin-bottom: 2rem; max-width: 640px; }
.qtext em { font-style: normal; color: var(--turquoise); }
.qauthor { display: flex; align-items: center; gap: 1rem; }
.qavatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--turquoise);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 800; color: var(--espresso); font-size: 1rem;
}
.qaname { color: var(--white); font-size: .9rem; font-weight: 600; }
.qarole { color: var(--oak); font-size: .74rem; font-weight: 300; }

/* ============================================================
   TRUST
   ============================================================ */
#trust { background: var(--champagne); padding: 5rem 8rem; text-align: center; }
.trust-lbl { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--oak); margin-bottom: 2.5rem; }
.trust-row { display: flex; gap: 4rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.trustco {
  font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem;
  color: rgba(37,27,19,.28); transition: color .3s;
}
.trustco:hover { color: var(--oak); }

@media (max-width: 768px) {
  #trust { padding: 4rem 1.5rem; }
  .trust-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
  }
  .trust-row::-webkit-scrollbar { display: none; }
  .trustco {
    min-width: min(84vw, 320px);
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
}

/* ============================================================
   COMMUNITY CTA
   ============================================================ */
#community {
  background: var(--espresso); padding: 10rem 8rem;
  text-align: center; position: relative; overflow: hidden;
}
#community::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(53,216,198,.07) 0%, transparent 70%);
  pointer-events: none;
}
.comm-icon { margin-bottom: 2rem; }
.comm-icon svg { width: 90px; height: 90px; }
.comm-script { font-family: var(--ff-script); font-size: 1.7rem; color: var(--turquoise); margin-bottom: .8rem; }
.comm-h2 {
  font-family: var(--ff-head); font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 5rem); color: var(--white); line-height: 1.05; margin-bottom: 1.5rem;
}
.comm-h2 span { color: var(--turquoise); }
.comm-desc { font-size: 1rem; line-height: 1.8; color: var(--tan); max-width: 540px; margin: 0 auto 3rem; font-weight: 300; }
.cta-row {
  display: flex; gap: 0; max-width: 470px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,.12); border-radius: 3px; overflow: hidden;
}
.cta-in {
  flex: 1; background: rgba(255,255,255,.05);
  border: none; outline: none; padding: 1rem 1.4rem;
  color: var(--white); font-family: var(--ff-body); font-size: .9rem;
}
.cta-in::placeholder { color: rgba(255,255,255,.28); }
.cta-go {
  background: var(--turquoise); color: var(--espresso);
  border: none; padding: 1rem 1.8rem;
  font-family: var(--ff-body); font-weight: 700; font-size: .83rem;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap; transition: background .25s;
}
.cta-go:hover { background: var(--turquoise2); }

.join-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.join-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.join-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 27, 19, 0.72);
  backdrop-filter: blur(10px);
}

.join-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  border: 1px solid rgba(129, 91, 65, 0.2);
  border-radius: 18px;
  background: #fffaf4;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  padding: clamp(1.3rem, 4vw, 2rem);
  color: var(--espresso);
}

.join-modal-dialog:focus { outline: none; }

.join-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(129, 91, 65, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--espresso);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.join-modal-close:hover,
.join-modal-close:focus-visible {
  background: var(--turquoise);
  outline: none;
}

.join-modal-kicker {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(53, 216, 198, 0.12);
  border: 1px solid rgba(53, 216, 198, 0.24);
  color: var(--oak);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-modal-dialog h2 {
  padding-right: 2.4rem;
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1;
  color: var(--espresso);
}

.join-modal-dialog p {
  margin-top: 0.65rem;
  color: #6d5848;
  line-height: 1.65;
}

.join-modal-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.join-modal-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--espresso);
  font-size: 0.82rem;
  font-weight: 700;
}

.join-modal-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(129, 91, 65, 0.2);
  border-radius: 10px;
  background: #ffffff;
  color: var(--espresso);
  padding: 0.85rem 0.95rem;
}

.join-modal-form input:focus {
  border-color: var(--turquoise);
  outline: 2px solid rgba(53, 216, 198, 0.2);
}

.join-modal-form button {
  min-height: 50px;
  border: 1px solid var(--turquoise);
  border-radius: 2px;
  background: var(--turquoise);
  color: var(--espresso);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.join-modal-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.join-modal-status {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.86rem;
}

.join-modal-status.is-error { color: #9f2d18; }
.join-modal-status.is-success { color: #16725f; }
.join-modal-status.is-pending { color: #6d5848; }

@media (max-width: 720px) {
  #community {
    padding: 8rem 1.5rem;
  }
  .comm-h2 {
    font-size: clamp(2.2rem, 6vw, 3rem);
  }
  .comm-desc {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .cta-row {
    flex-direction: column;
    gap: .85rem;
    max-width: 100%;
  }
  .cta-in,
  .cta-go {
    width: 100%;
    min-width: 0;
  }
  .cta-in {
    padding: 1rem 1rem;
  }
  .cta-go {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: #160f09; padding: 5rem 8rem 3rem; }
.foot-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.foot-tagline { font-family: var(--ff-script); font-size: 1.1rem; color: var(--turquoise); margin: 1rem 0 .5rem; }
.foot-desc { font-size: .82rem; line-height: 1.75; color: rgba(255,255,255,.32); font-weight: 300; max-width: 250px; }
.foot-desc a { color: inherit; text-decoration: none; }
.foot-desc a:hover { color: var(--turquoise); }
.foot-col h4 {
  font-family: var(--ff-head); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45);
  margin-bottom: 1.5rem;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: .72rem; }
.foot-col a { font-size: .82rem; color: rgba(255,255,255,.32); text-decoration: none; font-weight: 300; transition: color .25s; }
.foot-col a:hover { color: var(--turquoise); }
.foot-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; }
.foot-bot p { font-size: .74rem; color: rgba(255,255,255,.18); font-weight: 300; }
.socials { display: flex; gap: 1.2rem; }
.sbtn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); text-decoration: none;
  font-size: .73rem; font-weight: 700;
  transition: border-color .25s, color .25s;
}
.sbtn:hover { border-color: var(--turquoise); color: var(--turquoise); }



/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-right { display: none; }
  .hero-left {
    min-height: 88vh;
    padding: 8rem 3rem 6rem;
  }
  #about, #pillars, #how, #community, #trust, footer { padding-left: 3rem; padding-right: 3rem; }
  .about-grid, .how-grid { grid-template-columns: 1fr; }
  .how-grid { gap: 3rem; margin-top: 3rem; }
  .how-card { max-width: none; align-self: stretch; }
  .about-vis { height: 280px; }
  .pgrid { grid-template-columns: 1fr; }
  .pillars-hd { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  nav { padding: 1.2rem 2.5rem; }
  nav.scrolled { padding: .9rem 2.5rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-toggle,
  .mobile-nav.is-open { display: block; }
  #hero {
    min-height: auto;
  }
  .hero-left {
    min-height: 100svh;
    justify-content: center;
    padding: 6.5rem 1.25rem 4.25rem;
  }
  .hero-eyebrow {
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
  }
  .hero-eyebrow span {
    width: 28px;
  }
  .hero-h1 {
    font-size: clamp(2.45rem, 14vw, 3.45rem);
    line-height: 0.98;
    margin-bottom: 1rem;
  }
  .hero-sub {
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 2rem;
  }
  .hero-pills {
    gap: 0.55rem;
    margin-bottom: 2.25rem;
  }
  .pill {
    font-size: 0.64rem;
    padding: 0.38rem 0.72rem;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    text-align: center;
  }
  .hero-actions .btn-primary {
    padding: 0.95rem 1rem;
  }
  .hero-actions .btn-ghost {
    border: 1px solid rgba(224, 211, 196, 0.22);
    border-radius: 2px;
    padding: 0.95rem 1rem;
  }
  .scroll-hint {
    display: none;
  }
  #about, #pillars, #how, #community, #trust { padding: 6rem 1.5rem; }
  .about-vis {
    display: none;
  }
  .how-grid { gap: 2.4rem; }
  .step { gap: 1rem; padding: 1.15rem 0; }
  .stepnum { width: 40px; height: 40px; }
  .how-card { padding: 2rem; border-radius: 10px; }
  .qmark { font-size: 3.4rem; }
  .qtext { font-size: 1.18rem; }
  footer { padding: 4rem 1.5rem 2rem; }
  .foot-top { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 1.5rem; }
  .trust-row { gap: 2rem; }
  nav { padding: 1.1rem 1.5rem; }
  nav.scrolled { padding: .9rem 1.5rem; }
}
