@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}

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

:root {
  --bg:      #03060a;
  --surface: #0a1220;
  --cyan:    #4ad3ff;
  --red:     #ff3b3b;
  --text:    #e6edf3;
  --muted:   #7a8fa8;
  --grid:    #1a2432;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ── Globe canvas ──────────────────────────────── */
#globe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ── Scanline overlay ──────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
}

/* ── CRT vignette ──────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0,0,0,0.55) 100%
  );
  pointer-events: none;
}

/* ── HUD corner brackets ───────────────────────── */
.hud-corner {
  position: fixed;
  width: 28px;
  height: 28px;
  z-index: 3;
}
.hud-corner::before,
.hud-corner::after {
  content: '';
  position: absolute;
  background: var(--cyan);
  opacity: 0.6;
}
/* horizontal bar */
.hud-corner::before { width: 100%; height: 1px; }
/* vertical bar */
.hud-corner::after  { width: 1px; height: 100%; }

.hud-tl { top: 20px; left: 20px; }
.hud-tl::before { top: 0; left: 0; }
.hud-tl::after  { top: 0; left: 0; }

.hud-tr { top: 20px; right: 20px; }
.hud-tr::before { top: 0; right: 0; }
.hud-tr::after  { top: 0; right: 0; }

.hud-bl { bottom: 20px; left: 20px; }
.hud-bl::before { bottom: 0; left: 0; }
.hud-bl::after  { bottom: 0; left: 0; }

.hud-br { bottom: 20px; right: 20px; }
.hud-br::before { bottom: 0; right: 0; }
.hud-br::after  { bottom: 0; right: 0; }

/* ── Main content ──────────────────────────────── */
.content {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  text-align: center;
}

/* ── Status eyebrow ────────────────────────────── */
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.85;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: blink 1.4s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Wordmark ──────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  text-shadow: 0 0 40px rgba(74, 211, 255, 0.15);
  margin-bottom: 16px;
}

/* ── Tagline ───────────────────────────────────── */
.tagline {
  font-size: clamp(0.65rem, 1.4vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ── Divider ───────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0.85;
}
.divider::before,
.divider::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}

/* ── Contact row ───────────────────────────────── */
.contact {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 0;
}
.contact a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, text-shadow 0.2s;
}
.contact a:hover {
  opacity: 1;
  text-shadow: 0 0 12px rgba(74, 211, 255, 0.6);
}

/* X icon */
.social-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(74, 211, 255, 0.3);
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.social-x:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(74, 211, 255, 0.25);
}
.social-x svg {
  width: 14px;
  height: 14px;
  fill: var(--cyan);
  opacity: 0.8;
}
.social-x:hover svg { opacity: 1; }

/* ── Footer ────────────────────────────────────── */
footer {
  position: fixed;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.45;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cin {
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ── Reduced motion: freeze globe ──────────────── */
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; opacity: 1; }
}

/* ── Portrait mobile (phones) ──────────────────── */
@media (max-width: 600px) and (orientation: portrait) {
  /* Shift content into the clear upper band above the lowered globe */
  .content {
    justify-content: flex-start;
    padding-top: 12vh;
  }

  /* Tighter vertical rhythm so everything fits above the globe */
  .status        { margin-bottom: 16px; }
  h1             { margin-bottom: 10px; font-size: clamp(1.7rem, 9vw, 2.4rem); letter-spacing: 0.12em; }
  .tagline       { font-size: 0.62rem; margin-bottom: 22px; }
  .divider       { margin-bottom: 18px; gap: 10px; }
  .divider::before,
  .divider::after { width: 22px; }

  /* Slightly larger tap targets for contact links */
  .contact a     { font-size: 0.72rem; }
  .social-x      { width: 32px; height: 32px; }
}

/* ── Small landscape phones (e.g. iPhone SE rotated) ── */
@media (max-height: 420px) and (orientation: landscape) {
  .status        { display: none; }
  h1             { font-size: clamp(1.4rem, 5vw, 2rem); margin-bottom: 6px; }
  .tagline       { margin-bottom: 12px; }
  .divider       { margin-bottom: 10px; }
  footer         { bottom: 10px; }
  .hud-corner    { width: 18px; height: 18px; }
}
