/* ============================================================
   Home page layer (Nov 2026) — loaded after brand.css.
   G lives in the hero as the live 3D model; the rest of the page
   leans on the game art and real Educational Day photos.
   Hero stage · cover ribbon · logos · stations · worlds · game cards ·
   form meter. Motion stops under reduced motion.
   ============================================================ */

@keyframes g-hop{ 0%{ transform:translateY(0) } 35%{ transform:translateY(-16px) rotate(-3deg) } 65%{ transform:translateY(0) } 80%{ transform:translateY(-5px) } 100%{ transform:translateY(0) } }
@keyframes float-a{ 50%{ transform:translateY(-10px) rotate(var(--rot)); } }
@keyframes ribbon{ from{ transform:translateX(0) } to{ transform:translateX(-50%) } }

/* ---------- HERO: G's stage ---------- */
.b-hero-visual{ flex-direction:column; gap:18px; min-height:0; }
.b-hero-visual::before{ display:none; }
.g-stage{ position:relative; width:min(460px, 100%); aspect-ratio:1; }
.g-portal{
  position:absolute; inset:4%; border-radius:50%;
  background:radial-gradient(circle at 50% 38%, #FFFFFF 0%, #E6E2FF 46%, #A79FE8 78%, #6A63B8 100%);
  box-shadow:0 0 0 10px rgba(255,201,60,.9), 0 0 0 22px rgba(255,255,255,.08), 0 40px 80px rgba(0,0,0,.35);
}
.g-poster, .g-canvas{
  position:absolute; inset:0; width:100%; height:100%;
  clip-path:circle(46% at 50% 50%);
  transition:opacity .45s ease;
}
.g-poster{ object-fit:contain; object-position:50% 8%; padding-top:6%; }
.g-canvas{ opacity:0; }
.g-stage[data-ready="true"] .g-canvas{ opacity:1; }
.g-stage[data-ready="true"] .g-poster{ opacity:0; }
.g-stage.is-boop .g-poster{ animation:g-hop .7s cubic-bezier(.3,1.5,.5,1) 1; }
.g-boop{ position:absolute; inset:12%; border-radius:50%; border:0; background:transparent; padding:0; z-index:2; }

/* Game covers floating around the portal */
.float-covers{ position:absolute; inset:0; pointer-events:none; }
.fc{
  position:absolute; width:36%; height:auto; aspect-ratio:16/10; object-fit:cover;
  border-radius:16px; border:4px solid #fff; box-shadow:0 18px 40px rgba(10,8,40,.45);
  transform:rotate(var(--rot)); animation:float-a 6s ease-in-out infinite;
}
.fc-1{ --rot:-9deg; top:-2%;  left:-16%; }
.fc-2{ --rot:7deg;  top:34%;  right:-20%; animation-delay:-2s; animation-duration:7s; }
.fc-3{ --rot:5deg;  bottom:-1%; left:-12%; animation-delay:-4s; }
.g-poster, .g-canvas{ z-index:1; }

.g-moves{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; position:relative; z-index:3; }
.g-move{
  display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:6px 16px 6px 8px;
  border-radius:999px; border:2px solid rgba(255,255,255,.22); background:rgba(255,255,255,.1); color:#fff;
  font-weight:700; font-size:.92rem; box-shadow:0 4px 0 rgba(0,0,0,.22);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.g-move img{ width:34px; height:34px; object-fit:contain; background:#fff; border-radius:50%; padding:4px; }
.g-move:hover{ background:rgba(255,255,255,.18); transform:translateY(-2px); }
.g-move:active{ transform:translateY(3px); box-shadow:0 1px 0 rgba(0,0,0,.22); }
.g-move[aria-pressed="true"]{ background:var(--sun); color:var(--indigo-deep); border-color:var(--sun); }
html[dir="rtl"] .g-move{ padding:6px 8px 6px 16px; }

/* Path cards: a real photo / the app icon, and a plain arrow */
.path-thumb{
  width:56px; height:56px; flex-shrink:0; border-radius:16px; overflow:hidden;
  box-shadow:0 0 0 3px rgba(255,255,255,.7);
}
.path-thumb img{ display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.path-card:hover .path-thumb img, .path-card:focus-visible .path-thumb img{ transform:scale(1.08); }
.path-arrow{
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.55); flex-shrink:0;
  transition:transform .2s ease;
}
.path-card:hover .path-arrow{ transform:translateX(4px); }
html[dir="rtl"] .path-card:hover .path-arrow{ transform:scaleX(-1) translateX(4px); }
.path-card:active{ transform:translateY(4px); box-shadow:0 3px 0 rgba(0,0,0,.18); }

/* ---------- Game art ribbon (top of the proof section) ---------- */
.cover-ribbon{
  position:relative; overflow:hidden; margin:-10px 0 54px; padding:22px 0;
  background:var(--indigo-deep); transform:rotate(-2deg) scale(1.04);
  box-shadow:0 18px 40px rgba(32,28,61,.18);
}
.cover-track{ display:flex; gap:14px; width:max-content; animation:ribbon 70s linear infinite; }
.cover-track img{
  width:228px; height:auto; aspect-ratio:16/10; object-fit:cover; border-radius:16px; flex-shrink:0;
  box-shadow:0 0 0 3px rgba(255,255,255,.12);
}
.cover-ribbon:hover .cover-track, .b-proof.is-paused .cover-track{ animation-play-state:paused; }
/* Laid out left-to-right in Arabic too (an RTL track would slide away from its edge); it just runs the other way. */
.cover-ribbon{ direction:ltr; }
html[dir="rtl"] .cover-track{ animation-direction:reverse; }
@media (max-width:600px){
  .cover-ribbon{ padding:14px 0; margin-bottom:36px; }
  .cover-track img{ width:150px; border-radius:12px; }
}

/* ---------- School & partner logos: no outlines, even spacing, even visual weight ----------
   Every logo file is trimmed to its content with the same 4% margin, and each <img> carries a
   width/height that gives wide wordmarks and round crests about the same area. */
.marquee{
  padding:10px 0 16px; /* room for the card shadows */
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee::before, .marquee::after{ display:none; }
.marquee + .marquee{ margin-top:4px !important; }
.marquee-track{ gap:18px; }
.logo-card, .partner-card{
  border:0; background:#fff; border-radius:18px;
  box-shadow:0 1px 2px rgba(32,28,61,.05), 0 8px 22px rgba(32,28,61,.06);
}
.logo-card{ width:164px; height:98px; padding:14px; }
/* width/height attributes set the size; the max-* keep it inside the card and object-fit keeps the shape */
.logo-card img, .partner-card img{ max-width:100%; max-height:100%; object-fit:contain; }
.logo-card:hover, .partner-card:hover{ box-shadow:0 2px 4px rgba(32,28,61,.06), 0 14px 30px rgba(32,28,61,.12); }
.partners-grid{ gap:18px; }
.partner-card, .b-partners .partner-card{ aspect-ratio:1.4/1; padding:12px; border-radius:18px; }
@media (max-width:600px){
  .logo-card{ width:128px; height:80px; padding:12px; }
  .logo-card img{ transform:scale(.8); }
  .partners-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
}

/* ---------- Section labels (the old "Stop N" chips are gone) ---------- */
.stop-marker{
  display:inline-flex; align-items:center; gap:10px; margin:0 0 16px; line-height:1.3;
  font-weight:700; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; color:var(--indigo);
}
.stop-marker::before{ content:''; width:26px; height:3px; border-radius:3px; background:var(--sun); }
.b-head.center .stop-marker{ justify-content:center; }
.b-parents .stop-marker{ color:var(--indigo-deep); }
.b-parents .stop-marker::before{ background:var(--indigo); }
.b-contact .stop-marker{ color:#fff; }
.eyebrow-plain{ margin:0 0 12px; font-weight:700; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); }
.b-testi .eyebrow-plain{ color:rgba(255,255,255,.75); }

/* ---------- Educational Day: stations with real photos ---------- */
.stations-wrap{ margin-bottom:80px; }
.stations-scene{ background:#fff; } /* pinned as one block on tall desktop screens: heading + stations */
@media (min-width:1024px) and (min-height:820px){ .stations-scene .b-head{ margin-bottom:28px; } .stations-scene .stations-wrap{ margin-bottom:0; } .stations-scene{ padding-bottom:56px; } }
.station-stage{ display:none; }
.stations{ margin-bottom:0; }
.station{ overflow:hidden; display:flex; flex-direction:column; padding-top:16px; }
.station-photo{
  width:calc(100% + 24px); margin:0 -12px 6px; aspect-ratio:16/10; height:auto; object-fit:cover;
  border-radius:20px; order:-1;
}
.station h3{ margin-top:6px; }

@media (max-width:1023px){
  .stations{
    display:grid; grid-auto-flow:column; grid-auto-columns:min(82%, 340px); grid-template-columns:none;
    overflow-x:auto; scroll-snap-type:x mandatory; gap:14px; padding-bottom:10px;
    margin-inline:-24px; padding-inline:24px; scrollbar-width:thin;
  }
  .station{ scroll-snap-align:start; }
}
@media (min-width:1024px){
  .stations-wrap{ display:grid; grid-template-columns:minmax(300px, .9fr) 1.1fr; gap:40px; align-items:center; }
  .station-stage{ display:flex; flex-direction:column; align-items:center; gap:16px; }
  .station-stage-g{
    position:relative; width:100%; height:420px; border-radius:28px; overflow:hidden;
    background:var(--indigo); box-shadow:0 24px 50px rgba(32,28,61,.22);
  }
  .station-stage-g img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    opacity:0; transform:scale(1.06); transition:opacity .45s ease, transform .9s ease;
  }
  .station-stage-g img.is-active{ opacity:1; transform:none; }
  .station-dots{ display:flex; gap:8px; }
  .station-dots span{ width:34px; height:8px; border-radius:8px; background:var(--line); transition:background .3s ease; }
  .station-dots span.is-active{ background:var(--sun); }
  .stations{ grid-template-columns:1fr; gap:14px; }
  .station .station-photo{ display:none; }
  .station{
    flex-direction:row; flex-wrap:wrap; align-items:baseline; gap:4px 14px; padding:22px 26px;
    transition:transform .3s ease, opacity .3s ease, box-shadow .3s ease; cursor:pointer;
  }
  .station h3{ margin:0; }
  .station p{ flex-basis:100%; }
  .stations-wrap.is-pinned .station:not(.is-active){ opacity:.72; transform:scale(.97); } /* dimmed, but still readable */
  .stations-wrap.is-pinned .station.is-active{ box-shadow:0 10px 0 rgba(32,28,61,.14); transform:translateX(8px); }
  html[dir="rtl"] .stations-wrap.is-pinned .station.is-active{ transform:translateX(-8px); }
}

/* "More ways": photo thumbnails, no dashed outlines */
.way{ border:0; background:#fff; align-items:center; box-shadow:0 1px 2px rgba(32,28,61,.05), 0 8px 22px rgba(32,28,61,.06); }
.way-photo{ width:68px; height:68px; flex-shrink:0; border-radius:18px; overflow:hidden; }
.way-photo img{ display:block; width:100%; height:100%; object-fit:cover; }

/* ---------- Parents ---------- */
.b-checks li::before{
  content:''; width:24px; height:24px; top:0; border-radius:50%;
  background:var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2660' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Worlds: level select ---------- */
.world-blocks{ perspective:900px; }
.world-block{
  transform:rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition:transform .25s ease, box-shadow .25s ease; transform-style:preserve-3d;
}
.world-block:hover{ transform:rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px); box-shadow:0 18px 36px rgba(32,28,61,.25); }
.world-block .sticker{ transform:none; }
.world-block:active{ transform:translateY(2px) scale(.99); }

/* ---------- Game library cards: white body, dark title, world name in its colour ---------- */
.game-tile{ display:flex; flex-direction:column; background:#fff; }
.game-body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:6px; flex:1; }
.game-tile h4, .game-tile[class*="gw-"] h4{ padding:0; border:0; font-size:.98rem; line-height:1.35; color:var(--ink); }
.game-world{
  display:flex; align-items:center; gap:7px; margin:auto 0 0; font-size:.78rem; font-weight:700; line-height:1.2;
  color:var(--gw, var(--indigo));
}
.game-world::before{ content:''; width:8px; height:8px; border-radius:50%; background:currentColor; }
.gw-plantopia{ --gw:#2E7D3A; } .gw-nature{ --gw:#A35610; } .gw-space{ --gw:var(--indigo); }
.gw-museum{ --gw:#8E4A16; } .gw-egypt{ --gw:#7A5A12; }
@media (max-width:600px){ .game-body{ padding:10px 12px 12px; } .game-tile h4{ font-size:.85rem; } }

/* ---------- Testimonials without avatars ---------- */
.testi-person{ border-inline-start:4px solid var(--sun); padding-inline-start:12px; }
.b-testi .testi-card:nth-child(2) .testi-person{ border-color:var(--teal); }
.b-testi .testi-card:nth-child(3) .testi-person{ border-color:var(--cta); }

/* ---------- FAQ: a plain plus that turns into a cross ---------- */
body.gm-brand .faq-list summary{ padding-inline-end:56px; }
body.gm-brand .faq-list summary::after{
  content:'+'; display:grid; place-items:center; width:34px; height:34px; border-radius:50%;
  background:var(--indigo-tint); color:var(--indigo); font-size:1.4rem; font-weight:700; line-height:1;
  right:0; transform:translateY(-50%); transition:transform .2s ease, background .2s ease;
}
body.gm-brand .faq-list details[open] summary::after{ transform:translateY(-50%) rotate(45deg); background:var(--sun); }
html[dir="rtl"] body.gm-brand .faq-list summary{ padding-inline-end:56px; padding-left:56px; padding-right:0; }

/* ---------- Contact ---------- */
.contact-item{ flex-direction:column; gap:2px; margin-bottom:18px; }
.contact-item h4{ font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--sun); margin:0; }
.contact-item a{ font-size:1.1rem; font-weight:700; color:#fff; }

/* ---------- Booking form: details meter ---------- */
.form-quest{ display:grid; gap:12px; margin:4px 0 18px; }
.form-meter{ display:flex; align-items:center; gap:12px; }
.form-meter-track{ flex:1; height:10px; border-radius:10px; background:var(--cream); overflow:hidden; box-shadow:inset 0 0 0 1px #EFE6D2; }
.form-meter-bar{
  display:block; height:100%; width:calc(var(--form-done, 0) * 100%); border-radius:10px;
  background:linear-gradient(90deg, var(--sun), #FFB000); transition:width .35s cubic-bezier(.3,1.3,.5,1);
}
.form-count{ font-size:.8rem; font-weight:700; color:var(--ink-soft); white-space:nowrap; }
.form-grid .lbl{ display:inline; }

/* ---------- Layout tweaks for the hero ---------- */
@media (max-width:900px){
  .g-stage{ width:min(340px, 78%); }
  .b-hero-visual{ order:-1; }
}
@media (max-width:600px){
  .b-hero{ padding-top:96px; }
  .b-hero-visual{ gap:12px; }
  .g-stage{ width:min(240px, 62vw); }
  .fc{ border-width:3px; border-radius:10px; }
  .g-moves{ flex-wrap:nowrap; gap:6px; }
  .g-move{ min-height:44px; padding:4px 10px 4px 4px; font-size:.78rem; gap:5px; }
  .g-move img{ width:30px; height:30px; }
  html[dir="rtl"] .g-move{ padding:4px 4px 4px 10px; }
}

/* ---------- G's story: one beat per phase of the page ----------
   Hero (live 3D) > Educational Day stations > the app at home > the worlds > questions > booking.
   Every figure is decorative (aria-hidden) and never takes clicks. */
.story-g{ pointer-events:none; }
.story-g img, img.story-g{ height:100%; width:auto; max-width:none; filter:drop-shadow(0 14px 18px rgba(32,28,61,.28)); }
/* Figures that swap pose share one box; only the active pose shows. */
.station-guide, .world-guide, .faq-guide, .contact-guide{ position:absolute; }
.station-guide img, .world-guide img, .faq-guide img, .contact-guide img{
  position:absolute; bottom:0; inset-inline-start:50%; translate:-50% 0; opacity:0; transform:translateY(16px) scale(.92);
  transform-origin:50% 100%; transition:opacity .3s ease, transform .45s cubic-bezier(.3,1.5,.5,1);
}
html[dir="rtl"] :is(.station-guide, .world-guide, .faq-guide, .contact-guide) img{ translate:50% 0; }
.story-g img.is-active{ opacity:1; transform:none; }

/* Phase 3, Educational Day: G tries each station */
.station{ position:relative; }
.station-g{ display:none; }
.station-guide{ display:none; }
@media (min-width:1024px){
  .station-stage{ position:relative; }
  .station-guide{ display:block; inset-inline-end:-34px; bottom:6px; width:170px; height:270px; z-index:3; }
}
@media (max-width:1023px){
  .station-g{
    display:block; position:absolute; z-index:2; inset-inline-end:6px; bottom:8px; height:118px; width:auto;
    filter:drop-shadow(0 8px 10px rgba(32,28,61,.3)); pointer-events:none;
  }
  .station p{ padding-inline-end:76px; min-height:66px; }
}

/* Phase 4, the app at home: G with her tablet beside the phone */
/* She stands beside the phone, overlapping only its outer edge, so the screenshot stays readable. */
img.app-guide{ position:absolute; z-index:3; height:74%; bottom:2%; inset-inline-start:calc(50% - 150px - 118px); }
@media (max-width:900px){ img.app-guide{ height:62%; } }
@media (max-width:600px){ img.app-guide{ height:44%; inset-inline-start:-6px; } }

/* Phase 5, the worlds: G dresses for the world you point at */
.b-worlds .b-head{ position:relative; }
.b-worlds .b-head.center{ overflow:visible; }
.world-guide{ inset-inline-start:100%; margin-inline-start:18px; bottom:-30px; width:210px; height:220px; }
@media (max-width:1240px){ .world-guide{ position:relative; inset:auto; margin:18px auto -6px; width:200px; height:150px; } }

/* Phase 8, questions: G thinks, then has the answer when a question opens */
.faq-section .container{ position:relative; }
.faq-guide{ inset-inline-end:3%; bottom:0; width:150px; height:270px; }
@media (max-width:1100px){ .faq-guide{ display:none; } }

/* Phase 9, booking: G shows the way to the form, and celebrates when it is sent */
.contact-grid > div:first-child{ position:relative; }
.contact-guide{ inset-inline-end:0; top:206px; width:140px; height:215px; }
html[dir="rtl"] .contact-guide img:first-child{ scale:-1 1; } /* her presenting hand must point at the form */
@media (max-width:1000px){ .contact-guide{ top:auto; bottom:calc(100% - 420px); width:110px; height:180px; } }
@media (max-width:600px){ .contact-guide{ position:relative; inset:auto; bottom:auto; margin:6px 0 -8px auto; width:110px; height:150px; float:inline-end; } }

/* ---------- Phone layout tightening ---------- */
@media (max-width:600px){
  .b-proof{ padding-bottom:44px; }
  .b-schools, .b-parents{ padding:72px 0; }
  .stations-wrap{ margin-bottom:56px; }
  .partners-grid{ grid-template-columns:repeat(3,1fr); gap:10px; }
  .partner-card, .b-partners .partner-card{ padding:8px; border-radius:14px; }
  body.gm-brand .wa-float{ width:48px; height:48px; }
  body.gm-brand .wa-float svg{ width:26px; height:26px; }
}

/* ---------- Reduced motion: everything holds still ---------- */
@media (prefers-reduced-motion: reduce){
  .fc, .cover-track, .g-poster{ animation:none !important; }
  .world-block, .world-block:hover{ transform:none; }
}
html.motion-reduce *{ animation:none !important; transition:none !important; }
html.motion-reduce .world-block, html.motion-reduce .world-block:hover{ transform:none; }

/* ---------- Print ---------- */
@media print{ .g-moves, .g-canvas, .float-covers, .cover-ribbon{ display:none !important; } }
