/* ════════════════════════════════════════
   brainlove — shared site styles
   ë ecosystem · same DNA as eeee.mu
   ════════════════════════════════════════ */

:root {
  --bg:    #050505;
  --text:  #f7f7f2;
  --soft:  rgba(247,247,242,.66);
  --muted: rgba(247,247,242,.36);
  --line:  rgba(247,247,242,.08);
  --red:   #ff3b30;
  --font:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'Space Mono', monospace;
  --ease:  cubic-bezier(.19,1,.22,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; scrollbar-color: var(--red) var(--bg); }
body { font-family: var(--font); font-weight: 300; background: var(--bg); color: var(--text); overflow-x: hidden; min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
body.menu-open { overflow: hidden; }
a, button { font: inherit; color: inherit; text-decoration: none; }
button { border: 0; background: transparent; padding: 0; }
img { display: block; max-width: 100%; }

@media (hover: hover) and (pointer: fine) {
  html, body, a, button { cursor: none; }
}

/* ── THE FORCE — cursor spirit ─────────────────── */
#cursor-spirit {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  pointer-events: none; z-index: 9000;
  transform: translate3d(-100px,-100px,0);
  transition: opacity .2s;
}
.cursor-aura {
  position: absolute; inset: 0; border-radius: 50%;
  animation: breathe 3.4s ease-in-out infinite alternate;
}
@keyframes breathe { 0%{transform:scale(.9)} 100%{transform:scale(1.08)} }
.cursor-eyes {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  display: flex; gap: 6px; align-items: center;
}
.eye {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  transition: transform .07s ease-out, opacity .07s ease-out;
}
.eye.blink { transform: scaleY(.08) scaleX(1.3); opacity: .2; }
body.menu-open #cursor-spirit { opacity: 0; }
@media (hover: none),(pointer: coarse) { #cursor-spirit { opacity: 0; } #cursor-spirit.touch-active { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #cursor-spirit { display: none; } }

/* ── SUB-PAGE NAV — avneesh.mu style next to logo ─ */
.sub-nav-wrap {
  position: fixed; top: 20px; left: 28px;
  z-index: 220; display: flex; align-items: center; gap: 0;
}
/* ë logo inside wrap */
.sub-nav-wrap .site-logo {
  position: static; top: auto; left: auto;
  flex-shrink: 0;
}
/* glowing dot toggle */
.sub-nav-toggle {
  width: 34px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  color: transparent; user-select: none;
  background: transparent; border: 0;
  flex-shrink: 0;
}
.sub-nav-toggle::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 5px 2px rgba(255,255,255,.55), 0 0 12px 5px rgba(255,255,255,.18);
  animation: energy-pulse 2.2s ease-in-out infinite;
  transition: background .25s, box-shadow .25s;
}
.sub-nav-toggle[aria-expanded="true"]::before {
  background: var(--red);
  box-shadow: 0 0 7px 3px rgba(255,59,48,.85), 0 0 16px 7px rgba(255,59,48,.3);
  animation: none;
}
@keyframes energy-pulse {
  0%,100% { transform: scale(1);   opacity: 1;  box-shadow: 0 0 5px 2px rgba(255,255,255,.55), 0 0 12px 5px rgba(255,255,255,.18); }
  50%      { transform: scale(.65); opacity: .6; box-shadow: 0 0 8px 4px rgba(255,255,255,.3),  0 0 18px 8px rgba(255,255,255,.1); }
}
/* nav links — always visible */
.sub-nav {
  display: flex; flex-wrap: wrap;
  opacity: 1; pointer-events: auto;
  transform: translateX(0);
}
.sub-nav a {
  background: rgba(5,5,5,.9); border: 1px solid rgba(255,255,255,.18);
  border-left: 0; color: rgba(247,247,242,.75);
  height: 34px; display: inline-flex; align-items: center;
  padding: 0 14px; font-family: var(--mono);
  font-size: .48rem; letter-spacing: .14em; text-transform: lowercase;
  white-space: nowrap; transition: color .18s, background .18s;
  backdrop-filter: blur(8px);
}
.sub-nav a:first-child { border-left: 1px solid rgba(255,255,255,.18); }
.sub-nav a:hover { color: #fff; background: rgba(255,59,48,.12); border-color: rgba(255,59,48,.4); }
.sub-nav a[aria-current] { color: var(--red); border-color: rgba(255,59,48,.4); background: rgba(255,59,48,.07); }
/* standalone site-logo kept visible even with sub-nav */

/* ── ë LOGO ────────────────────────────────────── */
.site-logo {
  position: fixed; top: 20px; left: 28px;
  z-index: 220; display: inline-flex;
  align-items: center; width: 48px; height: 48px;
}
.site-logo img { height: 46px; width: auto; opacity: .82; transition: opacity .2s; }
.site-logo:hover img { opacity: 1; }

/* ── HEADER ─────────────────────────────────────── */
.header-coords {
  position: fixed; top: 31px; left: 50%;
  transform: translateX(-50%); z-index: 220;
  pointer-events: none; font-family: var(--mono);
  font-size: .52rem; letter-spacing: .18em;
  color: rgba(255,255,255,.28); text-transform: lowercase; white-space: nowrap;
}
.header-actions {
  position: fixed; top: 20px; right: 28px;
  z-index: 221; display: flex; align-items: center; gap: 10px;
}
.menu-btn {
  display: flex; align-items: center;
  color: var(--red); font-family: var(--mono);
  font-size: .46rem; letter-spacing: .22em;
  text-transform: uppercase; padding: 8px 18px;
  border: 1.5px solid var(--red); border-radius: 8px;
  transition: color .2s, border-color .2s, background .2s;
}
.menu-btn:hover { background: rgba(255,59,48,.08); }
body.menu-open .menu-btn { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.2); }

/* ── MENU PANEL ──────────────────────────────────── */
.menu-panel {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(4,4,4,.98);
  transform: translateY(-105%); visibility: hidden;
  overflow-y: auto;
  transition: transform .62s var(--ease), visibility 0s linear .62s;
}
.menu-panel::before {
  content: ''; position: fixed;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); opacity: 0;
  transition: opacity .5s var(--ease) .3s; z-index: 2; pointer-events: none;
}
body.menu-open .menu-panel { transform: translateY(0); visibility: visible; transition-delay: 0s; }
body.menu-open .menu-panel::before { opacity: .7; }
.menu-panel-inner {
  display: grid; grid-template-columns: 1fr .88fr .92fr;
  gap: 0; min-height: 80svh; padding: 100px 40px 52px;
}
.menu-col {
  border-top: 1px solid rgba(255,59,48,.22);
  padding-top: 24px; padding-right: 40px;
  display: flex; flex-direction: column;
}
.menu-col:not(:first-child) { border-left: 1px solid rgba(255,59,48,.16); padding-left: 40px; padding-right: 0; }
.menu-kicker {
  display: block; margin-bottom: 28px;
  font-family: var(--mono); font-size: .52rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); opacity: .55;
}
.menu-nav { display: grid; gap: 2px; margin-bottom: 28px; }
.menu-nav a {
  display: block; width: fit-content;
  font-size: clamp(1.9rem,3.8vw,3.8rem); font-weight: 300;
  line-height: .96; letter-spacing: -.02em; text-transform: lowercase;
  color: rgba(245,245,242,.38);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.menu-nav a:hover, .menu-nav a[aria-current] { color: var(--red); transform: translateX(10px); }
.menu-subkicker {
  display: block; margin: 12px 0 10px;
  font-family: var(--mono); font-size: .48rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.2);
}
.menu-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); transition: color .2s;
}
.menu-link:hover { color: var(--text); }
.menu-footer-info {
  margin-top: auto; padding-top: 28px;
  font-family: var(--mono); font-size: .48rem;
  letter-spacing: .14em; color: rgba(255,255,255,.18);
  display: flex; flex-direction: column; gap: 5px;
}
.menu-footer-info a { color: rgba(255,255,255,.28); transition: color .2s; }
.menu-footer-info a:hover { color: var(--muted); }

/* ── ë FOOTER — same as eeee.mu ─────────────────── */
.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 56px 28px 0;
  background: #030305;
}
.footer-brand {
  display: flex; flex-direction: column;
  padding-bottom: 56px; padding-right: 32px;
}
.footer-tagline { font-size: .78rem; font-weight: 300; color: var(--soft); text-transform: lowercase; letter-spacing: .01em; margin-bottom: 4px; }
.footer-coords { font-family: var(--mono); font-size: .52rem; letter-spacing: .14em; color: var(--muted); text-transform: lowercase; }
.footer-status { margin-top: 12px; width: fit-content; border: 1px solid rgba(255,59,48,.45); padding: 5px 8px; font-family: var(--mono); font-size: .48rem; letter-spacing: .14em; color: var(--red); text-transform: lowercase; }
.footer-ident { margin-top: 28px; }
.footer-ident strong { display: block; font-family: var(--mono); font-size: 4rem; line-height: .88; letter-spacing: 0; color: var(--red); text-transform: lowercase; }
.footer-ident em { display: block; margin-top: 10px; font-family: var(--mono); font-size: .56rem; font-style: normal; letter-spacing: .14em; color: rgba(245,245,242,.4); text-transform: lowercase; }
.footer-ident p { margin: 14px 0 0; color: rgba(245,245,242,.35); font-size: .8rem; font-weight: 300; line-height: 1.55; text-transform: lowercase; max-width: 28ch; }
.footer-col {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 56px; padding-left: 24px;
  border-left: 1px solid var(--line);
}
.footer-kicker { font-family: var(--mono); font-size: .48rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 6px; display: block; }
.footer-col a { font-size: .84rem; font-weight: 300; color: var(--muted); text-transform: lowercase; letter-spacing: .01em; transition: color .2s, transform .2s var(--ease); display: block; width: fit-content; }
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-note { max-width: 26ch; color: rgba(245,245,242,.22); font-size: .76rem; font-weight: 300; line-height: 1.5; text-transform: lowercase; }
.footer-bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-top: 1px solid var(--line);
  margin-top: 8px;
  font-family: var(--mono); font-size: .48rem;
  letter-spacing: .14em; color: rgba(255,255,255,.18); text-transform: lowercase;
}
.footer-bar a { color: rgba(255,255,255,.28); transition: color .2s; }
.footer-bar a:hover { color: var(--muted); }

/* ── VIDEO LIGHTBOX ──────────────────────────────── */
.v-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
  animation: lb-in .25s var(--ease);
}
@keyframes lb-in { from{opacity:0} to{opacity:1} }
.v-lightbox-close {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px; z-index: 2; transition: color .2s;
}
.v-lightbox-close:hover { color: var(--red); border-color: var(--red); }
.v-lightbox iframe {
  width: min(900px, 90vw); height: min(506px, 50.625vw);
  border: 0;
}

/* ── BACK BUTTON ────────────────────────────────── */
.back-btn {
  font-family: var(--mono); font-size: .46rem; letter-spacing: .22em;
  text-transform: uppercase; padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.18); color: rgba(247,247,242,.42);
  border-radius: 6px; transition: all .2s;
}
.back-btn:hover { color: var(--red); border-color: var(--red); }

/* ── PANEL BASE ──────────────────────────────────── */
.panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.panel-bg {
  position: absolute; inset: 0; z-index: 0;
}
.panel-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: brightness(.42);
}
.panel-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,5,.05) 35%, rgba(5,5,5,.88) 100%);
}
.panel-yt {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.panel-yt iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; min-width: 100%;
  height: 56.25vw; min-height: 100%;
  transform: translate(-50%,-50%) scale(1.85);
  border: 0;
}
.panel-yt-dim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,5,.15) 30%, rgba(5,5,5,.9) 100%);
}
.panel-content { position: relative; z-index: 2; padding: 28px; }
.panel-eyebrow { font-family: var(--mono); font-size: .52rem; letter-spacing: .22em; color: rgba(255,255,255,.3); margin-bottom: 12px; display: block; }
.panel-name { font-size: clamp(4rem,13vw,11rem); font-weight: 900; line-height: .88; letter-spacing: -.04em; white-space: nowrap; }
.panel-role { font-family: var(--mono); font-size: .56rem; letter-spacing: .2em; color: rgba(247,247,242,.35); margin-top: 14px; }
.panel-label { font-size: clamp(1.6rem,4vw,3.5rem); font-weight: 900; letter-spacing: -.03em; }
.panel-caption { font-family: var(--mono); font-size: .54rem; letter-spacing: .14em; color: var(--muted); margin-top: 6px; margin-bottom: 28px; }

/* ── SECTIONS ────────────────────────────────────── */
.section { padding: 72px 28px; }
.section.dark { background: #030305; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 10px;
}
.section-hd h2 { font-size: clamp(1rem,2vw,1.5rem); font-weight: 300; letter-spacing: .04em; text-transform: lowercase; }
.section-hd a { font-family: var(--mono); font-size: .5rem; letter-spacing: .16em; color: var(--muted); transition: color .2s; }
.section-hd a:hover { color: var(--red); }
.section-label { font-family: var(--mono); font-size: .48rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.22); display: block; margin-bottom: 18px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 860px) {
  .menu-panel-inner { grid-template-columns: 1fr; padding: 90px 24px 48px; }
  .menu-col:not(:first-child) { border-left: none; border-top: 1px solid rgba(255,59,48,.16); padding-left: 0; margin-top: 20px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .header-coords { display: none; }
}
@media (max-width: 540px) {
  .site-footer { grid-template-columns: 1fr; }
  .footer-col { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }
}
