/* Photo-led refresh for a warmer, more active academy homepage. */
.about-intro{
  max-width:980px;
}

.about-heading{
  max-width:720px;
  margin-bottom:42px;
}

.about-content{
  display:grid;
  gap:34px;
}

.leader-message{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:28px;
  align-items:start;
}

.director-portrait{
  margin:0;
  overflow:hidden;
  border-radius:28px;
  background:#fff;
  box-shadow:0 20px 50px rgba(21,56,92,.12);
}

.director-portrait img{
  width:100%;
  aspect-ratio:1/1.18;
  object-fit:cover;
  object-position:center top;
}

.director-portrait figcaption{
  display:flex;
  align-items:baseline;
  gap:9px;
  padding:20px 22px;
}

.director-portrait figcaption strong{
  color:var(--deep);
  font-size:22px;
}

.director-portrait figcaption span{
  color:#66758a;
  font-size:12px;
}

.about-heading>p:last-child{
  font-size:19px;
  color:var(--deep);
  font-weight:700;
}

.director-message{
  position:relative;
  padding:52px 58px;
  border:1px solid rgba(116,180,155,.24);
  border-radius:28px;
  background:linear-gradient(145deg,#fff,#fbfdfb);
  box-shadow:0 20px 50px rgba(21,56,92,.08);
}

.director-message .quote-mark{
  top:8px;
  right:34px;
}

.director-message p{
  position:relative;
  margin:0 0 18px;
  color:#52637a;
  font-size:16px;
  line-height:1.95;
  word-break:keep-all;
}

.director-message .message-greeting{
  margin-bottom:28px;
  color:var(--deep);
  font-size:20px;
  font-weight:800;
}

.director-message strong{
  color:var(--deep);
}

.director-message .message-closing{
  margin-top:30px;
  color:var(--deep);
  font-size:18px;
  font-weight:800;
}

.director-signature{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:10px;
  margin-top:30px;
  padding-top:22px;
  border-top:1px solid rgba(116,180,155,.25);
  color:#66758a;
  font-size:13px;
}

.director-signature strong{
  color:#2d725a;
  font-size:21px;
}

@media(max-width:620px){
  .about-heading{margin-bottom:30px}
  .about-heading>p:last-child{font-size:16px}
  .leader-message{grid-template-columns:1fr}
  .director-portrait img{aspect-ratio:1/1.05}
  .director-message{padding:36px 24px}
  .director-message p{font-size:15px;line-height:1.85}
  .director-message .message-greeting{font-size:18px}
  .director-message .message-closing{font-size:16px}
}

.hero{
  min-height:calc(100vh - 78px);
  display:flex;
  align-items:center;
  padding:64px 0 72px;
  background:
    linear-gradient(105deg,rgba(255,250,240,.94),rgba(240,248,255,.86) 45%,rgba(236,249,243,.9)),
    url("images/fun/fun-193824369_04.webp") center/cover;
}

.hero:before{
  z-index:0;
  background:linear-gradient(90deg,rgba(255,255,255,.8),rgba(255,255,255,.48),rgba(255,255,255,.12));
  opacity:1;
  mask-image:none;
}

.hero .wave{
  display:none;
}

.hero-grid{
  position:relative;
  z-index:1;
  grid-template-columns:minmax(0, .92fr) minmax(470px, 1.08fr);
  gap:44px;
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:650px;
}

.hero h1{
  font-size:clamp(42px,4.9vw,64px);
}

.hero-text{
  max-width:560px;
}

.hero-collage{
  position:relative;
  z-index:2;
  min-height:560px;
}

.hero-collage .shot{
  position:absolute;
  margin:0;
  overflow:hidden;
  border:8px solid #fff;
  border-radius:26px;
  background:#fff;
  box-shadow:0 24px 54px rgba(21,56,92,.18);
}

.hero-collage img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.04);
}

.hero-collage .main{
  inset:26px 54px 28px 18px;
}

.hero-collage .main img{
  object-position:center 40%;
}

.hero-collage .top{
  width:42%;
  height:34%;
  top:0;
  right:0;
  transform:rotate(2deg);
}

.hero-collage .bottom{
  width:44%;
  height:30%;
  right:20px;
  bottom:0;
  transform:rotate(-2deg);
}

.hero-collage .bottom img{
  object-position:right center;
}

.privacy-scene{
  position:relative;
}

.privacy-mask{
  position:absolute;
  z-index:3;
  width:9%;
  aspect-ratio:1;
  border-radius:18%;
  background:
    linear-gradient(45deg,rgba(40,55,75,.32) 25%,rgba(245,230,210,.38) 25% 50%,rgba(40,55,75,.32) 50% 75%,rgba(245,230,210,.38) 75%);
  background-size:10px 10px;
  backdrop-filter:blur(8px);
  box-shadow:0 0 0 2px rgba(255,255,255,.16);
}

.mask-teacher{left:39%;top:25%;width:13%}
.mask-teacher-back{left:52%;top:23%;width:10%}
.mask-child-back{left:62%;top:32%;width:8.5%}
.mask-child-front{left:52%;top:54%;width:11%}
.mask-child-right{left:85%;top:56%;width:9%}
.mask-child-bottom{left:72%;top:76%;width:11%}

.activity-photo.privacy-scene .privacy-mask{
  z-index:2;
}

.activity-photo.privacy-scene figcaption{
  z-index:4;
}

.collage-badge{
  position:absolute;
  left:50%;
  bottom:24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  width:max-content;
  max-width:calc(100% - 48px);
  padding:14px 50px 12px;
  border:2px solid rgba(255,255,255,.9);
  border-radius:22px;
  background:linear-gradient(100deg,#ffe487,#ffd969);
  color:#16385b;
  box-shadow:0 18px 32px rgba(21,56,92,.18);
  text-align:center;
  transform:translateX(-50%);
}

.badge-title{
  position:relative;
  font-size:clamp(24px,2.6vw,34px);
  line-height:1;
  letter-spacing:.01em;
  white-space:nowrap;
}

.badge-title em{
  color:#df6b2f;
}

.badge-title::before,
.badge-title::after{
  content:"";
  position:absolute;
  top:50%;
  width:20px;
  height:12px;
  border-top:3px solid #df6b2f;
  border-bottom:3px solid #df6b2f;
}

.badge-title::before{
  right:calc(100% + 14px);
  transform:translateY(-50%) rotate(12deg);
}

.badge-title::after{
  left:calc(100% + 14px);
  transform:translateY(-50%) rotate(-12deg);
}

.badge-subtitle{
  font-size:13px;
  font-weight:900;
  line-height:1.2;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.quick-grid div{
  min-height:94px;
}

.quick strong{
  font-size:28px;
}

.visual-activity{
  background:#fff;
}

.visual-heading{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(280px,.62fr);
  gap:42px;
  align-items:end;
  margin-bottom:36px;
}

.visual-heading .section-label{
  width:max-content;
}

.visual-heading h2{
  grid-column:1;
}

.visual-heading>p:last-child{
  grid-column:2;
  grid-row:1 / span 2;
  margin:0;
  color:#5e6f84;
  font-size:17px;
}

.activity-showcase{
  display:grid;
  grid-template-columns:1.15fr .85fr 1fr;
  grid-auto-rows:210px;
  gap:16px;
}

.activity-photo{
  position:relative;
  min-height:0;
  margin:0;
  overflow:hidden;
  border-radius:20px;
  background:#eef4f8;
  box-shadow:0 18px 40px rgba(21,56,92,.12);
}

.activity-photo.wide{
  grid-column:span 2;
}

.activity-photo.tall{
  grid-row:span 2;
}

.activity-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}

.activity-photo:hover img{
  transform:scale(1.035);
}

.activity-photo:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:48%;
  background:linear-gradient(transparent,rgba(12,35,58,.78));
}

.activity-photo figcaption{
  position:absolute;
  z-index:2;
  left:18px;
  right:18px;
  bottom:16px;
  color:#fff;
}

.activity-photo b{
  display:block;
  font-size:18px;
}

.activity-photo span{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.84);
  font-size:12px;
  font-weight:700;
}

.activity-points{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:18px;
}

.activity-points div{
  min-height:122px;
  padding:22px;
  border:1px solid #dde8f0;
  border-radius:18px;
  background:linear-gradient(135deg,#fff,#f8fbfd);
}

.activity-points div:nth-child(2){
  background:linear-gradient(135deg,#fff8de,#fff);
}

.activity-points div:nth-child(3){
  background:linear-gradient(135deg,#edf8f2,#fff);
}

.activity-points strong{
  display:block;
  margin-bottom:8px;
  color:#15385c;
  font-size:18px;
}

.activity-points span{
  color:#62758a;
  font-size:14px;
}

@media(max-width:960px){
  .hero{
    min-height:auto;
  }

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

  .hero-collage{
    min-height:520px;
  }

  .visual-heading{
    grid-template-columns:1fr;
    gap:12px;
  }

  .visual-heading h2,
  .visual-heading>p:last-child{
    grid-column:auto;
    grid-row:auto;
  }

  .activity-showcase{
    grid-template-columns:1fr 1fr;
    grid-auto-rows:190px;
  }

  .activity-photo.wide{
    grid-column:span 2;
  }

  .activity-photo.tall{
    grid-row:span 1;
  }

  .activity-points{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .hero{
    padding:44px 0 58px;
  }

  .hero h1{
    font-size:36px;
  }

  .hero-collage{
    min-height:440px;
  }

  .hero-collage .shot{
    border-width:5px;
    border-radius:18px;
  }

  .hero-collage .main{
    inset:18px 0 96px 0;
  }

  .hero-collage .top{
    width:46%;
    height:27%;
    right:6px;
  }

  .hero-collage .bottom{
    width:56%;
    height:28%;
    right:auto;
    left:12px;
    bottom:0;
  }

  .collage-badge{
    left:50%;
    right:auto;
    bottom:16px;
    width:calc(100% - 24px);
    max-width:none;
    padding:11px 36px 9px;
    border-radius:18px;
  }

  .badge-title{
    font-size:clamp(18px,6vw,25px);
  }

  .badge-title::before,
  .badge-title::after{
    width:14px;
    height:9px;
  }

  .badge-title::before{
    right:calc(100% + 9px);
  }

  .badge-title::after{
    left:calc(100% + 9px);
  }

  .badge-subtitle{
    font-size:11px;
  }

  .activity-showcase{
    grid-template-columns:1fr;
    grid-auto-rows:250px;
  }

  .activity-photo.wide{
    grid-column:auto;
  }

  .activity-photo figcaption{
    left:14px;
    right:14px;
  }
}

.teacher-grid.balanced-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

.teacher-grid.balanced-grid > .teacher-card:last-child:nth-child(odd){
  grid-column:1 / -1;
  width:min(100%,439px);
  justify-self:center;
}

@media (max-width:720px){
  .teacher-grid.balanced-grid{
    grid-template-columns:1fr;
  }

  .teacher-grid.balanced-grid > .teacher-card:last-child:nth-child(odd){
    grid-column:auto;
    width:100%;
  }
}

.teacher-photo img[src$="/jinny.jpg"],
.teacher-photo img[src$="/julia.jpg"],
.teacher-photo img[src$="/jamie.jpg"],
.teacher-photo img[src$="/ebony.jpg"],
.teacher-photo img[src$="/hailey.jpg"],
.teacher-photo img[src$="/grace.jpg"],
.teacher-photo img[src$="/emily.jpg"],
.teacher-photo img[src$="/sunny.jpg"]{
  object-position:center 42%;
}

.teacher-photo img[src$="/jinny.jpg"],
.teacher-photo img[src$="/grace.jpg"]{
  object-position:center 55%;
}

/* Keep the hero focused on one clean, unobstructed classroom photo. */
.hero-collage.single-photo .main{
  inset:18px;
  transform:rotate(-.4deg);
}

.hero-collage.single-photo .main img{
  object-position:center 42%;
}

@media(max-width:620px){
  .hero-collage.single-photo{
    min-height:420px;
  }

  .hero-collage.single-photo .main{
    inset:12px 0 42px;
  }
}
