/* =============================================================
   BIO PAGE — mobile-first link-in-bio layout
   ============================================================= */

/* ── CANVAS (desktop wrapper + dot grid) ─────────────────────── */
.bio-canvas {
  min-height: 100svh;
  background: #030303;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

@media (min-width: 520px) {
  .bio-canvas {
    padding: 48px 24px 72px;
    align-items: flex-start;
  }

  /* Animated dot grid — desktop only */
  .bio-canvas::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.20) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    animation: dotCrawl 22s linear infinite;
    pointer-events: none;
    z-index: 0;
  }

  @keyframes dotCrawl {
    to { background-position: 26px 26px; }
  }
}

/* ── CARD ─────────────────────────────────────────────────────── */
.bio-card {
  width: 100%;
  max-width: 480px;
  background: var(--c-bg);
  min-height: 100svh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 520px) {
  .bio-card {
    min-height: auto;
    border-radius: 24px;
    border: 1px solid rgba(249, 249, 249, 0.07);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85);
    overflow: hidden;
  }
}

/* ── PROFILE ──────────────────────────────────────────────────── */
.bio-profile {
  padding: 44px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.bio-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-1e);
  border: 2px solid rgba(249, 249, 249, 0.1);
  position: relative;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.bio-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  color: rgba(249, 249, 249, 0.35);
  letter-spacing: -0.03em;
}

.bio-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--c-f9f9f9);
  line-height: 1.1;
}

.bio-handle {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-f9-60);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
}
.bio-handle:hover { color: var(--c-f9f9f9); }

.bio-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-f9-60);
  max-width: 300px;
  margin-top: 2px;
}

/* ── MARQUEE ──────────────────────────────────────────────────── */
.bio-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(249, 249, 249, 0.06);
  border-bottom: 1px solid rgba(249, 249, 249, 0.06);
  padding: 11px 0;
  background: rgba(249, 249, 249, 0.02);
  cursor: default;
}

.bio-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}
.bio-marquee-wrap:hover .bio-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.bio-marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(249, 249, 249, 0.4);
  letter-spacing: 0.05em;
  white-space: nowrap;
  gap: 20px;
}
.bio-marquee-item::after {
  content: '·';
  opacity: 0.3;
}

/* ── SHARED SECTION WRAPPER ───────────────────────────────────── */
.bio-section {
  padding: 22px 20px;
  border-top: 1px solid rgba(249, 249, 249, 0.05);
}

.bio-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(249, 249, 249, 0.3);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ── BENTO LINKS ──────────────────────────────────────────────── */
.bio-bento {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bio-bento-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: rgba(249, 249, 249, 0.04);
  border: 1px solid rgba(249, 249, 249, 0.05);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s, transform 0.18s;
}
.bio-bento-item:hover {
  background: rgba(249, 249, 249, 0.07);
  transform: translateY(-1px);
}
.bio-bento-item:active { transform: none; }

.bio-bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(249, 249, 249, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-f9f9f9);
  flex-shrink: 0;
}
.bio-bento-icon svg { width: 17px; height: 17px; }

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

.bio-bento-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-f9f9f9);
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.bio-bento-sub {
  font-size: 12px;
  color: var(--c-f9-60);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bio-bento-arrow {
  color: rgba(249, 249, 249, 0.2);
  flex-shrink: 0;
  transition: color 0.18s, transform 0.18s;
}
.bio-bento-arrow svg { width: 13px; height: 13px; }
.bio-bento-item:hover .bio-bento-arrow {
  color: rgba(249, 249, 249, 0.5);
  transform: translate(1px, -1px);
}

/* ── COLLABORATE ──────────────────────────────────────────────── */
.bio-collab {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-email-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(249, 249, 249, 0.04);
  border: 1px solid rgba(249, 249, 249, 0.06);
  border-radius: 14px;
}

.bio-email-address {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-f9-60);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bio-copy-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  background: rgba(249, 249, 249, 0.08);
  border: 1px solid rgba(249, 249, 249, 0.08);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-f9f9f9);
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: -0.01em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.bio-copy-btn:hover { background: rgba(249, 249, 249, 0.14); }
.bio-copy-btn.is-copied {
  background: rgba(255, 70, 46, 0.12);
  border-color: rgba(255, 70, 46, 0.3);
  color: var(--c-accent);
}

.bio-consultation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: rgba(249, 249, 249, 0.04);
  border: 1px solid rgba(249, 249, 249, 0.06);
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.bio-consultation-card:hover {
  background: rgba(249, 249, 249, 0.07);
  transform: translateY(-1px);
}

.bio-consultation-info { flex: 1; }

.bio-consultation-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-f9f9f9);
  letter-spacing: -0.015em;
  margin-bottom: 5px;
}

.bio-consultation-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-f9-60);
}

.bio-consultation-cta {
  flex-shrink: 0;
  padding: 9px 16px;
  background: var(--c-f9f9f9);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-bg);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.bio-consultation-card:hover .bio-consultation-cta { opacity: 0.85; }

/* ── PROJECTS CAROUSEL ────────────────────────────────────────── */
.bio-projects-outer {
  position: relative;
}

.bio-projects-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px 8px;
  margin: 0 -20px;
}
.bio-projects-scroll::-webkit-scrollbar { display: none; }

.bio-project-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(249, 249, 249, 0.04);
  border: 1px solid rgba(249, 249, 249, 0.06);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s;
}
.bio-project-card:hover { transform: translateY(-2px); }

.bio-project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--c-1e);
  overflow: hidden;
}
.bio-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
  display: block;
}
.bio-project-card:hover .bio-project-image img { transform: scale(1.05); }

.bio-project-body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.bio-project-cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.bio-project-cat {
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(249, 249, 249, 0.06);
  border-radius: 100px;
  color: rgba(249, 249, 249, 0.45);
  letter-spacing: 0.01em;
}

.bio-project-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-f9f9f9);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bio-project-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(249, 249, 249, 0.3);
  margin-top: auto;
  padding-top: 4px;
  transition: color 0.2s;
}
.bio-project-arrow svg { width: 10px; height: 10px; }
.bio-project-card:hover .bio-project-arrow { color: rgba(249, 249, 249, 0.6); }

/* ── FOOTER ───────────────────────────────────────────────────── */
.bio-foot {
  padding: 24px;
  text-align: center;
  border-top: 1px solid rgba(249, 249, 249, 0.05);
  margin-top: auto;
}
.bio-foot p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(249, 249, 249, 0.18);
}
