/* Responsive visual layer — keeps the original theme and teacher details. */
:root {
  --surface: #fff;
  --soft: #edf2e8;
}
html[data-theme="dark"] {
  --surface: #1b2c28;
  --soft: #24372e;
}
body {
  overflow-wrap: break-word;
}
main {
  overflow: clip;
}
.header {
  position: relative;
  z-index: 3;
}
.header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.theme-toggle {
  width: 44px;
  height: 44px;
}
button:focus-visible {
  outline: 3px solid #187ac2;
  outline-offset: 4px;
}
.hero {
  position: relative;
  background: radial-gradient(ellipse at 90% 20%, #e2c96922, transparent 55%);
}
.hero-copy {
  animation: arrive 0.8s ease both;
}
.hero-curricula {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  max-width: 470px;
}
.hero-curricula span {
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
}
.hero .lead {
  max-width: 490px;
}
.academy-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}
.story-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}
h2 em {
  font-family: Georgia, serif;
  color: var(--green);
  font-weight: 400;
}
.learning-map {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
  position: relative;
  box-shadow: 12px 12px 0 #d5b75420;
}
.map-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.map-header svg,
.map-foot svg,
.directory-context svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--green);
}
.map-star {
  margin-left: auto;
  color: #9a7112;
  font-size: 32px;
  animation: turn 24s linear infinite;
}
.learning-map ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.learning-map li {
  display: flex;
  gap: 18px;
  position: relative;
  padding-bottom: 27px;
}
.learning-map li:not(:last-child):before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  border-left: 1px dashed var(--green);
}
.map-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 12px;
  background: var(--surface);
}
.learning-map small {
  letter-spacing: 1.2px;
  font-size: 9px;
  color: var(--muted);
}
.learning-map h3 {
  font-size: 21px;
  margin: 5px 0 8px;
}
.learning-map p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.map-foot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.curriculum-band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}
.curriculum-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}
.curriculum-heading h2 {
  margin-bottom: 0;
}
.curriculum-heading > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
}
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.curriculum-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.curriculum-symbol {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  color: var(--green);
}
.curriculum-symbol svg {
  width: 36px;
  height: 36px;
}
.curriculum-symbol span {
  font-family: Georgia, serif;
  color: var(--muted);
  font-size: 14px;
}
.curriculum-card h3 {
  font-size: 21px;
}
.curriculum-card p {
  font-size: 13px;
  color: var(--muted);
}
.curriculum-card a {
  margin-top: auto;
  align-self: start;
  padding-top: 10px;
}
.curriculum-note {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0;
}
.learning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  font-size: 12px;
  color: var(--green);
}
.learning-tags span:before {
  content: "✦";
  margin-right: 8px;
  color: #99771d;
}
.benefits article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
}
.benefits article:nth-child(2) {
  border-top: 3px solid #d5b754;
}
.benefits article:first-child {
  border-top: 3px solid #477fa2;
}
.benefits article:last-child {
  border-top: 3px solid #53866e;
}
.number {
  font-family: Georgia, serif;
  font-size: 23px;
}
.directory-context {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  margin-top: 24px;
}
.directory-context p {
  margin: 0;
  font-size: 14px;
}
.directory-context small {
  color: var(--muted);
  font-size: 12px;
}
.teacher-card {
  position: relative;
  overflow: hidden;
}
.teacher-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #397a69, #7fa8c4, #e4c365);
}
.table-scroll {
  max-width: 100%;
}
.mobile-enquire {
  display: none;
}
.reveal-in {
  animation: reveal-up 0.75s cubic-bezier(0.2, 0.65, 0.25, 1) both;
}
.curriculum-card:nth-child(2).reveal-in,
.benefits article:nth-child(2).reveal-in {
  animation-delay: 0.08s;
}
.curriculum-card:nth-child(3).reveal-in {
  animation-delay: 0.16s;
}
.curriculum-card:nth-child(4).reveal-in {
  animation-delay: 0.24s;
}
@keyframes reveal-up {
  from {
    opacity: 0.15;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (hover: hover) {
  .curriculum-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px #123c2512;
  }
  .subject-nav a:hover {
    transform: translateY(-2px);
  }
}
@media (min-width: 651px) and (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  h1 {
    font-size: clamp(38px, 5vw, 52px);
  }
  .academy-story {
    gap: 32px;
  }
  .curriculum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefits {
    gap: 16px;
  }
  .benefits article {
    padding: 20px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .contact {
    gap: 20px;
  }
  .discover {
    gap: 30px;
  }
  .subject {
    min-width: 140px;
    font-size: 20px;
  }
}
@media (max-width: 650px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header {
    padding: 16px 20px;
    gap: 12px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .header nav {
    gap: 10px;
  }
  .nav-contact {
    padding: 6px 12px;
  }
  .nav-contact span {
    margin-left: 8px;
  }
  .header nav .theme-toggle {
    order: 4;
  }
  .hero {
    padding-top: 36px;
  }
  h1 {
    font-size: clamp(36px, 9.7vw, 54px);
    letter-spacing: -1.8px;
  }
  .lead {
    font-size: 16px;
  }
  .actions {
    flex-wrap: wrap;
    gap: 20px;
  }
  .hero-art {
    padding-top: 35px;
  }
  .art-frame img {
    height: auto;
    min-height: 260px;
    aspect-ratio: 1.1;
  }
  .float-note {
    max-width: 78%;
  }
  .hero-notes {
    gap: 8px 18px;
  }
  .academy-story {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .learning-map {
    padding: 24px 20px;
    box-shadow: 6px 6px 0 #d5b75420;
  }
  .curriculum-heading {
    display: block;
  }
  .curriculum-heading > p {
    margin-top: 20px;
  }
  .curriculum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .curriculum-card {
    padding: 18px 15px;
    border-radius: 13px;
  }
  .curriculum-card h3 {
    font-size: 19px;
    overflow-wrap: normal;
  }
  .curriculum-card p {
    font-size: 12px;
  }
  .curriculum-card a {
    font-size: 12px;
  }
  .curriculum-symbol {
    margin-bottom: 22px;
  }
  .curriculum-symbol svg {
    width: 30px;
    height: 30px;
  }
  .benefits {
    margin-top: 28px;
    gap: 18px;
  }
  .benefits article {
    padding: 25px;
  }
  .subject-cloud {
    transform: none;
    margin: 0;
  }
  .subject {
    min-width: 0;
    flex-basis: 40%;
    padding: 17px;
    font-size: 20px;
    gap: 6px;
  }
  .subject.large {
    flex-basis: 45%;
  }
  .subject b {
    font-size: 23px;
  }
  .teacher-card dl div {
    flex-wrap: wrap;
    gap: 5px 15px;
  }
  .teacher-card dd {
    text-align: left;
    margin-left: auto;
    max-width: 100%;
  }
  .teacher-card {
    padding: 24px 20px;
  }
  .directory-context {
    padding: 18px;
    align-items: start;
  }
  .contact {
    margin-inline: 15px;
    padding: 30px 20px;
  }
  .footer {
    padding-bottom: 100px;
  }
  .mobile-enquire {
    position: fixed;
    z-index: 10;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px;
    border-radius: 14px;
    background: #225b47;
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 25px #0003;
    border: 1px solid #ffffff30;
  }
  html {
    scroll-padding-top: 20px;
  }
  .teacher-card {
    scroll-margin-top: 20px;
  }
}
@media (max-width: 360px) {
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
  .header nav {
    font-size: 12px;
    gap: 7px;
  }
  .hero-notes {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Full logo: preserve every edge of the square artwork. */
.header .brand {
  flex-shrink: 0;
}
.header .brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  flex: 0 0 auto;
  background: #fff;
}
@media (max-width: 650px) {
  .header .brand img {
    width: 64px;
    height: 64px;
  }
}

/* Email-to-class illustration: lightweight CSS animation, no extra scripts. */
#parent-student-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
#parent-student-guide .section-heading {
  min-width: 0;
}
#parent-student-guide .section-heading > p {
  max-width: none;
  color: var(--muted);
}
.invite-visual {
  position: relative;
  margin: 0;
  padding: 30px 20px 0;
  min-width: 0;
  isolation: isolate;
}
.invite-orbit {
  position: absolute;
  z-index: -1;
  inset: 25px 0 65px;
  border: 1px dashed var(--line);
  border-radius: 48% 48% 42% 45%;
  background: radial-gradient(ellipse, #d8ba4930, transparent 70%);
  transform: rotate(-8deg);
}
.invite-mail,
.invite-classroom {
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 35px #173e6810;
}
.invite-mail {
  padding: 24px;
  margin-right: 20px;
  animation: invite-drift 6s ease-in-out infinite;
}
.invite-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.invite-visual svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.invite-spark {
  color: #b38b24;
  font-size: 28px;
  margin-left: auto;
}
.invite-mail h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.2;
  margin: 18px 0;
}
.invite-mail-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.invite-calendar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--soft, #edf2e8);
  color: var(--green);
}
.invite-mail-detail b {
  font-size: 11px;
  display: block;
}
.invite-mail-detail small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.invite-connection {
  height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--green);
}
.invite-connection i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: invite-dot 2s ease-in-out infinite;
}
.invite-connection i:nth-child(2) {
  animation-delay: 0.2s;
}
.invite-connection i:nth-child(3) {
  animation-delay: 0.4s;
}
.invite-connection span {
  line-height: 12px;
}
.invite-classroom {
  margin-left: 28px;
  overflow: hidden;
  transform: rotate(2deg);
}
.invite-window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}
.invite-window-bar > span:first-child {
  color: #b8c6bd;
  font-size: 9px;
}
.invite-screen {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  padding: 18px;
  background: var(--soft, #edf2e8);
}
.invite-board {
  background: #225b47;
  border-radius: 10px;
  padding: 16px;
  color: #fff;
}
.invite-board > span {
  font-family: Georgia, serif;
  font-size: 25px;
}
.invite-board > i {
  display: block;
  background: #ffffff60;
  width: 75%;
  height: 3px;
  margin-top: 9px;
  border-radius: 3px;
}
.invite-board > i:nth-of-type(2) {
  width: 50%;
}
.invite-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 35px;
  margin-top: 8px;
}
.invite-bars b {
  width: 14px;
  height: 35%;
  background: #f3c955;
  border-radius: 3px 3px 0 0;
}
.invite-bars b:nth-child(2) {
  height: 55%;
}
.invite-bars b:nth-child(3) {
  height: 75%;
}
.invite-bars b:nth-child(4) {
  height: 100%;
}
.invite-person {
  background: #d9e8ec;
  border-radius: 10px;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
}
.invite-person svg {
  width: 100%;
  height: 130px;
  stroke: none;
}
.invite-controls {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 12px;
}
.invite-controls span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--soft, #edf2e8);
  color: var(--green);
  font-size: 13px;
}
.invite-controls .invite-call {
  background: #ad4a4a;
  color: #fff;
  width: 40px;
  border-radius: 20px;
}
.invite-private {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  margin: -28px 0 0;
  padding: 13px 17px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 25px #173e6810;
  color: var(--green);
  font-size: 11px;
  animation: invite-drift 6s ease-in-out -3s infinite;
}
.invite-visual figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin-top: 25px;
}
.invite-visual figcaption small {
  font-size: 9px;
}
@keyframes invite-drift {
  50% {
    transform: translateY(-6px);
  }
}
@keyframes invite-dot {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@media (max-width: 1000px) {
  #parent-student-guide {
    gap: 30px;
  }
  .invite-visual {
    padding-inline: 0;
  }
  .invite-mail {
    padding: 18px;
    margin-right: 12px;
  }
  .invite-mail h3 {
    font-size: 23px;
  }
  .invite-classroom {
    margin-left: 15px;
  }
}
@media (max-width: 760px) {
  #parent-student-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .invite-visual {
    width: 100%;
    max-width: 440px;
    justify-self: center;
    padding: 18px 8px 0;
  }
  #parent-student-guide .button {
    max-width: 100%;
    gap: 14px;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .invite-mail,
  .invite-private,
  .invite-connection i {
    animation: none;
  }
}
.header .brand img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0;
    background: transparent !important;
    mix-blend-mode: normal;
    flex-shrink: 0;
}

.header .brand .logo-light {
    display: block;
}

.header .brand .logo-dark {
    display: none;
}

html[data-theme="dark"] .header .brand .logo-light {
    display: none;
}

html[data-theme="dark"] .header .brand .logo-dark {
    display: block;
}

@media (max-width: 650px) {
    .header .brand img {
        width: 64px;
        height: 64px;
    }
}