/* Direction first screen only: intentionally independent of .hero/.course-hero. */
.oz-direction-hero {
  width: min(1800px, calc(100% - 40px));
  margin: 32px auto 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 58px;
  background: #3495ff;
  color: #fff;
}

.oz-direction-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  width: min(1240px, calc(100% - 80px));
  min-height: 620px;
  margin: 0 auto;
  gap: 20px;
}

.oz-direction-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: 70px 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}

.oz-direction-hero .oz-direction-hero__eyebrow,
.oz-direction-hero .oz-direction-hero__title,
.oz-direction-hero .oz-direction-hero__description {
  margin: 0;
  overflow-wrap: anywhere;
}

.oz-direction-hero__eyebrow {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.oz-direction-hero__title {
  font-size: clamp(36px, 2.9vw, 44px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.oz-direction-hero__description {
  max-width: 590px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.oz-direction-hero__cta {
  display: inline-flex;
  min-height: 54px;
  max-width: 100%;
  padding: 15px 32px;
  justify-content: center;
  align-items: center;
  border: 2px solid transparent;
  border-radius: 50px;
  background: #25ffba;
  color: #202020;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color 160ms ease;
}

.oz-direction-hero__cta:hover { background: #71ffd2; }
.oz-direction-hero__cta:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }

.oz-direction-hero__visual {
  position: relative;
  min-width: 0;
  align-self: stretch;
}

.oz-direction-hero__portrait {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 624 / 683;
  overflow: hidden;
}

/* Original photo has transparent side margins. Crop those, never distort it. */
.oz-direction-hero__portrait--default { transform: scaleX(-1); }
.oz-direction-hero__portrait--default img {
  position: absolute;
  top: -11.22%;
  left: -57%;
  width: 204.89%;
  max-width: none;
  height: auto;
}

.oz-direction-hero__portrait--custom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.oz-direction-hero__wave {
  position: absolute;
  bottom: 0;
  left: -8%;
  width: 180%;
  height: 94%;
  pointer-events: none;
}

.oz-direction-hero__doodle { position: absolute; width: 90px; height: auto; pointer-events: none; }
.oz-direction-hero__doodle--left { top: 14%; left: 0; }
.oz-direction-hero__doodle--right { top: 7%; right: -18%; width: 170px; }
.oz-direction-hero__mobile-title,
.oz-direction-hero__mobile-photo { display: none; }

@media (min-width: 901px) and (max-width: 1199px) {
  .oz-direction-hero__inner { width: calc(100% - 64px); min-height: 520px; }
  .oz-direction-hero__copy { padding: 48px 0; gap: 24px; }
  .oz-direction-hero__description { font-size: 18px; }
  .oz-direction-hero__cta { padding-inline: 22px; font-size: 17px; }
}

@media (max-width: 900px) {
  .oz-direction-hero { width: calc(100% - 24px); margin-top: 16px; border-radius: 32px; }
  .oz-direction-hero__inner { width: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .oz-direction-hero__copy { width: min(100%, 620px); margin-inline: auto; padding: 32px 24px 0; gap: 22px; }
  .oz-direction-hero__eyebrow { max-width: 100%; padding: 9px 14px; border-radius: 50px; background: #ffffff26; font-size: 14px; line-height: 1.3; }
  .oz-direction-hero__title { font-size: clamp(32px, 9.6vw, 42px); line-height: 1.08; }
  .oz-direction-hero__description { font-size: 16px; line-height: 1.5; }
  .oz-direction-hero__cta { width: 100%; min-height: 52px; padding: 13px 12px; font-size: 14px; }
  .oz-direction-hero__visual { width: min(100%, 460px); margin: 24px auto 0; aspect-ratio: 1.08; }
  .oz-direction-hero__portrait { left: 6%; width: 88%; }
  .oz-direction-hero__wave { left: -15%; width: 150%; height: 92%; }
  .oz-direction-hero__doodle--left { top: 10%; left: 8%; width: 52px; }
  .oz-direction-hero__doodle--right { top: 5%; right: 4%; width: 64px; }
  .oz-direction-hero__desktop-title { display: none; }
  .oz-direction-hero__mobile-title,
  .oz-direction-hero__mobile-photo { display: block; }
  .oz-direction-hero__visual:has(.oz-direction-hero__mobile-photo) .oz-direction-hero__desktop-photo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .oz-direction-hero__cta { transition: none; }
}
