/* ---- Main column (sits above particle canvas) ---- */
main.column {
  position: relative;
  z-index: 1;
  padding-top: 48px;
  padding-bottom: 80px;
}

@media (max-width: 767px) {
  main.column {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 32px;
    gap: 12px;
  }
  main.column > .theme-toggle {
    align-self: flex-end;
  }
  .card {
    padding: 32px 20px 28px;
    border-radius: 20px;
  }
}

/* ---- Card surface (glass) ---- */
.card {
  background: rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border-radius: 28px;
  border: 1px solid rgba(226, 228, 239, 0.8);
  box-shadow: 0 4px 40px rgba(13, 15, 26, 0.08);
  padding: 44px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .card {
  background: rgba(18, 18, 18, 0.38);
  border-color: rgba(34, 34, 34, 0.8);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

/* ---- Avatar ---- */
.avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  flex-shrink: 0;
  border: 2px solid var(--line);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: var(--muted);
  user-select: none;
}

/* ---- Name ---- */
.name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

/* ---- Affiliation ---- */
.affiliation {
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ---- Bio ---- */
.bio {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
  max-width: 100%;
  margin-bottom: 0;
}

/* ---- Bio keywords ---- */
.bio-keywords {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  margin-bottom: 20px;
  width: 100%;
}

@media (max-width: 479px) {
  .bio-keywords {
    flex-wrap: wrap;
  }
}

.bio-keywords::-webkit-scrollbar { display: none; }

.bio-keyword {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---- Link buttons ---- */
.link-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
}

.btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  text-align: center;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}

.btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  opacity: 0.82;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--accent-soft);
  border-color: var(--ink);
}

/* ---- Social icon cards (inside card) ---- */
.card-socials {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  margin-bottom: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 360px) {
  .card-socials { gap: 4px; }
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 0;
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .social-icon { width: 32px; height: 32px; }
}

.social-icon:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.social-icon .svg-inline--fa {
  width: 16px;
  height: 16px;
}

/* ---- Scroll indicator ---- */
.scroll-indicator {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}

.scroll-indicator.visible { display: flex; }
.scroll-indicator.faded   { opacity: 0; pointer-events: none; }

.scroll-indicator svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bounce-down 1.4s ease infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ---- Footer (fixed, full-width on desktop; static below card on mobile) ---- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px 24px;
  z-index: 50;
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 767px) {
  .site-footer {
    position: static;
    padding: 14px 0 24px;
    margin-top: 20px;
  }
}

/* Three-column grid: typewriter | copyright (centered) | empty */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
}

/* ---- Typewriter ---- */
.typewriter-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

#typewriter-text {
  font-size: 11.5px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.typewriter-cursor {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--muted);
  margin-left: 2px;
  vertical-align: middle;
  flex-shrink: 0;
  opacity: 0.7;
  animation: blink 1.1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0; }
}

/* ---- Copyright (center column) ---- */
.copyright {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ---- Narrow viewport ---- */
@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
  }
}
