*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050510;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Three.js Canvas ── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
.nav-logo img { height: 20px; width: auto; opacity: 1; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5)); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000;
  background: #44aaff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: #5bbcff; transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 5, 16, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.nav-mobile .nav-cta { font-size: 0.8rem; padding: 14px 28px; margin-top: 12px; }

/* ── CTA Section ── */
.cta-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.cta-section p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .cta-btn {
  display: inline-block;
  background: transparent;
  color: #44aaff;
  padding: 16px 36px;
  border: 1px solid rgba(68,170,255,0.3);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.cta-section .cta-btn:hover { background: rgba(68,170,255,0.1); color: #fff; border-color: rgba(68,170,255,0.6); }

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  padding: 40px 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 20px;
}
.footer-brand img { height: 16px; opacity: 0.5; }
.footer-brand p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
  line-height: 1.5;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-contact a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span, .footer-bottom a {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.5); }
.footer-legal { display: flex; gap: 16px; }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 80px;
}
.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #44aaff;
  margin-bottom: 20px;
  opacity: 0.7;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 700px;
}
.hero h1 span { color: #44aaff; }
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Anonymization Notice ── */
.stats-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 32px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(5,5,16,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.anon-notice {
  max-width: 640px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ── Stories Grid ── */
.stories-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}
.stories-header {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 40px;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.story-card:hover {
  border-color: rgba(68,170,255,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(68,170,255,0.05);
}

.story-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-visual-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  transition: opacity 0.4s;
}
.story-card:hover .story-visual-bg { opacity: 0.25; }

.story-visual-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.story-stat-big {
  font-family: 'Space Mono', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  color: #44aaff;
  line-height: 1;
  text-shadow: 0 0 40px rgba(68,170,255,0.3);
}
.story-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
}

.story-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story-industry {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #44aaff;
  opacity: 0.6;
  margin-bottom: 14px;
}
.story-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  transition: color 0.3s;
}
.story-card:hover .story-info h2 { color: #44aaff; }
.story-info p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.story-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: rgba(255,255,255,0.4);
}
.story-cta {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #44aaff;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.story-card:hover .story-cta {
  opacity: 1;
  transform: translateX(0);
}

/* ── Alternate layout: visual on right ── */
.story-card.reverse { direction: rtl; }
.story-card.reverse > * { direction: ltr; }

/* ── Coming Soon Cards ── */
.story-card.coming-soon {
  opacity: 0.5;
  cursor: default;
}
.story-card.coming-soon:hover {
  border-color: rgba(255,255,255,0.08);
  transform: none;
  box-shadow: none;
}
.story-card.coming-soon .story-stat-big {
  color: rgba(255,255,255,0.15);
  text-shadow: none;
}
.story-card.coming-soon:hover .story-info h2 { color: #fff; }
.coming-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: rgba(255,255,255,0.3);
  display: inline-block;
}

/* ── CTA Footer ── */
.cta-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 40px 100px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.cta-footer h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-footer p {
  color: rgba(255,255,255,0.4);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.cta-btn {
  display: inline-block;
  padding: 16px 40px;
  border: 1px solid rgba(68,170,255,0.3);
  color: #44aaff;
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
}
.cta-btn:hover {
  background: rgba(68,170,255,0.1);
  color: #fff;
  border-color: rgba(68,170,255,0.6);
  box-shadow: 0 0 30px rgba(68,170,255,0.1);
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .story-card, .story-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .story-card.reverse > * { direction: ltr; }
  .story-visual { min-height: 200px; }
  .story-stat-big { font-size: 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .stats-bar { flex-wrap: wrap; gap: 30px; }
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .stories-section { padding: 60px 20px 80px; }
  .story-info { padding: 28px 24px; }
  .story-cta { opacity: 1; transform: none; }
  .cta-section { padding: 60px 20px; }
  .cta-section h2 { font-size: 1.4rem; }
  footer { padding: 40px 20px 24px; }
  .footer-grid { flex-direction: column; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
