/* Home page: each section is one Canva page (1920x1080). Children use % of the page for position
   and cqw for type, so the layout scales as one piece. Values come from the Canva editor. */

:root {
  --canva-navy: #002576;
  --canva-ink: #171716;
}

main {
  overflow: hidden;
}

.canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  overflow: hidden;
  container-type: inline-size;
}

.canvas.home-hero {
  aspect-ratio: 1920 / 930;
}

.canvas > * {
  position: absolute;
  margin: 0;
}

.canvas-white { background: #fff; color: var(--canva-ink); }
.canvas-blue { background: var(--canva-navy); color: #fff; }
.canvas-grid { background: #fff url(../assets/web/bg-grid.webp) center / cover no-repeat; color: var(--canva-ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.el {
  display: block;
  max-width: none;
  height: auto;
}

/* White-background artwork sits on the grid without a white box */
.multiply {
  mix-blend-mode: multiply;
}

/* Soft silhouette behind a photo, like Canva's offset shadow copy */
.shadow {
  filter: brightness(0) blur(0.4cqw);
}

.txt {
  line-height: 1.21;
  white-space: nowrap;
}

.center {
  left: 0;
  width: 100%;
  text-align: center;
}

/* Page 2 */
.bar {
  width: 0.26%;
  background: var(--red);
}

.point {
  font-size: 2.33cqw;
  font-weight: 400;
  line-height: 1.174;
  letter-spacing: 0.085cqw;
}

/* Page 3 */
.desc {
  font-weight: 400;
  letter-spacing: 0.057cqw;
  text-align: center;
  color: #000;
}

.hand {
  font-family: Sriracha, Kanit, cursive;
  line-height: 1.39;
  letter-spacing: 0.05cqw;
  text-align: center;
  color: #000;
}

/* Buttons: a raised layer with a darker lip underneath, plus a light sweep across the face */
.cta {
  --edge: #8f0c12;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 0.22cqw 0 #ffffff70,
    inset 0 -0.3cqw 0 #00000026,
    0 0.42cqw 0 var(--edge),
    0 0.75cqw 1.1cqw #0006;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cta::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent 10%, #ffffffcc 50%, transparent 90%);
  pointer-events: none;
  transform: skewX(-20deg);
  animation: cta-shine 3.2s ease-in-out infinite;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-0.15cqw);
  filter: brightness(1.06);
}

.cta:hover::before,
.cta:focus-visible::before {
  animation-duration: 1s;
}

.cta:active {
  transform: translateY(0.35cqw);
  box-shadow:
    inset 0 0.22cqw 0 #ffffff70,
    inset 0 -0.3cqw 0 #00000026,
    0 0.07cqw 0 var(--edge),
    0 0.3cqw 0.6cqw #0005;
}

.cta.lime {
  --edge: #8aa513;
  color: #000;
  background: linear-gradient(#ecfb86, #cde93c 55%, #b9d62a);
}

.cta.red {
  --edge: #8f0c12;
  color: #fff;
  background: linear-gradient(#ff4d52, #e3232a 55%, #c4131a);
}

@keyframes cta-shine {
  0% { left: -60%; }
  45%, 100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .cta::before { animation: none; }
  .cta { transition: none; }
}

.home-mobile {
  display: none;
}

@media (max-width: 700px), (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .home-page {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 56px;
  }

  .home-main {
    overflow: visible;
  }

  .home-desktop {
    display: none;
  }

  .home-mobile {
    display: block;
  }

  .mobile-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    padding: clamp(16px, 3vh, 28px) 20px;
    overflow: hidden;
    text-align: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .mobile-panel > * {
    flex-shrink: 0;
  }

  .mobile-kicker {
    margin: 0;
    color: var(--canva-navy);
    font-size: clamp(11px, 3vw, 14px);
    font-weight: 700;
    letter-spacing: .2em;
  }

  .mobile-hero {
    background: #fff;
    gap: clamp(12px, 3vh, 28px);
  }

  .mobile-hero img {
    display: block;
    width: min(100%, 480px);
    max-height: 54vh;
    object-fit: contain;
  }

  .mobile-hero-copy {
    margin: 0;
    font-size: clamp(23px, 6.3vw, 34px);
    font-weight: 800;
    line-height: 1.2;
  }

  .mobile-next {
    position: absolute;
    bottom: 12px;
    left: calc(50% - 22px);
    width: 44px;
    height: 44px;
    color: var(--canva-navy);
    font-size: 38px;
    line-height: 32px;
  }

  .mobile-about {
    justify-content: space-evenly;
    gap: 5px;
    background: var(--canva-navy);
    color: #fff;
  }

  .mobile-about h2 {
    margin: 0;
    font-size: clamp(28px, 7.7vw, 44px);
    line-height: 1.04;
  }

  .mobile-teacher {
    display: flex;
    align-items: end;
    justify-content: center;
    width: min(66vw, 270px);
    height: clamp(120px, 28vh, 270px);
    overflow: hidden;
  }

  .mobile-teacher img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .mobile-teacher-name {
    margin: 0;
    font-size: clamp(18px, 5vw, 23px);
    font-weight: 700;
    line-height: 1.15;
  }

  .mobile-teacher-name small {
    display: block;
    font-size: clamp(11px, 3vw, 13px);
    font-weight: 400;
  }

  .mobile-points {
    width: min(100%, 420px);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
  }

  .mobile-points li {
    padding: 4px 0 4px 12px;
    border-left: 3px solid var(--red);
    font-size: clamp(12px, 3.25vw, 16px);
    line-height: 1.23;
  }

  .mobile-points li + li {
    margin-top: clamp(4px, 1vh, 10px);
  }

  .mobile-courses {
    gap: clamp(12px, 2vh, 24px);
    background: #fff url(../assets/web/bg-grid.webp) center / cover;
  }

  .mobile-courses h2 {
    margin: 0;
    color: var(--canva-navy);
    font-size: clamp(29px, 8vw, 42px);
    line-height: 1.1;
  }

  .mobile-course-list {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: clamp(10px, 2vh, 20px);
    width: min(100%, 430px);
    max-height: 80%;
  }

  .mobile-course-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: clamp(10px, 2vh, 22px) 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 5px 20px #082b7826;
  }

  .mobile-course-type {
    margin: 0 0 2px;
    color: var(--canva-navy);
    font-size: clamp(10px, 2.8vw, 13px);
    font-weight: 700;
  }

  .mobile-course-card h3 {
    margin: 0;
    font-family: ArchivoBlack, Arial, sans-serif;
    font-size: clamp(23px, 6vw, 33px);
    line-height: 1;
  }

  .mobile-course-card h3 span {
    color: var(--red);
  }

  .mobile-course-card > p:not(.mobile-course-type) {
    margin: 7px 0 9px;
    font-size: clamp(12px, 3.3vw, 16px);
    line-height: 1.2;
  }

  .mobile-course-card .cta,
  .mobile-final .cta {
    position: relative;
    width: min(100%, 230px);
    min-height: 44px;
    font-size: clamp(16px, 4.5vw, 20px);
  }

  .mobile-portal {
    gap: clamp(10px, 2.3vh, 22px);
    background: var(--canva-navy) url(../assets/web/star-burst.webp) center / cover no-repeat;
    color: #fff;
  }

  .mobile-portal h2 {
    margin: 0;
    font-size: clamp(33px, 9vw, 48px);
    line-height: 1.1;
  }

  .mobile-portal > p {
    margin: 0;
    font-size: clamp(16px, 4vw, 20px);
  }

  .mobile-portal > img {
    display: block;
    width: auto;
    max-width: 70%;
    height: min(49vh, 440px);
    object-fit: contain;
  }

  .mobile-portal-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .mobile-portal-features span {
    padding: 8px 11px;
    border: 1px solid #ffffff99;
    border-radius: 999px;
    background: #00257699;
    font-size: clamp(12px, 3.4vw, 16px);
  }

  .mobile-final {
    gap: clamp(18px, 4vh, 36px);
    background: #fff url(../assets/web/bg-grid.webp) center / cover;
  }

  .mobile-final h2 {
    margin: 0;
    color: var(--canva-navy);
    font-size: clamp(38px, 10vw, 54px);
    line-height: 1.1;
  }

  .mobile-final > p:not(.mobile-kicker) {
    margin: 0;
    font-size: clamp(19px, 5vw, 27px);
    font-weight: 700;
    line-height: 1.25;
  }
}

@media (max-width: 700px) and (max-height: 620px), (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .mobile-panel {
    padding-block: 10px;
  }

  .mobile-hero {
    gap: 8px;
  }

  .mobile-hero img {
    max-height: 48vh;
  }

  .mobile-teacher {
    height: 23vh;
  }

  .mobile-course-list {
    max-height: 84%;
  }

  .mobile-course-card {
    padding-block: 7px;
  }

  .mobile-course-card > p:not(.mobile-course-type) {
    margin-block: 3px 5px;
  }
}

@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .mobile-panel {
    padding: 10px 18px;
  }

  .mobile-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 6px 12px;
  }

  .mobile-hero .mobile-kicker {
    grid-column: 1 / -1;
  }

  .mobile-hero img {
    grid-column: 1;
    width: 100%;
    max-height: 72vh;
  }

  .mobile-hero-copy {
    grid-column: 2;
    font-size: clamp(22px, 4vw, 28px);
  }

  .mobile-about {
    display: grid;
    grid-template-columns: 34% 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 5px 16px;
    text-align: left;
  }

  .mobile-about h2 {
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(24px, 3.8vw, 30px);
  }

  .mobile-teacher {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
    height: 73vh;
  }

  .mobile-teacher-name {
    grid-column: 2;
    grid-row: 2;
    font-size: 18px;
  }

  .mobile-points {
    grid-column: 2;
    grid-row: 3;
  }

  .mobile-points li {
    font-size: clamp(11px, 1.8vw, 13px);
  }

  .mobile-points li + li {
    margin-top: 3px;
  }

  .mobile-courses {
    gap: 8px;
  }

  .mobile-courses h2 {
    font-size: 28px;
  }

  .mobile-course-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr;
    width: min(100%, 680px);
    height: 235px;
    max-height: calc(100% - 45px);
  }

  .mobile-course-card h3 {
    font-size: clamp(22px, 3.8vw, 29px);
  }

  .mobile-course-card > p:not(.mobile-course-type) {
    font-size: 12px;
  }

  .mobile-portal {
    display: grid;
    grid-template-columns: 1fr 42%;
    grid-template-rows: auto auto auto;
    gap: 8px;
  }

  .mobile-portal h2,
  .mobile-portal > p,
  .mobile-portal-features {
    grid-column: 1;
  }

  .mobile-portal h2 {
    font-size: clamp(28px, 5vw, 36px);
  }

  .mobile-portal > img {
    grid-column: 2;
    grid-row: 1 / 4;
    max-width: 100%;
    height: 72vh;
    justify-self: center;
  }

  .mobile-portal-features span {
    font-size: 12px;
  }

  .mobile-final {
    gap: 10px;
  }

  .mobile-final h2 {
    font-size: clamp(30px, 6vw, 42px);
  }

  .mobile-final > p:not(.mobile-kicker) {
    font-size: clamp(16px, 3vw, 20px);
  }
}

@media (min-width: 701px) and (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .home-page {
    scroll-padding-top: 52px;
  }

  .mobile-panel {
    height: calc(100vh - 52px);
    height: calc(100dvh - 52px);
  }
}
