/* infra.limited - Design System */
/* Colors: #0a0a0a, #141414, #1e1e1e, #404040, #606060, #b0b0b0, #c0c0c0, #d0d0d0, #e8e8e8, #f0f0f0 */
/* Fonts: Nunito Sans (display, 200), Karla (body, 400), IBM Plex Mono (data, 300/400/500) */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #0a0a0a;
  color: #b0b0b0;
  font-family: 'Karla', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Canvas Background */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Section Base */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-inner {
  max-width: 720px;
  width: 100%;
  padding: 60px 24px;
  margin: 0 auto;
}

.breakout-full {
  width: 100vw;
  padding: 60px 24px;
}

.content-column {
  max-width: 720px;
  width: 100%;
  padding: 60px 24px;
  margin: 0 auto;
}

/* Mono Text (IBM Plex Mono for data/labels) */
.mono-text {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: #b0b0b0;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #606060;
  margin-bottom: 16px;
  display: block;
}

/* Rule Line */
.rule-line {
  height: 1px;
  background-color: #404040;
  margin-top: 12px;
  margin-bottom: 48px;
}

/* ===== Section 0: Opening Void ===== */
.section-void {
  background: #0a0a0a;
}

.void-word {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 200;
  font-size: 20vw;
  letter-spacing: 0.15em;
  color: #e8e8e8;
  text-align: center;
  line-height: 1;
  opacity: 0;
  filter: blur(20px);
  transition: opacity 3s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.void-word.resolved {
  opacity: 1;
  filter: blur(0);
}

.void-rule {
  width: 60%;
  height: 1px;
  background-color: #404040;
  margin: 48px auto 0;
  opacity: 0;
  transition: opacity 1.5s ease 2.5s;
}

.void-rule.visible {
  opacity: 1;
}

/* ===== Section 1: Thesis Column ===== */
.section-thesis {
  min-height: auto;
  display: block;
  padding: 120px 0;
}

.thesis-column {
  max-width: 720px;
  width: 100%;
  padding: 0 24px;
  margin-left: 20%;
}

.thesis-numeral {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #404040;
  margin-bottom: 1.5rem;
}

.thesis-paragraph {
  font-family: 'Karla', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: #b0b0b0;
  margin-bottom: 4rem;
  max-width: 600px;
}

/* ===== Expansion Panels (Typographic Installations) ===== */
.section-expansion {
  min-height: 80vh;
  background: #141414;
  position: relative;
  overflow: hidden;
}

.expansion-panel {
  position: relative;
  width: 100%;
  height: 80vh;
  padding: 0;
}

.typo-term {
  position: absolute;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  will-change: transform;
  user-select: none;
  animation: typo-drift var(--drift-duration, 30s) ease-in-out infinite alternate;
}

@keyframes typo-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(var(--drift-amount, -20px)); }
}

/* ===== Data Stream Bands ===== */
.section-databand {
  position: relative;
  z-index: 1;
  width: 100vw;
  padding: 24px 0;
  overflow: hidden;
  background: #0a0a0a;
}

.databand-row {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #606060;
  line-height: 2;
  animation: databand-scroll var(--scroll-duration, 60s) linear infinite;
}

@keyframes databand-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

/* ===== Statement ===== */
.section-statement {
  background: transparent;
}

.statement-lines {
  max-width: 900px;
  margin: 0 auto;
}

.statement-line {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 200;
  font-size: clamp(24px, 5vw, 56px);
  letter-spacing: 0.08em;
  color: #c0c0c0;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.statement-line.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Data Metrics ===== */
.section-data {
  background: #0a0a0a;
}

.data-stream-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 800px;
  margin: 0 auto;
}

.data-column {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.data-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #606060;
}

.data-value {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 200;
  font-size: clamp(32px, 6vw, 64px);
  letter-spacing: 0.1em;
  color: #e8e8e8;
  line-height: 1;
}

/* ===== Capabilities ===== */
.section-capabilities {
  background: transparent;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}

.capability-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1e1e1e;
}

.capability-number {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #404040;
}

.capability-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: #e8e8e8;
}

.capability-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.8;
  color: #606060;
}

/* ===== Signal ===== */
.section-signal {
  background: transparent;
}

.signal-address {
  margin-bottom: 60px;
}

.signal-line {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #c0c0c0;
  margin-bottom: 8px;
}

.signal-dim {
  color: #404040;
  font-size: 12px;
}

.signal-pulse {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 1px solid #404040;
  border-radius: 50%;
  animation: pulse-expand 3s ease-out infinite;
}

.pulse-ring-2 {
  animation-delay: 1s;
}

.pulse-ring-3 {
  animation-delay: 2s;
}

.pulse-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background-color: #c0c0c0;
  border-radius: 50%;
}

@keyframes pulse-expand {
  0% {
    width: 6px;
    height: 6px;
    opacity: 0.8;
    border-color: #606060;
  }
  100% {
    width: 120px;
    height: 120px;
    opacity: 0;
    border-color: #1e1e1e;
  }
}

/* ===== Terminal ===== */
.section-terminal {
  background: #0a0a0a;
}

.terminal-domain {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 200;
  font-size: clamp(24px, 5vw, 48px);
  letter-spacing: 0.15em;
  color: #e8e8e8;
  text-align: center;
  margin-bottom: 16px;
}

.terminal-cursor {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: #606060;
  animation: cursor-blink 1.2s step-end infinite;
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== Bubble Clusters ===== */
.bubble-cluster {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  width: 300px;
  height: 300px;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #404040;
  background: transparent;
  opacity: 0;
  transform: scale(0);
  transition: transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bubble.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== Reveal Animations ===== */
.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.reveal-fade.revealed {
  opacity: 1;
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-slide {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-slide.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .thesis-column {
    margin-left: 5%;
  }

  .data-stream-container {
    flex-direction: column;
    gap: 48px;
    padding: 0 24px;
  }

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

  .statement-line {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .thesis-column {
    margin-left: auto;
    margin-right: auto;
  }

  .data-value {
    font-size: 36px;
  }
}
