/* ═══════════════════════════════════════════
   INDEX / HOME — overrides & specifics
═══════════════════════════════════════════ */
html, body { overflow: hidden; height: 100%; }

.scanline {
  height: 2px;
  box-shadow: 0 0 15px var(--red), 0 0 30px rgba(255,0,0,0.3);
  opacity: 0.7;
  animation: scan 8s linear infinite;
}

canvas#webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

.grid-div {
  position: fixed; top: 0; bottom: 0; left: 50%; width: 1px;
  background: rgba(255,255,255,0.025); z-index: 1; pointer-events: none;
}

/* UI grid layout */
.ui {
  position: fixed; inset: 0; z-index: 10; pointer-events: none;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto;
}
.ui a, .ui button { pointer-events: auto; }

/* Nav (index-specific: grid-based, opacity-animated) */
.nav {
  position: static; mix-blend-mode: difference;
  grid-column: 1 / -1; grid-row: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 40px; opacity: 0;
}

/* Hero left */
.hero-left {
  grid-column: 1; grid-row: 2;
  display: flex; flex-direction: column; justify-content: center; padding: 0 40px;
}
.hero-tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--steel-dim); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px; opacity: 0;
}
.hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--red); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
  text-transform: uppercase; color: var(--steel); opacity: 0;
}
.hero-title .accent { color: var(--red); }
.hero-title .thin { font-weight: 300; color: var(--steel-dim); font-size: 0.55em; display: block; letter-spacing: 0.05em; margin-top: 8px; }
.hero-sub {
  margin-top: 24px; max-width: 420px; font-family: var(--font-mono);
  font-size: 11px; line-height: 1.75; color: var(--steel-dim); font-weight: 300; letter-spacing: 0.015em; opacity: 0;
}
.hero-cta { margin-top: 36px; display: flex; align-items: center; gap: 24px; opacity: 0; }
.btn-primary {
  display: inline-block; padding: 13px 28px; font-family: var(--font-mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--vanta); background: var(--red); text-decoration: none; overflow: hidden;
  transition: box-shadow 0.4s, transform 0.3s var(--ease-expo);
}
.btn-primary:hover { box-shadow: 0 0 16px rgba(255,0,0,0.35); transform: scale(1.02); }
.btn-ghost {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--steel-dim); text-decoration: none; text-transform: uppercase; transition: color 0.3s;
}
.btn-ghost:hover { color: var(--steel); }

.hero-right { grid-column: 2; grid-row: 2; }

/* Footer (index-specific) */
.foot {
  grid-column: 1 / -1; grid-row: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 40px; border-top: 1px solid rgba(255,255,255,0.035); opacity: 0;
}
.ft-meta { display: flex; gap: 36px; }
.ft-item { display: flex; flex-direction: column; gap: 3px; }
.ft-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.2em; color: var(--steel-dim); opacity: 0.45; text-transform: uppercase; }
.ft-value { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--steel-dim); }
.ft-pillars { display: flex; gap: 28px; }
.pillar { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--steel-dim); text-decoration: none; text-transform: uppercase; transition: color 0.3s; }
.pillar:hover { color: var(--steel); }
.p-dot { width: 4px; height: 4px; border-radius: 50%; }
.ft-end { display: flex; align-items: center; gap: 14px; }
.ft-logo { height: 28px; width: auto; opacity: 0.5; transition: opacity 0.3s; }
.ft-logo:hover { opacity: 0.8; }
.ft-sig { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--steel-faint); }

/* Loader */
#loader {
  position: fixed; inset: 0; z-index: 50000;
  background: var(--vanta);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.loader-pct {
  font-family: var(--font-mono);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 300; color: var(--steel);
  letter-spacing: -2px; margin-bottom: 16px;
}
.loader-bar { width: 180px; height: 1px; background: var(--steel-faint); position: relative; overflow: hidden; }
.loader-fill { position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: var(--red); }
.loader-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--steel-dim); margin-top: 14px;
}

/* Index responsive */
@media (max-width: 900px) {
  .ui { grid-template-columns: 1fr; }
  .hero-left { grid-column: 1; padding: 0 20px; }
  .hero-right { display: none; }
  .grid-div { display: none; }
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .foot { padding: 14px 20px; flex-wrap: wrap; gap: 10px; }
  .ft-pillars { gap: 14px; }
  .cursor { display: none; }
  * { cursor: auto; }
}
