/* hero.css — Hero banner, video/image, social icons */

/* ── Hero banner ── */
.hero {
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 300px;
  background: #1a1513;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero img,
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(16,12,10,0.55) 0%, rgba(16,12,10,0.15) 42%, rgba(16,12,10,0.35) 100%),
    linear-gradient(180deg, rgba(16,12,10,0.12) 0%, rgba(16,12,10,0.82) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fdf9f3;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.hero-mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(253, 249, 243, 0.75);
}

.hero-caption {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 249, 243, 0.55);
  max-width: 220px;
  text-align: right;
}

.hero-bottom h1 {
  font: 700 clamp(2.7rem, 6.5vw, 4.8rem) / 0.94 var(--serif);
  letter-spacing: -0.045em;
  margin-bottom: 14px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero-role {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8b89a;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* ── Hero social icons ── */
.hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fdf9f3;
  background: rgba(253, 249, 243, 0.08);
  border: 1px solid rgba(253, 249, 243, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: color 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.hero-social a:hover {
  color: #1a1513;
  background: #e8b89a;
  border-color: #e8b89a;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.hero-social a:focus-visible {
  outline: 2px solid #e8b89a;
  outline-offset: 3px;
}
.hero-social svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

/* GitHub "click me" pulse */
.hero-social .gh-pulse {
  position: relative;
  animation: gh-glow 1.8s ease-in-out infinite;
}
.hero-social .gh-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: gh-ring 1.8s ease-in-out infinite;
}
@keyframes gh-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155, 65, 35, 0); }
  50%      { box-shadow: 0 0 16px 3px rgba(200, 96, 60, 0.55); }
}
@keyframes gh-ring {
  0%   { transform: scale(0.8); opacity: 0.9; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-social .gh-pulse { animation: none !important; box-shadow: none !important; }
  .hero-social .gh-pulse::after { animation: none !important; opacity: 0 !important; }
}

.inner { padding: 34px 38px 40px; }

