:root {
  --green: #8cff62;
  --text: #e9e9e9;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
}

body {
  font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: #000;
  color: var(--text);
  opacity: 1;
  transition: opacity 1.6s ease;
  pointer-events: none;
}

.intro.hidden { opacity: 0; }

.terminal {
  position: absolute;
  left: clamp(20px, 5.5vw, 105px);
  top: clamp(28px, 8vh, 80px);
  font-size: clamp(12px, 1.05vw, 20px);
  line-height: 1.8;
  letter-spacing: .025em;
}

.terminal span { color: var(--green); }

.cursor {
  display: inline-block;
  width: .58em;
  height: 1em;
  margin-left: .35em;
  vertical-align: -.13em;
  background: var(--green);
  animation: blink .85s steps(1) infinite;
}

.system {
  position: absolute;
  right: clamp(20px, 5.5vw, 105px);
  top: clamp(30px, 9vh, 90px);
  font-size: clamp(9px, .7vw, 14px);
  letter-spacing: .08em;
  color: #aaa;
}

.system b {
  color: var(--green);
  margin-left: 1.2em;
}

.forge {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  min-height: 100vh;
  background: #000;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 2.2s ease, transform 3s ease;
  will-change: opacity, transform;
}

.forge.ready .hero {
  opacity: 1;
  transform: scale(1);
}

@keyframes blink { 50% { opacity: 0; } }

/* Phones: keep the complete artwork visible instead of destroying the composition. */
@media (max-width: 700px) {
  .forge {
    height: 100svh;
    min-height: 100svh;
  }

  .hero {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: none;
  }

  .terminal {
    left: 5vw;
    top: 5.5svh;
    max-width: 90vw;
    font-size: clamp(9px, 2.65vw, 12px);
    line-height: 1.7;
  }

  .system {
    right: 5vw;
    top: 6svh;
    font-size: clamp(7px, 1.9vw, 9px);
  }
}

/* Very narrow phones: reduce the intro text only; artwork remains intact. */
@media (max-width: 390px) {
  .terminal { font-size: 9px; }
  .system { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro, .hero { transition: none; }
  .cursor { animation: none; }
}
