@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/fonts/bebas-neue-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Figma 7:13 and 30:224, scoped to the homepage hero. */
.hero--minimal {
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
}

.hero--minimal > .hero-mist-canvas {
  /* Keep the published light field behind the opaque experience card. */
  z-index: 2;
}

.hero--minimal .hero-layout {
  grid-template-columns: minmax(0, 1fr) 21.5rem;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero--minimal .hero-copy {
  max-width: none;
  text-align: left;
  transform-origin: left center;
}

.hero--minimal .hero-label {
  margin-bottom: 1.5rem;
}

.hero--minimal h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 5.765vw, 5.1875rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.015em;
}

.hero--minimal .hero-title-line {
  white-space: normal;
}

.hero--minimal .hero-title-line + .hero-title-line {
  margin-top: 0;
}

.hero--minimal .hero-lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.hero--minimal .hero-actions {
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.hero-experience {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  justify-content: flex-start;
  gap: 1.5rem;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 2rem 1.5rem;
  border-radius: 0.625rem;
  background: rgba(5, 15, 29, 0.9);
  backdrop-filter: blur(8px);
  color: var(--ivory-100);
}

.hero-experience-heading {
  display: grid;
  width: 16rem;
  max-width: 100%;
  gap: 1.5rem;
}

.hero-experience-title {
  width: 100%;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
}

.hero-experience-title-primary,
.hero-experience-title-secondary {
  display: block;
}

.hero-experience-title-primary {
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.hero-experience-title-secondary {
  margin-top: 0.45rem;
  font-size: 0.59em;
  letter-spacing: 0.05em;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.hero-experience-divider {
  display: block;
  width: 100%;
  flex: none;
}

.hero-experience-person {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.hero-experience-portrait {
  position: relative;
  flex: none;
  width: 8.505rem;
  height: 8.505rem;
  overflow: visible;
  background: transparent;
}

.hero-experience-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-experience-name {
  position: absolute;
  z-index: 2;
  top: 0.4rem;
  left: calc(50% - 8.6rem);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
}

.hero-experience-proof {
  position: relative;
  width: 11rem;
  max-width: 100%;
  margin-top: 0;
  display: grid;
  gap: 0.45rem;
  margin-inline: auto;
  text-align: center;
}

.hero-experience-proof::before {
  content: "";
  position: absolute;
  width: 6.5rem;
  height: 8.32rem;
  top: -6.2rem;
  left: -6.1rem;
  transform-origin: 100% 100%;
  transform: rotate(32deg);
  background: url("../assets/icons/fleche-experience.svg") center / contain no-repeat;
  pointer-events: none;
}

.hero-experience-proof strong {
  display: grid;
  gap: 0;
  color: var(--signal);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.hero-experience-proof .hero-experience-years {
  font-size: 4rem;
  line-height: 0.95;
}

.hero-experience-proof .hero-experience-duration {
  color: inherit;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-experience-discipline {
  display: grid;
  gap: 0.1rem;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero-experience-discipline > span {
  display: block;
  text-align: center;
}

.hero-experience-link {
  align-self: center;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (min-width: 56.01rem) and (max-height: 50rem) {
  .hero--minimal h1 {
    font-size: clamp(3.5rem, 5vw, 4.25rem);
  }
}

@media (max-width: 70rem) and (min-width: 56.01rem) {
  .hero--minimal .hero-layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 2rem;
  }

  .hero-experience-title {
    font-size: 2rem;
  }
}

@media (max-width: 56rem) {
  .hero--minimal .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .hero--minimal .hero-copy {
    max-width: 42rem;
    /* The stacked hero spans more than one screen; keep its links readable while scrolling. */
    opacity: 1;
    filter: none;
    transform: none;
    will-change: auto;
  }

  .hero--minimal h1 {
    font-size: clamp(2.75rem, 8.5vw, 5.1875rem);
  }

  .hero-experience {
    max-width: 21.5rem;
    height: auto;
    min-height: 0;
    justify-self: center;
    justify-content: center;
  }

  .hero-experience-proof {
    margin-top: 0;
  }

  .hero-experience-person {
    margin-block: 0;
  }
}

@media (max-width: 24rem) {
  .hero-experience-title {
    font-size: 1.8rem;
  }
}
