/* Homepage Hero V2, supplied by Adam Smith. Figtree and the existing brand tokens are retained.
   Hallmark: component scope, modern-minimal, supplied composition; no page-template rotation.
   Tastemaker: centered promise + real laptop, variance 3 / motion 3 / density 4.
   The supplied Gradient-Mesh-Overlay.svg links to an absent Gradient-Mesh-Overlay-1.png.
   This scoped CSS mesh is the documented fallback, not the supplied SVG rendered.
   A self-contained image in Sanity Home > Hero > Gradient mesh overlay replaces it. */
.home .hero-light.home-hero {
  --hero-scrim: rgba(4, 0, 72, 0.48);
  --hero-mesh-navy: rgba(4, 0, 72, 0.48);
  --hero-mesh-blue: rgba(0, 112, 178, 0.34);
  --hero-mesh-clear: rgba(0, 112, 178, 0);
  --hero-control-border: rgba(255, 255, 255, 0.7);
  display: block;
  min-height: 0;
  padding: 0;
  background: var(--navy);
  color: var(--white);
  overflow: clip;
}
.home .home-hero::after { display: none; }
.home-hero-stage { position: relative; isolation: isolate; padding-top: clamp(48px, 3.5vw, 96px); }
.home-hero-background,
.home-hero-mesh { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-hero-background { overflow: clip; }
.home-hero-background::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim); }
.home-hero-background > :is(img, video),
.home-hero-mesh > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-hero-video { position: absolute; inset: 0; opacity: 0; }
.home-hero-video.is-playing { opacity: 1; }
.home-hero-mesh:not(:has(img)) {
  background: radial-gradient(ellipse at 100% 0%, var(--hero-mesh-blue), var(--hero-mesh-clear) 65%),
    linear-gradient(110deg, var(--hero-mesh-navy), var(--hero-mesh-clear));
}
.home .home-hero .hero-copy { padding-top: 0; max-width: none; margin: 0 auto; text-align: center; }
.home .home-hero .hero-copy > * { animation: none; }
.home .home-hero h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(32px, 2.92vw, 80px);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: var(--white);
}
/* Cyan is the approved default; an explicit Sanity headline override inherits inline. */
.home .home-hero h1 .h1-accent { display: block; color: var(--cyan); }
.home .home-hero .lede {
  max-width: 54ch;
  margin: clamp(24px, 1.9vw, 48px) auto 0;
  font-size: clamp(18px, 1.39vw, 32px);
  line-height: 1.42;
  color: var(--white);
  text-wrap: pretty;
}
.home .home-hero .hero-cta {
  justify-content: center;
  margin-top: clamp(32px, 2.55vw, 64px);
  gap: clamp(16px, 2.08vw, 40px);
}
.home .home-hero .hero-cta .btn {
  min-height: 48px;
  min-width: clamp(160px, 9.5vw, 224px);
  padding: 12px 24px;
  font-size: clamp(16px, 0.89vw, 20px);
  line-height: 1.2;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.home .home-hero .btn-primary { background: var(--coral-solid); }
@media (hover: hover) and (pointer: fine) {
  .home .home-hero .btn-primary:hover { background: var(--coral-ink); }
}
.home-hero-laptop { width: 66.667%; margin: clamp(40px, 3.35vw, 80px) auto 0; }
.home-hero-laptop > :is(img, video) { display: block; width: 100%; height: auto; }
.home-hero-stat-band { position: relative; z-index: 1; background: var(--panel-on-grad); }
.home .home-hero .hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
  padding: clamp(16px, 0.95vw, 24px) 24px;
  border: 0;
  gap: 16px clamp(32px, 4.3vw, 96px);
}
.home .home-hero .hero-stats > div { display: flex; align-items: center; gap: 12px; }
.home .home-hero .hero-stats dt { font-size: clamp(28px, 2.06vw, 48px); line-height: 1; }
.home .home-hero .hero-stats dd {
  max-width: none;
  margin: 0;
  font-size: clamp(14px, 0.79vw, 18px);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}
.home-hero-motion {
  position: absolute;
  inset: auto 16px 16px auto;
  min-height: 44px;
  max-width: calc(100% - 32px);
  border: 1px solid var(--hero-control-border);
  border-radius: var(--radius-pill, 999px);
  padding: 10px 16px;
  font: 500 16px/1.2 var(--font-display);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  touch-action: manipulation;
}
.home-hero-motion[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .home-hero-motion:hover { background: var(--panel-on-grad); border-color: var(--white); }
}
.home-hero-motion:active { background: var(--navy-deep); }
.home-hero-motion:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (max-width: 1023px) {
  .home .home-hero .wrap { width: calc(100% - 48px); }
  .home .home-hero .hero-stats > div { flex-direction: column; gap: 8px; text-align: center; flex: 1 1 0; min-width: 0; }
  .home .home-hero .hero-stats { gap: 16px; }
  .home .home-hero .hero-stats dd { white-space: normal; max-width: 16ch; }
  .home-hero-laptop { width: 84%; }
  .home-hero-motion { position: static; margin: 24px auto 16px; }
  .home-hero-motion:not([hidden]) { display: block; }
  .home-hero-motion:not([hidden]) + .home-hero-laptop { margin-top: 0; }
}
@media (max-width: 600px) {
  .home-hero-stage { padding-top: 40px; }
  .home .home-hero .wrap { width: calc(100% - 32px); }
  .home .home-hero h1 { font-size: clamp(30px, 7.5vw, 40px); line-height: 1.08; }
  .home .home-hero .lede { margin-top: 24px; font-size: 18px; line-height: 1.45; }
  .home .home-hero .hero-cta { margin-top: 28px; gap: 12px; }
  .home .home-hero .hero-cta .btn { font-size: 16px; padding-inline: 20px; }
  .home-hero-laptop { width: 94%; margin-top: 40px; }
  .home .home-hero .hero-stats { padding: 20px 12px; gap: 12px; }
  .home .home-hero .hero-stats dt { font-size: clamp(25px, 7vw, 32px); }
  .home .home-hero .hero-stats dd { font-size: 14px; }
  .home-hero-motion { inset: auto 8px 8px auto; padding-inline: 12px; }
}
@media (max-width: 374px) {
  .home .home-hero .hero-cta { flex-direction: column; align-items: center; }
  .home .home-hero .hero-cta .btn { min-width: 208px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-video, .home-hero-motion { display: none !important; }
}
