/*
 * Hero. Transcribed from Hero.tsx + styles.css on the React build.
 *
 * Every declaration reads a --ge-* custom property whose FALLBACK is the
 * original design value. An untouched widget is therefore pixel-identical to
 * React, and an Elementor control only ever overrides the fallback. No inline
 * styles, no !important, nothing keyed to a post id.
 *
 * Reminder: the radius scale here is overridden from Tailwind stock.
 * rounded-2xl is 28px, not 16px.
 */

.ge-hero {
  margin-inline: auto;
  max-width: var(--ge-hero-frame-max, var(--ge-frame-max, 1320px));
  padding: var(--ge-hero-pad, 16px var(--ge-frame-gutter, 12px) 0);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .ge-hero { padding: var(--ge-hero-pad, 24px var(--ge-frame-gutter, 20px) 0); }
}

.ge-hero__grid {
  display: grid;
  align-items: center;
  gap: var(--ge-hero-col-gap, 32px);
}

@media (min-width: 1024px) {
  .ge-hero__grid {
    /* Two independent fr vars. calc() cannot do arithmetic on fr units, so
       `calc(2fr - var(--x))` makes the whole declaration invalid and the grid
       silently collapses to one column. Caught by geometry parity. */
    grid-template-columns:
      minmax(0, var(--ge-hero-text-width, 41.66%))
      minmax(0, 1fr);
    gap: var(--ge-hero-col-gap, 40px);
  }
}

/* ------------------------------------------------------------------ text -- */

.ge-hero__text { padding: var(--ge-hero-text-pad, 24px 0 0); }
@media (min-width: 1024px) { .ge-hero__text { padding: var(--ge-hero-text-pad, 0 0 0 24px); } }

.ge-hero__eyebrow {
  display: flex; align-items: center; gap: var(--ge-hero-eb-inner-gap, 12px);
  margin: 0 0 var(--ge-hero-eb-gap, 24px);
  font-family: var(--ge-type-micro-family, var(--ge-font-mono, "IBM Plex Mono", ui-monospace, Menlo, monospace));
  font-size: var(--ge-type-micro-size, 11px);
  font-weight: var(--ge-type-micro-weight, 400);
  letter-spacing: var(--ge-type-micro-lsp, 0.2em);
  text-transform: uppercase;
  color: color-mix(in oklch, var(--ge-hero-eb-color, var(--ge-ink)) var(--ge-hero-eb-alpha, 70%), transparent);
}

.ge-hero__rule {
  display: block; flex: none;
  height: var(--ge-hero-rule-h, 1px);
  width: var(--ge-hero-rule-w, 36px);
  background: var(--ge-hero-rule-color, var(--ge-green));
}

.ge-hero__headline {
  margin: 0;
  font-family: var(--ge-type-h1-family, var(--ge-font-display, "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif));
  font-size: var(--ge-hero-h1-size, var(--ge-type-h1-size));
  font-weight: var(--ge-type-h1-weight, 800);
  line-height: var(--ge-type-h1-lh, 1.02);
  letter-spacing: var(--ge-type-h1-lsp, -0.04em);
  color: var(--ge-hero-h1-color, var(--ge-ink));
  text-wrap: balance;
}

.ge-hero__line { display: block; }

.ge-hero__standfirst {
  margin: var(--ge-hero-sf-gap, 24px) 0 0;
  max-width: var(--ge-hero-measure, 42ch);
  font-size: var(--ge-type-body-lg-size, 15.5px);
  line-height: 1.625;
  color: var(--ge-hero-sf-color, var(--ge-body));
}

/* ----------------------------------------------------------------- stats -- */

/* Three columns that have to read as one row. Equal tracks rather than flex, so
   a long figure cannot take space from its neighbours, and one line per figure.
   A figure like "Up to $18,367" wrapped under a flex layout and dropped that
   number below the two either side of it. Below sm they stack: a third of a
   390px screen cannot hold "One company" on one line at this size. */
.ge-hero__stats {
  display: grid; grid-template-columns: 1fr;
  margin: var(--ge-hero-stat-gap, 44px) 0 0;
}
.ge-hero__stat { padding: var(--ge-hero-stat-pad2, 0 0 12px); }
.ge-hero__stat + .ge-hero__stat {
  padding: var(--ge-hero-stat-pad3, 12px 0 0);
  border-top: 1px solid var(--ge-hero-stat-rule-color, var(--ge-hair));
}
@media (min-width: 640px) {
  .ge-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ge-hero__stat { padding: 0 var(--ge-hero-stat-pad, 12px) 0 0; }
  .ge-hero__stat + .ge-hero__stat {
    padding: 0 var(--ge-hero-stat-pad, 12px);
    border-top: 0;
    border-left: 1px solid var(--ge-hero-stat-rule-color, var(--ge-hair));
  }
}
.ge-hero__stat-figure {
  font-size: var(--ge-hero-stat-fig-size, 22px);
  font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; white-space: nowrap;
  color: var(--ge-hero-stat-fig-color, var(--ge-ink));
}
.ge-hero__stat-caption { margin: var(--ge-hero-stat-caption-m, 8px 0 0); font-size: 12px; line-height: 1.35; color: var(--ge-hero-stat-cap-color, var(--ge-body)); }

/* ----------------------------------------------------------------- photo -- */

.ge-hero__media { position: relative; }

.ge-hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--ge-hero-photo-radius, var(--ge-radius-photo, 22px));
}

.ge-hero__img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 11;   /* overridden by the Aspect ratio control */
  object-fit: cover;
}

.ge-hero__overlays { position: absolute; inset: 0; pointer-events: none; }
.ge-hero__overlays a { pointer-events: auto; }

.ge-hero__pill {
  position: absolute;
  left: var(--ge-hero-pill-x, 20px);
  top: var(--ge-hero-pill-y, 20px);
  display: flex; align-items: center; gap: var(--ge-hero-pill-gap, 12px);
  border: 1px solid rgb(255 255 255 / 0.15);
  background: rgb(0 0 0 / 0.25);
  backdrop-filter: blur(var(--ge-hero-blur, 12px));
  border-radius: var(--ge-radius-xl2, 28px);
  padding: var(--ge-hero-pill-pad, 12px 16px);
}
.ge-hero__pill-text { font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--ge-hero-pill-text-color, #fff); }

.ge-hero__dot { position: relative; display: flex; flex: none;
  width: var(--ge-hero-dot-size, 10px); height: var(--ge-hero-dot-size, 10px); }
.ge-hero__dot-ping,
.ge-hero__dot-core { border-radius: var(--ge-hero-dot-core-radius, 999px); background: var(--ge-hero-dot-color, var(--ge-green)); }
.ge-hero__dot-ping { position: absolute; inset: 0; }
.ge-hero__dot-core { position: relative; width: var(--ge-hero-dot-size, 10px); height: var(--ge-hero-dot-size, 10px); }

@media (prefers-reduced-motion: no-preference) {
  .ge-hero__dot-ping { animation: ge-pulse 2.4s ease-in-out infinite; }
}

@keyframes ge-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.45); }
}

.ge-hero__corner { position: absolute;
  right: var(--ge-hero-corner-x, 24px); top: var(--ge-hero-corner-y, 24px); display: flex; align-items: flex-start; gap: var(--ge-hero-corner-gap, 12px); }
.ge-hero__corner-rule { margin-top: var(--ge-hero-corner-rule-mt, 7px); height: var(--ge-hero-corner-rule-h, 1px);
  width: var(--ge-hero-corner-rule-w, 24px);
  background: color-mix(in oklch, var(--ge-hero-corner-rule-color, #fff) var(--ge-hero-corner-rule-alpha, 70%), transparent); }
.ge-hero__corner-list {
  font-family: var(--ge-font-mono, "IBM Plex Mono", ui-monospace, Menlo, monospace);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in oklch, var(--ge-hero-corner-color, #fff) var(--ge-hero-corner-alpha, 90%), transparent);
}
.ge-hero__corner-item { display: block; }
.ge-hero__corner-item + .ge-hero__corner-item { margin-top: 6px; }

.ge-hero__video {
  position: absolute;
  right: var(--ge-hero-vid-x, 20px);
  bottom: var(--ge-hero-vid-y, 20px);
  display: flex; align-items: center; gap: var(--ge-hero-video-gap, 14px);
  border: 1px solid rgb(255 255 255 / 0.15);
  background: rgb(0 0 0 / 0.3);
  backdrop-filter: blur(var(--ge-hero-blur, 12px));
  border-radius: var(--ge-radius-xl2, 28px);
  padding: var(--ge-hero-pill-pad, 14px 16px);
  text-decoration: none;
}
.ge-hero__play {
  display: grid; place-items: center; flex: none;
  width: var(--ge-hero-play-size, 40px); height: var(--ge-hero-play-size, 40px);
  border-radius: var(--ge-hero-play-radius, 999px);
  background: var(--ge-hero-play-bg, #fff); color: var(--ge-dark);
}
.ge-hero__play svg { width: var(--ge-hero-play-w, 16px); height: var(--ge-hero-play-h, 16px); transform: translateX(1px); }
.ge-hero__video-copy { line-height: 1.25; }
.ge-hero__video-title { display: block; font-size: 13px; font-weight: 600; color: var(--ge-hero-vid-title-color, #fff); }
.ge-hero__video-meta {
  display: block; margin-top: var(--ge-hero-video-meta-mt, 4px);
  font-family: var(--ge-font-mono, "IBM Plex Mono", ui-monospace, Menlo, monospace);
  /* 11px, not the 9px the React class names: `.label` outranks the arbitrary
     `text-[9px]` there, so 11px is what actually renders. */
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in oklch, var(--ge-hero-vid-meta-color, #fff) var(--ge-hero-vid-meta-alpha, 60%), transparent);
}

/* ---------------------------------------------------------------- motion -- */

/* Entrance. Staggered by the line index the widget writes as --ge-hero-line-i,
   so adding a fourth headline line in the editor stays in rhythm automatically. */
@media (prefers-reduced-motion: no-preference) {
  .ge-hero__eyebrow,
  .ge-hero__line,
  .ge-hero__standfirst,
  .ge-hero__actions,
  .ge-hero__stats {
    opacity: 0;
    animation: ge-rise var(--ge-hero-reveal-dur, 780ms) var(--ge-hero-reveal-ease, var(--ge-ease-out)) forwards;
  }
  .ge-hero__eyebrow    { animation-delay: 60ms; }
  .ge-hero__line       { animation-delay: calc(130ms + var(--ge-hero-line-i, 0) * 70ms); }
  .ge-hero__standfirst { animation-delay: 360ms; }
  .ge-hero__actions    { animation-delay: 460ms; }
  .ge-hero__stats      { animation-delay: 580ms; }

  .ge-hero__media { opacity: 0; animation: ge-unmask 950ms var(--ge-ease-out) 200ms forwards; }
}

@keyframes ge-rise {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes ge-unmask {
  from { opacity: 0; transform: scale(1.06); clip-path: inset(0 0 14% 0 round 22px); }
  to   { opacity: 1; transform: none;       clip-path: inset(0 0 0 0 round 22px); }
}

/* The editor re-renders constantly; a staggered entrance that replays on every
   keystroke is unusable, so show everything immediately inside the canvas. */
.elementor-editor-active .ge-hero__eyebrow,
.elementor-editor-active .ge-hero__line,
.elementor-editor-active .ge-hero__standfirst,
.elementor-editor-active .ge-hero__actions,
.elementor-editor-active .ge-hero__stats,
.elementor-editor-active .ge-hero__media {
  opacity: 1; animation: none;
}
