/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1100px) {

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    grid-template-columns: 46% 54%;
  }

  .hero h1 {
    font-size:
      clamp(52px, 6vw, 72px);
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-visual {
    height: 570px;
  }

  .hero-art {
    max-width: 700px;
  }

  .hero-benefits {
    gap: 16px;
  }

  .hero-benefit {
    font-size: 12px;
  }

  .benefit-icon {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
  }

  .progress-track {
    width: 260px;
  }

  .feature-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .course-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .roadmap-wave {
    height: 300px;
  }

  .roadmap-tile {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .roadmap-tile svg {
    width: 23px;
    height: 23px;
  }

  .roadmap-label {
    top: 40px;
    font-size: 13px;
  }

  .roadmap-card {
    width: 216px;
    top: 74px;
  }

  .roadmap-node.card-up .roadmap-card {
    bottom: 74px;
  }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

  /* --- Career roadmap becomes a vertical timeline --- */

  .roadmap {
    margin-top: 40px;
    padding-bottom: 0;
  }

  .roadmap-wave {
    height: auto;
  }

  .roadmap-track {
    display: none;
  }

  .roadmap-node {
    position: relative;

    left: auto;
    top: auto;
    width: auto;
    height: auto;

    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;

    padding-bottom: 26px;

    opacity: 1;
    transform: none;
  }

  .roadmap-node::before {
    content: "";

    position: absolute;
    left: 27px;
    top: 60px;
    bottom: -2px;

    width: 2px;
    background: var(--line);
  }

  .roadmap-node:last-child::before {
    display: none;
  }

  .roadmap-tile {
    position: static;
    transform: none;

    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;

    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .roadmap-node:hover .roadmap-tile,
  .roadmap-node.is-active .roadmap-tile {
    transform: none;
  }

  .roadmap-tile svg {
    width: 22px;
    height: 22px;
  }

  .roadmap-label {
    position: static;
    transform: none;

    grid-column: 2;
    grid-row: 1;

    display: block;
    margin-bottom: 8px;

    font-size: 15px;
    line-height: 54px;
  }

  .roadmap-card,
  .roadmap-node.card-left .roadmap-card,
  .roadmap-node.card-right .roadmap-card,
  .roadmap-node.card-up .roadmap-card {
    position: static;
    transform: none;

    grid-column: 2;
    grid-row: 2;

    left: auto;
    right: auto;
    top: auto;
    bottom: auto;

    width: auto;
    padding: 0;

    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .roadmap-card-head {
    display: none;
  }

  .roadmap-card ul {
    margin-top: 0;
  }

  .hero {
    min-height: auto;

    padding:
      130px
      0
      100px;
  }

  .hero-inner {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .hero-copy {
    max-width: 650px;

    margin-inline: auto;

    text-align: center;
  }

  .hero-eyebrow {
    margin-inline: auto;
  }

  .hero h1 {
    font-size:
      clamp(48px, 9vw, 68px);
  }

  .hero-copy p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-benefits {
    justify-content: center;
  }

  .hero-handwriting {
    display: none;
  }

  .hero-visual {
    height: 500px;

    margin-top: -15px;
  }

  .hero-art {
    width: 100%;

    max-width: 720px;

    transform: none;
  }

  .hero-controls {
    justify-content: center;
  }

  .progress-track {
    width: 180px;
  }

  .split-content {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .student-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 700px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;

    top: 76px;

    left: 4%;

    width: 92%;

    padding: 20px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 14px;

    background: #ffffff;

    color: #111827;

    border-radius: 18px;

    box-shadow:
      0 20px 50px rgba(15, 23, 42, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 8px 5px;
  }

  .nav-cta {
    text-align: center;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: 94%;
  }

  .hero {
    padding:
      120px
      0
      90px;
  }

  .hero-inner {
    width: 94%;
  }

  .hero-eyebrow {
    padding: 11px 16px;

    font-size: 10px;

    letter-spacing: 0.13em;
  }

  .eyebrow-dot {
    width: 10px;
    height: 10px;

    flex-basis: 10px;
  }

  .hero h1 {
    font-size:
      clamp(43px, 13vw, 58px);

    letter-spacing: -0.055em;
  }

  .hero-copy p {
    font-size: 16px;

    line-height: 1.5;

    padding-inline: 10px;
  }

  .hero-actions {
    flex-direction: column;

    align-items: stretch;

    padding-inline: 15px;
  }

  .btn {
    width: 100%;

    min-height: 58px;

    font-size: 16px;
  }

  .hero-benefits {
    display: grid;

    grid-template-columns:
      1fr 1fr;

    text-align: left;

    gap: 16px;

    margin-top: 5px;
  }

  .hero-benefit {
    font-size: 12px;
  }

  .hero-visual {
    height: 370px;

    margin-top: 0;
  }

  .hero-art {
    width: 120%;

    max-width: none;

    transform:
      translateX(-5%);
  }

  .hero-controls {
    bottom: 22px;

    gap: 10px;
  }

  .slide-label {
    min-width: 42px;

    font-size: 12px;
  }

  .slide-label strong {
    font-size: 14px;
  }

  .progress-track {
    width: 120px;

    height: 4px;
  }

  .carousel-buttons {
    margin-left: 5px;

    gap: 5px;
  }

  .carousel-buttons button {
    width: 38px;
    height: 38px;

    font-size: 17px;
  }

  .trust-items {
    display: grid;

    grid-template-columns:
      1fr 1fr;

    gap: 10px;

    font-size: 0.75rem;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size:
      clamp(2rem, 9vw, 2.8rem);
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 50px 0 20px;
  }

  .footer-bottom {
    margin-top: 30px;
  }
}