/* Visual journey: an airport briefing deck that rewards exploration. */
html {
  scroll-padding-top: 138px;
}

body {
  background:
    radial-gradient(circle at 15% 8%, rgba(87, 230, 255, .06), transparent 28rem),
    var(--ink);
}

body::selection {
  color: var(--ink);
  background: var(--gold-soft);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 30;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  box-shadow: 0 0 18px rgba(255, 176, 0, .65);
  pointer-events: none;
}

.topbar {
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.topbar.is-scrolled {
  border-color: rgba(87, 230, 255, .24);
  background: rgba(7, 19, 24, .97);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
}

.topbar nav a {
  position: relative;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.topbar nav a:hover::after,
.topbar nav a:focus-visible::after,
.topbar nav a.is-active::after {
  transform: scaleX(1);
}

.hero {
  min-height: calc(100svh - 124px);
  isolation: isolate;
  gap: clamp(28px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(7, 19, 24, .98) 0%, rgba(7, 19, 24, .86) 42%, rgba(7, 19, 24, .45) 100%),
    url('portal/course-airport-hero-branded.png') center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 57%, rgba(255, 176, 0, .08) 57% 57.2%, transparent 57.2%),
    radial-gradient(circle at 77% 48%, rgba(87, 230, 255, .16), transparent 31%);
  pointer-events: none;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  text-wrap: balance;
  text-shadow: 0 18px 54px rgba(0, 0, 0, .5);
}

.hero-copy > p {
  padding-left: 18px;
  border-left: 2px solid var(--cyan);
  color: #d1dfe1;
}

.hero-visual {
  transform: perspective(1200px) rotateY(-3deg);
  box-shadow: 0 38px 90px rgba(0, 0, 0, .52);
  transition: transform .45s ease, border-color .35s ease, box-shadow .35s ease;
}

.hero-visual:hover {
  border-color: rgba(87, 230, 255, .55);
  transform: perspective(1200px) rotateY(0) translateY(-6px);
  box-shadow: 0 46px 110px rgba(0, 0, 0, .6), 0 0 55px rgba(87, 230, 255, .08);
}

.hero-logo-card {
  transition: transform .35s ease, box-shadow .35s ease;
}

.hero-visual:hover .hero-logo-card {
  transform: translate(-6px, -6px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, .56);
}

.scroll-cue {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  bottom: 26px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #d6e3e5;
  font: 700 .78rem/1.2 monospace;
  letter-spacing: .08em;
  text-decoration: none;
}

.scroll-cue span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--lime);
  color: var(--lime);
  animation: cue-bob 1.8s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

.explore-rail {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1500px, calc(100% - clamp(40px, 10vw, 160px)));
  margin: -38px auto 0;
  border: 1px solid #2b464d;
  background: rgba(7, 19, 24, .96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

.explore-rail > a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--line);
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition: background .24s ease, transform .24s ease;
}

.explore-rail > a:last-child {
  border-right: 0;
}

.explore-rail > a::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

.explore-rail > a:hover,
.explore-rail > a:focus-visible {
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 176, 0, .11), rgba(87, 230, 255, .06));
  transform: translateY(-6px);
}

.explore-rail > a:hover::before,
.explore-rail > a:focus-visible::before {
  transform: scaleX(1);
}

.explore-rail > a > span {
  color: var(--lime);
  font: 900 .72rem/1 monospace;
}

.explore-rail strong,
.explore-rail small {
  display: block;
}

.explore-rail strong {
  font-size: 1rem;
}

.explore-rail small {
  margin-top: 7px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}

.explore-rail i {
  color: var(--cyan);
  font-style: normal;
  font-size: 1.2rem;
}

.section {
  overflow: clip;
}

.section-head {
  position: relative;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(87, 230, 255, .14);
}

.section-head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: clamp(70px, 11vw, 170px);
  height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
}

#courses {
  padding-top: 120px;
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 176, 0, .075), transparent 28rem),
    linear-gradient(180deg, #071318, #09191e);
}

.course-format,
.calendar-shell,
.about-trust,
.payment-methods,
.sim-shell {
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.course-format:hover,
.calendar-shell:hover,
.about-trust:hover,
.payment-methods:hover {
  border-color: rgba(87, 230, 255, .42);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .32);
}

.course {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

.course::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .28s ease;
}

.course:hover::before {
  transform: scaleX(1);
}

.course:hover {
  box-shadow: 0 28px 60px rgba(0, 0, 0, .34);
}

.learning {
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 19, 24, .99), rgba(7, 19, 24, .86)),
    url('portal/course-airport-hero-branded.png') center / cover fixed;
}

.learning::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, transparent 42%, rgba(255, 176, 0, .06));
}

.simulator-section {
  background:
    radial-gradient(circle at 50% 42%, rgba(87, 230, 255, .09), transparent 34rem),
    #071318;
}

.sim-shell:hover {
  border-color: rgba(255, 176, 0, .48);
  box-shadow: 0 36px 100px rgba(0, 0, 0, .48);
}

.compliance {
  background: linear-gradient(180deg, #0a1b20, #071318);
}

.steps article {
  position: relative;
  transition: background .24s ease, transform .24s ease;
}

.steps article:hover {
  z-index: 1;
  background: rgba(87, 230, 255, .055);
  transform: translateY(-6px);
}

.is-enhanced .js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .75, .2, 1);
}

.is-enhanced .js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .explore-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-rail > a:nth-child(2) {
    border-right: 0;
  }

  .explore-rail > a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 164px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 88px;
    background-position: 62% center;
  }

  .hero-visual,
  .hero-visual:hover {
    transform: none;
  }

  .scroll-cue {
    right: 24px;
    bottom: 22px;
  }

  .learning {
    background-attachment: scroll;
  }

  #courses {
    padding-top: 78px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 174px;
  }

  .hero {
    padding-bottom: 78px;
    background-position: 69% center;
  }

  .scroll-cue {
    right: 16px;
    bottom: 16px;
  }

  .explore-rail {
    display: flex;
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .explore-rail > a {
    flex: 0 0 82vw;
    min-height: 106px;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
    scroll-snap-align: start;
  }

  #courses {
    padding-top: 58px;
  }

  .section-head {
    padding-bottom: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span {
    animation: none;
  }

  .is-enhanced .js-reveal {
    opacity: 1;
    transform: none;
  }
}
