/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: grid;
  place-items: center;

  min-height: 100vh;
  min-height: 100svh;

  padding: clamp(7rem, 16vh, 11rem) var(--gutter) clamp(6rem, 13vh, 9rem);

  background: var(--bg);
  text-align: center;
}

/* ---------- Background layers ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Faint blueprint grid, fading toward the edges */
.hero__grid {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;

  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 5%, transparent 72%);
          mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 5%, transparent 72%);
}

/* Drifting warm glow behind the headline */
.hero__glow {
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(1150px, 135vw);
  aspect-ratio: 1;
  transform: translateX(-50%);

  background:
    radial-gradient(circle at 50% 50%,
      rgba(251, 133, 0, 0.22) 0%,
      rgba(255, 183, 3, 0.10) 34%,
      transparent 66%);

  filter: blur(24px);
  animation: heroDrift 14s ease-in-out infinite;
}

@keyframes heroDrift {
  0%, 100% { transform: translateX(-50%) translateY(0)     scale(1); }
  50%      { transform: translateX(-50%) translateY(3.5%)  scale(1.07); }
}

/* Cursor-following spotlight (accent 1) */
.hero__spot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);

  background: radial-gradient(
    620px circle at var(--mx, 50%) var(--my, 32%),
    rgba(33, 158, 188, 0.14),
    transparent 62%
  );
}

.hero.has-pointer .hero__spot { opacity: 1; }

/* Deep accent-2 vignette to seat everything on the black */
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 85% at 50% 110%,
      rgba(2, 48, 71, 0.55) 0%, transparent 62%),
    linear-gradient(to bottom, transparent 62%, rgba(0, 0, 0, 0.75) 100%);
}

/* ---------- Content ---------- */
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin-inline: auto;
}

/* Staggered entrance */
.hero__inner > * {
  animation: heroFadeUp 0.9s var(--ease-out) both;
}
.hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.16s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.30s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.42s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.52s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Eyebrow ---------- */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.5rem 1.05rem 0.5rem 0.85rem;
  border: 1px solid rgba(255, 183, 3, 0.24);
  border-radius: var(--radius-pill);

  background: rgba(255, 183, 3, 0.06);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);

  font-size: 0.735rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--secondary);
}

.hero__dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-1);
}

.hero__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-1);
  animation: heroPulse 2.2s ease-out infinite;
}

@keyframes heroPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(3.4); opacity: 0; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* ---------- Headline ---------- */
.hero__title {
  max-width: 17ch;
  margin: 1.6rem auto 0;

  font-size: clamp(2.5rem, 7.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.hero__accent {
  position: relative;
  display: inline-block;

  background: linear-gradient(100deg, var(--primary) 0%, var(--secondary) 55%, var(--primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;

  animation: heroSheen 7s ease-in-out infinite;
}

@keyframes heroSheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Hand-drawn underline, drawn on load */
.hero__underline {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.26em;
  overflow: visible;
  pointer-events: none;
}

.hero__underline path {
  fill: none;
  stroke: var(--accent-1);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.9;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: heroDraw 1.1s 1s var(--ease-out) forwards;
}

@keyframes heroDraw {
  to { stroke-dashoffset: 0; }
}

/* ---------- Lead paragraph ---------- */
.hero__lead {
  max-width: 60ch;
  margin: 1.9rem auto 0;

  font-size: clamp(1.02rem, 1.9vw, 1.19rem);
  line-height: 1.68;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------- Actions ---------- */
.hero__actions {
  margin-top: 2.4rem;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------- Micro note ---------- */
.hero__note {
  margin-top: 1.35rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: clamp(6rem, 22vh, 8rem);
    padding-bottom: clamp(4.5rem, 12vh, 6rem);
  }

  .hero__grid { background-size: 48px 48px; }

  .hero__eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.11em;
    padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  }

  .hero__title { max-width: 100%; }

  .hero__lead { max-width: 100%; }

  .hero__actions .btn {
    width: 100%;
    --btn-py: 1.05rem;
  }
}

/* Coarse pointers get no spotlight */
@media (hover: none), (pointer: coarse) {
  .hero__spot { display: none; }
}