/* ==========================================================================
   Hero Section & Single Motive 3D Digital Twin Stage
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: min(100vh, 920px);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(4.4rem, 7vh, 5.8rem) var(--site-padding) 1.25rem;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* Master Stable Frame Container (Locks all elements into a unified responsive box) */
.hero-frame-container {
  position: relative;
  width: 100%;
  max-width: 1600px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  z-index: var(--z-content);
}

/* Background Atmospheric Glow */
.hero-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85vw, 900px);
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(142, 15, 22, 0.18) 0%, rgba(142, 15, 22, 0.04) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: var(--z-base);
  opacity: 0.95;
  transition: transform 0.8s var(--ease-cinematic);
}

/* Hero Top Telemetry Bar */
.hero-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  position: relative;
  z-index: var(--z-content);
}

.hero-coords {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.status-beacon {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  animation: beaconPulse 2.5s infinite;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.65); opacity: 0.4; }
}

/* Monumental Brand Banner (RED SIGHT on Left + 2-Line Crimson Taglines on Right) */
.hero-brand-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  position: relative;
  z-index: var(--z-content);
  margin: 0.35rem 0 0.5rem 0;
  user-select: none;
}

.hero-brand-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7.6vw, 9.2rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-brand-taglines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 4.5rem;
  margin-bottom: 0.35rem;
}

.hero-tagline-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
}

.hero-tagline-row.top {
  justify-content: space-between;
}

.hero-tagline-row.bottom {
  justify-content: flex-start;
}

.hero-tagline-text {
  font-family: var(--font-display);
  font-size: clamp(0.70rem, 1.15vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--accent-red-bright);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.15;
}

.tag-est {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Main Hero Stage & Unified Background Graphic */
.hero-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 2298 / 556;
  max-height: clamp(340px, 46vh, 460px);
  min-height: 280px;
  margin: 0.35rem 0 1.25rem 0;
  z-index: var(--z-content);
}

/* Unified Background Graphic Layer (main_menu_background.png) */
.hero-bg-stage-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  overflow: hidden;
}

.hero-bg-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.60;
  filter: drop-shadow(0 0 25px rgba(184, 21, 30, 0.25));
  transition: opacity 0.3s ease;
}

/* Central 3D Host Container (.hero-visual - Exact 38.6% width intersecting red ribbons) */
.hero-visual {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52.1%;
  transform: translateX(-50%);
  width: 38.6%;
  min-width: 0;
  max-width: 720px;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  cursor: crosshair;
  transition: filter 0.15s ease;
}

/* Subtle Button-Hover Cyber Glitch Pulse (Pure filter, zero transform jumping) */
.hero-visual.is-glitching {
  animation: cyberGlitchSoft 0.14s ease-out;
}

@keyframes cyberGlitchSoft {
  0% {
    filter: drop-shadow(-2px 0 rgba(184, 21, 30, 0.5));
  }
  40% {
    filter: drop-shadow(2px 0 rgba(184, 21, 30, 0.6)) drop-shadow(-1px 0 rgba(0, 240, 255, 0.25));
  }
  80% {
    filter: drop-shadow(-1px 0 rgba(184, 21, 30, 0.45));
  }
  100% {
    filter: none;
  }
}

/* Three.js Canvas */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Framing & Telemetry Rig Overlay */
.hero-placeholder-rig {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(241, 238, 231, 0.06);
}

.hero-framing-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(241, 238, 231, 0.3);
  transition: border-color 0.3s ease;
}

.hero-visual:hover .hero-framing-corner {
  border-color: var(--accent-red);
}

.corner-tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

.rig-telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.rig-telemetry-row.top {
  border-bottom: 1px dashed rgba(241, 238, 231, 0.06);
  padding-bottom: 0.4rem;
}

/* Central Motive / Kanye Identity Tag Card (Elevated layer ABOVE wireframe slider, aligned to frame bottom) */
.heads-identity-bar {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
}

.head-identity-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 2rem;
  background: rgba(10, 10, 14, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(241, 238, 231, 0.16);
  border-top: 2px solid var(--accent-red);
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(142, 15, 22, 0.2);
  transition: transform var(--duration-fast) var(--ease-cinematic),
              border-color var(--duration-fast) ease,
              background var(--duration-fast) ease;
}

.head-identity-tag:hover,
.head-identity-tag.is-active {
  transform: translateY(-4px);
  background: rgba(142, 15, 22, 0.18);
  border-color: var(--accent-red);
}

.head-index {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-red-bright);
  letter-spacing: 0.18em;
  margin-bottom: 0.2rem;
}

.head-handle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.head-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.head-identity-tag:hover .head-status {
  color: var(--text-primary);
}

/* Hero Footer */
.hero-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: flex-end;
  position: relative;
  z-index: var(--z-content);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-footer-statement {
  justify-self: start;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 380px;
}

.hero-footer-statement strong {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-disciplines-list {
  justify-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-discipline-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color var(--duration-fast) ease;
}

.hero-discipline-item span {
  color: var(--accent-red);
}

.hero-discipline-item:hover {
  color: var(--text-primary);
}

.hero-scroll-indicator {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.scroll-line-track {
  width: 1px;
  height: 36px;
  background: var(--border-medium);
  position: relative;
  overflow: hidden;
}

.scroll-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-red);
  animation: scrollDown 2.2s infinite var(--ease-cinematic);
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Responsive adjustments */
/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-brand-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }
  .hero-brand-taglines {
    margin-left: auto;
    margin-right: 1.5rem;
    margin-bottom: 0.35rem;
  }
  .hero-stage {
    min-height: clamp(300px, 44vh, 420px);
  }
  .hero-visual {
    width: min(88vw, 540px);
  }
  .hero-bg-stage-wrap {
    opacity: 0.70;
  }
  .hero-footer {
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
  }
  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: max(5.2rem, calc(4.6rem + env(safe-area-inset-top)));
    padding-bottom: 1.5rem;
    padding-left: 0;
    padding-right: 0;
    min-height: auto;
    width: 100%;
    overflow: hidden;
    background: #050505;
  }

  .hero-frame-container {
    width: min(90vw, 420px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    width: 100%;
  }

  .hero-coords {
    gap: 0.15rem;
  }

  .hero-coords .mono-meta {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .hero-status-pill {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .hero-brand-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0.2rem 0 0.65rem 0;
    width: 100%;
    overflow: visible;
  }

  .hero-brand-title {
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 12.8vw, 3.75rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: 0;
    white-space: nowrap;
    width: 100%;
    display: block;
    text-align: left;
    margin: 0;
    padding: 0;
  }

  .hero-brand-taglines {
    margin: 0;
    gap: 0.25rem;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .hero-tagline-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
  }

  .hero-tagline-row.top {
    justify-content: space-between;
  }

  .hero-tagline-row.bottom {
    justify-content: flex-start;
  }

  .hero-tagline-text {
    font-size: clamp(0.58rem, 4.3vw, 1.05rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.15;
    font-weight: 800;
  }

  .tag-est {
    font-size: 0.55rem;
    letter-spacing: 0.10em;
  }

  .hero-stage {
    position: relative;
    width: 100%;
    min-height: clamp(310px, 48vh, 400px);
    max-height: 400px;
    margin: 0.45rem 0 0.85rem 0;
    aspect-ratio: auto;
  }

  .hero-bg-stage-wrap {
    opacity: 0.65;
  }

  .hero-bg-stage-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .hero-visual {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
  }

  .hero-placeholder-rig {
    padding: 0.75rem 1rem;
  }

  .rig-telemetry-row {
    font-size: 0.58rem;
    letter-spacing: 0.10em;
  }

  .split-handle {
    width: 38px;
    height: 38px;
  }

  .split-handle-img {
    width: 23px;
    height: 23px;
  }

  .head-identity-tag {
    padding: 0.5rem 1.25rem;
  }

  .head-index {
    font-size: 0.58rem;
    margin-bottom: 0.1rem;
  }

  .head-handle {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .head-status {
    font-size: 0.55rem;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    width: 100%;
  }

  .hero-footer-statement {
    font-size: 0.80rem;
    line-height: 1.45;
    max-width: 100%;
  }

  .hero-disciplines-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    justify-self: start;
    width: 100%;
  }

  .hero-discipline-item {
    font-size: 0.65rem;
    letter-spacing: 0.10em;
  }
}

/* ==========================================================================
   INTERACTIVE WIREFRAME / RENDER SPLIT SLIDER (In front of 3D mesh, behind button)
   ========================================================================== */
.render-split-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  z-index: 25;
  cursor: ew-resize;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #FFDD00;
  box-shadow: 0 0 14px rgba(255, 221, 0, 0.85), 0 0 2px #fff;
  pointer-events: none;
}

.split-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: rgba(12, 12, 16, 0.95);
  border: 1.5px solid #FFDD00;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 18px rgba(255, 221, 0, 0.6), inset 0 0 8px rgba(255, 221, 0, 0.3);
  cursor: ew-resize;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  pointer-events: auto;
  z-index: 26;
  padding: 0;
  user-select: none;
}

.split-handle:hover,
.render-split-slider.is-dragging .split-handle {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 26px rgba(255, 221, 0, 0.95), inset 0 0 12px rgba(255, 221, 0, 0.4);
}

.split-handle-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
  display: block;
  user-select: none;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 0 4px rgba(255, 221, 0, 0.5));
}

.split-handle:hover .split-handle-img,
.render-split-slider.is-dragging .split-handle-img {
  transform: scale(1.1);
}

