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

:root {
  --bg:     #0a0a0a;
  --dim:    #2a2a2a;
  --muted:  #4a4a4a;
  --mid:    #6b6b6b;
  --text:   #c8c8c8;
  --bright: #e8e8e8;
  --accent: #d4c090;
  --mono:   'Cascadia Code', 'Cascadia Mono', 'Fira Code', 'Consolas', 'Menlo', 'DejaVu Sans Mono', monospace;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  overflow: hidden;
}

/* ── LAYOUT ── */
.stage {
  width: 100vw; height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0;
  position: relative;
  padding-bottom: 44px; /* kompenserer for bottom strip højde */
}

/* ── SCANLINES ── */
.stage::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.06) 3px,
    rgba(0,0,0,.06) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* ── ASCII ART ── */
.ascii-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  opacity: 0;
  animation: fadeIn .4s 1.8s ease forwards, flicker 3s 2s ease forwards;
}

pre.ascii {
  font-size: clamp(5px, 1.1vw, 11px);
  line-height: 1.18;
  color: var(--mid);
  white-space: pre;
  user-select: none;
  letter-spacing: 0;
  transition: color .4s;
  display: inline-block;
}

/* glowing center chars */
pre.ascii .hi {
  color: var(--bright);
  text-shadow:
    0 0 8px var(--bright),
    0 0 20px rgba(200,200,200,.3);
}
pre.ascii .lo { color: var(--dim); }
pre.ascii .acc {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(212,192,144,.4);
}

/* ── SHARED TEXT STYLE ── */
.meta-text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--muted);
}
.meta-text .name { color: var(--text); }
.meta-text .mid  { color: var(--mid); }
.meta-text .sep  { color: var(--dim); margin: 0 10px; }

/* ── NAMEPLATE ── */
.nameplate {
  margin-top: 12px;
  text-align: center;
  opacity: 0;
  animation: fadeIn .5s 2.2s ease forwards;
}
.nameplate .name,
.nameplate .mid,
.nameplate .sep {
  color: var(--mid);
}

/* ── TAGLINE ── */
.tagline {
  margin-top: 20px;
  text-align: center;
  width: 100%;
  opacity: 0;
  animation: fadeIn .5s 2.4s ease forwards;
}
.tagline em {
  font-style: normal;
  color: var(--mid);
}

/* ── LINKS ── */
.links {
  display: flex; gap: 40px;
  margin-top: 28px;
  opacity: 0;
  animation: fadeIn .5s 2.8s ease forwards;
}

.link {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: color .25s;
  position: relative;
  padding-bottom: 3px;
}
.link::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}
.link:hover { color: var(--accent); }
.link:hover::after { width: 100%; }

.link-icon { opacity: .6; }

/* ── BOTTOM STRIP ── */
.bottom {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 14px 32px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--dim);
  opacity: 0;
  animation: fadeIn .4s 3.2s ease forwards;
}
.bottom-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted);
  display: inline-block; margin: 0 10px;
  vertical-align: middle;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ── CURSOR BLINK in tagline ── */
.cursor {
  display: inline-block;
  width: 8px; height: 13px;
  background: var(--muted);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink .9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* boot flicker */
@keyframes flicker {
  0%   { opacity: 0; }
  5%   { opacity: .9; }
  8%   { opacity: .3; }
  10%  { opacity: 1; }
  100% { opacity: 1; }
}

/* subtle hover parallax on ascii */
.stage:hover pre.ascii .hi {
  text-shadow:
    0 0 12px var(--bright),
    0 0 30px rgba(200,200,200,.25),
    0 0 60px rgba(200,200,200,.1);
}
