:root {
  --navy: #123B70;
  --navy-2: #0d2f5b;
  --orange: #F58220;
  --yellow: #FFD45A;
  --teal: #39B8B0;
  --green: #35B978;
  --cream: #FFFDF7;
  --soft: #F3FAFF;
  --white: #FFFFFF;
  --ink: #18324f;
  --muted: #65758b;
  --line: rgba(18, 59, 112, .12);
  --shadow: 0 18px 48px rgba(18, 59, 112, .12);
  --shadow-strong: 0 26px 70px rgba(18, 59, 112, .18);
  --radius: 28px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 212, 90, .36), transparent 26%),
    radial-gradient(circle at 92% 16%, rgba(57, 184, 176, .22), transparent 24%),
    linear-gradient(180deg, var(--cream), #f8fcff 52%, #fff8e8);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(18, 59, 112, .14) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 60%);
  z-index: -1;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.opening {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  background: var(--cream);
  color: var(--navy);
  transition: opacity .45s ease, visibility .45s ease;
}
body.loaded .opening { opacity: 0; visibility: hidden; pointer-events: none; }
.opening span {
  font-size: clamp(2.3rem, 8vw, 6rem);
  line-height: .92;
  font-weight: 900;
  animation: introLift .75s cubic-bezier(.2,.8,.2,1) both;
}
.opening span:last-child { color: var(--orange); animation-delay: .1s; }
.opening i {
  width: min(320px, 72vw);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--orange));
  animation: introLine .75s ease both;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  background: rgba(255, 253, 247, .9);
  backdrop-filter: blur(18px);
}
.nav {
  width: min(1220px, calc(100% - 32px));
  min-height: 74px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  box-shadow: 0 12px 34px rgba(18, 59, 112, .09);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  text-decoration: none;
  line-height: 1.05;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.brand span {
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 900;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 800;
}
.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  text-decoration: none;
  padding: 8px 11px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-links a:hover {
  background: #fff3dd;
  transform: translateY(-1px);
}
.nav-app {
  margin-left: 5px;
  color: white !important;
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(245, 130, 32, .28);
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  place-items: center;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, .82fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding: 72px max(20px, calc((100% - 1220px) / 2)) 82px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 212, 90, .32), transparent 34%),
    linear-gradient(225deg, rgba(57, 184, 176, .2), transparent 30%),
    var(--cream);
}
.hero::before,
.hero::after,
.section::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 330px;
  height: 210px;
  right: -80px;
  top: 80px;
  border-radius: 44% 56% 42% 58% / 58% 42% 58% 42%;
  background: rgba(57, 184, 176, .22);
}
.hero::after {
  width: 260px;
  height: 180px;
  left: -80px;
  bottom: 50px;
  border-radius: 60% 40% 54% 46% / 42% 58% 42% 58%;
  background: rgba(255, 212, 90, .34);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-backdrop span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--navy);
  background: white;
  box-shadow: var(--shadow);
  font-size: 1.7rem;
  font-weight: 900;
  animation: gentleFloat 6s ease-in-out infinite;
}
.hero-backdrop span:nth-child(1) { left: 8%; top: 18%; color: var(--orange); }
.hero-backdrop span:nth-child(2) { left: 48%; top: 13%; color: var(--teal); animation-delay: .5s; }
.hero-backdrop span:nth-child(3) { right: 9%; bottom: 18%; color: var(--green); animation-delay: .9s; }
.hero-backdrop span:nth-child(4) { right: 39%; bottom: 10%; color: var(--yellow); background: var(--navy); animation-delay: 1.2s; }
.hero-copy, .hero-stage { position: relative; z-index: 1; }
.hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--navy);
  background: #fff3d7;
  border: 1px solid rgba(255, 212, 90, .72);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.1;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  line-height: .92;
  letter-spacing: 0;
  font-weight: 900;
}
.hero-title span { display: block; width: fit-content; max-width: 100%; }
.hero-title span:nth-child(2) { color: var(--orange); }
.hero-title span:nth-child(3) { color: var(--teal); }
.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
  line-height: 1.75;
}
.brand-callout {
  display: inline-block;
  color: var(--orange);
  font-size: clamp(1.14rem, 2vw, 1.5rem);
  line-height: 1.1;
  font-weight: 900;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(245, 130, 32, .34);
  outline-offset: 3px;
}
.primary { color: white; background: var(--orange); box-shadow: 0 14px 30px rgba(245, 130, 32, .28); }
.secondary, .ghost, .ghost-dark {
  color: var(--navy);
  border-color: rgba(18, 59, 112, .28);
  background: white;
}
.whatsapp { color: white; background: var(--green); box-shadow: 0 14px 30px rgba(53, 185, 120, .24); }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  max-width: 650px;
}
.hero-metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 32px rgba(18, 59, 112, .08);
}
.hero-metrics strong {
  display: block;
  color: var(--orange);
  font-size: 2.2rem;
  line-height: 1;
}
.hero-metrics span { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.hero-stage { animation: gentleFloat 7s ease-in-out infinite; }
.hero-photo {
  margin: 0;
  padding: 12px;
  border-radius: 40px;
  background: white;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 30px;
}
.hero-ticket {
  position: absolute;
  left: -22px;
  bottom: 34px;
  width: min(270px, 78%);
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.hero-ticket span { display: block; color: rgba(18, 59, 112, .72); font-size: .78rem; text-transform: uppercase; font-weight: 900; }
.hero-ticket strong { display: block; margin-top: 8px; font-size: 1.18rem; }
.math-chip {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow);
}
.chip-one { right: -18px; top: 58px; width: 82px; height: 52px; background: var(--teal); transform: rotate(8deg); }
.chip-two { left: -10px; top: 42px; width: 62px; height: 62px; background: var(--orange); transform: rotate(-10deg); }

.marquee {
  overflow: hidden;
  background: var(--navy);
  color: white;
}
.marquee div {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 15px 0;
  animation: ticker 23s linear infinite;
}
.marquee span { text-transform: uppercase; font-size: .82rem; font-weight: 900; }
.marquee span::before { content: "+"; color: var(--yellow); margin-right: 12px; }

.promo-banners {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
  gap: 22px;
  align-items: stretch;
  margin: 0 0 28px;
}
.promo-banner {
  margin: 0;
  padding: 10px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tuition-banner {
  display: grid;
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 9% 18%, rgba(255, 212, 90, .58), transparent 26%),
    radial-gradient(circle at 92% 82%, rgba(57, 184, 176, .34), transparent 24%),
    linear-gradient(135deg, #fff8e6, #f4fbff);
}
.abacus-banner {
  background:
    linear-gradient(135deg, rgba(57, 184, 176, .1), transparent 34%),
    white;
}
.promo-banner img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 520px;
  object-fit: contain;
  border-radius: 20px;
  background: var(--cream);
}
.tuition-banner img {
  max-height: 310px;
  background: transparent;
}
.abacus-banner img {
  max-height: 540px;
}

.section {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: auto;
  padding: 96px 0;
}
.section::before {
  right: 12px;
  top: 48px;
  width: 78px;
  height: 78px;
  border-radius: 28px;
  border: 12px solid rgba(57, 184, 176, .16);
  transform: rotate(18deg);
}
.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}
.section-heading h2,
.app-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.05rem, 4.8vw, 4.7rem);
  line-height: .98;
  font-weight: 900;
}
.section-heading p:not(.eyebrow), .studio-panel p, .course-card p, .benefit p, .contact-card p, .app-panel p {
  color: var(--muted);
  line-height: 1.72;
}
.about-grid, .contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 26px;
  align-items: stretch;
}
.photo-panel, .studio-panel, .contact-card, .enquiry, .course-card, .benefit, .activity, .app-panel, .certificate-card, .vedic-card, .whiteboard-shell, .owner-profile, .worksheet-folder, .online-class-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.photo-panel {
  margin: 0;
  min-height: 420px;
  overflow: hidden;
}
.photo-panel img { width: 100%; height: 100%; object-fit: cover; }
.studio-panel {
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255, 212, 90, .34), transparent 42%),
    white;
}
.panel-kicker {
  color: var(--orange);
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 900;
}
.studio-panel h3, .contact-card h3 {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.04;
}
.text-link {
  width: fit-content;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.owner-profile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 212, 90, .38), transparent 24%),
    linear-gradient(135deg, white, #f3fbff);
}
.owner-profile img {
  width: 210px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 26px;
  border: 8px solid white;
  box-shadow: 0 16px 34px rgba(18, 59, 112, .16);
}
.owner-profile h3 {
  margin: 10px 0 4px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .98;
}
.owner-profile p {
  margin: 0;
  color: var(--orange);
  font-size: 1.15rem;
  font-weight: 900;
}

.courses, .certificates, .abacus-tool, .whiteboard-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1220px) / 2));
  padding-right: max(16px, calc((100% - 1220px) / 2));
}
.courses, .abacus-tool {
  background:
    linear-gradient(135deg, rgba(57, 184, 176, .16), transparent 36%),
    linear-gradient(225deg, rgba(255, 212, 90, .28), transparent 34%),
    #f7fcff;
}
.course-grid, .activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.course-card {
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease;
}
.course-card::before {
  content: "";
  width: 64px;
  height: 10px;
  border-radius: 999px;
  background: var(--yellow);
}
.course-card:hover, .benefit:hover, .activity:hover, .media-grid img:hover, .certificate-card:hover, .vedic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}
.course-card.feature {
  background: var(--navy);
  color: white;
}
.course-card.feature h3,

.course-card.feature p { color: rgba(255,255,255,.76); }
.course-card.feature::before { background: var(--orange); }
.course-card h3 { margin: 18px 0 6px; color: var(--navy); font-size: 1.78rem; }
.course-card img { margin-top: 18px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }
.tag {
  width: fit-content;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: #e8fbfa;
  border: 1px solid rgba(57, 184, 176, .28);
  font-size: .82rem;
  font-weight: 900;
}
.course-meta { display: grid; gap: 10px; margin: 18px 0; }
.course-meta div {
  padding: 13px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.course-meta dt { color: var(--orange); font-size: .76rem; text-transform: uppercase; font-weight: 900; }
.course-meta dd { margin: 5px 0 0; color: var(--ink); line-height: 1.45; }
.feature .course-meta div { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.feature .course-meta dt { color: var(--yellow); }
.feature .course-meta dd { color: white; }
.syllabus-btn { width: fit-content; margin-top: auto; color: white; background: var(--orange); }

.why {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1220px) / 2));
  padding-right: max(16px, calc((100% - 1220px) / 2));
  background: var(--navy);
  color: white;
}
.why .section-heading h2,
.app-panel h2 { color: white; }
.why .eyebrow,
.app-panel .eyebrow { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.2); }
.why .section-heading p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.benefit {
  padding: 28px;
  transition: transform .24s ease, box-shadow .24s ease;
}
.why .benefit {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.benefit span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 900;
}
.benefit h3 { color: inherit; font-size: 1.28rem; }
.why .benefit p { color: rgba(255,255,255,.72); }

.syllabus-list { display: grid; gap: 14px; }
.syllabus-list details {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 14px 34px rgba(18, 59, 112, .08);
}
.syllabus-list summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
  list-style: none;
}
.syllabus-list summary span { margin-left: 8px; color: var(--teal); font-size: .86rem; }
.syllabus-list summary::-webkit-details-marker { display: none; }
.syllabus-list summary::after {
  content: "+";
  float: right;
  color: var(--orange);
  font-size: 1.5rem;
}
.syllabus-list details[open] summary::after { content: "-"; }
.syllabus-list li { margin: 10px 0; color: var(--muted); line-height: 1.55; }

.vedic-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1220px) / 2));
  padding-right: max(16px, calc((100% - 1220px) / 2));
  background:
    linear-gradient(120deg, rgba(255, 212, 90, .28), transparent 32%),
    var(--cream);
}
.vedic-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: 24px;
  align-items: start;
}
.vedic-benefits { display: grid; gap: 14px; }
.vedic-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.vedic-card { margin: 0; overflow: hidden; padding: 12px; transition: transform .24s ease, box-shadow .24s ease; }
.vedic-card.wide { grid-column: span 2; }
.vedic-card img, .vedic-card video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
}
.vedic-card figcaption { padding: 12px 4px 2px; color: var(--navy); font-weight: 900; }

.activity {
  min-height: 230px;
  display: grid;
  text-align: center;
  align-content: start;
  gap: 14px;
  padding: 14px;
  transition: transform .24s ease, box-shadow .24s ease;
}
.activity img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 22px;
}
.activity strong { font-size: 1.22rem; color: var(--navy); font-weight: 900; }

.certificates {
  background: #f7fcff;
}
.certificate-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.certificate-card {
  margin: 0;
  padding: 12px;
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease;
}
.certificate-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  background: var(--cream);
}
.certificate-card video,
.media-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}
.certificate-card.wide { grid-column: span 2; }
.certificate-card.wide img { height: 360px; }
.certificate-card figcaption {
  padding: 14px 6px 4px;
  color: var(--navy);
  font-weight: 900;
  line-height: 1.35;
}

.gallery {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1220px) / 2));
  padding-right: max(16px, calc((100% - 1220px) / 2));
  background: var(--cream);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
}
.media-grid img,
.media-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease;
}
.media-grid .tall { grid-row: span 2; }
.media-grid .wide { grid-column: span 2; }
.reel-panel {
  margin-top: 18px;
  padding: 24px;
  border-radius: var(--radius);
  color: white;
  background:
    linear-gradient(135deg, rgba(18, 59, 112, .92), rgba(57, 184, 176, .72)),
    url("/assets/WhatsApp%20Image%202026-08-08%20at%2015.49.29.jpeg") center / cover;
  box-shadow: var(--shadow);
}
.reel-panel h3 { margin: 0; font-size: 1.5rem; }

.abacus-wrap {
  padding: 22px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.abacus-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 14px;
}
.abacus-toolbar output {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 12px 14px;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 1.45rem;
  font-weight: 900;
}
.abacus-scroll {
  overflow-x: auto;
  padding: 6px 0 14px;
  scrollbar-color: var(--orange) #ffe7ca;
  scrollbar-width: thin;
}
.abacus-scroll::-webkit-scrollbar { height: 10px; }
.abacus-scroll::-webkit-scrollbar-track { background: #ffe7ca; border-radius: 999px; }
.abacus-scroll::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; }
.abacus-slider { display: none; padding: 8px 2px 0; }
.abacus-slider input { width: 100%; accent-color: var(--orange); }
.real-abacus {
  min-width: 980px;
  height: 400px;
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: 4px;
  padding: 28px 18px;
  position: relative;
  border-radius: 28px;
  background: #c99442;
  border: 18px solid #111827;
  box-shadow: inset 0 0 0 3px #2b2524, 0 18px 32px rgba(0,0,0,.16);
}
.real-abacus::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  height: 16px;
  background: #111827;
  z-index: 3;
}
.rod { position: relative; height: 100%; }
.rod::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  background: linear-gradient(90deg, #6f6f6f, #f8f8f8, #4d4d4d);
  z-index: 1;
}
.beam-dot {
  position: absolute;
  left: 50%;
  top: calc(35% + 3px);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid rgba(255, 212, 90, .78);
  box-shadow: 0 0 0 2px rgba(0,0,0,.18), 0 3px 10px rgba(0,0,0,.28);
  transform: translate(-50%, -50%);
  z-index: 6;
}
.bead {
  position: absolute;
  left: 50%;
  width: 44px;
  height: 28px;
  border: 2px solid rgba(0,0,0,.45);
  border-radius: 999px;
  z-index: 4;
  cursor: pointer;
  touch-action: manipulation;
  transition: top .16s ease, box-shadow .16s ease, filter .16s ease;
  box-shadow: inset 0 4px 6px rgba(255,255,255,.22), inset 0 -5px 8px rgba(0,0,0,.23), 0 2px 5px rgba(0,0,0,.18);
  transform: translateX(-50%);
}
.upper .bead { background: linear-gradient(180deg, #39363f, #08070a 55%, #000); top: 24px; }
.upper .bead.active { top: 71.5px; }
.lower .bead { background: linear-gradient(180deg, #fff0a4, #d6a84f 48%, #9d6f1d); }
.lower .bead[data-value="1"] { top: 198px; }
.lower .bead[data-value="2"] { top: 230px; }
.lower .bead[data-value="3"] { top: 262px; }
.lower .bead[data-value="4"] { top: 294px; }
.lower .bead[data-value="1"].active { top: 115.5px; }
.lower .bead[data-value="2"].active { top: 147.5px; }
.lower .bead[data-value="3"].active { top: 179.5px; }
.lower .bead[data-value="4"].active { top: 211.5px; }
.bead.active { box-shadow: inset 0 4px 6px rgba(255,255,255,.25), inset 0 -5px 8px rgba(0,0,0,.28), 0 7px 10px rgba(0,0,0,.2); }
.bead:hover { filter: brightness(1.08); }

.whiteboard-section { background: var(--cream); }
.whiteboard-shell {
  padding: 18px;
  overflow: hidden;
}
.whiteboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.tool-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btn {
  min-height: 42px;
  border: 1px solid rgba(18, 59, 112, .18);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--navy);
  background: white;
  cursor: pointer;
  font-weight: 900;
}
.tool-btn.active,
.primary-tool {
  color: white;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 10px 24px rgba(245, 130, 32, .22);
}
.compact-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--navy);
  font-weight: 900;
}
.compact-control input[type="color"] {
  width: 46px;
  height: 42px;
  padding: 3px;
}
.compact-control input[type="range"] {
  width: 130px;
  accent-color: var(--orange);
}
.whiteboard-canvas-wrap {
  position: relative;
  min-height: 430px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 59, 112, .045) 1px, transparent 1px),
    linear-gradient(rgba(18, 59, 112, .045) 1px, transparent 1px),
    white;
  background-size: 28px 28px;
  border: 2px solid rgba(18, 59, 112, .14);
}
#practice-board {
  width: 100%;
  height: 430px;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.worksheet-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1220px) / 2));
  padding-right: max(16px, calc((100% - 1220px) / 2));
  background:
    radial-gradient(circle at 9% 20%, rgba(255, 212, 90, .28), transparent 24%),
    #f7fcff;
}
.worksheet-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.worksheet-folder {
  padding: 24px;
  display: grid;
  gap: 18px;
}
.folder-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: white;
  background: var(--teal);
  font-weight: 900;
}
.worksheet-folder h3 {
  margin: 14px 0 6px;
  color: var(--navy);
  font-size: 1.55rem;
}
.worksheet-list {
  display: grid;
  gap: 10px;
}
.worksheet-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}
.worksheet-list small {
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 900;
}
.online-class-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1220px) / 2));
  padding-right: max(16px, calc((100% - 1220px) / 2));
  background: var(--cream);
}
.online-class-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .54fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 5vw, 54px);
  background:
    radial-gradient(circle at 84% 20%, rgba(57, 184, 176, .18), transparent 26%),
    white;
}
.online-class-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: .98;
}
.online-class-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.72;
}
.meet-access-form {
  padding: 22px;
  border-radius: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.meet-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 999px;
  color: white;
  background: var(--green);
  text-decoration: none;
  font-weight: 900;
}

.app-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px auto;
  align-items: center;
  gap: 22px;
  min-height: 230px;
  overflow: hidden;
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
}
.app-copy { max-width: 620px; position: relative; z-index: 1; }
.app-panel p { max-width: 520px; color: rgba(255,255,255,.76); }
.app-panel .btn { position: relative; z-index: 1; white-space: nowrap; }
.app-device {
  width: 160px;
  min-height: 190px;
  justify-self: center;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: 28px;
  color: var(--navy);
  background: var(--yellow);
  border: 8px solid rgba(255,255,255,.3);
  box-shadow: 0 24px 55px rgba(0,0,0,.16);
  transform: rotate(4deg);
}
.app-device span { width: 38px; height: 5px; justify-self: center; border-radius: 999px; background: rgba(18,59,112,.18); }
.app-device strong { color: var(--orange); font-size: 1.2rem; }
.app-device small { color: var(--muted); }

.contact { padding-top: 42px; }
.contact-promos { margin-top: -6px; }
.contact-banner {
  margin: 0 0 24px;
  padding: 12px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.contact-banner img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 20px;
}
.contact-card, .enquiry { padding: clamp(24px, 4vw, 42px); }
.big-brand-text { display: block; font-size: clamp(1.15rem, 2vw, 1.55rem); }
label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--navy);
  font-weight: 900;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: white;
  color: var(--ink);
}
textarea { resize: vertical; }
.footer {
  text-align: center;
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding: 34px 14px;
}
.footer p:first-child {
  color: white;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 900;
}
.footer a { margin: 0 8px; color: white; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes introLift {
  from { opacity: .001; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes introLine {
  from { transform: scaleX(0); opacity: .001; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-9px) rotate(var(--r, 0deg)); }
}

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

.admin-body { min-height: 100vh; background: var(--cream); }
.admin-shell { width: min(1120px, calc(100% - 28px)); margin: auto; padding: 34px 0; }
.admin-card {
  padding: 28px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.admin-card h1 { max-width: none; color: var(--navy); font-size: clamp(2rem, 5vw, 4rem); line-height: .98; }
.admin-card h2 { margin-top: 0; color: var(--navy); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.admin-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.editor-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.editor-layout > section { display: grid; gap: 2px; }
.course-tabs { display: grid; gap: 8px; }
.course-tabs button, .item-row button, .media-row button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--navy);
  padding: 10px;
  cursor: pointer;
  font-weight: 900;
}
.course-tabs button.active { background: var(--navy); color: white; }
.item-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
.media-admin {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 2px solid rgba(18, 59, 112, .12);
}
.media-items { display: grid; gap: 12px; }
.media-row {
  display: grid;
  grid-template-columns: 92px minmax(180px, 1.1fr) auto minmax(140px, 1fr) minmax(140px, 1fr) 78px repeat(3, auto);
  gap: 8px;
  align-items: center;
}
.worksheet-editor {
  display: grid;
  gap: 12px;
}
.worksheet-items {
  display: grid;
  gap: 10px;
}
.worksheet-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) auto auto;
  gap: 8px;
  align-items: center;
}
.file-picker {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 10px 13px;
  border-radius: 14px;
  color: var(--navy);
  background: #fff3d7;
  border: 1px solid rgba(255, 212, 90, .72);
  cursor: pointer;
  white-space: nowrap;
}
.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.inline-check input { width: auto; }
.admin-home { text-align: center; color: var(--navy); font-weight: 900; }

@media (max-width: 1040px) {
  .nav { border-radius: 28px; flex-wrap: wrap; }
  .menu-toggle { display: grid; margin-left: auto; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 2px;
  }
  .nav-links.open { display: flex; }
  .nav-app { margin-left: 0; justify-content: center; }
  .hero, .about-grid, .contact-grid, .editor-layout, .app-panel, .online-class-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .promo-banners { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .benefit-grid, .activity-grid, .certificate-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid .wide { grid-column: span 1; }
  .media-row, .worksheet-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { background-size: auto; }
  .nav { width: min(100% - 20px, 1220px); padding: 8px; }
  .brand { min-width: 0; }
  .brand span { font-size: 1.02rem; }
  .brand small { font-size: .68rem; }
  .hero { padding: 42px 16px 58px; }
  h1 { font-size: clamp(2.55rem, 16vw, 4rem); }
  .hero-metrics, .benefit-grid, .activity-grid, .certificate-showcase, .media-grid { grid-template-columns: 1fr; }
  .section { width: min(100% - 24px, 1220px); padding: 64px 0; }
  .owner-profile { grid-template-columns: 1fr; }
  .owner-profile img { width: 100%; max-width: 260px; }
  .worksheet-library { grid-template-columns: 1fr; }
  .vedic-layout, .vedic-media { grid-template-columns: 1fr; }
  .vedic-card.wide, .certificate-card.wide { grid-column: span 1; }
  .certificate-card img, .certificate-card.wide img { height: 320px; }
  .hero-ticket { left: 12px; bottom: 14px; width: calc(100% - 24px); }
  .actions .btn, .enquiry .btn, .app-panel .btn { width: 100%; }
  .photo-panel { min-height: 320px; }
  .media-grid { grid-auto-rows: 260px; }
  .media-grid .tall { grid-row: span 1; }
  .abacus-toolbar { grid-template-columns: 1fr; }
  .abacus-wrap, .whiteboard-shell { padding: 12px; }
  .abacus-slider { display: block; }
  .real-abacus { min-width: 920px; height: 360px; padding-left: 14px; padding-right: 14px; }
  .bead { width: 38px; height: 25px; }
  .upper .bead { top: 22px; }
  .upper .bead.active { top: 74.5px; }
  .lower .bead[data-value="1"] { top: 186px; }
  .lower .bead[data-value="2"] { top: 214px; }
  .lower .bead[data-value="3"] { top: 242px; }
  .lower .bead[data-value="4"] { top: 270px; }
  .lower .bead[data-value="1"].active { top: 115.5px; }
  .lower .bead[data-value="2"].active { top: 144.5px; }
  .lower .bead[data-value="3"].active { top: 173.5px; }
  .lower .bead[data-value="4"].active { top: 202.5px; }
  .whiteboard-toolbar, .tool-group { display: grid; grid-template-columns: 1fr 1fr; }
  .compact-control { display: grid; grid-column: 1 / -1; }
  .compact-control input[type="range"] { width: 100%; }
  #practice-board { height: 340px; }
  .whiteboard-canvas-wrap { min-height: 340px; }
  .admin-top { flex-direction: column; align-items: stretch; }
  .item-row, .media-row, .worksheet-row { grid-template-columns: 1fr; }
}
