/* ============================================================
   Shanti Niketan — 1:1 build of Figma frame 38:2 (1492 × 6857)
   All values transcribed directly from the Figma node tree.
   ============================================================ */

:root{
  --cream:      #f1edea;   /* page background            */
  --header-bg:  #f8f4ee;
  --stats-bg:   #f4f0ed;
  --footer-bg:  #ebe2db;
  --red:        #89181a;   /* brand red                  */
  --red-alt:    #89181b;   /* stat numerals / prog links */
  --ink:        #232323;   /* headings                   */
  --body:       #000000;
  --body-alt:   #010101;   /* card paragraphs            */
  --muted:      #868e96;   /* placeholders               */
  --req:        #f56c6c;
  --rule:       #7d7d7e;
  --white:      #ffffff;

  --f-head: "Quicksand", sans-serif;
  --f-body: "Nunito Sans", sans-serif;
  --f-script: "Amatic SC", cursive;
  --f-age: "Anek Gurmukhi", sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ background:var(--cream); }

body{
  margin:0;
  background:var(--cream);
  font-family:var(--f-body);
  color:var(--body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{ display:block; max-width:none; }
a{ text-decoration:none; color:inherit; }
h1,h2,h3,p,ul,figure{ margin:0; }
ul{ padding:0; list-style:none; }

.page{ width:1492px; margin:0 auto; background:var(--cream); overflow:hidden; }

/* Shared section eyebrow + heading -------------------------- */
.eyebrow{
  font-family:var(--f-script); font-weight:700;
  font-size:26px; line-height:31.2px; letter-spacing:1.3px;
  color:var(--red); text-align:center;
}
.eyebrow--lg{ font-size:30px; line-height:36px; letter-spacing:1.5px; }

.sec-h{
  font-family:var(--f-head); font-weight:700;
  font-size:42px; line-height:56px; color:var(--ink); text-align:center;
}

.sec-head{ width:1200px; margin:0 auto; padding:0 15px; }
.sec-head .eyebrow{ height:42.6px; padding-top:1.8px; }
.sec-head .sec-h{ height:56px; }

/* ============================================================
   HEADER — 1492 × 127.96
   ============================================================ */
.header{
  position:relative;
  width:1492px; height:127.96px;
  background:var(--header-bg);
}

.hdr-logo{ position:absolute; left:82.26px; top:0; width:201px; height:127.96px; }
.hdr-logo img{ width:201px; height:127.96px; object-fit:contain; }

.hdr-nav{
  position:absolute; left:463.41px; top:13.98px;
  height:99px; display:flex; align-items:center;
  padding-left:10px;
}
.nav-link{
  display:flex; align-items:center; gap:4px;
  height:99px; padding:0 18px;
  font-family:var(--f-head); font-weight:700;
  font-size:16px; line-height:30px; letter-spacing:.32px;
  color:var(--ink);
  transition:color .2s ease;
}
.nav-link.is-active,
.nav-link:hover{ color:var(--red); }
.nav-caret{ display:flex; align-items:center; color:rgba(152,152,152,.7); }

.btn-apply-hdr{
  position:absolute; left:1344.61px; top:36.38px;
  width:132.38px; height:55.2px;
  display:flex; align-items:center; justify-content:center;
  background:var(--red); border:1.6px solid var(--red); border-radius:28px;
  font-family:var(--f-head); font-weight:700; font-size:14px; line-height:28px;
  text-transform:uppercase;
  color:var(--white);
  transition:background .2s ease, color .2s ease;
}
.btn-apply-hdr:hover{ background:transparent; color:var(--red); }

/* ============================================================
   MAIN — sections stack to exactly 5935.8 + 40 bottom pad
   ============================================================ */
.main{ padding:0 0 40px; }

/* ─────── HERO — 600 ─────── */
.hero{ width:1492px; height:600px; }
.hero-content{ position:relative; width:1477px; height:600px; margin:0 auto; }
/* At 1492px the copy is a plain pass-through; it only becomes a real
   layout box below the Figma frame width (see RESPONSIVE). */
.hero-copy{ display:contents; }
.hero-bg{ position:absolute; left:0; top:0; width:1477px; height:600px; object-fit:contain; }

.hero-eyebrow{
  position:absolute; left:113.59px; top:103px; width:248px; height:52px;
  font-family:var(--f-script); font-weight:700;
  font-size:36px; line-height:52px; letter-spacing:2px; color:var(--red);
}
.hero-title{
  position:absolute; left:109.64px; top:150px; width:659px; height:180px;
  font-family:var(--f-head); font-weight:700;
  font-size:72px; line-height:90px; color:var(--ink);
}
.hero-sub{
  position:absolute; left:112.5px; top:336px; width:349px; height:32px;
  font-family:var(--f-body); font-weight:400;
  font-size:18px; line-height:32px; color:#0c0c0c;
}
.hero-cta{
  position:absolute; left:106.68px; top:384.1px;
  width:244.2px; height:55.2px;
  display:flex; align-items:center;
  padding:0 30px;
  background:var(--red); border:1.6px solid var(--red); border-radius:28px;
  font-family:var(--f-head); font-weight:700; font-size:14px; line-height:52px;
  text-transform:uppercase;
  color:var(--white);
  transition:background .2s ease, color .2s ease;
}
.hero-cta:hover{ background:transparent; color:var(--red); }

/* ─────── STATS — 188 ─────── */
.stats{
  position:relative;
  width:1492px; height:188px;
  background:var(--stats-bg); border-radius:10px;
  box-shadow:0 15px 38px rgba(0,0,0,.1);
}
.stats-row{
  position:absolute; left:50px; top:62px;
  width:1392px; height:60px;
}
.stat{ position:absolute; top:0; width:348px; height:60px; }
.stat:nth-child(1){ left:0; }
.stat:nth-child(2){ left:348px; }
.stat:nth-child(3){ left:696px; }
.stat:nth-child(4){ left:1044px; }

.stat-num{
  position:absolute; left:15px; top:0;
  font-family:var(--f-head); font-weight:700;
  font-size:48px; line-height:48px; color:var(--red-alt);
  white-space:nowrap;
}
.stat-num--4{ top:6px; }
.stat-suffix{ display:inline-block; width:28px; text-align:left; }
.stat-suffix--pct{ width:40px; }

.stat-label{
  position:absolute; top:12px;
  font-family:var(--f-head); font-weight:700;
  font-size:16px; line-height:28px; color:var(--ink);
}
.stat-label--1{ left:116.96px; }
.stat-label--2{ left:169.1px; }
.stat-label--3{ left:118.79px; }
.stat-label--4{ left:151.63px; top:4px; }

/* ─────── ABOUT — 529.53 ─────── */
.about{ width:1492px; height:529.53px; padding-top:50px; background:var(--cream); }
.about-inner{ display:flex; width:1200px; height:479.52px; margin:0 auto; }

.about-media{ width:612px; padding:0 15px; }
.about-media img{
  margin-top:21.51px;
  width:582px; height:436.5px; border-radius:12px; object-fit:cover;
}

.about-copy{ position:relative; width:588px; height:479.52px; }
.about-copy .eyebrow{ height:37.52px; padding-top:1.52px; }
.about-h{
  height:56px;
  font-family:var(--f-head); font-weight:700;
  font-size:38px; line-height:56px; color:var(--ink); text-align:center;
}
.about-p{
  position:absolute; left:7px; top:113.53px; width:565px; height:270px;
  font-family:var(--f-body); font-weight:400;
  font-size:16px; line-height:30px; color:var(--body);
}
.about-actions{ position:absolute; left:0; top:423.53px; }

.btn-pill{
  display:inline-flex; align-items:center; justify-content:center;
  width:134.03px; height:52.8px;
  background:var(--red); border:1.6px solid var(--red); border-radius:28px;
  font-family:var(--f-head); font-weight:700; font-size:14px; line-height:16.8px;
  color:var(--white);
  transition:background .2s ease, color .2s ease;
}
.btn-pill:hover{ background:transparent; color:var(--red); }

.about-actions .btn-pill{ position:absolute; left:10px; top:1.6px; }

.btn-read{
  position:absolute; left:174.03px; top:0;
  width:104.43px; height:56px;
  display:flex; align-items:center; gap:0;
  padding:1.6px;
  border:1.6px solid transparent; border-radius:28px;
  font-family:var(--f-head); font-weight:700; font-size:14px; line-height:16.8px;
  text-transform:uppercase; white-space:nowrap;
  color:var(--red);
}
.btn-read-arrow{ display:flex; align-items:center; justify-content:center; width:21px; height:16.8px; }

/* ─────── WHY US — 1109.4 ─────── */
.why{ width:1492px; height:1109.4px; padding-top:50px; background:var(--cream); }
.why-inner{ width:1400px; margin:0 auto; padding:0 15px; }

.sec-head--why{ width:1370px; padding:0 0 20px; }

.why-row{ display:flex; width:1370px; }
.why-cell{ width:456.65px; padding:0 15px; }

.why-card{
  width:426.65px; height:404px;
  border-radius:16px;
  border:1px solid rgba(137,24,26,.16);
  background:#fffdfb;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
  padding:39px 24px 38px;
  text-align:center;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.why-card:hover{
  transform:translateY(-4px);
  border-color:rgba(137,24,26,.32);
  box-shadow:0 18px 40px rgba(137,24,26,.12);
}
.why-card--tall{ height:434px; }
.why-card--tallest{ height:437px; }

.why-imgwrap{ width:100%; height:222px; }
.why-imgwrap img{ width:200px; height:200px; margin:0 auto; object-fit:cover; }

.why-t{
  height:33px;
  font-family:var(--f-head); font-weight:700;
  font-size:22px; line-height:33px; color:var(--ink);
}
.why-t--2line{ height:66px; }

.why-p{
  padding-top:12px; width:100%;
  font-family:var(--f-body); font-weight:400;
  font-size:16px; line-height:30px; color:var(--body-alt);
}

.why-cta{ width:1370px; padding-top:17px; text-align:center; }

/* ─────── PROGRAMS HEADING — 176.6 ─────── */
.prog-head{ width:1492px; height:176.6px; padding-top:50px; background:var(--cream); }
.prog-head .sec-head{ padding-bottom:20px; }

/* ─────── PROGRAM CARDS — 584.11 ─────── */
.progs{
  position:relative;
  width:1492px; height:584.11px;
  padding:10px 20px 50px;
  background:var(--cream);
}
.progs-deco{
  position:absolute; left:351.44px; top:-124.34px;
  width:450px; height:368px; z-index:0; pointer-events:none;
}
.progs-row{ position:relative; z-index:1; display:flex; width:1400px; margin:0 auto; }
.prog-cell{ width:350px; padding:0 15px; }

.prog-card{
  width:320px; height:498.44px;
  background:var(--white); border-radius:13px;
  box-shadow:9px 11px 29px rgba(0,0,0,.08);
  overflow:hidden;
}
.prog-card--3{ height:510.81px; }
.prog-card--4{ height:525.11px; }

.prog-imgwrap{ width:320px; height:228.32px; }
.prog-imgwrap--3{ height:240.7px; }
.prog-imgwrap--4{ height:255px; }
.prog-imgwrap img{ width:320px; height:213.32px; object-fit:cover; }
.prog-imgwrap--3 img{ height:225.7px; }
.prog-imgwrap--4 img{ height:240px; }

.prog-body{ width:320px; height:270.11px; text-align:center; }

.prog-t{
  height:38px;
  font-family:var(--f-head); font-weight:700;
  font-size:25px; line-height:37.5px; color:var(--ink);
}
.prog-age{
  height:27px; padding-top:8px;
  font-family:var(--f-age); font-weight:700;
  font-size:19px; line-height:19px; letter-spacing:.95px; color:var(--red);
}
.prog-p{
  height:123px; padding:10px 20px 0;
  font-family:var(--f-body); font-weight:400;
  font-size:15px; line-height:28.13px; color:var(--body);
}
.prog-link{
  display:block; width:72.03px; margin:0 auto;
  padding-top:19.51px;
  font-family:var(--f-head); font-weight:700;
  font-size:14px; line-height:26.25px; color:var(--red-alt);
  text-align:center;
  border-bottom:2px solid var(--red-alt);
}

/* ─────── LEARNING HEADING — 295.35 ─────── */
.learn-head{ width:1492px; height:295.35px; padding-top:50px; background:var(--cream); }
.learn-head .sec-head{ padding-bottom:20px; }
.learn-p{
  width:1170px; margin:0 auto; height:32px;
  font-family:var(--f-body); font-weight:600;
  font-size:17px; line-height:31.88px; color:var(--body); text-align:center;
}
.learn-p--2{ margin-top:20px; }

/* ─────── EQA TILES — 280 ─────── */
.tiles{ width:1492px; height:280px; }
.tiles-row{ display:flex; width:1413.98px; margin:0 auto; }
.tile-cell{ width:471.33px; padding:0 15px; }

.tile{
  position:relative;
  width:441.33px; height:280px;
  border-radius:16px; overflow:hidden;
}
/* NB: the exported PNGs already contain Figma's #000 @48% overlay fill —
   do NOT add a second overlay here or the tiles double-darken. */
.tile-bg{ position:absolute; inset:0; width:441.33px; height:280px; object-fit:cover; }

.tile-t{
  position:absolute; left:0; top:42.5px; z-index:2;
  width:441.33px; height:60px;
  font-family:var(--f-head); font-weight:700;
  font-size:23px; line-height:60px; color:var(--white); text-align:center;
}
.tile-p{
  position:absolute; left:34.66px; top:117.5px; z-index:2;
  width:372px; height:120px;
  font-family:var(--f-body); font-weight:400;
  font-size:16px; line-height:30px; color:var(--white); text-align:center;
}

.gap-20{ width:1492px; height:20px; background:var(--cream); }

/* ─────── GALLERY — 1136.46 ─────── */
.gallery{ width:1492px; height:1136.46px; padding:50px 15px 0; background:var(--cream); }
.gallery-inner{ width:1462px; padding:0 15px; }
.sec-head--gal{ width:1432px; margin:0; padding:0 0 20px; }

.gal-grid{ position:relative; width:1432px; height:947.86px; overflow:hidden; }
.gal-i{
  position:absolute;
  width:224px; height:224.46px;
  border-radius:5px; overflow:hidden;
}
.gal-i--w{ width:227px; }
.gal-i img{ width:100%; height:auto; }

/* ─────── ENQUIRY FORM — 1016.35 ─────── */
.enquiry{ width:1492px; height:1016.35px; padding-top:50px; background:var(--cream); }
.enquiry-inner{ position:relative; width:955px; height:966.35px; margin:0 auto; }

.enq-h{
  height:38px;
  font-family:var(--f-head); font-weight:700;
  font-size:32px; line-height:38px; color:var(--ink); text-align:center;
}
.enq-sub{
  position:absolute; left:242.5px; top:58px; width:470px; height:34px;
  font-family:var(--f-body); font-weight:400;
  font-size:18px; line-height:33.75px; color:var(--body); text-align:center;
}

.enq-form{ position:absolute; left:15px; top:131.75px; width:925px; height:759.6px; }

.fld{ position:absolute; left:0; width:925px; }
.fld--1{ top:0;     height:111px; }
.fld--2{ top:111px; height:91px; }
.fld--3{ top:202px; height:111px; padding-top:20px; }
.fld--4{ top:313px; height:131px; padding:20px 0; }
.fld--5{ top:444px; height:91px; }
.fld--6{ top:535px; height:114.6px; padding-top:20px; }

.fld-l{
  display:block; height:35px;
  font-family:var(--f-body); font-weight:500;
  font-size:16px; line-height:30px; color:var(--body);
}
.req{ color:var(--req); }

.fld-i{
  display:block; width:925px; height:56px;
  padding:11px 15px;
  background:var(--white);
  border:.8px solid var(--body); border-radius:7px;
  font-family:var(--f-body); font-weight:400; font-size:16px; color:var(--body);
  outline:none;
}
.fld-i::placeholder{ color:var(--muted); }
.fld-i:focus{ border-color:var(--red); }

.phone-wrap{ position:relative; width:925px; height:56px; }
.fld-i--phone{ padding-left:47px; padding-right:6px; }
.phone-flag{
  position:absolute; left:0; top:0; z-index:2;
  width:42.8px; height:56px;
  display:flex; align-items:center; gap:4px; padding:1px 7px 1px 9px;
}
.flag-in{
  width:16px; height:12px; border-radius:1px;
  box-shadow:0 0 1px #888;
  background:linear-gradient(
    to bottom,
    #ff9933 0 33.33%,
    #ffffff 33.33% 66.66%,
    #138808 66.66% 100%
  );
  position:relative;
}
.flag-in::after{
  content:""; position:absolute; left:50%; top:50%;
  width:3.4px; height:3.4px; margin:-1.7px 0 0 -1.7px;
  border:.6px solid #000080; border-radius:50%;
}
.flag-caret{ display:block; }

.fld-sel{
  display:block; width:188.4px; height:39.6px;
  padding:.8px 8px;
  background:var(--white);
  border:.8px solid var(--body); border-radius:7px;
  font-family:var(--f-body); font-size:16px; color:var(--body);
  outline:none;
}

.fld-submit{ position:absolute; left:0; top:669.6px; width:925px; height:70px; padding-top:20px; }
.btn-submit{
  display:block; width:149.6px; height:50px; margin:0 auto;
  padding:8px 20px;
  background:var(--red); border:.8px solid transparent; border-radius:7px;
  font-family:var(--f-head); font-weight:500; font-size:16px; line-height:24px;
  text-transform:uppercase;
  color:var(--white); cursor:pointer;
  transition:opacity .2s ease;
}
.btn-submit:hover{ opacity:.88; }

/* ============================================================
   FOOTER — 753
   ============================================================ */
.footer{ width:1492px; height:753px; overflow:hidden; }

.footer-top{ width:1492px; height:110px; background:var(--footer-bg); }

.footer-main{ width:1492px; height:584px; background:var(--footer-bg); }
.footer-inner{ display:flex; width:1200px; height:584px; margin:0 auto; }

.foot-col--left{ width:456px; padding:0 15px; }
.foot-logo{ display:block; width:300px; height:145.15px; }
.foot-logo img{ width:228px; height:145.15px; object-fit:contain; }

.foot-list{ margin-top:20px; width:426px; }
.foot-li{ display:flex; align-items:center; height:40px; }
.foot-ico{
  display:flex; align-items:center; justify-content:flex-start;
  width:17.5px; height:40px; color:#8a181a; flex:0 0 17.5px;
}
.foot-txt{
  padding-left:5px;
  font-family:var(--f-body); font-weight:400;
  font-size:16px; line-height:40px; color:var(--body);
}

.foot-col--right{ width:744px; padding:0 15px; }
.foot-map{
  margin-top:39px;
  width:714px; height:518px;
  background:#eeeeee;
}

.footer-bottom{ width:1492px; height:59px; padding:7px 0 22px; background:var(--footer-bg); }
.footer-bottom-inner{ display:flex; width:1200px; height:30px; margin:0 auto; }

.foot-legal{
  display:flex; align-items:center;
  width:480px; padding:0 15px;
  font-family:var(--f-body); font-weight:400;
  font-size:16px; line-height:30px; color:var(--body);
}
.foot-legal a:hover{ color:var(--red); }
.foot-div{
  width:32px; height:30px;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.foot-div::before{
  content:""; position:absolute; left:17px; top:9px;
  width:1px; height:14px; background:var(--rule);
}

.foot-copy{
  width:715.98px; padding:0 15px;
  font-family:var(--f-body); font-weight:400;
  font-size:16px; line-height:30px; color:var(--body); text-align:right;
}

/* ============================================================
   ABOUT US PAGE — Figma frame 48:959 (1492 × 3965)
   Header, footer and enquiry form are shared with the homepage.
   ============================================================ */

/* Unlike the homepage, this page keeps BOTH 40px main paddings. */
.main--about{ padding-top:40px; }

/* ─────── WHO WE ARE — 605.6 ─────── */
.aw{ width:1492px; height:605.6px; padding-bottom:50px; background:var(--cream); }
.aw-inner{ display:flex; width:1200px; height:555.6px; margin:0 auto; }

.aw-copy{ width:528px; padding:0 15px; }
.aw-copy .eyebrow{ height:39.6px; padding-top:1.8px; }
.aw-h{
  height:56px;
  font-family:var(--f-head); font-weight:700;
  font-size:32px; line-height:56px; color:var(--ink); text-align:center;
}
.aw-p{
  margin-top:15px; width:498px; height:390px;
  font-family:var(--f-body); font-weight:400;
  font-size:16px; line-height:30px; color:var(--body);
}

.aw-media{ width:672px; padding:0 15px; }
.aw-media img{
  margin:49.09px 0 0 16.05px;
  width:609.9px; height:457.43px; border-radius:12px; object-fit:cover;
}

/* ─────── TEAM CARDS — 973.51 ─────── */
.team{
  position:relative;
  width:1492px; height:973.51px;
  padding:10px 20px 50px;
  background:var(--cream);
}
.team-deco{
  position:absolute; left:146.44px; top:-213.9px;
  width:450px; height:368px; z-index:0; pointer-events:none;
}
.team-row{ position:relative; z-index:1; display:flex; width:1250px; margin:0 auto; }
.team-cell{ width:625px; padding:0 15px; }

.team-card{
  width:595px;
  padding-bottom:30px;
  background:var(--white); border-radius:13px;
  box-shadow:9px 11px 29px rgba(0,0,0,.08);
  overflow:hidden;
}
.team-card--1{ height:914.01px; }
.team-card--2{ height:815.2px; }

.team-imgwrap{ width:595px; }
.team-imgwrap--1{ height:359.01px; }
.team-imgwrap--2{ height:372.2px; }
.team-imgwrap--1 img{ margin-left:38.68px; width:517.65px; height:344.01px; object-fit:cover; }
.team-imgwrap--2 img{ margin-left:38.67px; width:517.65px; height:357.2px; object-fit:cover; }

.team-body{ width:595px; text-align:center; }
.team-name{
  height:38px;
  font-family:var(--f-head); font-weight:700;
  font-size:25px; line-height:37.5px; color:var(--ink);
}
.team-role{
  height:27px; padding-top:8px;
  font-family:var(--f-age); font-weight:700;
  font-size:19px; line-height:19px; letter-spacing:.95px; color:var(--red);
}
.team-p{
  padding:10px 20px 0;
  font-family:var(--f-body); font-weight:400;
  font-size:15px; line-height:28.13px; color:var(--body);
}
.team-p--1{ height:460px; }
.team-p--2{ height:348px; }

/* ─────── MISSION HEADING — 128.6 ─────── */
.mv-head{ width:1492px; height:128.6px; padding-top:10px; background:var(--cream); }
.mv-head .sec-head{ padding-bottom:20px; }

/* ─────── MISSION / VISION / SLOGAN — 280 ─────── */
.mv{ width:1492px; height:280px; padding-bottom:50px; background:var(--cream); }
.mv-row{ display:flex; gap:30px; width:1170px; margin:0 auto; }

.mv-card{
  display:flex; flex-direction:column; justify-content:center;
  width:370px; height:230px;
  padding:0 30px;
  background:var(--red-alt); border-radius:10px;
  box-shadow:10px 8px 35px rgba(49,49,49,.08);
  text-align:center;
}
.mv-t{
  height:67px;
  font-family:var(--f-script); font-weight:700;
  font-size:48px; line-height:67.2px; color:var(--white);
}
.mv-p{
  font-family:var(--f-body); font-weight:400;
  font-size:18px; line-height:32.4px; color:var(--white);
}

/* ============================================================
   ACADEMICS PAGE — Figma frame 48:1424 (1492 × 6088)
   Header, footer and enquiry form are shared with the homepage.
   ============================================================ */

.main--academics{ padding-top:40px; }

/* Shared alternating text/image band ------------------------- */
.split{ width:1492px; padding-bottom:50px; background:var(--cream); }
.split-inner{ display:flex; width:1200px; margin:0 auto; }
.split-media{ width:600px; padding:0 15px; }
.split-media img{ border-radius:12px; object-fit:cover; }
.split-copy{ position:relative; width:600px; }

.split-h{
  font-family:var(--f-head); font-weight:700;
  font-size:32px; line-height:56px; height:56px;
  color:var(--ink); text-align:center;
}
.split-p{
  position:absolute; left:15px; width:570px;
  font-family:var(--f-body); font-weight:400;
  font-size:16px; line-height:30px; color:var(--body);
}
.split-btn{ position:absolute; left:15px; }

/* ─────── WHY CAMBRIDGE — 716.3 ─────── */
.ac-why{ height:716.3px; }
.ac-why .split-inner{ height:666.3px; }
.ac-why-img{ width:570px; height:666.3px; }
.ac-why-h{ padding-top:56.25px; height:112.25px; }
.ac-why-p{ top:127.25px; height:390px; }
.ac-why-btn{ top:557.25px; }

/* ─────── WE MOTIVATE — 453.8 ─────── */
.ac-motivate{ height:453.8px; }
.ac-motivate .split-inner{ height:403.8px; }
.ac-mot-img{ margin-top:11.9px; width:570px; height:380px; }
.ac-mot-p{ top:71px; height:240px; }
.ac-mot-btn{ top:351px; }

/* ─────── OUR TEACHING — 524 ─────── */
.ac-teaching{ height:524px; }
.ac-teaching .split-inner{ height:474px; }
.ac-tea-img{ margin-top:45.81px; width:570px; height:382.38px; }
.ac-tea-p{ top:64px; height:210px; }

.tick-list{ position:absolute; top:314px; width:285px; height:160px; }
.tick-list--1{ left:15px; }
.tick-list--2{ left:300px; }
.tick{ display:flex; align-items:center; height:40px; }
.tick-ico{
  display:flex; align-items:center;
  width:17.5px; height:40px; flex:0 0 17.5px;
}
.tick-t{
  padding-left:5px;
  font-family:var(--f-body); font-weight:400;
  font-size:16px; line-height:40px; color:var(--body);
  white-space:nowrap;
}

/* ─────── OUR LEARNING YEARS ───────
   Rebuilt as programme cards. The Figma original was a two-column
   masonry sized to a fixed 2416.63px; once Junior Program moved to
   its own tab that masonry could no longer balance, and the fixed
   height left ~1600px of dead space. Cards size to their content
   at every width instead. */
.ly{ width:1492px; padding:0 0 clamp(48px,5vw,72px); background:var(--cream); }
.ly-inner{ position:relative; width:1200px; margin:0 auto; }

.ly-h{
  font-family:var(--f-head); font-weight:700;
  font-size:clamp(28px,3vw,36px); line-height:1.3; color:var(--ink); text-align:center;
}
.ly-sub{
  margin-top:8px;
  font-family:var(--f-body); font-weight:400;
  font-size:clamp(17px,1.5vw,20px); line-height:1.6; color:#4a4a4a; text-align:center;
}

.ly-tabs{ margin-top:clamp(26px,3vw,38px); }

.ly-tablist{ display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.ly-tab{
  padding:15px 35px;
  background:transparent; border:1.6px solid var(--red); border-radius:999px;
  font-family:var(--f-head); font-weight:700;
  font-size:16px; line-height:28px; color:var(--red);
  cursor:pointer; white-space:nowrap;
  transition:background .2s ease, color .2s ease, box-shadow .2s ease;
}
.ly-tab:hover{ background:rgba(137,24,26,.08); }
.ly-tab.is-active{
  background:var(--red); color:var(--white);
  box-shadow:0 10px 22px rgba(137,24,26,.24);
}

/* ---- Programme cards ---- */
.ly-panel{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:clamp(20px,2vw,28px);
  margin-top:clamp(26px,3vw,40px);
  align-items:start;
}
.ly-card{
  display:flex; flex-direction:column;
  background:var(--white); border-radius:16px; overflow:hidden;
  box-shadow:0 14px 36px rgba(0,0,0,.08);
  transition:transform .25s ease, box-shadow .25s ease;
}
.ly-card:hover{ transform:translateY(-4px); box-shadow:0 22px 48px rgba(0,0,0,.12); }

.ly-card-img{
  width:100%; aspect-ratio:4/3; object-fit:cover; display:block;
}
.ly-card-body{ padding:clamp(22px,2.2vw,32px); }

.ly-card--wide{ grid-column:1 / -1; flex-direction:row; align-items:stretch; }
.ly-card--wide .ly-card-img{ width:42%; aspect-ratio:auto; align-self:stretch; }
.ly-card--wide .ly-card-body{ flex:1; align-self:center; }

.ly-t{
  font-family:var(--f-head); font-weight:700;
  font-size:clamp(22px,2vw,28px); line-height:1.3; color:var(--ink);
}
.ly-age{
  margin-top:6px;
  font-family:var(--f-age); font-weight:700;
  font-size:15px; line-height:1.4; letter-spacing:.8px;
  text-transform:uppercase; color:var(--red);
}
.ly-p{
  margin-top:14px;
  font-family:var(--f-body); font-weight:400;
  font-size:17px; line-height:1.75; color:#2c2c2c;
}
.ly-p strong{ font-weight:700; color:var(--ink); }

.ly-aims-h{
  margin-top:20px;
  font-family:var(--f-head); font-weight:700;
  font-size:17px; line-height:1.5; color:var(--ink);
}
.ly-aims{
  margin-top:10px; padding-left:0; list-style:none; counter-reset:aim;
  display:grid; gap:9px;
}
.ly-aims li{
  position:relative; counter-increment:aim; padding-left:34px;
  font-family:var(--f-body); font-size:16px; line-height:1.65; color:#2c2c2c;
}
.ly-aims li::before{
  content:counter(aim);
  position:absolute; left:0; top:2px;
  width:22px; height:22px; border-radius:50%;
  background:rgba(137,24,26,.10); color:var(--red);
  font-family:var(--f-head); font-weight:700; font-size:12px;
  display:flex; align-items:center; justify-content:center;
}

/* ============================================================
   CO-CURRICULAR PAGE — Figma frame 48:1957 (1492 × 2527)
   Reuses .split from the Academics page; header/footer/form shared.
   ============================================================ */

.main--cocurric{ padding-top:40px; }

/* ─────── SPORTS — 550 ─────── */
.cc-sports{ height:550px; }
.cc-sports .split-inner{ height:500px; }
.cc-img{ width:570px; height:500px; }

/* Note: this heading is Nunito Sans 700, not Quicksand like every
   other page heading — matching the Figma node exactly. */
.cc-h{
  position:absolute; left:15px; top:21.7px; width:570px; height:50px;
  font-family:var(--f-body); font-weight:700;
  font-size:25px; line-height:25px; color:var(--body);
}
.cc-p{ top:98.3px; height:360px; }

/* ============================================================
   GALLERY PAGE — Figma frame 48:2620 (1492 × 6918)
   Justified/masonry grid: 138 absolutely-positioned tiles in
   26 rows, every row spanning exactly 1150px with 10px gutters.
   Tile geometry is generated from the Figma node bounds and
   lives inline on each <a> — do not hand-edit those values.
   ============================================================ */

.main--gallery{ padding-top:40px; }

.gp-gap{ width:1492px; background:var(--cream); }
.gp-gap--3{ height:3px; }
.gp-gap--16{ height:16px; }
.gp-gap--50{ height:50px; }

/* ─────── HEADING — 103.08 ─────── */
.gp-head{ width:1492px; height:103.08px; background:var(--cream); }
.gp-head-inner{ width:1200px; margin:0 auto; padding:0 15px; }
.gp-eyebrow{ height:42.6px; padding-top:1.8px; }
.gp-h{
  height:61px;
  font-family:var(--f-head); font-weight:700;
  font-size:42px; line-height:60.48px; color:var(--ink); text-align:center;
}

/* ─────── JUSTIFIED GRID — 5785.5 ─────── */
.gp-section{ width:1492px; height:5785.5px; background:var(--cream); }
.gp-wrap{ width:1200px; margin:0 auto; padding:0 15px; }
.gp-grid{ position:relative; width:1170px; height:5785.5px; overflow:hidden; }

.gp-i{
  position:absolute; display:block;
  border-radius:5px; overflow:hidden;
}
.gp-i img{
  width:100%; height:100%;
  object-fit:cover; display:block;
}

/* ============================================================
   CONTACT PAGE — Figma frame 58:3383 (1492 × 2947)
   Built fluid from the start rather than transcribed to fixed
   pixel heights, so it needs no responsive unpinning.
   ============================================================ */
.main--contact{ padding:clamp(40px,5vw,64px) 0 0; background:var(--cream); }

.ct-inner{ width:min(1170px,100% - clamp(32px,8vw,80px)); margin:0 auto; }

.ct-h{
  font-family:"Roboto Condensed",sans-serif;
  font-size:clamp(34px,4.4vw,50px); line-height:1.2;
  color:#121a24; text-align:center;
}
.ct-h-light{ font-weight:400; }
.ct-h-bold{ font-weight:600; }

.ct-form{
  width:min(857px,100%); margin:clamp(30px,3.5vw,48px) auto 0;
}
/* The admission form pins each .fld with a .fld--N top offset; the contact
   fields have no such modifier, so the inherited position:absolute stacked
   them all at one spot. Keep them in normal document flow instead. */
.ct-form .fld{
  position:static; width:100%; height:auto;
  margin-bottom:18px;
}
.ct-form .fld-i,
.ct-form .phone-wrap{ width:100%; }

.fld-ta{
  display:block; width:100%; min-height:104px; resize:vertical;
  padding:11px 15px;
  background:var(--white);
  border:.8px solid var(--body); border-radius:7px;
  font-family:var(--f-body); font-weight:400; font-size:16px; line-height:1.6;
  color:var(--body); outline:none;
}
.fld-ta::placeholder{ color:var(--muted); }
.fld-ta:focus{ border-color:var(--red); }
.fld-ta[aria-invalid="true"]{ border-color:var(--req); }

/* Same story as .fld — the base rule pins this absolutely for the
   admission form; keep it in flow so it sits below the message box. */
.ct-form .fld-submit{
  position:static; width:100%; height:auto;
  padding-top:14px; text-align:center;
}

/* ---- Contact cards ---- */
.ct-cards-sec{ padding:clamp(48px,6vw,86px) 0 0; }
.ct-cards{
  width:min(1170px,100% - clamp(32px,8vw,80px)); margin:0 auto;
  display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,2vw,28px);
}
.ct-card{
  display:flex; flex-direction:column; align-items:center;
  padding:clamp(30px,3vw,44px) clamp(20px,2vw,30px);
  background:#f6f5f3; border-radius:14px;
  text-align:center;
  transition:transform .25s ease, box-shadow .25s ease;
}
.ct-card:hover{ transform:translateY(-4px); box-shadow:0 18px 40px rgba(0,0,0,.09); }
.ct-ico{ color:var(--red); line-height:0; margin-bottom:12px; }
.ct-card-t{
  font-family:Roboto,sans-serif; font-weight:600;
  font-size:20px; line-height:1.5; letter-spacing:-.2px; color:#121a24;
}
.ct-card-p{
  margin-top:6px;
  font-family:Roboto,sans-serif; font-weight:400;
  font-size:16px; line-height:1.62; color:#121a24;
}
.ct-card-p a{ color:inherit; }
.ct-card-p a:hover{ color:var(--red); text-decoration:underline; }
.ct-card-hours{
  margin-top:10px;
  font-family:Roboto,sans-serif; font-size:16px; line-height:1.5; color:var(--red);
}

/* ---- Map ---- */
.ct-map-sec{ padding:clamp(40px,5vw,70px) 0 clamp(48px,6vw,80px); }
.ct-map-wrap{
  width:min(1140px,100% - clamp(32px,8vw,80px)); margin:0 auto;
  border-radius:14px; overflow:hidden; box-shadow:0 16px 40px rgba(0,0,0,.09);
}
.ct-map{ display:block; width:100%; height:clamp(300px,34vw,482px); border:0; }

@media (max-width:900px){
  .ct-cards{ grid-template-columns:1fr; }
}

/* ============================================================
   ICONS
   The design specifies these as `flaticon` / `elementskit` glyphs,
   which Figma cannot render — they show as blank boxes in the source
   file. They are drawn here as inline SVG at the same layout size.
   ============================================================ */
.foot-map{ border:0; display:block; }
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

/* ============================================================
   INTERACTIVE COMPONENTS
   Added on top of the Figma transcription: mobile nav, Curriculum
   submenu, tab panels, form validation, gallery "View More".
   ============================================================ */

/* ---- Curriculum submenu (desktop hover / touch tap) ---- */
.hdr-nav{ position:relative; }
.nav-sub{
  position:absolute; left:201.19px; top:99px; z-index:40;
  min-width:200px; margin:0; padding:8px 0;
  background:var(--white); border-radius:8px;
  box-shadow:0 12px 30px rgba(0,0,0,.14);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-link--has-sub:hover ~ .nav-sub,
.nav-sub:hover,
.nav-link--has-sub[aria-expanded="true"] ~ .nav-sub{
  opacity:1; visibility:visible; transform:translateY(0);
}
.nav-sub a{
  display:block; padding:9px 20px;
  font-family:var(--f-head); font-weight:700; font-size:15px; line-height:22px;
  color:var(--ink);
}
.nav-sub a:hover{ background:var(--cream); color:var(--red); }

/* ---- Mobile nav toggle (hidden until the mobile breakpoint) ---- */
.nav-toggle{
  display:none;
  width:44px; height:44px; padding:10px;
  background:none; border:0; cursor:pointer;
}
.nav-toggle-bar{
  display:block; width:100%; height:2px; margin:4px 0;
  background:var(--red); border-radius:2px;
  transition:transform .25s ease, opacity .2s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1){ transform:translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2){ opacity:0; }
body.nav-open .nav-toggle-bar:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* ---- Tabs ---- */
.ly-tab{ opacity:.72; }
.ly-tab.is-active{ opacity:1; }
.ly-tab:focus-visible{ outline:3px solid var(--ink); outline-offset:3px; }
.ly-panel[hidden]{ display:none; }

/* ---- Form validation + status ---- */
.fld-err{
  margin-top:6px;
  font-family:var(--f-body); font-weight:500; font-size:14px; line-height:20px;
  color:var(--req);
}
.fld-i[aria-invalid="true"],
.fld-sel[aria-invalid="true"]{ border-color:var(--req); }
.enq-done{
  margin-top:14px;
  font-family:var(--f-body); font-weight:600; font-size:16px; line-height:26px;
  color:#1b7f4b; text-align:center;
}
.enq-done.is-error{ color:var(--req); }
.btn-submit:disabled{ opacity:.6; cursor:progress; }

/* ---- Gallery "View More" ---- */
.gp-i.is-hidden{ display:none; }
.gp-grid.is-progressive{ transition:height .35s ease; }
.gp-more{ width:1492px; display:flex; justify-content:center; padding:26px 0 0; background:var(--cream); }
.gp-more-btn{
  display:inline-flex; align-items:center; gap:8px;
  min-height:52.8px; padding:0 34px;
  background:var(--red); border:1.6px solid var(--red); border-radius:28px;
  font-family:var(--f-head); font-weight:700; font-size:14px; line-height:52.8px;
  text-transform:uppercase; letter-spacing:.4px;
  color:var(--white); cursor:pointer;
  transition:background .2s ease, color .2s ease;
}
.gp-more-btn:hover{ background:transparent; color:var(--red); }
.gp-more-count{ font-weight:500; text-transform:none; letter-spacing:0; opacity:.85; }
.gp-more-btn[hidden]{ display:none; }

/* Focus visibility for keyboard users, site-wide. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline:3px solid var(--red); outline-offset:2px;
}

/* ============================================================
   ALIGNMENT FIXES
   Figma baked each card's height from its own content, so cards
   in a row ended up 404 / 434 / 437px tall and their bottom edges
   never lined up. Each row now stretches to its tallest card.
   Row heights are unchanged, so every section height still matches
   the Figma frame exactly.
   ============================================================ */
.why-row{ align-items:stretch; }
.why-cell{ display:flex; }
.why-card,
.why-card--tall,
.why-card--tallest{ height:auto; align-self:stretch; flex:1; }
.why-row--1 .why-card{ min-height:437px; }
.why-row--2 .why-card{ min-height:434px; }

.progs-row{ align-items:stretch; }
.prog-cell{ display:flex; }
.prog-card,
.prog-card--3,
.prog-card--4{ height:auto; align-self:stretch; flex:1; min-height:525.11px; }
.prog-body{ height:auto; display:flex; flex-direction:column; }
.prog-link{ margin-top:auto; }

.team-row{ align-items:stretch; }
.team-cell{ display:flex; }
.team-card,
.team-card--1,
.team-card--2{ height:auto; align-self:stretch; flex:1; min-height:914.01px; }

/* ============================================================
   RESPONSIVE
   Desktop at 1492px and above is the untouched Figma
   transcription. Everything below adapts.
   ============================================================ */
.page{ width:100%; max-width:1492px; }

/* ---------- Below the Figma frame: unpin the fixed geometry ---------- */
@media (max-width:1491px){

  .header,.hero,.stats,.about,.why,.prog-head,.progs,.learn-head,.tiles,
  .gap-20,.gallery,.enquiry,.footer,.footer-main,.footer-bottom,.footer-top,
  .aw,.team,.mv-head,.mv,.split,.ac-why,.ac-motivate,.ac-teaching,.ly,
  .gp-head,.gp-section,.gp-gap,.gp-more,
  .hero-content,.about-inner,.aw-inner,.split-inner,.enquiry-inner,
  .footer-inner,.footer-bottom-inner,.stats-row,.why-inner,.progs-row,
  .tiles-row,.mv-row,.team-row,.gallery-inner,.gp-wrap,.gp-grid,.ly-inner,
  .sec-head,.sec-head--why,.sec-head--gal,.gp-head-inner,.enq-form,
  .why-row,.about-copy,.aw-copy,.split-copy,.about-media,.aw-media,.split-media{
    width:100%; max-width:100%; height:auto; min-height:0;
  }

  /* These are two-class selectors in the page sections above, so they
     outrank the single-class reset and must be unpinned explicitly.
     Leaving them pinned is what pushed the tick list out of its section. */
  .ac-why .split-inner,.ac-motivate .split-inner,.ac-teaching .split-inner,
  .cc-sports .split-inner,.about .about-inner,.aw .aw-inner{ height:auto; }

  /* Every remaining fixed width from the Figma transcription. */
  .hero-title,.hero-sub,.about-media img,.about-p,
  .why-cell,.why-card,.why-imgwrap,.why-p,.why-cta,
  .prog-cell,.prog-card,.prog-imgwrap,.prog-imgwrap img,.prog-body,
  .learn-p,.tile-cell,.tile,.tile-bg,.tile-t,.tile-p,.gal-grid,
  .enq-sub,.enq-form,.fld,.fld-i,.phone-wrap,.fld-submit,
  .foot-col--left,.foot-logo,.foot-list,.foot-col--right,.foot-map,
  .foot-legal,.foot-copy,.aw-copy,.aw-p,.aw-media img,
  .team-cell,.team-card,.team-imgwrap,.team-imgwrap img,.team-body,
  .mv-card,.split-p,.ac-why-img,.ac-mot-img,.ac-tea-img,
  .ly-sub,.ly-tabs,.ly-col,.ly-img,.cc-img,.cc-h,.gp-head-inner{
    width:100%; max-width:100%;
  }

  /* Figma baked a fixed height onto every text run. Let them size
     to their own content so nothing clips or leaves a gap. */
  .sec-head .eyebrow,.sec-head .sec-h,.eyebrow,
  .hero-eyebrow,.hero-title,.hero-sub,
  .about-copy .eyebrow,.about-h,.about-p,
  .why-t,.why-t--2line,.why-imgwrap,.why-p,
  .prog-t,.prog-age,.prog-p,.prog-body,.prog-imgwrap,
  .prog-imgwrap--3,.prog-imgwrap--4,.learn-p,
  .aw-copy .eyebrow,.aw-h,.aw-p,
  .team-name,.team-role,.team-p,.team-imgwrap,.team-body,
  .team-imgwrap--1,.team-imgwrap--2,
  .mv-t,.split-h,.split-p,.cc-h,.cc-p,
  .enq-h,.enq-sub,.fld-l,.ly-t,.ly-sub,.ly-h,.gp-h,
  .stat,.stat-num,.stat-label,
  .foot-li,.foot-ico,.foot-txt,.tick,.tick-ico,.btn-read{
    height:auto; min-height:0;
  }

  .hero-title{ margin-bottom:6px; }
  .hero-eyebrow{ margin-bottom:4px; }

  /* Anything Figma positioned absolutely returns to normal flow. */
  .hero-eyebrow,.hero-title,.hero-sub,.hero-cta,
  .about-p,.about-actions,.about-actions .btn-pill,.btn-read,
  .split-p,.split-btn,.cc-h,.tick-list,.enq-sub,.enq-form,.fld,.fld-submit,
  .ly-tabs,.ly-sub,.stats-row,.stat,.stat-num,.stat-label,.gp-more{
    position:static; left:auto; top:auto; right:auto;
  }

  /* Homepage gallery — same justified grid as the Gallery page. */
  .gal-grid{ column-count:4; column-gap:10px; height:auto; overflow:visible; }
  .gal-i,.gal-i--w{
    position:static !important;
    width:100% !important; height:auto !important;
    display:block; break-inside:avoid; margin-bottom:10px;
  }
  .gal-i img{ width:100%; height:auto; }

  .why-cta{ padding-top:26px; }
  .learn-p{ padding-inline:clamp(16px,4vw,40px); }
  .learn-p--2{ margin-top:14px; }

  .page{ overflow-x:hidden; }

  /* ---- Shared container ---- */
  .about-inner,.aw-inner,.split-inner,.why-inner,.progs-row,.tiles-row,
  .mv-row,.team-row,.footer-inner,.footer-bottom-inner,.sec-head,
  .enquiry-inner,.ly-inner,.gp-head-inner,.gp-wrap,.gallery-inner,.stats-row{
    margin-inline:auto; padding-inline:clamp(16px,4vw,40px);
  }

  /* ---- Header ---- */
  .header{
    display:flex; flex-wrap:wrap; align-items:center; gap:16px;
    padding:12px clamp(16px,4vw,40px); min-height:96px;
  }
  .hdr-logo{ position:static; width:auto; height:auto; flex:0 0 auto; }
  .hdr-logo img{ width:auto; height:72px; }
  .hdr-nav{ position:static; margin-left:auto; padding-left:0; height:auto; }
  .nav-link{ height:auto; padding:10px 12px; }
  .btn-apply-hdr{ position:static; flex:0 0 auto; }
  .nav-sub{ left:auto; top:100%; }

  /* ---- Hero ---- */
  .hero{ padding:0; }
  .hero-content{ display:grid; min-height:clamp(380px,46vw,600px); }
  .hero-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .hero-content::after{
    content:""; position:absolute; inset:0;
    background:linear-gradient(90deg,rgba(248,244,238,.94) 0%,rgba(248,244,238,.72) 46%,rgba(248,244,238,0) 78%);
  }
  .hero-copy{
    display:block; position:relative; z-index:2;
    align-self:center; width:min(660px,64%);
    padding:40px clamp(16px,4vw,40px);
  }
  .hero-title{ font-size:clamp(34px,5.2vw,72px); line-height:1.22; width:auto; }
  .hero-eyebrow{ font-size:clamp(26px,3vw,36px); line-height:1.3; width:auto; }
  .hero-sub{ width:auto; margin-top:10px; }
  .hero-cta{ display:inline-flex; justify-content:center; margin-top:22px; width:auto; }

  /* ---- Stats ---- */
  .stats{ border-radius:0; padding:36px 0; }
  .stats-row{ display:flex; flex-wrap:wrap; justify-content:center; gap:28px 0; }
  .stat{ flex:1 1 200px; display:flex; align-items:baseline; justify-content:center; gap:10px; }
  .stat-num{ white-space:nowrap; }
  .stat-label{ text-align:left; }
  .stat-suffix,.stat-suffix--pct{ width:auto; }

  /* ---- Split bands (about / academics / co-curricular) ---- */
  .about-inner,.aw-inner,.split-inner{ display:flex; flex-wrap:wrap; gap:32px clamp(20px,3vw,40px); align-items:center; }
  .about-media,.aw-media,.split-media{ flex:1 1 380px; padding:0; }
  .about-copy,.aw-copy,.split-copy{ flex:1 1 420px; padding:0; }
  .about-media img,.aw-media img,.split-media img,
  .ac-why-img,.ac-mot-img,.ac-tea-img,.cc-img{
    width:100%; height:auto; margin:0; object-fit:cover;
  }
  .about-p,.aw-p,.split-p,.cc-p{ width:auto; margin-top:18px; }
  .about-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:24px; }
  .btn-read{ width:auto; height:auto; padding:14px 0; }
  .split-btn{ margin-top:24px; }
  .ac-why-h{ padding-top:0; height:auto; }

  /* ---- Tick list ---- */
  .split-copy .tick-list{ width:100%; }
  .ac-teaching .split-copy{ display:flex; flex-direction:column; }
  .tick-list{ height:auto; margin-top:8px; }
  .tick-list--1{ margin-top:22px; }
  .tick-t{ white-space:normal; }

  /* ---- Card rows ---- */
  .why-row,.progs-row,.tiles-row,.mv-row,.team-row{
    display:flex; flex-wrap:wrap; gap:26px 0; justify-content:center;
  }
  .why-cell{ flex:1 1 330px; padding:0 13px; }
  .prog-cell{ flex:1 1 280px; padding:0 13px; }
  .tile-cell{ flex:1 1 330px; padding:0 13px; }
  .team-cell{ flex:1 1 460px; padding:0 13px; }
  .why-card,.prog-card,.team-card{ width:100%; min-height:0; }
  .why-imgwrap,.prog-imgwrap,.team-imgwrap,.prog-body,.team-body{ width:100%; height:auto; }
  .prog-imgwrap img,.team-imgwrap--1 img,.team-imgwrap--2 img{
    width:100%; height:auto; margin:0;
  }
  .why-imgwrap{ display:flex; justify-content:center; align-items:center; padding-bottom:18px; }
  .why-t,.why-t--2line,.prog-t,.team-name{ height:auto; }
  .why-p{ width:auto; }
  .prog-p,.team-p,.team-p--1,.team-p--2{ height:auto; }
  .mv-row{ gap:26px; }
  .mv-card{ flex:1 1 300px; width:auto; height:auto; min-height:230px; padding:34px 26px; }
  .mv-t{ height:auto; }

  .tile{ width:100%; height:clamp(240px,26vw,280px); }
  .tile-bg{ width:100%; height:100%; }
  .tile-t{ position:static; width:auto; height:auto; padding:28px 20px 0; line-height:1.3; }
  .tile-p{ position:static; width:auto; height:auto; padding:12px 22px 24px; }
  .tile{ display:flex; flex-direction:column; }
  .tile-t,.tile-p{ z-index:2; }

  .progs-deco,.team-deco{ display:none; }

  /* ---- Learning years (cards size themselves) ---- */
  .ly-tablist{ flex-wrap:wrap; }

  /* ---- Gallery grid → masonry columns ---- */
  .gp-grid{ column-count:4; column-gap:10px; height:auto !important; overflow:visible; }
  .gp-i{
    position:static !important;
    width:100% !important; height:auto !important;
    display:block; break-inside:avoid; margin-bottom:10px;
  }
  .gp-i img{ width:100%; height:auto; }
  .gp-head-inner .gp-h{ height:auto; }

  /* ---- Enquiry form ---- */
  .enq-h{ height:auto; }
  .enq-sub{ width:auto; height:auto; margin:10px auto 0; }
  .enq-form{ margin-top:34px; }
  .fld{ width:100%; height:auto; padding:0; margin-bottom:18px; }
  .fld-i,.phone-wrap{ width:100%; }
  .fld-sel{ width:min(260px,100%); }
  .fld-submit{ width:100%; height:auto; padding-top:10px; }

  /* ---- Footer ---- */
  .footer-inner{ flex-wrap:wrap; gap:32px 0; padding-block:44px; }
  .foot-col--left,.foot-col--right{ flex:1 1 340px; width:auto; padding:0; }
  .foot-logo{ width:auto; height:auto; }
  .foot-logo img{ width:200px; height:auto; }
  .foot-list{ width:auto; }
  .foot-map{ width:100%; height:clamp(280px,34vw,518px); margin-top:0; }
  .footer-bottom{ height:auto; padding:16px 0; }
  .footer-bottom-inner{ flex-wrap:wrap; gap:8px 0; height:auto; }
  .foot-legal,.foot-copy{ width:auto; padding:0; }
  .foot-copy{ margin-left:auto; text-align:right; }
}

/* ---------- Tablet ---------- */
@media (max-width:1024px){
  .sec-h,.gp-h{ font-size:clamp(28px,4vw,42px); line-height:1.28; height:auto; }
  .aw-h,.split-h,.ly-h,.enq-h,.about-h{ font-size:clamp(24px,3.4vw,38px); line-height:1.3; height:auto; }
  .gp-grid,.gal-grid{ column-count:3; }
  .foot-copy{ margin-left:0; text-align:left; }
}

/* ---------- Mobile ---------- */
@media (max-width:900px){
  .nav-toggle{ display:block; margin-left:auto; order:2; }
  .btn-apply-hdr{ order:3; }

  .hdr-nav{
    order:4; flex:1 0 100%; width:100%;
    display:none; flex-direction:column; align-items:stretch;
    margin:12px 0 4px; padding:8px 0;
    border-top:1px solid rgba(35,35,35,.12);
  }
  body.nav-open .hdr-nav{ display:flex; }
  .nav-link{ padding:14px 4px; border-bottom:1px solid rgba(35,35,35,.08); }
  .nav-link--has-sub{ justify-content:space-between; }
  .nav-sub{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; background:transparent; padding:0 0 6px 16px;
    display:none;
  }
  .nav-link--has-sub[aria-expanded="true"] ~ .nav-sub{ display:block; }
  .nav-sub a{ padding:11px 4px; font-size:14px; }

  .hero-copy{ width:100%; }
  .hero-content::after{
    background:linear-gradient(180deg,rgba(248,244,238,.93) 0%,rgba(248,244,238,.80) 55%,rgba(248,244,238,.55) 100%);
  }

  .about-inner,.aw-inner,.split-inner{ flex-direction:column; align-items:stretch; }
  .split-media,.about-media,.aw-media{ order:-1; }
  .ac-motivate .split-media{ order:-1; }

  .gp-grid,.gal-grid{ column-count:2; }
  .stat{ flex:1 1 46%; }
  .tick-list{ width:100%; }
  .ly-panel{ flex-direction:column; }
}

/* ---------- Small mobile ---------- */
@media (max-width:600px){
  .header{ padding:10px 16px; min-height:80px; }
  .hdr-logo img{ height:58px; }
  .btn-apply-hdr{ width:auto; padding:0 18px; height:44px; font-size:13px; }

  .hero-title{ font-size:clamp(28px,8vw,38px); }
  .hero-eyebrow{ font-size:26px; }

  .stats-row{ gap:22px 0; }
  .stat{ flex:1 1 100%; justify-content:flex-start; }
  .stat-num{ font-size:38px; line-height:44px; }

  /* Two columns even on the smallest screens — one image per row
     turned the gallery into thousands of pixels of scrolling. */
  .gp-grid,.gal-grid{ column-count:2; column-gap:8px; }
  .gp-i,.gal-i{ margin-bottom:8px; }

  .mv-card{ min-height:0; padding:28px 22px; }
  .mv-t{ font-size:38px; line-height:1.2; }

  /* The tile artwork includes its own type treatment. Keep its exported
     aspect ratio so that copy remains crisp rather than being stretched. */
  .tile{ display:block; height:auto; min-height:0; aspect-ratio:441 / 280; }
  .tile-bg{ object-fit:cover; }

  .why-cell,.prog-cell,.tile-cell,.team-cell{ flex-basis:100%; padding:0; }
  .foot-copy{ font-size:14px; }
  .foot-txt{ font-size:15px; line-height:1.5; }
  .foot-li{ height:auto; align-items:flex-start; padding:8px 0; }
  .foot-ico{ height:auto; padding-top:4px; }
}

/* ============================================================
   PAGE POLISH — below the Figma frame width
   The transcription pinned every box to a pixel height, which is
   what broke these pages once the viewport got narrower. Here the
   split bands become a proper two-column layout: the image is
   given an aspect ratio so it can never dwarf its text, columns
   centre against each other, and the measure is capped for
   readability.
   ============================================================ */
@media (max-width:1491px){

  /* ---- Section rhythm ---- */
  .split,.aw,.team,.mv,.mv-head,.ly,.about,.why,.progs,.prog-head,
  .learn-head,.tiles,.gallery,.enquiry{
    padding-block:clamp(48px,6vw,84px);
  }
  .split + .split{ padding-top:0; }
  .prog-head,.mv-head,.learn-head{ padding-bottom:clamp(20px,2.4vw,32px); }
  .progs,.mv,.tiles{ padding-top:0; }

  /* ---- Split bands ---- */
  .split-inner,.about-inner,.aw-inner{
    display:grid; grid-template-columns:1fr 1fr;
    gap:clamp(28px,4vw,64px); align-items:center;
  }
  .split-media,.about-media,.aw-media,
  .split-copy,.about-copy,.aw-copy{ flex:initial; min-width:0; }

  .split-media img,.about-media img,.aw-media img,
  .ac-why-img,.ac-mot-img,.ac-tea-img,.cc-img{
    width:100%; height:100%; max-height:clamp(320px,42vw,520px);
    aspect-ratio:4/3; object-fit:cover;
    border-radius:14px; box-shadow:0 18px 40px rgba(0,0,0,.10);
  }
  .ac-why-img{ aspect-ratio:5/6; max-height:clamp(380px,50vw,620px); }

  .split-h,.about-h,.aw-h{ text-align:left; }
  .split-copy .eyebrow,.aw-copy .eyebrow{ text-align:left; }
  .split-p,.about-p,.aw-p,.cc-p{ max-width:62ch; }

  /* ---- Tick list → real two-column grid ---- */
  .ac-teaching .split-copy{ display:block; }
  .tick-list{
    display:grid; grid-template-columns:1fr; gap:2px;
    width:auto; margin:0; padding:0;
  }
  .tick-list--1{ margin-top:26px; }
  .tick{ height:auto; padding:7px 0; align-items:flex-start; }
  .tick-ico{ height:auto; padding-top:5px; }
  .tick-t{ line-height:1.55; }

  /* ---- Learning years ---- */
  .ly-p{ max-width:70ch; }

  /* ---- Mission cards / tiles get a touch more air ---- */
  .mv-card{ box-shadow:0 14px 34px rgba(49,49,49,.14); }
}

/* The DOM order already alternates which side the image sits on
   (media-first, copy-first, media-first), so the zigzag is free. */

@media (max-width:900px){
  .split-inner,.about-inner,.aw-inner,.ly-panel{ grid-template-columns:1fr; }
  .ly-card--wide{ flex-direction:column; }
  .ly-card--wide .ly-card-img{ width:100%; aspect-ratio:16/10; }
  .split-media,.about-media,.aw-media{ order:-1; }
  .tick-list--1,.tick-list--2{ margin-top:0; }
  .tick-list--1{ margin-top:22px; }
}

@media (min-width:601px) and (max-width:1491px){
  .tick-list{ grid-template-columns:1fr 1fr; column-gap:24px; }
  .tick-list--2{ margin-top:2px; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
}

/* ============================================================
   CAREERS PAGE
   A content-led hiring page using the school palette and the
   warmth of the existing editorial layouts.
   ============================================================ */
.main--careers{ padding:0; background:var(--cream); }
.careers-wrap{ width:min(1170px,100% - clamp(32px,8vw,80px)); margin:0 auto; }

.careers-eyebrow{ text-align:left; }
.careers-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:54px; padding:12px 28px; border:1.6px solid var(--red); border-radius:999px;
  font-family:var(--f-head); font-weight:700; font-size:14px; line-height:1.2;
  text-transform:uppercase; letter-spacing:.35px; transition:background .2s ease,color .2s ease,transform .2s ease;
}
.careers-btn:hover{ transform:translateY(-2px); }
.careers-btn--primary{ margin-top:30px; background:var(--red); color:var(--white); }
.careers-btn--primary:hover{ background:transparent; color:var(--red); }
.careers-btn--light{ width:100%; margin-top:2px; background:var(--white); color:var(--red); }
.careers-btn--light:hover{ background:#f8f4ee; }
.careers-story{ padding:clamp(64px,8vw,118px) 0; }
.careers-story-grid{
  display:grid; grid-template-columns:minmax(0,1.12fr) minmax(340px,.72fr);
  gap:clamp(44px,8vw,130px); align-items:center;
}
.careers-eyebrow--left{ text-align:left; }
.careers-h{
  max-width:590px; margin-top:7px;
  font-family:var(--f-head); font-weight:700; font-size:clamp(30px,3.3vw,43px); line-height:1.25; color:var(--ink);
}
.careers-story-copy > p:not(.careers-eyebrow){
  max-width:660px; margin-top:20px;
  font-family:var(--f-body); font-size:16px; line-height:1.86; color:#252525;
}
.careers-apply-card{
  position:relative; padding:clamp(32px,3.4vw,48px); overflow:hidden;
  background:var(--red); border-radius:16px; color:var(--white);
  box-shadow:0 20px 48px rgba(108,24,26,.20);
}
.careers-apply-card::after{
  content:""; position:absolute; right:-75px; bottom:-78px;
  width:230px; height:230px; border:1px solid rgba(255,255,255,.2); border-radius:50%; pointer-events:none;
}
.careers-apply-card > *{ position:relative; z-index:1; }
.careers-apply-icon{ display:flex; width:54px; height:54px; align-items:center; justify-content:center; border-radius:50%; background:rgba(255,255,255,.14); }
.careers-card-kicker{
  margin-top:20px;
  font-family:var(--f-age); font-weight:700; font-size:14px; line-height:1.3; letter-spacing:1px; text-transform:uppercase;
}
.careers-card-title{ margin-top:7px; font-family:var(--f-head); font-weight:700; font-size:clamp(28px,2.6vw,35px); line-height:1.2; }
.careers-card-copy{ margin-top:18px; font-family:var(--f-body); font-size:16px; line-height:1.65; }
.careers-email{ display:inline-block; margin-top:10px; font-family:var(--f-head); font-weight:700; font-size:20px; line-height:1.4; text-decoration:underline; text-underline-offset:4px; }
.careers-email:hover{ color:#f8d9d9; }
.careers-or{ display:block; margin:14px 0; font-family:var(--f-body); font-size:14px; line-height:1; opacity:.85; text-align:center; }
.careers-card-note{ margin-top:18px; font-family:var(--f-body); font-size:14px; line-height:1.55; opacity:.87; }

.careers-openings{ padding:clamp(64px,8vw,112px) 0; background:#ebe2db; }
.careers-section-head{ max-width:760px; margin:0 auto; text-align:center; }
.careers-section-head .careers-eyebrow{ text-align:center; }
.careers-section-title{ margin-top:5px; font-family:var(--f-head); font-weight:700; font-size:clamp(32px,3.5vw,45px); line-height:1.25; color:var(--ink); }
.careers-section-head > p:last-child{ margin:16px auto 0; max-width:650px; font-family:var(--f-body); font-size:16px; line-height:1.7; color:#343434; }
.careers-feature-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(20px,2.5vw,34px); margin-top:clamp(38px,5vw,58px); }
.career-opening{
  display:flex; flex-direction:column; min-height:295px; padding:clamp(28px,3vw,42px);
  background:var(--white); border-radius:14px; box-shadow:0 14px 34px rgba(61,43,40,.08);
}
.career-opening-label{ font-family:var(--f-age); font-weight:700; font-size:13px; line-height:1.4; letter-spacing:1px; text-transform:uppercase; color:var(--red); }
.career-opening h3{ margin-top:10px; font-family:var(--f-head); font-weight:700; font-size:clamp(24px,2.4vw,31px); line-height:1.22; color:var(--ink); }
.career-opening h3 span{ display:block; margin-top:3px; font-size:.7em; line-height:1.35; color:var(--red); }
.career-opening-copy{ margin-top:16px; font-family:var(--f-body); font-size:16px; line-height:1.7; color:#3d3d3d; }
.career-qualification{ margin-top:auto; padding-top:22px; border-top:1px solid rgba(35,35,35,.14); }
.career-qualification span{ display:block; font-family:var(--f-age); font-weight:700; font-size:12px; line-height:1.4; letter-spacing:.8px; text-transform:uppercase; color:#777; }
.career-qualification strong{ display:block; margin-top:5px; font-family:var(--f-head); font-weight:700; font-size:16px; line-height:1.5; color:var(--ink); }

.careers-roles-block{ display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(30px,5vw,72px); margin-top:clamp(38px,5vw,62px); padding:clamp(32px,4.4vw,56px); background:#f8f4ee; border-radius:14px; }
.careers-roles-intro .careers-card-kicker{ margin-top:0; color:var(--red); }
.careers-roles-intro h2{ margin-top:6px; font-family:var(--f-head); font-weight:700; font-size:clamp(27px,2.8vw,36px); line-height:1.25; color:var(--ink); }
.careers-roles-intro > p:last-child{ margin-top:16px; font-family:var(--f-body); font-size:16px; line-height:1.78; color:#343434; }
.careers-role-list{ display:grid; gap:0; align-content:center; }
.career-role{ padding:18px 0; border-bottom:1px solid rgba(35,35,35,.14); }
.career-role:first-child{ padding-top:0; }
.career-role:last-child{ padding-bottom:0; border-bottom:0; }
.career-role h3{ font-family:var(--f-head); font-weight:700; font-size:20px; line-height:1.4; color:var(--ink); }
.career-role h3 span{ margin-left:5px; font-family:var(--f-body); font-weight:600; font-size:15px; color:var(--red); }
.career-role p{ margin-top:4px; font-family:var(--f-body); font-size:16px; line-height:1.6; color:#373737; }
.careers-note{ display:flex; align-items:flex-start; gap:10px; max-width:860px; margin:clamp(30px,4vw,46px) auto 0; }
.careers-note-mark{ flex:0 0 auto; padding-top:3px; font-family:var(--f-script); font-size:27px; line-height:1; color:var(--red); }
.careers-note p{ font-family:var(--f-body); font-size:15px; line-height:1.65; color:#313131; }

.careers-closing{ padding:clamp(58px,7vw,92px) 0; background:var(--cream); }
.careers-closing-inner{ display:flex; align-items:center; justify-content:space-between; gap:30px 70px; }
.careers-closing h2{ max-width:700px; margin-top:6px; font-family:var(--f-head); font-weight:700; font-size:clamp(30px,3.3vw,43px); line-height:1.25; color:var(--ink); }
.careers-closing p:last-child{ margin-top:14px; font-family:var(--f-body); font-size:16px; line-height:1.7; color:#343434; }
.careers-closing .careers-btn{ flex:0 0 auto; margin-top:0; }

@media (max-width:900px){
  .careers-story-grid,.careers-roles-block{ grid-template-columns:1fr; }
  .careers-story-grid{ gap:36px; }
  .careers-apply-card{ width:min(520px,100%); }
  .careers-closing-inner{ flex-direction:column; align-items:flex-start; }
}

@media (max-width:600px){
  .careers-feature-grid{ grid-template-columns:1fr; }
  .careers-apply-card,.careers-roles-block,.career-opening{ padding:28px 24px; }
  .careers-email{ font-size:18px; }
  .careers-btn{ width:100%; }
  .careers-closing .careers-btn{ width:100%; }
}

/* ============================================================
   RESPONSIVE POLISH
   A stable statistics grid and consistently visible programme CTAs
   at desktop, tablet, and phone widths.
   ============================================================ */
.stats{
  width:100%; height:auto; min-height:0; padding:34px 0;
  background:linear-gradient(112deg,#f6f2ef 0%,#ebe2db 100%);
  border-radius:0; box-shadow:none;
}
.stats-row{
  position:static; display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  width:min(1200px,calc(100% - 64px)); height:auto; margin:0 auto; padding:0;
}
.stat{
  position:relative; left:auto !important; top:auto; width:auto; height:auto; min-height:74px;
  display:flex; align-items:center; justify-content:center; gap:13px; padding:0 28px;
}
.stat + .stat::before{
  content:""; position:absolute; left:0; top:12px; bottom:12px; width:1px;
  background:rgba(137,24,26,.18);
}
.stat-num,
.stat-num--4{
  position:static; left:auto; top:auto;
  font-size:clamp(42px,3.2vw,52px); line-height:1; letter-spacing:-1.5px;
}
.stat-suffix,.stat-suffix--pct{ width:auto; }
.stat-label,
.stat-label--1,.stat-label--2,.stat-label--3,.stat-label--4{
  position:static; left:auto; top:auto;
  font-size:16px; line-height:1.4; color:var(--ink); text-align:left;
}

.prog-link{
  display:inline-flex; align-items:center; justify-content:center;
  width:auto; min-width:132px; min-height:44px; margin:22px auto 0; padding:10px 20px;
  background:var(--red); border:1.5px solid var(--red); border-radius:999px;
  font-family:var(--f-head); font-weight:700; font-size:13px; line-height:1.15;
  letter-spacing:.35px; text-transform:uppercase; color:var(--white);
  transition:background .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.prog-link:hover{
  background:transparent; color:var(--red); transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(137,24,26,.13);
}
.prog-link:active{ transform:translateY(0); }

@media (max-width:1024px){
  .stats{ padding:28px 0; }
  .stats-row{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:rgba(137,24,26,.14); }
  .stat{ min-height:96px; justify-content:flex-start; padding:20px 28px; background:#f6f2ef; }
  .stat + .stat::before{ display:none; }
}

@media (max-width:600px){
  .stats{ padding:20px 0; }
  .stats-row{
    width:calc(100% - 32px); gap:10px; background:transparent;
  }
  .stat{
    min-height:118px; flex-direction:column; align-items:flex-start; justify-content:center; gap:7px;
    padding:17px 15px; background:rgba(255,255,255,.72); border:1px solid rgba(137,24,26,.10); border-radius:12px;
  }
  .stat-num,.stat-num--4{ font-size:clamp(35px,10vw,42px); letter-spacing:-1px; }
  .stat-label,.stat-label--1,.stat-label--2,.stat-label--3,.stat-label--4{
    font-size:14px; line-height:1.32; text-align:left;
  }
  .prog-link{ width:min(210px,100%); min-height:46px; margin-top:24px; }
}

/* The expanded navigation needs more room now that Careers is included.
   Switch to the accessible menu before the header begins to wrap. */
@media (max-width:1100px){
  .nav-toggle{ display:block; margin-left:auto; order:2; }
  .btn-apply-hdr{ order:3; }
  .hdr-nav{
    order:4; flex:1 0 100%; width:100%;
    display:none; flex-direction:column; align-items:stretch;
    margin:12px 0 4px; padding:8px 0;
    border-top:1px solid rgba(35,35,35,.12);
  }
  body.nav-open .hdr-nav{ display:flex; }
  .nav-link{ padding:14px 4px; border-bottom:1px solid rgba(35,35,35,.08); }
  .nav-link--has-sub{ justify-content:space-between; }
  .nav-sub{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; background:transparent; padding:0 0 6px 16px;
    display:none;
  }
  .nav-link--has-sub[aria-expanded="true"] ~ .nav-sub{ display:block; }
  .nav-sub a{ padding:11px 4px; font-size:14px; }
}

/* Programme CTAs need a clear finish below the button on fluid cards. */
@media (max-width:1491px){
  .prog-body{ padding-bottom:28px; }
}
