/* Anubhuti Prashala — shared stylesheet.
   Extracted from index.html so every page inherits the same palette, gutters, header and
   footer. Link it from every page with:
       <link rel="stylesheet" href="assets/anubhuti.css">
   Edit colours once in :root below and the whole site follows. */

  :root{
    --blue:#2D3494;
    --blue-dark:#1B1F5E;
    --blue-soft:#E7E8F5;
    --orange:#F37043;
    --orange-dark:#D9552A;
    --orange-soft:#FDEBE2;
    --cream:#FBF7F0;
    --paper:#FFFDF9;
    --ink:#211D1A;
    --ink-soft:#5A554E;
    --white:#FFFFFF;
    --line:#E7E0D3;
    --radius:18px;
    --max:1200px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}

  /* ACCESSIBILITY: a visible focus ring on every interactive element.
     Previously only gallery/lightbox/FAQ controls had one — keyboard users could not
     see where they were in the header nav, buttons or footer links. */
  a:focus-visible,
  button:focus-visible,
  summary:focus-visible,
  [tabindex]:focus-visible{
    outline:3px solid var(--orange);
    outline-offset:3px;
    border-radius:4px;
  }

  /* ACCESSIBILITY: skip link — lets keyboard and screen-reader users jump past the
     sticky header straight into the page content. */
  .skip-link{
    position:absolute;left:-9999px;top:0;z-index:200;
    background:var(--blue-dark);color:var(--white);
    padding:12px 20px;border-radius:0 0 10px 0;
    font-weight:600;font-size:.9rem;
  }
  .skip-link:focus{left:0;}

  /* ACCESSIBILITY: honour the OS "reduce motion" setting site-wide. */
  @media(prefers-reduced-motion:reduce){
    html{scroll-behavior:auto;}
    *,*::before,*::after{
      animation-duration:.01ms !important;
      animation-iteration-count:1 !important;
      transition-duration:.01ms !important;
    }
  }
  body{
    margin:0;
    background:var(--cream);
    color:var(--ink);
    font-family:'Work Sans', sans-serif;
    font-size:16px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{
    font-family:'Fraunces', serif;
    font-weight:700;
    margin:0 0 .5em;
    line-height:1.15;
    color:var(--blue-dark);
  }
  p{margin:0 0 1em;}
  a{color:inherit;text-decoration:none;}
  img{max-width:100%;display:block;}
  ul{margin:0;padding:0;list-style:none;}
  .wrap{max-width:var(--max);margin:0 auto;padding:0 28px;}
  .eyebrow{
    font-family:'JetBrains Mono', monospace;
    text-transform:uppercase;
    letter-spacing:.14em;
    font-size:.72rem;
    color:var(--orange-dark);
    font-weight:500;
    display:inline-block;
    margin-bottom:14px;
  }
  .eyebrow::before{content:"◆ ";}
  section{padding:96px 0;position:relative;}
  .section-head{max-width:680px;margin-bottom:56px;}
  .section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
  .section-head h2{font-size:clamp(2.3rem,4.4vw,3.4rem);font-weight:800;}
  .btn{
    display:inline-flex;align-items:center;gap:8px;
    padding:14px 26px;border-radius:100px;
    font-family:'Work Sans',sans-serif;font-weight:600;font-size:.95rem;
    border:2px solid transparent;cursor:pointer;transition:transform .18s ease, box-shadow .18s ease;
  }
  .btn:hover{transform:translateY(-2px);}
  .btn-primary{background:var(--orange);color:var(--white);box-shadow:0 8px 20px rgba(243,112,67,.35);}
  .btn-primary:hover{box-shadow:0 12px 26px rgba(243,112,67,.45);}
  .btn-outline{background:transparent;color:var(--white);border-color:rgba(255,255,255,.55);}
  .btn-outline:hover{background:rgba(255,255,255,.12);}
  .btn-dark{background:var(--blue-dark);color:var(--white);}
  .btn-ghost{background:var(--blue-soft);color:var(--blue-dark);}

  /* ===== HEADER ===== */
  header{
    position:sticky;top:0;z-index:100;
    background:rgba(251,247,240,.92);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--line);
  }
  /* gap added: with only justify-content:space-between the links group ended exactly where the
     CTA began, giving "Contact" 0px of breathing room against the button at every desktop width. */
  .nav{display:flex;align-items:center;justify-content:space-between;gap:clamp(10px,1.4vw,22px);padding:14px 28px;max-width:var(--max);margin:0 auto;}
  .brand{display:flex;align-items:center;gap:12px;}
  .brand img{height:42px;width:auto;border-radius:8px;}
  .brand-text{font-family:'Fraunces',serif;font-weight:700;font-size:1.05rem;color:var(--blue-dark);line-height:1.1;}
  .brand-text span{display:block;font-family:'JetBrains Mono',monospace;font-weight:400;font-size:.62rem;letter-spacing:.12em;color:var(--orange-dark);text-transform:uppercase;margin-top:2px;}
  nav.links{display:flex;gap:clamp(10px,1.1vw,17px);align-items:center;}
  /* white-space:nowrap: without it "How We Teach" broke across three lines and "Our Mission"
     across two, which is what was making the header 100px tall on desktop. */
  nav.links a{font-size:.88rem;font-weight:500;color:var(--ink-soft);position:relative;white-space:nowrap;}
  nav.links a:hover{color:var(--blue-dark);}
  .nav-cta{display:flex;gap:10px;align-items:center;flex-shrink:0;}
  /* The brand may shrink on phones — pinning it at flex-shrink:0 at every width pushed the
     burger off-screen at 360px and narrower. It is pinned only where the desktop nav shows. */
  @media(min-width:1161px){ .brand{flex-shrink:0;} }
  /* white-space:nowrap stops "Book A School Visit" breaking onto two lines and forcing the
     header taller; flex-shrink:0 on brand and CTA makes the nav links absorb the squeeze
     instead of the button. */
  .nav-cta .btn{padding:11px 20px;font-size:.85rem;white-space:nowrap;}
  .brand{min-width:0;}
  .brand-text{min-width:0;}
  nav.links{min-width:0;}
  .nav-mobile-cta{display:none;}
  .burger{display:none;background:none;border:none;cursor:pointer;padding:6px;}
  .burger span{display:block;width:24px;height:2px;background:var(--blue-dark);margin:5px 0;}

  /* ===== HERO ===== */
  .hero{
    position:relative;overflow:hidden;
    background:linear-gradient(160deg,var(--blue) 0%,var(--blue-dark) 65%);
    color:var(--white);
    padding:110px 0 90px;
  }
  .hero::before{
    content:"";position:absolute;inset:0;
    background-image:radial-gradient(circle,rgba(255,255,255,.10) 1.4px, transparent 1.4px);
    background-size:26px 26px;
    opacity:.5;
  }
  .hero::after{
    content:"";position:absolute;right:-120px;top:-120px;width:460px;height:460px;border-radius:50%;
    background:radial-gradient(circle,rgba(243,112,67,.35),transparent 70%);
  }
  .hero-inner{position:relative;z-index:2;max-width:800px;}
  .badge{
    display:inline-flex;align-items:center;gap:8px;
    background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);
    padding:8px 16px;border-radius:100px;font-size:.82rem;font-weight:500;margin-bottom:26px;
  }
  .badge::before{content:"●";color:var(--orange);}
  .hero-eyebrow{font-family:'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.16em;font-size:.78rem;color:rgba(255,255,255,.65);margin-bottom:18px;}
  .hero h1{color:var(--white);font-size:clamp(2.3rem,5.4vw,4rem);font-weight:600;letter-spacing:-.01em;}
  .hero h1 em{font-style:normal;color:var(--orange);}
  .hero-sub{font-size:clamp(1rem,1.6vw,1.25rem);color:rgba(255,255,255,.82);max-width:620px;margin:22px 0 10px;}
  .hero-lines{margin:26px 0 36px;display:flex;flex-direction:column;gap:6px;}
  .hero-lines div{font-family:'Fraunces',serif;font-size:clamp(1.1rem,2vw,1.5rem);font-weight:500;color:var(--white);}
  .hero-lines div b{color:var(--orange);font-weight:600;}
  .hero-actions{display:flex;flex-wrap:wrap;gap:14px;}
  .hero-statement{margin-top:48px;padding-top:34px;border-top:1px solid rgba(255,255,255,.22);}
  .hero-claim{
    font-family:'Fraunces',serif;font-weight:500;
    font-size:clamp(1.25rem,2.4vw,1.75rem);line-height:1.35;
    color:rgba(255,255,255,.78);margin:0;
  }
  .hero-claim b{display:block;color:var(--white);font-weight:600;}
  .hero-statement .hero-lines{margin:20px 0 0;}

  /* ===== THE LEARNING CRISIS (donor problem statement) ===== */
  .reality{background:var(--blue-soft);}
  .reality .section-head p{max-width:720px;}
  .reality-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:32px;max-width:780px;margin-left:auto;margin-right:auto;}
  .reality-card{
    background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
    padding:30px 20px;text-align:center;transition:transform .2s ease, box-shadow .2s ease;
  }
  .reality-card:hover{transform:translateY(-6px);box-shadow:0 16px 30px rgba(33,29,26,.08);}
  .reality-icon{font-size:2.1rem;margin-bottom:12px;}
  .reality-num{font-family:'Fraunces',serif;font-size:2.3rem;font-weight:900;color:var(--orange-dark);display:block;}
  .reality-label{font-size:.85rem;color:var(--ink-soft);margin-top:10px;font-weight:700;line-height:1.4;}
  .reality-source{font-size:.76rem;color:var(--ink-soft);text-align:center;font-style:italic;font-weight:700;margin-bottom:0;}
  .reality-quote{
    background:var(--blue-dark);color:var(--white);border-radius:var(--radius);
    padding:36px;margin-top:32px;text-align:center;
  }
  .reality-quote p{font-family:'Fraunces',serif;font-size:1.2rem;font-weight:700;margin:0;}
  .reality-quote p b{color:var(--orange);}
  @media(max-width:560px){.reality-grid{grid-template-columns:1fr;}}

  /* ===== VISION & MISSION ===== */
  .vision{background:var(--paper);}
  .vm-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch;}
  .vm-card{
    background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
    padding:40px 36px;position:relative;overflow:hidden;
    display:flex;flex-direction:column;
  }
  .vm-card.dark{background:var(--blue-dark);border-color:var(--blue-dark);color:var(--white);}
  .vm-card.dark::before{
    content:"";position:absolute;right:-40px;top:-40px;width:160px;height:160px;
    border-radius:50%;background:rgba(255,255,255,.05);
  }
  .vm-label{
    font-family:'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.14em;
    font-size:.72rem;color:var(--orange);margin-bottom:14px;position:relative;z-index:1;
  }
  .vm-card p{
    font-family:'Fraunces',serif;font-size:1.18rem;line-height:1.6;margin:0;
    color:var(--ink);position:relative;z-index:1;
  }
  .vm-card.dark p{color:var(--white);}
  .vm-card p b{color:var(--orange-dark);font-weight:600;}
  .vm-values{grid-column:1 / -1;padding:32px 36px;}
  .value-chips{display:flex;flex-wrap:wrap;gap:10px;}
  .value-chips span{
    border:1px solid var(--line);background:var(--cream);color:var(--blue-dark);
    padding:9px 18px;border-radius:100px;font-size:.88rem;font-weight:600;
  }
  .vm-card.dark p b{color:var(--orange);}

  /* ===== IMPACT NUMBERS ===== */
  .impact{background:var(--orange);color:var(--white);}
  .impact .section-head h2{color:var(--white);}
  .impact .eyebrow{color:var(--blue-dark);}
  .stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:rgba(255,255,255,.25);border-radius:var(--radius);overflow:hidden;}
  .stat{background:var(--orange-dark);padding:34px 22px;text-align:center;}
  .stat .num{font-family:'Fraunces',serif;font-size:clamp(1.8rem,3.4vw,2.6rem);font-weight:700;display:block;}
  .stat .label{font-size:.85rem;color:rgba(255,255,255,.85);margin-top:6px;line-height:1.4;}
  .stat-sub{
    font-family:'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.12em;
    font-size:.72rem;color:var(--blue-dark);margin-bottom:16px;
    display:flex;align-items:center;gap:12px;
  }
  .stat-sub::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.35);}
  .qual-block{margin-top:44px;}
  .qual-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
  .qual-card{
    background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);
    border-radius:14px;padding:24px 18px;text-align:center;
    font-weight:600;font-size:.95rem;line-height:1.45;color:var(--white);
  }
  .qual-card .arrow{display:block;font-size:1.4rem;margin-bottom:10px;color:var(--blue-dark);}
  .impact-note{font-size:.78rem;color:rgba(255,255,255,.7);margin-top:18px;text-align:center;font-style:italic;}

  /* ===== PHILOSOPHY ===== */
  .phil-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:48px;}
  .phil-card{
    border-radius:var(--radius);padding:36px 28px;color:var(--white);position:relative;overflow:hidden;
  }
  .phil-card.head{background:var(--blue);}
  .phil-card.heart{background:var(--orange);}
  .phil-card.hand{background:var(--blue-dark);}
  .phil-card h3{color:var(--white);font-size:1.7rem;margin-bottom:2px;}
  .phil-sub{
    display:block;font-family:'JetBrains Mono',monospace;text-transform:uppercase;
    letter-spacing:.12em;font-size:.7rem;color:rgba(255,255,255,.75);margin-bottom:6px;
  }
  .phil-card ul li{padding:6px 0;font-size:.98rem;border-top:1px solid rgba(255,255,255,.2);}
  .phil-card ul li:first-child{border-top:none;padding-top:14px;}

  /* ===== HOW WE TEACH — CMLL / PBOM / ELC ===== */
  .methods{background:var(--blue-soft);}
  .methods .section-head{max-width:760px;}
  .methods .section-head p{color:var(--ink-soft);font-weight:500;}
  .methods .section-head p b{color:var(--blue-dark);font-weight:700;}
  .teach-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
  .teach-card{
    position:relative;overflow:hidden;
    background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
    padding:38px 28px;display:flex;flex-direction:column;
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .teach-card:hover{transform:translateY(-6px);box-shadow:0 16px 30px rgba(33,29,26,.08);}
  .teach-card::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;}
  .teach-card.cmll::before{background:var(--blue);}
  .teach-card.pbom::before{background:var(--orange);}
  .teach-card.elc::before{background:var(--blue-dark);}
  .teach-code{
    font-family:'Fraunces',serif;font-weight:900;font-size:2.1rem;line-height:1;
    color:var(--blue-dark);display:block;
  }
  .teach-full{
    display:block;font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.1em;
    text-transform:uppercase;color:var(--orange-dark);margin-top:10px;line-height:1.6;
  }
  .teach-code sup{font-size:.42em;font-weight:600;vertical-align:super;letter-spacing:.02em;}
  .methods .section-head h2 sup{font-size:.36em;font-weight:600;vertical-align:super;}
  .teach-tagline{
    margin:18px 0 0;padding-top:18px;border-top:1px solid var(--line);
    font-family:'Fraunces',serif;font-size:1.02rem;
    color:var(--blue-dark);font-weight:600;line-height:1.5;
  }

  .teach-note{
    margin:34px auto 0;max-width:760px;text-align:center;
    font-family:'Fraunces',serif;font-size:1.08rem;color:var(--blue-dark);
  }
  .teach-note a{color:var(--orange-dark);font-weight:700;border-bottom:1px solid var(--orange);}
  @media(max-width:1100px){.teach-grid{grid-template-columns:repeat(2,1fr);}}
  @media(max-width:640px){.teach-grid{grid-template-columns:1fr;}}

  /* ===== ABOUT ===== */
  .about{background:var(--paper);}
  .about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:start;}
  .about-story p{font-size:1.02rem;color:var(--ink-soft);}
  .about-story p b{color:var(--ink);}
  .values-box{background:var(--blue-dark);border-radius:var(--radius);padding:36px;}
  .values-box h3{color:var(--white);font-size:1.3rem;margin-bottom:20px;}
  .chips{display:flex;flex-wrap:wrap;gap:10px;}
  .chips span{
    border:1px solid rgba(255,255,255,.3);color:var(--white);padding:9px 16px;border-radius:100px;font-size:.85rem;font-weight:500;
  }
  .values-box.quote-only .quote-block{margin-top:0;padding-top:0;border-top:none;}
  .quote-block{
    margin-top:26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.2);
    font-family:'Fraunces',serif;color:rgba(255,255,255,.9);font-size:1.05rem;font-style:italic;
  }

  /* ===== ABOUT — STORY BANNER, MILESTONES, PHOTOS ===== */
  .about-banner{margin:0 0 52px;border-radius:var(--radius);overflow:hidden;position:relative;border:1px solid var(--line);}
  .about-banner img{width:100%;height:clamp(220px,32vw,400px);object-fit:cover;object-position:center 62%;}
  .about-banner figcaption{
    position:absolute;inset:auto 0 0 0;padding:30px 32px;
    background:linear-gradient(to top,rgba(27,31,94,.9),rgba(27,31,94,.25) 60%,transparent);
    font-family:'Fraunces',serif;font-size:clamp(1.15rem,2.4vw,1.9rem);font-weight:600;color:var(--white);
  }
  .about-banner figcaption small{
    display:block;font-family:'JetBrains Mono',monospace;font-size:.7rem;font-weight:400;
    letter-spacing:.14em;text-transform:uppercase;color:var(--orange);margin-bottom:8px;
  }
  .about-story .lede{font-family:'Fraunces',serif;font-size:1.2rem;line-height:1.5;color:var(--blue-dark);}
  .about-story .lede b{color:var(--orange-dark);}
  .about-story h3{margin-top:34px;font-size:1.22rem;}
  .milestones{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:38px;}
  .milestone{background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:18px 20px;}
  .milestone .yr{font-family:'JetBrains Mono',monospace;font-size:.78rem;color:var(--orange-dark);letter-spacing:.1em;display:block;margin-bottom:6px;}
  .milestone p{margin:0;font-size:.9rem;color:var(--ink-soft);font-weight:500;}
  .then-now{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:24px;}
  .then-now figure{margin:0;}
  .then-now img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;border:1px solid var(--line);}
  .then-now figcaption{font-size:.76rem;color:var(--ink-soft);margin-top:8px;font-weight:600;line-height:1.4;}
  @media(max-width:560px){.milestones{grid-template-columns:1fr;}}

  /* ===== PHOTO STRIP (classroom activities) ===== */
  .photo-strip{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:48px;}
  .photo-strip figure{margin:0;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;}
  .photo-strip img{width:100%;aspect-ratio:16/10;object-fit:cover;}
  .photo-strip figcaption{padding:16px 20px;font-weight:700;font-size:.95rem;color:var(--blue-dark);}
  .photo-strip figcaption span{display:block;font-weight:400;font-size:.83rem;color:var(--ink-soft);margin-top:5px;line-height:1.5;}
  @media(max-width:640px){.photo-strip{grid-template-columns:1fr;}}

  /* ===== DONATE — NEED PHOTO ===== */
  .donate-photo{
    display:grid;grid-template-columns:.9fr 1.1fr;gap:32px;align-items:center;
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);
    border-radius:var(--radius);padding:24px;margin-bottom:40px;
  }
  .donate-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;}
  .donate-photo h3{color:var(--white);font-size:1.3rem;}
  .donate-photo p{color:rgba(255,255,255,.8);font-size:.95rem;}
  .donate-photo p:last-child{margin-bottom:0;}
  .donate-photo .cap{font-family:'JetBrains Mono',monospace;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--orange);margin-top:10px;}
  @media(max-width:768px){.donate-photo{grid-template-columns:1fr;}}

  /* ===== FOUNDERS ===== */
  .founders{background:var(--paper);}
  .founder-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;}
  .founder-card{
    background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:38px;
  }
  .founder-photo{
    width:126px;height:126px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--blue-dark));
    display:flex;align-items:center;justify-content:center;color:var(--white);font-family:'Fraunces',serif;
    font-size:1.6rem;font-weight:700;margin-bottom:20px;overflow:hidden;
  }
  .founder-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
  .founder-card h3{font-size:1.4rem;margin-bottom:2px;}
  .founder-role{color:var(--orange-dark);font-weight:600;font-size:.88rem;margin-bottom:14px;display:block;}
  .founder-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;}
  .founder-tags span{background:var(--cream);border:1px solid var(--line);border-radius:100px;padding:5px 12px;font-size:.76rem;color:var(--ink-soft);}
  .founder-msg{
    font-family:'Fraunces',serif;font-style:italic;font-size:1.05rem;color:var(--blue-dark);
    border-left:3px solid var(--orange);padding-left:16px;
  }

  /* ===== GALLERY ===== */
  .gallery-filters{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:28px;}
  .gallery-filters button{
    font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
    padding:9px 16px;border-radius:100px;cursor:pointer;
    background:var(--white);color:var(--ink-soft);border:1px solid var(--line);
    transition:background .18s ease,color .18s ease,border-color .18s ease;
  }
  .gallery-filters button:hover{border-color:var(--orange);color:var(--orange-dark);}
  .gallery-filters button[aria-pressed="true"]{background:var(--blue-dark);color:var(--white);border-color:var(--blue-dark);}
  .gallery-filters button:focus-visible{outline:2px solid var(--orange);outline-offset:2px;}

  .gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
  .gallery-tile{
    position:relative;margin:0;padding:0;overflow:hidden;
    aspect-ratio:1/1;border-radius:14px;border:1px solid var(--line);
    background:var(--blue-soft);cursor:pointer;
    transition:transform .22s ease, box-shadow .22s ease;
  }
  .gallery-tile img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
  .gallery-tile:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(33,29,26,.14);}
  .gallery-tile:hover img{transform:scale(1.05);}
  .gallery-tile:focus-visible{outline:2px solid var(--orange);outline-offset:3px;}
  .gallery-tile figcaption{
    position:absolute;inset:auto 0 0 0;padding:34px 14px 13px;
    background:linear-gradient(to top,rgba(27,31,94,.92) 22%,rgba(27,31,94,0));
    color:var(--white);font-weight:600;font-size:.82rem;line-height:1.35;
  }
  /* chalked date, as written on the classroom board in the photo */
  .gallery-tile .g-date{
    display:block;font-family:'JetBrains Mono',monospace;font-weight:400;
    font-size:.62rem;letter-spacing:.12em;color:rgba(255,255,255,.72);margin-top:5px;
  }
  .gallery-tile[hidden]{display:none;}

  /* ===== LIGHTBOX ===== */
  .lightbox{
    position:fixed;inset:0;z-index:200;display:none;
    background:rgba(20,17,15,.93);
    align-items:center;justify-content:center;padding:24px;
  }
  .lightbox.open{display:flex;}
  .lightbox figure{margin:0;max-width:1000px;width:100%;text-align:center;}
  .lightbox img{
    max-width:100%;max-height:74vh;width:auto;margin:0 auto;
    border-radius:14px;object-fit:contain;
  }
  .lightbox figcaption{
    color:var(--white);font-weight:600;font-size:1rem;margin-top:18px;line-height:1.5;
  }
  .lightbox figcaption span{
    display:block;font-weight:400;font-size:.87rem;color:rgba(255,255,255,.72);
    margin-top:6px;max-width:620px;margin-left:auto;margin-right:auto;
  }
  .lightbox .lb-meta{
    font-family:'JetBrains Mono',monospace;font-size:.66rem;letter-spacing:.14em;
    text-transform:uppercase;color:var(--orange);margin-top:12px;
  }
  .lightbox button{
    position:absolute;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.28);
    color:var(--white);width:46px;height:46px;border-radius:50%;cursor:pointer;
    font-size:1.3rem;line-height:1;display:flex;align-items:center;justify-content:center;
    transition:background .18s ease;
  }
  .lightbox button:hover{background:rgba(255,255,255,.22);}
  .lightbox button:focus-visible{outline:2px solid var(--orange);outline-offset:2px;}
  .lb-close{top:22px;right:22px;}
  .lb-prev{left:22px;top:50%;transform:translateY(-50%);}
  .lb-next{right:22px;top:50%;transform:translateY(-50%);}
  @media(max-width:560px){
    .lb-prev{left:10px;}.lb-next{right:10px;}
    .lightbox button{width:40px;height:40px;}
    .lightbox img{max-height:58vh;}
  }
  @media(prefers-reduced-motion:reduce){
    .gallery-tile,.gallery-tile img{transition:none;}
    .gallery-tile:hover{transform:none;}
    .gallery-tile:hover img{transform:none;}
  }

  /* ===== SCHOOL ACTIVITIES — SOCIAL CHANNELS ===== */
  .social-channel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
  .social-channel-card{
    background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
    padding:44px 24px;text-align:center;transition:transform .2s ease, box-shadow .2s ease;
    display:flex;flex-direction:column;align-items:center;gap:10px;
  }
  .social-channel-card:hover{transform:translateY(-6px);box-shadow:0 16px 30px rgba(33,29,26,.08);}
  .social-channel-icon{
    width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;
    color:var(--white);margin-bottom:6px;
  }
  .social-channel-icon.youtube{background:#FF0000;}
  .social-channel-icon.facebook{background:#1877F2;}
  .social-channel-icon.instagram{background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);}
  .social-channel-name{font-family:'Fraunces',serif;font-weight:800;font-size:1.35rem;color:var(--blue-dark);}
  .social-channel-sub{font-size:.85rem;color:var(--ink-soft);font-weight:700;}
  @media(max-width:768px){.social-channel-grid{grid-template-columns:1fr;}}

  /* ===== TESTIMONIALS ===== */
  .testi-tabs{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:10px;}
  .testi-tabs span{
    padding:10px 20px;border-radius:100px;border:1px solid var(--line);font-weight:700;font-size:.88rem;
    background:var(--white);color:var(--ink-soft);
  }

  /* ===== VIDEO TESTIMONIALS =====
     PERFORMANCE: the tiles are posters only — roughly 25KB each. No <video> element exists on the
     page until a tile is clicked, and the src is attached at that moment (and stripped again on
     close), so a visitor who never opens one downloads zero video bytes. This is the whole reason
     the grid is built out of buttons rather than seven inline players. */
  .vstory-grid{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-bottom:44px;}
  .vstory{
    flex:0 1 calc(25% - 12px);
    display:flex;flex-direction:column;text-align:left;
    background:var(--white);border:1px solid var(--line);border-radius:16px;
    padding:0;overflow:hidden;cursor:pointer;font-family:'Work Sans',sans-serif;
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }
  .vstory:hover{transform:translateY(-6px);box-shadow:0 18px 34px rgba(33,29,26,.14);border-color:var(--orange);}
  .vstory:focus-visible{outline:2px solid var(--orange);outline-offset:3px;}
  /* display:block is load-bearing — these are <span>s inside the button, and aspect-ratio,
     width and padding are all ignored while they are still inline. */
  .vstory-thumb{display:block;position:relative;aspect-ratio:1/1;overflow:hidden;background:var(--blue-soft);}
  .vstory-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease;}
  .vstory:hover .vstory-thumb img{transform:scale(1.05);}
  /* soft floor under the play button so it stays legible on pale backgrounds */
  .vstory-thumb::after{
    content:"";position:absolute;inset:auto 0 0 0;height:34%;pointer-events:none;
    background:linear-gradient(to top,rgba(27,31,94,.42),rgba(27,31,94,0));
  }
  .vstory-play{
    position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:54px;height:54px;border-radius:50%;background:var(--orange);color:var(--white);
    display:flex;align-items:center;justify-content:center;z-index:2;
    box-shadow:0 6px 18px rgba(33,29,26,.3);transition:transform .22s ease, background .22s ease;
  }
  .vstory-play svg{width:20px;height:20px;margin-left:3px;fill:currentColor;}
  .vstory:hover .vstory-play{transform:translate(-50%,-50%) scale(1.12);background:var(--orange-dark);}
  .vstory-len{
    position:absolute;right:10px;bottom:10px;z-index:2;
    font-family:'JetBrains Mono',monospace;font-size:.66rem;letter-spacing:.06em;
    background:rgba(20,17,15,.72);color:var(--white);padding:4px 8px;border-radius:100px;
  }
  .vstory-cap{display:block;padding:15px 16px 17px;}
  .vstory-name{
    display:block;font-family:'Fraunces',serif;font-weight:800;font-size:1.02rem;
    color:var(--blue-dark);line-height:1.25;
  }
  .vstory-role{
    display:block;font-family:'JetBrains Mono',monospace;font-size:.62rem;letter-spacing:.13em;
    text-transform:uppercase;color:var(--orange-dark);margin-top:6px;
  }
  .vstory-note{
    text-align:center;font-size:.82rem;color:var(--ink-soft);font-style:italic;
    font-weight:700;max-width:620px;margin:-24px auto 34px;
  }
  @media(max-width:1000px){.vstory{flex:0 1 calc(33.333% - 11px);}}
  @media(max-width:720px){.vstory{flex:0 1 calc(50% - 8px);}}
  /* Stays two-up on phones on purpose. Seven full-width tiles made this one section about
     2,900px tall on a 390px screen, which buried everything below it. */
  @media(max-width:560px){
    .vstory-grid{gap:12px;}
    .vstory{flex:0 1 calc(50% - 6px);}
    .vstory-cap{padding:12px 12px 14px;}
    .vstory-name{font-size:.92rem;}
    .vstory-role{font-size:.56rem;letter-spacing:.1em;}
    .vstory-play{width:44px;height:44px;}
    .vstory-play svg{width:16px;height:16px;}
  }
  /* Only the narrowest phones drop to a single column. */
  @media(max-width:360px){.vstory{flex:0 1 100%;}}

  /* ===== VIDEO PLAYER OVERLAY ===== */
  .vbox{
    position:fixed;inset:0;z-index:210;display:none;
    background:rgba(20,17,15,.94);
    align-items:center;justify-content:center;padding:24px;
  }
  .vbox.open{display:flex;}
  .vbox figure{margin:0;width:100%;max-width:620px;text-align:center;}
  .vbox video{
    width:100%;max-height:72vh;aspect-ratio:1/1;
    border-radius:14px;background:#000;display:block;
  }
  .vbox figcaption{color:var(--white);margin-top:18px;line-height:1.5;}
  .vbox .vb-name{display:block;font-family:'Fraunces',serif;font-weight:800;font-size:1.2rem;}
  .vbox .vb-meta{
    display:block;font-family:'JetBrains Mono',monospace;font-size:.66rem;letter-spacing:.14em;
    text-transform:uppercase;color:var(--orange);margin-top:9px;
  }
  .vbox button{
    position:absolute;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.28);
    color:var(--white);width:46px;height:46px;border-radius:50%;cursor:pointer;
    font-size:1.3rem;line-height:1;display:flex;align-items:center;justify-content:center;
    transition:background .18s ease;
  }
  .vbox button:hover{background:rgba(255,255,255,.22);}
  .vbox button:focus-visible{outline:2px solid var(--orange);outline-offset:2px;}
  .vb-close{top:22px;right:22px;}
  .vb-prev{left:22px;top:50%;transform:translateY(-50%);}
  .vb-next{right:22px;top:50%;transform:translateY(-50%);}
  @media(max-width:640px){
    .vb-prev{left:8px;}.vb-next{right:8px;}
    .vbox button{width:38px;height:38px;font-size:1.1rem;}
    .vb-close{top:12px;right:12px;}
    .vbox video{max-height:56vh;}
    .vbox figure{max-width:100%;}
  }
  @media(prefers-reduced-motion:reduce){
    .vstory,.vstory-thumb img,.vstory-play{transition:none;}
    .vstory:hover{transform:none;}
    .vstory:hover .vstory-thumb img{transform:none;}
    .vstory:hover .vstory-play{transform:translate(-50%,-50%);}
  }

  /* ===== LEGAL & COMPLIANCE ===== */
  .legal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
  .legal-card{
    background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
    padding:32px 22px;text-align:center;transition:transform .2s ease, box-shadow .2s ease;
  }
  .legal-card:hover{transform:translateY(-6px);box-shadow:0 16px 30px rgba(33,29,26,.08);}
  .legal-icon{font-size:2.3rem;margin-bottom:16px;}
  .legal-title{font-weight:800;font-size:1.08rem;color:var(--blue-dark);margin-bottom:6px;}
  .legal-sub{font-weight:700;font-size:.84rem;color:var(--orange-dark);}
  .legal-note{font-size:.8rem;color:var(--ink-soft);margin-top:28px;text-align:center;font-style:italic;font-weight:700;}
  @media(max-width:980px){.legal-grid{grid-template-columns:repeat(2,1fr);}}
  @media(max-width:560px){.legal-grid{grid-template-columns:1fr;}}

  /* ===== DONATE ===== */
  .donate{background:var(--blue);color:var(--white);}
  .donate .section-head h2{color:var(--white);}
  .donate .eyebrow{color:var(--orange);}
  .donate-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:40px;}
  .donate-card{
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);padding:30px;
  }
  .donate-card h3{color:var(--white);font-size:1.3rem;}
  .price{
    display:inline-block;background:var(--orange);color:var(--white);padding:6px 16px;border-radius:100px;
    font-weight:700;font-size:.9rem;margin-bottom:16px;
  }
  .donate-card .chips span{background:transparent;}
  .fund-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:40px;}
  .fund-card{
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:20px 16px;text-align:center;
  }
  .fund-card h4{color:var(--white);font-size:.95rem;margin-bottom:6px;}
  .fund-card p{font-size:.8rem;color:rgba(255,255,255,.7);margin:0;}
  .method-row{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;}
  .method-row span{
    background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);padding:10px 18px;border-radius:100px;font-size:.85rem;
  }

  /* ===== DONOR WALL ===== */
  .donor-wall{margin-top:56px;}
  .donor-tabs{display:flex;gap:10px;justify-content:center;margin-bottom:32px;flex-wrap:wrap;}
  .donor-tab{
    background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.25);color:var(--white);
    padding:11px 24px;border-radius:100px;font-weight:600;font-size:.88rem;cursor:pointer;
    transition:background .2s ease, transform .2s ease;font-family:'Work Sans',sans-serif;
    display:inline-flex;align-items:center;gap:10px;
  }
  .donor-tab:hover{transform:translateY(-2px);}
  .donor-tab:focus-visible{outline:2px solid var(--orange);outline-offset:3px;}
  .donor-tab::after{content:"+";font-size:1.15rem;line-height:1;font-weight:600;color:var(--orange);}
  .donor-tab.active{background:var(--orange);border-color:var(--orange);}
  .donor-tab.active::after{content:"–";color:var(--white);}
  .donor-hint{
    text-align:center;font-size:.8rem;color:rgba(255,255,255,.6);
    margin:-20px 0 30px;font-style:italic;
  }
  .donor-list{display:none;}
  .donor-list.active{display:block;}
  .donor-tier{margin-bottom:28px;}
  .donor-tier-label{
    font-family:'JetBrains Mono',monospace;text-transform:uppercase;letter-spacing:.12em;
    font-size:.72rem;color:var(--orange);margin-bottom:14px;display:flex;align-items:center;gap:10px;
  }
  .donor-tier-label::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.18);}
  .donor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
  .donor-card{
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);border-radius:12px;
    padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px;
  }
  .donor-name{font-weight:600;font-size:.92rem;color:var(--white);}
  .donor-meta{font-size:.72rem;color:rgba(255,255,255,.55);margin-top:2px;}
  .donor-amount{
    font-family:'JetBrains Mono',monospace;font-size:.76rem;color:var(--orange);white-space:nowrap;
    background:rgba(243,112,67,.12);padding:4px 10px;border-radius:100px;
  }
  .donor-note{font-size:.78rem;color:rgba(255,255,255,.6);margin-top:24px;text-align:center;font-style:italic;}
  .become-donor{text-align:center;margin-top:32px;}
  @media(max-width:980px){
    .donor-grid{grid-template-columns:repeat(2,1fr);}
  }
  @media(max-width:560px){
    .donor-grid{grid-template-columns:1fr;}
    .donor-card{flex-direction:column;align-items:flex-start;gap:6px;}
  }

  /* ===== SPLIT CARDS (CSR / Volunteer / Impact / Blog / Careers) ===== */
  .split{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;}
  .split .visual{
    background:var(--orange-soft);border-radius:var(--radius);padding:36px;
  }
  .split.reverse{grid-template-columns:1fr 1fr;}
  .split.reverse .visual{order:2;}
  .pill-grid{display:flex;flex-wrap:wrap;gap:10px;}
  .pill-grid span{background:var(--white);border:1px solid var(--line);padding:9px 16px;border-radius:100px;font-size:.85rem;font-weight:500;color:var(--blue-dark);}

  /* ===== IMPACT STORY BUTTONS ===== */
  .story-buttons{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;}
  .story-buttons .btn{min-width:180px;justify-content:center;}
  @media(max-width:480px){.story-buttons .btn{width:100%;}}

  /* ===== STORY DISCLOSURE TABS ===== */
  .story-tab{
    display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:180px;
    padding:14px 26px;border-radius:100px;cursor:pointer;
    font-family:'Work Sans',sans-serif;font-weight:600;font-size:.95rem;
    background:var(--blue-dark);color:var(--white);border:2px solid var(--blue-dark);
    transition:transform .18s ease, background .18s ease, border-color .18s ease;
  }
  .story-tab:hover{transform:translateY(-2px);}
  .story-tab:focus-visible{outline:2px solid var(--orange);outline-offset:3px;}
  .story-tab::after{content:"+";font-size:1.15rem;line-height:1;font-weight:600;color:var(--orange);}
  .story-tab.active{background:var(--orange);border-color:var(--orange);}
  .story-tab.active::after{content:"\2013";color:var(--white);}
  .story-hint{
    text-align:center;font-size:.8rem;color:var(--ink-soft);font-style:italic;
    font-weight:700;margin:18px 0 0;
  }
  .story-hint[hidden]{display:none;}
  .story-panel{margin-top:44px;}
  .story-panel[hidden]{display:none;}
  /* The panels start hidden, so the IntersectionObserver that drives .reveal never sees their
     contents. They fade in here instead — otherwise they would open stuck at opacity:0. */
  .js .story-panel:not([hidden]){animation:storyIn .45s ease both;}
  @keyframes storyIn{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}
  .story-empty{
    text-align:center;color:var(--ink-soft);font-weight:700;max-width:560px;margin:0 auto 22px;
  }
  .story-more{text-align:center;margin:0;}
  @media(max-width:480px){
    .story-tab{width:100%;}
    .story-panel{margin-top:32px;}
  }
  @media(prefers-reduced-motion:reduce){
    .story-tab{transition:none;}
    .story-tab:hover{transform:none;}
    .js .story-panel:not([hidden]){animation:none;}
  }

  /* ===== CONTACT ===== */
  .faq details{
    border:1px solid var(--line);border-radius:14px;background:var(--white);
    padding:16px 20px;margin-bottom:12px;
  }
  .faq details[open]{border-color:var(--orange);}
  .faq summary{
    cursor:pointer;font-weight:700;color:var(--blue-dark);
    list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center;
  }
  .faq summary::-webkit-details-marker{display:none;}
  .faq summary::after{content:"+";color:var(--orange-dark);font-size:1.3rem;line-height:1;font-weight:600;}
  .faq details[open] summary::after{content:"–";}
  .faq summary:focus-visible{outline:2px solid var(--orange);outline-offset:3px;border-radius:6px;}
  .faq details p{margin:12px 0 0;color:var(--ink-soft);font-size:.95rem;}
  .contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;}
  .info-row{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);}
  .info-row .ic{
    width:40px;height:40px;border-radius:10px;background:var(--orange-soft);color:var(--orange-dark);
    display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0;
  }
  .info-row .lbl{font-family:'JetBrains Mono',monospace;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft);margin-bottom:4px;}
  .info-row .val{font-weight:500;color:var(--ink);}
  .map-box{
    background:var(--blue-soft);border-radius:var(--radius);height:100%;min-height:320px;
    overflow:hidden;
    border:1px solid var(--line);
  }
  .social-row{display:flex;gap:12px;margin-top:20px;}
  .social-row a{
    width:42px;height:42px;border-radius:50%;background:var(--blue-dark);color:var(--white);
    display:flex;align-items:center;justify-content:center;font-size:1rem;
    transition:transform .18s ease, background .18s ease;
  }
  .social-row a:hover{transform:translateY(-3px);background:var(--orange);}

  /* ===== FOOTER ===== */
  footer{background:var(--ink);color:rgba(255,255,255,.75);padding:64px 0 28px;}
  .footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:40px;margin-bottom:48px;}
  .footer-brand img{height:44px;margin-bottom:14px;}
  .footer-brand p{font-size:.88rem;color:rgba(255,255,255,.55);max-width:280px;}
  .footer-col h4{color:var(--white);font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:16px;font-family:'Work Sans',sans-serif;}
  .footer-col ul li{margin-bottom:10px;font-size:.9rem;}
  .footer-col ul li a:hover{color:var(--orange);}
  .footer-bottom{
    border-top:1px solid rgba(255,255,255,.12);padding-top:22px;
    display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.8rem;color:rgba(255,255,255,.45);
  }

  /* reveal animation
     🔴 FIX: this was previously an unconditional .reveal{opacity:0}. If JavaScript failed,
     was blocked, or IntersectionObserver was unavailable, almost the entire page — About,
     Founders, Impact, Gallery, Contact — stayed permanently invisible to the visitor.
     Now the hiding only applies when the `js` class is present, so the content is visible
     by default and the animation is pure enhancement. */
  .js .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease;}
  .js .reveal.in{opacity:1;transform:translateY(0);}
  @media(prefers-reduced-motion:reduce){
    .js .reveal{opacity:1;transform:none;}
  }

  /* ===== RESPONSIVE ===== */
  /* Raised from 980px. Measured: the eight nav links, the brand and the CTA need ~1160px before
     the last link starts colliding with the button, so the burger takes over below that. */
  @media(max-width:1160px){
    /* ACCESSIBILITY / MOBILE: the mobile menu is now driven by the .open class instead of
       inline styles written by JS. The old version left `display:none` stuck on the element
       after resizing back to desktop, hiding the whole primary navigation. */
    nav.links{
      display:none;
      position:absolute;top:100%;left:0;right:0;
      background:var(--paper);
      flex-direction:column;align-items:flex-start;
      padding:20px 28px;gap:18px;
      border-bottom:1px solid var(--line);
      box-shadow:0 12px 28px rgba(33,29,26,.10);
    }
    nav.links.open{display:flex;}
    nav.links a{font-size:1rem;padding:4px 0;}
    .burger{display:block;}
    .nav-mobile-cta{display:inline-flex;width:100%;justify-content:center;margin-top:4px;color:var(--white);}
    .vm-grid,.about-grid,.founder-grid,.split,.split.reverse,.donate-grid,.contact-grid{grid-template-columns:1fr;}
    .split.reverse .visual{order:0;}
    .phil-grid{grid-template-columns:1fr;}
    .stat-grid{grid-template-columns:repeat(2,1fr);}
    .qual-grid{grid-template-columns:repeat(2,1fr);}
    .stage-grid{grid-template-columns:repeat(2,1fr);}
    .two-col-tags{grid-template-columns:1fr;}
    .gallery-grid{grid-template-columns:repeat(3,1fr);}
    .fund-grid{grid-template-columns:repeat(2,1fr) ;}
    .footer-grid{grid-template-columns:1fr 1fr;}
    .chain{flex-direction:column;gap:36px;}
    .chain::before{display:none;}
    .tag-grid{grid-template-columns:repeat(2,1fr);}
  }
  @media(max-width:600px){
    /* "Book A School Visit" wrapped onto three lines here, pushing the header to 107px tall
       and squeezing the logo. The action is not lost: it is the first button in the hero and
       is repeated at the foot of the mobile dropdown. */
    .nav-cta .btn:not(.nav-mobile-cta){display:none;}
  }
  @media(max-width:560px){
    /* .wrap matched to the nav's 20px gutter so every section, the logo and the hero keep a
       shared left edge on phones — and small screens get 16px more usable width. */
    .wrap{padding:0 20px;}
    .brand-text{font-size:.92rem;}
    .nav{padding:12px 20px;gap:8px;}
    section{padding:64px 0;}
    .stat-grid{grid-template-columns:1fr 1fr;}
    .qual-grid{grid-template-columns:1fr;}
    .gallery-grid{grid-template-columns:repeat(2,1fr);}
    .footer-grid{grid-template-columns:1fr;}
    .hero-actions .btn{width:100%;justify-content:center;}
  }
