/* =========================================================
   Home - Hero Animations/10 intro (adapted) + page accents
   Colors sampled from assets/images/logo.jpeg:
   teal #10B0B8 · pink #F05888
   ========================================================= */

/* ---- Theatrical intro overlays ---- */
.su-preloader,
.su-split-overlay,
.su-tags-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  pointer-events: none;
}

.su-preloader,
.su-split-overlay {
  background:
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(16, 176, 184, 0.28), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 78%, rgba(240, 88, 136, 0.24), transparent 52%),
    linear-gradient(160deg, #e8f7f8 0%, #fff5f8 48%, #e6f8f9 100%);
  color: var(--teal);
}

.su-preloader,
.su-tags-overlay {
  z-index: 1200;
}

.su-split-overlay {
  z-index: 1190;
}

.su-intro-title {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.su-outro-title {
  position: absolute;
  top: 50%;
  left: calc(50% + 6.5rem);
  width: 100%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.su-intro-title h1,
.su-outro-title h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--teal);
}

/* "UP" matches logo pink */
.su-outro-title h1 {
  color: var(--pink);
}

.su-tag {
  position: absolute;
  overflow: hidden;
  width: max-content;
  color: rgba(16, 176, 184, 0.78);
}

.su-tag p {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.su-tag-1 {
  top: 16%;
  left: 12%;
  color: rgba(16, 176, 184, 0.9);
}

.su-tag-2 {
  bottom: 16%;
  left: 22%;
  color: rgba(240, 88, 136, 0.88);
}

.su-tag-3 {
  bottom: 28%;
  right: 12%;
  color: rgba(12, 142, 149, 0.85);
}

/* Opposite Play School (top-left) → Tuition top-right */
.su-tag-4 {
  top: 16%;
  right: 12%;
  color: rgba(240, 88, 136, 0.9);
}

/* Split wrappers (DIY SplitText) */
.su-intro-title .char,
.su-outro-title .char,
.su-hero-card .char {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.su-intro-title .char,
.su-outro-title .char {
  margin-top: 0.55rem;
}

.su-intro-title .char span,
.su-outro-title .char span,
.su-tag .word {
  position: relative;
  display: inline-block;
  transform: translateY(-100%);
  will-change: transform;
}

.su-intro-title .first-char {
  transform-origin: center center;
  color: var(--teal);
}

/* Color STEP (teal) vs rest of morph text */
.su-intro-title h1 {
  color: var(--teal);
}

.su-hero-card .char span {
  position: relative;
  display: inline-block;
  transform: translateY(100%);
  will-change: transform;
}

/* ---- Reveal stage (full-bleed photo + brand card) ---- */
.hero--intro {
  display: block;
  padding: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(16, 176, 184, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(240, 88, 136, 0.28), transparent 55%),
    #0c8e95;
}

.hero--intro .su-hero-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 2.25rem) 0 1.75rem;
  clip-path: polygon(0 48%, 0 48%, 0 52%, 0 52%);
  overflow: hidden;
}

.hero--intro .hero__media,
.hero--intro .hero__overlay {
  position: absolute;
  inset: 0;
}

.hero--intro .hero__overlay {
  background: linear-gradient(
    135deg,
    rgba(12, 142, 149, 0.72) 0%,
    rgba(16, 176, 184, 0.45) 42%,
    rgba(240, 88, 136, 0.32) 100%
  );
}

.su-hero-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: min(30%, 19rem);
  height: auto;
  margin: 0 auto 1.35rem;
  padding: 1.35rem 1.25rem 1.2rem;
  background: #fff;
  color: var(--charcoal);
  flex-shrink: 0;
  clip-path: polygon(0% 50%, 100% 50%, 100% 50%, 0% 50%);
  box-shadow: 0 24px 60px rgba(16, 176, 184, 0.28);
}

/* Mini logo footprints above card title */
.su-hero-steps {
  display: block;
  width: min(5.5rem, 42%);
  height: auto;
  margin: 0 auto 0.15rem;
  overflow: visible;
}

.su-hero-steps .su-step {
  transform-origin: center bottom;
  transform-box: fill-box;
  opacity: 0;
  transform: translateY(18px) scale(0.55);
}

html.su-intro-done .su-hero-steps .su-step {
  opacity: 1;
  transform: none;
}

.su-hero-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  color: var(--teal);
}

/* "UP" fragment in card title uses pink like the logo */
.su-hero-card h1 .word:last-child {
  color: var(--pink);
}

.su-hero-card h1 .first-char {
  color: var(--teal);
}

.su-hero-card__tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.su-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  flex-shrink: 0;
}

.hero--intro .su-hero-copy .hero__sub {
  margin: 0 auto 1.15rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.94);
  opacity: 1;
  animation: none;
  line-height: 1.45;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(8, 60, 66, 0.35);
}

.hero--intro .su-hero-copy .btn-group {
  justify-content: center;
  opacity: 1;
  animation: none;
}

.hero--intro .btn--outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero--intro .btn--outline:hover {
  background: #fff;
  color: var(--teal-deep);
}

.su-hero-footer {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--container);
  margin: auto auto 0;
  padding: 1.5rem 1.5rem 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  flex-shrink: 0;
}

/* While intro runs, keep header visible under overlays but dim interaction */
html.su-intro-running .site-header {
  pointer-events: none;
}

html.su-intro-done .su-preloader,
html.su-intro-done .su-split-overlay,
html.su-intro-done .su-tags-overlay {
  visibility: hidden;
}

/* Home only: white menu over the hero until the bar turns solid on scroll */
.page-home .site-header:not(.is-solid) {
  background: transparent;
  box-shadow: none;
}

.page-home .site-header:not(.is-solid) .nav__links > li > a,
.page-home .site-header:not(.is-solid) .nav__drop-toggle {
  color: #fff;
}

.page-home .site-header:not(.is-solid) .nav__links > li > a:hover,
.page-home .site-header:not(.is-solid) .nav__drop-toggle:hover,
.page-home .site-header:not(.is-solid) .nav__links > li > a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.page-home .site-header:not(.is-solid) .nav__toggle span {
  background: #fff;
}

/* Mobile drawer stays dark text on cream panel (not white-on-white) */
@media (max-width: 860px) {
  .page-home .site-header:not(.is-solid) .nav__links > li > a,
  .page-home .site-header:not(.is-solid) .nav__drop-toggle {
    color: var(--charcoal);
  }

  .page-home .site-header:not(.is-solid) .nav__links > li > a:hover,
  .page-home .site-header:not(.is-solid) .nav__drop-toggle:hover,
  .page-home .site-header:not(.is-solid) .nav__links > li > a.is-active {
    color: var(--teal-deep);
    background: var(--teal-soft);
  }
}

/* ---- Pillar icon stairs (unchanged) ---- */
.pillar-card .card__icon {
  font-size: 0;
  position: relative;
}

.pillar-card .card__icon::before {
  content: "";
  width: 22px;
  height: 14px;
  display: block;
  background:
    linear-gradient(var(--teal), var(--teal)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 8px 100% / 6px 10px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 16px 100% / 6px 14px no-repeat;
}

.pillar-card--train .card__icon::before {
  background:
    linear-gradient(var(--amber-deep), var(--amber-deep)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--amber-deep), var(--amber-deep)) 8px 100% / 6px 10px no-repeat,
    linear-gradient(var(--amber-deep), var(--amber-deep)) 16px 100% / 6px 14px no-repeat;
}

.pillar-card--tutor .card__icon::before {
  background:
    linear-gradient(var(--pink-deep), var(--pink-deep)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--pink-deep), var(--pink-deep)) 8px 100% / 6px 10px no-repeat,
    linear-gradient(var(--pink-deep), var(--pink-deep)) 16px 100% / 6px 14px no-repeat;
}

/* ---- Three pathways: image-led action gateway ---- */
.home-pathways {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 10%, rgba(16, 176, 184, 0.12), transparent 25rem),
    radial-gradient(circle at 93% 90%, rgba(240, 88, 136, 0.11), transparent 28rem),
    #f9fcfb;
}

.home-pathways::before {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  top: -10rem;
  right: 10%;
  border: 2px dashed rgba(242, 183, 5, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.home-pathways__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.home-pathways__head .section__lead {
  max-width: 42rem;
}

.home-pathways__help {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 15.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(16, 176, 184, 0.22);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: 0 0.9rem 2rem rgba(8, 92, 99, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.home-pathways__help span {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-pathways__help strong {
  color: var(--teal-deep);
  font-family: var(--font-heading);
}

.home-pathways__help:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 1.2rem 2.8rem rgba(8, 92, 99, 0.14);
}

.home-pathways__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.96fr 0.96fr;
  gap: clamp(0.85rem, 1.8vw, 1.4rem);
}

.home-pathway {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 48vw, 39rem);
  overflow: hidden;
  border-radius: 2rem;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 1.5rem 3.6rem rgba(10, 67, 73, 0.18);
  transform: translateZ(0);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.home-pathway--play {
  border-radius: 3.5rem 1.5rem 3.5rem 1.5rem;
}

.home-pathway--training {
  margin-top: 2rem;
  border-radius: 1.5rem 3rem 1.5rem 3rem;
}

.home-pathway--tuition {
  margin-top: 0.75rem;
  border-radius: 3rem 1.5rem 3rem 1.5rem;
}

.home-pathway > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s ease;
}

.home-pathway--play > img {
  object-position: 50% center;
}

.home-pathway--training > img {
  object-position: 56% center;
}

.home-pathway--tuition > img {
  object-position: 48% 25%;
}

.home-pathway__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 33, 36, 0.03) 15%, rgba(5, 42, 47, 0.25) 46%, rgba(5, 42, 47, 0.96) 100%);
  transition: background 0.55s ease;
}

.home-pathway--training .home-pathway__wash {
  background: linear-gradient(180deg, rgba(49, 32, 0, 0.04) 15%, rgba(62, 43, 0, 0.28) 48%, rgba(57, 39, 0, 0.95) 100%);
}

.home-pathway--tuition .home-pathway__wash {
  background: linear-gradient(180deg, rgba(55, 6, 25, 0.02) 15%, rgba(66, 8, 31, 0.24) 48%, rgba(61, 7, 29, 0.95) 100%);
}

.home-pathway__number {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.16);
  transition: transform 0.55s var(--ease), color 0.4s ease;
}

.home-pathway__content {
  width: 100%;
  padding: clamp(1.35rem, 3vw, 2.1rem);
}

.home-pathway__meta {
  display: block;
  min-height: 2.2em;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-pathway h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.02;
}

.home-pathway p {
  max-width: 30rem;
  margin: 0.75rem 0 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.home-pathway__action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--teal-deep);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.18);
  transition: gap 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s ease;
}

.home-pathway--training .home-pathway__action {
  color: var(--amber-deep);
}

.home-pathway--tuition .home-pathway__action {
  color: var(--pink-deep);
}

.home-pathway:hover {
  transform: translateY(-8px);
  box-shadow: 0 2rem 4.5rem rgba(10, 67, 73, 0.25);
}

.home-pathway:hover > img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.home-pathway:hover .home-pathway__number {
  transform: translateY(0.25rem) rotate(-5deg);
  color: #fff;
}

.home-pathway:hover .home-pathway__action {
  gap: 1rem;
  transform: translateY(-2px);
}

.home-pathway:focus-visible,
.home-pathways__help:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 5px;
}

/* ---- Home page pacing & card polish ---- */
.page-home .section + .section {
  position: relative;
}

.page-home .pillar-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(16, 176, 184, 0.08), transparent 55%),
    var(--white);
}

.page-home .pillar-card--train {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(242, 183, 5, 0.1), transparent 55%),
    var(--white);
}

.page-home .pillar-card--tutor {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(240, 88, 136, 0.1), transparent 55%),
    var(--white);
}

.page-home .pillar-card .card__icon {
  transition: transform 0.45s var(--ease);
}

.page-home .pillar-card:hover .card__icon {
  transform: translateY(-3px) scale(1.06);
}

.page-home .feature-tile:nth-child(2) { border-left-color: var(--amber); }
.page-home .feature-tile:nth-child(3) { border-left-color: var(--pink); }
.page-home .feature-tile:nth-child(4) { border-left-color: var(--teal-deep); }

.page-home .section--soft .feature-tile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 247, 0.95));
}

.page-home .grid-3,
.page-home .grid-4 {
  gap: 1.35rem;
}

/* ---- Responsive ---- */
@media (max-height: 720px) {
  .hero--intro .su-hero-stage {
    padding-top: calc(var(--nav-h) + 1.25rem);
  }

  .su-hero-card {
    margin-bottom: 1rem;
    padding: 1rem 0.95rem;
  }

  .su-hero-card h1 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
  }

  .su-hero-card__tag {
    font-size: 0.7rem;
  }

  .su-hero-steps {
    width: min(4.5rem, 38%);
  }

  .hero--intro .su-hero-copy .hero__sub {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
  }
}

@media (max-width: 62.5rem) {
  .home-pathways__head {
    grid-template-columns: 1fr;
  }

  .home-pathways__help {
    width: min(100%, 24rem);
  }

  .home-pathways__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-pathway {
    min-height: 30rem;
  }

  .home-pathway--play {
    grid-column: 1 / -1;
    min-height: 27rem;
  }

  .home-pathway--play > img {
    object-position: center 38%;
  }

  .home-pathway--training,
  .home-pathway--tuition {
    margin-top: 0;
  }

  .su-outro-title {
    left: calc(50% + 3.25rem);
  }

  .su-intro-title h1,
  .su-outro-title h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .su-intro-title .char,
  .su-outro-title .char {
    margin-top: 0.35rem;
  }

  .su-hero-card {
    width: min(72%, 18.5rem);
    margin-bottom: 1.15rem;
    padding: 1.15rem 1rem;
  }

  .su-hero-card h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .su-hero-copy {
    max-width: 28rem;
  }

  .su-tag-1 {
    top: 12%;
    left: 8%;
  }

  .su-tag-2 {
    bottom: 12%;
    left: 10%;
  }

  .su-tag-3 {
    bottom: 22%;
    right: 8%;
  }

  .su-tag-4 {
    top: 12%;
    right: 8%;
  }

  .su-hero-footer {
    flex-direction: column;
    text-align: center;
    padding-top: 1.15rem;
  }

  .hero--intro .su-hero-stage {
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 1.25rem;
  }

  .hero--intro .su-hero-copy .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--intro .su-hero-copy .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 40rem) {
  .home-pathways__grid {
    grid-template-columns: 1fr;
  }

  .home-pathway,
  .home-pathway--play {
    grid-column: auto;
    min-height: 29rem;
    margin-top: 0;
    border-radius: 1.75rem;
  }

  .home-pathway__content {
    padding: 1.35rem;
  }

  .home-pathway__meta {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .su-preloader,
  .su-split-overlay,
  .su-tags-overlay {
    display: none !important;
  }

  .hero--intro .su-hero-stage,
  .su-hero-card {
    clip-path: none !important;
  }

  .su-hero-card .char span,
  .su-intro-title .char span,
  .su-outro-title .char span,
  .su-tag .word {
    transform: none !important;
  }

  .su-hero-copy,
  .su-hero-footer {
    opacity: 1 !important;
    transform: none !important;
  }

  .su-hero-steps .su-step {
    opacity: 1 !important;
    transform: none !important;
  }

  .page-home .pillar-card:hover .card__icon {
    transform: none;
  }

  .home-pathway,
  .home-pathway:hover,
  .home-pathway > img,
  .home-pathway:hover > img,
  .home-pathway__number,
  .home-pathway:hover .home-pathway__number,
  .home-pathway__action,
  .home-pathway:hover .home-pathway__action,
  .home-pathways__help,
  .home-pathways__help:hover {
    transform: none;
    transition: none;
  }
}
