/* JEHE TECH COMPANY - styles.css
   Dark/Light theme + Gold African Circuit */

/* DARK THEME (default) */
:root,
[data-theme="dark"] {
  --bg:          #0a0805;
  --bg2:         #0f0d09;
  --bg-card:     #141008;
  --bg-card2:    #1a140a;
  --bg-nav:      rgba(10,8,5,0.93);
  --gold:        #d4a017;
  --gold-lt:     #f0c040;
  --gold-dk:     #8b6914;
  --gold-glow:   rgba(212,160,23,0.18);
  --gold-mist:   rgba(212,160,23,0.08);
  --gold-mid:    rgba(212,160,23,0.35);
  --white:       #f5f0e8;
  --text:        #f5f0e8;
  --text-muted:  #7a6e5a;
  --border:      rgba(212,160,23,0.12);
  --border-lt:   rgba(212,160,23,0.28);
  --shadow:      rgba(0,0,0,0.6);
  --grain-op:    0.03;
  --circuit-op:  0.45;
  --badge-bg:    rgba(212,160,23,0.1);
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg:          #faf6ee;
  --bg2:         #f3ece0;
  --bg-card:     #ffffff;
  --bg-card2:    #f7f2e8;
  --bg-nav:      rgba(250,246,238,0.95);
  --gold:        #b8860b;
  --gold-lt:     #c8940e;
  --gold-dk:     #8b6914;
  --gold-glow:   rgba(184,134,11,0.15);
  --gold-mist:   rgba(184,134,11,0.07);
  --gold-mid:    rgba(184,134,11,0.3);
  --white:       #1a1208;
  --text:        #1a1208;
  --text-muted:  #6b5a3a;
  --border:      rgba(184,134,11,0.18);
  --border-lt:   rgba(184,134,11,0.32);
  --shadow:      rgba(100,80,20,0.15);
  --grain-op:    0.015;
  --circuit-op:  0.25;
  --badge-bg:    rgba(184,134,11,0.1);
}

/* Auto-detect system preference */
@media (prefers-color-scheme: light) {
  :root { /* Only apply if no explicit data-theme is set */
    --bg:          #faf6ee;
    --bg2:         #f3ece0;
    --bg-card:     #ffffff;
    --bg-card2:    #f7f2e8;
    --bg-nav:      rgba(250,246,238,0.95);
    --gold:        #b8860b;
    --gold-lt:     #c8940e;
    --gold-dk:     #8b6914;
    --gold-glow:   rgba(184,134,11,0.15);
    --gold-mist:   rgba(184,134,11,0.07);
    --gold-mid:    rgba(184,134,11,0.3);
    --white:       #1a1208;
    --text:        #1a1208;
    --text-muted:  #6b5a3a;
    --border:      rgba(184,134,11,0.18);
    --border-lt:   rgba(184,134,11,0.32);
    --shadow:      rgba(100,80,20,0.15);
    --grain-op:    0.015;
    --circuit-op:  0.25;
    --badge-bg:    rgba(184,134,11,0.1);
  }
}


/* BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: auto;
  transition: background 0.45s ease, color 0.45s ease;
}
a { text-decoration: none; color: inherit; }

/* GRAIN */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' 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)'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* CURSOR */
.cursor {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-lt); pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%); mix-blend-mode: multiply;
  transition: width .3s, height .3s, background .3s;
}
.cursor-trail {
  position: fixed; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--gold-mid); pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%); transition: width .3s, height .3s;
}
[data-theme="dark"] .cursor { mix-blend-mode: screen; }

/* LAYOUT */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 110px 0; }

/* TYPE */
.section-label {
  font-family: 'Bebas Neue', sans-serif; font-size: .85rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .9rem;
}
.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.05; letter-spacing: .04em;
  color: var(--text); margin-bottom: 1.4rem;
}
.section-heading em { font-style: normal; color: var(--gold-lt); }
.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-sub { color: var(--text-muted); font-size: .95rem; max-width: 500px; margin: 0 auto; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--gold-lt) 0%, var(--gold) 100%);
  color: #0a0805; font-family: 'Bebas Neue', sans-serif; font-size: 1rem;
  letter-spacing: .1em; padding: .82rem 2rem; border-radius: 5px;
  border: none; cursor: pointer;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #fff 0%, transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::after { opacity: .15; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(212,160,23,.35); }
.btn-primary.full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text); font-family: 'Bebas Neue', sans-serif; font-size: 1rem;
  letter-spacing: .1em; padding: .82rem 1.6rem; border-radius: 5px;
  border: 1px solid var(--border-lt);
  transition: border-color .3s, color .3s, background .3s;
}
.btn-ghost:hover { border-color: var(--gold-lt); color: var(--gold-lt); background: var(--gold-mist); }
.btn-ghost span { transition: transform .3s; }
.btn-ghost:hover span { transform: translateX(4px); }

/* NAV */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
#navbar.scrolled { background: var(--bg-nav); backdrop-filter: blur(18px); border-color: var(--border); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 1.1rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.logo { margin-right: auto; display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; object-fit: contain; }
.logo-fallback { display: flex; align-items: baseline; gap: 2px; font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; margin-left: 0.75rem; }
.logo.has-fallback .logo-fallback { display: flex; }
.logo.has-fallback .logo-img { display: none; }
.lf-j { color: var(--gold-lt); } .lf-t { color: var(--text); }
.nav-links { display: flex; list-style: none; gap: 2.2rem; }
.nav-links a { font-family: 'Bebas Neue', sans-serif; font-size: .9rem; letter-spacing: .08em; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--gold-lt); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cta {
  font-family: 'Bebas Neue', sans-serif; font-size: .85rem; letter-spacing: .1em;
  padding: .52rem 1.3rem; background: transparent;
  border: 1px solid var(--gold); color: var(--gold); border-radius: 4px;
  cursor: pointer; transition: background .3s, color .3s;
}
.nav-cta:hover { background: var(--gold); color: #0a0805; }

/* THEME TOGGLE */
.theme-btn {
  display: flex; align-items: center; gap: .45rem;
  background: var(--bg-card); border: 1px solid var(--border-lt);
  border-radius: 30px; padding: .35rem .55rem;
  cursor: pointer; transition: border-color .3s, background .3s;
}
.theme-btn:hover { border-color: var(--gold); }
.th-icon { font-size: .85rem; line-height: 1; }
.sun { color: #f5c842; }
.moon { color: #a0b4d8; }
.th-track {
  width: 30px; height: 16px; background: var(--border);
  border-radius: 8px; position: relative; transition: background .3s;
}
.th-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-lt); transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s;
}
[data-theme="light"] .th-thumb { transform: translateX(14px); }
[data-theme="light"] .th-track { background: rgba(200,148,14,.25); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu {
  display: none; flex-direction: column; padding: 1.4rem 2rem; gap: 1.2rem;
  background: var(--bg-nav); border-top: 1px solid var(--border);
}
.mobile-menu a { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: .06em; color: var(--text); }
.mobile-menu.open { display: flex; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 130px 2rem 80px;
}
#circuitCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--circuit-op); }
.hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; text-align: center; animation: fadeUp 1s cubic-bezier(.16,1,.3,1) both; }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); background: var(--badge-bg); border: 1px solid var(--border-lt);
  padding: .42rem 1.1rem; border-radius: 20px; margin-bottom: 2rem;
  animation: fadeUp 1s .1s cubic-bezier(.16,1,.3,1) both;
}
.bdot { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-title {
  display: flex; flex-direction: column;
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.5rem, 8.5vw, 7rem);
  line-height: .95; letter-spacing: .06em; color: var(--text); margin-bottom: 1.5rem;
  animation: fadeUp 1s .18s cubic-bezier(.16,1,.3,1) both;
}
.gold-stroke { color: transparent; -webkit-text-stroke: 2px var(--gold-lt); }
.hero-sub { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto 2.5rem; animation: fadeUp 1s .26s cubic-bezier(.16,1,.3,1) both; }
.deploy-note {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1rem; margin: 0 auto 2rem;
  border: 1px solid var(--border-lt); border-radius: 999px;
  background: var(--gold-mist); color: var(--gold-lt);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 8px 24px var(--gold-glow);
  animation: fadeUp 1s .3s cubic-bezier(.16,1,.3,1) both;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; animation: fadeUp 1s .34s cubic-bezier(.16,1,.3,1) both; }
.hero-stats { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; animation: fadeUp 1s .42s cubic-bezier(.16,1,.3,1) both; }
.stat { text-align: center; }
.sn-row { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem; color: var(--gold-lt); line-height: 1; }
.stat-sym { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--gold); }
.stat-lbl { display: block; font-size: .72rem; letter-spacing: .05em; color: var(--text-muted); margin-top: .2rem; }
.stat-div { width: 1px; height: 48px; background: var(--border-lt); }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; opacity: .4; z-index: 2; }
.sc-line { width: 1px; height: 42px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scPulse 2s ease-in-out infinite; }
@keyframes scPulse { 0%,100%{opacity:.3;transform:scaleY(.7)} 50%{opacity:1;transform:scaleY(1)} }
.scroll-cue span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }

/* LIVE BAR */
.live-bar { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.live-bar-inner {
  display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  padding: .7rem 2rem; max-width: 1180px; margin: 0 auto;
}
.lb-item { display: flex; align-items: center; gap: .5rem; font-size: .78rem; }
.lb-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pulse-green { background: #4ddc86; animation: dotPulse 2s infinite; }
.pulse-gold  { background: var(--gold-lt); animation: dotPulse 2s .4s infinite; }
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.lb-label { color: var(--text-muted); letter-spacing: .04em; }
.lb-value { font-family: 'Bebas Neue', sans-serif; font-size: .95rem; letter-spacing: .1em; color: var(--gold-lt); min-width: 50px; }

/* MARQUEE */
.marquee-band { overflow: hidden; padding: .85rem 0; border-top: 1px solid var(--border); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: 'Bebas Neue', sans-serif; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.marquee-track em { color: var(--gold); font-size: .65rem; font-style: normal; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* HOME STORY */
.home-story { background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); }
.home-story-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.story-copy, .story-panel, .signal-card, .path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px var(--shadow);
}
.story-copy {
  padding: 2.25rem;
  background:
    radial-gradient(circle at top left, var(--gold-mist), transparent 40%),
    linear-gradient(180deg, var(--bg-card2), var(--bg-card));
}
.story-lead {
  max-width: 560px;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.story-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.story-panel { padding: 2rem; }
.story-panel-head {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.4rem;
}
.story-kicker {
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.story-panel-head strong {
  font-size: 1.05rem;
  color: var(--text);
}
.story-list { display: flex; flex-direction: column; gap: 1rem; }
.story-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.story-item:first-child { border-top: none; padding-top: 0; }
.story-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-mist);
  border: 1px solid var(--border-lt);
  color: var(--gold-lt);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: .08em;
}
.story-item h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .05em;
  margin-bottom: .25rem;
}
.story-item p {
  font-size: .88rem;
  color: var(--text-muted);
}
.home-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.signal-card {
  padding: 1.5rem;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.signal-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-mid);
  box-shadow: 0 20px 50px var(--shadow);
}
.signal-tag {
  display: inline-flex;
  margin-bottom: .9rem;
  padding: .3rem .65rem;
  border: 1px solid var(--border-lt);
  border-radius: 999px;
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.signal-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.signal-card p {
  font-size: .88rem;
  color: var(--text-muted);
}

/* PAGE PATHS */
.page-paths {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.path-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s, border-color .35s, box-shadow .35s, background .35s;
}
.path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--gold-mist), transparent 42%);
  opacity: .9;
  pointer-events: none;
  z-index: -1;
}
.path-card::after {
  content: '';
  position: absolute;
  left: 1.8rem;
  right: 1.8rem;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .35;
  transform: scaleX(.32);
  transform-origin: left;
  transition: transform .35s, opacity .35s;
}
.path-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-mid);
  box-shadow: 0 24px 60px var(--shadow);
}
.path-card:hover::after {
  opacity: .9;
  transform: scaleX(1);
}
.path-card-featured {
  background:
    radial-gradient(circle at top left, var(--gold-glow), transparent 34%),
    linear-gradient(145deg, var(--bg-card2), var(--bg-card));
  border-color: var(--gold-mid);
}
.path-label {
  display: inline-flex;
  position: relative;
  margin-bottom: 1rem;
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.path-card h3 {
  position: relative;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: .04em;
  line-height: 1.05;
  margin-bottom: .75rem;
}
.path-card p {
  position: relative;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.75;
  margin-bottom: auto;
}
.path-meta,
.path-proof {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.15rem;
  padding: .48rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255,255,255,.025);
  font-size: .72rem;
  line-height: 1.35;
}
.path-proof {
  color: var(--gold-lt);
  border-color: var(--gold-mid);
  background: var(--gold-mist);
}
.path-cta {
  position: relative;
  margin-top: 1.35rem;
  color: var(--gold-lt);
  font-family: 'Bebas Neue', sans-serif;
  font-size: .9rem;
  letter-spacing: .08em;
}
.path-cta span { display: inline-block; transition: transform .3s; }
.path-card:hover .path-cta span { transform: translateX(5px); }

/* ABOUT */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
.av-wrap { position: relative; width: 320px; height: 360px; display: flex; align-items: center; justify-content: center; margin: 0 auto; background-image: url('JEHE_Background_Transparent.png'); background-size: cover; background-position: center; }
.av-ring { position: absolute; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 1px solid var(--border-lt); animation: ringFloat 5s ease-in-out infinite; }
.r1 { width: 310px; height: 310px; }
.r2 { width: 200px; height: 200px; animation-delay: .8s; border-color: var(--border); }
@keyframes ringFloat { 0%,100%{opacity:.5;transform:translate(-50%,-50%) scale(1)} 50%{opacity:1;transform:translate(-50%,-50%) scale(1.025)} }
.av-svg-box { position: relative; z-index: 2; }
.africa-svg { width: 210px; height: 230px; }
.av-label { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-family: 'Bebas Neue', sans-serif; font-size: .75rem; letter-spacing: .16em; color: var(--gold); white-space: nowrap; }
.about-lead { font-size: .97rem; color: var(--text-muted); margin-bottom: 1.8rem; line-height: 1.8; }
.pillars { display: flex; flex-direction: column; gap: 1.1rem; }
.pillar { display: flex; gap: 1.1rem; padding: 1.3rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; transition: border-color .35s, background .35s; }
.pillar:hover { border-color: var(--gold-mid); background: var(--gold-mist); }
.pillar-ico { font-size: 1.45rem; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.pillar h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: .06em; color: var(--text); margin-bottom: .35rem; }
.pillar p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }

/* LIVE DASHBOARD */
.dashboard-section { background: var(--bg2); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.dash-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: 1.2rem;
  transition: border-color .35s, box-shadow .35s;
}
.dash-card:hover { border-color: var(--border-lt); box-shadow: 0 12px 40px var(--shadow); }
.dc-header { display: flex; justify-content: space-between; align-items: flex-start; }
.dc-title { display: flex; gap: .8rem; align-items: flex-start; }
.dc-icon { font-size: 1.5rem; }
.dc-title strong { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: .07em; color: var(--text); }
.dc-sub { font-size: .72rem; color: var(--text-muted); letter-spacing: .04em; }
.live-badge {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  padding: .25rem .65rem; border-radius: 20px;
  background: rgba(77,220,134,.1); color: #4ddc86; border: 1px solid rgba(77,220,134,.25);
  animation: dotPulse 2s infinite; flex-shrink: 0;
}
.done-badge { background: var(--badge-bg); color: var(--gold-lt); border-color: var(--border-lt); animation: none; }

/* Meter bars */
.dc-meters { display: flex; flex-direction: column; gap: .85rem; }
.meter-row { display: grid; grid-template-columns: 1fr 1fr 40px; align-items: center; gap: .6rem; font-size: .77rem; color: var(--text-muted); }
.meter-bar { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.meter-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt)); border-radius: 4px; transition: width 1.2s cubic-bezier(.16,1,.3,1); }
.meter-val { font-family: 'Bebas Neue', sans-serif; font-size: .85rem; color: var(--gold-lt); text-align: right; }

/* Gauges */
.dc-gauges { display: flex; justify-content: space-around; align-items: center; }
.gauge-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.gauge-svg { width: 72px; height: 72px; }
.gauge-val { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--gold-lt); letter-spacing: .06em; }
.gauge-lbl { font-size: .7rem; color: var(--text-muted); letter-spacing: .04em; }

/* AI stats grid */
.ai-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.ai-stat-box { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 8px; padding: .9rem; text-align: center; }
.asb-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--gold-lt); display: block; letter-spacing: .06em; }
.asb-lbl { font-size: .68rem; color: var(--text-muted); letter-spacing: .04em; }

/* Pulse line */
.pulse-line { height: 36px; background: var(--bg-card2); border-radius: 6px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.pl-bar { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, transparent, var(--gold-mist)); }

.dc-footer { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: .8rem; }
.dc-stat.green { color: #4ddc86; }

/* PROJECTS */
.projects { background: var(--bg); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.proj-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.9rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .9rem; transition: border-color .35s, transform .35s, box-shadow .35s;
}
.proj-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--gold-lt),transparent); opacity:0; transition:opacity .4s; }
.proj-card:hover { border-color:var(--gold-mid); transform:translateY(-6px); box-shadow:0 20px 50px var(--shadow); }
.proj-card:hover::before { opacity:1; }
.proj-card.featured { background: var(--bg-card2); border-color:var(--border-lt); }
.pc-top { display:flex; justify-content:space-between; align-items:center; }
.pc-num { font-family:'Bebas Neue',sans-serif; font-size:.75rem; letter-spacing:.1em; color:var(--border-lt); }
.pc-status { font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:.28rem .7rem; border-radius:20px; }
.pc-status.done { background:rgba(100,200,140,.1); color:#6dcc9a; border:1px solid rgba(100,200,140,.2); }
.pc-status.ongoing { background:var(--badge-bg); color:var(--gold-lt); border:1px solid var(--border-lt); animation:pcPulse 2s infinite; }
@keyframes pcPulse { 0%,100%{box-shadow:0 0 0 0 rgba(212,160,23,.3)} 50%{box-shadow:0 0 0 6px rgba(212,160,23,0)} }
.pc-icon { font-size:2.2rem; }
.proj-card h3 { font-family:'Bebas Neue',sans-serif; font-size:1.4rem; letter-spacing:.05em; color:var(--text); }
.proj-card p { font-size:.875rem; color:var(--text-muted); line-height:1.75; flex:1; }
.pc-tags { display:flex; flex-wrap:wrap; gap:.4rem; }
.pc-tags span { font-size:.62rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--text-muted); background:var(--bg-card2); border:1px solid var(--border); padding:.25rem .6rem; border-radius:4px; }
.pc-footer { display:flex; align-items:center; margin-top:auto; }
.pc-line { flex:1; height:1px; background:var(--border); margin-right:1rem; }
.pc-cta { font-family:'Bebas Neue',sans-serif; font-size:.8rem; letter-spacing:.06em; color:var(--gold-lt); opacity:0; transform:translateX(-8px); transition:opacity .35s, transform .35s; cursor:pointer; }
.proj-card:hover .pc-cta { opacity:1; transform:none; }
.pc-glow { position:absolute; top:-50%; left:50%; transform:translateX(-50%); width:200%; height:200%; background:radial-gradient(ellipse,var(--gold-glow) 0%,transparent 60%); pointer-events:none; }
.pc-ribbon { position:absolute; top:1.2rem; right:-2.4rem; background:linear-gradient(135deg,var(--gold-lt),var(--gold)); color:#0a0805; font-family:'Bebas Neue',sans-serif; font-size:.62rem; letter-spacing:.12em; text-transform:uppercase; padding:.35rem 3rem; transform:rotate(45deg); }

/* SERVICES */
.services { background: var(--bg2); }
.svc-list { display:flex; flex-direction:column; }
.svc-row { display:grid; grid-template-columns:56px 1fr auto; gap:2.5rem; align-items:center; padding:2.1rem 0; border-bottom:1px solid var(--border); transition:padding .35s; cursor:default; }
.svc-row:first-child { border-top:1px solid var(--border); }
.svc-row:hover { padding-left:.6rem; }
.svc-row:hover .svc-n { color:var(--gold-lt); }
.svc-n { font-family:'Bebas Neue',sans-serif; font-size:.85rem; letter-spacing:.05em; color:var(--border-lt); transition:color .3s; }
.svc-b h3 { font-family:'Bebas Neue',sans-serif; font-size:1.25rem; letter-spacing:.05em; color:var(--text); margin-bottom:.3rem; }
.svc-b p { font-size:.875rem; color:var(--text-muted); }
.svc-chips { display:flex; gap:.45rem; flex-shrink:0; }
.svc-chips span { font-family:'Bebas Neue',sans-serif; font-size:.65rem; letter-spacing:.12em; padding:.3rem .7rem; border:1px solid var(--border-lt); color:var(--gold); border-radius:4px; }

/* CTA */
.cta-strip { position:relative; padding:100px 2rem; text-align:center; overflow:hidden; background:var(--bg); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
#ctaCanvas { position:absolute; inset:0; width:100%; height:100%; opacity:var(--circuit-op); }
.cta-inner { position:relative; z-index:2; }
.cta-emblem { width:78px; height:78px; border-radius:50%; border:1px solid var(--border-lt); display:flex; align-items:center; justify-content:center; margin:0 auto 2rem; position:relative; animation:ringFloat 3s ease-in-out infinite; }
.ce-ring { position:absolute; inset:-8px; border-radius:50%; border:1px solid var(--gold-mid); animation:ringFloat 3s .5s ease-in-out infinite; }
.cta-emblem span { font-family:'Bebas Neue',sans-serif; font-size:1.6rem; letter-spacing:.1em; color:var(--gold-lt); }
.cta-strip h2 { font-family:'Bebas Neue',sans-serif; font-size:clamp(2.2rem,4.5vw,3.8rem); letter-spacing:.05em; color:var(--text); margin-bottom:1rem; }
.cta-strip p { color:var(--text-muted); margin-bottom:2.5rem; }

/* CONTACT */
.contact { background:var(--bg2); }
.contact-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:5rem; align-items:start; }
.contact-info p { color:var(--text-muted); font-size:.95rem; line-height:1.8; margin-bottom:1.8rem; }
.ci-list { display:flex; flex-direction:column; gap:1.1rem; }
.ci-item { display:flex; gap:.9rem; align-items:flex-start; }
.ci-ico { color:var(--gold-lt); font-size:1.05rem; width:24px; flex-shrink:0; margin-top:2px; }
.ci-item strong { font-weight:700; color:var(--text); display:block; margin-bottom:.1rem; font-size:.88rem; }
.ci-item div { font-size:.875rem; color:var(--text-muted); }
.contact-form form { display:flex; flex-direction:column; gap:1.1rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
.fg { display:flex; flex-direction:column; gap:.45rem; }
.fg label { font-size:.7rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--text-muted); }
.fg input, .fg textarea { background:var(--bg-card); border:1px solid var(--border); border-radius:7px; padding:.85rem 1rem; color:var(--text); font-family:'Raleway',sans-serif; font-size:.9rem; transition:border-color .3s, background .3s; outline:none; resize:vertical; }
.fg input::placeholder, .fg textarea::placeholder { color:var(--text-muted); opacity:.5; }
.fg input:focus, .fg textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-mist); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-status { min-height: 1.25rem; font-size: .8rem; color: #4ddc86; }
.form-status.is-error { color: #f08a7a; }

/* FOOTER */
.footer { background:var(--bg); border-top:1px solid var(--border); padding:3rem 2rem; }
.footer-inner { max-width:1180px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:2rem; }
.ft-name { font-family:'Bebas Neue',sans-serif; font-size:1.5rem; letter-spacing:.06em; margin-bottom:.2rem; }
.ft-j { color:var(--gold-lt); } .ft-t { color:var(--text); }
.ft-sub { font-family:'Bebas Neue',sans-serif; font-size:.65rem; letter-spacing:.3em; color:var(--text-muted); margin-bottom:.55rem; }
.ft-brand p { font-size:.78rem; color:var(--text-muted); }
.ft-nav { display:flex; gap:2rem; }
.ft-nav a { font-family:'Bebas Neue',sans-serif; font-size:.88rem; letter-spacing:.08em; color:var(--text-muted); transition:color .2s; }
.ft-nav a:hover { color:var(--gold-lt); }
.ft-copy { font-size:.75rem; color:var(--text-muted); opacity:.55; }

/* REVEAL */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:.12s; }
.delay-2 { transition-delay:.24s; }
.delay-3 { transition-delay:.36s; }

/* RESPONSIVE */
@media (max-width:1024px) {
  .home-story-grid { grid-template-columns:1fr; }
  .home-signals { grid-template-columns:1fr 1fr; }
  .path-grid { grid-template-columns:1fr 1fr; }
  .projects-grid { grid-template-columns:1fr 1fr; }
  .dashboard-grid { grid-template-columns:1fr 1fr; }
  .about-grid { grid-template-columns:1fr; }
  .about-visual { display:none; }
  .contact-grid { grid-template-columns:1fr; gap:3rem; }
}
@media (max-width:768px) {
  .section { padding:80px 0; }
  .nav-links, .nav-cta { display:none; }
  .hamburger { display:flex; }
  .home-signals, .path-grid { grid-template-columns:1fr; }
  .story-item { grid-template-columns:44px 1fr; }
  .story-index { width:44px; height:44px; }
  .story-actions { flex-direction:column; align-items:flex-start; }
  .projects-grid, .dashboard-grid { grid-template-columns:1fr; }
  .svc-row { grid-template-columns:40px 1fr; }
  .svc-chips { display:none; }
  .form-row { grid-template-columns:1fr; }
  .footer-inner { flex-direction:column; text-align:center; }
  .ft-nav { justify-content:center; }
  .stat-div { display:none; }
  .live-bar-inner { gap:1.2rem; }
}
@media (max-width:480px) {
  .container { padding:0 1.25rem; }
  .hero { padding:110px 1.25rem 80px; }
  .hero-actions { flex-direction:column; align-items:center; }
  .story-copy, .story-panel, .signal-card, .path-card { padding:1.25rem; }
}

/* ═══════════════════════════════════════════════
   PROJECT DETAIL PAGE  (project.html)
═══════════════════════════════════════════════ */

/* ── Back bar ── */
.pd-back-bar {
  padding: 1rem 0 0;
  margin-top: 72px;
}
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.03em;
}
.pd-back:hover { color: var(--gold-lt); }

/* ── Hero ── */
.pd-hero {
  padding: 3rem 0 3.5rem;
  position: relative;
}
.pd-hero-inner { max-width: 780px; }
.pd-top-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pd-status {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pd-status.done    { background: rgba(46,204,113,0.12); color: #2ecc71; border: 1px solid rgba(46,204,113,0.25); }
.pd-status.ongoing { background: rgba(240,192,64,0.12); color: var(--gold-lt); border: 1px solid rgba(240,192,64,0.25); }
.pd-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: var(--gold-glow);
  border: 1px solid var(--border-lt);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-lt);
  letter-spacing: 0.06em;
}
.pd-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.pd-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.pd-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 400;
  max-width: 600px;
}
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.pd-tag {
  padding: 0.3rem 0.7rem;
  background: var(--gold-mist);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.74rem;
  color: var(--gold-lt);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.pd-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Sections ── */
.pd-section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.pd-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--gold-lt);
  margin-bottom: 1.5rem;
}
.pd-description-wrap { max-width: 720px; }
.pd-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── Highlights ── */
.pd-highlights-section { background: var(--bg2); }
.pd-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 680px;
}
.pd-highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.6;
}
.pd-highlights-list li::before {
  content: '›';
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
  font-weight: 700;
}

/* ── Gallery ── */
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.pd-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.pd-gallery-item:hover { transform: translateY(-3px); border-color: var(--border-lt); }
.pd-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.pd-gallery-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Videos ── */
.pd-videos-section { background: var(--bg2); }
.pd-videos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.pd-video-item { max-width: 800px; }
.pd-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.pd-video-wrapper iframe,
.pd-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.pd-video-caption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Lightbox ── */
.pd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}
.pd-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.pd-lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}
.pd-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.pd-lightbox-close:hover { opacity: 1; }
.pd-lightbox-caption {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ── pc-cta as link ── */
a.pc-cta {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .pd-title { font-size: 2.2rem; }
  .pd-gallery { grid-template-columns: 1fr; }
}
