/* ════════════════════════════════════════
   HERO — centered, 2-line title, silver-chip subtitle, particles bg
════════════════════════════════════════ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* ── Title (2 lines) ── */
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--c-text);
  margin: 0;
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.025em;
  /* Silver shimmer on the italic accent */
  background: linear-gradient(
    100deg,
    var(--silver-3) 0%,
    var(--silver-1) 35%,
    #ffffff         50%,
    var(--silver-1) 65%,
    var(--silver-3) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 5s ease infinite;
}

.hero__line {
  display: block;
}

/* Word mask — extra padding so descenders aren't clipped */
.hero__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.04em 0.18em;
  margin: -0.08em -0.04em -0.18em;
}

.hero__word + .hero__word { margin-left: 0.32em; }

.hero__word > span {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  will-change: transform, opacity;
}

/* ── Subtitle as a silver shimmer chip ── */
.hero__sub {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 1.5em;
  background: linear-gradient(
    110deg,
    var(--silver-3) 0%,
    var(--silver-1) 25%,
    #ffffff         50%,
    var(--silver-1) 75%,
    var(--silver-3) 100%);
  background-size: 220% 100%;
  animation: silver-chip-shimmer 5s linear infinite;
  color: #0a0a0a;
  font-family: var(--f-body);
  font-size: clamp(0.85rem, 1.05vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0;
  max-width: 640px;
  position: relative;
  box-shadow:
    inset 0 1px 0   rgba(255, 255, 255, 0.55),
    inset 0 -1px 0  rgba(0, 0, 0, 0.12),
    0 12px 28px -10px rgba(216, 216, 221, 0.45),
    0 4px 14px      rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(16px);
}

@keyframes silver-chip-shimmer {
  0%   { background-position:   0% 50%; }
  100% { background-position: 220% 50%; }
}

@keyframes text-shimmer {
  0%   { background-position:   0% 50%; }
  100% { background-position: 220% 50%; }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: 1.25rem;
  }
  .hero__inner { gap: 1.25rem; }
  .hero__title {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
    letter-spacing: -0.022em;
    line-height: 1.08;
  }
  .hero__word + .hero__word { margin-left: 0.22em; }
  .hero__sub {
    font-size: 0.76rem;
    padding: 0.55rem 1rem;
    max-width: 94vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__word > span,
  .hero__sub { transform: none; opacity: 1; }
  .hero__title em,
  .hero__sub { animation: none; }
}
