/* The hero card (shared/hero_card): the big page-opening field the
   dashboard, the explore page, and the study page all open on. A tinted
   gradient, a faint trail map drifting behind the copy, and a second column
   for an aside when the page has one. It paints once, with no entrance
   animation: promoting a card this large to its own compositing layer flashes
   a blank tile before the gradient rasterizes. */
.hero-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 0.72fr);
  min-height: 31rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 80% 16%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 27rem),
    radial-gradient(circle at 5% 105%, color-mix(in srgb, var(--moss) 10%, transparent), transparent 23rem),
    linear-gradient(135deg, color-mix(in srgb, var(--wash) 74%, var(--card)), var(--card) 52%, color-mix(in srgb, var(--depth-tint) 24%, var(--card)));
  box-shadow:
    inset 0 1px color-mix(in srgb, var(--ink) 6%, transparent),
    0 2rem 5rem -3rem color-mix(in srgb, var(--shadow) 38%, transparent);
}

/* Solo cards open pages with no wrapper of their own, so they carry the
   dashboard's breathing room above them. */
.hero-card--solo {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  margin-top: clamp(1.25rem, 3vw, 2.75rem);
}

.hero-card::before {
  position: absolute;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  bottom: -14rem;
  left: -7rem;
  border: 4rem solid color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 50%;
  content: "";
}

.hero-card-map {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.18;
  pointer-events: none;
}

.hero-card-map path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
}

.hero-card-map circle {
  fill: color-mix(in srgb, var(--accent) 40%, var(--card));
  stroke: currentColor;
  stroke-width: 2;
}

.hero-card-main {
  align-self: center;
  padding: clamp(2rem, 5vw, 4.75rem);
  padding-right: clamp(2rem, 4vw, 3.5rem);
}

.hero-card-eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card-map path {
    animation: hero-card-drift 18s linear infinite;
  }
}

@keyframes hero-card-drift {
  to { stroke-dashoffset: -96; }
}

@media (max-width: 991.98px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.62fr);
  }

  .hero-card--solo {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card-main {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-card {
    display: block;
    min-height: 0;
  }

  .hero-card-map {
    opacity: 0.12;
  }

  .hero-card-main {
    padding: 2.25rem 1.25rem 1.4rem;
  }

  .hero-card--solo .hero-card-main {
    padding-bottom: 2.25rem;
  }
}
