/* ==========================================================================
   smudgechild — hero section
   Full-viewport video hero with overlay copy, CTA, and stat strip.
   Depends on :root variables in style.css.
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.hero__frame {
  position: relative;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero__video.is-playing {
  opacity: 1;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(8, 10, 8, 0.22) 0%,
      rgba(8, 10, 8, 0)    26%,
      rgba(8, 10, 8, 0)    52%,
      rgba(8, 10, 8, 0.46) 100%
    ),
    radial-gradient(
      120% 100% at 30% 80%,
      rgba(8, 10, 8, 0)    42%,
      rgba(8, 10, 8, 0.34) 100%
    );
}

.hero__overlay {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    clamp(104px, 15vh, 150px)
    clamp(28px,  4vw,  60px)
    clamp(40px,  6vh,  64px);
}

.hero__copy {
  max-width: 760px;
}

.hero__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 20px;
  text-wrap: balance;
  white-space: nowrap;
}

.hero__sub {
  font-family: var(--sans);
  font-size: clamp(16px, 1.55vw, 23px);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  margin: 0;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(36px, 6vh, 64px);
}

.hero__member {
  flex: none;
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 16px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.hero__member:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  color: #fff;
}

/* Lumart, 30 Nov (Scans): "Become a member" + a glass "Book directly" side by side on the dark photo. */
.cta-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__member--glass {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__member--glass:hover { background: rgba(255, 255, 255, 0.26); }

.hero__stats {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.hero__stats--mobile {
  display: none;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  padding: 0 clamp(16px, 1.8vw, 28px);
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.hero__stat:first-child {
  border-left: 0;
}

.hero__stat-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.hero__stat-label {
  font-family: var(--sans);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 760px) {
  /*
   * Phones: the hero (video frame + stats strip) is one screen tall, so the
   * stats strip shows before the user scrolls. The frame takes whatever
   * height is left above the strip. flex-shrink: 0 means the frame never
   * shrinks below its own content, so on a very short phone the copy isn't
   * clipped; the hero just grows past one screen instead.
   */
  .hero { min-height: 100svh; }
  .hero__frame { min-height: 0; flex: 1 0 auto; }
  .hero__overlay { padding-top: clamp(86px, 13vh, 116px); }
  .hero__title { font-size: clamp(34px, 9vw, 46px); line-height: 1.04; white-space: normal; }
  .hero__sub { font-size: clamp(16px, 4.4vw, 19px); line-height: 1.5; }
  .hero__br { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 0; min-height: 0; margin-top: clamp(24px, 4vh, 40px); }
  .hero__stats--desktop { display: none; }
  .hero__stats--mobile {
    flex: none;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 19px clamp(14px, 4vw, 28px);
    background: var(--bg);
  }
  .hero__stats--mobile .hero__stat { align-items: center; text-align: center; padding: 0 16px; border-left-color: var(--line); }
  .hero__stats--mobile .hero__stat:first-child { border-left: 0; }
  .hero__stats--mobile .hero__stat-num { color: var(--ink); font-size: 28px; margin-bottom: 4px; }
  .hero__stats--mobile .hero__stat-label { color: var(--ink-soft); font-size: 14px; line-height: 1.28; }
  .hero__member { padding: 14px 26px; font-size: 15px; }
}

@media (max-width: 480px) {
  .hero__stat { padding: 0 14px; }
}

/* Smallest phones: 14px labels ("personalised") need tighter spacing
   between the stats or the strip runs wider than the screen. */
@media (max-width: 360px) {
  .hero__stats--mobile { padding-left: 8px; padding-right: 8px; }
  .hero__stats--mobile .hero__stat { padding: 0 10px; }
}

@media (max-height: 560px) {
  .hero__title { font-size: clamp(24px, 3.4vw, 40px); margin-bottom: 12px; }
  .hero__sub { font-size: clamp(14px, 1.2vw, 16px); }
}
/* Lumart, 15 Nov (phones, Home and Scans): Everlab's hero. The video frame is
   a fixed portrait shape (about 10:17, so the next section peeks in), and the
   heading, subheading and button sit centred in it. Home's stats become small
   pills between the subheading and the button; the stats strip under the
   video goes. Desktop and For employers are unchanged. */
.hero__pills { display: none; }
@media (max-width: 760px) {
  .hero.hero--centred, .hero-pin .hero.hero--centred { min-height: 0; height: auto; padding-bottom: 0; }
  .hero--centred .hero__frame { flex: none; min-height: 0; height: calc(100vw * 1.7); max-height: 100svh; }
  .hero--centred .hero__vignette { background: linear-gradient(180deg, rgba(8, 10, 8, 0.42) 0%, rgba(8, 10, 8, 0.32) 45%, rgba(8, 10, 8, 0.42) 100%); }
  .hero--centred .hero__overlay { justify-content: center; align-items: center; text-align: center; padding: 88px 22px 40px; }
  .hero--centred .hero__copy { max-width: 340px; margin: 0 auto; }
  .hero--centred .hero__title { font-size: 33px; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
  .hero--centred .hero__sub { font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, 0.92); text-wrap: balance; }
  .hero--centred .hero__bottom { align-items: center; margin-top: 22px; }
  .hero--centred .hero__member { padding: 14px 30px; font-size: 15.5px; }
  /* Phones: the pair stacks, both the same width, centred. */
  .hero--centred .cta-pair { flex-direction: column; align-items: stretch; width: min(260px, 100%); margin: 0 auto; gap: 10px; }
  .hero--centred .cta-pair .hero__member { text-align: center; }
  .hero--centred .hero__stats--mobile { display: none; }
  .hero--centred .hero__pills {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 18px 0 0; padding: 0;
  }
  .hero--centred .hero__pills li {
    padding: 6px 11px; border-radius: 999px; font-family: var(--sans); font-size: 12.5px; line-height: 1.2; color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .hero--centred .hero__pills strong { font-weight: 600; color: #fff; }
}
/* Lumart, 15 Nov (phones, Home and Scans): a small white border around the
   video with rounded corners, like Everlab. The dark header bar stays as it is
   and the frame starts below it, with the same white border showing. */
@media (max-width: 760px) {
  .hero.hero--centred { border-bottom: 0; }
  .hero--centred .hero__frame { margin: calc((65px + env(safe-area-inset-top, 0px)) + 8px) 8px 0; border-radius: 22px; height: calc((100vw - 16px) * 1.7); max-height: calc(100svh - (65px + env(safe-area-inset-top, 0px)) - 16px); }
}

/* Lumart, 15 Nov 12:34 (phones, Home and Scans): a lighter overlay on the hero
   video; a soft text shadow keeps the white copy readable. */
@media (max-width: 760px) {
  .hero--centred .hero__vignette { background: linear-gradient(180deg, rgba(8, 10, 8, 0.26) 0%, rgba(8, 10, 8, 0.16) 45%, rgba(8, 10, 8, 0.28) 100%); }
  .hero--centred .hero__title, .hero--centred .hero__sub { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.32); }
}

/* Lumart, 16 Nov (desktop): the same thin white frame as the Scans hero, 10px of page colour with 24px corners. */
@media (min-width: 761px) {
  .hero--centred .hero__frame::after {
    content: ""; position: absolute; inset: 10px; z-index: 50; pointer-events: none;
    border-radius: 24px; box-shadow: 0 0 0 60px var(--bg);
  }
}
