/* ==========================================================================
   Demo International School
   Step 1: site header + home hero (first screen)
   ========================================================================== */

:root {
  --ink: #1E2456;
  --ink-soft: #3A4178;
  --text: #565B7D;
  --muted: #80859F;
  --line: #ECEAF4;
  --tint: #F3F2FC;
  --paper: #FFFFFF;

  --pink: #E5306C;
  --orange: #EE6C12;
  --yellow: #FFC53D;
  --yellow-deep: #FFAB1A;
  --green: #4CA82A;
  --teal: #119DB0;
  --blue: #3466E0;
  --violet: #7B5CF0;

  --font-display: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .28, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 300;
  padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 800;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Line icons (stroke). :where() keeps this at zero specificity, so any class can override it. */
:where(svg[viewBox="0 0 24 24"]) {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Mouse parallax: main.js sets --mx / --my (-1…1) on the hero; each item moves by its own --depth. */
.parallax {
  translate: calc(var(--mx, 0) * var(--depth, 0) * 1px) calc(var(--my, 0) * var(--depth, 0) * 1px);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; line-height: 1.1;
  white-space: nowrap;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; stroke-width: 2.4; transition: transform .3s var(--spring); }
.btn-cta {
  padding: 13px 22px 12px 24px;
  font-size: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, #FFD465 0%, var(--yellow-deep) 100%);
  box-shadow: 0 12px 24px -10px rgba(255, 160, 20, .8), inset 0 -2px 0 rgba(120, 70, 0, .08);
}
/* glossy light that sweeps across the yellow buttons now and then */
.btn-cta::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -45%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.btn-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 30px -12px rgba(255, 160, 20, .95), inset 0 -2px 0 rgba(120, 70, 0, .08); }
.btn-cta:hover svg { transform: translateX(4px); }
.btn-cta:active { transform: translateY(0) scale(.97); }
.btn-lg { padding: 17px 30px 16px 32px; font-size: 18px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -20px rgba(30, 36, 86, .4); }

.rainbow-line {
  position: relative; overflow: hidden;
  height: 4px;
  background: linear-gradient(90deg,
    var(--pink) 0%, var(--orange) 18%, var(--yellow) 35%, var(--green) 52%,
    var(--teal) 68%, var(--blue) 84%, var(--violet) 100%);
}
.rainbow-line::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: translateX(-110%);
}

.header-row {
  display: flex; align-items: center; gap: 18px;
  height: var(--header-h);
  transition: height .35s var(--ease);
}
.site-header.is-scrolled .header-row { height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 48px; height: 48px; overflow: visible;
  filter: drop-shadow(0 6px 10px rgba(52, 102, 224, .28));
  transition: width .35s var(--ease), height .35s var(--ease), transform .4s var(--spring);
}
.site-header.is-scrolled .brand-mark { width: 42px; height: 42px; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.logo-book, .logo-star-g, .logo-star, .logo-dot { transform-box: fill-box; transform-origin: center; }
.logo-book { transition: transform .45s var(--spring); }
.logo-star-g { transition: transform .7s var(--spring); }
.brand:hover .logo-book { transform: translateY(-1.5px) scale(1.06); }
.brand:hover .logo-star-g { transform: rotate(90deg) scale(1.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 21px; color: var(--ink); letter-spacing: -.01em;
}
.brand-sub {
  margin-top: 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}

.main-nav { position: relative; flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 8px clamp(7px, .85vw, 13px);
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.5;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav-link .caret { flex: none; width: 15px; height: 15px; stroke-width: 2.6; opacity: .65; transition: transform .3s var(--spring); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 18px; height: 4px; margin-left: -9px; border-radius: 4px;
  background: var(--yellow-deep);
}

/* Soft pill that glides to whichever menu item the mouse is on (added by main.js) */
.nav-pill {
  position: absolute; left: 0; top: 50%; z-index: 0;
  width: var(--w, 60px); height: 40px;
  border-radius: 999px;
  background: var(--tint);
  transform: translate(var(--x, 0), -50%);
  opacity: 0; pointer-events: none;
  transition: transform .45s var(--spring), width .45s var(--spring), opacity .25s;
}
.nav-pill.on { opacity: 1; }
.nav-pill.jump { transition: opacity .25s; }

/* Dropdowns */
.has-menu { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 5;
  min-width: 272px; padding: 10px;
  border-radius: 20px; border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 28px 56px -26px rgba(30, 36, 86, .4);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 10px) scale(.97);
  transform-origin: 50% 0;
  transition: opacity .22s var(--ease), transform .3s var(--spring), visibility 0s linear .3s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.dropdown::after {
  content: ""; position: absolute; top: -7px; left: 50%;
  width: 14px; height: 14px; margin-left: -7px;
  background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  border-radius: 3px 0 0 0; transform: rotate(45deg);
}
.dropdown a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  transition: background-color .2s, transform .25s var(--spring);
}
.dropdown a:hover { background: var(--tint); transform: translateX(3px); }
.dropdown i {
  flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 16%, transparent);
  transition: transform .3s var(--spring);
}
.dropdown a:hover i { transform: scale(1.35); }
.dropdown span {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.35;
  color: var(--ink);
}
.dropdown small { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--muted); }

.nav-link[aria-expanded="true"] { background: var(--tint); }
.nav-link[aria-expanded="true"] + .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1280px) {
  .has-menu:hover > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
  .has-menu:hover > .nav-link .caret { transform: rotate(180deg); }
}

.header-cta { flex: none; }
.nav-cta-mobile, .menu-toggle, .nav-backdrop { display: none; }

/* ---------- Header: small laptop, tablet & phone (menu slides in) ---------- */
@media (max-width: 1279.98px) {
  /* backdrop-filter would trap the fixed menu inside the header */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .brand { margin-right: auto; }
  .nav-pill { display: none; }

  .menu-toggle {
    position: relative; z-index: 3;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--tint);
    transition: transform .3s var(--spring);
  }
  .menu-toggle:active { transform: scale(.92); }
  .menu-toggle span {
    width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink);
    transition: transform .35s var(--spring), opacity .2s, width .3s var(--ease);
  }
  .menu-toggle span:nth-child(2) { width: 14px; margin-left: 6px; }
  .menu-toggle:hover span:nth-child(2) { width: 20px; margin-left: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 1;
    background: rgba(20, 24, 60, .38);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility 0s linear .3s;
  }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2;
    width: min(88vw, 380px);
    flex-direction: column; justify-content: flex-start;
    padding: calc(var(--header-h) + 12px) 18px 28px;
    background: #fff;
    box-shadow: -24px 0 60px -30px rgba(30, 36, 86, .5);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; transform: translateX(100%);
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  body.menu-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .3s; }
  body.menu-open .main-nav { visibility: visible; transform: none; transition: transform .45s var(--ease); }
  body.menu-open { overflow: hidden; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li { opacity: 0; transform: translateX(26px); transition: opacity .3s, transform .45s var(--spring); }
  body.menu-open .nav-list > li { opacity: 1; transform: none; }
  body.menu-open .nav-list > li:nth-child(1) { transition-delay: .08s; }
  body.menu-open .nav-list > li:nth-child(2) { transition-delay: .12s; }
  body.menu-open .nav-list > li:nth-child(3) { transition-delay: .16s; }
  body.menu-open .nav-list > li:nth-child(4) { transition-delay: .2s; }
  body.menu-open .nav-list > li:nth-child(5) { transition-delay: .24s; }
  body.menu-open .nav-list > li:nth-child(6) { transition-delay: .28s; }
  body.menu-open .nav-list > li:nth-child(7) { transition-delay: .32s; }

  .nav-link { width: 100%; justify-content: space-between; padding: 12px 16px; font-size: 18px; border-radius: 14px; }
  .nav-link:hover { background: var(--tint); }
  .nav-link.is-active { background: var(--tint); }
  .nav-link.is-active::after { left: 4px; top: 50%; bottom: auto; width: 4px; height: 20px; margin: -10px 0 0; }
  .nav-link .caret { width: 18px; height: 18px; }

  .dropdown {
    position: static; display: none; min-width: 0;
    margin: 2px 0 8px 14px; padding: 4px 0 4px 10px;
    border: 0; border-left: 2px dashed var(--line); border-radius: 0;
    box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .dropdown::before, .dropdown::after { display: none; }
  .nav-link[aria-expanded="true"] + .dropdown { display: block; transform: none; }

  .nav-cta-mobile { display: inline-flex; width: 100%; margin-top: 20px; }
}

@media (max-width: 639.98px) {
  :root { --header-h: 72px; }
  .header-cta { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 9.5px; letter-spacing: .16em; }
  .site-header.is-scrolled .header-row { height: 64px; }
  .site-header.is-scrolled .brand-mark { width: 38px; height: 38px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 600px;
  min-height: clamp(600px, calc(100svh - var(--header-h) - 4px), 880px);
  overflow: hidden;
}
/* warm morning glow in the top-left corner */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 40% at 4% 8%, #FFF6E4 0%, rgba(255, 246, 228, 0) 75%);
}

.hero-grid {
  position: relative; z-index: 2;
  flex: 1; display: flex; align-items: center;
  padding-block: clamp(28px, 4vw, 56px) clamp(28px, 3vw, 44px);
}
.hero-copy { width: min(100%, 580px); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 10px; border-radius: 999px;
  background: #FFFAEE; border: 1.5px solid #FAD994;
  box-shadow: 0 8px 18px -14px rgba(238, 108, 18, .6);
  font-size: 13.5px; font-weight: 800; color: var(--ink-soft);
}
.hero-badge svg { width: 18px; height: 18px; color: var(--green); stroke-width: 2.4; }

.hero-title {
  margin-top: 22px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.3rem, 1.05rem + 2.85vw, 3.85rem);
  line-height: 1.08; letter-spacing: -.015em;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title .line-in { display: inline-block; white-space: nowrap; }

.shine { position: relative; display: inline-block; }
.shine > span { display: inline-block; }
.shine > span:nth-child(1) { color: var(--pink); }
.shine > span:nth-child(2) { color: var(--orange); }
.shine > span:nth-child(3) { color: var(--green); }
.shine > span:nth-child(4) { color: var(--teal); }
.shine > span:nth-child(5) { color: var(--blue); }
.shine-underline {
  position: absolute; left: -3%; bottom: -.2em;
  width: 108%; height: .32em;
  fill: none; stroke-linecap: round; overflow: visible;
}
.shine-underline .u1 { stroke: var(--yellow); stroke-width: 7; }
.shine-underline .u2 { stroke: var(--yellow); stroke-width: 3.5; opacity: .75; }
.shine-spark { position: absolute; top: -.12em; right: -.5em; width: .42em; height: .42em; fill: var(--yellow-deep); stroke: none; }
.trail-star {
  position: absolute; left: -4%; bottom: -.3em;
  width: .3em; height: .3em;
  fill: var(--yellow-deep); stroke: none;
  opacity: 0; pointer-events: none;
}

.hero-tagline {
  margin-top: 20px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, .85rem + .75vw, 1.5rem); line-height: 1.3;
  color: var(--pink);
}
.hero-text {
  margin-top: 12px; max-width: 30em;
  font-size: clamp(1rem, .94rem + .25vw, 1.125rem); line-height: 1.75;
  color: var(--text);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 32px; }
.btn-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--ink);
}
.btn-link-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; color: var(--blue);
  transition: background-color .25s, border-color .25s, color .25s, transform .35s var(--spring);
}
.btn-link-icon svg { width: 18px; height: 18px; stroke-width: 2.4; }
.btn-link:hover .btn-link-icon { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateX(4px) rotate(-8deg); }

/* ---------- Photo side ---------- */
/* 3:2 photo on the right, centred in the space above the feature strip (38.67vw = its height) */
.hero-visual {
  position: absolute; z-index: 0; right: 0;
  top: max(0px, calc((100% - 150px - 38.6667vw) / 2));
  width: 58%; aspect-ratio: 3 / 2;
}
.hero-photo {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 20%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 76%, transparent 100%);
  mask-composite: intersect;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; scale: 1.06; }

.admission-seal {
  position: absolute; z-index: 3; left: 0; top: 6%;
  display: grid; place-items: center;
  width: 116px; height: 116px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 20px 44px -20px rgba(30, 36, 86, .5);
  transition: transform .4s var(--spring);
}
.admission-seal:hover { transform: scale(1.07) rotate(-4deg); }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-ring text {
  font-family: var(--font-body); font-weight: 800; font-size: 10.5px; letter-spacing: .08em;
  fill: var(--ink);
}
.seal-core {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(180deg, #FFD465, var(--yellow-deep));
  color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(120, 70, 0, .1);
}
.seal-core svg { width: 28px; height: 28px; stroke-width: 2; }

.photo-card {
  position: absolute; z-index: 3; left: 4%; bottom: 9%;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px 11px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 44px -22px rgba(30, 36, 86, .5);
}
.photo-card-icons { display: flex; }
.photo-card-icons i {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-left: -9px; border-radius: 50%;
  border: 3px solid #fff; background: var(--c); color: #fff;
}
.photo-card-icons i:first-child { margin-left: 0; }
.photo-card-icons svg { width: 17px; height: 17px; }
.photo-card-text b { display: block; font-family: var(--font-display); font-size: 15.5px; line-height: 1.25; color: var(--ink); }
.photo-card-text small { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ---------- Decorations ---------- */
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco-dots {
  position: absolute; left: 0; top: 0; width: 48%; height: 100%;
  background-image: radial-gradient(#E9EBF7 1.5px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 25% 45%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 25% 45%, #000 20%, transparent 72%);
}
.deco-blob {
  position: absolute; left: -160px; bottom: 60px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at 55% 50%, #FFE0EA 0%, rgba(255, 224, 234, 0) 64%);
}

.hero-copy { position: relative; }
.doodle { position: absolute; top: -50px; left: 168px; width: 140px; overflow: visible; pointer-events: none; }
.doodle-line { fill: none; stroke: #F28DB2; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.sun { position: absolute; top: 3%; left: 31%; width: 54px; overflow: visible; }
.sun-rays { fill: none; stroke: var(--yellow); stroke-width: 3.4; stroke-linecap: round; transform-box: view-box; transform-origin: 30px 30px; }
.sun-core { fill: var(--yellow); transform-box: view-box; transform-origin: 30px 30px; }

.kite { position: absolute; z-index: 2; top: 4%; right: 7%; width: clamp(76px, 6vw, 118px); overflow: visible; pointer-events: none; }
.kite-string { fill: none; stroke: url(#kite-string); stroke-width: 1.3; }
.kite-body { transform-box: view-box; transform-origin: 50px 38px; }
.kite-tail { transform-box: view-box; transform-origin: 50px 94px; }

.deco-spark { position: absolute; fill: currentColor; stroke: none; }
.spark-1 { bottom: 25%; left: 41%; width: 22px; color: var(--yellow); }
.spark-2 { bottom: 19%; right: 2%; width: 18px; color: var(--teal); }
.spark-3 { bottom: 34%; left: 1.6%; width: 16px; color: var(--pink); }

/* ---------- Feature strip ---------- */
.strip-wrap { position: relative; z-index: 4; padding-bottom: clamp(20px, 2.6vw, 34px); }
.feature-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 20px 6px;
  border-radius: 26px; border: 1px solid #EEEDF6;
  background: #fff;
  box-shadow: 0 30px 64px -36px rgba(30, 36, 86, .5);
}
.feature-strip li {
  display: flex; align-items: center; gap: 14px; min-width: 0;
  padding: 6px 22px;
  transition: transform .35s var(--spring);
}
.feature-strip li + li { border-left: 1.5px dashed #E3E1EF; }
.feature-strip li:hover { transform: translateY(-3px); }
.f-icon {
  flex: none; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
  transition: background-color .3s, box-shadow .3s;
}
.feature-strip li:hover .f-icon { background: color-mix(in srgb, var(--c) 20%, #fff); box-shadow: 0 10px 20px -12px var(--c); }
.f-icon svg { width: 26px; height: 26px; }
[data-anim] .play { transform-box: fill-box; transform-origin: center; }
.f-text { min-width: 0; }
.f-text b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17.5px; line-height: 1.25; color: var(--ink); }
.f-text small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--muted); }

/* Each icon's own little trick: plays once on load and again on hover (main.js adds .play) */
.play[data-anim="cap"] svg { animation: cap-toss 1s var(--ease); }
.play[data-anim="board"] .play { animation: play-pulse .8s var(--spring); }
.play[data-anim="board"] svg { animation: screen-pop .8s var(--spring); }
.play[data-anim="trophy"] svg { animation: trophy-cheer .9s ease-in-out; transform-origin: 50% 90%; }
.play[data-anim="bus"] svg { animation: bus-drive .9s ease-in-out; }

/* ---------- Hero: small laptops / tablets ---------- */
@media (max-width: 1179.98px) and (min-width: 900px) {
  .doodle { display: none; }
  .sun { top: 2%; left: 36%; width: 46px; }
  .hero-copy { width: min(100%, 450px); }
  .hero-visual { width: 54%; }
  .admission-seal { width: 100px; height: 100px; }
  .seal-core { width: 50px; height: 50px; }
  .kite { width: 72px; }
  .feature-strip li { padding: 6px 14px; gap: 10px; }
  .f-icon { width: 44px; height: 44px; border-radius: 14px; }
  .f-icon svg { width: 22px; height: 22px; }
  .f-text b { font-size: 15.5px; }
  .f-text small { font-size: 12.5px; }
}

/* ---------- Hero: phones ---------- */
@media (max-width: 899.98px) {
  .hero { min-height: 0; }
  .hero-grid { padding-block: 28px 0; }
  .hero-copy { width: 100%; }
  .hero-actions { margin-top: 26px; }

  .hero-visual {
    position: relative; inset: auto; width: auto;
    margin: 30px var(--gutter) 0;
    aspect-ratio: 3 / 2;
  }
  .hero-photo {
    -webkit-mask-image: none; mask-image: none;
    border-radius: 28px;
    box-shadow: 0 26px 50px -30px rgba(30, 36, 86, .55);
  }
  /* the seal sits on the photo's lower edge, away from the faces */
  .admission-seal { left: auto; right: 10px; top: auto; bottom: -30px; width: 88px; height: 88px; }
  .seal-core { width: 40px; height: 40px; }
  .seal-core svg { width: 20px; height: 20px; }
  .photo-card { left: 12px; right: auto; bottom: 12px; padding: 8px 14px 8px 9px; gap: 9px; }
  .photo-card-icons i { width: 30px; height: 30px; border-width: 2px; }
  .photo-card-icons svg { width: 14px; height: 14px; }
  .photo-card-text b { font-size: 14px; }
  .photo-card-text small { font-size: 11.5px; }

  .strip-wrap { margin-top: 44px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); padding: 4px; border-radius: 22px; }
  .feature-strip li { padding: 16px 14px; gap: 10px; }
  .feature-strip li + li { border-left: 0; }
  .feature-strip li:nth-child(even) { border-left: 1.5px dashed #E3E1EF; }
  .feature-strip li:nth-child(n + 3) { border-top: 1.5px dashed #E3E1EF; }
  .f-icon { width: 44px; height: 44px; border-radius: 14px; }
  .f-icon svg { width: 22px; height: 22px; }
  .f-text b { font-size: 15.5px; }
  .f-text small { font-size: 12.5px; }

  .doodle, .sun, .kite, .spark-1, .spark-2 { display: none; }
  .deco-dots { width: 100%; height: 55%; }
}

@media (max-width: 479.98px) {
  .hero-actions .btn-lg { width: 100%; }
  .hero-badge { font-size: 12.5px; }
  .photo-card { display: none; } /* too little room beside the seal on small phones */
  .feature-strip li { flex-direction: column; align-items: flex-start; padding: 14px 12px; }
}

/* ---------- Confetti (made by main.js on the yellow buttons and the seal) ---------- */
.confetti-layer { position: fixed; inset: 0; z-index: 400; pointer-events: none; overflow: hidden; }
.confetti-layer i {
  position: absolute; left: 0; top: 0;
  width: var(--s, 8px); height: var(--s, 8px);
  background: var(--c);
  border-radius: 2px;
}
.confetti-layer i.round { border-radius: 50%; }
.confetti-layer i.star {
  border-radius: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ==========================================================================
   MOTION (only when the visitor has not asked for less motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* entrance */
  .reveal { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
  .hero-title .line { clip-path: inset(-.4em -2em -.25em -2em); animation: unclip 0s linear 1.3s forwards; }
  .hero-title .line-in { animation: line-up .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 120ms + 250ms); }
  .shine > span {
    animation: letter-pop .8s var(--spring) backwards, letter-hop 6s ease-in-out infinite;
    animation-delay: calc(900ms + var(--i) * 90ms), calc(3200ms + var(--i) * 110ms);
  }
  .shine-underline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) .8s forwards; }
  .shine-underline .u2 { animation-delay: 1s; }
  .shine-spark { animation: spark-pop .7s var(--spring) 1.5s backwards, twinkle 3.2s ease-in-out 2.2s infinite; }
  .trail-star { animation: star-run 1.1s ease-in-out 1.85s; }
  .badge-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s var(--ease) .75s forwards; }

  .hero-photo { animation: photo-reveal 1.5s var(--ease) .15s backwards; }
  .hero-photo img { animation: ken-burns 22s ease-in-out 1.6s infinite alternate; }
  .admission-seal { animation: pop-in .8s var(--spring) .8s backwards; }
  .seal-ring { animation: spin 24s linear infinite; }
  .admission-seal:hover .seal-ring { animation-play-state: paused; }
  .seal-core svg { animation: seal-cap 5s ease-in-out 2.6s infinite; }
  .photo-card { animation: rise .8s var(--ease) 1s backwards, card-float 5.5s ease-in-out 1.9s infinite; }
  .photo-card-icons i { animation: bubble-hop 4.2s ease-in-out infinite; animation-delay: calc(2.6s + var(--i) * 160ms); }

  .sun { animation: pop-in .8s var(--spring) .5s backwards; }
  .sun-rays { animation: spin 18s linear infinite; }
  .sun-core { animation: breathe 3.6s ease-in-out infinite; }
  .kite { animation: kite-in 1.6s var(--ease) .5s backwards, kite-float 6s ease-in-out 2.1s infinite; }
  .kite-body { animation: kite-sway 4.6s ease-in-out infinite; }
  .kite-tail { animation: tail-flutter 1.5s ease-in-out infinite; }
  .deco-spark { animation: twinkle 3.2s ease-in-out infinite; }
  .spark-2 { animation-delay: -1.1s; }
  .spark-3 { animation-delay: -2.2s; }
  .deco-blob { animation: breathe 9s ease-in-out infinite; }

  .strip-wrap { animation: rise .9s var(--ease) .55s backwards; }
  .feature-strip li { animation: card-pop .8s var(--spring) backwards; animation-delay: calc(800ms + var(--i) * 110ms); }

  .rainbow-line::after { animation: sweep 7s ease-in-out 1.5s infinite; }
  .btn-cta::before { animation: btn-shine 6s ease-in-out 2.4s infinite; }
  .btn-link-icon svg { animation: nudge 4s ease-in-out 3s infinite; }
  .logo-star { animation: logo-star-pop .9s var(--spring) .25s backwards; }
  .logo-dot { animation: pop-in .6s var(--spring) .45s backwards; }
  .logo-dot-2 { animation-delay: .55s; }

  @media (hover: hover) and (min-width: 1280px) {
    .has-menu:hover > .dropdown a { animation: dd-item .45s var(--spring) backwards; }
  }
  .nav-link[aria-expanded="true"] + .dropdown a { animation: dd-item .45s var(--spring) backwards; }
  .dropdown a:nth-child(2) { animation-delay: .04s; }
  .dropdown a:nth-child(3) { animation-delay: .08s; }
  .dropdown a:nth-child(4) { animation-delay: .12s; }
  .dropdown a:nth-child(5) { animation-delay: .16s; }

  /* when the hero is scrolled out of view, its endless animations rest */
  .hero.is-paused *, .hero.is-paused *::before, .hero.is-paused *::after { animation-play-state: paused !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { opacity: 0; transform: translateY(105%) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes unclip { to { clip-path: none; } }
@keyframes letter-pop { from { opacity: 0; transform: translateY(.45em) scale(.3) rotate(-14deg); } }
@keyframes letter-hop { 0%, 11%, 100% { translate: 0 0; } 4% { translate: 0 -.17em; } 8% { translate: 0 .02em; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spark-pop { from { opacity: 0; transform: scale(0) rotate(-90deg); } }
@keyframes star-run {
  0% { left: -4%; opacity: 0; transform: translateY(0) rotate(0) scale(.4); }
  15% { opacity: 1; }
  50% { transform: translateY(-.14em) rotate(200deg) scale(1.1); }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: translateY(-.02em) rotate(400deg) scale(.5); }
}
@keyframes photo-reveal { from { clip-path: circle(0% at 7% 18%); } to { clip-path: circle(150% at 7% 18%); } }
@keyframes ken-burns { from { scale: 1.06; } to { scale: 1.12; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4) rotate(-25deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes seal-cap {
  0%, 68%, 100% { transform: none; }
  74% { transform: translateY(-9px) rotate(-16deg); }
  82% { transform: translateY(-13px) rotate(14deg); }
  90% { transform: translateY(0) scale(1.1, .9); }
  95% { transform: scale(.96, 1.04); }
}
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bubble-hop { 0%, 22%, 100% { translate: 0 0; } 8% { translate: 0 -7px; } 15% { translate: 0 1px; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes kite-in { from { opacity: 0; transform: translate(70px, 90px) rotate(18deg) scale(.6); } }
@keyframes kite-float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-8px, -10px); } 66% { transform: translate(6px, -4px); } }
@keyframes kite-sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(6deg); } }
@keyframes tail-flutter { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(-10deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.62) rotate(30deg); opacity: .5; } }
@keyframes card-pop { from { opacity: 0; transform: translateY(16px) scale(.92); } }
@keyframes sweep { 0% { transform: translateX(-110%); } 30%, 100% { transform: translateX(560%); } }
@keyframes btn-shine { 0% { left: -45%; opacity: 0; } 4% { opacity: 1; } 22% { left: 120%; opacity: 1; } 23%, 100% { left: 120%; opacity: 0; } }
@keyframes nudge { 0%, 78%, 100% { transform: none; } 86% { transform: translateX(5px); } 93% { transform: translateX(-1px); } }
@keyframes logo-star-pop { from { opacity: 0; transform: scale(0) rotate(-180deg); } }
@keyframes dd-item { from { opacity: 0; transform: translateY(8px); } }
@keyframes cap-toss {
  0% { transform: none; }
  35% { transform: translateY(-12px) rotate(-20deg); }
  60% { transform: translateY(-14px) rotate(200deg); }
  85% { transform: translateY(0) rotate(360deg) scale(1.08, .92); }
  100% { transform: rotate(360deg); }
}
@keyframes play-pulse { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.7); } 65% { transform: scale(.85); } }
@keyframes screen-pop { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.12) rotate(-4deg); } }
@keyframes trophy-cheer {
  0%, 100% { transform: rotate(0); }
  18% { transform: rotate(-16deg) scale(1.1); }
  38% { transform: rotate(14deg) scale(1.1); }
  58% { transform: rotate(-9deg); }
  78% { transform: rotate(5deg); }
}
@keyframes bus-drive {
  0%, 100% { transform: none; }
  20% { transform: translateX(-4px); }
  45% { transform: translateX(6px) translateY(-1.5px); }
  60% { transform: translateX(6px); }
  80% { transform: translateX(-2px) translateY(-1px); }
}
