:root {
  --bg: #05070a;
  --ink: #eef4f1;
  --ink-dim: #7fa89a;
  --accent: #3ef0c5;
  --border: rgba(62, 240, 197, 0.18);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
}

img {
  display: block;
  max-width: 100%;
}

/* Hero / single screen */

.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-bg.svg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Static CRT scanline texture — no motion */

.hero__scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Inset frame: reinforces the terminal/viewport feel */

.frame {
  position: absolute;
  inset: clamp(16px, 3.5vw, 40px);
  z-index: 2;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  opacity: 0.75;
}

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

.tick {
  position: absolute;
  background: var(--border);
}

.tick--top,
.tick--bottom {
  width: 1px;
  height: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.tick--top { top: -1px; }
.tick--bottom { bottom: -1px; }

.tick--left,
.tick--right {
  width: 10px;
  height: 1px;
  top: 50%;
  transform: translateY(-50%);
}

.tick--left { left: -1px; }
.tick--right { right: -1px; }

/* Corner HUD labels */

.hud {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.hud--tr {
  top: 22px;
  right: 26px;
}

.hud--bl {
  bottom: 22px;
  left: 26px;
}

.hud--br {
  bottom: 22px;
  right: 26px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px rgba(62, 240, 197, 0.7);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16em;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(62, 240, 197, 0.35);
}

.mark-icon {
  width: 1.15em;
  height: 1.15em;
  opacity: 0.95;
  filter: drop-shadow(0 0 18px rgba(62, 240, 197, 0.45));
}

.terminal-line {
  width: 40ch;
  max-width: 94vw;
  transition: width 0.35s ease;
  margin-top: 34px;
  font-size: clamp(0.5rem, 2.2vw, 1.15rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}

.terminal-line .prompt {
  color: var(--accent);
  margin-right: 1.4ch;
}

.typed {
  color: var(--ink-dim);
}

.cursor {
  display: inline-block;
  color: var(--accent);
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}

.citation {
  margin-top: 24px;
  padding-right: 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: right;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.citation::before {
  content: "—";
  margin-right: 0.6ch;
  opacity: 0.6;
}

.citation.is-visible {
  opacity: 0.65;
  transform: translateY(0);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (max-width: 820px) {
  /* Keep all four corner brackets (never hidden); only drop the
     right-side text labels that would crowd a narrow screen. */
  .hud--tr,
  .hud--br {
    display: none;
  }

  /* Use dynamic viewport height so the frame + all 4 brackets stay
     fully visible under the mobile browser chrome. */
  .hero {
    height: 100svh;
    align-items: flex-start;
  }

  /* Anchor the lockup from the top so the logo + "IRIS" stay put.
     The phrase below grows downward when it wraps, instead of the
     centered block shifting the heading up. */
  .hero__content {
    width: 90vw;
    margin-top: 13vh;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .mark-icon {
    filter: drop-shadow(0 0 16px rgba(62, 240, 197, 0.5));
  }

  /* Readable body-text size that scales with the device, wrapping to
     2 lines rather than shrinking. Height is fixed at 3 lines' worth so
     the block never grows, no matter how a phrase wraps. */
  .terminal-line {
    width: 100% !important;
    max-width: 100%;
    margin-top: 26px;
    font-size: clamp(0.92rem, 3.8vw, 1.15rem);
    line-height: 1.55;
    height: 4.65em;
    white-space: normal;
    overflow-wrap: break-word;
    /* Hanging indent: wrapped lines align under the text, not under the
       prompt. The negative indent pulls line 1 back so ">" doesn't move.
       2.4ch = the ">" glyph (1ch) + its 1.4ch margin. */
    padding-left: 2.4ch;
    text-indent: -3.4ch;
  }

  /* On mobile the line can wrap, so just dock the citation to the
     block's right edge rather than tracking the cursor position. */
  .citation {
    margin-top: 14px;
    padding-right: 0 !important;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
  }
}
