/* ===== IES design tokens =====
   Greens follow the Gadden reference; the reference's light brown is replaced
   by a soft version of the IES crest yellow (#fbbd14 -> #ffd966). */
:root {
  --green-950: #072a1f;
  --green-900: #0a3d2c;
  --green-800: #1f5231;
  --green-700: #22702e;
  --green-600: #2d8a3b;
  --green-500: #4fa95c;
  --green-200: #cfe6d3;
  --green-100: #e4f1e6;
  --green-50:  #f2f8f3;
  --yellow:     #ffd966;
  --yellow-400: #ffe28f;
  --yellow-100: #fff3cc;
  --yellow-50:  #fffaea;
  --cream:     #fbfaf6;
  --ink:       #14261c;
  --muted:     #5a6b60;
  --white:     #ffffff;
  --radius:    20px;
  --radius-lg: 28px;
  --shadow:    0 14px 40px -18px rgba(7, 42, 31, .28);
  --shadow-sm: 0 8px 24px -14px rgba(7, 42, 31, .25);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --leaves: url("assets/pattern-leaves.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--green-900); font-weight: 700; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--cream { background: var(--cream); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 52px; }
.section__head p { color: var(--muted); }
.section__head--light h2 { color: var(--white); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--green-700); margin-bottom: 12px; }
.eyebrow .ico { width: 18px; height: 18px; }
.eyebrow--light { color: var(--yellow); }

/* ===== Buttons & links ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 14px 28px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--green-950); }
.btn--yellow:hover { background: var(--yellow-400); }
.btn--green { background: var(--green-700); color: var(--white); }
.btn--green:hover { background: var(--green-600); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--sm { padding: 11px 22px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--green-700); text-decoration: none; }
.link .ico { transition: transform .2s; }
.link:hover { color: var(--green-900); }
.link:hover .ico { transform: translate(2px, -2px); }

.round-icon, .round-btn { display: grid; place-items: center; border-radius: 50%; flex: none; }
.round-icon { width: 64px; height: 64px; background: var(--white); color: var(--green-700); box-shadow: var(--shadow-sm); }
.round-icon .ico { width: 28px; height: 28px; }
.round-btn { width: 42px; height: 42px; background: var(--white); color: var(--green-800); transition: background .2s, transform .2s; }
.round-btn:hover { background: var(--yellow); transform: rotate(8deg); }

/* ===== Photo slots =====
   Each slot shows the photo if assets/photos/<name>.jpg exists, otherwise a
   branded placeholder (crest on soft green). See assets/photos/README.md. */
.ph { position: relative; overflow: hidden; border-radius: var(--radius-lg); background:
    var(--photo, none) center / cover no-repeat,
    var(--ph-icon, url("assets/ies-crest.png")) center 46% / 34% auto no-repeat,
    linear-gradient(150deg, var(--green-50), var(--green-100)); }
.ph--about-main { --photo: url("assets/photos/pupil-book.jpg"); }
.ph--about-small { --photo: url("assets/photos/study-pair.jpg"); background-position: center 30%, center 46%, 0 0; }
.ph--why { --photo: url("assets/photos/art-class.jpg"); }
.ph--lab { --photo: url("assets/photos/study-pair.jpg"); --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d8a3b' stroke-opacity='.5' stroke-width='.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5 9a2 2 0 0 0 1.8 3h10.4a2 2 0 0 0 1.8-3l-5-9V3M7.5 15h9'/%3E%3C/svg%3E"); }
.ph--sports { --photo: url("assets/photos/art-class.jpg"); --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d8a3b' stroke-opacity='.5' stroke-width='.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8v5a4 4 0 0 1-8 0zM8 6H5v1a3 3 0 0 0 3 3M16 6h3v1a3 3 0 0 1-3 3M12 13v4M9 20h6M10 17h4'/%3E%3C/svg%3E"); }
.ph--library { --photo: url("assets/photos/pupil-book.jpg"); --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d8a3b' stroke-opacity='.5' stroke-width='.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10.5 5 8 4.5 4 4.5v13c4 0 6.5.5 8 2 1.5-1.5 4-2 8-2v-13c-4 0-6.5.5-8 2zM12 6.5v13'/%3E%3C/svg%3E"); }
.ph--academics { --photo: url("assets/photos/pupil-book.jpg"); background-position: center 25%, center 46%, 0 0; }
.ph--cta { --photo: url("assets/photos/hands-up.jpg"); }

/* ===== Top bar ===== */
.topbar { background: var(--green-800); }
.topbar__pill { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.9); font-size: .85rem; padding: 10px 0; }
.topbar__link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--yellow); font-weight: 600; }
.topbar__link:hover { color: var(--white); }

/* ===== Masthead ===== */
.masthead { background: var(--white); }
.masthead__inner { display: flex; align-items: center; gap: 32px; padding: 14px 0 16px; }
.logo-blob { display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--green-700); color: var(--white); padding: 10px 26px 10px 14px; border-radius: 0 0 44px 44px / 0 0 36px 36px; margin-top: -14px; padding-top: 24px; box-shadow: 0 14px 28px -16px rgba(7,42,31,.55); }
.logo-blob img { width: 54px; height: auto; background: var(--white); border-radius: 14px; padding: 4px; }
.logo-blob .brand__text strong { color: var(--white); }
.logo-blob .brand__text small { color: rgba(255,255,255,.8); }
.info { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; justify-content: space-around; gap: 24px; }
.info li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.info__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--yellow-100); color: var(--green-800); display: grid; place-items: center; flex: none; }
.info li > span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.info small { color: var(--muted); font-size: .78rem; }
.info strong { font-family: var(--font-head); font-size: .95rem; color: var(--green-900); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; }
.brand__text small { font-size: .72rem; letter-spacing: .04em; }

/* ===== Header / nav: floats over the hero, turns solid on scroll ===== */
.header { position: sticky; top: 0; z-index: 50; margin-bottom: -68px; transition: background .25s, box-shadow .25s; }
.header.is-scrolled { background: rgba(10, 61, 44, .96); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -16px rgba(7,42,31,.6); }
.header__inner { display: flex; align-items: center; min-height: 68px; gap: 24px; }
.brand--nav { display: none; color: var(--white); }
.brand--nav img { width: 40px; background: var(--white); border-radius: 12px; padding: 3px; }
.brand--nav .brand__text strong { font-size: 1.25rem; }
.brand--nav .brand__text small { display: none; }
.header.is-scrolled .brand--nav { display: flex; }

.nav { display: flex; align-items: center; gap: 30px; flex: 1; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; color: rgba(255,255,255,.92); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--yellow); transition: width .25s; }
.nav a:not(.btn):hover { color: var(--white); }
.nav a:not(.btn):hover::after { width: 100%; }
.nav .btn { margin-left: auto; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ===== Hero ===== */
/* ===== Hero: cream split layout =====
   Copy on the left; the photo bleeds off the right edge and fades into the cream, with a
   yellow blob, a handwritten note and a round badge on top. On phones the photo goes first
   (full width) with the badge on it and the copy underneath. Bottom padding leaves room for
   the teaser cards that overlap the hero's lower edge. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 132px; color: var(--green-950); background: linear-gradient(180deg, #fbf3e6 0%, #fbf3e6 72%, var(--cream) 100%); }
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; min-height: 400px; }
.hero__copy { max-width: min(46%, 520px); }
.hero .eyebrow { margin-bottom: 18px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-700); }
.hero h1 { margin: 0 0 .4em; font-size: clamp(2.4rem, 4.8vw, 3.7rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; color: var(--green-950); }
.hero h1 span { display: block; }
.hero__copy > p { max-width: 24rem; margin: 0 0 28px; font-size: 1.05rem; color: var(--muted); }
.hero__btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 999px; background: var(--yellow); color: var(--green-950); font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(214,160,20,.75); transition: background .2s, transform .2s; }
.hero__btn:hover { background: var(--yellow-400); transform: translateY(-2px); }
.hero__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero__proof { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.hero__avatars { display: flex; }
.hero__avatars img { width: 36px; height: 36px; margin-left: -10px; border: 2px solid #fbf3e6; border-radius: 50%; object-fit: cover; }
.hero__avatars img:first-child { margin-left: 0; }
.hero__proof p { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.hero__proof strong { color: var(--green-950); font-weight: 700; }

.hero__media { position: absolute; top: 0; right: 0; bottom: 110px; z-index: 0; width: min(54%, 820px); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%); mask-image: linear-gradient(90deg, transparent, #000 26%); }
.hero__ring { position: absolute; left: -70px; top: 14%; z-index: -1; width: 280px; height: 280px; border-radius: 50%; background: #f3e3c6; }
.hero__blob { position: absolute; left: 7%; bottom: 7%; z-index: 1; width: 120px; height: 120px; border-radius: 50%; background: var(--yellow); opacity: .92; }
.hero__note { position: absolute; right: 7%; top: 8%; z-index: 2; font-family: "Caveat", cursive; font-size: 1.7rem; line-height: 1; color: var(--green-900); transform: rotate(-6deg); }
.hero__note::after { content: ""; display: block; width: 58px; height: 3px; margin: 6px 0 0 auto; border-radius: 3px; background: var(--yellow); transform: rotate(3deg); }
.hero__badge { position: absolute; right: 5%; top: 44%; z-index: 2; display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; background: rgba(94,143,102,.96); color: var(--white); text-align: center; font-family: "Caveat", cursive; font-size: 1.25rem; line-height: 1.05; transform: rotate(-8deg); box-shadow: 0 10px 24px -10px rgba(7,42,31,.55); }

/* Home page: solid green header above the cream hero (the white nav links would vanish on cream). */
.home .header { background: var(--green-900); margin-bottom: 0; }

/* Phone and email are tap-to-call / tap-to-email links but keep the look of the text around them */
a[data-school] { color: inherit; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
a[data-school]:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Teasers ===== */
.teasers { display: flow-root; background: var(--cream); padding-bottom: clamp(64px, 8vw, 96px); }
.teasers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -92px; position: relative; z-index: 2; align-items: start; }
.teaser { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.teaser:hover { transform: translateY(-6px); }
.teaser__top { height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-100), var(--green-200)); }
.teaser__top .round-icon { margin-bottom: -32px; transform: translateY(16px); box-shadow: 0 0 0 6px var(--white); }
.teaser__body { padding: 44px 26px 26px; text-align: center; }
.teaser__body h2 { color: var(--green-900); font-size: 1.2rem; }
.teaser__body p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.teaser--feature { transform: translateY(-20px); }
.teaser--feature:hover { transform: translateY(-26px); }
.teaser--feature .teaser__top { background: linear-gradient(135deg, var(--yellow-100), var(--yellow)); }
.teaser--feature .round-icon { background: var(--green-700); color: var(--yellow); }

.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd966' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks--sm { text-align: left; gap: 8px; margin: 0 auto 16px; width: fit-content; font-size: .93rem; }
.ticks--sm li { padding-left: 30px; }
.ticks--sm li::before { width: 20px; height: 20px; }
.ticks--cols { grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 0; font-size: .93rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.about__media { position: relative; aspect-ratio: 1 / 1.02; }
.about__media .ph--about-main { position: absolute; right: 0; bottom: 0; width: 68%; height: 82%; }
.about__media .ph--about-small { position: absolute; left: 4%; top: 0; width: 30%; height: 31%; border-radius: var(--radius); }
.about__years { position: absolute; left: 40%; top: 4%; display: flex; align-items: center; gap: 12px; }
.about__years strong { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; color: var(--green-700); line-height: 1; }
.about__years span { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--green-900); line-height: 1.25; }
.about__seal { position: absolute; left: 0; bottom: 6%; width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow-100); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--white); }
.about__seal img { width: 66%; }
.about__copy p { color: var(--muted); }
.about__copy .ticks { margin: 22px 0 30px; }

/* ===== Textured green bands ===== */
.band { padding: clamp(64px, 8vw, 100px) 0; color: var(--white); }
.band--leaves { background: var(--leaves) center / 480px, linear-gradient(135deg, var(--green-800), #1a4a2c); }

.why { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; background: var(--white); border-radius: var(--radius-lg); padding: 32px; align-items: stretch; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); color: var(--ink); }
.why__copy { display: flex; flex-direction: column; justify-content: center; }
.why__copy p { color: var(--muted); }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--green-100); margin-bottom: 22px; }
.tab { background: none; border: 0; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--muted); padding: 0 0 12px; cursor: pointer; position: relative; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--yellow); transform: scaleX(0); transition: transform .25s; }
.tab.is-active { color: var(--green-900); }
.tab.is-active::after { transform: scaleX(1); }
.tab:focus-visible { outline: 2px solid var(--green-600); outline-offset: 4px; border-radius: 4px; }
.tabpanel[hidden] { display: none; }
.tabpanel .ticks { margin-top: 20px; }
.ph--why { min-height: 320px; background-position: center 40%, center 46%, 0 0; }

/* ===== Admissions steps ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.step { position: relative; background: var(--white); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 34px 22px 30px; text-align: center; transition: transform .25s, box-shadow .25s, background .25s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: var(--green-950); font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 16px; border-radius: 6px; white-space: nowrap; }
.step__icon { width: 84px; height: 84px; margin: 6px auto 18px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; box-shadow: 0 0 0 7px var(--green-50); transition: background .25s, color .25s; }
.step__icon .ico { width: 34px; height: 34px; }
.step:hover .step__icon { background: var(--green-700); color: var(--white); }
.step h3 { color: var(--green-900); }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.steps__cta { text-align: center; margin-top: 48px; }

/* ===== Campus ===== */
.campus { background: var(--white); padding-top: clamp(64px, 9vw, 110px); }
.campus__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.campus__head h2 { margin: 0; }
.campus__head p { color: var(--muted); }
.campus__strip { background: linear-gradient(var(--white) 0 55%, var(--green-900) 55% 100%); padding-bottom: 6px; }
.campus__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: end; }
.place { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--green-700); }
.place .ph { border-radius: 0; aspect-ratio: 4 / 4.3; }
.place--mid .ph { aspect-ratio: 4 / 5; }
.place__bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--green-700); color: var(--white); padding: 14px 14px 14px 20px; border-radius: 16px; }
.place__bar h3 { margin: 0 0 2px; font-size: 1.08rem; }
.place__bar p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.8); line-height: 1.4; }


/* ===== Academics ===== */
.academics { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.ph--academics { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: 24px 24px 0 -2px var(--yellow-100); }
.academics__copy > p { color: var(--muted); }
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.program { background: var(--cream); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 22px 22px 20px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--green-200); }
.program__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-700); color: var(--yellow); display: grid; place-items: center; margin-bottom: 14px; }
.program__icon .ico { width: 26px; height: 26px; }
.program h3 { color: var(--green-900); margin-bottom: .3em; }
.program p { color: var(--muted); font-size: .9rem; flex: 1; }

/* ===== Life at IES gallery (real photos) =====
   Desktop: tall | wide (top) + two squares (bottom) | tall */
.gallery { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.1fr; grid-auto-rows: clamp(180px, 20vw, 260px); gap: 16px; }
.gallery__item { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--green-100); }
.gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall:first-child { grid-column: 1; grid-row: 1 / span 2; }
.gallery__item--wide { grid-column: 2 / span 2; grid-row: 1; }
.gallery__item--tall:nth-child(3) { grid-column: 4; grid-row: 1 / span 2; }

/* ===== CTA band ===== */
.band--cta { padding: 0; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta__copy { padding: clamp(56px, 7vw, 90px) 0; }
.cta__copy h2 { color: var(--white); }
.cta__copy p { color: rgba(255,255,255,.82); max-width: 440px; margin-bottom: 26px; }
.ph--cta { aspect-ratio: 16 / 11; align-self: end; margin: -36px 0 -36px; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -28px rgba(0,0,0,.55); position: relative; z-index: 2; }

/* ===== News ===== */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news__item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s; }
.news__item:hover { transform: translateY(-6px); }
.news__item::before { content: ""; height: 120px; background: url("assets/ies-crest.png") center / auto 68% no-repeat, var(--leaves) center / 360px, linear-gradient(135deg, var(--green-100), var(--green-200)); }
.news__item:nth-child(3n+2)::before { background:url("assets/ies-crest.png") center / auto 68% no-repeat, linear-gradient(135deg, var(--yellow-100), var(--yellow)); }
.news__item time, .news__item h3, .news__item p { margin-left: 26px; margin-right: 26px; }
.news__item time { align-self: flex-start; display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--green-950); background: var(--yellow); padding: 4px 12px; border-radius: 8px; margin-top: -14px; position: relative; }
.news__item h3 { color: var(--green-900); margin-top: 16px; }
.news__item p { color: var(--muted); font-size: .95rem; margin-bottom: 26px; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 70px); align-items: start; }
.contact__copy { position: sticky; top: 110px; }
.contact__copy p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact__list li > span:first-child { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--yellow-100); color: var(--green-800); }
.form { background: var(--white); border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--green-900); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1.5px solid #d6e4da; border-radius: 12px; background: var(--green-50); transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(45,138,59,.16); }
.form .is-invalid { border-color: #c0392b; }
.form__title { color: var(--green-900); font-size: 1.4rem; margin: 0; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.form legend { font-family: var(--font-head); font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; margin-bottom: 10px; padding: 0; }
.requirements { background: var(--yellow-50); border: 1px solid var(--yellow-100); border-radius: 12px; padding: 16px 18px; font-size: .9rem; }
.requirements ul { margin: 8px 0 12px; padding-left: 18px; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.form .check input { width: 18px; height: 18px; accent-color: var(--green-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 0; font-weight: 600; color: var(--green-600); min-height: 1.2em; }

/* ===== Footer ===== */
.footer { background: var(--green-900); color: rgba(255,255,255,.75); padding-top: clamp(56px, 7vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 150px; gap: 36px; padding-bottom: 48px; align-items: start; }
.footer h2 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--yellow); }
.footer a:not(.btn) { display: block; text-decoration: none; margin-bottom: 10px; }
.footer a:not(.btn):hover { color: var(--yellow); }
.footer__line a[data-school] { display: inline; margin: 0; word-break: break-word; }
.footer__about p { max-width: 300px; }
.brand--footer { margin-bottom: 14px; color: var(--white); }
.brand--footer img { width: 56px; padding: 5px; background: var(--white); border-radius: 14px; }
.brand--footer .brand__text small { color: rgba(255,255,255,.65); }
.footer__line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .95rem; }
.footer__line .ico { color: var(--yellow); margin-top: 4px; }
.footer__arch { background: var(--white); color: var(--green-900); border-radius: 80px 80px 18px 18px; padding: 26px 14px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer__arch strong { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.footer__arch span { font-family: var(--font-head); font-weight: 600; font-size: .85rem; line-height: 1.25; }
.footer__arch img { width: 58px; margin-top: 10px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; position: relative; }
.footer__tag { font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--yellow); }
.to-top { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--green-950); display: grid !important; place-items: center; margin: 0 !important; box-shadow: 0 0 0 6px var(--green-900); transition: transform .2s; }
.footer a.to-top:hover { color: var(--green-950); transform: translateX(-50%) translateY(-3px); }

/* ===== Inner pages ===== */
.page-hero { color: var(--white); padding: 150px 0 84px; background:
    linear-gradient(90deg, rgba(7,42,31,.72), rgba(7,42,31,.4)),
    url("assets/photos/reading.jpg") center 34% / cover no-repeat,
    var(--leaves) center / 480px,
    linear-gradient(135deg, #0d4a33, #14532d 55%, #1d6b36); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 700; margin: 0 0 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .95rem; color: rgba(255,255,255,.82); }
.crumbs a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--yellow-400); }
.crumbs span::before { content: "/"; margin-right: 10px; opacity: .6; }
.nav a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav a[aria-current="page"]:not(.btn) { color: var(--white); }
.programs--row { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.campus__strip--end { background: linear-gradient(var(--white) 0 55%, var(--green-800) 55% 100%); padding-bottom: 56px; }
.news__more { text-align: center; margin-top: 44px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: var(--white); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 34px 26px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-card .info__icon { width: 64px; height: 64px; margin: 0 auto 16px; background: var(--yellow-100); }
.contact-card .info__icon .ico { width: 28px; height: 28px; }
.contact-card h3 { color: var(--green-900); margin-bottom: .3em; }
.contact-card p { margin: 0; color: var(--muted); word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .footer__arch { display: none; }
  .programs--row { grid-template-columns: repeat(2, 1fr); }
  .info small { display: none; }
  .nav { gap: 22px; }
}
@media (max-width: 960px) {
  .teasers__grid { grid-template-columns: 1fr; margin-top: -80px; }
  .teaser--feature { transform: none; }
  .teaser--feature:hover { transform: translateY(-6px); }
  .about, .academics, .contact, .campus__head, .cta { grid-template-columns: 1fr; }
  .contact__copy { position: static; }
  .about__media { max-width: 520px; margin-inline: auto; width: 100%; }
  .why { grid-template-columns: 1fr; }
  .ph--why { min-height: 260px; order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .campus__cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .place--mid .ph { aspect-ratio: 4 / 4.3; }
  .campus__strip { background: linear-gradient(var(--white) 0 12%, var(--green-900) 12% 100%); padding-bottom: 40px; }
  .ph--academics { max-width: 460px; width: 100%; margin-inline: auto; }
  .news, .contact-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(150px, 34vw, 240px); gap: 12px; }
  .gallery__item--tall:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .gallery__item--tall:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
  .gallery__item--wide { grid-column: 1 / span 2; grid-row: 3; }
  .ph--cta { margin: 0 0 -1px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; align-self: auto; box-shadow: none; }
  .cta__copy { padding-bottom: 0; }
  .band--cta .cta { gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hero { display: flex; flex-direction: column; padding: 0 0 120px; }
  .hero__media { position: relative; order: -1; top: auto; right: auto; bottom: auto; width: 100%; height: clamp(250px, 70vw, 360px); }
  .hero__photo { -webkit-mask-image: none; mask-image: none; object-position: 50% 28%; }
  .hero__ring, .hero__blob, .hero__note { display: none; }
  .hero__badge { top: 16px; right: 16px; width: 96px; height: 96px; font-size: 1.05rem; }
  .hero__inner { min-height: 0; padding-top: 26px; }
  .hero__copy { max-width: none; }
  .hero .eyebrow, .hero__proof { display: none; }
  .hero h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .hero__copy > p { margin-bottom: 22px; }
}
@media (max-width: 880px) {
  .masthead { display: none; }
  .topbar__pill { justify-content: center; padding: 8px 16px; font-size: .8rem; }
  .topbar .container { width: 100%; }
  .header { background: var(--green-900); margin-bottom: 0; }
  .brand--nav { display: flex; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 8px 16px 20px; border-bottom: 1px solid var(--green-100); box-shadow: 0 20px 30px -20px rgba(7,42,31,.4); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--green-50); color: var(--ink); }
  .nav a:not(.btn):hover { color: var(--green-700); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 14px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .page-hero { padding: 48px 0 56px; }
  .teasers__grid { margin-top: -90px; }
}
@media (max-width: 640px) {
  .steps, .programs, .programs--row, .form__row, .ticks--cols { grid-template-columns: 1fr; }
  .tabs { gap: 20px; }
  .why { padding: 22px; }
  .form { padding: 24px 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; padding-top: 38px; }
  .brand__text small { display: none; }
  .ph--academics { box-shadow: 14px 14px 0 -2px var(--yellow-100); }
}
