/* ================================================================
   Growthhive — Shared Stylesheet
   shared.css
   Used by: index.html, work.html (and all future pages)
   Work. Play. Grow. 🐝
================================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --ch: #D4F53C;
  --navy: #0B0B1F;
  --navy2: #111128;
  --white: #F2F2EA;
  --dim: rgba(242,242,234,0.45);
  --faint: rgba(242,242,234,0.08);
  --ease: cubic-bezier(0.16,1,0.3,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy); overflow-x: hidden; }
body { font-family: 'DM Sans', sans-serif; background: var(--navy); color: var(--white); cursor: none; overflow-x: hidden; }

/* ── Grain overlay ─────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .03;
  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)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Cursor ────────────────────────────────────────────────── */
#cur {
  position: fixed; width: 10px; height: 10px;
  background: var(--ch); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease);
  mix-blend-mode: difference;
}
#cur.big { width: 52px; height: 52px; }
#curR {
  position: fixed; width: 38px; height: 38px;
  border: 1px solid rgba(212,245,60,.3); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
}

/* ── Navigation ────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1002;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 3rem;
}
.nlogo {
  font-family: 'Space Mono', monospace;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white);
  text-decoration: none; display: flex; align-items: center; gap: .65rem;
}
.nlogo em { color: var(--ch); font-style: normal; }
.nlogo-icon {
  width: 26px; height: 26px;
  object-fit: contain; display: block; flex-shrink: 0;
  transition: opacity .3s;
}
.nlogo:hover .nlogo-icon { opacity: .75; }
.nlinks { display: flex; gap: 2.5rem; list-style: none; }
.nlinks a {
  font-family: 'Space Mono', monospace;
  font-size: .63rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; transition: color .3s;
  position: relative;
}
.nlinks a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--ch);
  transition: width .4s var(--ease);
}
.nlinks a:hover { color: var(--white); }
.nlinks a:hover::after { width: 100%; }
.nlinks a.active { color: var(--white); }
.nlinks a.active::after { width: 100%; }
.ncta {
  font-family: 'Space Mono', monospace;
  font-size: .63rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--ch);
  padding: .6rem 1.25rem; text-decoration: none; transition: opacity .3s;
}
.ncta:hover { opacity: .82; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-fill {
  font-family: 'Space Mono', monospace;
  font-size: .63rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--ch);
  padding: 1rem 2.2rem; text-decoration: none; transition: opacity .3s;
  display: inline-block;
}
.btn-fill:hover { opacity: .82; }
.btn-out {
  font-family: 'Space Mono', monospace;
  font-size: .63rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); border: 1px solid var(--faint);
  padding: 1rem 2.2rem; text-decoration: none;
  transition: border-color .3s, color .3s; display: inline-block;
}
.btn-out:hover { border-color: var(--ch); color: var(--ch); }

/* ── Loader — intro veil + hero-bee trail overlay ──────────── */
.ldr {
  position: fixed; inset: 0; background: var(--navy);
  z-index: 1000; overflow: hidden;
  pointer-events: none;
}
/* Subtle radial warmth behind the flight */
.ldr::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(212,245,60,.04) 0%, transparent 70%);
  pointer-events: none;
}
/* Full-screen SVG the hero bee draws its trail into */
.intro-trail-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.intro-trail {
  fill: none;
  stroke: var(--ch);
  stroke-width: 2.5;
  stroke-linecap: round;
  /* Dot-dash morse rhythm: ·· — · ——— ·· — */
  stroke-dasharray: 2 10 2 10 22 10 2 10 40 10 2 10;
  opacity: .9;
}
.intro-trail-glow {
  fill: none;
  stroke: var(--ch);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 2 10 2 10 22 10 2 10 40 10 2 10;
  opacity: .12;
  filter: blur(3px);
}
/* Percentage readout — positioned each frame by JS to follow the bee */
.intro-pct {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: .7rem; letter-spacing: .14em;
  color: var(--ch);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(212,245,60,.4);
}

/* ── Sections ──────────────────────────────────────────────── */
section { position: relative; z-index: 1; }


/* ── Responsive — shared nav breakpoint ───────────────────── */
@media (max-width: 768px) {
  nav { padding: 1.5rem; }
  .nlinks, .ncta { display: none; }
}

/* ── Touch devices — disable custom cursor entirely ─────────── */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  #cur, #curR { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   REBRAND MODAL
   Injected by shared.js on every page, once per session.
   Matches the site's dark aesthetic: navy, chartreuse, Space Mono.
═══════════════════════════════════════════════════════════════ */

.gh-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(11, 11, 31, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(.16, 1, .3, 1);
}
.gh-modal-backdrop.is-visible {
  opacity: 1;
}
.gh-modal-backdrop.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.gh-modal {
  background: #0E0E24;
  border: 1px solid rgba(244, 244, 236, 0.09);
  border-radius: 4px;
  max-width: 520px;
  width: 100%;
  padding: 3rem 3rem 2.6rem;
  position: relative;
  transform: translateY(22px);
  transition: transform 0.55s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.gh-modal-backdrop.is-visible .gh-modal {
  transform: translateY(0);
}

/* chartreuse top rule */
.gh-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #D4F53C;
  border-radius: 4px 4px 0 0;
}

/* close button */
.gh-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(244, 244, 236, 0.12);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7a92;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.gh-modal-close:hover {
  border-color: #D4F53C;
  color: #D4F53C;
  background: rgba(212, 245, 60, 0.06);
}

/* eyebrow */
.gh-modal-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #D4F53C;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.gh-modal-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: #D4F53C;
  display: inline-block;
  flex-shrink: 0;
}

/* headline */
.gh-modal-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #F4F4EC;
  margin-bottom: 1.3rem;
}
.gh-modal-title em {
  color: #D4F53C;
  font-style: italic;
}

/* body copy */
.gh-modal-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.72;
  color: #7a7a92;
  margin-bottom: 2rem;
}
.gh-modal-body b {
  color: #F4F4EC;
  font-weight: 400;
}

/* divider */
.gh-modal-rule {
  height: 1px;
  background: rgba(244, 244, 236, 0.08);
  margin-bottom: 1.4rem;
}

/* footer row */
.gh-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.gh-modal-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a7a92;
}
.gh-modal-dismiss {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0B0B1F;
  background: #D4F53C;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.gh-modal-dismiss:hover {
  opacity: 0.85;
}

/* mobile tighten */
@media (max-width: 480px) {
  .gh-modal {
    padding: 2.4rem 1.8rem 2rem;
  }
  .gh-modal-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .gh-modal-dismiss {
    width: 100%;
    text-align: center;
  }
}