:root {
  --ink: #0b1612;
  --ink-2: #10201a;
  --cream: #f5f0e8;
  --cream-dim: #d9d2c3;
  --green: #059669;
  --green-2: #34d399;
  --glass: rgba(11, 22, 18, 0.55);
  --glass-border: rgba(245, 240, 232, 0.14);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--font); }
html { scroll-behavior: auto; }
body { overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

#scene-canvas { display: none; }
.stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: #0b1612; overflow: hidden;
}
.stage-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 1;
  filter: saturate(1.05) contrast(1.04);
}
.stage-layer.kenburns {
  opacity: 1;
  animation: ken 28s ease-in-out infinite alternate;
}
@keyframes ken {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.14) translate3d(-2%, 1%, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(11,22,18,.55) 100%),
    linear-gradient(to top, rgba(11,22,18,.7), transparent 35%);
}

.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 40; width: min(1120px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px 10px 16px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
/* WordPress custom-logo support */
.brand .custom-logo-link,
.brand .custom-logo-link img,
.custom-logo-link img { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; border-radius: 9px !important; object-fit: contain; }
.nav-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 13px; opacity: .72; }
.nav-links a.active, .nav-links a:hover { opacity: 1; color: var(--green-2); }
.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0; cursor: pointer;
}
.nav-cta, .btn-primary {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff; border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.35);
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.5);
  background: linear-gradient(135deg, #10b981, #34d399);
}
.btn-ghost {
  border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 13.5px; background: rgba(245,240,232,0.04); color: var(--cream);
  backdrop-filter: blur(10px);
  transition: all .25s ease;
}
.btn-ghost:hover {
  border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.1); color: #fff;
  transform: translateY(-2px);
}
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); width: 42px; height: 42px; }
.nav-mobile { display: none; }
.nav-mobile a { text-decoration: none; padding: 10px 4px; opacity: .85; }

.story { position: relative; z-index: 2; }
.chapter {
  min-height: 100vh; display: flex; align-items: flex-end;
  padding: 0 6vw 12vh;
}
.chapter:first-child { padding-top: 18vh; }
.chapter.center { align-items: center; }
.copy {
  max-width: 560px;
  background: linear-gradient(180deg, rgba(11,22,18,.2), rgba(11,22,18,.82));
  backdrop-filter: blur(14px);
  border-left: 3px solid var(--green-2);
  border-radius: 0 20px 20px 0;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--green-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 12px var(--green); }
h1, h2 { font-family: var(--display); font-weight: 520; letter-spacing: -.03em; margin: 10px 0 14px; line-height: .95; }
h1 { font-size: clamp(44px, 7vw, 88px); text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
h2 { font-size: clamp(36px, 5vw, 64px); text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.lede { font-size: 18px; line-height: 1.5; color: var(--cream-dim); max-width: 46ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.stats { display: flex; gap: 28px; margin-top: 28px; }
.stat-num { display: block; font-family: var(--mono); font-size: 24px; color: var(--green-2); font-weight: 700; }
.stat-label { font-size: 12px; opacity: .65; }

.phone-caption {
  margin-left: auto; max-width: 380px; text-align: right;
  border-left: none; border-right: 3px solid var(--green-2);
  border-radius: 20px 0 0 20px;
}

.cta-final { min-height: 90vh; align-items: center; justify-content: center; text-align: center; }
.cta-final .copy { max-width: 720px; margin: 0 auto; background: none; border: none; backdrop-filter: none; box-shadow: none; }
.play {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 12px;
  background: #111; border: 1px solid rgba(52,211,153,.3); color: #fff;
  padding: 14px 24px; border-radius: 16px; text-decoration: none;
  font-weight: 600; transition: all .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.play:hover {
  border-color: var(--green-2); transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(52,211,153,0.3);
}

.page {
  position: relative; z-index: 2;
  padding: 120px 6vw 80px;
  min-height: 100vh;
}
.page-card {
  max-width: 920px;
  background: rgba(11,22,18,.75);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.grid { display: grid; gap: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.card {
  border: 1px solid var(--glass-border); border-radius: 20px; padding: 22px;
  background: rgba(255,255,255,.03);
  transition: all .25s ease;
}
.card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.05);
  transform: translateY(-4px);
}
.card h3 { font-size: 22px; margin: 8px 0; font-family: var(--display); }
.tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-2); font-weight: 700; }

form { display: grid; gap: 12px; margin-top: 20px; }
input, textarea, select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--glass-border);
  background: rgba(0,0,0,.25); color: var(--cream); font: inherit;
}
.legal p, .legal li { color: var(--cream-dim); line-height: 1.65; }
.legal h3 { margin-top: 28px; font-size: 20px; }

/* ──────────────────────────────────────────────────────────────
   FOOTER — Matches local version exactly
   Full-width, positioned at bottom, relative stacking
   ────────────────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 6vw 50px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(to top, #07110e, transparent);
  font-size: 13px;
  color: rgba(245, 240, 232, 0.65);
  box-sizing: border-box;
  margin: 0;
}
footer a { text-decoration: none; opacity: .75; font-size: 13px; }
footer a:hover { opacity: 1; color: var(--green-2); }

/* WordPress adds wrapper elements — ensure footer breaks out of them */
.site-footer,
body > footer,
#page > footer,
.entry-content + footer,
.site > footer {
  position: relative;
  z-index: 2;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 40px 6vw 50px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(to top, #07110e, transparent);
  font-size: 13px;
  color: rgba(245, 240, 232, 0.65);
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;
}

.preloader {
  position: fixed; inset: 0; z-index: 80; background: var(--ink);
  display: grid; place-items: center; transition: opacity .6s ease, visibility .6s;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader b { font-family: var(--display); font-size: 32px; }
.preloader b em { font-style: italic; color: var(--green-2); }

/* WordPress admin bar adjustment */
body.admin-bar .nav { top: 50px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-mobile.open {
    display: grid; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--ink-2); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 16px; gap: 10px;
  }
  .chapter { padding-bottom: 8vh; }
  h1 { font-size: 44px; }
  .phone-caption { margin-left: 0; text-align: left; }
  body.admin-bar .nav { top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
