/* Hero. Values are the 1920px Figma sizes expressed in vw so the layout scales. */
.hero {
  position: relative; overflow: hidden;
  padding-top: 12vw;               /* 231px */
  background: var(--c-white);
}
/* Soft pink glow on the right (circle + corner gradient) */
.hero::before {
  content: ''; position: absolute; z-index: 0;
  right: -14vw; top: 5vw; width: 55vw; aspect-ratio: 1; border-radius: 50%;
  /* Soft glow with no visible edge: fades to fully transparent at the rim */
  background: radial-gradient(circle at 62% 70%, rgba(231,68,48,.16) 0%, rgba(231,68,48,.08) 45%, rgba(231,68,48,0) 70%);
  filter: blur(30px);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; z-index: 0; inset: auto -5vw -12vw auto; width: 45vw; height: 40vw;
  background: radial-gradient(closest-side, rgba(231,68,48,.55), rgba(231,68,48,0));
  filter: blur(20px); pointer-events: none;
}

.hero__swirl { position: absolute; z-index: 1; pointer-events: none; height: auto; }
.hero__swirl--left  { left: 0;      top: 7.4vw;  width: 14.3vw; }   /* 275px @1920, top 143px */
.hero__swirl--right { right: -.4vw; top: 2.1vw;  width: 8.75vw; }   /* 168px @1920, top 41px  */

.hero__inner { position: relative; z-index: 2; width: min(80.8vw, 1552px); height: 28.1vw; margin-inline: auto; }  /* photo starts at y=770 */

.hero__title { font-size: 9.375vw; line-height: 1; text-transform: capitalize; font-weight: 300; }
.hero__line { display: block; white-space: nowrap; line-height: .855; }
.hero__light { font-weight: 300; }
.hero__title b { font-family: var(--f-notch); font-weight: 700; color: var(--c-primary); }
.hero__line--1 b { font-size: 1em; }
.wave__char { display: inline-block; will-change: transform; text-transform: none; } /* parent is "capitalize": keep each letter as typed */
.hero__line--2 { text-align: right; font-size: .944em; margin-top: .06em; } /* 170/180 */

.hero__text {
  width: 34vw; margin-top: .3vw;    /* para top at 545px */
  font-size: 1.25vw; line-height: 1.58; font-weight: 500;
  margin-left: .26vw;
}
.hero__actions { position: absolute; right: 0; top: 19.3vw; display: flex; gap: 15px; }  /* y 601 */

/* ---------- Photo: grey by default, colour revealed under the cursor ---------- */
.hero__media { position: relative; z-index: 2; width: 96.4vw; margin-inline: auto; }  /* 1851px, x=35 */
.hero__photo { position: relative; cursor: none; --x: 50%; --y: 50%; --r: 1px; }
.hero__photo img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.hero__photo-base { filter: grayscale(1) contrast(1.05); }
.hero__photo-color {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 55%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 55%, transparent 100%);
}

/* Trail version: a canvas draws the coloured picture only where the pointer has recently been (see hero.js) */
.hero__photo-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__photo.has-trail .hero__photo-color { display: none; }

/* ---------- Stat card (overlaps the photo's top-right corner) ---------- */
.stat-card {
  position: absolute; z-index: 3; right: 2.1vw; top: -3.6vw;     /* 500x240 at x=1345,y=701 */
  width: 26vw; height: 12.5vw; padding: .78vw;
  display: flex; align-items: center; gap: 1.9vw;
  background: #fff; border: 2px solid rgba(231,68,48,.14); border-radius: 1.5vw;
  box-shadow: 0 1.5vw 4vw rgba(231,68,48,.12);
}
.stat-card__img { width: 10.9vw; height: 10.9vw; border-radius: 1.1vw; object-fit: cover; flex: none; }
.stat-card__num { display: flex; font-size: 4.7vw; line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.stat-card__label { margin-top: 1.1vw; font-size: max(12px, .83vw); line-height: 1.35; font-weight: 500; }
.digit { display: inline-block; height: 1em; overflow: hidden; }
.digit__strip { display: flex; flex-direction: column; will-change: transform; }
.digit__strip span { display: block; height: 1em; line-height: 1; }

@media (max-width: 900px) {
  .hero__inner { height: auto; }
  .hero__media { width: calc(100% - 2 * var(--gutter)); margin-top: 3rem; }
  .hero__photo { cursor: default; }
  .stat-card { position: relative; right: auto; top: auto; width: 100%; height: auto; padding: .75rem; gap: 1rem; margin-top: 1rem; border-radius: 1.25rem; }
  .stat-card__img { width: 38%; height: auto; aspect-ratio: 1; border-radius: .9rem; }
  .stat-card__num { font-size: clamp(3rem, 14vw, 5rem); }
  .stat-card__label { margin-top: .5rem; font-size: .9rem; }
}

@media (max-width: 900px) {
  .hero { padding-top: 7rem; min-height: auto; padding-bottom: 5rem; }
  .hero__inner { width: calc(100% - 2 * var(--gutter)); }
  .hero__title { font-size: clamp(2.8rem, 13vw, 6rem); }
  .hero__line { white-space: normal; line-height: .95; }
  .hero__text { width: 100%; font-size: 1.1rem; margin-top: 1.5rem; }
  .hero__actions { position: static; margin-top: 2rem; flex-wrap: wrap; }
  .hero__swirl--left { width: 90px; top: auto; bottom: 1rem; }
  .hero__swirl--right { width: 70px; top: 5rem; }
}

/* ---------- Entrance: hidden only until hero.js has prepared the animation (head.php removes the class after 4s at the latest) ---------- */
html.hero-intro .hero__title, html.hero-intro .hero__text, html.hero-intro .hero__actions,
html.hero-intro .hero__swirl, html.hero-intro .hero__media { opacity: 0; }
.hero__char { display: inline-block; text-transform: none; will-change: transform; }   /* parent is "capitalize": keep each letter as typed */
