/* RawFit hero (HERO agent) — Performance-Run layout, white + blue liquid glass.
   Markup/copy: index.html #hero (THEME). Media: js/hero.js fills [data-hero-media]. */

.hero {
  --h-ink: var(--ink, #0B1B33);
  --h-body: var(--text, #43536B);
  --h-muted: var(--muted, #7A8AA3);
  --h-blue: var(--blue-600, #1F5BFF);
  --h-blue5: var(--blue-500, #3B82F6);
  --h-sky: var(--sky-400, #38BDF8);
  --h-deep: #0A2A6B;
  --h-glass-bd: rgba(255, 255, 255, .7);
  --h-glass-sh: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(10, 42, 107, .06), 0 20px 50px -20px rgba(10, 42, 107, .25);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  align-items: center;
  column-gap: clamp(32px, 4.5vw, 80px);
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-height: max(660px, min(100svh, 1000px));
  margin: 0 auto;
  padding: calc(var(--topbar-h, 84px) + clamp(16px, 2.5vw, 36px)) var(--gut, clamp(16px, 4vw, 48px)) clamp(28px, 4vw, 56px);
}

/* ---------------------------------------------------------------- copy */
.hero .hero-copy {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding-block: 8px;
}

.hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font: 600 13px/1.2 var(--body, "Manrope", "Helvetica Neue", Arial, sans-serif);
  letter-spacing: .01em;
  color: var(--h-deep);
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .64));
  border: 1px solid var(--h-glass-bd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 24px -14px rgba(10, 42, 107, .35);
  text-transform: none;
  /* QA perf: no backdrop-filter — the pill sits on the soft ambient field, where a blur is invisible but costly */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero .hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--h-blue), var(--h-sky));
  box-shadow: 0 0 0 4px rgba(31, 91, 255, .12);
  flex: none;
}

.hero h1 {
  margin: 0;
  font-family: var(--display, "Archivo", "Arial Narrow", Arial, sans-serif);
  font-weight: 800;
  font-stretch: 106%;
  font-variation-settings: "wdth" 106;
  font-size: clamp(44px, 6vw, 92px);
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--h-ink);
  text-wrap: balance;
  text-transform: none;
}
/* optional accent: THEME may wrap one word in <em> or <span class="hero-accent"> */
.hero h1 em,
.hero h1 .hero-accent {
  font-style: normal;
  background: linear-gradient(100deg, var(--h-blue) 0%, var(--h-blue5) 55%, var(--h-sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .04em; /* keep the last glyph's overhang inside the clip */
}

.hero .hero-lede {
  margin: 24px 0 0;
  max-width: 31em;
  font: 400 clamp(17px, 1.3vw, 19px)/1.6 var(--body, "Manrope", "Helvetica Neue", Arial, sans-serif);
  color: var(--h-body);
}

.hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero .hero-cta .btn {
  min-height: 54px;
  padding-inline: 26px;
  font-size: 16px;
}

.hero .hero-ticks {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hero .hero-ticks li {
  position: relative;
  padding-left: 34px;
  min-height: 22px;
  font: 500 15.5px/22px var(--body, "Manrope", "Helvetica Neue", Arial, sans-serif);
  color: var(--h-ink);
}
.hero .hero-ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.6 11.4l2.9 2.9 6-6.2' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat,
    linear-gradient(135deg, var(--h-blue) 0%, var(--h-blue5) 55%, var(--h-sky) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 10px -4px rgba(31, 91, 255, .6);
}

.hero .hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  padding: 9px 16px;
  border-radius: 999px;
  font: 600 13.5px/1.2 var(--body, "Manrope", "Helvetica Neue", Arial, sans-serif);
  color: var(--h-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .64));
  border: 1px solid var(--h-glass-bd);
  box-shadow: var(--h-glass-sh);
}
.hero .hero-star { color: #F5A70B; font-size: 1.1em; line-height: 1; text-shadow: 0 1px 6px rgba(245, 167, 11, .35); }

/* ---------------------------------------------------------------- runner media
   A real-footage runner (Preeti, generated in Google Flow with Veo) sits on the right, on a pale studio
   backdrop that is matched by the hero band behind the whole section, so she reads as part of the page.
   The video's left/top/bottom edges fade into the band; its right edge meets the viewport edge.
   The Veo watermark (bottom-right of the frame, ~93% x / 87% y) is never masked, cropped or covered. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  pointer-events: none;
  /* matches the studio backdrop of the hero footage, so she reads as part of the page */
  background:
    radial-gradient(42% 70% at 72% 58%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #E3F2FB 0%, #E8F5FA 55%, #E6F3FA 100%);
  border-bottom: 1px solid rgba(10, 42, 107, .06);
}
.hero .hero-media {
  position: absolute;
  grid-area: auto; /* abspos against the whole hero, not a grid cell */
  z-index: 0;
  right: var(--hr-right, clamp(16px, 9vw, 220px));
  bottom: 0;
  height: min(calc(100% - var(--topbar-h, 84px) - 4px), 1000px);
  aspect-ratio: 1536 / 2752;
  width: auto;
  max-width: 60vw;
  min-height: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  /* the frame's own backdrop matches the band; soften its edges so she sits in the page, not in a box.
     The right/bottom fades stop short of the Veo mark (bottom-right of the frame), which stays fully visible. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 var(--hr-r, 100%), transparent 100%), linear-gradient(180deg, transparent 0%, #000 6%, #000 var(--hr-b, 100%), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 var(--hr-r, 100%), transparent 100%), linear-gradient(180deg, transparent 0%, #000 6%, #000 var(--hr-b, 100%), transparent 100%);
  mask-composite: intersect;
}
.hero .hr-poster,
.hero .hr-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero .hr-poster { object-fit: contain; object-position: 50% 100%; }
.hero .hr-canvas { opacity: 0; transition: opacity .35s ease; }
.hero .hr-canvas.is-on { opacity: 1; }

/* entrance (opacity/transform only: no layout shift) */
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-copy > * { animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero .hero-copy > :nth-child(4) { animation-delay: .2s; }
  .hero .hero-copy > :nth-child(5) { animation-delay: .26s; }
  .hero .hero-copy > :nth-child(6) { animation-delay: .32s; }
  .hero .hero-media { animation: hero-media-in 1.2s .15s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-media-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero .hero-eyebrow, .hero .hero-trust { background: rgba(255, 255, 255, .92); }
}

/* ---------------------------------------------------------------- responsive */
.hero .hero-copy { max-width: 560px; }
@media (max-width: 1100px) and (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .hero { --hr-right: 2vw; }
  .hero .hero-copy { max-width: 470px; }
}

@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    row-gap: 0;
    padding-top: calc(var(--topbar-h, 84px) + 20px);
    padding-bottom: 0;
  }
  .hero::before { bottom: -120px; }
  /* phone order: eyebrow, headline, runner, then the rest of the copy */
  .hero .hero-copy { display: contents; }
  .hero .hero-eyebrow { grid-row: 1; justify-self: start; }
  .hero h1 { grid-row: 2; }
  .hero .hero-lede { grid-row: 4; }
  .hero .hero-cta { grid-row: 5; }
  .hero .hero-ticks { grid-row: 6; }
  .hero .hero-trust { grid-row: 7; justify-self: start; margin-bottom: 36px; }
  .hero .hero-media {
    position: relative;
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    right: auto;
    bottom: auto;
    height: min(64svh, 560px);
    margin-block: 6px -4px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 var(--hr-r, 100%), transparent 100%), linear-gradient(180deg, transparent 0%, #000 6%, #000 var(--hr-b, 100%), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 var(--hr-r, 100%), transparent 100%), linear-gradient(180deg, transparent 0%, #000 6%, #000 var(--hr-b, 100%), transparent 100%);
    pointer-events: auto;
    touch-action: pan-y;
    /* full-width frame; the picture is centred inside it at its own aspect ratio (never squeezed) */
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    justify-self: stretch;
    --hr-r: 90%;
  }
  .hero .hr-poster,
  .hero .hr-canvas { width: auto; margin-inline: auto; }
  /* the frame is full width now, so its entrance rises instead of sliding in from the side */
  .hero .hero-media { animation-name: hero-rise; }
  .hero .hero-eyebrow { margin-bottom: 18px; }
  .hero .hero-lede { margin-top: 6px; }
  .hero .hero-cta { margin-top: 26px; }
  .hero .hero-ticks { margin-top: 26px; gap: 10px; }
  .hero .hero-trust { margin-top: 24px; }
}

@media (max-width: 480px) {
  .hero .hero-cta { flex-direction: column; align-items: stretch; }
  .hero .hero-cta .btn { width: 100%; justify-content: center; min-height: 52px; }
  .hero .hero-ticks li { font-size: 15px; }
}

/* ---------------------------------------------------------------- scroll zoom (js/hero.js Zoom)
   .hero-pin wraps #hero once her eyes are live. Desktop: the hero sticks while the spacer scrolls past
   and the camera moves in on her face; the wrapper clips the oversized close-up at its own edges.
   Phones: the picture zooms inside its frame instead. Reduced motion / no JS: no wrapper, no zoom. */
.hero-pin { position: relative; }
.hero-pin.is-desk { overflow: clip; }
.hero-pin.is-desk > .hero { position: sticky; min-height: max(660px, 100svh); }
.hero-pin.is-zooming .hero .hero-media { will-change: translate, scale; }
.hero-pin .hero .hero-media { overflow: hidden; }
.hero-pin-run { height: 0; pointer-events: none; }

/* ---------------------------------------------------------------- first-visit guide (js/hero.js GazeHint)
   A small pill under her face once the close-up is in, with a cursor that sways side to side. */
.hero .gaze-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(28px, 7vh, 64px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  font: 600 14.5px/1.2 var(--body, "Manrope", "Helvetica Neue", Arial, sans-serif);
  color: #fff;
  white-space: nowrap;
  background: rgba(12, 15, 22, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -16px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.hero .gaze-hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.hero .gh-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1F5BFF, #3B82F6 55%, #38BDF8);
  box-shadow: 0 6px 16px -6px rgba(31, 91, 255, .8);
  flex: none;
}
.hero .gh-ico svg { width: 16px; height: 16px; fill: #fff; animation: gh-sway 1.6s ease-in-out infinite; }
.hero .gh-touch svg { fill: none; stroke: #fff; stroke-width: 2; }
.hero .gh-touch svg circle:first-child { fill: #fff; stroke: none; }
@keyframes gh-sway { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@media (max-width: 899px) {
  /* phones: sits over the bottom of her picture */
  .hero .gaze-hint {
    position: relative;
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    justify-self: center;
    left: auto;
    bottom: auto;
    margin-bottom: 28px;
    font-size: 13.5px;
    transform: translateY(10px);
  }
  .hero .gaze-hint.is-on { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hero .gh-ico svg { animation: none; } }

/* ---------------------------------------------------------------- wide copy (uses the open space left of her)
   The copy column now runs from the left edge right up to her, keeping a clear gap so she is never covered.
   Her width is known from the hero height (she is min(hero - topbar, 1000px) tall at 1536:2752), so the copy's
   max width is: hero content width + gutter - her right offset - her width - gap. */
@media (min-width: 900px) {
  .hero {
    --hr-right: clamp(16px, 9vw, 220px);
    --hr-w: calc((min(max(660px, 100svh), 1000px + var(--topbar-h, 84px)) - var(--topbar-h, 84px) - 4px) * .5581);
    grid-template-columns: minmax(0, 1fr);
  }
  .hero .hero-copy {
    grid-column: 1;
    width: 100%;
    max-width: min(880px, calc(100% + var(--gut, 40px) - var(--hr-right) - var(--hr-w) - clamp(32px, 3vw, 56px)));
    container-type: inline-size;
  }
  .hero h1 { font-size: clamp(52px, 15.6cqi, 140px); }
  .hero .hero-lede { max-width: 34em; font-size: clamp(17px, 1.45vw, 21px); }
}
@media (max-width: 1100px) and (min-width: 900px) { .hero { --hr-right: 2vw; } }
.hero h1 .hero-accent { display: inline-block; white-space: nowrap; }

.hero .hero-facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero .hero-facts li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--glass-bg-strong, rgba(255, 255, 255, .74));
  border: var(--glass-border, 1px solid rgba(255, 255, 255, .7));
  box-shadow: var(--glass-hi, none);
}
.hero .hero-facts strong {
  font-family: var(--display, "Archivo", Arial, sans-serif);
  font-weight: 800;
  font-stretch: 104%;
  font-size: clamp(20px, 4.6cqi, 32px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--h-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hero .hero-facts strong .hero-star { font-size: .62em; margin-left: 3px; vertical-align: .32em; }
.hero .hero-facts span:not(.hero-star) { font: 600 13.5px/1.35 var(--body, "Manrope", Arial, sans-serif); color: var(--text-2, #55657E); }

.hero .hero-ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; }

@media (max-width: 899px) {
  .hero .hero-facts { grid-row: 6; margin-top: 26px; gap: 8px; }
  .hero .hero-ticks { grid-row: 7; margin: 22px 0 36px; }
  .hero .hero-facts li { padding: 12px 12px; border-radius: 14px; }
  .hero .hero-facts strong { font-size: clamp(17px, 4.6vw, 24px); }
  .hero .hero-facts span:not(.hero-star) { font-size: 12px; }
  .hero h1 { font-size: clamp(42px, 14vw, 84px); }
}
@media (min-width: 900px) and (max-height: 820px) {
  .hero .hero-eyebrow { margin-bottom: 14px; }
  .hero .hero-lede { margin-top: 16px; }
  .hero .hero-cta { margin-top: 22px; }
  .hero .hero-facts { margin-top: 22px; }
  .hero .hero-ticks { margin-top: 18px; }
}

/* while the full portrait + eye layers load (after the page itself): a soft blue light breathes behind her */
.hero [data-hero-media]::after{content:"";position:absolute;inset:6% 8% 34%;z-index:3;pointer-events:none;border-radius:50%;mix-blend-mode:screen;
  background:radial-gradient(closest-side,rgba(80,140,255,.32),rgba(80,140,255,0));opacity:0;transition:opacity .6s ease}
.hero [data-hero-media].is-loading::after{animation:hero-breathe 1.6s ease-in-out infinite}
@keyframes hero-breathe{0%,100%{opacity:.15;transform:scale(.96)}50%{opacity:.7;transform:scale(1.04)}}
@media (prefers-reduced-motion:reduce){.hero [data-hero-media].is-loading::after{animation:none}}
