/* ==========================================================================
   Hero lockup: the "two-step bridge" emblem, the wordmark, the tagline.
   The emblem is drawn as inline SVG on a 120x120 grid:
     · curved side  = the two Euler steps the student actually walks
     · dashed chord = the endpoint anchor that defines where it must land
     · two piers    = the two network evaluations
   ========================================================================== */

.hero__lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

/* ---------- emblem ---------- */

.emblem {
  position: relative;
  flex: none;
  width: 100px;
  height: 100px;
  color: var(--ink);
}

.emblem__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.emblem__halo {
  transform-origin: 60px 60px;
  animation: emblem-breathe 5.6s ease-in-out infinite;
}

@keyframes emblem-breathe {
  0%, 100% { opacity: 0.4; transform: scale(0.94); }
  50% { opacity: 0.72; transform: scale(1.04); }
}

.emblem__orbit {
  transform-origin: 60px 60px;
  animation: emblem-spin 44s linear infinite;
}

.emblem__ring-text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 1.9px;
  text-transform: uppercase;
}

@keyframes emblem-spin {
  to { transform: rotate(360deg); }
}

.emblem__steps {
  stroke-dasharray: 62;
  stroke-dashoffset: 62;
  animation: emblem-draw 2.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s forwards;
}

@keyframes emblem-draw {
  to { stroke-dashoffset: 0; }
}

.emblem__end {
  transform-origin: 80px 50px;
  animation: emblem-pulse 3.4s ease-in-out infinite;
}

@keyframes emblem-pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

.emblem__noise circle {
  animation: emblem-flicker 4.2s ease-in-out infinite;
}

.emblem__noise circle:nth-child(2) { animation-delay: 0.6s; }
.emblem__noise circle:nth-child(3) { animation-delay: 1.2s; }
.emblem__noise circle:nth-child(4) { animation-delay: 1.8s; }

@keyframes emblem-flicker {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

/* ---------- wordmark ---------- */

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.9vw, 2.45rem);
  font-weight: 400;
  /* line-height 1 keeps the lockup tight, but `background-clip: text` only
     paints inside the padding box — with a 1em box the descenders of "g" and
     "p" fall outside it and lose their fill. The padding extends the paint
     area; the equal negative margin keeps the visual rhythm unchanged. */
  line-height: 1;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  letter-spacing: -0.022em;
  /* a narrow light band sweeps across otherwise solid ink */
  background-image: linear-gradient(
    100deg,
    var(--ink) 0%,
    var(--ink) 42%,
    color-mix(in srgb, var(--blue) 72%, var(--ink)) 49%,
    color-mix(in srgb, var(--warm) 72%, var(--ink)) 56%,
    var(--ink) 64%,
    var(--ink) 100%
  );
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wordmark-shine 8.5s ease-in-out infinite;
}

@keyframes wordmark-shine {
  0% { background-position: 130% center; }
  45%, 100% { background-position: -130% center; }
}

/* the pill sits beside the wordmark instead of above it */

.hero__lockup .venue-pill {
  margin-bottom: 0;
}

/* ---------- tagline ---------- */

.hero__tagline {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .hero__lockup {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 20px;
  }
  .emblem {
    width: 64px;
    height: 64px;
  }
  .wordmark {
    font-size: 1.8rem;
  }
  .hero__lockup .venue-pill {
    grid-column: 1 / -1;
    justify-self: center;
    margin-inline: auto;
  }
  .hero__tagline {
    margin-top: 18px;
    font-size: 0.68rem;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emblem__orbit,
  .emblem__halo,
  .emblem__end,
  .emblem__noise circle,
  .wordmark {
    animation: none;
  }
  .emblem__steps {
    stroke-dashoffset: 0;
    animation: none;
  }
}
