:root {
  --ink: #26323d;
  --muted: #68727d;
  --paper: #fff8e8;
  --cream: #fffdf4;
  --teal: #10a99b;
  --leaf: #5fbd45;
  --sky: #75c9e6;
  --sun: #ffd944;
  --orange: #f48653;
  --rose: #e94c78;
  --grape: #7c4ba2;
  --shadow: 0 24px 60px rgba(76, 58, 24, 0.16);
  --soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 217, 68, 0.32), transparent 24rem),
    radial-gradient(circle at 90% 4%, rgba(117, 201, 230, 0.32), transparent 22rem),
    linear-gradient(180deg, #fffaf0 0%, #fdf7de 46%, #fff6f8 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(16, 169, 155, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(16, 169, 155, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sabahclick-demo-watermark {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sabahclick-demo-watermark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7vw, 8rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: rgba(255, 255, 255, 0.24);
  -webkit-text-stroke: 1px rgba(54, 102, 76, 0.14);
  text-shadow: 0 2px 18px rgba(64, 110, 78, 0.16), 0 0 1px rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transform: rotate(-24deg);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px;
  border: 2px solid rgba(38, 50, 61, 0.08);
  border-radius: 28px;
  background: rgba(255, 253, 244, 0.82);
  box-shadow: 0 18px 42px rgba(66, 82, 42, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  transition: transform 0.45s var(--soft);
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: cover;
  object-position: 58% 72%;
  border: 3px solid #fff;
  box-shadow: 0 12px 24px rgba(16, 169, 155, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: #52606c;
  font-weight: 900;
  transition: color 0.28s var(--soft), transform 0.28s var(--soft), background 0.28s var(--soft);
}

.nav-links a:hover {
  color: var(--ink);
  background: #fff;
  transform: translateY(-3px) rotate(-1deg);
}

.nav-cta,
.button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.3s var(--soft), box-shadow 0.3s var(--soft), filter 0.3s var(--soft);
  will-change: transform;
}

.nav-cta,
.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--teal), #28bd75);
  box-shadow: 0 14px 28px rgba(16, 169, 155, 0.28);
}

.button-soft {
  background: #fff;
  color: var(--ink);
  border: 2px dashed rgba(233, 76, 120, 0.32);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-5px) rotate(-1deg) scale(1.03);
  filter: saturate(1.06);
}

.nav-cta:active,
.button:active {
  transform: translateY(-1px) scale(0.98);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  min-height: calc(100dvh - 92px);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(36px, 6vw, 74px) 0 78px;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baloo 2", "ZCOOL KuaiLe", "Nunito", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.7rem, 8.5vw, 8.4rem);
  line-height: 0.82;
  color: #26323d;
  text-shadow: 0 8px 0 rgba(255, 217, 68, 0.34);
}

.hero-text {
  max-width: 58ch;
  margin: 28px 0 0;
  color: #52606c;
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.72;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-strip span {
  padding: 9px 13px;
  border: 2px solid rgba(38, 50, 61, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: #59636c;
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 0.3s var(--soft), background 0.3s var(--soft);
}

.trust-strip span:hover {
  background: white;
  transform: translateY(-6px) rotate(2deg);
}

.hero-board {
  position: relative;
  min-height: 420px;
  padding: clamp(12px, 2vw, 18px);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--soft), box-shadow 0.45s var(--soft);
}

.hero-board:hover {
  box-shadow: 0 34px 90px rgba(76, 58, 24, 0.22);
}

.hero-board img {
  width: 100%;
  min-height: 420px;
  height: min(58vw, 610px);
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 24px;
}

.floating-note {
  position: absolute;
  z-index: 3;
  padding: 12px 16px;
  border: 3px solid #fff;
  border-radius: 18px;
  color: #fff;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(38, 50, 61, 0.14);
  animation: floaty 4s var(--soft) infinite;
}

.note-one {
  left: -18px;
  bottom: 56px;
  background: var(--rose);
}

.note-two {
  right: 18px;
  top: -12px;
  background: var(--grape);
  animation-delay: -1.2s;
}

.hero-shapes .shape {
  position: absolute;
  z-index: 1;
  border-radius: 999px 999px 999px 10px;
  opacity: 0.78;
  animation: drift 9s ease-in-out infinite;
}

.shape-red {
  width: 96px;
  height: 96px;
  left: -28px;
  top: 13%;
  background: var(--rose);
}

.shape-blue {
  width: 72px;
  height: 72px;
  right: 44%;
  top: 9%;
  background: var(--sky);
  animation-delay: -2s;
}

.shape-yellow {
  width: 132px;
  height: 132px;
  right: -42px;
  bottom: 8%;
  background: var(--sun);
  animation-delay: -3.3s;
}

.shape-green {
  width: 54px;
  height: 54px;
  left: 43%;
  bottom: 20%;
  background: var(--leaf);
  animation-delay: -4.6s;
}

section {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.programs,
.day,
.gallery,
.visit {
  padding: clamp(68px, 10vw, 122px) 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 0.68fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-intro h2,
.space-copy h2,
.visit-card h2 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.92;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 24px;
  border: 3px solid #fff;
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(62, 74, 37, 0.11);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--soft), box-shadow 0.45s var(--soft), border-radius 0.45s var(--soft);
}

.program-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -46px;
  width: 128px;
  height: 128px;
  border: 16px solid rgba(255, 255, 255, 0.42);
  border-radius: 44% 56% 54% 46%;
  transition: transform 0.45s var(--soft);
}

.program-card:hover {
  border-radius: 40px 24px 40px 24px;
  box-shadow: 0 28px 62px rgba(62, 74, 37, 0.18);
}

.program-card:hover::after {
  transform: translate3d(-14px, -14px, 0) rotate(18deg) scale(1.08);
}

.program-card.red {
  background: #ffedf2;
}

.program-card.yellow {
  background: #fff1ad;
}

.program-card.blue {
  background: #dff6ff;
}

.program-card.green {
  background: #e8f7d9;
}

.program-card.pink {
  background: #ffe1ea;
}

.program-card.teal {
  background: #dff7ef;
}

.card-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 17px;
  background: #fff;
  color: var(--teal);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(38, 50, 61, 0.08);
}

.program-card h3 {
  font-size: 2rem;
}

.program-card p {
  position: relative;
  z-index: 2;
  margin: 10px 0 0;
  color: #59636c;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.58;
}

.space {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding: clamp(52px, 8vw, 94px) clamp(16px, 3vw, 34px);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.space-photos {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.space-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.space-photo-thumb {
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #e9fff8);
  box-shadow: 0 12px 32px rgba(76, 58, 24, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--soft), box-shadow 0.45s var(--soft);
}

.space-photo-thumb img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.space-photo {
  padding: 12px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff, #e9fff8);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.space-photo img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.space-copy p:not(.eyebrow),
.visit-card p {
  color: #59636c;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.74;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.feature-list div {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  font: 900 0.95rem "Nunito", sans-serif;
  box-shadow: 0 12px 28px rgba(62, 74, 37, 0.08);
  transition: transform 0.28s var(--soft), background 0.28s var(--soft);
}

.feature-list div:hover {
  background: var(--sun);
  transform: translateY(-5px) rotate(-1.5deg);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.timeline-item {
  position: relative;
  min-height: 220px;
  padding: 26px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(62, 74, 37, 0.1);
  transition: transform 0.32s var(--soft), background 0.32s var(--soft);
}

.timeline-item:hover {
  background: #26323d;
  color: #fff;
  transform: translateY(-10px) rotate(1.2deg);
}

.timeline-item:hover span {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 46px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e9fff8;
  color: var(--teal);
  font-weight: 900;
}

.timeline-item strong {
  display: block;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: 0.92fr 0.78fr 1.3fr;
  grid-auto-rows: 280px;
  gap: 18px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 10px solid #fff;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--soft), border-radius 0.45s var(--soft);
}

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

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

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--soft), filter 0.7s var(--soft);
}

.photo-tile:hover {
  border-radius: 44px 24px 44px 24px;
}

.photo-tile:hover img {
  transform: scale(1.08) rotate(1.5deg);
  filter: saturate(1.12) brightness(1.02);
}

.photo-tile figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-weight: 900;
  backdrop-filter: blur(10px);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.32s var(--soft), opacity 0.32s var(--soft);
}

.photo-tile:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

.visit {
  padding-top: 20px;
}

.visit-card {
  position: relative;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px);
  border: 4px solid #fff;
  border-radius: 42px;
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 217, 68, 0.7), transparent 10rem),
    linear-gradient(135deg, #e7fff8, #fff6d8 48%, #ffeaf0);
  box-shadow: var(--shadow);
  text-align: center;
}

.visit-card h2,
.visit-card p {
  margin-left: auto;
  margin-right: auto;
}

.visit-card h2 {
  max-width: 12ch;
}

.visit-card p {
  max-width: 62ch;
}

.visit-card .button {
  margin-top: 12px;
}

.visit-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 8px;
  font-weight: 900;
  font-size: 1.05rem;
}

.visit-contact a {
  color: var(--teal);
  transition: color 0.22s var(--soft);
}

.visit-contact a:hover {
  color: var(--ink);
}

.visit-contact span {
  color: var(--muted);
}

.visit-address {
  margin: 0 auto 6px;
  max-width: 50ch;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) 0 clamp(24px, 4vw, 40px);
  border-top: 2px solid rgba(38, 50, 61, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  object-position: 58% 72%;
  border: 2px solid #fff;
}

.footer-brand strong {
  display: block;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 1.05rem;
  line-height: 1.1;
}

.footer-brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.22s var(--soft);
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.65;
  text-align: right;
}

.footer-copy {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(38, 50, 61, 0.07);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

[data-tilt] {
  will-change: transform;
}

.reveal-seed {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--soft),
    transform 0.7s var(--soft),
    box-shadow 0.45s var(--soft),
    border-radius 0.45s var(--soft);
}

.reveal-seed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(0, 0, 20px) rotate(-2deg);
  }
  50% {
    transform: translate3d(0, -12px, 20px) rotate(2deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(18px, -18px, 0) rotate(18deg);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .space,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-address {
    text-align: left;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    max-width: 10ch;
  }

  .program-grid,
  .timeline,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-auto-rows: minmax(280px, auto);
  }

  .photo-tile.tall,
  .photo-tile.wide {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .space-photo-row {
    grid-template-columns: 1fr;
  }

  .visit-contact {
    flex-direction: column;
    gap: 6px;
  }

  .visit-contact span {
    display: none;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    border-radius: 22px;
  }

  .brand small {
    display: none;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .nav-cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .hero,
  section {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  .hero-board,
  .hero-board img {
    min-height: 300px;
  }

  .floating-note {
    position: static;
    display: inline-flex;
    margin: 10px 6px 0 0;
  }

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

.cursor-bug {
  position: fixed;
  pointer-events: none;
  z-index: 2147483647;
  width: 44px;
  height: 50px;
  opacity: 0;
  scale: 0.5;
  transition: opacity 0.45s var(--soft), scale 0.45s var(--soft);
  filter: drop-shadow(0 4px 10px rgba(16, 169, 155, 0.4));
  will-change: transform, left, top;
}

.cursor-bug.is-active {
  opacity: 1;
  scale: 1;
}

.bug-svg {
  width: 100%;
  height: 100%;
}

.bug-wing {
  animation-duration: 0.2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.bug-wing-l {
  transform-box: fill-box;
  transform-origin: right center;
  animation-name: bug-wing-flap;
}

.bug-wing-r {
  transform-box: fill-box;
  transform-origin: left center;
  animation-name: bug-wing-flap;
  animation-delay: -0.05s;
}

@keyframes bug-wing-flap {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0.38); }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-bug {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
