:root {
  --ink: #17202a;
  --paper: #f5f3ee;
  --white: #fff;
  --accent: #0874ce;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 104px;
  border-bottom: 1px solid rgba(8, 32, 62, .12);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.hero-logo {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 4vw;
  display: block;
  width: clamp(175px, 17vw, 220px);
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}

.banner-actions {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 4vw;
  height: 104px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: var(--ink);
}

.banner-details {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.banner-details a {
  color: #5f6b78;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.banner-details a:hover,
.banner-details a:focus-visible {
  color: var(--accent);
}

.banner-contact {
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.banner-contact:hover,
.banner-contact:focus-visible {
  color: var(--accent);
}

.discovery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.discovery-button:hover,
.discovery-button:focus-visible {
  color: var(--accent);
  background: transparent;
}

/* Secondary CTA: outline pill, so existing students find the tracker without
   competing with the primary "Schedule Discovery Flight" prospect CTA. */
.student-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  background: transparent;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.student-login-button:hover,
.student-login-button:focus-visible {
  color: var(--white);
  background: var(--accent);
}

.mobile-label {
  display: none;
}

.slides,
.slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.4s ease, transform 7s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1.09);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(7, 15, 23, .32), rgba(7, 15, 23, .16) 45%, rgba(7, 15, 23, .5)),
    linear-gradient(90deg, rgba(7, 15, 23, .22), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  text-align: center;
}

h1 {
  max-width: 1050px;
  margin: 0 auto;
  font-size: clamp(1.5rem, 7vw, 7rem);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.055em;
  white-space: nowrap;
  text-wrap: balance;
}

.tagline {
  margin: 20px 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.015em;
}

.contact-button {
  display: inline-flex;
  margin-top: 42px;
  min-width: 148px;
  justify-content: center;
  padding: 15px 26px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.contact-button {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}

.contact-button:hover,
.contact-button:focus-visible {
  border-color: var(--white);
  background: var(--white);
}

.slide-message {
  position: absolute;
  z-index: 2;
  right: 4vw;
  bottom: 36px;
  width: min(350px, calc(100% - 48px));
  padding: 22px 24px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  color: var(--white);
  background: rgba(6, 19, 36, .76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}

.slide-message > p {
  margin: 0;
  color: #9ed2ff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.slide-message > strong {
  display: block;
  margin-top: 7px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.slide-message > span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .76);
  font-size: .88rem;
  line-height: 1.45;
}

.slide-message.is-changing > p,
.slide-message.is-changing > strong,
.slide-message.is-changing > span {
  animation: message-in .45s ease both;
}

.slide-message.is-changing > strong {
  animation-delay: .04s;
}

.slide-message.is-changing > span {
  animation-delay: .08s;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-dots {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.slide-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.slide-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #f1b24a;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(340px, 1fr);
  gap: clamp(56px, 9vw, 140px);
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(90px, 12vw, 160px) 0;
}

.section-label {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.contact-intro > p:not(.section-label) {
  max-width: 480px;
  margin: 28px 0 0;
  color: #60676d;
  font-size: 1.05rem;
  line-height: 1.7;
}

address {
  display: grid;
  gap: 10px;
  margin-top: 48px;
  font-style: normal;
}

address a {
  width: fit-content;
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: #bbb8b0;
  text-underline-offset: 4px;
}

address span {
  margin-bottom: 5px;
  color: #60676d;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.contact-form label {
  display: grid;
  gap: 9px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b7b4ad;
  border-radius: 0;
  padding: 13px 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.contact-form button {
  width: fit-content;
  margin-top: 8px;
  padding: 15px 25px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  color: var(--ink);
  background: transparent;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4vw;
  border-top: 1px solid #d8d5ce;
  color: #73777a;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .hero-content {
    width: min(100% - 32px, 600px);
  }

  .contact {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 600px);
  }

  .slide-message {
    right: 20px;
    bottom: 20px;
  }

  .hero-logo {
    top: 12px;
    left: 20px;
    width: 142px;
  }

  .hero::before {
    height: 90px;
  }

  .banner-actions {
    right: 16px;
    height: 90px;
  }

  .banner-details,
  .banner-contact,
  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  .discovery-button,
  .student-login-button {
    padding: 12px 14px;
    font-size: .62rem;
  }

  .hero-content {
    padding-bottom: 160px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slide {
    transition: opacity .2s ease;
    transform: none;
  }

  .slide-message.is-changing > p,
  .slide-message.is-changing > strong,
  .slide-message.is-changing > span {
    animation: none;
  }
}
