#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Thin vertical rule on right edge */
#hero::after {
  content: '';
  position: absolute;
  top: 8%;
  right: 0;
  width: 1px;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
  opacity: 0.35;
}

.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 52px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Avatar — static square with corner marks */
.hero-avatar-wrap { flex-shrink: 0; padding-top: 6px; }

.hero-avatar-frame {
  position: relative;
  width: 88px;
  height: 88px;
}

.hero-avatar-frame::before,
.hero-avatar-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.hero-avatar-frame::before {
  top: -4px; left: -4px;
  border-top: 1.5px solid var(--red);
  border-left: 1.5px solid var(--red);
}
.hero-avatar-frame::after {
  bottom: -4px; right: -4px;
  border-bottom: 1.5px solid var(--red);
  border-right: 1.5px solid var(--red);
}

.hero-avatar,
.hero-avatar-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.hero-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

/* Text block */
.hero-text { min-width: 0; }

.hero-text h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 16px;
}

.hero-handle {
  font-family: 'Geist Mono', monospace;
  font-size: 0.78rem;
  color: var(--red);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-bio {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-sub);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Stats as a small ruled table */
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.hero-stat {
  padding: 10px 20px 10px 0;
  margin-right: 20px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 1.6rem;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-bottom: 3px;
}
.hero-stat-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Contacts */
.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 22px;
}
.hero-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.73rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-contact-link:hover { color: var(--red); }
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.73rem;
  color: var(--text-dim);
}
.hero-meta-item.hidden { display: none; }

/* Language bar */
.hero-lang-wrap { margin-bottom: 0; }
.hero-lang-wrap.hidden { display: none; }
.hero-lang-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
}
.hero-lang-bar {
  display: flex;
  height: 2px;
  gap: 1px;
  margin-bottom: 10px;
}
.lang-bar-seg {
  display: block;
  height: 100%;
  min-width: 4px;
  transition: opacity 0.15s;
}
.lang-bar-seg:hover { opacity: 0.6; }
.hero-lang-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.lang-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.66rem;
  color: var(--text-sub);
}
.lang-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lang-legend-pct { color: var(--text-dim); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}
.scroll-indicator.hidden { opacity: 0; }
.scroll-indicator-text {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-indicator-arrow { animation: bounce-arrow 2s ease-in-out infinite; }
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-text h1 { font-size: clamp(2.8rem, 13vw, 3.8rem); }
  .hero-bio { max-width: 100%; }
  #hero::after { display: none; }
}
@media (max-width: 480px) {
  .hero-avatar-frame, .hero-avatar, .hero-avatar-placeholder { width: 72px; height: 72px; }
  .hero-stat-num { font-size: 1.3rem; }
  .hero-stat { padding: 8px 14px 8px 0; margin-right: 14px; }
}
