/* ============================================================
   EduBridge Tutors — core styles
   Palette & type per brand brief.
   ============================================================ */
:root{
  --gold:#D4A843;
  --gold-light:#F0C96A;
  --navy:#0D1B3E;
  --cream:#FAF7F0;
  --white:#FFFFFF;
  --muted:rgba(13,27,62,0.60);
  --muted-2:rgba(13,27,62,0.42);
  --hairline:rgba(13,27,62,0.10);
  --display:"Bebas Neue","Anton",system-ui,sans-serif;
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Hanken Grotesk","DM Sans",system-ui,-apple-system,sans-serif;
  --hand:"Caveat","Bradley Hand","Segoe Script",cursive;
  --bg:#FFFFFF;
  --maxw:1200px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg);}

/* ============================================================
   LOADING SCREEN — logo splash while the hero video buffers
   ============================================================ */
.loader{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;
  background:#fff;
  transition:opacity 1.2s ease,visibility 1.2s ease;}
.loader.hidden{opacity:0;visibility:hidden;}
.loader-inner{display:flex;flex-direction:column;align-items:center;gap:30px;
  animation:loaderIn .8s var(--ease) both;}
.loader-logo{width:min(320px,60vw);height:auto;display:block;}
.loader-bar{width:140px;height:3px;border-radius:50px;background:rgba(13,27,62,0.10);overflow:hidden;}
.loader-bar span{display:block;height:100%;width:40%;border-radius:inherit;
  background:#fff;
  animation:loaderBar 1.25s ease-in-out infinite;}
@keyframes loaderIn{from{opacity:0;transform:translateY(10px) scale(.97);}to{opacity:1;transform:none;}}
@keyframes loaderBar{0%{transform:translateX(-120%);}100%{transform:translateX(360%);}}
@media(prefers-reduced-motion:reduce){.loader-bar span,.loader-inner{animation:none;}}

body{
  margin:0;
  font-family:var(--sans);
  font-weight:400;
  color:var(--navy);
  background:transparent;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(58% 48% at 82% 6%, rgba(212,168,67,0.06), transparent 62%),
    radial-gradient(55% 46% at 10% 64%, rgba(80,130,220,0.04), transparent 60%),
    radial-gradient(52% 42% at 92% 92%, rgba(178,138,228,0.05), transparent 60%);
}
h1,h2,h3{font-family:var(--serif);font-weight:700;line-height:1.06;margin:0;letter-spacing:-0.01em;}
h1{font-family:var(--display);font-weight:400;letter-spacing:0.03em;line-height:0.96;}
p{margin:0;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 clamp(20px,5vw,48px);}

/* ---------- Liquid-glass buttons ----------
   Shared signature: frosted blur+saturate, lift on hover, press on :active,
   deep glass shadow (brand-navy cast). Applied to every transparent button. */
.btn{
  display:inline-flex;align-items:center;gap:.55em;
  font-family:var(--sans);font-weight:500;font-size:1.02rem;
  padding:0.9rem 2.1rem;border-radius:50px;cursor:pointer;
  border:1px solid transparent;
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  -webkit-backdrop-filter:blur(12px) saturate(180%);backdrop-filter:blur(12px) saturate(180%);
  white-space:nowrap;
}
.btn:active{transform:translateY(2px);}
.btn .arw{transition:transform .35s var(--ease);}
.btn:hover .arw{transform:translateX(4px);}
.btn-gold{
  background:rgba(255,255,255,0.16);
  border-color:rgba(255,255,255,0.35);
  color:var(--navy);
  box-shadow:0 8px 32px rgba(13,27,62,0.22);
}
.btn-gold:hover{background:rgba(255,255,255,0.28);border-color:rgba(255,255,255,0.55);transform:translateY(-2px);box-shadow:0 12px 40px rgba(0,0,0,0.24);}
.btn-clear{
  background:rgba(255,255,255,0.10);
  border-color:rgba(255,255,255,0.30);
  color:#fff;
  box-shadow:0 8px 32px rgba(13,27,62,0.37);
}
.btn-clear:hover{background:rgba(255,255,255,0.25);border-color:rgba(255,255,255,0.5);transform:translateY(-2px);box-shadow:0 12px 40px rgba(13,27,62,0.5);}
/* clear button on light surfaces */
.on-light .btn-clear{color:var(--navy);border-color:rgba(13,27,62,0.22);background:rgba(13,27,62,0.04);}
.on-light .btn-clear:hover{background:rgba(13,27,62,0.08);}

/* ============================================================
   LIQUID GLASS — layered refraction + specular rim
   Applied to every transparent button (.btn covers .btn-gold,
   .btn-clear, .nav-cta) and the enquiry message popup.
   Each surface gets: a frosted/saturated backdrop (already on the
   element), a soft overlay sheen (::before) and a bright specular
   edge highlight (::after) — the signature liquid-glass rim light.
   ============================================================ */
.btn, .roll-card .book-btn{position:relative;isolation:isolate;}
/* overlay sheen — a soft diagonal light that sits under the content */
.btn::before, .roll-card .book-btn::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,0.22),rgba(255,255,255,0) 46%);
  mix-blend-mode:screen;
}
/* specular edge — bright top-left rim + faint inner glow, like light catching glass */
.btn::after, .roll-card .book-btn::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255,255,255,0.7),
    inset -1px -1px 1px rgba(255,255,255,0.28),
    inset 0 0 7px 1px rgba(255,255,255,0.22);
}

/* ---------- Eyebrow pill ---------- */
.eyebrow{
  display:inline-flex;align-items:center;gap:.5em;
  font-size:.82rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  padding:.5rem 1.1rem;border-radius:50px;
}
.eyebrow .spark{color:#fff;font-size:.95em;}

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.15rem clamp(20px,5vw,48px);
  transition:background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled{
  background:rgba(255,255,255,0.66);
  -webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%);
  box-shadow:0 1px 0 var(--hairline),0 10px 30px rgba(13,27,62,0.08);
  padding-top:.85rem;padding-bottom:.85rem;
}
.brand{position:relative;display:block;height:66px;flex:none;}
.brand img{height:100%;width:auto;display:block;transition:opacity .4s var(--ease);}
.brand .logo-dark{position:absolute;top:0;left:0;opacity:0;}
.nav.scrolled .brand .logo-light{opacity:0;}
.nav.scrolled .brand .logo-dark{opacity:1;}
@media(max-width:520px){.brand{height:54px;}}
.nav-links{display:flex;align-items:center;gap:2rem;}
.nav-links a{font-size:.95rem;font-weight:500;color:rgba(255,255,255,0.86);transition:color .4s var(--ease);}
.nav-links a:hover{color:#fff;}
.nav.scrolled .nav-links a{color:var(--muted);}
.nav.scrolled .nav-links a:hover{color:var(--navy);}
.nav-cta{
  font-size:1.12rem !important;padding:.82rem 1.8rem !important;
  background:linear-gradient(135deg,rgba(255,255,255,0.16),rgba(255,255,255,0.06)) !important;
  -webkit-backdrop-filter:blur(12px) saturate(180%);backdrop-filter:blur(12px) saturate(180%);
  border:1px solid rgba(255,255,255,0.30) !important;
  color:#fff !important;
  box-shadow:0 8px 32px rgba(13,27,62,0.37) !important;
}
.nav-cta:hover{
  background:linear-gradient(135deg,rgba(255,255,255,0.28),rgba(255,255,255,0.12)) !important;
  transform:translateY(-2px);
  box-shadow:0 12px 40px rgba(13,27,62,0.5) !important;
}
/* on the light scrolled nav, warm glass cta over white */
.nav.scrolled .nav-cta{
  background:linear-gradient(135deg,rgba(212,168,67,0.24),rgba(212,168,67,0.10)) !important;
  border-color:rgba(212,168,67,0.50) !important;
  color:var(--navy) !important;
  box-shadow:0 6px 20px rgba(13,27,62,0.10) !important;
}
.nav.scrolled .nav-cta:hover{background:linear-gradient(135deg,rgba(212,168,67,0.34),rgba(212,168,67,0.16)) !important;}
@media(max-width:860px){.nav-links{display:none;}}

/* ============================================================
   HERO  (also the scroll-pinned tutor-reel stage)
   ============================================================ */
.hero{position:relative;background:transparent;}
.hero-pin{position:relative;min-height:100svh;overflow:hidden;display:flex;align-items:center;z-index:2;}
.hero-video{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;background:var(--navy);}
.hero-scrim{
  position:absolute;inset:0;z-index:1;
  background:none;
}
.hero-inner{position:relative;z-index:3;width:100%;}
.hero-copy{max-width:620px;}
.hero .eyebrow{
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.22);
  color:rgba(255,255,255,0.92);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.hero h1{
  color:#fff;font-size:clamp(4rem,9.5vw,8rem);margin:1.2rem 0 1.1rem;
  text-wrap:balance;
  letter-spacing:0.04em;line-height:0.94;
}
}
.hero h1 .accent{color:#fff;}
.hero-sub{
  color:rgba(255,255,255,0.84);font-size:clamp(1.05rem,1.6vw,1.22rem);
  line-height:1.6;font-weight:300;max-width:34em;
}
.hero-btns{display:flex;gap:1rem;margin-top:2.2rem;flex-wrap:wrap;}

/* hero entrance */
.fade-up-hero{opacity:0;transform:translateY(22px);animation:heroIn 1s var(--ease) forwards;}
.fade-up-hero.d1{animation-delay:.15s;}
.fade-up-hero.d2{animation-delay:.35s;}
.fade-up-hero.d3{animation-delay:.55s;}
.fade-up-hero.d4{animation-delay:.75s;}
@keyframes heroIn{to{opacity:1;transform:none;}}

/* hero copy revealed like song subtitles — equal-size captions that swap in
   the same spot: each line rises in as the previous rises out. */
.hero-subs{max-width:none;}
.sub-stage{
  position:relative;
  font-family:var(--display);
  font-weight:400;
  font-size:clamp(3rem,6.6vw,6rem);
  line-height:1.08;letter-spacing:0.01em;color:#fff;
  /* cap width so the caption never runs under the chat column on the right.
     mirrors .chat-zone's width + right offset, minus a 56px safety gap. */
  width:min(640px, calc(100vw - min(384px,46vw) - clamp(18px,6vw,96px) - clamp(20px,5vw,48px) - 56px));
  /* grid-stack the captions in one cell: the stage auto-sizes to the tallest
     line and every caption sits vertically centred — no dead space below. */
  display:grid;align-items:center;
}
.sub-stage .sub-cap{
  grid-area:1/1;width:100%;margin:0;
  font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;
  text-shadow:0 2px 4px rgba(0,0,0,0.5),0 4px 26px rgba(0,0,0,0.55);
  text-wrap:balance;
  opacity:0;will-change:transform,opacity,filter;
}
.sub-stage .accent{color:#fff;}
/* the long final explainer reads as a sub-line, a step down from the huge
   punchy hook lines, so it never overflows the narrow hero column. */
.sub-stage .cap3{font-size:clamp(1.8rem,3.5vw,3.1rem);line-height:1.15;}
/* ONE animation per caption — a full rise-in → hold → rise-out cycle baked
   into a single keyframe set. Using a single animation (not two comma-joined
   ones) is critical: with two opacity animations on one element, some mobile
   browsers fail to let the 2nd animation's forwards-fill override the 1st, so
   the caption gets stuck visible and two lines stack on top of each other. */
@keyframes capCycle{
  0%   {opacity:0;transform:translateY(48px);filter:blur(7px);}
  12%  {opacity:1;transform:translateY(0);filter:blur(0);}
  80%  {opacity:1;transform:translateY(0);filter:blur(0);}
  95%  {opacity:0;transform:translateY(-42px);filter:blur(7px);}
  100% {opacity:0;transform:translateY(-42px);filter:blur(7px);}
}
/* the final caption rises in and STAYS */
@keyframes capEnter{
  from{opacity:0;transform:translateY(48px);filter:blur(7px);}
  to  {opacity:1;transform:translateY(0);filter:blur(0);}
}
/* staggered, non-overlapping windows. Gated behind .subs-go (added by JS once
   the hero video is playing). Each element has exactly ONE animation. */
.sub-stage.subs-go .cap1{animation:capCycle 2.5s cubic-bezier(.16,.84,.3,1) .2s both;}
.sub-stage.subs-go .cap2{animation:capCycle 2.8s cubic-bezier(.16,.84,.3,1) 2.8s both;}
.sub-stage.subs-go .cap3{animation:capEnter .7s cubic-bezier(.16,.84,.3,1) 5.7s both;}
/* hard-locked resting state once the sequence has played (set by JS) */
.sub-stage.subs-done .cap1,.sub-stage.subs-done .cap2{opacity:0;animation:none;}
.sub-stage.subs-done .cap3{opacity:1;animation:none;}
@media(prefers-reduced-motion:reduce){
  .sub-cap{animation:none;opacity:0;}
  .cap3{opacity:1;}
}

/* scroll cue */
.scroll-cue{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);z-index:3;
  display:flex;flex-direction:column;align-items:center;gap:.5rem;color:rgba(255,255,255,0.6);
  font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;animation:cueIn 1s var(--ease) 1.1s both;}
.scroll-cue .line{width:1px;height:38px;background:linear-gradient(rgba(255,255,255,0.6),rgba(255,255,255,0));animation:cuePulse 2.2s ease-in-out infinite;}
@keyframes cueIn{from{opacity:0;}to{opacity:1;}}
@keyframes cuePulse{0%,100%{transform:scaleY(.5);opacity:.4;transform-origin:top;}50%{transform:scaleY(1);opacity:1;transform-origin:top;}}

/* bottom gradient — gentle pure-black tint at the base of the video,
   smoothly continued by the courses section top */
.hero-bottom-fade{
  display:none;
}

/* ---------- Chat enquiry + tutor reel (hero right column) ---------- */
.chat-zone{position:absolute;z-index:3;right:clamp(18px,6vw,96px);top:11.5vh;bottom:7vh;
  width:min(384px,46vw);display:flex;flex-direction:column;justify-content:center;pointer-events:none;}

/* ============================================================
   WHATSAPP-STYLE ENQUIRY CHAT
   Student asks for an IB Maths tutor; EduBridge replies ~1s later
   with a tutor profile card and a CV document.
   ============================================================ */
.wa-chat{
  pointer-events:auto;
  /* actual phone-card size — 360×600 */
  width:min(100%,360px);aspect-ratio:3/5;max-height:min(86vh,600px);
  display:flex;flex-direction:column;overflow:hidden;
  border-radius:16px;background:#EFE7DE;
  box-shadow:0 30px 70px rgba(0,0,0,0.42),0 4px 14px rgba(0,0,0,0.28);
  font-family:'Segoe UI',var(--sans);
  -webkit-font-smoothing:antialiased;
  /* slides in from the right on first appearance */
  opacity:0;transform:translateX(46px) scale(.98);
  transition:opacity .6s ease,transform .7s cubic-bezier(.2,.9,.25,1);
  will-change:transform,opacity;
}
.wa-chat.in-view{opacity:1;transform:none;}
@media (prefers-reduced-motion:reduce){
  .wa-chat{opacity:1;transform:none;transition:none;}
}
/* header */
.wa-head{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#075E54;color:#fff;flex:none;}
.wa-avatar{width:38px;height:38px;border-radius:50%;overflow:hidden;flex:none;background:rgba(255,255,255,0.2);}
.wa-avatar image-slot{width:100%;height:100%;display:block;}
.wa-avatar-logo{background:#fff;display:block;}
.wa-avatar-logo img{width:100%;height:100%;object-fit:cover;display:block;}
.wa-id{display:flex;flex-direction:column;line-height:1.2;min-width:0;flex:1;}
.wa-title{font-size:15px;font-weight:600;letter-spacing:.01em;}
.wa-status{font-size:12px;color:rgba(255,255,255,0.72);min-height:14px;}
.wa-head-icons{display:flex;align-items:center;gap:18px;color:rgba(255,255,255,0.9);flex:none;}
/* conversation body */
.wa-body{
  flex:1;min-height:0;padding:13px 12px 8px;display:flex;flex-direction:column;gap:6px;
  background-color:#EFE7DE;
  background-image:
    radial-gradient(rgba(13,27,62,0.045) 1px,transparent 1.4px),
    radial-gradient(rgba(13,27,62,0.045) 1px,transparent 1.4px);
  background-size:26px 26px,26px 26px;
  background-position:0 0,13px 13px;
  overflow-y:auto;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;
}
.wa-body::-webkit-scrollbar{width:0;height:0;display:none;}
.wa-date{align-self:center;font-size:11px;color:#54656F;background:rgba(255,255,255,0.82);
  padding:3px 11px;border-radius:8px;letter-spacing:.04em;box-shadow:0 1px 1px rgba(0,0,0,0.07);margin-bottom:2px;}
/* a single message row */
.wa-msg{display:flex;opacity:0;transform:translateY(10px);
  transition:opacity .42s ease,transform .42s cubic-bezier(.2,1,.4,1);}
.wa-msg.show{opacity:1;transform:none;}
/* typing dots + reply share one grid cell (.wa-slot): the taller reply
   reserves the space from the start, so swapping them NEVER changes the
   card height */
.wa-slot{display:grid;}
.wa-slot > .wa-msg{grid-area:1/1;align-self:start;}
/* short (landscape) viewports: compact the chat so the WHOLE conversation
   fits inside the height cap — otherwise the body overflows and auto-scrolls
   the first messages out of the top of the card */
@media(min-width:701px) and (max-height:720px){
  .wa-chat{max-height:92vh;}
  .wa-head{padding:6px 10px;}
  .wa-avatar{width:32px;height:32px;}
  .wa-body{padding:10px 10px 6px;gap:5px;}
  .wa-bubble{font-size:12.5px;}
  .wa-doc-preview .wa-rollcard{height:140px;}
  .wa-inputbar{padding:6px 8px;}
}
.wa-msg.out{justify-content:flex-end;}
.wa-msg.in{justify-content:flex-start;}
/* bubble */
.wa-bubble{position:relative;max-width:85%;padding:6px 9px 7px;border-radius:9px;
  font-size:13.5px;line-height:1.38;color:#111B21;
  box-shadow:0 1px .5px rgba(0,0,0,0.13);word-wrap:break-word;}
.wa-msg.in .wa-bubble{background:#fff;border-top-left-radius:2px;}
.wa-msg.out .wa-bubble{background:#DCF8C6;border-top-right-radius:2px;}
/* little tail */
.wa-msg.in .wa-bubble::before,
.wa-msg.out .wa-bubble::before{content:"";position:absolute;top:0;width:9px;height:11px;}
.wa-msg.in .wa-bubble::before{left:-7px;background:#fff;clip-path:polygon(100% 0,0 0,100% 60%);}
.wa-msg.out .wa-bubble::before{right:-7px;background:#DCF8C6;clip-path:polygon(0 0,100% 0,0 60%);}
/* timestamp + ticks */
.wa-meta{float:right;display:inline-flex;align-items:center;gap:3px;
  font-size:10.5px;color:#667781;margin:6px 0 -2px 10px;white-space:nowrap;}
.wa-tick{color:#53BDEB;}
.wa-meta-card{float:none;display:block;text-align:right;margin:2px 8px 6px 0;}
/* typing indicator */
.wa-typing{display:inline-flex;align-items:center;gap:4px;padding:10px 12px;}
.wa-typing i{width:7px;height:7px;border-radius:50%;background:#9aa6ad;display:inline-block;
  animation:waType 1.2s infinite ease-in-out;}
.wa-typing i:nth-child(2){animation-delay:.18s;}
.wa-typing i:nth-child(3){animation-delay:.36s;}
@keyframes waType{0%,60%,100%{transform:translateY(0);opacity:.45;}30%{transform:translateY(-4px);opacity:1;}}
/* ---- profile card — reuses the tutor-carousel .roll-card design ---- */
.wa-cardbubble{padding:4px;width:248px;max-width:92%;}
.wa-rollcard{position:relative;top:auto;left:auto;transform:none;
  width:100%;height:196px;border-radius:11px;border:none;box-shadow:none;}
.wa-rollcard .card-photo,.wa-rollcard .card-photo image-slot{border-radius:11px;}
.wa-meta-card.wa-meta-card{margin-top:3px;}
/* ---- CV document — the tutor profile card serves as the CV preview ---- */
.wa-doc{display:flex;flex-direction:column;width:252px;max-width:92%;padding:4px 4px 6px;}
.wa-doc-preview{display:block;width:100%;border-radius:8px;overflow:hidden;
  background:#f3eee7;border:1px solid rgba(13,27,62,0.06);}
.wa-doc-preview image-slot{width:100%;height:100%;display:block;}
.wa-doc-preview .wa-rollcard{position:relative;top:auto;left:auto;transform:none;
  width:100%;height:172px;border-radius:0;border:none;box-shadow:none;}
.wa-doc-preview .wa-rollcard .card-photo,
.wa-doc-preview .wa-rollcard .card-photo image-slot{border-radius:0;}
.wa-doc-row{display:flex;align-items:center;gap:9px;padding:9px 6px 2px;}
.wa-doc-icon{flex:none;display:grid;place-items:center;color:#D03C3C;}
.wa-doc-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;}
.wa-doc-name{font-size:13.5px;font-weight:600;color:#111B21;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wa-doc-sub{font-size:11.5px;color:#667781;}
.wa-doc-dl{color:#54656F;flex:none;}
/* input bar — like the real WhatsApp composer: a white pill holding
   emoji · message text · paperclip · camera, plus a round green mic button.
   The pill GROWS as the message wraps (icons stay pinned to the bottom row,
   the conversation area above absorbs the change — card height stays fixed). */
.wa-inputbar{display:flex;align-items:flex-end;gap:7px;padding:6px 7px 9px;background:#EFE7DE;flex:none;}
.wa-input-field{flex:1;min-width:0;min-height:42px;display:flex;align-items:flex-end;gap:10px;
  background:#fff;border-radius:24px;padding:9px 12px;box-shadow:0 1px 1px rgba(0,0,0,0.08);}
.wa-input-field .wa-emoji,.wa-clip,.wa-cam{color:#8696a0;flex:none;}
.wa-input-textwrap{flex:1;min-width:0;display:flex;align-items:center;min-height:24px;}
/* the text wraps onto new lines and the pill expands — just like WhatsApp */
.wa-input-text{font-size:14px;line-height:1.4;color:#111B21;white-space:normal;word-break:break-word;min-width:0;}
.wa-input-text:empty::after{content:"";display:inline-block;width:1.5px;height:15px;background:transparent;}
.wa-input-text.caret::after{content:"";display:inline-block;width:1.5px;height:15px;
  background:#008069;margin-left:1px;vertical-align:-2px;animation:waCaret 1s steps(1) infinite;}
@keyframes waCaret{50%{opacity:0;}}
.wa-input-ph{font-size:14px;color:#8696a0;}
.wa-input-field.filled .wa-input-ph{display:none;}
.wa-send-btn{flex:none;width:42px;height:42px;border-radius:50%;background:#00A884;color:#fff;
  display:grid;place-items:center;box-shadow:0 1px 3px rgba(0,0,0,0.25);}
.wa-send-btn .wa-mic{color:#fff;}
/* ---------- scroll-down hint: once the hero animation finishes, the bottom
   edge of the screen softly blinks white to invite scrolling ---------- */
.scroll-glow{position:fixed;left:0;right:0;bottom:0;height:96px;z-index:60;pointer-events:none;
  background:linear-gradient(to top,rgba(255,255,255,0.9),rgba(255,255,255,0.28) 46%,transparent);
  opacity:0;transition:opacity .8s ease;}
body.show-scroll-hint .scroll-glow{animation:scrollGlowBlink 2s ease-in-out infinite;}
@keyframes scrollGlowBlink{0%,100%{opacity:.15;}50%{opacity:1;}}
@media (prefers-reduced-motion:reduce){
  body.show-scroll-hint .scroll-glow{animation:none;opacity:.7;}
}

/* ---------- Location pin + trail (the enquiry pops up from a pinned spot in the video) ---------- */
.geo-trail{position:relative;flex:none;height:118px;margin-left:34px;width:2px;z-index:4;opacity:0;}
.geo-trail.show{opacity:1;}
/* the planted pin */
.geo-pin{position:absolute;top:-7px;left:50%;transform:translateX(-50%);width:30px;height:30px;z-index:6;}
.geo-drop{position:absolute;top:0;left:50%;width:18px;height:18px;
  background:#fff;
  border:1.5px solid rgba(255,255,255,0.85);
  border-radius:50% 50% 50% 0;
  transform:translate(-50%,0) rotate(-45deg);
  transform-origin:center;
  box-shadow:0 4px 14px rgba(212,168,67,0.6),0 0 0 0 rgba(240,201,106,0.5);
  opacity:0;}
.geo-trail.show .geo-drop{animation:pinPlant .5s cubic-bezier(.2,1.3,.4,1) .72s both;}
.geo-drop::after{content:"";position:absolute;top:50%;left:50%;width:6px;height:6px;border-radius:50%;
  background:#fff;transform:translate(-50%,-50%) rotate(45deg);box-shadow:0 0 6px rgba(255,255,255,0.9);}
/* the ground pulse under the pin */
.geo-pulse{position:absolute;top:14px;left:50%;width:14px;height:14px;border-radius:50%;
  transform:translate(-50%,-50%);background:rgba(240,201,106,0.5);opacity:0;}
.geo-trail.show .geo-pulse{animation:geoPulse 2.4s ease-out 1.15s infinite;}
/* the trail line GROWS UPWARD from the base toward the pin */
.geo-line{position:absolute;top:16px;left:50%;width:2px;bottom:0;
  background:linear-gradient(rgba(240,201,106,0.95),rgba(240,201,106,0.55) 45%,rgba(240,201,106,0.08));
  box-shadow:0 0 10px rgba(240,201,106,0.6);
  transform-origin:bottom center;transform:translateX(-50%) scaleY(0);}
.geo-trail.show .geo-line{animation:trailDraw .7s cubic-bezier(.4,0,.2,1) both;}
/* a comet rises up the trail toward the pin */
.geo-line::after{content:"";position:absolute;left:50%;bottom:0;width:6px;height:18px;border-radius:50px;
  transform:translateX(-50%);background:linear-gradient(rgba(240,201,106,0),rgba(255,255,255,0.95));
  filter:blur(.3px);opacity:0;}
.geo-trail.show .geo-line::after{animation:trailComet .7s ease-out both;}
@keyframes pinPlant{
  0%{opacity:0;transform:translate(-50%,-22px) rotate(-45deg) scale(.5);}
  60%{opacity:1;transform:translate(-50%,2px) rotate(-45deg) scale(1.08);}
  100%{opacity:1;transform:translate(-50%,0) rotate(-45deg) scale(1);}
}
@keyframes geoPulse{
  0%{opacity:.7;transform:translate(-50%,-50%) scale(.5);}
  70%{opacity:0;transform:translate(-50%,-50%) scale(3.2);}
  100%{opacity:0;transform:translate(-50%,-50%) scale(3.2);}
}
@keyframes trailDraw{from{transform:translateX(-50%) scaleY(0);}to{transform:translateX(-50%) scaleY(1);}}
@keyframes trailComet{
  0%{opacity:0;bottom:0;}
  15%{opacity:1;}
  85%{opacity:1;}
  100%{opacity:0;bottom:calc(100% - 18px);}
}
.hero-reel{position:relative;flex:1;min-height:0;width:100%;z-index:1;perspective:1400px;perspective-origin:50% 46%;
  opacity:0;pointer-events:none;}
.hero-reel.revealed{pointer-events:auto;}
/* "Tutor Found" label — pinned just above the matched carousel card */
.reel-found{position:absolute;left:0;right:0;top:0;text-align:center;z-index:6;
  font-family:var(--sans);font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  font-size:.82rem;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,0.65),0 1px 3px rgba(0,0,0,0.8);
  opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease;
  pointer-events:none;}
.reel-found.show{opacity:1;transform:none;}
.reel-progress{flex:none;width:100%;max-width:300px;height:3px;border-radius:50px;
  background:rgba(255,255,255,0.16);overflow:hidden;margin:8px auto 0;opacity:0;display:none;}
.reel-progress span{display:block;height:100%;width:0;border-radius:inherit;
  background:#fff;transition:width .12s linear;}
.chat-bubble{
  position:relative;isolation:isolate;
  /* same layered glass as the enquiry form (no bright rim, soft diagonal sheen,
     deep soft shadow, heavy blur). The tutor cards behind use 3D transforms which
     defeat backdrop-filter, so we carry a milkier white tint to read as frost. */
  background:linear-gradient(135deg,rgba(255,255,255,0.20),rgba(255,255,255,0.12));
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  backdrop-filter:blur(18px) saturate(180%);
  border:none;
  border-radius:22px 22px 22px 6px;
  padding:.95rem 1.15rem;
  box-shadow:0 24px 60px rgba(0,0,0,0.18);
  transform-origin:bottom left;
  opacity:0;transform:translateY(16px) scale(.85);
  pointer-events:auto;flex:none;z-index:5;
  /* emerge from the line's end — the popup's bottom-left corner */
  transform-origin:left bottom;
  margin-top:17vh;            /* drop the enquiry down so it sits beside the "Looking for a tutor?" heading */
}
/* diagonal sheen only — matches the enquiry card's .glass-specular */
.chat-bubble::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,0.12),rgba(255,255,255,0) 48%);
  mix-blend-mode:screen;
}

/* ---------- Location beam — a glowing line that pops up from a building in the
   skyline, straight down from the popup's bottom-left corner. It draws in FIRST,
   then the popup pops in on top of it. Anchored to the chat-zone, tucked under
   the bubble's bottom-left corner. ---------- */
.geo-beam{position:absolute;left:0;top:calc(17vh + 74px);width:8px;height:44vh;
  pointer-events:none;z-index:4;opacity:1;}
/* a thin plain white line, no glow */
.beam-line{position:absolute;left:50%;top:0;bottom:0;width:1px;
  background:linear-gradient(rgba(255,255,255,0.9),rgba(255,255,255,0.55) 60%,rgba(255,255,255,0.15));
  transform-origin:bottom center;transform:translateX(-50%) scaleY(0);}
.geo-beam.draw .beam-line{animation:beamDraw .7s cubic-bezier(.4,0,.2,1) both;}
@keyframes beamDraw{from{transform:translateX(-50%) scaleY(0);}to{transform:translateX(-50%) scaleY(1);}}
@media(prefers-reduced-motion:reduce){
  .beam-line{animation:none !important;}
  .geo-beam .beam-line{transform:translateX(-50%) scaleY(1);}
}
.chat-head{display:flex;align-items:center;gap:.6rem;margin-bottom:.55rem;}
.chat-avatar{width:40px;height:40px;border-radius:50%;flex:none;overflow:hidden;
  box-shadow:0 0 0 1.5px rgba(255,255,255,0.35),0 4px 12px rgba(7,14,33,0.35);}
.chat-avatar image-slot{width:40px;height:40px;display:block;}
.chat-name{font-size:.82rem;font-weight:600;color:#fff;}
.chat-name .chat-loc{display:flex;align-items:center;gap:.28em;margin-top:1px;
  font-weight:400;font-size:.68rem;color:rgba(255,255,255,0.7);letter-spacing:.02em;}
.chat-name .chat-loc svg{color:rgba(255,255,255,0.8);flex:none;}
.chat-body{font-size:1rem;line-height:1.4;color:#fff;min-height:1.3em;text-shadow:0 1px 8px rgba(7,14,33,0.4);}
.chat-body .caret{display:inline-block;width:1px;margin-left:1px;color:#fff;animation:blink 1s steps(1) infinite;}
@keyframes blink{50%{opacity:0;}}
/* typing dots */
.typing{display:inline-flex;gap:5px;align-items:center;height:1.3em;}
.typing i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,0.85);animation:dot 1.2s ease-in-out infinite;}
.typing i:nth-child(2){animation-delay:.18s;}
.typing i:nth-child(3){animation-delay:.36s;}
@keyframes dot{0%,60%,100%{transform:translateY(0);opacity:.4;}30%{transform:translateY(-5px);opacity:1;}}

.chat-bubble.show{animation:bubblePop .6s var(--ease) forwards;}
.chat-bubble.hide{animation:bubbleOut .8s var(--ease) forwards;}
@keyframes bubblePop{
  0%{opacity:0;transform:translateY(10px) scale(.5);box-shadow:0 8px 32px rgba(13,27,62,0.37);}
  55%{opacity:1;box-shadow:0 8px 32px rgba(13,27,62,0.37);}
  100%{opacity:1;transform:translateY(0) scale(1);box-shadow:0 8px 32px rgba(13,27,62,0.37);}
}
@keyframes bubbleOut{from{opacity:1;transform:none;}to{opacity:0;transform:translateY(-10px) scale(.97);}}

/* ============================================================
   SECTION CHROME
   ============================================================ */
section{position:relative;}
/* anchored sections clear the fixed nav so their top is never cropped */
#courses,#testimonials{scroll-margin-top:90px;}

.section-pad{padding:clamp(48px,7vh,90px) 0;}
/* each major section fills exactly one screen, content centered vertically */
.courses,
.testimonials{
  min-height:100dvh;
  display:flex;flex-direction:column;justify-content:center;
}
.eyebrow-dark{
  background:rgba(212,168,67,0.12);border:1px solid rgba(212,168,67,0.34);color:#9a7b29;
}
.section-head{max-width:640px;margin-bottom:clamp(40px,6vw,68px);}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
.section-head h2{font-size:clamp(2rem,4.2vw,3.2rem);margin:1.1rem 0 0;text-wrap:balance;}
.section-head .lead{color:var(--muted);font-size:1.12rem;line-height:1.6;margin-top:1.1rem;font-weight:300;}

/* reveal on scroll */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .8s var(--ease),transform .8s var(--ease);}
.reveal.in{opacity:1;transform:none;}
.reveal.d1{transition-delay:.08s;}
.reveal.d2{transition-delay:.16s;}
.reveal.d3{transition-delay:.24s;}
.reveal.d4{transition-delay:.32s;}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none;}}

/* ============================================================
   TUTOR REEL CARDS  (frosted glass — live in the hero right column)
   ============================================================ */
.match{background:var(--cream);}
.match .section-head .lead em{color:var(--navy);font-style:italic;}
.eyebrow-on-dark{background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.28);color:#fff;}

.roll-card{
  position:absolute;top:50%;left:50%;width:min(224px,86%);height:252px;
  border-radius:22px;overflow:hidden;
  border:1px solid rgba(255,255,255,0.55);
  box-shadow:0 30px 60px rgba(0,0,0,0.55);
  color:#fff;will-change:transform,opacity;background:var(--navy);
}
.roll-card .card-photo{position:absolute;inset:0;width:100%;height:100%;display:block;}
/* faded blur over the bottom of the photo — strongest at the base, fading up,
   so the name/subject/location read cleanly over a blurred backdrop */
.roll-card .card-shade{
  display:block;position:absolute;left:0;right:0;bottom:0;height:64%;z-index:1;pointer-events:none;
  -webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);
  -webkit-mask-image:linear-gradient(to top,#000 0%,#000 36%,rgba(0,0,0,0.4) 68%,transparent 100%);
  mask-image:linear-gradient(to top,#000 0%,#000 36%,rgba(0,0,0,0.4) 68%,transparent 100%);
  background:linear-gradient(to top,rgba(13,27,62,0.62) 0%,rgba(13,27,62,0.26) 46%,rgba(13,27,62,0) 100%);
}
.roll-card .card-info{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:11px 14px;}
/* rating pill — top right corner */
.roll-card .card-rating{position:absolute;top:12px;right:12px;z-index:3;
  display:inline-flex;align-items:center;gap:.28em;
  font-size:.8rem;font-weight:700;color:#fff;
  background:rgba(7,14,33,0.5);-webkit-backdrop-filter:blur(8px) saturate(160%);backdrop-filter:blur(8px) saturate(160%);
  border:1px solid rgba(255,255,255,0.28);
  padding:.26rem .58rem;border-radius:50px;
  box-shadow:0 4px 14px rgba(0,0,0,0.3);}
.roll-card .card-rating .star{color:#fff;font-size:.9em;}
.roll-card .card-name{font-family:var(--serif);font-weight:700;font-size:1.32rem;line-height:1;
  text-shadow:0 1px 3px rgba(0,0,0,0.9),0 2px 16px rgba(0,0,0,0.8);}
.roll-card .card-subject{margin-top:.18rem;font-size:.78rem;font-weight:500;color:rgba(255,255,255,0.96);
  line-height:1.2;text-shadow:0 1px 3px rgba(0,0,0,0.9),0 2px 12px rgba(0,0,0,0.75);}
.roll-card .card-subject .sep{color:rgba(255,255,255,0.6);margin:0 .3em;}
.roll-card .card-rows{margin-top:.4rem;display:flex;flex-direction:column;gap:.24rem;}
.roll-card .card-row{display:flex;align-items:center;gap:.42rem;font-size:.72rem;color:rgba(255,255,255,0.88);
  text-shadow:0 1px 3px rgba(0,0,0,0.9),0 2px 10px rgba(0,0,0,0.75);}
.roll-card .card-row svg{flex:none;color:#fff;opacity:.85;}
.roll-card .book-btn{position:absolute;right:14px;bottom:14px;
  display:inline-flex;align-items:center;gap:.4em;white-space:nowrap;
  font-family:var(--sans);font-weight:600;font-size:.76rem;color:#fff;
  background:rgba(255,255,255,0.12);-webkit-backdrop-filter:blur(12px) saturate(180%);backdrop-filter:blur(12px) saturate(180%);
  border:1px solid rgba(255,255,255,0.35);border-radius:50px;padding:.5rem .82rem;cursor:pointer;
  box-shadow:0 8px 32px rgba(13,27,62,0.37);transition:transform .3s ease,background .3s ease,border-color .3s ease,box-shadow .3s ease;}
.roll-card .book-btn span{font-weight:700;font-size:1.1em;}
.roll-card .book-btn:hover{background:rgba(255,255,255,0.25);border-color:rgba(255,255,255,0.55);transform:translateY(-2px);box-shadow:0 12px 40px rgba(13,27,62,0.5);}
.roll-card .book-btn:active{transform:translateY(2px);}

/* matched climax — the matched card pops forward (see render() scale boost) */
.roll-card.matched{
  box-shadow:0 30px 60px rgba(0,0,0,0.55);
}

.match-hint{display:flex;align-items:center;justify-content:center;gap:.6rem;flex:none;
  color:var(--muted-2);font-size:.82rem;letter-spacing:.04em;margin-top:18px;}
.match-hint .dot{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,0.5);}

@media(prefers-reduced-motion:reduce){
  .hero-phase2{transition:none;}
}

/* ============================================================
   HERO PHASE 2 — fades in over the video on scroll. The hero copy
   becomes the How It Works steps (left) and the chat bubble +
   carousel become the enquiry form (right). Video stays behind.
   ============================================================ */
.hero-phase2{
  position:relative;z-index:2;
  display:flex;align-items:center;
  padding:clamp(88px,12vh,120px) 0 clamp(28px,5vh,56px);
  min-height:100svh;
}
/* the enquiry form pops in exactly like the student message — identical gold glow */
/* enquiry card: transform+glow only — no opacity so backdrop-filter reaches the video */
@keyframes formPop{
  0%{transform:translateY(12px) scale(.72);
    box-shadow:0 0 0 0 rgba(240,201,106,0),0 18px 50px rgba(7,14,33,0.45);}
  55%{
    box-shadow:none;}
  100%{transform:translateY(0) scale(1);
    box-shadow:none;}}
@keyframes contentFadeIn{
  from{opacity:0;}to{opacity:1;}}
.hero-phase2.show .enquiry-card.pop{animation:formPop .6s var(--ease) both;}
.hero-phase2.show .enquiry-card.pop .glass-overlay,
.hero-phase2.show .enquiry-card.pop .glass-content{animation:contentFadeIn .45s .12s both;}
.hero-phase2-scrim{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:none;
}
.hero-phase2 .how-bg{z-index:1;}
.hero-phase2 .wrap{position:relative;z-index:2;width:100%;}
.hero-phase2 .how-col .eyebrow-dark{
  background:rgba(255,255,255,0.12);border-color:rgba(255,255,255,0.28);color:#fff;
}
.hero-phase2 .how-title{margin-top:0;margin-bottom:0.55rem;font-size:clamp(1.35rem,2.5vw,2.05rem);white-space:nowrap;max-width:none;letter-spacing:0.02em;line-height:1.1;}
.hero-phase2 .vsteps{gap:clamp(1.2rem,2.4vh,1.9rem);}

/* ============================================================
   HOW IT WORKS + ENQUIRY — combined section.
   Left: vertical numbered steps. Right: the glass enquiry form,
   sitting over a rich navy backdrop so the frosted glass still reads.
   ============================================================ */
.enquire-layout{
  display:grid;grid-template-columns:1fr minmax(0,560px);
  gap:clamp(36px,6vw,84px);align-items:center;
}
.how-bg{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0) 56%,
      rgba(0,0,0,0.34) 78%,
      rgba(0,0,0,0.72) 93%,
      #000 100%);
}
.how .wrap{position:relative;z-index:1;}
.how-col .eyebrow-dark{display:inline-flex;}
.how-title{font-family:var(--display);font-weight:400;color:#fff;letter-spacing:0.04em;font-size:clamp(2.8rem,4.8vw,4.2rem);
  line-height:1.08;margin:1.1rem 0 2.2rem;text-wrap:balance;max-width:14ch;}
.how-title .accent{color:rgba(255,255,255,0.75);}

/* vertical numbered steps (timeline) */
.vsteps{position:relative;display:flex;flex-direction:column;gap:14px;}
.vsteps::before{display:none;}
/* one unified card: knockout number flush against the text, single shadow */
.vstep{
  position:relative;z-index:1;
  display:flex;align-items:stretch;
  border-radius:22px;overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,0.22);
  background:none;
}
.vstep:nth-child(even){flex-direction:row-reverse;}
/* number block — SVG fills it; white rect with the digit punched out (video shows through) */
.vstep-num{
  flex:none;align-self:stretch;
  width:clamp(104px,13vw,138px);
  filter:none;user-select:none;
}
.vstep-num svg{display:block;width:100%;height:100%;}
/* text block — white frosted, fills the rest */
.vstep-body{
  flex:1;
  background:rgba(255,255,255,0.92);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  padding:1.25rem 1.6rem;
  display:flex;flex-direction:column;justify-content:center;
}
.vstep-body h3{color:var(--navy);font-size:clamp(.98rem,1.4vw,1.15rem);margin-bottom:.28rem;line-height:1.25;font-weight:700;}
.vstep-body p{color:rgba(13,27,62,0.58);font-size:.88rem;line-height:1.55;font-weight:400;max-width:34ch;margin:0;}

/* form column: keep the card from stretching too wide */
.enquire-col{display:flex;justify-content:center;}
@media(max-width:1024px){
  .enquire-layout{grid-template-columns:1fr;gap:48px;}
  .how-title{max-width:none;}
  .vstep-body p{max-width:none;}
}
/* ---- enquiry card: layered glass (same structure as student pop-up) ---- */
.enquiry-card{
  position:relative;
  width:min(620px,100%);
  background:none;
  border:none;
  border-radius:28px;
  overflow:hidden;
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  backdrop-filter:blur(18px) saturate(180%);
  box-shadow:0 32px 80px rgba(0,0,0,0.18);
}
/* layer 1 — lens refraction layer (SVG displacement filter removed for performance) */
.enquiry-card .glass-filter{
  position:absolute;inset:0;z-index:0;pointer-events:none;
}
/* layer 2 — bare tint: just enough to unify the surface, blur does the work */
.enquiry-card .glass-overlay{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:rgba(255,255,255,0.07);
}
/* layer 3 — diagonal sheen only, no specular rim */
.enquiry-card .glass-specular{
  position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,0.12),rgba(255,255,255,0) 48%);
  mix-blend-mode:screen;
}
/* content sits above all three glass layers */
.enquiry-card .glass-content{
  position:relative;z-index:3;
  padding:clamp(22px,3vw,34px);
}
.enquiry-head{margin-bottom:.95rem;}
.enquiry-sub{
  font-family:"Nunito",var(--sans);
  font-size:1.02rem;font-weight:500;line-height:1.4;
  color:rgba(255,255,255,0.72);
  margin:.45rem 0 0;
}
.enquiry-card .eyebrow{
  background:rgba(255,255,255,0.10);border:1px solid rgba(255,255,255,0.22);
  color:rgba(255,255,255,0.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.enquiry-card h2{font-family:var(--display);font-weight:400;letter-spacing:0.06em;color:#fff;font-size:clamp(2rem,3.2vw,2.7rem);margin:0 0 .1rem;text-transform:uppercase;}
.enquiry-note{color:rgba(255,255,255,0.72);font-size:.95rem;line-height:1.5;margin-top:.45rem;font-weight:300;}
.enquiry-grid{display:grid;grid-template-columns:1fr;gap:13px;}
.field{display:flex;flex-direction:column;gap:.34rem;min-width:0;}
.field.full{grid-column:1 / -1;}
.field.is-hidden{display:none;}
.field label{font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600;color:rgba(255,255,255,0.7);display:flex;align-items:center;gap:.4em;}
.field label .req{font-style:normal;color:#fff;font-size:.85em;line-height:1;}
.field label .opt{font-style:normal;text-transform:none;letter-spacing:0;font-weight:400;color:rgba(255,255,255,0.45);font-size:.85em;}
.field input,
.field textarea{
  font-family:'Nunito',var(--sans);font-size:.97rem;color:#fff;width:100%;
  background:rgba(255,255,255,0.18);
  border:none;
  border-radius:50px;padding:.64rem 1.1rem;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:background .25s,box-shadow .25s;
}
.field input::placeholder,
.field textarea::placeholder{color:rgba(255,255,255,0.55);}
.field textarea{resize:vertical;min-height:64px;line-height:1.45;border-radius:18px;font-family:'Nunito',var(--sans);}
.field input:focus,
.field textarea:focus{outline:none;background:rgba(255,255,255,0.24);box-shadow:none;}
.field input.invalid,
.field textarea.invalid{outline:2px solid #e0666a;box-shadow:none;}
/* segmented toggle — NO container, pill-shaped glass thumb slides over active label */
.seg{
  position:relative;display:flex;align-items:center;
  height:52px;border-radius:0;
  background:none;border:none;box-shadow:none;
  overflow:visible;padding:0;
}
/* pill-shaped glass thumb — no container, floats over the text */
.seg-thumb{
  display:block;
  position:absolute;
  height:52px;
  border-radius:50px;
  top:50%;transform:translateY(-50%);
  pointer-events:none;z-index:2;
  opacity:0;
  background:linear-gradient(145deg,rgba(255,255,255,0.28) 0%,rgba(255,255,255,0.12) 100%);
  -webkit-backdrop-filter:blur(18px) saturate(200%);backdrop-filter:blur(18px) saturate(200%);
  border:1px solid rgba(255,255,255,0.38);
  box-shadow:
    inset 1.5px 2px 0 rgba(255,255,255,0.75),
    inset -1px -1px 1px rgba(255,255,255,0.18),
    0 6px 22px rgba(0,0,0,0.13);
  width:0;
  transition:left .38s cubic-bezier(.34,1.3,.64,1), width .38s cubic-bezier(.34,1.3,.64,1), opacity .2s;
}
.seg button{
  position:relative;z-index:3;
  flex:1;display:flex;align-items:center;justify-content:center;
  font-family:var(--sans);font-weight:600;font-size:1rem;
  color:rgba(255,255,255,0.38);
  background:transparent;border:0;height:100%;padding:0 1.6rem;
  cursor:pointer;white-space:nowrap;
  transition:color .28s;}
.seg button.active{color:#fff;font-weight:700;}
.enquiry-submit{width:100%;justify-content:center;margin-top:.9rem;font-size:1.04rem;font-weight:700;
  font-family:'Nunito',var(--sans);
  background:rgba(255,255,255,0.16);
  border:1px solid rgba(255,255,255,0.35);color:#fff;
  box-shadow:0 8px 32px rgba(0,0,0,0.18);border-radius:50px;}
.enquiry-submit:hover{transform:translateY(-2px);background:rgba(255,255,255,0.28);border-color:rgba(255,255,255,0.55);box-shadow:0 12px 40px rgba(0,0,0,0.24);}
/* success state — the form's content fades away and a clear confirmation
   takes its place */
.enquiry-card .glass-content{transition:opacity .45s ease;}
.enquiry-card.sent .glass-content{opacity:0 !important;pointer-events:none;}
.enquiry-success{position:absolute;inset:0;border-radius:inherit;z-index:10;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;text-align:center;padding:2rem;
  background:linear-gradient(135deg,rgba(255,255,255,0.38),rgba(255,255,255,0.18) 60%,rgba(13,27,62,0.22) 100%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);
  opacity:0;visibility:hidden;transform:scale(.98);
  transition:opacity .5s var(--ease),visibility .5s,transform .5s var(--ease);}
.enquiry-card.sent .enquiry-success{opacity:1;visibility:visible;transform:none;transition-delay:.25s;}
.es-check{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;
  font-size:1.7rem;font-weight:700;color:var(--navy);
  background:#fff;
  box-shadow:0 10px 30px rgba(255,255,255,0.35);
  transform:scale(.4);opacity:0;}
.enquiry-card.sent .es-check{animation:esCheckPop .55s cubic-bezier(.2,1.4,.4,1) .45s both;}
@keyframes esCheckPop{from{transform:scale(.4);opacity:0;}to{transform:scale(1);opacity:1;}}
@media (prefers-reduced-motion:reduce){
  .enquiry-card.sent .es-check{animation:none;transform:none;opacity:1;}
}
.enquiry-success h3{font-family:"Nunito",var(--sans);color:#fff;font-size:2rem;font-weight:700;}
.enquiry-success p{font-family:"Nunito",var(--sans);color:rgba(255,255,255,0.82);font-size:1.25rem;font-weight:400;line-height:1.5;max-width:30ch;}
@media(max-width:560px){.enquiry-grid{grid-template-columns:1fr;}}

/* TABLET / LARGE-PHONE (701–1024px): same "fill the screen" treatment as phones
   so the enquiry form spans the column instead of floating as a 620px island
   with the video bleeding at the sides. Desktop (>1024) keeps two columns.
   Placed AFTER the base .enquiry-card rules so these win on equal specificity. */
@media(min-width:701px) and (max-width:1024px){
  .hero-phase2{align-items:stretch;}
  .enquire-layout{gap:0;align-items:stretch;}
  .how-col{
    min-height:100svh;display:flex;flex-direction:column;justify-content:center;
    padding:clamp(72px,10svh,120px) 0 6svh;
  }
  .enquire-col{
    min-height:100svh;display:flex;align-items:center;justify-content:center;
    padding:clamp(72px,10svh,120px) 0 6svh;
  }
  /* card fills the full content width — only a small even margin, no side gaps */
  .hero-phase2 .wrap{padding-left:clamp(16px,4vw,34px);padding-right:clamp(16px,4vw,34px);}
  .enquiry-card{width:100%;max-width:none;}
  .enquiry-card .glass-content{padding:clamp(28px,4.5vw,40px);width:100%;}

  .hero-phase2 .how-title{font-size:clamp(2.6rem,5.4vw,3.4rem) !important;text-align:center;margin:0 0 clamp(22px,3.5svh,38px) !important;line-height:1.1;}
  .hero-phase2 .vsteps{display:flex;flex-direction:column;gap:clamp(18px,2.8svh,30px);}
  .vstep:nth-child(even){flex-direction:row-reverse;}
  .vstep-num{width:clamp(120px,15vw,150px);align-self:stretch;aspect-ratio:150/168;flex:none;}
  .vstep-body{padding:clamp(18px,3vw,28px) clamp(20px,3.4vw,30px);}
  .vstep-body h3{font-size:clamp(1.4rem,2.6vw,1.8rem) !important;margin-bottom:.4rem;line-height:1.2;}
  .vstep-body p{font-size:clamp(1.1rem,2vw,1.32rem) !important;line-height:1.5;}

  .enquiry-head{margin-bottom:clamp(16px,2.6vh,26px);}
  .enquiry-card h2{font-size:clamp(2.2rem,4.4vw,2.8rem);}
  .enquiry-grid{gap:clamp(14px,1.8vh,20px);}
  .field input,
  .field textarea{padding:1.15rem 1.4rem;font-size:1.22rem !important;border-radius:16px;}
  #ef-subject{min-height:128px;border-radius:20px !important;}
  .seg,.seg-thumb{height:60px;}
  .seg button{font-size:1.16rem;padding:0 1.5rem;}
  .enquiry-submit{margin-top:1rem;font-size:1.22rem;padding:1.15rem 1.5rem;}
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how{background:var(--navy);color:#fff;}
.how .eyebrow-dark{background:rgba(255,255,255,0.12);border-color:rgba(255,255,255,0.28);color:#fff;}
.how .section-head h2{color:#fff;}
.how .section-head .lead{color:rgba(255,255,255,0.7);}
.steps{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,4vw,56px);}
.steps::before{
  content:"";position:absolute;top:33px;left:8%;right:8%;height:2px;z-index:0;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,0.50) 18%,rgba(255,255,255,0.50) 82%,rgba(255,255,255,0));
}
.step{position:relative;z-index:1;text-align:center;}
.step-num{
  width:68px;height:68px;border-radius:50%;margin:0 auto 1.4rem;
  display:grid;place-items:center;font-family:var(--serif);font-weight:700;font-size:1.7rem;
  color:var(--navy);background:#fff;
  box-shadow:0 0 0 8px var(--navy),0 0 0 9px rgba(255,255,255,0.25);
}
.step h3{font-size:1.45rem;margin-bottom:.7rem;}
.step p{color:rgba(255,255,255,0.72);font-size:1rem;line-height:1.6;font-weight:300;max-width:30ch;margin:0 auto;}
@media(max-width:760px){
  .steps{grid-template-columns:1fr;gap:46px;}
  .steps::before{top:0;bottom:0;left:33px;right:auto;width:2px;height:auto;
    background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,0.50) 12%,rgba(255,255,255,0.50) 88%,rgba(255,255,255,0));}
  .step{text-align:left;display:grid;grid-template-columns:68px 1fr;gap:1.3rem;align-items:start;}
  .step-num{margin:0;}
  .step p{margin:0;}
}

/* ============================================================
   WHY EDUBRIDGE
   ============================================================ */
.why{background:var(--cream);}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
@media(max-width:980px){.why-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.why-grid{grid-template-columns:1fr;}}
.feature{
  background:var(--white);border:1px solid var(--hairline);border-radius:18px;
  padding:30px 26px;transition:transform .5s var(--ease),box-shadow .5s var(--ease);
}
.feature:hover{transform:translateY(-6px);box-shadow:0 22px 50px rgba(13,27,62,0.09);}
.feature .ficon{
  width:54px;height:54px;border-radius:14px;display:grid;place-items:center;margin-bottom:1.3rem;
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.22);color:#fff;
}
.feature h3{font-size:1.32rem;margin-bottom:.6rem;}
.feature p{color:var(--muted);font-size:.96rem;line-height:1.6;font-weight:300;}

/* ============================================================
   FOOTER (stub)
   ============================================================ */
.foot{background:#fff;color:var(--muted);padding:72px 0 52px;position:relative;z-index:10;border-top:1px solid var(--hairline);}
.foot-top{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;align-items:flex-start;}
.foot-logo{height:104px;width:auto;margin-bottom:.4rem;}
.foot .tag{margin-top:.7rem;font-size:.95rem;color:var(--muted);font-weight:300;max-width:26ch;}
.foot-cols{display:flex;gap:clamp(36px,7vw,90px);flex-wrap:wrap;}
.foot-col h4{font-family:var(--sans);font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:#9a7b29;margin-bottom:1rem;font-weight:600;}
.foot-col a{display:block;font-size:.95rem;margin-bottom:.6rem;color:var(--muted);font-weight:400;transition:color .25s;}
.foot-col a:hover{color:var(--navy);}
.foot-bottom{margin-top:54px;padding-top:24px;border-top:1px solid var(--hairline);
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center;font-size:.84rem;color:var(--muted-2);}
.foot-social{display:flex;gap:12px;margin-top:20px;}
.foot-social a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
  border-radius:50%;color:var(--muted);border:1px solid var(--hairline);background:rgba(13,27,62,0.02);
  transition:color .25s,border-color .25s,background .25s,transform .25s;}
.foot-social a:hover{color:#9a7b29;border-color:rgba(212,168,67,0.4);background:rgba(212,168,67,0.08);transform:translateY(-2px);}
.foot-social svg{width:19px;height:19px;display:block;}
.foot-note{font-size:.84rem;color:rgba(255,255,255,0.4);background:rgba(212,168,67,0.08);
  border:1px dashed rgba(212,168,67,0.3);border-radius:8px;padding:.5rem .9rem;}

/* ============================================================
   COURSES
   ============================================================ */
.courses{
  background:linear-gradient(125deg,#060d24 0%,#0d1b3e 28%,#0a1733 52%,#13316b 74%,#0b1a3c 100%);
  background-size:320% 320%;
  animation:navyDrift 22s ease-in-out infinite;
  color:#fff;
  position:relative;
  z-index:10;
  overflow:hidden;
}
.courses::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(to bottom,
      #000 0%,
      rgba(0,0,0,0.94) 9%,
      rgba(0,0,0,0.78) 20%,
      rgba(0,0,0,0.55) 32%,
      rgba(2,6,18,0.36) 45%,
      rgba(6,13,36,0.18) 60%,
      rgba(6,13,36,0) 78%),
    radial-gradient(ellipse 52% 40% at 78% 12%, rgba(80,130,220,0.20) 0%, transparent 56%),
    radial-gradient(ellipse 60% 48% at 8% 86%, rgba(212,168,67,0.12) 0%, transparent 54%);
}
@keyframes navyDrift{
  0%,100%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
}
.courses .wrap{position:relative;z-index:1;}

/* decorative, non-interactive floating bubbles filling the section background.
   Same frosted-glass language as the real program bubbles, but quieter and
   pointer-events:none so they never interfere with the interactive cloud. */
.deco-bubbles{
  position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;
}
.deco-bubble{
  position:absolute;
  left:var(--l);top:var(--t);
  width:var(--s);height:var(--s);
  border-radius:50%;
  background:rgba(255,255,255,0.05);
  -webkit-backdrop-filter:blur(8px) saturate(150%);
  backdrop-filter:blur(8px) saturate(150%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.18),0 14px 40px rgba(0,0,0,0.18);
  animation:decoFloat var(--d,15s) ease-in-out var(--delay,0s) infinite;
  will-change:transform;
}
.deco-bubble::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,0.16),rgba(255,255,255,0) 50%);
  mix-blend-mode:screen;
}
.deco-bubble--gold{
  background:rgba(212,168,67,0.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.22),0 14px 40px rgba(0,0,0,0.18);
}
@keyframes decoFloat{
  0%,100%{transform:translate(0,0);}
  50%{transform:translate(8px,-22px);}
}
@media(prefers-reduced-motion:reduce){
  .deco-bubble{animation:none;}
}
/* melt the navy gradient into white at the bottom so it blends seamlessly
   into the white testimonials section below — long, eased fade for smoothness */
.courses::after{
  content:"";position:absolute;left:0;right:0;bottom:0;
  height:clamp(320px,46vh,620px);pointer-events:none;z-index:0;
  background:linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.02) 14%,
    rgba(255,255,255,0.08) 28%,
    rgba(255,255,255,0.18) 42%,
    rgba(255,255,255,0.34) 55%,
    rgba(255,255,255,0.54) 68%,
    rgba(255,255,255,0.74) 80%,
    rgba(255,255,255,0.90) 90%,
    #fff 100%);
}
.courses .section-head h2{color:#fff;}
.courses .section-head .lead{color:rgba(255,255,255,0.72);}
.courses .eyebrow-dark{background:rgba(255,255,255,0.12);border-color:rgba(255,255,255,0.28);color:#fff;}

.course-cats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
@media(max-width:960px){.course-cats{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.course-cats{grid-template-columns:1fr;}}

.ccat{
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(150deg,rgba(255,255,255,0.72),rgba(255,255,255,0.42));
  -webkit-backdrop-filter:blur(20px) saturate(150%);backdrop-filter:blur(20px) saturate(150%);
  border:1px solid rgba(255,255,255,0.80);
  border-radius:22px;
  padding:26px 24px 22px;
  box-shadow:0 16px 40px rgba(13,27,62,0.10);
  transition:transform .45s var(--ease),box-shadow .45s var(--ease),border-color .45s var(--ease);
}
.ccat::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:linear-gradient(150deg,rgba(255,255,255,0.65),rgba(255,255,255,0) 46%);}
.ccat::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  box-shadow:inset 1px 1px 0 rgba(255,255,255,0.9),inset -1px -1px 1px rgba(13,27,62,0.05);}
.ccat:hover{
  transform:translateY(-5px);
  border-color:rgba(212,168,67,0.45);
  box-shadow:0 26px 56px rgba(13,27,62,0.14),0 0 0 1px rgba(212,168,67,0.12);
}

.ccat-head{
  display:flex;align-items:center;gap:13px;
  margin-bottom:15px;
}
.ccat-icon{
  width:46px;height:46px;flex:none;
  border-radius:13px;display:grid;place-items:center;
  background:rgba(13,27,62,0.08);
  border:1px solid rgba(13,27,62,0.12);
  color:var(--navy);
}
.ccat-head h3{font-size:1.16rem;color:var(--navy);margin:0;line-height:1.2;}

.ccat-desc{
  color:var(--muted);
  font-size:.92rem;line-height:1.6;margin:0;
}
.ccat-wide{grid-column:span 2;}
@media(max-width:960px){.ccat-wide{grid-column:span 2;}}
@media(max-width:520px){.ccat-wide{grid-column:span 1;}}

.ctags{display:flex;flex-wrap:wrap;gap:6px;}
.ctag{
  display:inline-flex;align-items:center;
  font-size:.74rem;font-weight:500;
  color:#9a7b29;
  background:rgba(212,168,67,0.12);
  border:1px solid rgba(212,168,67,0.28);
  border-radius:50px;
  padding:.26rem .68rem;
  white-space:nowrap;
  transition:background .22s,border-color .22s,color .22s,transform .22s;
  cursor:default;
}
.ctag:hover{
  background:rgba(212,168,67,0.20);
  border-color:rgba(212,168,67,0.5);
  color:#7e651f;
  transform:translateY(-1px);
}

/* curriculums */
.cur-block{
  margin-top:clamp(40px,5vw,60px);
  text-align:center;
}
.cur-head{
  display:flex;align-items:center;justify-content:center;gap:18px;
  margin-bottom:22px;
}
.cur-head h3{
  font-family:var(--serif);color:#fff;
  font-size:clamp(1.3rem,2.2vw,1.7rem);
  margin:0;white-space:nowrap;
}
.cur-line{
  height:1px;flex:1;max-width:120px;
  background:linear-gradient(90deg,transparent,rgba(212,168,67,0.55),transparent);
}
.cur-tags{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:9px;max-width:880px;margin:0 auto;
}
.cur-tag{
  display:inline-flex;align-items:center;
  font-size:.82rem;font-weight:600;
  color:#fff;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.14);
  border-radius:50px;
  padding:.5rem 1.05rem;
  transition:background .22s,border-color .22s,transform .22s,box-shadow .22s;
  cursor:default;
}
.cur-tag:hover{
  background:linear-gradient(135deg,rgba(255,255,255,0.20),rgba(212,168,67,0.12));
  border-color:rgba(212,168,67,0.45);
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(0,0,0,0.25);
}

.courses-cta{
  margin-top:clamp(34px,4.5vw,50px);
  display:flex;align-items:center;justify-content:center;
  gap:clamp(14px,2vw,24px);flex-wrap:wrap;text-align:center;
}
.courses-cta p{color:var(--muted);font-size:.95rem;margin:0;}
.courses .courses-cta p{color:rgba(255,255,255,0.82);}
.courses .courses-cta p a{color:var(--gold-light);}
.courses-cta p a{color:#9a7b29;text-decoration:underline;text-underline-offset:3px;}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials{background:#fff;position:relative;z-index:10;overflow:hidden;}
.testimonials::before{content:"";position:absolute;inset:0;pointer-events:none;background:none;}
.testimonials .wrap{position:relative;z-index:1;}
.testimonials .section-head h2{color:var(--navy);}
.testimonials .section-head .lead{color:var(--muted);}

/* ============================================================
   FAQ — native <details> accordion, white section
   ============================================================ */
.faq{background:#fff;position:relative;z-index:10;}
.faq .section-head h2{color:var(--navy);}
.faq .section-head .lead{color:var(--muted);}
.faq-list{max-width:780px;margin:0 auto;}
.faq-item{
  border-bottom:1px solid var(--hairline);
}
.faq-item summary{
  list-style:none;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:clamp(18px,2.4vw,24px) 4px;
  font-family:var(--sans);font-weight:600;
  font-size:clamp(1.05rem,1.7vw,1.28rem);color:var(--navy);
  transition:color .25s var(--ease);
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary:hover{color:var(--gold);}
.faq-item summary::after{
  content:"";flex:none;width:13px;height:13px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg);margin-right:6px;margin-top:-4px;
  transition:transform .3s var(--ease);
}
.faq-item[open] summary{color:var(--gold);}
.faq-item[open] summary::after{transform:rotate(-135deg);margin-top:4px;}
.faq-a{padding:0 4px clamp(18px,2.4vw,24px);}
.faq-a p{
  color:var(--muted);font-size:clamp(.98rem,1.4vw,1.08rem);
  line-height:1.62;font-weight:400;max-width:68ch;
}
.faq-item[open] .faq-a{animation:faqOpen .35s var(--ease) both;}
@keyframes faqOpen{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}
@media(prefers-reduced-motion:reduce){
  .faq-item[open] .faq-a{animation:none;}
  .faq-item summary::after,.faq-item summary{transition:none;}
}

.tscroll-wrap{position:relative;}

.tgrid{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding:26px 4px 30px;
  /* break out of the 1200px content wrap so the notes span the full screen
     width, then inset the first/last card to line up with the heading. */
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding-left:max(clamp(20px,5vw,48px), calc((100vw - var(--maxw)) / 2 + clamp(20px,5vw,48px)));
  padding-right:max(clamp(20px,5vw,48px), calc((100vw - var(--maxw)) / 2 + clamp(20px,5vw,48px)));
  scrollbar-width:thin;
  scrollbar-color:rgba(212,168,67,0.5) transparent;
}
.tgrid::-webkit-scrollbar{height:8px;}
.tgrid::-webkit-scrollbar-track{background:rgba(13,27,62,0.07);border-radius:50px;}
.tgrid::-webkit-scrollbar-thumb{background:rgba(212,168,67,0.5);border-radius:50px;}
.tgrid::-webkit-scrollbar-thumb:hover{background:rgba(212,168,67,0.8);}

.tcard{
  position:relative;
  flex:0 0 320px;
  scroll-snap-align:start;
  background:#fdef9a;
  border-radius:2px 2px 3px 3px;
  padding:34px 26px 26px;
  display:flex;flex-direction:column;gap:14px;
  box-shadow:0 14px 28px rgba(13,27,62,0.16),0 2px 5px rgba(13,27,62,0.10);
  transform:rotate(-1.6deg);
  transition:transform .4s var(--ease),box-shadow .4s var(--ease);
}
/* paper-colour variation across the notes */
.tcard:nth-child(4n+2){background:#cfe2f4;transform:rotate(1.4deg);}
.tcard:nth-child(4n+3){background:#fbd9bf;transform:rotate(-0.7deg);}
.tcard:nth-child(4n+4){background:#dcefcc;transform:rotate(1.9deg);}
/* translucent strip of tape pinning the note */
.tcard::before{
  content:"";position:absolute;top:-11px;left:50%;
  transform:translateX(-50%) rotate(-3deg);
  width:104px;height:26px;
  background:rgba(255,255,255,0.42);
  border:1px solid rgba(255,255,255,0.5);
  box-shadow:0 2px 6px rgba(13,27,62,0.12);
}
@media(max-width:520px){.tcard{flex-basis:82vw;}}
.tcard:hover{transform:rotate(0deg) translateY(-7px);
  box-shadow:0 26px 50px rgba(13,27,62,0.22),0 5px 10px rgba(13,27,62,0.12);}

.tcard-quote{
  font-family:var(--hand);font-style:normal;font-weight:500;
  font-size:1.52rem;line-height:1.4;color:#2a2c38;
  flex:1;margin:0;
}
.tcard-quote::before,.tcard-quote::after{content:none;}

.tcard-bar{
  width:46px;height:2px;flex:none;
  background:rgba(42,44,56,0.28);
  border-radius:2px;
}

.tcard-author{display:block;}
.tcard-name{font-family:var(--hand);font-weight:700;font-size:1.5rem;color:var(--navy);margin-bottom:0;line-height:1.12;}
.tcard-meta{font-family:var(--hand);font-weight:500;font-size:1.1rem;color:rgba(42,44,56,0.6);line-height:1.18;}

.tcard-subject{
  align-self:flex-start;
  display:inline-flex;align-items:center;
  font-size:.70rem;font-weight:600;
  color:#9a7b29;
  background:rgba(212,168,67,0.12);
  border:1px solid rgba(212,168,67,0.28);
  border-radius:50px;
  padding:.24rem .66rem;
}

/* ============================================================
   EXPLORE PROGRAMS — floating bubble cloud
   ============================================================ */
.bubble-cloud{
  position:relative;width:100%;
  height:clamp(500px,52vh,680px);
  margin-top:clamp(14px,2vh,28px);
}
/* wide screens: break the cloud out past the 1200px content wrap so the
   bubbles spread across the available width instead of bunching in the centre */
@media(min-width:1240px){
  .bubble-cloud{
    width:min(94vw,1680px);
    margin-left:50%;
    transform:translateX(-50%);
  }
}
/* ---- bubbles: same frosted glass as the enquiry form ---- */
.bubble{
  position:absolute;left:0;top:0;
  border-radius:50%;
  display:grid;place-items:center;
  cursor:pointer;outline:none;
  background:rgba(255,255,255,0.07);
  -webkit-backdrop-filter:blur(16px) saturate(180%);
  backdrop-filter:blur(16px) saturate(180%);
  border:none;
  box-shadow:0 22px 60px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.22);
  color:#fff;
  transition:width .55s var(--ease), height .55s var(--ease),
             box-shadow .5s var(--ease), border-color .5s var(--ease),
             background .5s var(--ease);
  will-change:transform;
  z-index:1;
}
/* diagonal sheen — the glass specular highlight */
.bubble::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,0.20),rgba(255,255,255,0) 46%);
  mix-blend-mode:screen;
}
.bubble:focus-visible{box-shadow:0 0 0 3px rgba(240,201,106,0.6), 0 22px 60px rgba(0,0,0,0.30);}
.bubble.is-active{
  background:rgba(255,255,255,0.12);
  border-color:rgba(255,255,255,0.46);
  box-shadow:0 40px 90px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.30);
  z-index:6;
}
.bubble-face{
  position:relative;
  width:100%;height:100%;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:20px;gap:5px;overflow:hidden;
}
.bubble.is-active .bubble-face{overflow:hidden;}
.bubble-label{
  position:relative;z-index:2;
  font-family:var(--sans);font-weight:700;
  font-size:clamp(1.05rem,1.65vw,1.25rem);line-height:1.16;letter-spacing:.005em;
  max-width:92%;text-wrap:balance;
  text-shadow:0 2px 14px rgba(0,0,0,0.45);
  transition:font-size .4s var(--ease),color .4s var(--ease),margin .4s var(--ease);
}
.bubble.is-active .bubble-label{font-size:1.32rem;color:var(--gold-light);}
.bubble-count{
  position:relative;z-index:2;
  font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;
  color:rgba(255,255,255,0.58);margin-top:3px;white-space:nowrap;
  transition:opacity .25s,font-size .3s,margin .3s;
}
.bubble.is-active .bubble-count{opacity:0;font-size:0;margin:0;height:0;}
/* scattered program words — positioned freely by JS, no pills */
.bubble-tags{position:absolute;inset:0;pointer-events:none;z-index:1;}
.bubble-tags span{
  position:absolute;white-space:nowrap;
  font-family:var(--sans);font-weight:600;
  font-size:.78rem;line-height:1;
  color:rgba(255,255,255,0.92);
  text-shadow:0 2px 12px rgba(0,0,0,0.55);
  transform:translate(-50%,-50%);
  opacity:0;transition:opacity .3s var(--ease);
}
.bubble.is-active .bubble-tags span{
  opacity:1;
  /* fade the words in shortly after the bubble starts expanding */
  transition:opacity .4s var(--ease) .2s;
  animation:wordFloat var(--wf,4s) ease-in-out var(--wd,0s) infinite;
}
@keyframes wordFloat{
  0%,100%{transform:translate(-50%,-50%);}
  50%{transform:translate(calc(-50% + var(--dx,0px)),calc(-50% + var(--dy,-6px)));}
}
/* gold-toned glass variant — warm frosted tint */
.bubble--gold{
  background:rgba(212,168,67,0.16);
  border-color:rgba(240,201,106,0.46);
  box-shadow:0 22px 60px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.30);
}
.bubble--gold.is-active{
  background:rgba(212,168,67,0.24);
  border-color:rgba(240,201,106,0.70);
}

/* mobile — keep the real floating glass cloud, but PORTRAIT.
   Bubbles stay absolutely positioned + circular (driven by bubbles.js);
   tapping one centres + expands it while the rest slide off-screen sideways.
   The cloud just gets a tall portrait box to scatter into. */
@media(max-width:720px){
  .bubble-cloud{
    /* svh, not vh: vh changes when the mobile URL bar collapses, which made
       the whole cloud re-layout (visible size jump) on every scroll flip */
    height:clamp(500px,76svh,660px);
    overflow:visible;            /* let inactive bubbles peek past the edges */
  }
  /* backdrop blur is too heavy for phones — the JS float loop forces the
     blur to recompute every frame. A flat translucent fill reads the same
     on the dark gradient and scrolls smoothly. */
  .bubble{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(255,255,255,0.10);}
  /* larger active title to match the boosted program-word text */
  .bubble.is-active .bubble-label{font-size:1.3rem;}
  .bubble-label{font-size:.84rem;}
}
@media(prefers-reduced-motion:reduce){
  .bubble{transition:width .3s ease,height .3s ease;}
  .bubble.is-active .bubble-tags span{animation:none;}
}

/* ============================================================
   WHATSAPP CHAT FAB — floating "Chat with us" button
   ============================================================ */
.wa-fab{
  position:fixed;z-index:900;
  right:clamp(16px,2.4vw,30px);bottom:clamp(16px,2.4vw,30px);
  display:inline-flex;align-items:center;gap:10px;
  padding:17px 28px 17px 21px;
  background:#25D366;color:#fff;
  border-radius:50px;
  font-family:var(--sans);font-weight:600;font-size:1.2rem;letter-spacing:.005em;
  box-shadow:0 12px 32px rgba(37,211,102,0.42),0 4px 12px rgba(0,0,0,0.20);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
  animation:waIn .55s var(--ease) .9s both;
}
.wa-fab::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:0 0 0 0 rgba(37,211,102,0.5);
  animation:waPulse 2.8s ease-out infinite;
}
.wa-fab:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(37,211,102,0.52),0 6px 16px rgba(0,0,0,0.22);}
.wa-fab:active{transform:translateY(0);}
.wa-fab-icon{display:inline-flex;width:26px;height:26px;flex:none;}
.wa-fab-icon svg{width:100%;height:100%;display:block;}
.wa-fab-label{white-space:nowrap;}
@keyframes waIn{from{opacity:0;transform:translateY(22px) scale(.92);}to{opacity:1;transform:none;}}
@keyframes waPulse{0%{box-shadow:0 0 0 0 rgba(37,211,102,0.45);}70%{box-shadow:0 0 0 16px rgba(37,211,102,0);}100%{box-shadow:0 0 0 0 rgba(37,211,102,0);}}
@media(max-width:560px){
  .wa-fab{padding:11px 17px 11px 14px;gap:8px;font-size:.86rem;}
  .wa-fab-icon{width:19px;height:19px;}
}
@media(prefers-reduced-motion:reduce){
  .wa-fab{animation:none;}
  .wa-fab::before{animation:none;}
}

/* ============================================================
   ============================================================
   PHONE OPTIMISATION  (≤ 700px)
   Desktop layout is untouched — every rule below is scoped to
   small screens only. Targets: the cramped hero reel, the
   pinned How-It-Works + enquiry phase, courses, testimonials,
   and footer.
   ============================================================
   ============================================================ */
@media(max-width:700px){

  /* ---------- NAV ---------- */
  .nav{padding:0.8rem clamp(16px,5vw,24px);}
  .nav-cta{font-size:.85rem !important;padding:.55rem 1.1rem !important;}
  .brand{height:42px;}

  /* ---------- HERO · phase 1 ----------
     Three stacked bands on phone:
       • student chat message  → TOP
       • headline + sub-text   → MIDDLE (vertically centred)
       • tutor cards (reel)    → BOTTOM
     The bubble and reel normally share one flex column; here we pull them
     apart into absolute bands and drop the connecting pin/trail. */
  .hero-pin{align-items:flex-start;}

  /* Pin the background video to the LARGEST viewport height (lvh) instead of
     100% of the fixed element. On phones the URL bar hides as you scroll,
     which grows the viewport and made object-fit:cover re-crop the video —
     looking like a zoom-in. lvh stays constant through that, so the video
     plays without resizing. */
  .hero-video{height:100lvh;}

  /* full 360×600 design card, scaled down (via the zone wrapper — the card
     itself carries the entrance animation's transform) and tucked to the
     lower-right — mirrors the design-preview look: a scaled card, not a
     reflowed one */
  .chat-zone{
    position:absolute;left:0;right:0;bottom:8svh;top:auto;width:auto;max-width:none;height:auto;margin:0;
    display:flex;justify-content:flex-end;align-items:flex-end;padding:0 10px;
    transform:scale(.68);transform-origin:bottom right;
  }
  .wa-chat{width:360px;aspect-ratio:3/5;max-height:none;flex:none;}
  .wa-body{flex:1;}
  .wa-head{padding:7px 10px;}
  .wa-body{padding:10px 10px 6px;gap:5px;}
  .wa-bubble{font-size:12.5px;}
  .wa-doc-preview .wa-rollcard{height:140px;}
  .wa-inputbar{padding:6px 8px;}
  .geo-beam{display:none !important;}
  .geo-trail{display:none !important;}

  /* headline + sub — TOP band, vertically centred between nav & chat card.
     The scaled card is a fixed 408px tall (600 × .68), so the band's bottom
     tracks it in px (8svh anchor + 408px card + 8px gap) on every screen
     height instead of guessing with svh. */
  .hero-inner{
    position:absolute;top:15svh;bottom:calc(8svh + 416px);left:0;right:0;z-index:4;
    display:flex;align-items:center;justify-content:center;padding:0;
  }
  .hero-copy{max-width:none;text-align:center;margin:0 auto;}
  /* chat stacks at the bottom on phones, so the caption can use full width */
  .sub-stage{width:min(86vw,560px);margin:0 auto;
    /* all three caption lines share the SAME size on phone — matched to the
       69px the user set on line 3 (≈10vw at 680px wide). */
    font-size:clamp(2.2rem,10.1vw,4.4rem);}
  .sub-stage .sub-cap,
  .sub-stage .cap3{font-size:inherit;line-height:1.18;}
  .sub-stage .cap3{font-size:clamp(1.8rem,8.2vw,3rem) !important;line-height:1.2 !important;}
  .hero h1{
    font-size:clamp(3.3rem,14vw,4.8rem);
    margin:0 0 1.05rem;line-height:0.92;letter-spacing:0.02em;
  }
  .hero-sub{
    font-size:clamp(1.16rem,5vw,1.45rem) !important;
    line-height:1.38 !important;max-width:26ch;margin:0 auto;font-weight:700 !important;
  }

  /* ---------- HERO · phase 2 (How It Works + enquiry) ----------
     Must fit inside one pinned screen. Steps condense to icon + title,
     the form tightens up; both stack in a single column. */
  /* full, naturally-scrolling section on phone: show ALL the step text
     (same desktop styling) and stack the enquiry form BELOW the steps,
     instead of cramming everything into one pinned screen. */
  /* phone: TWO full screens — the steps fill one screen, the enquiry form
     fills the next. Content is sized BIG to genuinely fill the screen,
     not shrunk-and-centered with empty space around it. */
  .hero-phase2{padding:0;align-items:stretch;min-height:auto;}
  .hero-phase2 .wrap{max-height:none;padding-top:0;padding-bottom:0;}
  .enquire-layout{display:flex;flex-direction:column;gap:0;align-items:stretch;}
  .how-col{
    display:flex;flex-direction:column;justify-content:flex-start;
    padding:130px 0 40px; /* clears the fixed nav (~100px tall on phone) */
  }
  /* form hugs its content — no stretching to fill the screen height */
  .enquire-col{
    display:flex;align-items:flex-start;justify-content:center;
    padding:5svh 0 6svh;
  }
  .enquiry-card{width:100%;display:flex;}
  .hero-phase2 .how-title{
    font-size:clamp(1.5rem,7vw,1.8rem) !important;white-space:normal !important;
    margin:0 0 clamp(16px,2.6svh,28px) !important;text-align:center;line-height:1.12;
  }
  /* steps hug their content — no stretching across tall screens */
  .hero-phase2 .vsteps{flex:0 0 auto;display:flex;flex-direction:column;justify-content:flex-start;gap:clamp(16px,2.4svh,28px);}
  .vstep{flex:none;border-radius:18px;box-shadow:0 8px 22px rgba(0,0,0,0.22);min-height:0;}
  /* zig-zag: number alternates left / right down the column (like desktop) */
  .vstep:nth-child(even){flex-direction:row-reverse;}
  /* number cell matches the SVG viewBox ratio (150:168) so the digit keeps its
     shape even though the card is stretched tall — width follows from height. */
  .vstep-num{width:auto;align-self:stretch;aspect-ratio:150/168;max-width:23vw;}
  .vstep-body{padding:clamp(12px,1.8svh,18px) clamp(14px,4vw,20px);justify-content:center;}
  .vstep-body h3{font-size:1rem !important;margin-bottom:.35rem;line-height:1.2;}
  .vstep-body p{display:block;font-size:.84rem !important;line-height:1.45;max-width:none;}

  /* enquiry card — fills the screen: card stretches, fields are large */
  .enquiry-card .glass-content{padding:clamp(22px,5vw,32px) !important;display:flex;flex-direction:column;justify-content:center;width:100%;}
  .enquiry-head{margin-bottom:clamp(14px,3svh,28px);}
  .enquiry-card h2{font-size:1.7rem;}
  .enquiry-grid{gap:clamp(10px,1.8svh,16px);}
  .field input,
  .field textarea{padding:.85rem 1.1rem;font-size:1rem !important;}
  #ef-subject{height:clamp(96px,14svh,132px);min-height:96px;border-radius:16px !important;}
  .enquiry-card .field:has(.seg){padding:clamp(5px,1.2svh,10px) 0 !important;}
  .seg,.seg-thumb{height:46px;}
  .seg button{font-size:.92rem;padding:0 1.1rem;}
  .enquiry-submit{margin-top:clamp(10px,2svh,18px);font-size:1rem;padding:.9rem 1.2rem;}

  /* ---------- COURSES ---------- */
  /* pull content to the top (kill the vertical-centering gap) and give the
     section header real presence; bump every supporting label up to readable */
  .courses{justify-content:flex-start;}
  .courses.section-pad{padding-top:26px;}
  /* size to content — on tall phone screens 100dvh left a huge empty gap
     between the bubble cloud and testimonials */
  .courses{min-height:auto;justify-content:flex-start;}
  .courses.section-pad{padding-top:26px;padding-bottom:40px;}
  .courses .section-head{margin-bottom:14px;}
  .courses .section-head h2{font-size:clamp(1.9rem,8.6vw,2.2rem) !important;line-height:1;}
  .courses .section-head .lead{font-size:.82rem;line-height:1.5;}
  .bubble-count{font-size:.66rem;letter-spacing:.05em;}
  .courses-cta{margin-top:18px;}
  .courses-cta p{font-size:.84rem;line-height:1.5;}

  /* ---------- TESTIMONIALS ---------- */
  /* the carousel was forcing .wrap to its 1200px max-width (auto margins
     disable flex-stretch), shoving the centred heading off-screen. Pin the
     wrap to the viewport, top-align the section, and centre-snap the notes. */
  .testimonials{min-height:auto;justify-content:flex-start;}
  .testimonials.section-pad{padding-top:26px;padding-bottom:30px;}
  .testimonials .wrap{width:100%;}
  .testimonials .section-head{margin-bottom:12px;}
  .testimonials .section-head h2{font-size:clamp(1.7rem,7.8vw,2rem) !important;line-height:1.1;}
  .testimonials .section-head .lead{font-size:.82rem;line-height:1.5;}
  .tgrid{gap:14px;padding-top:16px;padding-bottom:20px;align-items:flex-start;}
  .tcard{flex-basis:68vw;aspect-ratio:1/1;scroll-snap-align:center;padding:20px 18px 16px;}
  .tcard-quote{font-size:1.02rem;line-height:1.32;font-weight:600;min-height:0;overflow:hidden;}
  .tcard-name{font-size:1.08rem;}
  .tcard-meta{font-size:.8rem;}

  /* ---------- FOOTER ---------- */
  .foot{padding:30px 0 24px;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;}
  /* auto margins disable flex-stretch — pin the wrap to full width so the
     footer grid spans the screen instead of bunching in the centre */
  .foot .wrap{width:100%;}
  /* 2×2 quadrant footer: logo | Explore / Contact | Get Started.
     auto columns + space-between push the right column toward the right
     edge so there's no dead strip on that side. */
  .foot-top{display:grid;grid-template-columns:auto auto;justify-content:space-between;gap:30px 24px;align-items:start;}
  .foot-cols{display:contents;}
  .foot-top > div:first-child{order:1;}
  .foot-col--explore{order:2;}
  .foot-col--contact{order:3;}
  .foot-col--start{order:4;}
  .foot-logo{height:58px;margin-bottom:0;}
  .foot .tag{font-size:.84rem;}
  .foot-social{margin-top:16px;gap:10px;}
  .foot-social a{width:36px;height:36px;}
  .foot-social svg{width:18px;height:18px;}
  .foot-col{min-width:0;}
  .foot-col h4{margin-bottom:.7rem;font-size:.72rem;letter-spacing:.14em;}
  .foot-col a{font-size:.88rem;margin-bottom:.55rem;line-height:1.3;}
  .foot-bottom{margin-top:20px;padding-top:14px;justify-content:center;text-align:center;font-size:.78rem;}
}

/* short phones — step the chat card down a notch so the headline keeps room */
@media(max-width:700px) and (max-height:740px){
  .chat-zone{transform:scale(.6);}
  .hero-inner{bottom:calc(8svh + 368px);}
}

/* very small phones — keep the headline bold but tame the line length */
@media(max-width:380px){
  .hero h1{font-size:14vw;}
  .hero-sub{font-size:1.16rem !important;}
  .chat-bubble{width:94vw;}
  .roll-card{width:80vw;}
}
