/* ============================================================
   about-hero.css — Hero section (bubble-orbit layout)
   Tech Cartographer About Page
   ============================================================ */

/* ── Hero Base ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-deep);
}

/* ── Particle Background ──────────────────────────────────── */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── Subtle CRT Scanlines ─────────────────────────────────── */
.hero__scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
}

/* ── SVG Connector Lines ──────────────────────────────────── */
.hero__connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

/* ── Three-Column Layout ──────────────────────────────────── */
.hero__layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(var(--space-lg), 3vw, var(--space-3xl));
  width: 100%;
  max-width: 1300px;
  padding: var(--space-xl);
  min-height: 100dvh;
}

/* ── Bubble Columns ───────────────────────────────────────── */
.bubble-col {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-lg), 2.5vh, var(--space-2xl));
}

.bubble-col--left  { align-items: flex-end; }
.bubble-col--right { align-items: flex-start; }

/* ── Hero Content (centre column) ─────────────────────────── */
.hero__content {
  text-align: center;
  max-width: clamp(300px, 32vw, 500px);
  width: 100%;
  flex-shrink: 0;
}

/* ── Hero Name — DM Serif Display ─────────────────────────── */
.hero__name {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  position: relative;
}

.hero__name-line {
  display: block;
  font-size: clamp(1.6rem, 3.2vw, 3.0rem);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  position: relative;
  animation: hero-name-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero__name-line::before,
.hero__name-line::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  opacity: 0;
}

/* Accent line — larger, TC ice-blue glow */
.hero__name-line--accent {
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  color: #fff;
  text-shadow:
    0 0 40px hsla(200, 80%, 60%, 0.45),
    0 0 80px hsla(200, 80%, 60%, 0.18);
  animation-delay: 0.65s;
}

/* Glitch states */
.hero__name-line.glitch-active::before {
  animation: glitch-clip-1 0.4s linear;
  color: var(--color-accent-cyan);
  opacity: 0.8;
}

.hero__name-line.glitch-active::after {
  animation: glitch-clip-2 0.4s linear;
  color: #ff0044;
  opacity: 0.6;
  left: 3px;
}

/* ── Title / Subtitle ─────────────────────────────────────── */
.hero__title {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  color: var(--color-accent-cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  animation: fade-in-up 0.6s ease 0.9s both;
}

/* ── Typewriter ───────────────────────────────────────────── */
.hero__typewriter {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.3vw, 1rem);
  color: var(--color-accent-cyan);
  letter-spacing: 0.06em;
  min-height: 2em;
  margin-bottom: var(--space-lg);
  animation: fade-in-up 0.6s ease 1.1s both;
}

.typewriter-text    { color: var(--color-accent-cyan); }
.typewriter-cursor  {
  color: var(--color-accent-cyan);
  font-weight: 300;
  animation: cursor-blink 0.8s step-end infinite;
  margin-left: 1px;
}

/* ── Contact Strip ────────────────────────────────────────── */
.hero__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  animation: fade-in-up 0.6s ease 1.3s both;
}

.hero__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1vw, 0.75rem);
}

.hero__contact-item svg { opacity: 0.6; flex-shrink: 0; }
.hero__contact-sep      { display: none; }

/* ── Action Links ─────────────────────────────────────────── */
.hero__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  animation: fade-in-up 0.6s ease 1.5s both;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.9vw, 0.72rem);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: hsla(220, 22%, 10%, 0.6);
  transition: all var(--transition-base);
  text-decoration: none;
}

.hero-link:hover {
  color: var(--color-accent-cyan);
  border-color: var(--color-accent-cyan);
  background: var(--color-glow-cyan);
  box-shadow: var(--glow-border-cyan);
  transform: translateY(-2px);
}

.hero-link svg { width: 12px; height: 12px; opacity: 0.7; transition: opacity var(--transition-fast); }
.hero-link:hover svg { opacity: 1; }

/* ── Site Return Link ─────────────────────────────────────── */
.hero__site-return {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.85vw, 0.7rem);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-in-up 0.6s ease 1.7s both;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.hero__site-return:hover { color: var(--color-accent-cyan); }

.hero__site-return::before {
  content: '\2190';
  font-size: 0.9em;
}

/* ── Responsive: tablet ───────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }
}

/* ── Responsive: mobile ───────────────────────────────────── */
@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: var(--space-2xl);
  }

  .hero__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-md);
  }

  .hero__content {
    max-width: 100%;
    order: 1;
  }

  .bubble-col--left {
    order: 2;
    align-items: center;
    width: 100%;
  }

  .bubble-col--right {
    order: 3;
    align-items: center;
    width: 100%;
  }

  .hero__connectors { display: none; }

  .hero__contact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .hero__contact-sep { display: inline; }
}
