/* ============================================================
   ZP VENTURES — styles.css
   Layout, palette, and components. Motion lives in animations.css.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* palette — navy / charcoal / deep slate + gold */
  --navy:        #0a0f1c;
  --navy-2:      #0c1322;
  --charcoal:    #10151f;
  --slate:       #161d2b;
  --slate-2:     #1c2536;
  --line:        rgba(200, 214, 236, 0.10);
  --line-strong: rgba(200, 214, 236, 0.18);

  --gold:        #c9a24b;
  --gold-soft:   #d8bd7a;
  --gold-dim:    rgba(201, 162, 75, 0.38);
  --gold-faint:  rgba(201, 162, 75, 0.14);

  --white:       #eef2f8;
  --muted:       #93a0b5;
  --muted-2:     #6c7a91;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1200px, 92vw);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--navy); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* ============================================================
   BLUEPRINT / CIRCUIT BACKDROP  (fixed, behind everything)
   ============================================================ */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

/* fine engineering grid via layered gradients */
.backdrop-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 55%, transparent 100%);
  opacity: 0.7;
}

/* deep vignette so content stays legible */
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(30, 44, 74, 0.55), transparent 60%),
    linear-gradient(180deg, transparent, var(--navy) 92%);
}

.backdrop-circuits { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop-circuits .trace {
  fill: none;
  stroke: var(--gold-faint);
  stroke-width: 1.2;
}
.backdrop-circuits .node { fill: var(--gold-dim); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
}
.site-header.scrolled {
  background: rgba(10, 15, 28, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem 0;
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; }

/* wordmark = ZP badge + "Ventures" */
.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; }
/* hexagon emblem mark (matches the hero monogram) */
.wordmark-logo { width: 38px; height: 38px; overflow: visible; flex: none; }
.wordmark-logo polygon { fill: none; stroke: var(--gold); stroke-width: 6; }
.wordmark-logo polygon.inner { stroke: var(--gold-dim); stroke-width: 4; }
.wordmark-logo text {
  fill: var(--white); font-family: var(--serif); font-weight: 500;
  font-size: 66px; letter-spacing: 2px;
}
.wordmark-text {
  font-family: var(--serif); font-weight: 400; font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.08em; color: var(--muted);
  position: relative; padding: 4px 0; transition: color .3s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--white); }

.nav-cta {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.5rem 1.15rem !important; color: var(--white);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav-cta:hover { border-color: var(--gold); background: var(--gold-faint); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.9rem; letter-spacing: 0.02em; font-weight: 400;
  padding: 0.9rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy); font-weight: 500;
  box-shadow: 0 10px 30px rgba(201, 162, 75, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201, 162, 75, 0.32); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 6rem;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 42% at 50% 34%, rgba(201, 162, 75, 0.12), transparent 70%),
    radial-gradient(60% 50% at 76% 20%, rgba(38, 66, 120, 0.35), transparent 70%);
}
.hero-inner { position: relative; text-align: center; margin: 0 auto; max-width: 60rem; }

.emblem { width: 108px; margin: 0 auto 2.4rem; }
.emblem svg { width: 100%; height: auto; overflow: visible; }

.hero-eyebrow {
  font-size: 0.76rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.18;
  letter-spacing: -0.015em; margin: 0 auto; max-width: 18ch;
}
/* italic gold run has tall ascenders/descenders — give it breathing room
   so it never collides with the line below */
.hero-title .grad { line-height: 1.05; padding-bottom: 0.04em; }
.hero-title .grad {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.hero-sub {
  margin: 1.8rem auto 0; max-width: 42ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--muted);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2.6rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted-2);
}
.scroll-cue-line { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: clamp(6rem, 11vw, 9rem) 0; position: relative; }
.section-head { max-width: 40rem; margin-bottom: 4rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.kicker::before { content: ""; width: 40px; height: 1px; background: var(--gold-dim); }
h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.16; letter-spacing: -0.01em;
  max-width: 22ch;
}
.lede { margin-top: 1.3rem; color: var(--muted); font-size: 1.05rem; max-width: 52ch; }

/* ============================================================
   2 · ABOUT — timeline
   ============================================================ */
.timeline {
  position: relative; list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
  padding-top: 2.4rem;
}
.tl-rail {
  position: absolute; top: calc(2.4rem + 5px); left: 4%; right: 4%; height: 2px;
  background: var(--line-strong); border-radius: 2px; overflow: hidden;
}
.tl-rail-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 14px rgba(201, 162, 75, 0.5);
}
.tl-node { position: relative; padding-top: 2.4rem; }
.tl-dot {
  position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--muted-2);
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.tl-node.is-active .tl-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px var(--gold-faint); }
.tl-year { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.tl-node h3 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin: 0.5rem 0 0.4rem; }
.tl-node p { color: var(--muted); font-size: 0.9rem; }
.tl-node.is-now h3 { color: var(--gold-soft); }

/* ============================================================
   3 · ECOSYSTEMS — cards
   ============================================================ */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.eco-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--slate), var(--charcoal));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 2.2rem 2rem 2rem;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
/* gold sweep line on top edge, drawn on hover */
.eco-card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.eco-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.eco-card:hover::before { transform: scaleX(1); }
.eco-icon { color: var(--gold); width: 48px; height: 48px; margin-bottom: 1.6rem; }
.eco-icon svg { width: 100%; height: 100%; }
.eco-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin-bottom: 0.5rem; }
.eco-card p { color: var(--muted); font-size: 0.95rem; }
.eco-index {
  position: absolute; top: 1.5rem; right: 1.6rem;
  font-family: var(--serif); font-size: 0.85rem; color: var(--muted-2);
}
.eco-card--muted { background: linear-gradient(180deg, var(--navy-2), var(--charcoal)); border-style: dashed; }

/* ============================================================
   4 · PHILOSOPHY — triad diagram
   ============================================================ */
.philo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.philo-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.2rem; }
.philo-list li {
  color: var(--muted); font-size: 1rem; padding-left: 1.4rem; position: relative; max-width: 46ch;
}
.philo-list li::before {
  content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px;
  border: 1px solid var(--gold); transform: rotate(45deg);
}
.philo-list b { color: var(--white); font-weight: 500; }

.philo-diagram { justify-self: center; width: min(100%, 420px); }
.philo-diagram svg { width: 100%; height: auto; overflow: visible; }
.triad-orbit { fill: none; stroke: var(--line-strong); stroke-dasharray: 3 7; }
.triad-link  { stroke: var(--gold-dim); stroke-width: 1.4; }
.triad-node circle { fill: rgba(28, 37, 54, 0.9); stroke: var(--line-strong); stroke-width: 1.2; }
.triad-node text { fill: var(--muted); font-family: var(--sans); font-size: 10px; text-anchor: middle; letter-spacing: 0.04em; }
.triad-core circle { fill: rgba(201, 162, 75, 0.12); stroke: var(--gold); stroke-width: 1.5; }
.triad-core text { fill: var(--gold-soft); font-family: var(--serif); font-size: 13px; text-anchor: middle; }

/* ============================================================
   5 · FOOTPRINT — dot map
   ============================================================ */
.map-wrap { position: relative; }
#usMap { width: 100%; height: auto; overflow: visible; }
.map-dot { fill: var(--muted-2); opacity: 0; }        /* lit by JS via .lit */
.map-link { stroke: var(--gold-dim); stroke-width: 1; fill: none; }
.city-dot { fill: var(--gold); }
.city-hq  { fill: var(--gold-soft); }
.city-ring { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.city-label { fill: var(--white); font-family: var(--sans); font-size: 13px; font-weight: 500; }
.city-label-sub { fill: var(--muted); font-family: var(--sans); font-size: 11px; }

.map-legend {
  list-style: none; display: flex; gap: 2rem; flex-wrap: wrap;
  margin-top: 1.5rem; font-size: 0.82rem; color: var(--muted);
}
.map-legend li { display: flex; align-items: center; gap: 0.6rem; }
.lg { width: 10px; height: 10px; border-radius: 50%; }
.lg-hq { background: var(--gold-soft); box-shadow: 0 0 0 3px var(--gold-faint); }
.lg-city { background: var(--gold); }

/* ============================================================
   6 · SUBSIDIARIES — tiles
   ============================================================ */
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sub-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem;
  background: linear-gradient(180deg, var(--slate), var(--charcoal));
  border: 1px solid var(--line); border-radius: 16px; padding: 2rem;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.sub-tile:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.sub-mark { width: 56px; height: 56px; fill: none; stroke: var(--gold); stroke-width: 1.4; margin-bottom: 0.6rem; transition: transform .6s var(--ease); }
.sub-tile:hover .sub-mark { transform: rotate(90deg); }
.sub-name { font-family: var(--serif); font-size: 1.2rem; }
.sub-tag { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
/* corner brackets, revealed on hover */
.bracket { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--gold); opacity: 0; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.bracket-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; transform: translate(4px,4px); }
.bracket-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; transform: translate(-4px,-4px); }
.sub-tile:hover .bracket { opacity: 1; transform: translate(0,0); }

/* ============================================================
   7 · CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-email {
  display: inline-block; margin-top: 1.8rem; font-family: var(--serif); font-size: 1.35rem;
  color: var(--gold-soft); border-bottom: 1px solid var(--gold-dim); padding-bottom: 3px;
  transition: border-color .3s var(--ease);
}
.contact-email:hover { border-color: var(--gold); }
.contact-place { margin-top: 1.6rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

.contact-form {
  background: linear-gradient(180deg, var(--slate), var(--charcoal));
  border: 1px solid var(--line); border-radius: 18px; padding: 2rem;
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field textarea {
  width: 100%; background: var(--navy); color: var(--white);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0.85rem 1rem; font-family: var(--sans); font-size: 0.95rem; resize: vertical;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-faint);
}
.form-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--gold-soft); min-height: 1.2em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding: 2.6rem 0 3rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal { max-width: 60ch; font-size: 0.76rem; color: var(--muted-2); line-height: 1.8; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .eco-grid, .sub-grid { grid-template-columns: repeat(2, 1fr); }
  .philo-grid, .contact-grid { grid-template-columns: 1fr; }
  .philo-diagram { order: -1; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .tl-rail { display: none; }
}
@media (max-width: 620px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.nav-cta) { display: none; }        /* keep only Contact on small screens */
  .eco-grid, .sub-grid, .timeline { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}
