/* ==========================================================================
   JEROA LAYOUT ARCHITECTURE
   Grid rulers, telemetry scaffolding, section rhythms & alignment
   ========================================================================== */

/* Fixed Telemetry Coordinate Grid Overlay (Ultra-subtle) */
.telemetry-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
}

/* Three.js Global Canvas Container — Softened Balanced Presence */
#webgl-background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.82;
}

/* Interactive Canvas Layer in Hero (passes pointer events) */
.hero-webgl-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

/* Primary Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  position: relative;
  z-index: var(--z-content);
}

.container-editorial {
  width: 100%;
  max-width: var(--container-editorial);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  position: relative;
  z-index: var(--z-content);
}

/* Section Wrapper */
.section {
  position: relative;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.section-first {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: none;
}

/* Section Header Editorial Structure */
.section-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.section-coordinates {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

/* Editorial Negative Space Utilities */
.flow-space-lg { margin-top: var(--space-3xl); }
.flow-space-xl { margin-top: var(--space-4xl); }

/* Technical Telemetry HUD Sidebar (Fixed Rulers on desktop) */
.screen-ruler-left, .screen-ruler-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  z-index: var(--z-telemetry-hud);
  pointer-events: none;
  opacity: 0.4;
}
.screen-ruler-left { left: 16px; }
.screen-ruler-right { right: 16px; transform: translateY(-50%) rotate(180deg); }
