/* LGS – new homepage (lgs.sc.ke). Self-contained: the theme's styles are not loaded on this page. Header, tokens and buttons: lgs-header.css. */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.lgs-home { margin: 0 !important; padding: 0 !important; background: #fff !important; color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.lgs-home *, .lgs-home *::before, .lgs-home *::after { box-sizing: border-box; }
.lgs-home main img, .lgs-home .lgs-foot img { display: block; max-width: 100%; height: auto; }
.lgs-home a { color: inherit; text-decoration: none; }
.lgs-home h1, .lgs-home h2, .lgs-home h3 { margin: 0; color: var(--navy); font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
.lgs-home p { margin: 0; }
.lgs-home ul { margin: 0; padding: 0; list-style: none; }
.lgs-home figure { margin: 0; }
.lgs-home .pace, .lgs-home .pace-progress { display: none !important; }
.lgs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lgs-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px !important; color: var(--red); font: 700 13px/1.2 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.lgs-eyebrow::before { width: 28px; height: 2px; background: currentColor; content: ''; }
.lgs-eyebrow--light { color: var(--gold); }

/* Scroll progress */
.lgs-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 70; height: 3px; pointer-events: none; }
.lgs-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* Hero */
.lgs-hero { position: relative; overflow: hidden; padding: 72px 0 96px; color: #d3deea; background: radial-gradient(900px 520px at 88% 0%, rgba(22, 119, 185, .5), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(207, 37, 37, .22), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-d)); }
.lgs-hero::before { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; content: ''; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.lgs-hero__deco { position: absolute; inset: 0; pointer-events: none; }
.lgs-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: lgs-float 14s ease-in-out infinite alternate; }
.lgs-orb--1 { top: -120px; left: 30%; width: 380px; height: 380px; background: rgba(22, 119, 185, .55); }
.lgs-orb--2 { right: -80px; bottom: -160px; width: 420px; height: 420px; background: rgba(245, 200, 76, .22); animation-duration: 18s; }
@keyframes lgs-float { to { transform: translate3d(60px, 40px, 0) scale(1.12); } }
.lgs-hero__in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; }
.lgs-hero h1 { color: #fff; font-size: clamp(50px, 6.6vw, 92px); font-weight: 900; line-height: 1; letter-spacing: -.025em; }
.lgs-w { display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; vertical-align: top; }
.lgs-w > * { display: inline-block; animation: lgs-rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
.lgs-hero h1 em { padding-right: .06em; background: linear-gradient(100deg, var(--gold) 20%, #ffe29a 50%, var(--gold) 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; animation: lgs-rise .9s cubic-bezier(.2, .8, .2, 1) both, lgs-sheen 5s 1.4s ease-in-out infinite; animation-delay: var(--d, 0ms), 1.4s; }
@keyframes lgs-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes lgs-sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -120% 0; } }
.lgs-in { animation: lgs-fade-up .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes lgs-fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.lgs-hero__lead { max-width: 480px; margin: 24px 0 34px !important; color: #d3deea; font-size: 20px; font-weight: 300; line-height: 1.6; }
.lgs-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.lgs-hero__cta .lgs-btn--red { box-shadow: 0 14px 30px -12px rgba(207, 37, 37, .8); }
.lgs-hero__find { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.lgs-hero__find > span { margin-right: 4px; color: #9fb3c9; }
.lgs-hero__find a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 11px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff !important; font-weight: 500; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.lgs-hero__find a .lgs-ico { width: 15px; height: 15px; color: var(--gold); }
.lgs-hero__find a:hover { border-color: var(--gold); background: rgba(245, 200, 76, .14); transform: translateY(-2px); }

/* Hero slideshow */
.lgs-hero__media { position: relative; }
.lgs-show { position: relative; max-width: 560px; margin-left: auto; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .4s ease-out; }
.lgs-show__frame { position: relative; z-index: 1; aspect-ratio: 5 / 5.6; overflow: hidden; border-radius: 280px 280px 22px 22px; background: var(--navy-d); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65); isolation: isolate; }
.lgs-show__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.lgs-show__slide.is-active { z-index: 1; opacity: 1; }
.lgs-show__slide img { width: 100%; height: 100% !important; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.lgs-show__slide.is-active img { transform: scale(1); }
.lgs-show__frame::after { position: absolute; inset: auto 0 0; z-index: 2; height: 40%; background: linear-gradient(0deg, rgba(0, 20, 45, .75), transparent); content: ''; }
.lgs-show__cap { position: absolute; bottom: 22px; left: 26px; z-index: 3; color: #fff; font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.lgs-show__cap::before { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--gold); vertical-align: 1px; content: ''; }
.lgs-show__dots { position: absolute; right: 22px; bottom: 26px; z-index: 3; display: flex; gap: 8px; }
.lgs-show__dots button { width: 34px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.lgs-show__dots button span { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.lgs-show__dots button span::after { position: absolute; inset: 0; background: #fff; content: ''; transform: scaleX(0); transform-origin: 0 50%; }
.lgs-show__dots button.is-done span::after { transform: scaleX(1); }
.lgs-show__dots button.is-active span::after { animation: lgs-fill var(--dur, 6s) linear forwards; }
.lgs-show.is-paused .lgs-show__dots button.is-active span::after { animation-play-state: paused; }
@keyframes lgs-fill { to { transform: scaleX(1); } }
.lgs-show__ring { position: absolute; top: -26px; left: -34px; width: 150px; height: 150px; border: 2px dashed rgba(245, 200, 76, .55); border-radius: 50%; animation: lgs-spin 40s linear infinite; }
@keyframes lgs-spin { to { transform: rotate(360deg); } }
.lgs-show__dotgrid { position: absolute; right: -28px; bottom: 60px; width: 120px; height: 160px; background-image: radial-gradient(rgba(245, 200, 76, .6) 1.5px, transparent 1.5px); background-size: 16px 16px; }
.lgs-hero__scroll { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px; }
.lgs-hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: lgs-wheel 1.8s ease-in-out infinite; }
@keyframes lgs-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Schools */
.lgs-sec { padding: 96px 0; }
.lgs-schools { position: relative; background: linear-gradient(180deg, #fff, var(--tint) 60%, #fff); }
.lgs-sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 32px; margin-bottom: 48px; }
.lgs-sec__head h2 { font-size: clamp(34px, 4vw, 52px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.lgs-filter { position: relative; display: inline-flex; flex-wrap: wrap; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -18px rgba(0, 38, 77, .4); }
.lgs-filter button { position: relative; z-index: 1; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--navy); font: 500 14px/1 var(--font); cursor: pointer; transition: color .25s ease; }
.lgs-filter button sup { margin-left: 2px; color: var(--muted); font-size: 11px; font-weight: 700; transition: color .25s ease; }
.lgs-filter button:hover { color: var(--red); }
.lgs-filter button.is-active, .lgs-filter button.is-active sup { color: #fff; }
.lgs-filter__pill { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px; background: var(--navy); box-shadow: 0 8px 18px -8px rgba(0, 38, 77, .7); transition: transform .35s cubic-bezier(.3, .9, .3, 1), width .35s cubic-bezier(.3, .9, .3, 1); }
.lgs-filter:not(.is-ready) button.is-active { background: var(--navy); }
.lgs-group + .lgs-group { margin-top: 64px; }
.lgs-group[hidden] { display: none; }
.lgs-group__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lgs-group__head h3 { position: relative; padding-left: 18px; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.lgs-group__head h3::before { position: absolute; top: 4px; bottom: 4px; left: 0; width: 5px; border-radius: 3px; background: var(--navy); content: ''; }
.lgs-group--lis .lgs-group__head h3 { color: var(--red); }
.lgs-group--lis .lgs-group__head h3::before { background: var(--red); }
.lgs-group__head p { margin-top: 6px !important; padding-left: 18px; color: var(--muted); font-size: 15px; }
.lgs-group__site { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(22, 119, 185, .08); color: var(--blue) !important; font-size: 14px; font-weight: 500; transition: background .2s ease, color .2s ease; }
.lgs-group__site:hover { background: var(--blue); color: #fff !important; }
.lgs-group__site .lgs-ico { width: 15px; height: 15px; }

.lgs-cards { display: grid; gap: 22px; }
.lgs-cards--lis { grid-template-columns: repeat(5, 1fr); }
.lgs-cards--la { grid-template-columns: repeat(2, 1fr); }
.lgs-card { perspective: 1000px; }
.lgs-card[hidden] { display: none; }
.lgs-card.is-entering { animation: lgs-pop .5s cubic-bezier(.2, .8, .2, 1) both; }
.lgs-card.is-leaving { opacity: 0 !important; transform: scale(.94) !important; transition: opacity .2s ease, transform .2s ease !important; transition-delay: 0ms !important; }
@keyframes lgs-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.lgs-card > a { position: relative; display: flex; height: 100%; flex-direction: column; overflow: hidden; border-radius: var(--r); background: #fff; box-shadow: 0 1px 0 var(--line), 0 14px 34px -22px rgba(0, 38, 77, .5); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transform-style: preserve-3d; transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; will-change: transform; }
.lgs-card > a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: var(--sc); content: ''; transform: scaleX(.25); transform-origin: 0 50%; transition: transform .45s ease; }
.lgs-card > a:hover, .lgs-card > a:focus-visible { --ty: -8px; box-shadow: 0 30px 50px -24px rgba(0, 38, 77, .55), 0 0 0 1px color-mix(in srgb, var(--sc) 35%, transparent); }
.lgs-card > a:hover::after, .lgs-card > a:focus-visible::after { transform: scaleX(1); }
.lgs-card.is-tilting > a { transition: transform .12s linear, box-shadow .35s ease; }
.lgs-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.lgs-card__img::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 20, 45, .55), transparent 55%); content: ''; }
.lgs-card__img img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.lgs-card > a:hover .lgs-card__img img { transform: scale(1.08); }
.lgs-card__place { position: absolute; bottom: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 24px); padding: 6px 10px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 12px; font-weight: 500; line-height: 1.2; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lgs-card__place .lgs-ico { width: 14px; height: 14px; color: var(--sc); }
.lgs-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.lgs-card__name { color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.25; transition: color .2s ease; }
.lgs-card > a:hover .lgs-card__name { color: var(--sc); }
.lgs-card__meta { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.lgs-card__meta .lgs-ico { width: 16px; height: 16px; margin-top: 1px; color: var(--sc); }
.lgs-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; color: var(--sc); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lgs-card__go .lgs-ico { width: 16px; height: 16px; transition: transform .25s ease; }
.lgs-card > a:hover .lgs-card__go .lgs-ico { transform: translateX(5px); }
.lgs-card__glare { position: absolute; inset: 0; z-index: 2; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .28), transparent 45%); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.lgs-card.is-tilting .lgs-card__glare { opacity: 1; }
/* Light Academy: two wide cards, photo beside the text */
.lgs-cards--la .lgs-card > a { flex-direction: row; }
.lgs-cards--la .lgs-card__img { width: 50%; flex: none; aspect-ratio: auto; min-height: 250px; }
.lgs-cards--la .lgs-card__body { justify-content: center; padding: 26px 28px; }
.lgs-cards--la .lgs-card__name { font-size: 23px; }
.lgs-cards--la .lgs-card__go { margin-top: 8px; }
.lgs-dots { display: none; }

/* Learning platforms: a moving strip */
.lgs-vl { position: relative; overflow: hidden; padding: 80px 0 88px; background: radial-gradient(800px 400px at 10% 0%, rgba(22, 119, 185, .4), transparent 60%), var(--navy-d); }
.lgs-vl__head { margin-bottom: 40px; text-align: center; }
.lgs-vl__head .lgs-eyebrow::after { width: 28px; height: 2px; background: currentColor; content: ''; }
.lgs-vl h2 { color: #fff !important; font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; line-height: 1.1; }
.lgs-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lgs-marquee__track { display: flex; width: max-content; animation: lgs-marquee 34s linear infinite; }
.lgs-marquee:hover .lgs-marquee__track, .lgs-marquee:focus-within .lgs-marquee__track { animation-play-state: paused; }
.lgs-marquee__list { display: flex; gap: 18px; padding: 10px 9px; }
@keyframes lgs-marquee { to { transform: translateX(-50%); } }
.lgs-marquee__list a { display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff !important; font-size: 16px; font-weight: 500; white-space: nowrap; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.lgs-marquee__list img { width: 56px !important; height: 56px !important; border-radius: 50%; background: #fff; }
.lgs-marquee__list .lgs-ico { width: 16px; height: 16px; color: var(--gold); opacity: .6; transition: opacity .2s ease, transform .2s ease; }
.lgs-marquee__list a:hover { border-color: rgba(245, 200, 76, .6); background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.lgs-marquee__list a:hover .lgs-ico { opacity: 1; transform: translate(2px, -2px); }

/* Admissions */
.lgs-apply { position: relative; overflow: hidden; padding: 84px 0; background: linear-gradient(120deg, var(--red-d), var(--red)); isolation: isolate; }
.lgs-apply__bg { position: absolute; inset: 0; z-index: -2; opacity: .18; mix-blend-mode: luminosity; }
.lgs-apply__bg img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 35%; }
.lgs-apply__words { position: absolute; top: 50%; left: 0; z-index: -1; display: flex; width: max-content; margin-top: -.55em; color: transparent; font: italic 900 clamp(90px, 12vw, 170px)/1.1 var(--font); letter-spacing: -.02em; white-space: nowrap; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16); animation: lgs-marquee 60s linear infinite; pointer-events: none; }
.lgs-apply__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.lgs-apply h2 { color: #fff !important; font-size: clamp(34px, 4.2vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.lgs-apply__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.lgs-btn--white { box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5); }
.lgs-btn--white:hover { background: #fff7e0; }
.lgs-btn--shine { position: relative; overflow: hidden; }
.lgs-btn--shine::before { position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent); content: ''; transform: skewX(-20deg); animation: lgs-shine 3.6s ease-in-out infinite; }
@keyframes lgs-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* Footer */
.lgs-foot { position: relative; background: var(--navy-d); color: #a9bbd0; font-size: 14px; }
.lgs-foot::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, #ef8e1f, #70bf00, #009687, #13b15f, #ed0071, #006ab2); content: ''; }
.lgs-foot__in { display: flex; min-height: 104px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 24px !important; padding-bottom: 24px !important; }
.lgs-foot__motto { color: #fff; font: 600 30px/1.1 'Dancing Script', cursive; }
.lgs-foot__motto span { color: var(--gold); }
.lgs-foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.lgs-foot__links a { position: relative; color: #d3deea !important; font-weight: 500; }
.lgs-foot__links a::after { position: absolute; right: 0; bottom: -4px; left: 0; height: 2px; background: var(--gold); content: ''; transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s ease; }
.lgs-foot__links a:hover { color: #fff !important; }
.lgs-foot__links a:hover::after { transform: scaleX(1); }

/* Back to top (with scroll progress ring) */
.lgs-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: #fff; color: var(--navy) !important; box-shadow: 0 14px 30px -10px rgba(0, 38, 77, .45); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease, visibility .3s, background .2s ease, color .2s ease; }
.lgs-top.is-on { opacity: 1; visibility: visible; transform: none; }
.lgs-top:hover { background: var(--red); color: #fff !important; }
.lgs-top > .lgs-ico { width: 20px; height: 20px; transform: rotate(180deg); }
.lgs-top svg:not(.lgs-ico) { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.lgs-top__track { stroke: var(--line); }
.lgs-top__bar { stroke: var(--red); stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--p, 0)); stroke-linecap: round; }
.lgs-top:hover .lgs-top__bar { stroke: #fff; }

.lgs-pill { position: fixed; bottom: 18px; left: 18px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--navy-d); color: #fff !important; font: 500 13px/1 var(--font); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.lgs-pill strong { color: var(--gold); }

/* Reveal on scroll (only when JS runs) */
.lgs-js .lgs-rv { opacity: 0; filter: blur(6px); transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s ease; transition-delay: var(--rd, 0ms); }
.lgs-js .lgs-rv.is-in { opacity: 1; filter: none; transform: none; }

/* Large tablet / small laptop */
@media (max-width: 1180px) {
    .lgs-cards--lis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .lgs-hero { padding: 48px 0 88px; }
    .lgs-hero__in { grid-template-columns: 1fr; gap: 48px; }
    .lgs-show { max-width: 520px; margin: 0 auto; }
    .lgs-show__frame { aspect-ratio: 5 / 4.6; }
    .lgs-cards--la { grid-template-columns: 1fr; }
    .lgs-sec { padding: 76px 0; }
}
/* Tablet & phone: schools become swipeable rows */
@media (max-width: 760px) {
    .lgs-sec__head { margin-bottom: 32px; }
    .lgs-filter { width: 100%; justify-content: space-between; }
    .lgs-filter button { flex: 1 1 auto; padding: 0 10px; }
    .lgs-cards--lis, .lgs-cards--la { display: flex; gap: 14px; margin: 0 -18px; padding: 6px 18px 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .lgs-cards::-webkit-scrollbar { display: none; }
    .lgs-card { flex: 0 0 78%; max-width: 330px; scroll-snap-align: start; }
    .lgs-cards--la .lgs-card > a { flex-direction: column; }
    .lgs-cards--la .lgs-card__img { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
    .lgs-cards--la .lgs-card__body { justify-content: flex-start; padding: 18px 20px 20px; }
    .lgs-cards--la .lgs-card__name { font-size: 19px; }
    .lgs-dots { display: flex; justify-content: center; gap: 6px; }
    .lgs-dots span { width: 7px; height: 7px; border-radius: 4px; background: #c9d4e1; transition: width .3s ease, background .3s ease; }
    .lgs-dots span.is-on { width: 22px; background: var(--red); }
    .lgs-dots:has(span:only-child) { visibility: hidden; }
}
/* Phone */
@media (max-width: 680px) {
    .lgs-hero { padding: 36px 0 84px; }
    .lgs-hero h1 { font-size: clamp(46px, 14vw, 60px); }
    .lgs-hero__lead { margin: 18px 0 26px !important; font-size: 17px; }
    .lgs-hero__cta .lgs-btn { flex: 1 1 auto; justify-content: center; }
    .lgs-hero__find { margin-top: 28px; padding-top: 22px; gap: 8px; }
    .lgs-hero__find > span { width: 100%; }
    .lgs-show__frame { aspect-ratio: 1 / 1.02; border-radius: 180px 180px 18px 18px; }
    .lgs-show__ring { top: -16px; left: -12px; width: 96px; height: 96px; }
    .lgs-show__dotgrid { right: -10px; width: 80px; height: 110px; }
    .lgs-show__cap { bottom: 18px; left: 18px; font-size: 14px; }
    .lgs-show__dots { right: 16px; bottom: 20px; gap: 4px; }
    .lgs-show__dots button { width: 24px; }
    .lgs-hero__scroll { display: none; }
    .lgs-sec { padding: 60px 0; }
    .lgs-group + .lgs-group { margin-top: 44px; }
    .lgs-group__head { margin-bottom: 14px; }
    .lgs-vl { padding: 60px 0 64px; }
    .lgs-vl__head { margin-bottom: 28px; }
    .lgs-marquee__list a { gap: 10px; padding: 8px 16px 8px 8px; font-size: 14px; }
    .lgs-marquee__list img { width: 44px !important; height: 44px !important; }
    .lgs-apply { padding: 60px 0; }
    .lgs-apply__in { gap: 22px; }
    .lgs-apply__cta, .lgs-apply__cta .lgs-btn { width: 100%; justify-content: center; }
    .lgs-foot__in { flex-direction: column; justify-content: center; padding-top: 30px !important; padding-bottom: 80px !important; text-align: center; }
    .lgs-foot__links { justify-content: center; }
    .lgs-pill { right: 84px; left: 14px; bottom: 14px; padding: 12px 14px; text-align: center; }
    .lgs-top { right: 14px; bottom: 10px; width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lgs-home *, .lgs-home *::before, .lgs-home *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .lgs-js .lgs-rv { opacity: 1; filter: none; transform: none; }
    .lgs-marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
    .lgs-marquee__list[aria-hidden="true"] { display: none; }
    .lgs-marquee__list { flex-wrap: wrap; justify-content: center; }
    .lgs-apply__words { display: none; }
}
