/* ===== Color Variables ===== */
:root {
  --navy: #011563;
  --dark-red: #a30c02;
  --dark-pink: #e03b8e; /* #e30574 */
  --orange: #e35305;
  --yellow: #faf74d;
  --blue-green: #4dbbfa;
  --blue: #0537fc;
  --text-light: #e8eaf6;
  --text-muted: #a0a8c8;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--blue-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--yellow);
}

.scene-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(250, 247, 77, 0.4);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--blue-green);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--blue-green);
  border-bottom: 2px solid var(--blue-green);
  transform: rotate(45deg);
  margin: 0.5rem auto 0;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: 4rem 0;
}

.scene-split .scene-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
  align-items: start;
}

.scene-text {
  padding-right: 1rem;
}

.pre-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dark-pink);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.scene-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.scene-body p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.scene-body ul, .scene-body ol {
  margin: 1rem 0 1rem 1.2rem;
}

.scene-body li {
  margin-bottom: 0.75rem;
}

.scene-body strong {
  color: var(--blue-green);
}

.scene-visual {
  position: sticky;
  top: 2rem;
  min-height: 400px;
}

.visual-container {
  width: 100%;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 55, 252, 0.08);
  border: 1px solid rgba(77, 187, 250, 0.2);
  position: relative;
}

.visual-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scene-visual-stacked {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.monument-video-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(77, 187, 250, 0.2);
}

.monument-video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

.code-panel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(77, 187, 250, 0.3);
}

.code-label {
  background: var(--blue);
  color: var(--yellow);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.code-scroll {
  max-height: 280px;
  overflow-y: auto;
  background: #0a0f2e;
}

.code-scroll pre {
  margin: 0;
  padding: 1rem;
}

.code-scroll code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--blue-green);
  white-space: pre;
}

.code-scroll::-webkit-scrollbar {
  width: 8px;
}

.code-scroll::-webkit-scrollbar-track {
  background: rgba(1, 21, 99, 0.5);
}

.code-scroll::-webkit-scrollbar-thumb {
  background: var(--blue-green);
  border-radius: 4px;
}

.colored-box {
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid;
  font-size: 0.95rem;
  line-height: 1.6;
}

.box-red {
  background: rgba(163, 12, 2, 0.15);
  border-color: var(--dark-red);
}

.box-pink {
  background: rgba(227, 5, 116, 0.12);
  border-color: var(--dark-pink);
}

.box-orange {
  background: rgba(227, 83, 5, 0.12);
  border-color: var(--orange);
}

.box-blue {
  background: rgba(5, 55, 252, 0.12);
  border-color: var(--blue);
}

.carousel-container {
  position: relative;
  min-height: 450px;
}

.carousel-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  border-radius: 12px;
}

.carousel-container img.active {
  opacity: 1;
}

.scene-split-screen {
  padding: 4rem 0 0;
}

.split-screen-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem 2rem;
}

.split-screen-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  gap: 3rem;
}

.split-left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.split-visual-inner {
  width: 100%;
  min-height: 400px; /* 500px */
  height: 60vh; /* 70vh */
}

.split-right {
  padding: 1rem 0 0; /* padding: 2rem 0 0; */
}

.split-text-block {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem; /* padding: 2rem; */
  border-left: 3px solid transparent;
  transition: border-color 0.4s ease;
}

.split-text-block.active {
  border-left-color: var(--yellow);
}

.split-text-block h3 {
  font-size: 1.5rem;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.split-text-block p,
.split-text-block li {
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.phase-steps {
  margin-left: 1.2rem;
}

.split-spacer {
  height: 30vh;
}

#horizon-carousel {
  min-height: 450px;
  position: relative;
}

#horizon-carousel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.site-footer {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(77, 187, 250, 0.15);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .scene-split .scene-inner,
  .split-screen-wrap {
    grid-template-columns: 1fr;
    padding: 1.5rem; /* padding: 1.5rem; */
  }

  .scene-visual {
    position: relative;
    top: 0;
  }

  .split-left {
    position: relative;
    height: auto;  /* height: auto; */
    min-height: 300px;
  }

  .split-text-block {
    min-height: auto;
    padding: 1.5rem 0;
  }

  .split-spacer {
    height: 5vh;
  }
}
