/* Front page styles — vars defined in style.css :root */

.fe-home {
  background: var(--fe-bg);
  color: var(--fe-text);
  overflow: clip;
}

.fe-grid-12 {
  display: grid;
  grid-template-columns: repeat(var(--fe-layout-columns), minmax(0, 1fr));
  column-gap: var(--fe-layout-gutter);
}

.fe-home a {
  color: inherit;
  text-decoration: none;
}

.fe-home a.fe-btn,
.fe-home a.fe-btn:visited {
  color: var(--fe-white);
}

@media (prefers-reduced-motion: reduce) {
  .fe-btn,
  .fe-btn:hover,
  .fe-btn:active {
    transition: none;
    transform: none;
  }
}

.fe-hero {
  background-color: var(--fe-red);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--fe-header-top-space) 0 72px;
  position: relative;
}

.fe-hero > .fe-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.fe-hero::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.44) 0%, rgba(0, 0, 0, 0.18) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

/* Hero nav — constrain to 1280px inner (matching category hero) */
.fe-nav {
  margin-inline: auto;
  width: min(var(--fe-content-max), calc(100% - 160px));
}

/* Hide dropdowns on the hero (photo background) */
.fe-nav-menu .menu > li > .sub-menu {
  display: none;
}

.fe-hero-copy {
  align-items: center;
  color: var(--fe-white);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  max-width: 952px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.fe-overline {
  font-size: var(--fe-type-display-md-size);
  font-weight: 300;
  line-height: var(--fe-type-display-md-line);
  margin: 0 0 20px;
  text-transform: lowercase;
}

.fe-hero h1 {
  font-size: var(--fe-type-display-2xl-size);
  font-weight: 700;
  line-height: var(--fe-type-display-2xl-line);
  margin: 0;
}

.fe-hero .fe-btn {
  margin-top: 30px;
}

.fe-about {
  padding: 48px 0;
}

.fe-about-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
}

.fe-about-copy h2 {
  font-size: var(--fe-type-display-xl-size);
  font-weight: 700;
  line-height: var(--fe-type-display-xl-line);
  margin: 0;
}

.fe-about-copy h2 span {
  color: var(--fe-cyan);
}

.fe-about-copy p {
  font-size: 18px;
  font-weight: 300;
  line-height: 28px;
  margin: 24px 0 0;
  max-width: 560px;
}

.fe-about-copy .fe-btn {
  margin-top: 36px;
  min-width: 0;
  width: fit-content;
}

.fe-stats {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1.18fr) minmax(0, 0.64fr) minmax(0, 1.18fr) minmax(0, 1.18fr);
}

.fe-stat {
  background: var(--fe-white);
  border-bottom: 8px solid var(--fe-cyan);
  box-shadow: 0 8px 20px rgba(16, 22, 48, 0.1), 0 3px 8px rgba(16, 22, 48, 0.06);
  height: auto;
  padding: 24px 42px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .fe-stat:hover {
    box-shadow: 0 18px 36px rgba(16, 22, 48, 0.18), 0 8px 16px rgba(16, 22, 48, 0.1);
    transform: translateY(-3px);
  }
}

.fe-stat h3 {
  font-size: var(--fe-type-display-xl-size);
  font-weight: 700;
  line-height: var(--fe-type-display-xl-line);
  margin: 0;
}

.fe-stat p {
  font-size: var(--fe-type-heading-lg-size);
  font-weight: 500;
  line-height: var(--fe-type-heading-lg-line);
  margin: 20px 0 0;
}

.fe-stat-blue {
  background: color-mix(in srgb, var(--fe-cyan) 24%, transparent);
}

.fe-stat-blue h3,
.fe-stat-blue p {
  color: var(--fe-dark);
}

.fe-stat-small h3 {
  color: var(--fe-cyan);
}

.fe-stat-image {
  border-bottom: 0;
  box-shadow: 0 8px 20px rgba(16, 22, 48, 0.1), 0 3px 8px rgba(16, 22, 48, 0.06);
  color: var(--fe-white);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.fe-stat-image-media {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.fe-stat-image::before {
  background: linear-gradient(180deg, rgba(16, 22, 48, 0.42) 0%, rgba(16, 22, 48, 0.54) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.fe-stat-image p {
  font-size: var(--fe-type-display-lg-size);
  line-height: var(--fe-type-display-lg-line);
  margin: auto 0;
  position: relative;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.fe-stat-image strong {
  font-weight: 700;
}

.fe-stat-wide {
  grid-column: span 3;
}

.fe-stat-small {
  grid-column: span 2;
}

.fe-stats > .fe-stat:nth-child(3),
.fe-stats > .fe-stat:nth-child(4) {
  align-self: stretch;
}

.fe-stats > .fe-stat:nth-child(6) p {
  white-space: nowrap;
}

.fe-cases {
  padding: 48px 0;
}

.fe-cases h2 {
  font-size: var(--fe-type-display-xl-size);
  font-weight: 700;
  line-height: var(--fe-type-display-xl-line);
  margin: 0 0 36px;
  max-width: 1050px;
}

.fe-cases h2 span {
  color: var(--fe-cyan);
}

.fe-cases-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fe-case {
  aspect-ratio: 590 / 284;
  overflow: hidden;
  position: relative;
}

.fe-case > img {
  height: 100%;
  filter: brightness(0.98);
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
  width: 100%;
}

.fe-case::after {
  background: linear-gradient(180deg, rgba(16, 22, 48, 0) 38%, rgba(16, 22, 48, 0.24) 100%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .fe-case:hover > img {
    filter: brightness(1.02) saturate(1.06);
    transform: scale(1.12);
  }

  .fe-case:hover::after {
    opacity: 1;
  }
}

.fe-cases .fe-btn {
  display: flex;
  margin: 44px auto 0;
  width: fit-content;
}

.fe-news {
  background: var(--fe-white);
  padding: 48px 0;
}

.fe-news h2 {
  font-size: var(--fe-type-display-xl-size);
  font-weight: 700;
  line-height: var(--fe-type-display-xl-line);
  margin: 0 0 36px;
}

.fe-news h2 span {
  color: var(--fe-cyan);
}

.fe-news-grid {
  display: grid;
  gap: 32px 38px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Body text reference:
   Body LG: 18px / 300 / 28px
   Body MD: 16px / 300 / 24px
   Body SM: 14px / 300 / 20px
   Body XS: 12px / 300 / 18px */

.fe-join {
  overflow: visible;
  padding: 48px 0;
  position: relative;
  z-index: 3;
}

.fe-join-wrap {
  align-items: stretch;
  display: flex;
  gap: 20px;
  min-height: 479px;
  overflow: visible;
}

.fe-join-copy {
  max-width: 571px;
  padding: 48px 0 88px;
  position: relative;
  z-index: 1;
}

.fe-join-copy h2 {
  color: var(--fe-cyan);
  font-size: var(--fe-type-display-xl-size);
  font-weight: 700;
  line-height: var(--fe-type-display-xl-line);
  margin: 0;
}

.fe-join-copy p {
  font-size: 18px;
  font-weight: 300;
  line-height: 28px;
  margin: 24px 0 0;
  max-width: 560px;
}

.fe-join-copy .fe-btn {
  margin-top: 36px;
  min-width: 0;
  width: fit-content;
}

.fe-join-art {
  flex: 1;
  min-width: 300px;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.fe-join-gradient {
  max-width: none;
  pointer-events: none;
  position: absolute;
  right: -226px;
  top: 48px;
  width: 760px;
  z-index: 6;
}



@media (max-width: 1280px) {
  .fe-hero-copy {
    margin-top: 190px;
  }

  .fe-news-grid {
    gap: 28px 24px;
  }
}

@media (max-width: 1024px) {
  .fe-hero {
    min-height: 720px;
    padding-top: 34px;
  }

  .fe-nav {
    width: 100%;
  }

  .fe-logo img {
    height: 64px;
    width: auto;
  }

  .fe-hero-copy {
    margin-top: 170px;
  }

  .fe-about-grid {
    grid-template-columns: 1fr;
  }

  .fe-about-copy .fe-btn,
  .fe-join-copy .fe-btn {
    min-width: 0;
  }

  .fe-stats {
    grid-template-columns: 1fr 1fr;
  }

  .fe-stat-wide,
  .fe-stat-small {
    grid-column: span 1;
  }

  .fe-cases-grid {
    grid-template-columns: 1fr;
  }

  .fe-news-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .fe-news-grid::-webkit-scrollbar {
    display: none;
  }

  .fe-news-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }

  .fe-join-wrap {
    flex-direction: column;
    min-height: 0;
  }

  .fe-join-copy {
    max-width: none;
    padding-bottom: 24px;
  }

  .fe-join-art {
    display: none;
  }
}

@media (max-width: 768px) {
  .fe-hero {
    min-height: 590px;
    padding-top: 18px;
  }

  .fe-logo img {
    height: 52px;
    width: auto;
  }

  .fe-hero-copy {
    margin-top: 124px;
  }

  .fe-overline {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .fe-hero h1 {
    font-size: var(--fe-type-display-2xl-size);
    line-height: var(--fe-type-display-2xl-line);
  }

  .fe-btn {
    font-size: 14px;
    min-height: 42px;
    padding: 10px 22px;
  }

  .fe-about,
  .fe-cases,
  .fe-news,
  .fe-join,
  .fe-trusted {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .fe-about-copy h2,
  .fe-cases h2,
  .fe-news h2,
  .fe-join-copy h2,
  .fe-trusted h2 {
    font-size: 28px;
  }

  .fe-about-copy p,
  .fe-join-copy p {
    font-size: 16px;
    line-height: 24px;
  }

  .fe-stat p {
    font-size: 14px;
    line-height: 20px;
  }

  .fe-stat h3 {
    font-size: 24px;
  }

  .fe-stats {
    gap: 12px;
  }

  .fe-stat {
    border-bottom-width: 3px;
    height: auto;
    padding: 10px 10px 8px;
  }

  .fe-stat-image p {
    font-size: 16px;
  }

  .fe-about-copy .fe-btn,
  .fe-join-copy .fe-btn {
    max-width: none;
    width: 100%;
  }

  .fe-cases-grid {
    gap: 12px;
  }

  .fe-cases .fe-btn {
    margin-top: 12px;
    width: fit-content;
  }

  .fe-news-card {
    flex: 0 0 85%;
  }

  .fe-join-copy {
    padding-top: 0;
  }

  .fe-join-art {
    display: none;
  }

  .fe-join-gradient {
    right: -92px;
    top: -44px;
    width: 300px;
  }
}
