/*
 * ════════════════════════════════════════════════════════════════
 *  ELERTIVANA — Standalone Site Stylesheet
 *  Architectural drawing aesthetic · Full bleed · Minimal text
 *  Does NOT inherit from system.css — this site is its own universe
 * ════════════════════════════════════════════════════════════════
 */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:       #0c0c0c;
  --bg-board: #111111;
  --fg:       #e8e4df;
  --fg-dim:   #8a857e;
  --fg-muted: #5a5650;
  --accent:   #c4a87a;
  --line:     rgba(232, 228, 223, 0.08);
  --line-strong: rgba(232, 228, 223, 0.15);

  --font:     'Space Grotesk', sans-serif;
  --mono:     'JetBrains Mono', monospace;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;
  --sp-16: 128px;

  --t-std: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }


/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: transform var(--t-std);
}
.nav-hidden { transform: translateY(-100%); }

.nav-mark {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--fg);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--sp-4);
}
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color var(--t-std);
}
.nav-links a:hover { color: var(--fg); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--fg);
  transition: var(--t-std);
}

/* Mobile nav panel */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(12, 12, 12, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
}
.nav-mobile a {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color var(--t-std);
}
.nav-mobile a:hover { color: var(--fg); }

body.nav-open .nav-mobile { display: flex; }
body.nav-open .nav-toggle span:first-child { transform: rotate(45deg) translate(2px, 4px); }
body.nav-open .nav-toggle span:last-child { transform: rotate(-45deg) translate(2px, -4px); }


/* ═══════════════════════════════════════════════════════════
   HERO — Full viewport, mystery
   ═══════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* placeholder gradient when no image */
  background-color: #1a1a18;
  background-image:
    linear-gradient(135deg, #1a1a18 0%, #2a2520 30%, #1a1a18 60%, #0c0c0c 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,12,12,0.3) 0%,
    rgba(12,12,12,0.1) 40%,
    rgba(12,12,12,0.6) 80%,
    rgba(12,12,12,0.95) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: var(--sp-16);
  left: var(--sp-6);
  z-index: 2;
}
.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--fg);
}
.hero-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: var(--sp-3);
}


/* ═══════════════════════════════════════════════════════════
   ANNOTATIONS — Architectural drawing text nodes
   ═══════════════════════════════════════════════════════════ */

.ann {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  z-index: 3;
}
.ann::before {
  content: attr(data-label);
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin-right: 10px;
  font-size: 9px;
  color: var(--fg-dim);
  vertical-align: middle;
}

/* Annotation positions */
.ann-tl { top: var(--sp-6); left: var(--sp-6); }
.ann-tr { top: var(--sp-6); right: var(--sp-6); }
.ann-bl { bottom: var(--sp-6); left: var(--sp-6); }
.ann-br { bottom: var(--sp-6); right: var(--sp-6); }
.ann-bc { bottom: var(--sp-6); left: 50%; transform: translateX(-50%); white-space: nowrap; }


/* ═══════════════════════════════════════════════════════════
   FULL BLEED — Landscape image sections
   ═══════════════════════════════════════════════════════════ */

.full-bleed {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}
.full-bleed-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a18;
  background-image:
    linear-gradient(160deg, #1a1a18 0%, #252018 40%, #1a1a18 100%);
}
.full-bleed-tall {
  min-height: 70vh;
}
.full-bleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,12,12,0.4) 0%,
    rgba(12,12,12,0.15) 50%,
    rgba(12,12,12,0.7) 100%
  );
}
.full-bleed-overlay-light {
  background: linear-gradient(
    to bottom,
    rgba(12,12,12,0.2) 0%,
    rgba(12,12,12,0.05) 50%,
    rgba(12,12,12,0.5) 100%
  );
}


/* ═══════════════════════════════════════════════════════════
   BOARD — Architectural drawing canvas
   ═══════════════════════════════════════════════════════════ */

.board {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background: var(--bg);
  overflow: hidden;
}
.board-dark {
  background: var(--bg-board);
}
.board-closing {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: var(--sp-12) var(--sp-6);
  /* subtle grid background — architectural paper */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
}

.board-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a18;
  background-image:
    linear-gradient(145deg, #1a1a18 0%, #1e1c18 50%, #12100e 100%);
  opacity: 0.6;
}
.board-image-half {
  right: 50%;
  opacity: 0.5;
}

/* Crosshair reference mark */
.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}
.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: var(--line-strong);
}
.crosshair::before {
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}
.crosshair::after {
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}


/* ═══════════════════════════════════════════════════════════
   NODES — Positioned text on the board
   ═══════════════════════════════════════════════════════════ */

.node {
  position: absolute;
  z-index: 3;
}

.node h1 {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
}

.node h2 {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--fg);
}

.node-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 2.4;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}

.node-detail {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* Node positions */
.node-tl { top: var(--sp-12); left: var(--sp-6); }
.node-tr { top: var(--sp-12); right: var(--sp-6); }
.node-bl { bottom: var(--sp-12); left: var(--sp-6); }
.node-br { bottom: var(--sp-12); right: var(--sp-6); }
.node-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.node-right {
  top: 50%;
  right: var(--sp-6);
  transform: translateY(-50%);
  max-width: 40%;
}
.node-light h1 { color: var(--fg); text-shadow: 0 2px 40px rgba(0,0,0,0.5); }


/* ═══════════════════════════════════════════════════════════
   DIMENSION LINES — Architectural drawing convention
   ═══════════════════════════════════════════════════════════ */

.dim {
  position: absolute;
  z-index: 3;
}
.dim-bottom {
  bottom: var(--sp-4);
  left: var(--sp-6);
  right: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.dim-line {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.dim-text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

.dim-right {
  position: absolute;
  right: calc(var(--sp-6) - 20px);
  top: var(--sp-12);
  bottom: var(--sp-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  width: 40px;
}
.dim-line-v {
  flex: 1;
  width: 1px;
  background: var(--line-strong);
}
.dim-text-v {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════
   SPEC GRID — Platform specs
   ═══════════════════════════════════════════════════════════ */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.spec-cell {
  background: var(--bg-board);
  padding: var(--sp-6) var(--sp-4);
}
.spec-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: var(--sp-3);
}
.spec-cell h2 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  margin-bottom: var(--sp-2);
  color: var(--fg);
}
.spec-cell p {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
  font-weight: 300;
}


/* ═══════════════════════════════════════════════════════════
   DEPLOY GRID
   ═══════════════════════════════════════════════════════════ */

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.deploy-cell {
  background: var(--bg-board);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
}
.deploy-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: var(--sp-3);
}
.deploy-cell h2 {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--fg);
}


/* ═══════════════════════════════════════════════════════════
   FOUNDERS
   ═══════════════════════════════════════════════════════════ */

.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}
.founder-cell {
  background: var(--bg);
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
}
.founder-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: block;
  margin-bottom: var(--sp-2);
}
.founder-cell h2 {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--fg);
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-top: 1px solid var(--line);
}
.footer-dot { color: var(--fg-muted); }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .spec-grid,
  .deploy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-content {
    bottom: var(--sp-8);
    left: var(--sp-4);
  }

  .board-canvas {
    padding: var(--sp-8) var(--sp-4);
  }

  .node-tl { top: var(--sp-8); left: var(--sp-4); }
  .node-bl { bottom: var(--sp-8); left: var(--sp-4); }
  .node-br { bottom: var(--sp-8); right: var(--sp-4); }
  .node-right {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    max-width: 100%;
    padding: var(--sp-4);
  }

  .board-image-half {
    position: relative;
    right: auto;
    height: 50vh;
    opacity: 0.5;
  }

  .dim-right { display: none; }
  .dim-bottom { left: var(--sp-4); right: var(--sp-4); }

  .ann-bl { left: var(--sp-4); }
  .ann-br { right: var(--sp-4); }
  .ann-bc { font-size: 9px; }

  .founders-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(36px, 10vw, 60px); }

  .spec-grid,
  .deploy-grid { grid-template-columns: 1fr; }

  .node h1 { font-size: clamp(28px, 8vw, 48px); }

  .ann { font-size: 9px; }
  .ann::before { width: 22px; height: 22px; line-height: 22px; font-size: 8px; }

  .full-bleed { height: 60vh; min-height: 400px; }
}


/* ═══════════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  animation: fadeUp 1.2s var(--t-slow) both;
  animation-delay: 0.3s;
}
.hero-sub {
  animation: fadeUp 1.2s var(--t-slow) both;
  animation-delay: 0.6s;
}

/* Scroll-triggered fade for sections */
.board,
.full-bleed {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.board.visible,
.full-bleed.visible {
  opacity: 1;
  transform: translateY(0);
}
