/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(134, 93, 255, 0.35);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(134, 93, 255, 0.7);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(134, 93, 255, 0.35) transparent;
}

:root {
  --primary-dark: #0d0d14;
  --primary-blue: #865DFF;
  --primary-light-blue: #c4b1ff;
  --surface: rgba(25, 24, 37, 0.6);
  --surface-hover: rgba(134, 93, 255, 0.08);
  --border: rgba(134, 93, 255, 0.15);
  --border-hover: rgba(134, 93, 255, 0.4);
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-desc: rgba(255, 255, 255, 0.7);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--primary-dark);
  background-image:
    linear-gradient(rgba(134, 93, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 93, 255, 0.12) 1px, transparent 1px),
    radial-gradient(ellipse at 30% 20%, rgba(134, 93, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(64, 224, 208, 0.06) 0%, transparent 50%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vh, 4rem) clamp(1rem, 4vw, 3rem);
  /* Removed opacity:0 fade-in - it was causing NO_LCP in Lighthouse */
  perspective: 800px;
  perspective-origin: 50% 0%;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, var(--primary-dark) 100%);
  pointer-events: none;
}

/* ─── Portal vignette - colored energy outside arch ─── */
.portal-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

/* ─── Portal void - darkness inside arch ─── */
.portal-void {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    ellipse 55% 65% at 50% 38%,
    rgba(5, 3, 15, 0.85) 0%,
    rgba(8, 5, 20, 0.6) 40%,
    transparent 70%
  );
}

/* ─── Arch decoration ─── */
.arch-decoration {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 900px);
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: transform 0.05s linear, opacity 0.05s linear;
}

/* Fluid container - grows with viewport up to a max */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: clamp(480px, 45vw, 960px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 2.5vh, 2.5rem);
}

/* ─── Header ─── */
.header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* Profile photo - hologram reveal */
.header .avatar-wrap {
  width: clamp(60px, 5.4vw, 118px);
  height: clamp(60px, 5.4vw, 118px);
  margin-bottom: 0.4rem;
  position: relative;
  cursor: pointer;
}

.header .avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(134, 93, 255, 0.4);
  animation: holoReveal 2s ease forwards;
  position: relative;
  z-index: 1;
}

/* Hologram scanline overlay */
.header .avatar-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(134, 93, 255, 0.04) 2px,
    rgba(134, 93, 255, 0.04) 4px
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: scanlinesFade 2s ease forwards;
}

/* Hologram glow ring */
.header .avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(134, 93, 255, 0.0);
  box-shadow:
    0 0 0 1px rgba(134, 93, 255, 0),
    0 0 20px rgba(134, 93, 255, 0),
    0 0 40px rgba(64, 224, 208, 0);
  z-index: 0;
  animation: holoGlow 2s ease forwards;
}

@keyframes holoReveal {
  0%   {
    opacity: 0;
    filter: brightness(3) saturate(0) blur(4px);
    transform: scale(1.08);
  }
  15%  {
    opacity: 0.6;
    filter: brightness(2) saturate(0.3) blur(2px) hue-rotate(60deg);
    transform: scale(1.04);
  }
  30%  {
    opacity: 0.4;
    filter: brightness(2.5) saturate(0.1) blur(3px);
    transform: scale(1.06);
  }
  50%  {
    opacity: 0.8;
    filter: brightness(1.5) saturate(0.6) blur(1px) hue-rotate(20deg);
    transform: scale(1.02);
  }
  70%  {
    opacity: 0.9;
    filter: brightness(1.2) saturate(0.8) blur(0.5px);
    transform: scale(1.01);
  }
  85%  {
    opacity: 1;
    filter: brightness(1.1) saturate(1) blur(0px) hue-rotate(5deg);
    transform: scale(1.005);
  }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(1) blur(0px);
    transform: scale(1);
  }
}

@keyframes scanlinesFade {
  0%   { opacity: 0.8; }
  60%  { opacity: 0.4; }
  100% { opacity: 0; }
}

@keyframes holoGlow {
  0%   {
    border-color: rgba(64, 224, 208, 0.8);
    box-shadow: 0 0 0 2px rgba(134, 93, 255, 0.6), 0 0 30px rgba(134, 93, 255, 0.5), 0 0 60px rgba(64, 224, 208, 0.3);
  }
  40%  {
    border-color: rgba(134, 93, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(134, 93, 255, 0.4), 0 0 20px rgba(134, 93, 255, 0.3), 0 0 40px rgba(64, 224, 208, 0.15);
  }
  100% {
    border-color: rgba(134, 93, 255, 0.0);
    box-shadow: 0 0 0 1px rgba(134, 93, 255, 0), 0 0 16px rgba(134, 93, 255, 0.12), 0 0 0 rgba(64, 224, 208, 0);
  }
}

/* Hover - subtle hologram flicker */
.header .avatar-wrap:hover img {
  animation: holoHover 0.4s ease;
  border-color: rgba(134, 93, 255, 0.6);
  box-shadow: 0 0 20px rgba(134, 93, 255, 0.25);
}

@keyframes holoHover {
  0%   { filter: brightness(1) saturate(1); }
  20%  { filter: brightness(1.3) saturate(1.2) hue-rotate(10deg); }
  40%  { filter: brightness(0.9) saturate(0.8); }
  60%  { filter: brightness(1.2) saturate(1.1) hue-rotate(-5deg); }
  100% { filter: brightness(1) saturate(1); }
}

/* Name gradient */
.header h1 {
  font-family: 'Major Mono Display', monospace;
  font-size: clamp(1rem, 1.8vw, 2rem);
  font-weight: 400;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #fff 40%, var(--primary-light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .role {
  font-size: clamp(0.7rem, 1vw, 1.2rem);
  font-weight: 500;
  color: var(--primary-light-blue);
  letter-spacing: 0.5px;
}

.header .subtitle {
  font-size: clamp(0.65rem, 0.9vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: clamp(340px, 38vw, 700px);
}

/* ─── Links ─── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vh, 0.8rem);
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.2vw, 1.6rem);
  padding: clamp(0.85rem, 1.5vh, 1.5rem) clamp(1rem, 1.8vw, 2.2rem);
  background: linear-gradient(
    145deg,
    rgba(30, 27, 50, 0.85) 0%,
    rgba(20, 18, 38, 0.75) 100%
  );
  border: 1px solid rgba(134, 93, 255, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 0.4s ease forwards;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.18s; }
.link-card:nth-child(3) { animation-delay: 0.26s; }

.links + .section-label + .links .link-card:nth-child(1) { animation-delay: 0.34s; }
.links + .section-label + .links .link-card:nth-child(2) { animation-delay: 0.42s; }
.links + .section-label + .links .link-card:nth-child(3) { animation-delay: 0.50s; }

.contact-row .link-card:nth-child(1) { animation-delay: 0.58s; }
.contact-row .link-card:nth-child(2) { animation-delay: 0.64s; }

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link-card:hover {
  border-color: rgba(134, 93, 255, 0.3);
  background: linear-gradient(
    145deg,
    rgba(38, 34, 62, 0.9) 0%,
    rgba(25, 22, 46, 0.85) 100%
  );
  transform: translateY(-3px) scale(1.005);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 16px 40px rgba(134, 93, 255, 0.08),
    0 1px 0 rgba(134, 93, 255, 0.15);
}

.link-card:active {
  transform: translateY(-1px) scale(1.002);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

.link-icon {
  width: clamp(34px, 3.2vw, 60px);
  height: clamp(34px, 3.2vw, 60px);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(50, 40, 80, 0.9), rgba(25, 20, 50, 0.8));
  border: 1px solid rgba(134, 93, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: clamp(0.9rem, 1.4vw, 1.6rem);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover .link-icon {
  border-color: rgba(134, 93, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 4px 10px rgba(134, 93, 255, 0.15);
}

.link-icon img,
.link-icon svg {
  width: 55%;
  height: 55%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.link-content {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: clamp(0.75rem, 1.1vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.link-desc {
  font-size: clamp(0.58rem, 0.85vw, 0.95rem);
  color: var(--text-desc);
  line-height: 1.4;
}

.link-arrow {
  font-size: clamp(0.7rem, 0.9vw, 1.1rem);
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}

.link-card:hover .link-arrow {
  transform: translateX(3px);
  color: var(--primary-light-blue);
}

/* ─── Section divider ─── */
.section-label {
  font-family: 'Major Mono Display', monospace;
  font-size: clamp(0.5rem, 0.75vw, 0.8rem);
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: lowercase;
  align-self: stretch;
  margin-top: 0.3rem;
  margin-bottom: -0.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: cardIn 0.4s ease 0.28s forwards;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(134, 93, 255, 0.35), transparent);
  border-radius: 1px;
}

/* ─── Status pill ─── */
.status-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: linear-gradient(
    135deg,
    rgba(64, 224, 208, 0.12) 0%,
    rgba(64, 224, 208, 0.05) 100%
  );
  border: 1px solid rgba(64, 224, 208, 0.3);
  border-top-color: rgba(64, 224, 208, 0.5);
  border-radius: 20px;
  font-size: clamp(0.55rem, 0.8vw, 0.7rem);
  color: rgba(64, 224, 208, 0.95);
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(64, 224, 208, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: pillAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

@keyframes pillAppear {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.status-pill[data-active="true"] {
  display: inline-flex;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7ffff4, #40e0d0);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(64, 224, 208, 0.8), 0 0 12px rgba(64, 224, 208, 0.3);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px rgba(64, 224, 208, 0.8), 0 0 12px rgba(64, 224, 208, 0.3);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.8);
    box-shadow: 0 0 3px rgba(64, 224, 208, 0.4), 0 0 6px rgba(64, 224, 208, 0.15);
  }
}

/* ─── Link meta (arrow) ─── */
.link-meta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  width: clamp(1rem, 1.5vw, 1.4rem);
  height: 1.2em;
}

.link-arrow,
.link-count {
  position: absolute;
  right: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.link-arrow {
  font-size: clamp(0.7rem, 0.9vw, 1.1rem);
  color: var(--text-muted);
  opacity: 1;
  transform: translateX(0);
}

.link-count {
  font-size: clamp(0.42rem, 0.6vw, 0.58rem);
  font-family: 'Major Mono Display', monospace;
  color: var(--primary-light-blue);
  opacity: 0;
  transform: translateX(4px);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.link-card:hover .link-arrow {
  opacity: 0;
  transform: translateX(-4px);
  color: var(--primary-light-blue);
}

.link-card:hover .link-count.has-count {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Click count tooltip ─── */
.click-tooltip {
  display: none;
}

/* ─── Email reveal ─── */
.link-email-reveal {
  font-size: clamp(0.5rem, 0.75vw, 0.65rem);
  color: var(--primary-light-blue);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.2s ease;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.link-email-reveal::after {
  content: ' - click to copy';
  font-size: 0.85em;
  opacity: 0.6;
  font-style: italic;
}

.email-card:hover .link-email-reveal {
  opacity: 1;
  max-height: 2rem;
}

/* ─── Contact row ─── */
.contact-row {
  display: flex;
  gap: clamp(0.5rem, 1vw, 0.8rem);
  width: 100%;
}

.contact-row .link-card {
  flex: 1;
  justify-content: center;
  padding: clamp(1.1rem, 2vh, 1.8rem) 1rem;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-row .link-content {
  flex: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.contact-row .link-title {
  margin-bottom: 0;
  text-align: center;
}

.contact-row .link-arrow {
  display: none;
}

.contact-row .link-icon {
  width: clamp(32px, 3vw, 52px);
  height: clamp(32px, 3vw, 52px);
}

/* ─── Connection canvas ─── */
.connection-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Event Stream ─── */
.event-stream-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.2rem);
  margin-top: 0.5rem;
  opacity: 0;
  animation: cardIn 0.5s ease 0.9s forwards;
}

.stream-node {
  display: flex;
  gap: 0.7rem;
  padding: clamp(0.6rem, 1.2vh, 1rem) clamp(0.7rem, 1.4vw, 1.2rem);
  background: linear-gradient(145deg, rgba(30, 27, 50, 0.9), rgba(18, 15, 38, 0.85));
  border: 1px solid rgba(134, 93, 255, 0.2);
  border-top-color: rgba(134, 93, 255, 0.35);
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.3);
  align-items: center;
}

.stream-node-icon {
  width: clamp(24px, 2.4vw, 36px);
  height: clamp(24px, 2.4vw, 36px);
  color: var(--primary-light-blue);
  opacity: 0.85;
  flex-shrink: 0;
}

.stream-node-icon svg {
  width: 100%;
  height: 100%;
}

.stream-node-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stream-node-title {
  font-size: clamp(0.6rem, 1vw, 0.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}

.stream-node-sub {
  font-size: clamp(0.45rem, 0.7vw, 0.6rem);
  color: var(--text-muted);
  font-family: 'Major Mono Display', monospace;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

.stream-pipe-wrap {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.stream-pipe-svg {
  width: 100%;
  height: clamp(60px, 7vw, 100px);
  display: block;
}

.stream-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(60px, 7vw, 100px);
  pointer-events: none;
}

.stream-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.stream-label span {
  font-size: clamp(0.5rem, 0.75vw, 0.65rem);
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.stream-label-sub {
  font-family: 'Major Mono Display', monospace !important;
  opacity: 0.55;
  font-size: clamp(0.42rem, 0.65vw, 0.55rem) !important;
}

/* ─── Git graph convergence ─── */
.git-graph-wrap {
  width: 100%;
  position: relative;
  height: clamp(110px, 13vw, 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  opacity: 0;
  animation: cardIn 0.5s ease 1s forwards;
}

.system-connector {
  margin: -1rem 0 -0.5rem;
}

.git-graph-canvas {
  display: none;
}

.wave-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
  mask-image: radial-gradient(ellipse 85% 100% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 100% at 50% 50%, black 40%, transparent 100%);
}

/* ─── Feed SVG (unmasked, for vertical connection line) ─── */
.feed-svg {
  position: absolute;
  top: clamp(-80px, -8vh, -60px);
  left: 0;
  width: 100%;
  height: calc(100% + clamp(80px, 8vh, 60px));
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}
.git-graph-center {
  position: relative;
  z-index: 2;
  min-width: clamp(160px, 18vw, 260px);
  background: rgba(6, 4, 16, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(134, 93, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  will-change: transform;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(134, 93, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.8);
  transition: box-shadow 0.3s ease;
  cursor: default;
}

.git-graph-center:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 36px rgba(134, 93, 255, 0.2),
    0 8px 40px rgba(0, 0, 0, 0.7);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(134, 93, 255, 0.12);
}

.terminal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.td-red    { background: rgba(255, 95, 86, 0.7); }
.td-yellow { background: rgba(255, 189, 46, 0.7); }
.td-green  { background: rgba(39, 201, 63, 0.7); }

.terminal-title {
  font-family: 'Major Mono Display', monospace;
  font-size: clamp(0.38rem, 0.55vw, 0.48rem);
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.terminal-body {
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Major Mono Display', monospace;
  font-size: clamp(0.42rem, 0.65vw, 0.55rem);
  line-height: 1.4;
}

.t-prompt { color: rgba(134, 93, 255, 0.6); flex-shrink: 0; }
.t-cmd    { color: rgba(196, 177, 255, 0.7); }
.t-output { padding-left: 10px; }
.t-key    { color: rgba(255, 255, 255, 0.25); min-width: 7ch; }
.t-val    { color: rgba(255, 255, 255, 0.55); }
.t-ok     { color: rgba(64, 224, 208, 0.75); }

.t-val-big {
  font-size: clamp(0.9rem, 1.8vw, 1.4rem);
  color: rgba(64, 224, 208, 0.9);
  letter-spacing: 2px;
  line-height: 1;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.t-val-big.loaded {
  opacity: 1;
}

.t-loading {
  font-size: 0.6em;
  letter-spacing: 4px;
  animation: loadingPulse 1.2s ease-in-out infinite;
  color: rgba(64, 224, 208, 0.4);
}

@keyframes loadingPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.t-visitor-text {
  color: rgba(64, 224, 208, 0.7);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: lowercase;
}

.terminal-divider {
  height: 1px;
  background: rgba(134, 93, 255, 0.1);
  margin: 3px 0;
}

.connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134, 93, 255, 0.2), transparent);
}

.connector-label {
  font-family: 'Major Mono Display', monospace;
  font-size: clamp(0.38rem, 0.55vw, 0.48rem);
  color: rgba(134, 93, 255, 0.35);
  letter-spacing: 1px;
  white-space: nowrap;
}

#visitor-num-line,
#visitor-return-line {
  visibility: hidden;
  min-height: 1.4em;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s, visibility 0s linear 0s;
}

#visitor-num-line.show,
#visitor-return-line.show {
  visibility: visible;
  opacity: 1;
}

/* ─── Commit message ─── */
.commit-msg {
  display: none;
}

/* ─── Footer ─── */
.footer {
  font-size: clamp(0.65rem, 0.9vw, 1rem);
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  opacity: 0;
  animation: cardIn 0.4s ease 0.75s forwards;
  position: relative;
  z-index: 1;
  padding: 4px 16px;
  background: var(--primary-dark);
  border-radius: 4px;
}

.footer a {
  color: var(--primary-light-blue);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.2s ease;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-light-blue);
  transition: width 0.25s ease;
}

.footer a:hover {
  color: #fff;
}

.footer a:hover::after {
  width: 100%;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-blue);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── View count (used by git graph center) ─── */
.view-count {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.view-count.visible {
  opacity: 1;
}

/* ─── Large screen ─── */
@media (min-width: 1800px) {
  .arch-decoration {
    width: min(85vw, 1400px);
  }
  .event-stream-wrap {
    max-width: min(85vw, 1200px);
  }
  .git-graph-wrap {
    height: clamp(100px, 8vw, 180px);
  }
  .git-graph-count {
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  }
}

@media (min-width: 2400px) {
  .arch-decoration {
    width: min(80vw, 1800px);
  }
  .event-stream-wrap {
    max-width: min(80vw, 1600px);
  }
  .git-graph-wrap {
    height: clamp(120px, 7vw, 220px);
  }
}
/* ─── Mobile counts pill ─── */
.mobile-counts {
  display: none;
}

@media (max-width: 520px) {
  .mobile-counts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(8, 6, 18, 0.6);
    border: 1px solid rgba(134, 93, 255, 0.15);
    border-radius: 20px;
    font-family: 'Major Mono Display', monospace;
    font-size: 0.5rem;
    color: rgba(196, 176, 255, 0.945);
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-top: -0.5rem;
  }
  .mobile-counts.visible { opacity: 1; }
  .mobile-counts-sep { color: rgba(134, 93, 255, 0.35); }
  .footer {
    background: transparent;
    border-radius: 0;
    padding: 0;
  }
}

@media (max-width: 520px) {
  body {
    padding: 2rem 1rem;
    align-items: flex-start;
  }
  .container {
    max-width: 100%;
  }
  /* Hide heavy canvas animations on mobile, keep portal arch */
  .event-stream-wrap,
  .git-graph-wrap,
  .commit-msg {
    display: none;
  }
}
