/* Home review pass, 4 Nov (from the :8780 Capyo Preview): hero alignment, trust logo sizes, faint route hover light. */
@media (min-width: 1025px) {
  body.page-home .film .lede {
    margin-top: 24px;
    max-width: 620px;
  }
  body.page-home .film-grid > div:last-child {
    align-self: end;
    margin-top: 0;
  }
  body.page-home .trust-logos > img {
    width: auto;
    max-width: none;
    object-fit: contain;
  }
  body.page-home .trust-logos > img[src$='nvidia.svg'] {
    height: 24px;
  }
  body.page-home .trust-logos > img[src$='government-of-canada.svg'] {
    height: 28px;
  }
  body.page-home .trust-logos > img[src$='deloitte.svg'] {
    height: 24px;
  }
  body.page-home .trust-logos > img[src$='duke-university.svg'] {
    height: 32px;
  }
  body.page-home .trust-logos > img[src$='university-of-oxford.svg'] {
    height: 42px;
  }
  body.page-home .trust-logos > img[src$='wolfram-research.svg'] {
    height: 40px;
  }
  body.page-home .trust-logos .un {
    font-size: 18px;
  }
  body.page-home .trust-logos .un img {
    height: 40px;
  }
}

@media (min-width: 1025px) {
  body.page-home .film-grid {
    grid-template-rows: auto auto auto;
    row-gap: 0;
  }
  body.page-home .film-grid > div:first-child {
    display: contents;
  }
  body.page-home .film-grid > div:first-child > * {
    grid-column: 1;
  }
  body.page-home .film-grid > div:first-child > .label {
    grid-row: 1;
  }
  body.page-home .film-grid h1 {
    grid-row: 2;
  }
  body.page-home .film-grid .lede {
    grid-row: 3;
    align-self: end;
  }
  body.page-home .film-grid > div:last-child {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: stretch;
    margin-block-start: 0;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body.page-home .film-grid .route {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body.page-home .film-grid .route + .route {
    margin-top: 0;
  }
}

body.page-home .route[href='/schools/'] {
  --route-hover-light: radial-gradient(
    ellipse at 15% 0%,
    rgba(240, 138, 60, 0.08) 0%,
    rgba(240, 138, 60, 0.025) 42%,
    rgba(240, 138, 60, 0) 78%
  );
}
body.page-home .route[href='/workplaces/'] {
  --route-hover-light: radial-gradient(
    ellipse at 15% 0%,
    rgba(143, 191, 163, 0.09) 0%,
    rgba(143, 191, 163, 0.025) 42%,
    rgba(143, 191, 163, 0) 78%
  );
}
body.page-home .route:is(:hover, :focus-visible) {
  background-color: rgba(84, 82, 80, 0.5);
  background-image: var(--route-hover-light);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Match the shared header controls while keeping the film header's border and colors. */
body.page-home .site-header .nav-link,
body.page-home .site-header .lang-btn {
  min-height: 44px;
  padding-block: 0;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
}
body.page-home .site-header .nav-cta {
  min-height: 46px;
  padding: 0 17.5px; /* Account for the film button’s border at the desktop zoom. */
  border-radius: 10px;
  font-size: 15px;
}

@media (max-width: 1010px) {
  body.page-home .site-header .nav-cta {
    padding-inline: 14px;
  }
}
@media (max-width: 370px) {
  body.page-home .site-header .nav-cta {
    padding-inline: 11px;
  }
}

/* EN sits left of About, with About next to Sign up. */
@media (min-width: 1025px) {
  body.page-home .site-header .bar {
    gap: 4px;
  }
  body.page-home .site-header .lft {
    margin-right: auto;
  }
  body.page-home .site-header .rt {
    display: contents;
  }
  body.page-home .site-header .lang-sw {
    order: 1;
  }
  body.page-home .site-header .nav {
    order: 2;
    margin-left: 0;
  }
  body.page-home .site-header .nav-su {
    order: 3;
    min-height: 46px;
    padding-inline: 19px;
    border-radius: 10px;
  }
  body.page-home .site-header .nav-cta {
    order: 4;
    margin-left: 12px;
  }
  body.page-home .site-header .nav-link,
  body.page-home .site-header .lang-btn {
    opacity: 1;
    line-height: 1.3;
  }
  body.page-home .site-header .lang-btn {
    height: auto;
    gap: 6px;
  }
  body.page-home .site-header .lang-btn svg {
    width: 16px;
    height: 16px;
  }
  body.page-home .site-header .lang-btn .chev {
    width: 9px;
    height: 9px;
  }
}

/* Hero alignment, 10 Nov (Max): cards line up with the text block (top of the small line, bottom of the subtitle),
   title sits flush left with the lines above and below it, even gaps around the title, arrow centred in the card. */
@media (min-width: 1025px) {
  body.page-home .film-grid h1 {
    margin-left: -0.04em;
  }
  body.page-home .film .lede {
    margin-top: 14px;
  }
  body.page-home .film-grid > div:last-child {
    grid-row: 1 / 4;
    margin-top: 3px;
    margin-bottom: 5px;
  }
  body.page-home .film-grid .route h3 {
    display: block;
    padding-right: 40px;
  }
  body.page-home .film-grid .route h3 svg {
    position: absolute;
    right: clamp(26px, 1.7vw, 34px);
    top: 50%;
    margin-top: -10px;
  }
}

/* Balance, 10 Nov (Max): cards stay put; the text block moves in from the left by the same inset the cards have on the right. */
@media (min-width: 1025px) {
  body.page-home .film-grid {
    padding-left: 5.25vw;
  }
  body.page-home .film-grid h1 {
    white-space: nowrap;
  }
}
