/**
 * about.css — About page styles (extracted from inline <style>).
 * Mobile-first with min-width breakpoints.
 */

/* ========== Container ========== */

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 1rem 4rem;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-header .headline {
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: clamp(0.75rem, 3vw, 1.8rem);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(20, 184, 166, 0.2);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.about-header .tagline {
  font-family: 'Press Start 2P', monospace;
  color: var(--accent);
  font-size: clamp(0.8rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1.5rem;
  line-height: 1.8;
}

/* ========== Team section ========== */

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.team-member {
  text-align: center;
  max-width: 350px;
  width: 100%;
}

.avatar {
  width: 100px;
  height: 100px;
  border: 2px solid var(--accent);
  background: transparent;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  color: var(--accent);
}

.team-member h3 {
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: clamp(0.6rem, 2vw, 0.9rem);
  margin-bottom: 0.5rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-member .role {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.team-member .bio {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.bio-link {
  color: var(--accent);
  text-decoration: none;
}

.bio-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== "This Could Be You" — marching ants ========== */

.team-member-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.team-member:last-child .avatar {
  border: none;
  position: relative;
  overflow: visible;
}

.avatar-question {
  position: relative;
  z-index: 1;
}

.team-member:last-child .avatar svg.ants-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.team-member:last-child .avatar svg.ants-border rect {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  transition: stroke 0.3s ease;
}

.team-member:last-child:hover .avatar svg.ants-border rect {
  stroke: white;
  animation: march 0.4s linear infinite;
}

.team-member:last-child:hover .avatar {
  color: white;
}

.team-member:last-child:hover .role {
  color: white;
}

.team-member:last-child .avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f97316 0%, #14b8a6 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 0;
  clip-path: inset(0);
}

.team-member:last-child .avatar.filling::before {
  transform: scaleX(1);
  transition: transform 1.2s ease-out;
}

@media (pointer: coarse) {
  .team-member:last-child .avatar.filling::before {
    transition: transform 0.2s ease-out;
  }
}

.team-member:last-child .avatar.filling {
  color: #0a0a0f;
}

@keyframes march {
  to { stroke-dashoffset: -16; }
}

/* ========== Philosophy section ========== */

.philosophy {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 1rem;
  border: 1px solid rgba(20, 184, 166, 0.3);
  background: rgba(20, 184, 166, 0.02);
}

.philosophy h2 {
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: clamp(0.65rem, 2vw, 1rem);
  margin-bottom: 1.5rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.philosophy p {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 1.8rem;
  font-size: 0.9rem;
}

.philosophy .lead {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text);
}

.rainbow-text {
  background: linear-gradient(90deg, #ef4444, #f97316, #fbbf24, #22c55e, #14b8a6, #3b82f6, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Stack section ========== */

.stack {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 3rem;
}

.stack h3 {
  font-family: 'Press Start 2P', monospace;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.stack-subtitle {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.stack-body {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: none;
  margin: 0 auto 2rem;
  text-align: left;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.stack-item {
  font-family: 'Space Mono', 'Courier New', monospace;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: border-color 0.3s, color 0.3s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.stack-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease-out;
  z-index: 0;
}

.stack-item.filling::before {
  transform: scaleX(1);
}

@media (pointer: coarse) {
  .stack-item.filling::before {
    transition: transform 0.2s ease-out;
  }
}

.stack-item.filling {
  color: #0a0a0f;
}

.stack-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stack-item span {
  position: relative;
  z-index: 1;
}

/* ========== Back link ========== */

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.back-link .back-arrow {
  font-size: 1.2em;
  vertical-align: middle;
  margin-right: 0.3em;
}

.back-link:hover {
  text-decoration: underline;
}

/* ========== Responsive: sm (640px+) ========== */

@media (min-width: 640px) {
  .about-container {
    padding: 6rem 1.5rem 5rem;
  }

  .about-header {
    margin-bottom: 4rem;
  }

  .team {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
  }

  .team-member {
    flex: 0 1 300px;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }

  .team-member .role {
    font-size: 1.1rem;
  }

  .team-member .bio {
    font-size: 1rem;
  }

  .philosophy p {
    font-size: 0.95rem;
  }

  .stack-item {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .stack-list {
    gap: 1rem;
  }

  .back-link {
    font-size: 0.7rem;
  }
}

/* ========== Responsive: md (768px+) ========== */

@media (min-width: 768px) {
  .about-container {
    padding: 8rem 2rem 6rem;
  }

  .about-header {
    margin-bottom: 6rem;
  }

  .team {
    gap: 4rem;
    margin-bottom: 6rem;
  }

  .avatar {
    width: 120px;
    height: 120px;
    font-size: 2rem;
  }

  .team-member .role {
    font-size: 1.2rem;
  }

  .team-member .bio {
    font-size: 1.1rem;
  }

  .philosophy {
    padding: 3rem;
    margin-bottom: 6rem;
  }

  .philosophy p {
    font-size: 1rem;
  }

  .stack {
    padding: 2rem;
    margin-bottom: 4rem;
  }

  .stack h3 {
    font-size: 0.85rem;
  }

  .stack-subtitle {
    font-size: 0.9rem;
  }

  .stack-body {
    font-size: 1rem;
  }

  .stack-item {
    font-size: 1.1rem;
  }
}

/* ========== Responsive: lg (1024px+) ========== */

@media (min-width: 1024px) {
  .about-header .headline {
    font-size: clamp(1rem, 3vw, 1.8rem);
  }
}
