html{font-size:17px;visibility:hidden;}
html.fonts-loaded{visibility:visible;}
:root{
  --hero:#3d00cc;
  --purple:#6c3fff;
  --lav:#a78bfa;
  --gold:#F59E0B;
  --ink:#1a0066;
}
body{font-family:"Inter",sans-serif;background:#f6f2ff;color:#fff;overflow-x:hidden;}
.font-game{font-family:"Bungee","Arial Black",Impact,system-ui,sans-serif;}
.font-display{font-family:"Lexend",sans-serif;}

/* Accordions: replace default <details>/<summary> markers (can render as emoji on iOS). */
details > summary{
  list-style:none;
  display:block;
  position:relative;
  padding-right:1.9rem;
}
details > summary::-webkit-details-marker{display:none;}
details > summary::marker{content:"";}
details > summary::after{
  content:"";
  position:absolute;
  right:0.6rem;
  top:50%;
  width:0.55rem;
  height:0.55rem;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-55%) rotate(-45deg);
  opacity:0.65;
  transition:transform .18s ease, opacity .18s ease;
  pointer-events:none;
}
details[open] > summary::after{
  transform:translateY(-55%) rotate(45deg);
  opacity:1;
}

/* Keep booking anchor tight to the top (hash-scroll JS handles navbar offset for other sections). */
#book-a-lesson { scroll-margin-top: 0; }
.floating-nav{
  background:transparent;
  border:1px solid transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-radius:999px;
  padding-block:0.15rem;
  transition:
    background-color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    backdrop-filter .28s ease,
    -webkit-backdrop-filter .28s ease;
}
.floating-nav.nav-on-light{
  background:rgba(255,255,255,.78);
  border-color:rgba(61,0,204,.22);
  box-shadow:0 12px 28px rgba(26,0,102,.16);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-radius:999px;
}

.nav-hide-down{
  top:-6rem !important; /* slide straight up off screen */
}
.floating-nav.nav-on-light a{
  color:rgba(61,0,204,.78) !important;
}
.floating-nav.nav-on-light a:hover{
  color:#2a0099 !important;
}
.floating-nav.nav-on-light button{
  color:#2a0099 !important;
  border-color:rgba(61,0,204,.24) !important;
  background:rgba(61,0,204,.06) !important;
}
.floating-nav.nav-on-light button:hover{
  background:rgba(61,0,204,.12) !important;
}

.floating-nav.nav-on-light .nav-contact{
  color:#2a0099 !important;
  border-color:rgba(61,0,204,.24) !important;
  background:rgba(61,0,204,.10) !important;
}
.floating-nav.nav-on-light .nav-contact:hover{
  background:rgba(61,0,204,.16) !important;
}

.nav-panel{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 40px rgba(0,0,0,.25);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.floating-nav.nav-on-light .nav-panel{
  background:rgba(255,255,255,.92);
  border-color:rgba(61,0,204,.18);
  box-shadow:0 18px 40px rgba(26,0,102,.12);
}

.review-card{
  opacity:0;
  transform:translateY(22px) scale(0.985);
  height:fit-content;
  align-self:start;
}
.reviews-visible .review-card{
  animation:reviewPop .52s cubic-bezier(0.22,0.8,0.24,1) forwards;
  animation-delay:var(--reveal-d,0ms);
}
@keyframes reviewPop{
  0%{opacity:0;transform:translateY(22px) scale(0.985)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
.review-card.hidden-review{display:none;}
#reviews-grid .review-card.no-anim{
  animation:none !important;
  opacity:1 !important;
  transform:translateY(0) scale(1) !important;
}
#reviews-grid.masonry-grid{
  grid-auto-rows:8px;
}
#reviews-grid .review-card p.mt-3{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
#reviews-grid .review-card p.mt-3::after{
  content:"★★★★★";
  color:#F59E0B;
  letter-spacing:.08em;
  font-size:14px;
  line-height:1;
  white-space:nowrap;
}

.tuition-gradient{
  background:linear-gradient(90deg,#3B82F6 0%,#8B5CF6 50%,#F59E0B 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.tutor-video-float{
  float:right;
  width:min(38%,420px);
  margin:0 0 16px 24px;
  shape-outside:inset(0 round 24px);
}
@media (max-width: 1023px){
  .tutor-video-float{
    float:none;
    width:100%;
    margin:0 0 18px 0;
  }
}


/* Tutoring Journey (bento grid) */
.tj2{
  --ink:#1a0066;
  --c0:#3d00cc;
  --c1:#6c3fff;
  --c2:#a78bfa;
  --c3:#ec4899;
  --c4:#d97706;
  --c5:#07adc4;
  --gap:14px;
  --r:22px;
  --pad:clamp(1.2rem,2.8vw,2rem);
  --dissolve:0.6s ease;
  display:flex;
  flex-direction:column;
  gap:var(--gap);
}
.tj2-topbar{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding:0.5rem 0.25rem;
}
.tj2-brand{
  font-family:'Bungee','Arial Black',Impact,system-ui,sans-serif;
  font-size:clamp(1.1rem,2.5vw,1.6rem);
  text-transform:uppercase;
  color:#fff;
  letter-spacing:-0.01em;
}
.tj2-brand span{color:var(--c2);}
.tj2-tagline{
  font-size:0.72rem;
  font-weight:300;
  color:rgba(255,255,255,0.3);
  letter-spacing:0.04em;
}
.tj2-bento{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  grid-template-rows:clamp(180px,28vh,280px) clamp(240px,34vh,360px) clamp(160px,24vh,240px);
  gap:var(--gap);
}
.tj2 .t1{grid-column:1/6;grid-row:1;--col:var(--c0);animation-delay:.05s;}
.tj2 .t2{grid-column:6/9;grid-row:1;--col:var(--c1);animation-delay:.13s;}
.tj2 .t4{grid-column:9/13;grid-row:1;--col:var(--c3);animation-delay:.21s;}
.tj2 .t3{grid-column:1/7;grid-row:2;--col:var(--c2);animation-delay:.29s;}
.tj2 .t5{grid-column:7/13;grid-row:2;--col:var(--c4);animation-delay:.37s;}
.tj2 .t6{grid-column:1/13;grid-row:3;--col:var(--c5);animation-delay:.48s;}
.tj2 .tile{
  border-radius:var(--r);
  position:relative;
  overflow:hidden;
  cursor:pointer;
  opacity:0;
  animation:tj2TileIn .55s cubic-bezier(.16,1,.3,1) both;
}
@keyframes tj2TileIn{
  0%{opacity:0;transform:scale(.88) translateY(16px);}
  70%{transform:scale(1.02) translateY(-2px);}
  100%{opacity:1;transform:scale(1) translateY(0);}
}
.tj2 .front,.tj2 .back{
  position:absolute;
  inset:0;
  border-radius:var(--r);
  overflow:hidden;
  padding:var(--pad);
  background:var(--col);
}
.tj2 .front::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 80% 70% at 105% -10%, rgba(255,255,255,0.22) 0%, transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at -10% 110%, rgba(0,0,0,0.18) 0%, transparent 55%);
  pointer-events:none;
  z-index:0;
}
.tj2 .back::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse 70% 60% at -5% 110%, rgba(255,255,255,0.16) 0%, transparent 55%),
    linear-gradient(225deg, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 55% 70% at 110% -5%, rgba(0,0,0,0.15) 0%, transparent 55%);
  pointer-events:none;
  z-index:0;
}
.tj2 .front::after,.tj2 .back::after{
  content:'';
  position:absolute;
  inset:0;
  background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E\");
  pointer-events:none;
  z-index:1;
}
.tj2 .deco{
  position:absolute;
  pointer-events:none;
  z-index:0;
  width:100%;
  height:100%;
  top:0;
  left:0;
}
.tj2 .front{
  z-index:2;
  opacity:1;
  transition:opacity var(--dissolve);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
}
.tj2 .tile:hover .front,
.tj2 .tile.active .front{opacity:0;}
.tj2 .back{
  z-index:1;
  opacity:0;
  transition:opacity var(--dissolve);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:.6rem;
}
.tj2 .tile:hover .back,
.tj2 .tile.active .back{opacity:1;z-index:3;}
.tj2 .tile:hover .back,
.tj2 .tile.active .back{
  background:#f7f4ff;
  --bt: #1a0066;
  --bm: rgba(26,0,102,0.78);
}
.tj2 .tile:hover .back-body ul li::before,
.tj2 .tile.active .back-body ul li::before{
  background:#1a0066;
  opacity:0.35;
}
.tj2 .t3 .front{--ft:var(--ink);}
.tj2 .t3 .back{--bt:var(--ink);--bm:rgba(26,0,102,0.72);}
.tj2 .t1 .front,.tj2 .t2 .front,.tj2 .t4 .front,.tj2 .t5 .front,.tj2 .t6 .front{--ft:#fff;}
.tj2 .t1 .back,.tj2 .t2 .back,.tj2 .t4 .back,.tj2 .t5 .back,.tj2 .t6 .back{--bt:#fff;--bm:rgba(255,255,255,0.85);}
.tj2 .front-title{
  font-family:'Bungee','Arial Black',Impact,system-ui,sans-serif;
  text-transform:uppercase;
  color:var(--ft);
  line-height:1.0;
  letter-spacing:-0.02em;
  position:relative;
  z-index:2;
}
.tj2 .t1 .front-title{font-size:clamp(1.8rem,3.2vw,3.4rem);}
.tj2 .t2 .front-title{font-size:clamp(1.2rem,2.1vw,2.2rem);}
.tj2 .t4 .front-title{font-size:clamp(1.2rem,1.9vw,2.0rem);}
.tj2 .t3 .front-title{font-size:clamp(1.4rem,2.4vw,2.8rem);}
.tj2 .t5 .front-title{font-size:clamp(2.2rem,4.2vw,4.8rem);}
.tj2 .t6 .front-title{font-size:clamp(2.0rem,4.2vw,4.6rem);}
.tj2 .back-title{
  font-family:'Bungee','Arial Black',Impact,system-ui,sans-serif;
  text-transform:uppercase;
  color:var(--bt);
  line-height:1.05;
  letter-spacing:-0.01em;
  position:relative;
  z-index:2;
}
.tj2 .t1 .back-title,.tj2 .t2 .back-title,.tj2 .t3 .back-title{font-size:clamp(0.85rem,1.3vw,1.1rem);}
.tj2 .t4 .back-title{font-size:clamp(0.78rem,1.1vw,0.95rem);}
.tj2 .t5 .back-title,.tj2 .t6 .back-title{font-size:clamp(0.9rem,1.4vw,1.2rem);}
.tj2 .back-body{
  font-family:'Inter',system-ui,sans-serif;
  font-weight:400;
  color:var(--bm);
  line-height:1.6;
  letter-spacing:-0.01em;
  position:relative;
  z-index:2;
}
.tj2 .back-body p{font-weight:700;margin-bottom:.45rem;}
.tj2 .back-body ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.18rem;
}
.tj2 .back-body ul li{
  display:flex;
  align-items:baseline;
  gap:.5rem;
  font-weight:400;
}
.tj2 .back-body ul li::before{
  content:'';
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--bt);
  opacity:0.55;
  flex-shrink:0;
  margin-top:.45em;
}
.tj2 .t1 .back-body,.tj2 .t2 .back-body{font-size:clamp(0.68rem,0.95vw,0.82rem);}
.tj2 .t3 .back-body{font-size:clamp(0.70rem,1.0vw,0.86rem);}
.tj2 .t4 .back-body{font-size:clamp(0.66rem,0.90vw,0.78rem);}
.tj2 .t5 .back-body{font-size:clamp(0.66rem,0.95vw,0.82rem);}
.tj2 .t6 .back-body{font-size:clamp(0.74rem,1.1vw,0.92rem);max-width:760px;}
.tj2 .t6 .back{padding:clamp(1.5rem,3vw,2.5rem) clamp(2rem,5vw,4rem);}

/* Allow long content to remain readable (Exam Technique tile) */
.tj2 .t5 .back{justify-content:flex-start;}
.tj2 .t5 .back-body{max-height:100%;overflow:auto;padding-right:0.25rem;}
@media (max-width:900px){
  .tj2-bento{
    grid-template-columns:repeat(6,1fr);
    grid-template-rows:clamp(150px,22vh,210px) clamp(150px,22vh,210px) clamp(170px,26vh,240px) clamp(150px,22vh,200px);
  }
  .tj2 .t1{grid-column:1/4;grid-row:1;}
  .tj2 .t2{grid-column:4/7;grid-row:1;}
  .tj2 .t4{grid-column:1/4;grid-row:2;}
  .tj2 .t3{grid-column:4/7;grid-row:2;}
  .tj2 .t5{grid-column:1/7;grid-row:3;}
  .tj2 .t6{grid-column:1/7;grid-row:4;}
}
@media (max-width:540px){
  .tj2{--gap:10px;--r:16px;--pad:1rem;}
  .tj2-bento{
    grid-template-columns:1fr;
    grid-template-rows:clamp(220px,62vw,320px) clamp(220px,62vw,320px) clamp(220px,62vw,320px) clamp(240px,68vw,360px) clamp(240px,68vw,380px) clamp(240px,68vw,380px);
  }
  .tj2 .t1{grid-column:1;grid-row:1;}
  .tj2 .t2{grid-column:1;grid-row:2;}
  .tj2 .t4{grid-column:1;grid-row:3;}
  .tj2 .t3{grid-column:1;grid-row:4;}
  .tj2 .t5{grid-column:1;grid-row:5;}
  .tj2 .t6{grid-column:1;grid-row:6;}
  .tj2-tagline{display:none;}
  .tj2 .t1 .front-title,
  .tj2 .t2 .front-title,
  .tj2 .t3 .front-title,
  .tj2 .t4 .front-title,
  .tj2 .t5 .front-title,
  .tj2 .t6 .front-title{
    font-size: clamp(1.7rem, 7.2vw, 2.2rem);
  }
  .tj2 .back{justify-content:flex-start;}
  .tj2 .back-body{overflow:auto;max-height:100%;}
  .tj2 .back-body p{margin-bottom:.35rem;}
  .tj2 .t6 .back{padding:1rem 1.2rem;}
  .tj2 .t6 .back-body{max-width:100%;}
}

@media (prefers-reduced-motion: reduce) {
  .tj2 .tile { animation: none; opacity: 1; transform: none; }
  .tj2 .front, .tj2 .back { transition: none; }
}
