/* ==========================================================================
   Gridovators site styles
   Palette: grid indigo + energy amber + clean-energy teal, on warm paper.
   Written with CSS logical properties throughout so the Arabic locale
   mirrors without a second stylesheet.
   ========================================================================== */

:root {
  /* --- grid & energy palette --- */
  --indigo-900: #221E52;   /* deep grid night */
  --indigo-700: #2E2A63;   /* primary ink */
  --indigo-500: #4B45A8;   /* live wire */
  --indigo-100: #EDEBFB;   /* soft panel */

  --amber-500: #F7A81B;    /* energy */
  --amber-400: #FFC53D;
  --amber-100: #FFF1D2;

  --teal-500: #17A78F;     /* clean energy */
  --teal-400: #3ED0B4;
  --teal-100: #DDF7F0;

  --sky-400: #6FB6EA;      /* transmission */
  --sky-100: #E3F1FD;

  --coral-500: #F0654F;    /* demand / heat */
  --coral-400: #FF7C66;
  --coral-100: #FFE7E2;

  --paper: #FFF9F0;        /* warm paper */
  --paper-2: #FFF3E2;
  --white: #FFFFFF;

  --text: #2E2A63;
  --text-soft: #565189;
  --line: rgba(46, 42, 99, 0.14);

  /* --- shape --- */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --pill: 999px;

  --shadow-card: 0 6px 0 rgba(46, 42, 99, 0.07), 0 14px 30px rgba(46, 42, 99, 0.07);
  --shadow-pop: 0 8px 0 rgba(46, 42, 99, 0.10), 0 20px 40px rgba(46, 42, 99, 0.10);

  --wrap: 1120px;
  --wrap-narrow: 760px;

  /* --- script fallbacks ---
     Malayalam, Odia, Devanagari and Arabic are not reliably covered by the
     Latin stack, so each script names its own fallbacks explicitly. */
  --font-body: "Nunito", "Noto Sans Devanagari", "Noto Sans Malayalam",
               "Noto Sans Oriya", "Noto Sans Arabic", ui-rounded, "Segoe UI",
               system-ui, sans-serif;
  --font-display: "Baloo 2", "Baloo Chettan 2", "Baloo Bhaina 2",
                  "Baloo Bhaijaan 2", "Noto Sans Devanagari",
                  "Noto Sans Malayalam", "Noto Sans Oriya", "Noto Sans Arabic",
                  "Nunito", ui-rounded, system-ui, sans-serif;
  --lh-body: 1.65;
}

/* Taller ascenders and descenders in these scripts clip in tight containers,
   so the whole document breathes a little more when they are active. */
html[lang="ml"], html[lang="or"], html[lang="hi"] { --lh-body: 1.85; }
html[lang="ar"] { --lh-body: 1.9; }

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: var(--lh-body);
  color: var(--text);
  background-color: var(--paper);
  /* faint grid-of-nodes paper texture */
  background-image: radial-gradient(rgba(46, 42, 99, 0.07) 1.6px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

/* ---------------------------------------------------------- typography -- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--indigo-700);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 600;
}

a { color: var(--indigo-500); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral-500); }

strong, b { font-weight: 800; }

ul, ol { padding-inline-start: 1.35em; margin: 0 0 1.1em; }
li { margin-bottom: 0.5em; }

/* hand-drawn underline on key phrases */
.hl {
  background-image: linear-gradient(transparent 58%, var(--amber-400) 58%, var(--amber-400) 92%, transparent 92%);
  padding: 0 0.1em;
}
.hl-teal { background-image: linear-gradient(transparent 58%, var(--teal-400) 58%, var(--teal-400) 92%, transparent 92%); }
.hl-sky  { background-image: linear-gradient(transparent 58%, var(--sky-400) 58%, var(--sky-400) 92%, transparent 92%); }

:focus-visible {
  outline: 4px solid var(--amber-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; inset-block-start: 0;
  background: var(--indigo-700); color: var(--white);
  padding: 12px 20px; border-end-end-radius: var(--r-md); z-index: 200; font-weight: 800;
}
.skip-link:focus { inset-inline-start: 0; }

/* ------------------------------------------------------------- layout -- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

section { padding-block: clamp(3rem, 6vw, 5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }

.stack > * + * { margin-block-start: 1.1rem; }
.center { text-align: center; }
.center-x { margin-inline: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ------------------------------------------------------------ banners -- */
.banner-tag {
  display: inline-block;
  transform: rotate(-1.6deg);
  background: var(--teal-400);
  color: var(--indigo-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: 0.01em;
  padding: 0.25em 0.8em 0.32em;
  border-radius: 10px;
  margin-block-end: 1.2rem;
  box-shadow: 0 4px 0 rgba(46, 42, 99, 0.14);
}
[dir="rtl"] .banner-tag { transform: rotate(1.6deg); }
.banner-tag.amber { background: var(--amber-400); }
.banner-tag.coral { background: var(--coral-400); color: #fff; }
.banner-tag.sky   { background: var(--sky-400); }

.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  background: var(--indigo-100);
  color: var(--indigo-500);
  border-radius: var(--pill);
  padding: 0.35em 0.95em;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.chip.amber { background: var(--amber-100); color: #A96C00; }
.chip.teal  { background: var(--teal-100);  color: #0C7A67; }
.chip.coral { background: var(--coral-100); color: #C43F29; }
.chip.sky   { background: var(--sky-100);   color: #1E6FA8; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  padding: 0.8em 1.6em;
  border-radius: var(--pill);
  border: 3px solid var(--indigo-700);
  background: var(--amber-400);
  color: var(--indigo-900);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--indigo-700);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--indigo-700); color: var(--indigo-900); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--indigo-700); }
.btn[aria-disabled="true"], .btn:disabled {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: 0 5px 0 var(--indigo-700);
}

.btn-teal  { background: var(--teal-400); }
.btn-coral { background: var(--coral-400); color: #fff; }
.btn-sky   { background: var(--sky-400); }
.btn-white { background: var(--white); }
.btn-ghost {
  background: transparent; color: var(--indigo-700);
  border-color: var(--indigo-700); box-shadow: 0 5px 0 rgba(46, 42, 99, 0.25);
}
.btn-ghost:hover { background: var(--white); box-shadow: 0 7px 0 rgba(46, 42, 99, 0.25); }
.btn-sm { font-size: 0.95rem; padding: 0.6em 1.15em; border-width: 2.5px; box-shadow: 0 4px 0 var(--indigo-700); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Directional glyphs inside links flip with the writing direction. */
.dir-arrow { display: inline-block; }
[dir="rtl"] .dir-arrow { transform: scaleX(-1); }

/* -------------------------------------------------------------- icons -- */
/* Tabler outline icons, inlined as SVG. */
.ti {
  width: 1.5em; height: 1.5em; flex: none;
  stroke: currentColor; stroke-width: 1.75; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.ti-lg { width: 2.1em; height: 2.1em; }

/* -------------------------------------------------------------- cards -- */
.card {
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-block-end: 0.4em; }
.card p:last-child { margin-block-end: 0; }

.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); color: inherit; }

.card-tint-amber { background: var(--amber-100); border-color: rgba(247, 168, 27, 0.35); }
.card-tint-teal  { background: var(--teal-100);  border-color: rgba(23, 167, 143, 0.3); }
.card-tint-sky   { background: var(--sky-100);   border-color: rgba(111, 182, 234, 0.4); }
.card-tint-coral { background: var(--coral-100); border-color: rgba(240, 101, 79, 0.3); }
.card-tint-indigo{ background: var(--indigo-100); border-color: rgba(75, 69, 168, 0.25); }

.icon-badge {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--amber-100);
  color: #A96C00;
  margin-block-end: 1rem;
  border: 3px solid rgba(46, 42, 99, 0.1);
}
.icon-badge.teal  { background: var(--teal-100); color: #0C7A67; }
.icon-badge.sky   { background: var(--sky-100); color: #1E6FA8; }
.icon-badge.coral { background: var(--coral-100); color: #C43F29; }
.icon-badge.indigo{ background: var(--indigo-100); color: var(--indigo-500); }

/* numbered step bubbles */
.step-num {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--indigo-700); color: var(--amber-400);
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}

/* ------------------------------------------------------------- header -- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: rgba(255, 249, 240, 0.92);
  backdrop-filter: blur(10px);
  border-block-end: 3px solid var(--line);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.7rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-img { height: 50px; width: auto; flex: none; }
@media (max-width: 480px) { .logo-img { height: 42px; } }
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--indigo-700);
  white-space: nowrap;
}
.logo-text .b { color: var(--teal-500); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--indigo-700);
  text-decoration: none;
  padding: 0.5em 0.8em;
  border-radius: var(--pill);
}
.nav a:hover { background: var(--indigo-100); color: var(--indigo-500); }
.nav a[aria-current="page"] { background: var(--amber-100); color: #9A6100; }
.nav .btn { margin-inline-start: 0.4rem; }

.nav-toggle {
  display: none;
  background: var(--white);
  border: 3px solid var(--indigo-700);
  border-radius: var(--r-sm);
  padding: 0.45em 0.7em;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  color: var(--indigo-700); cursor: pointer;
  align-items: center; gap: 0.5em;
  box-shadow: 0 4px 0 var(--indigo-700);
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; inset-inline: 0; inset-block-start: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--paper);
    border-block-end: 3px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.2rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7em 0.9em; font-size: 1.1rem; }
  .nav .btn { margin: 0.6rem 0 0; }
}

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero h1 { margin-block-end: 0.35em; max-width: 20ch; }
.hero .lede { max-width: 48ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 800; color: var(--teal-500);
  letter-spacing: 0.04em; font-size: 0.9rem;
  margin-block-end: 0.9rem;
}

/* --------------------------------------------------- coloured panels -- */
.panel {
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
  border: 3px solid var(--line);
}
.panel-indigo {
  background: var(--indigo-700);
  border-color: var(--indigo-900);
  color: #EDEBFB;
}
.panel-indigo h2, .panel-indigo h3 { color: var(--white); }
.panel-indigo .lede { color: #C9C4F0; }
.panel-indigo a { color: var(--amber-400); }
.panel-indigo .btn { color: var(--indigo-900); }
.panel-indigo .btn-ghost { color: var(--white); }
.panel-amber { background: var(--amber-100); border-color: rgba(247,168,27,.3); }
.panel-teal  { background: var(--teal-100);  border-color: rgba(23,167,143,.25); }
.panel-paper { background: var(--white); box-shadow: var(--shadow-card); }

.band-indigo {
  background: var(--indigo-700);
  color: #E7E4FA;
  border-block: 4px solid var(--indigo-900);
}
.band-indigo h2, .band-indigo h3 { color: var(--white); }
.band-teal { background: var(--teal-100); }
.band-amber { background: var(--amber-100); }

/* ------------------------------------------------- why this matters -- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ impact strip -- */
.impact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.impact-figure .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 1.05;
  color: var(--teal-500);
  letter-spacing: -0.02em;
}
.impact-figure .label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--indigo-700);
  margin-block-start: 0.35rem;
}

/* -------------------------------------------------- curriculum spine -- */
.spine {
  display: flex; align-items: stretch; gap: 0.5rem;
  overflow-x: auto; padding-block-end: 0.75rem;
}
.spine-node {
  flex: 1 1 0; min-width: 104px;
  border: 3px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  padding: 0.9rem 0.8rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.spine-node .n {
  font-family: var(--font-display); font-weight: 800;
  color: var(--teal-500); font-size: 1.4rem; line-height: 1.1; display: block;
}
.spine-node .t { font-size: 0.85rem; font-weight: 700; color: var(--text-soft); }
.spine-node.lit { background: var(--amber-100); border-color: rgba(247,168,27,.45); }
.spine-node.lit .t { color: #8A5A00; }

/* -------------------------------------------------------- testimonials -- */
.testimonial {
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial blockquote { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--indigo-700); }
.testimonial .t-translation { color: var(--text-soft); font-weight: 600; font-size: 1rem; margin: 0; }
.testimonial .t-lang {
  align-self: flex-start;
  background: var(--indigo-100); color: var(--indigo-500);
  border-radius: var(--pill); padding: 0.25em 0.8em;
  font-size: 0.8rem; font-weight: 800;
}
.testimonial figcaption { font-size: 0.95rem; font-weight: 700; color: var(--text-soft); }
.testimonial .t-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.t-toggle {
  display: none;
  align-self: flex-start;
  background: none; border: 0; padding: 0;
  font: inherit; font-weight: 800; font-size: 0.92rem;
  color: var(--indigo-500); cursor: pointer; text-decoration: underline;
}
@media (max-width: 720px) {
  .t-toggle { display: inline; }
}

/* -------------------------------------------------------------- forms -- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 800; font-size: 0.98rem; color: var(--indigo-700); }
.field .hint { font-size: 0.88rem; color: var(--text-soft); font-weight: 600; }

input[type="text"], input[type="email"], select, textarea {
  font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 3px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75em 0.9em;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal-400); }
textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 0.9rem; color: var(--text-soft); font-weight: 600; }

.email-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  word-break: break-word;
}

/* ------------------------------------------------------- misc blocks -- */
.placeholder-slot {
  border: 3px dashed rgba(46, 42, 99, 0.28);
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.6), rgba(255,255,255,.6) 14px, rgba(237,235,251,.7) 14px, rgba(237,235,251,.7) 28px);
  padding: 2rem 1.6rem;
  text-align: center;
  color: var(--text-soft);
  font-weight: 700;
}

.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-inline-start: 2rem; margin-block-end: 0.75em; }
.tick-list li::before {
  content: "";
  position: absolute; inset-inline-start: 0; inset-block-start: 0.5em;
  width: 0.8rem; height: 0.8rem;
  background: var(--teal-400);
  border-radius: 50%;
}

/* team grid */
.team-card { text-align: center; }
.team-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-lg);
  object-fit: cover; object-position: 50% 22%;
  margin-block-end: 0.9rem;
  border: 3px solid var(--line);
}
.team-photo-placeholder {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-lg);
  border: 3px dashed rgba(46, 42, 99, 0.28);
  background: var(--indigo-100);
  display: grid; place-items: center; text-align: center;
  color: var(--text-soft); font-weight: 800; font-size: 0.9rem;
  margin-block-end: 0.9rem; padding: 1rem;
}
.team-card h3 { margin-block-end: 0.1em; }
.team-card .role { font-weight: 800; color: var(--teal-500); font-size: 0.95rem; margin-block-end: 0.5em; }

/* game cards */
.game-card { display: flex; flex-direction: column; gap: 0.8rem; height: 100%; }
.game-card .game-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.game-card .credit { font-size: 0.92rem; color: var(--text-soft); font-weight: 700; margin: 0; }
.game-card .btn { align-self: flex-start; margin-block-start: auto; }

/* ------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--indigo-700);
  color: #C9C4F0;
  border-block-start: 5px solid var(--indigo-900);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  margin-block-start: clamp(2rem, 5vw, 4rem);
}
.site-footer a { color: #E7E4FA; text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--amber-400); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-block-end: 0.7em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-block-end: 0.5em; }
.footer-logo .logo-text { color: var(--white); }
.footer-logo .logo-text .b { color: var(--teal-400); }
.footer-bottom {
  margin-block-start: 2.2rem; padding-block-start: 1.4rem;
  border-block-start: 2px solid rgba(255,255,255,.15);
  font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between;
}

/* ---------------------------------------------------- language picker -- */
.lang-select { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.lang-select select {
  width: auto; min-width: 11rem;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
  color: var(--white);
  font-weight: 800;
  padding: 0.5em 0.8em;
}
.lang-select select option { color: var(--text); background: var(--white); }
.lang-select label { font-weight: 800; color: var(--white); font-size: 0.95rem; }

/* ------------------------------------------------------------- utils -- */
.mt-0 { margin-block-start: 0; } .mt-1 { margin-block-start: 0.6rem; } .mt-2 { margin-block-start: 1.2rem; }
.mt-3 { margin-block-start: 2rem; } .mt-4 { margin-block-start: 3rem; }
.mb-0 { margin-block-end: 0; } .mb-2 { margin-block-end: 1.2rem; } .mb-3 { margin-block-end: 2rem; }
.small { font-size: 0.92rem; }
.muted { color: var(--text-soft); }
.measure { max-width: 68ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------- animated art -- */
@keyframes gv-spin { to { transform: rotate(360deg); } }
@keyframes gv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.gv-float { animation: gv-float 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------- classroom proof + logos -- */
.band-sun { background: linear-gradient(180deg, var(--amber-100) 0%, #FFF6DF 100%); }
.proof-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.proof-photo { margin: 0; position: relative; }
.proof-photo img {
  display: block; width: 100%; height: auto;
  border: 4px solid var(--indigo-900); border-radius: var(--r-xl);
  box-shadow: 10px 10px 0 var(--teal-400);
}
.proof-photo figcaption, .slide-card figcaption {
  margin-block-start: 0.9rem; font-weight: 700; font-size: 0.95rem; color: var(--indigo-700);
}
.proof-copy h2 { margin-block-end: 0.8rem; }
.slide-card { margin: 0; }
.slide-card img {
  display: block; width: 100%; height: auto;
  border: 3px solid var(--indigo-900); border-radius: var(--r-lg, 22px);
  box-shadow: 0 6px 0 var(--indigo-700);
  transition: transform 0.15s ease;
}
.slide-card:hover img { transform: translateY(-3px); }
.logo-wall {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
}
.logo-wall li {
  background: var(--white); border: 3px solid #E6E3F3; border-radius: var(--r-lg, 22px);
  padding: 1rem 1.6rem; display: flex; align-items: center; justify-content: center;
  min-height: 108px;
}
.logo-wall img { display: block; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 860px) { .proof-hero { grid-template-columns: 1fr; } .proof-photo img { box-shadow: 6px 6px 0 var(--teal-400); } }

.barry { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; }
.barry-img { width: 100%; height: auto; filter: drop-shadow(0 8px 0 rgba(46,42,99,0.12)); }
.barry-bubble {
  position: relative; background: var(--teal-100, #DDF5EE); border: 4px solid var(--indigo-900);
  border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: 8px 8px 0 var(--amber-400);
}
.barry-bubble::before {
  content: ""; position: absolute; inset-inline-start: -22px; top: 44px; width: 36px; height: 36px;
  background: var(--teal-100, #DDF5EE); border-inline-start: 4px solid var(--indigo-900); border-block-end: 4px solid var(--indigo-900);
  transform: rotate(45deg);
}
[dir="rtl"] .barry-bubble::before { transform: rotate(-45deg); }
.barry-bubble h2 { margin-block-end: 0.6rem; }
@media (max-width: 700px) { .barry { grid-template-columns: 1fr; } .barry-img { max-width: 180px; margin-inline: auto; } .barry-bubble::before { display: none; } }

/* ------------------------------------------------------------ workbook -- */
.band-workbook { background: linear-gradient(135deg, var(--sky-100, #E4F2FC) 0%, #F3EEFF 100%); overflow: hidden; }
.workbook-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.workbook-copy h2 { margin-block: 0.8rem; }
.workbook-fan { position: relative; height: clamp(360px, 46vw, 560px); }
.workbook-fan .wf {
  position: absolute; height: 88%; width: auto; top: 6%;
  border: 3px solid var(--indigo-900); border-radius: 12px; background: #fff;
  box-shadow: 0 10px 0 rgba(46,42,99,0.18);
  transition: transform 0.2s ease;
}
.wf-1 { inset-inline-start: 2%;  transform: rotate(-9deg); z-index: 1; }
.wf-2 { inset-inline-start: 30%; transform: rotate(-1deg) translateY(-2%); z-index: 2; }
.wf-3 { inset-inline-start: 58%; transform: rotate(8deg); z-index: 3; }
.workbook-fan:hover .wf-1 { transform: rotate(-12deg) translateX(-2%); }
.workbook-fan:hover .wf-3 { transform: rotate(11deg) translateX(2%); }
@media (max-width: 860px) { .workbook-grid { grid-template-columns: 1fr; } .workbook-fan { height: 400px; } }
@media (prefers-reduced-motion: reduce) { .workbook-fan .wf { transition: none; } }
