@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* 1. Variables */
:root {
  --navy-950: #07182f;
  --navy-900: #0a2242;
  --navy-800: #103761;
  --blue: #1859a5;
  --blue-light: #dfeaf7;
  --gold: #c49a46;
  --gold-light: #ead9ad;
  --ivory: #fbf8f1;
  --surface: #ffffff;
  --surface-soft: #f3f5f7;
  --text: #10243e;
  --muted: #657284;
  --border: #dce2e8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: min(1180px, calc(100% - 48px));
  --header-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 13. Youthful editorial refinement — mobile first */
:root {
  --navy-950: #06162b;
  --navy-900: #0a2343;
  --navy-800: #123b6a;
  --blue: #175eae;
  --blue-light: #e8f1fb;
  --gold: #d3a63f;
  --gold-light: #f1dc9f;
  --ivory: #faf8f2;
  --surface-soft: #f2f5f8;
  --text: #0c213b;
  --muted: #637184;
  --border: #d9e0e7;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --space-xs: .5rem;
  --space-sm: .875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.75rem;
  --space-section: clamp(3.75rem, 7vw, 6.5rem);
  --container: calc(100% - 32px);
  --header-h: 72px;
}

body { font-size: .96rem; background: var(--ivory); }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 12vw, 4.2rem); }
h2 { font-size: clamp(2.25rem, 10vw, 3.8rem); }
.section { padding-block: var(--space-section); }
.section:nth-of-type(even) { position: relative; }
.section-head { display: block; margin-bottom: var(--space-xl); }
.section-head .arrow-link { margin-top: var(--space-md); }
.section-title { margin-bottom: var(--space-sm); }
.section-intro { font-size: .95rem; }
.eyebrow { gap: 10px; margin-bottom: 16px; font-size: .64rem; letter-spacing: .2em; }
.eyebrow::before { width: 24px; background: var(--gold); }
.lead { font-size: 1.06rem; }
.gold-rule { width: 54px; }

/* Subtle science-inspired section backgrounds */
.home-about,
.home-leadership,
.home-programs,
.home-news,
.home-timeline,
.home-gallery,
.home-cta { position: relative; isolation: isolate; overflow: hidden; }

.home-about > .container,
.home-leadership > .container,
.home-programs > .container,
.home-news > .container,
.home-timeline > .container,
.home-gallery > .container,
.home-cta > .container { position: relative; z-index: 2; }

.home-about {
  background:
    radial-gradient(circle at 92% 12%, rgba(23,94,174,.09), transparent 28%),
    linear-gradient(145deg, #fff 0 67%, #f3f7fb 100%);
}
.home-about::before {
  position: absolute;
  top: 30px;
  right: 4%;
  width: min(32vw, 390px);
  aspect-ratio: 1;
  background-image: radial-gradient(rgba(23,94,174,.18) 1px, transparent 1px);
  background-size: 16px 16px;
  content: "";
  opacity: .42;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 76%);
  mask-image: linear-gradient(135deg, #000, transparent 76%);
}

.home-leadership {
  color: white;
  background:
    radial-gradient(circle at 86% 18%, rgba(23,94,174,.42), transparent 32%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    var(--navy-950);
  background-size: auto, 50px 50px, 50px 50px, auto;
}
.home-leadership::before {
  position: absolute;
  right: -160px;
  bottom: -260px;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(241,220,159,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.018), 0 0 0 120px rgba(211,166,63,.018);
  content: "";
}
.home-leadership .section-title,
.home-leadership .section-head .arrow-link { color: white; }
.home-leadership .section-intro { color: rgba(255,255,255,.64); }

.home-programs {
  background:
    linear-gradient(rgba(23,94,174,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,94,174,.035) 1px, transparent 1px),
    linear-gradient(135deg, #f5f8fc, #eef3f8 58%, #f9f6ed);
  background-size: 44px 44px, 44px 44px, auto;
}
.home-programs::before {
  position: absolute;
  top: -260px;
  left: -250px;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(211,166,63,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(211,166,63,.025), 0 0 0 110px rgba(23,94,174,.02);
  content: "";
}

.home-news {
  background:
    radial-gradient(circle at 8% 88%, rgba(211,166,63,.12), transparent 23%),
    linear-gradient(180deg, #fff 0%, #faf9f5 100%);
}
.home-news::before {
  position: absolute;
  right: -170px;
  bottom: -240px;
  width: 520px;
  aspect-ratio: 1;
  border: 1px solid rgba(23,94,174,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(23,94,174,.018);
  content: "";
}
.home-news::after {
  position: absolute;
  top: 0;
  left: 7%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(211,166,63,.22) 20%, rgba(211,166,63,.22) 80%, transparent);
  content: "";
}

.home-timeline {
  background:
    radial-gradient(circle at 84% 24%, rgba(23,94,174,.28), transparent 31%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--navy-950);
  background-size: auto, 52px 52px, 52px 52px, auto;
}
.home-timeline::after {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: min(22vw, 250px);
  aspect-ratio: 1;
  background-image: radial-gradient(rgba(241,220,159,.26) 1px, transparent 1px);
  background-size: 14px 14px;
  content: "";
  opacity: .35;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 72%);
  mask-image: radial-gradient(circle, #000, transparent 72%);
}

.home-gallery {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(23,94,174,.08), transparent 31%),
    radial-gradient(ellipse at 91% 78%, rgba(211,166,63,.1), transparent 28%),
    #f7f4ec;
}
.home-gallery::before {
  position: absolute;
  top: 0;
  right: 12%;
  width: 1px;
  height: 100%;
  background: rgba(23,94,174,.1);
  content: "";
}
.home-gallery::after {
  position: absolute;
  top: 62px;
  right: calc(12% - 4px);
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 74px 0 rgba(23,94,174,.35), 0 148px 0 rgba(23,94,174,.18);
  content: "";
}

.cta-band.home-cta {
  background:
    radial-gradient(circle at 76% 18%, rgba(255,255,255,.14), transparent 25%),
    linear-gradient(120deg, #15559f 0%, #0f4687 58%, #0a3567 100%);
}

/* Inner pages receive a quieter version of the same visual language. */
.page-main > .section:not(.section--navy):not(.home-about):not(.home-programs):not(.home-news):not(.home-gallery) {
  background:
    radial-gradient(circle at 94% 8%, rgba(23,94,174,.055), transparent 24%),
    linear-gradient(180deg, #fff, #fafbfc);
}
.page-main > .section.section--ivory:not(.home-programs) {
  background:
    linear-gradient(rgba(23,94,174,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,94,174,.025) 1px, transparent 1px),
    var(--ivory);
  background-size: 48px 48px, 48px 48px, auto;
}

/* Header refinement */
.site-header { height: var(--header-h); border-color: rgba(255,255,255,.14); }
.site-header.is-solid { color: white; background: rgba(6,22,43,.88); box-shadow: 0 14px 40px rgba(4,16,31,.14); backdrop-filter: blur(18px); }
.site-header:not(.site-header--overlay):not(.is-solid) { color: var(--navy-950); background: rgba(250,248,242,.94); box-shadow: none; backdrop-filter: blur(14px); }
.nav-shell { gap: 16px; }
.brand { position: relative; z-index: 101; min-width: 0; gap: 10px; }
.brand__mark { width: 50px; flex: 0 0 50px; padding: 2px; overflow: hidden; background: white; border: 1px solid rgba(211,166,63,.58); font-size: 0; }
.brand__mark img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand__text strong { font-size: 1.1rem; }
.brand__text span { display: none; white-space: nowrap; }
.nav-toggle { display: block; width: 46px; height: 46px; border-radius: var(--radius-sm); }
.nav-panel { position: fixed; z-index: 99; top: 0; right: 0; bottom: 0; left: 0; height: 100svh; padding-top: calc(var(--header-h) + 28px); visibility: hidden; opacity: 0; color: white; background: var(--navy-950); transform: translateX(100%); transition: opacity .35s, transform .45s var(--ease), visibility .35s; overflow-y: auto; }
.nav-panel::before { position: absolute; top: 16%; right: -35%; width: 82vw; max-width: 460px; aspect-ratio: 1; border: 1px solid rgba(211,166,63,.18); border-radius: 50%; content: ""; pointer-events: none; }
.nav-panel.is-open { visibility: visible; opacity: 1; transform: none; }
.nav-toggle { position: relative; z-index: 101; }
.nav-list { counter-reset: mobile-nav; display: block; width: var(--container); margin: 0 auto 50px; }
.nav-list > li { counter-increment: mobile-nav; position: relative; border-color: rgba(255,255,255,.14); }
.nav-list > li::before { position: absolute; z-index: 1; top: 21px; left: 0; color: var(--gold-light); content: "0" counter(mobile-nav); font-size: .61rem; font-weight: 700; letter-spacing: .12em; }
.nav-link, .dropdown-toggle { width: 100%; min-height: 68px; justify-content: space-between; padding-left: 42px; color: white; font-family: var(--serif); font-size: clamp(1.35rem, 6vw, 1.8rem); font-weight: 400; letter-spacing: -.02em; text-transform: none; }
.dropdown-menu { counter-reset: submenu; position: static; display: none; width: 100%; padding: 0 0 16px 42px; visibility: visible; opacity: 1; background: transparent; border: 0; box-shadow: none; list-style: none; transform: none; transition: none; }
.dropdown-menu li { counter-increment: submenu; }
.dropdown:hover .dropdown-menu { display: none; }
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a { display: grid; min-height: 48px; grid-template-columns: 28px 1fr; align-items: center; padding: 8px 0; color: rgba(255,255,255,.67); border-bottom: 1px solid rgba(255,255,255,.1); font-size: .78rem; letter-spacing: .04em; }
.dropdown-menu a::before { color: var(--gold-light); content: "0" counter(submenu); font-size: .58rem; font-weight: 800; letter-spacing: .08em; }
.dropdown-menu li:last-child a { border-bottom: 0; }
.dropdown-menu a:hover { color: white; }
.chevron { width: 10px; height: 10px; }
body.nav-open .site-header { color: white; background: transparent; box-shadow: none; backdrop-filter: none; }

/* Cinematic four-slide hero */
.hero { height: min(100svh, 860px); min-height: 760px; background: var(--navy-950); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { display: grid; opacity: 0; transform: scale(1.025); transition: opacity .9s var(--ease), transform 6.5s linear; }
.hero__slide.is-active { z-index: 1; opacity: 1; transform: scale(1); }
.hero__slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide--1 > img { object-position: 63% center; }
.hero__slide--2 > img { object-position: 51% center; }
.hero__slide--3 > img { object-position: 50% center; }
.hero__slide--4 > img { object-position: 51% center; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,22,43,.12) 12%, rgba(6,22,43,.18) 37%, rgba(6,22,43,.94) 91%), linear-gradient(90deg, rgba(10,35,67,.48), transparent 82%); }
.hero__frame { position: relative; z-index: 2; display: flex; width: var(--container); height: 100%; align-items: flex-end; margin-inline: auto; padding: 120px 0 116px; }
.hero__copy { width: 100%; max-width: 650px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--gold-light); font-size: .64rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.hero__eyebrow::before { width: 30px; height: 1px; background: var(--gold); content: ""; }
.hero h1, .hero h2 { max-width: 640px; margin-bottom: 14px; color: white; font-size: clamp(2.6rem, 12vw, 4.1rem); line-height: .98; text-transform: none; text-wrap: balance; }
.hero h1 em, .hero h2 em { color: var(--gold-light); font-weight: inherit; }
.hero__subtitle { max-width: 480px; margin-bottom: 23px; color: rgba(255,255,255,.78); font-size: .91rem; line-height: 1.6; }
.hero__actions { display: flex; align-items: stretch; flex-direction: column; gap: 9px; }
.hero__actions .button { width: 100%; min-height: 52px; }
.button { min-height: 50px; border-radius: var(--radius-sm); }
.button--glass { color: white; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.42); backdrop-filter: blur(8px); }
.button--glass:hover { color: var(--navy-950); background: white; }
.hero__controls { right: 16px; bottom: 24px; left: 16px; justify-content: space-between; gap: 10px; }
.hero__arrow { width: 48px; height: 48px; border-radius: var(--radius-sm); }
.hero__status { order: -1; width: auto; min-width: 0; flex: 1; gap: 11px; }
.hero__progress { width: min(120px, 28vw); }
.hero__progress span { transform: scaleX(.25); }

/* About / programs */
#tentang { overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.about-copy { position: relative; z-index: 2; }
.about-meta { display: grid; gap: 8px; margin-top: var(--space-lg); padding-top: var(--space-md); color: var(--muted); border-top: 1px solid var(--border); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.about-meta span:first-child { color: var(--blue); }
.about-media { width: calc(100% - 12px); margin: 16px 0 0 12px; }
.about-media::before { top: -14px; right: -14px; width: 56%; height: 52%; }
.about-media img { aspect-ratio: 4 / 5; border-radius: var(--radius-sm); }
.about-note { position: relative; right: auto; bottom: auto; max-width: calc(100% - 20px); margin: -35px 0 0 20px; padding: 20px; border-radius: var(--radius-sm); font-size: 1.08rem; }
.about-note span { display: block; margin-bottom: 8px; color: var(--gold-light); font-family: var(--sans); font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.olympiad-grid { grid-template-columns: 1fr; background: var(--border); border: 0; gap: 1px; }
.olympiad-item { min-height: 250px; padding: 28px 24px; background: white; border: 0; }
.olympiad-item:nth-child(2), .olympiad-item:nth-child(3), .olympiad-item:nth-child(4) { background: white; }
.olympiad-item:nth-child(5) { background: white; }
.olympiad-item::before { position: absolute; top: 0; left: 0; width: 0; height: 3px; background: var(--gold); content: ""; transition: width .45s var(--ease); }
.olympiad-item::after { right: -70px; bottom: -95px; border-color: rgba(24,89,165,.12); }
.olympiad-item:hover { background: #eef5fc; }
.olympiad-item:hover::before { width: 100%; }
.olympiad-item__num { font-size: 2.7rem; line-height: 1; transition: transform .35s var(--ease); }
.olympiad-item:hover .olympiad-item__num { transform: translateX(5px); }
.olympiad-item h3 { margin: 24px 0; font-size: 1.65rem; }
.olympiad-item__num { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.olympiad-item__num small { color: var(--muted); font-family: var(--sans); font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
.program-scope { max-width: 520px; margin: -12px 0 24px; color: var(--muted); font-size: .78rem; line-height: 1.7; }

/* Leadership preview */
.leadership-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 8px; }
.home-role-group { min-width: 0; }
.home-role-group--pembina,
.home-role-group--dewan { grid-column: 1 / -1; }
.home-role-group__head { display: flex; min-height: 52px; align-items: flex-end; margin-bottom: 12px; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.17); }
.home-role-group__head h3 { margin: 0; color: white; font-size: clamp(1.25rem, 5vw, 1.75rem); }
.leadership-director { position: relative; display: grid; min-height: 410px; align-content: end; padding: 28px 24px; overflow: hidden; background: var(--navy-900); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-sm); }
.leadership-director::after { position: absolute; z-index: 2; top: -80px; right: -80px; width: 230px; aspect-ratio: 1; border: 1px solid rgba(241,220,159,.18); border-radius: 50%; content: ""; pointer-events: none; }
.leadership-director__photo { position: absolute; z-index: 0; inset: 0; }
.leadership-director__photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,22,43,.08) 15%, rgba(6,22,43,.34) 50%, rgba(6,22,43,.98) 91%); content: ""; }
.leadership-director__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; filter: saturate(.9); }
.leadership-director__copy { position: relative; z-index: 3; }
.leadership-director h3 { max-width: 570px; margin: 9px 0 8px; color: white; font-size: clamp(1.8rem, 8vw, 3rem); line-height: 1.02; }
.leadership-director p { max-width: 500px; margin: 0; color: rgba(255,255,255,.62); font-size: .82rem; }
.role-label { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: .6rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.role-label::before { width: 18px; height: 1px; background: currentColor; content: ""; }
.home-leadership .role-label { color: var(--gold-light); }
.team-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.team-strip.team-strip--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-strip.team-strip--single { grid-template-columns: minmax(0, 1fr); }
.team-strip__item { --portrait-position: center top; --portrait-origin: center center; --portrait-scale: 1; --portrait-hover-scale: 1.035; position: relative; min-width: 0; min-height: 230px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-800); border-radius: var(--radius-sm); }
.team-strip__item img { width: 100%; height: 100%; object-fit: cover; object-position: var(--portrait-position); filter: saturate(.9); transform: scale(var(--portrait-scale)); transform-origin: var(--portrait-origin); transition: transform .55s var(--ease), filter .35s; }
.team-strip__item--azis { --portrait-position: center 12%; --portrait-origin: center 30%; --portrait-scale: 1.04; --portrait-hover-scale: 1.075; }
.team-strip__item--hairus { --portrait-position: center 10%; --portrait-origin: center 28%; --portrait-scale: 1.03; --portrait-hover-scale: 1.065; }
.team-strip__item:nth-child(4) img { object-position: center 15%; }
.team-strip__item span { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 42px 13px 12px; color: white; background: linear-gradient(transparent, rgba(6,22,43,.92)); font-family: var(--serif); font-size: .94rem; line-height: 1.15; }
.team-strip__item small { display: block; margin-bottom: 4px; color: var(--gold-light); font-family: var(--sans); font-size: .5rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.team-strip__item:hover img { filter: saturate(1); transform: scale(var(--portrait-hover-scale)); }
.home-leadership .section-head > div,
.leadership-director > div,
.olympiad-item > div { min-width: 0; }
.home-leadership .section-title,
.leadership-director h3 { overflow-wrap: anywhere; }

/* Program roadmap */
.program-roadmap { margin-top: var(--space-lg); overflow: hidden; background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.program-roadmap__intro { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 18px; padding: 24px; background: var(--blue-light); border-bottom: 1px solid var(--border); }
.roadmap-year { color: var(--gold); font-family: var(--serif); font-size: 1.35rem; }
.program-roadmap h3 { margin: 0 0 4px; font-size: 1.35rem; }
.program-roadmap p { margin: 0; color: var(--muted); font-size: .8rem; }
.roadmap-regions { display: grid; grid-template-columns: 1fr; padding: 8px 24px; }
.roadmap-regions span { display: flex; min-height: 50px; align-items: center; gap: 11px; color: var(--text); border-bottom: 1px solid var(--border); font-size: .78rem; font-weight: 650; }
.roadmap-regions span::before { width: 6px; height: 6px; flex: 0 0 auto; background: var(--gold); border-radius: 50%; content: ""; }
.roadmap-regions span:last-child { border-bottom: 0; }
.roadmap-national { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 28px 24px; color: white; background: var(--navy-900); }
.roadmap-national .roadmap-year { color: var(--gold-light); }
.roadmap-national h3 { margin-top: 8px; color: white; font-size: clamp(1.5rem, 7vw, 2.35rem); }
.roadmap-national h3 em { color: var(--gold-light); font-weight: inherit; }
.roadmap-national p { color: rgba(255,255,255,.64); }

/* Complete committee */
.committee-section { position: relative; overflow: hidden; }
.committee-count { display: inline-flex; margin-top: 18px; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.director-card { position: relative; display: grid; min-height: 410px; align-content: end; gap: 30px; padding: 30px 24px; overflow: hidden; color: white; background: var(--navy-900); border-radius: var(--radius-md); }
.director-card::before { position: absolute; top: -160px; right: -120px; width: 390px; aspect-ratio: 1; border: 1px solid rgba(241,220,159,.17); border-radius: 50%; box-shadow: 0 0 0 54px rgba(255,255,255,.018); content: ""; }
.director-card__photo { position: relative; z-index: 1; width: min(100%, 320px); aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); }
.director-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.director-card__copy { position: relative; z-index: 1; }
.director-card__copy h3 { max-width: 780px; margin: 10px 0; color: white; font-size: clamp(2rem, 8vw, 4.1rem); line-height: 1; }
.director-card__copy p { margin: 0; color: rgba(255,255,255,.62); }
.director-card__index { position: absolute; right: 20px; bottom: -22px; color: rgba(255,255,255,.045); font-family: var(--serif); font-size: 9rem; line-height: 1; }
.director-card--ordered { margin-top: 52px; }
.committee-group { margin-top: 52px; }
.committee-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.committee-group__head h3 { margin: 0; font-size: clamp(1.7rem, 7vw, 2.5rem); }
.committee-group__head span { color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.people-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.person-card { overflow: hidden; background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.person-card:hover { box-shadow: 0 22px 48px rgba(7,24,47,.09); transform: translateY(-4px); }
.person-card__photo { aspect-ratio: 4 / 4.45; overflow: hidden; background: var(--surface-soft); }
.person-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .55s var(--ease); }
.person-card:hover .person-card__photo img { transform: scale(1.025); }
.person-card__body { padding: 23px 20px 25px; }
.person-card__body h4 { margin: 10px 0 9px; color: var(--navy-950); font-family: var(--serif); font-size: 1.35rem; line-height: 1.16; }
.person-card__body p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.65; }
.program-row h2 small { display: block; margin-top: 5px; color: var(--muted); font-family: var(--sans); font-size: .6rem; font-weight: 800; letter-spacing: .12em; }

/* Newsroom */
.news-chips { display: flex; margin: 0 0 var(--space-lg); padding-bottom: 8px; gap: 7px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.news-chips::-webkit-scrollbar { display: none; }
.news-chips a { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 13px; color: var(--muted); background: white; border: 1px solid var(--border); border-radius: 999px; font-size: .65rem; font-weight: 750; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; scroll-snap-align: start; }
.news-chips a:first-child { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.news-grid { display: grid; grid-template-columns: 1fr; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.news-card, .news-card + .news-card { min-height: 0; padding: 27px 23px; background: white; border: 0; border-bottom: 1px solid var(--border); }
.news-card:last-child { border-bottom: 0; }
.news-card:first-child { min-height: 430px; justify-content: flex-end; color: white; background: var(--navy-900); }
.news-card:first-child h3, .news-card:first-child .arrow-link { color: white; }
.news-card:first-child h3 { font-size: clamp(2rem, 9vw, 3.3rem); }
.news-card:first-child p { color: rgba(255,255,255,.67); }
.news-card:first-child .news-card__meta { color: rgba(255,255,255,.58); }
.news-card:first-child .news-card__category { color: var(--gold-light); }
.news-card .demo-label { margin: 18px 0 13px; }
.news-card h3 { font-size: 1.45rem; }

/* Timeline: intro, photo, then controls on mobile */
.section--navy { position: relative; overflow: hidden; }
.section--navy::before { position: absolute; top: -30%; left: -35%; width: 90vw; max-width: 700px; aspect-ratio: 1; border: 1px solid rgba(211,166,63,.1); border-radius: 50%; content: ""; }
.timeline { position: relative; display: grid; grid-template-columns: 1fr; grid-template-areas: "intro" "stage" "tabs"; gap: var(--space-lg); }
.timeline-intro { grid-area: intro; }
.timeline-stage { grid-area: stage; min-height: 340px; border-radius: var(--radius-sm); }
.timeline-tabs { grid-area: tabs; width: 100%; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.timeline-tab { min-width: 76px; font-size: 1.08rem; scroll-snap-align: center; }
.timeline-tab.is-active { color: var(--gold-light); font-size: 1.24rem; }
.timeline-tabs::after { position: absolute; z-index: 0; top: 17px; left: 18px; width: 0; height: 1px; background: var(--gold); content: ""; transition: width .5s var(--ease); }
.timeline-tabs:has(.timeline-tab:nth-child(2).is-active)::after { width: calc(50% - 18px); }
.timeline-tabs:has(.timeline-tab:nth-child(3).is-active)::after { width: calc(100% - 36px); }

/* Gallery as CSS Grid */
.gallery-featured { display: grid; height: auto; min-height: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 280px 175px 175px; grid-auto-rows: 175px; gap: 7px; }
.gallery-featured a, .gallery-featured a:nth-child(1), .gallery-featured a:nth-child(4) { grid-row: auto; grid-column: auto; border-radius: var(--radius-sm); }
.gallery-featured a:nth-child(1) { grid-column: 1 / 3; }
.gallery-featured a:nth-child(4) { display: block; }
.gallery-featured img { border-radius: inherit; }
.gallery-featured a::before { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 5px 8px; color: var(--navy-950); background: var(--gold-light); border-radius: 4px; content: attr(data-year); font-size: .58rem; font-weight: 800; letter-spacing: .08em; }
.gallery-featured a span { z-index: 3; }
.gallery-featured a::after { opacity: .35; }
.gallery-featured a span { opacity: 1; transform: none; }

/* CTA */
.cta-band { padding-block: var(--space-section); background: var(--blue); }
.cta-band::before { position: absolute; top: 0; right: 8%; bottom: 0; width: 1px; background: rgba(255,255,255,.12); content: ""; }
.cta-band::after { right: -38vw; width: 90vw; border-color: rgba(255,255,255,.18); }
.cta-band__inner { display: grid; align-items: end; grid-template-columns: 1fr; gap: var(--space-xl); }
.cta-band h2 { font-size: clamp(2.8rem, 12vw, 5.7rem); line-height: .93; }
.cta-band__actions { position: relative; z-index: 2; }
.cta-quicklinks { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: var(--space-lg); border-top: 1px solid rgba(255,255,255,.3); }
.cta-quicklinks a { display: flex; min-height: 46px; align-items: center; color: rgba(255,255,255,.76); border-bottom: 1px solid rgba(255,255,255,.2); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.cta-quicklinks a:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.2); }
.cta-band .button { margin-top: 0; }

/* Inner pages */
.page-hero { min-height: 430px; border-bottom: 1px solid rgba(211,166,63,.25); }
.page-hero::after { background: linear-gradient(180deg, rgba(6,22,43,.08), rgba(6,22,43,.9)); }
.page-hero__content { padding-block: 110px 58px; }
.page-hero h1 { font-size: clamp(2.75rem, 12vw, 5.8rem); }
.profile-grid, .contact-layout, .article-layout { grid-template-columns: 1fr; }
.program-row { grid-template-columns: 44px 1fr 22px; min-height: 138px; gap: 13px; }
.program-row h2 { font-size: 1.55rem; }
.detail-section { grid-template-columns: 1fr; gap: 5px; }
.detail-nav__inner { justify-content: flex-start; }
.info-tools { grid-template-columns: 1fr; }
.info-item { grid-template-columns: 1fr; gap: 13px; }
.info-item > .program-row__arrow { display: none; }
.gallery-grid { columns: 1; }

/* Modern expanded footer */
.site-footer { position: relative; overflow: hidden; }
.footer-main { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: var(--space-xl); padding-block: 68px 100px; }
.footer-brand h2 { margin-bottom: 13px; font-size: clamp(4.8rem, 23vw, 8rem); line-height: .8; letter-spacing: -.06em; }
.footer-brand__logo { display: block; width: clamp(120px, 20vw, 170px); aspect-ratio: 1; padding: 3px; object-fit: contain; overflow: hidden; background: white; border: 1px solid rgba(241,220,159,.5); border-radius: 50%; box-shadow: 0 20px 48px rgba(0,0,0,.22); }
.footer-brand__logo + p { margin-top: 18px; }
.footer-brand p { max-width: 310px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
.footer-nav__group strong { display: block; margin-bottom: 12px; color: var(--gold-light); font-size: .61rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-nav__group a { display: block; min-height: 34px; padding: 4px 0; color: rgba(255,255,255,.62); border: 0; font-size: .72rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.footer-nav__group a:hover { color: white; }
.site-footer::after { position: absolute; right: -4vw; bottom: -4vw; color: rgba(255,255,255,.025); content: "LOSPI"; font-family: var(--serif); font-size: 34vw; line-height: .7; letter-spacing: -.08em; pointer-events: none; }
.footer-bottom { position: relative; z-index: 2; flex-direction: column; }

@media (min-width: 540px) {
  :root { --container: min(100% - 48px, 1180px); }
  .hero__actions { width: max-content; flex-direction: row; }
  .hero__actions .button { width: auto; }
  .hero h1, .hero h2 { font-size: clamp(3.5rem, 9vw, 5.2rem); }
  .gallery-featured { grid-template-rows: 360px 220px 220px; }
  .gallery-grid { columns: 2; }
  .info-item { grid-template-columns: 130px 1fr; gap: 22px; }
  .team-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roadmap-regions { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}

@media (min-width: 768px) {
  :root { --header-h: 78px; }
  body { font-size: 1rem; }
  .section-head { display: flex; }
  .section-head .arrow-link { margin-top: 0; }
  .hero { min-height: 700px; }
  .hero__frame { padding-bottom: 138px; }
  .hero__shade { background: linear-gradient(90deg, rgba(6,22,43,.88) 0%, rgba(9,35,67,.55) 42%, rgba(9,35,67,.06) 78%), linear-gradient(0deg, rgba(6,22,43,.55), transparent 52%); }
  .hero__copy { max-width: 650px; }
  .hero h1, .hero h2 { font-size: clamp(3.8rem, 7.8vw, 5.6rem); }
  .hero__subtitle { font-size: 1.05rem; }
  .hero__controls { right: max(24px, calc((100vw - 1180px)/2)); left: auto; width: 340px; }
  .hero__status { order: 0; }
  .split { grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: clamp(45px, 7vw, 105px); }
  .about-media { width: 100%; margin: 0; }
  .about-media img { aspect-ratio: 5 / 6; }
  .about-note { position: absolute; right: -18px; bottom: 28px; max-width: 240px; margin: 0; }
  .olympiad-grid { grid-template-columns: 1fr 1fr; }
  .olympiad-item:first-child, .olympiad-item:last-child { grid-column: 1 / 3; min-height: 290px; }
  .olympiad-grid .olympiad-item:last-child { grid-column: auto; min-height: 250px; }
  .leadership-director { min-height: 360px; padding: 36px; }
  .team-strip__item { min-height: 300px; }
  .program-roadmap__intro, .roadmap-national { grid-template-columns: 105px 1fr; padding: 30px 34px; }
  .roadmap-regions { padding-inline: 34px; }
  .roadmap-year { font-size: 1.7rem; }
  .committee-count { margin-top: 0; }
  .director-card { min-height: 370px; grid-template-columns: 280px 1fr; align-items: center; padding: 42px; }
  .director-card__photo { width: 100%; max-width: none; }
  .people-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .people-grid--two { grid-template-columns: repeat(2, 1fr); }
  .people-grid--single { grid-template-columns: minmax(0, 760px); }
  .person-card--horizontal { display: grid; grid-template-columns: 260px 1fr; align-items: stretch; }
  .person-card--horizontal .person-card__photo { aspect-ratio: auto; min-height: 300px; }
  .person-card--horizontal .person-card__body { display: flex; justify-content: center; flex-direction: column; padding: 34px; }
  .person-card--horizontal .person-card__body h4 { font-size: 1.8rem; }
  .news-grid { grid-template-columns: 1.22fr .78fr; grid-template-rows: repeat(3, 1fr); }
  .news-card, .news-card + .news-card { padding: 28px; border-bottom: 1px solid var(--border); }
  .news-card:first-child { grid-row: 1 / 4; min-height: 650px; padding: clamp(32px, 5vw, 58px); border-right: 1px solid var(--border); border-bottom: 0; }
  .news-card:last-child { border-bottom: 0; }
  .timeline { grid-template-columns: .78fr 1.22fr; grid-template-areas: "intro stage" "tabs stage"; align-items: end; gap: 34px 70px; }
  .timeline-stage { min-height: 560px; }
  .gallery-featured { height: 680px; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .gallery-featured a:nth-child(1) { grid-row: 1 / 5; grid-column: 1 / 4; }
  .gallery-featured a:nth-child(2) { grid-row: 1 / 3; grid-column: 4 / 6; }
  .gallery-featured a:nth-child(3) { grid-row: 1 / 3; grid-column: 6; }
  .gallery-featured a:nth-child(4) { grid-row: 3 / 5; grid-column: 4; }
  .gallery-featured a:nth-child(5) { grid-row: 3; grid-column: 5 / 7; }
  .gallery-featured a:nth-child(6) { grid-row: 4; grid-column: 5 / 7; }
  .cta-band__inner { grid-template-columns: 1.2fr .8fr; }
  .profile-grid, .contact-layout { grid-template-columns: .8fr 1.2fr; }
  .article-layout { grid-template-columns: minmax(0,750px) 260px; }
  .program-row { grid-template-columns: 90px 1fr auto; min-height: 170px; gap: 28px; }
  .program-row h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
  .detail-section { grid-template-columns: 210px 1fr; gap: 60px; }
  .info-tools { grid-template-columns: 1.2fr .8fr; }
  .info-item { grid-template-columns: 170px 1fr auto; gap: 32px; }
  .info-item > .program-row__arrow { display: block; }
  .gallery-grid { columns: 3; }
  .footer-main { grid-template-columns: .85fr 1.15fr; gap: 70px; padding-block: 90px 130px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; }
  .brand__mark { width: 54px; flex-basis: 54px; }
}

@media (min-width: 1051px) {
  .nav-toggle { display: none; }
  .nav-panel { position: static; height: auto; padding: 0; visibility: visible; opacity: 1; color: inherit; background: transparent; transform: none; overflow: visible; }
  .nav-panel::before { display: none; }
  .nav-list { counter-reset: none; display: flex; width: auto; margin: 0; gap: clamp(16px, 1.6vw, 26px); }
  .nav-list > li { counter-increment: none; border: 0; }
  .nav-list > li::before { display: none; }
  .nav-link, .dropdown-toggle { width: auto; min-height: 44px; padding: 0; color: inherit; font-family: var(--sans); font-size: .67rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
  .nav-link::after { display: block; }
  .dropdown-menu { position: absolute; display: block; top: calc(100% + 12px); left: -22px; width: 310px; padding: 10px 14px; visibility: hidden; opacity: 0; color: var(--text); background: white; border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: 0 24px 55px rgba(7,24,47,.16); transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu, .dropdown.is-open .dropdown-menu { display: block; visibility: visible; opacity: 1; transform: translateY(0); }
  .dropdown-menu a { min-height: 48px; grid-template-columns: 32px 1fr auto; padding: 9px 8px; color: var(--text); border-color: var(--border); transition: color .2s, padding-left .2s, background .2s; }
  .dropdown-menu a::before { color: var(--gold); }
  .dropdown-menu a::after { color: var(--muted); content: "↗"; font-size: .75rem; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
  .dropdown-menu a:hover { padding-left: 12px; color: var(--blue); background: var(--blue-light); }
  .dropdown-menu a:hover::after { opacity: 1; transform: none; }
  .brand__text span { display: block; font-size: .52rem; letter-spacing: .06em; }
  .hero__frame { padding-bottom: 128px; }
  .hero__copy { max-width: 720px; }
  .hero h1, .hero h2 { font-size: clamp(4rem, 5.7vw, 5.5rem); }
  .hero__slide--1 > img { object-position: center 44%; }
  .hero__slide--2 > img { object-position: center 45%; }
  .hero__slide--3 > img { object-position: center 48%; }
  .hero__slide--4 > img { object-position: center 48%; }
  .olympiad-item { padding: 44px; }
  .leadership-preview { grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: stretch; gap: 30px 8px; }
  .home-role-group--pembina,
  .home-role-group--dewan { grid-column: 1 / -1; }
  .home-role-group--pembina .team-strip,
  .home-role-group--dewan .team-strip { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .home-role-group--pembina .team-strip__item:nth-child(1) { grid-column: 4 / span 2; }
  .home-role-group--pembina .team-strip__item:nth-child(2) { grid-column: 6 / span 2; }
  .home-role-group--dewan .team-strip__item:nth-child(1) { grid-column: 3 / span 2; }
  .home-role-group--dewan .team-strip__item:nth-child(2) { grid-column: 5 / span 2; }
  .home-role-group--dewan .team-strip__item:nth-child(3) { grid-column: 7 / span 2; }
  .home-role-group--director { grid-column: 4 / span 2; }
  .home-role-group--chair { grid-column: 6 / span 2; }
  .team-strip__item { min-height: 300px; }
  .director-card { grid-template-columns: 320px 1fr; padding: 54px; }
  .committee-group { margin-top: 66px; }
  .director-card--ordered { margin-top: 66px; }
  .detail-nav__inner { justify-content: center; }
  .brand__mark { width: 58px; flex-basis: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transform: none; transition: none; }
}

@layer legacy {

/* 2. Reset / Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--text); background: var(--surface); font-family: var(--sans); line-height: 1.65; }
body.nav-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { color: white; background: var(--blue); }

/* 3. Typography */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-950); font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.025em; }
h1 { font-size: clamp(2.75rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.25rem, 4.3vw, 4.5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
p { margin-bottom: 1.3rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--blue); font-size: .73rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { width: 32px; height: 1px; background: currentColor; content: ""; }
.eyebrow--light { color: var(--gold-light); }
.lead { max-width: 740px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.section-title { max-width: 760px; margin-bottom: 24px; }
.section-intro { max-width: 620px; color: var(--muted); }

/* 4. Layout */
.container { width: var(--container); margin-inline: auto; }
.section { padding-block: clamp(76px, 9vw, 138px); }
.section--soft { background: var(--surface-soft); }
.section--ivory { background: var(--ivory); }
.section--navy { color: white; background: var(--navy-950); }
.section--navy h2, .section--navy h3 { color: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: clamp(36px, 5vw, 68px); }
.section-head > :first-child { max-width: 780px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); align-items: center; gap: clamp(44px, 8vw, 110px); }
.page-main { padding-top: var(--header-h); }
.page-hero { position: relative; display: grid; min-height: 440px; overflow: hidden; color: white; background: var(--navy-950); place-items: end start; }
.page-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,17,34,.92) 0%, rgba(4,17,34,.68) 45%, rgba(4,17,34,.15) 100%); content: ""; }
.page-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: .76; }
.page-hero__content { position: relative; z-index: 1; width: var(--container); margin-inline: auto; padding-block: 110px 76px; }
.page-hero h1 { max-width: 900px; margin-bottom: 18px; color: white; font-size: clamp(3rem, 6vw, 6rem); }
.page-hero p { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.76); font-size: 1.1rem; }
.breadcrumb { margin-bottom: 26px; color: rgba(255,255,255,.68); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumb a:hover { color: white; }

/* 5. Header / Nav */
.site-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; height: var(--header-h); color: white; border-bottom: 1px solid rgba(255,255,255,.18); transition: background .35s, color .35s, box-shadow .35s; }
.site-header.is-solid, .site-header:not(.site-header--overlay) { color: var(--navy-950); background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(7,24,47,.08); backdrop-filter: blur(14px); }
.nav-shell { display: flex; width: var(--container); height: 100%; align-items: center; justify-content: space-between; gap: 28px; margin-inline: auto; }
.brand { display: flex; min-width: 198px; align-items: center; gap: 12px; }
.brand__mark { display: grid; width: 43px; aspect-ratio: 1; color: var(--navy-950); background: var(--gold); font-family: var(--serif); font-size: 1rem; font-weight: 700; letter-spacing: -.08em; border-radius: 50%; place-items: center; }
.brand__text { line-height: 1.05; }
.brand__text strong { display: block; font-family: var(--serif); font-size: 1.2rem; letter-spacing: .06em; }
.brand__text span { display: block; margin-top: 4px; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-list { display: flex; align-items: center; gap: clamp(17px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav-link, .dropdown-toggle { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 0; color: inherit; background: none; border: 0; cursor: pointer; font-size: .72rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.nav-link { position: relative; }
.nav-link::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: var(--gold); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.dropdown { position: relative; }
.chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.dropdown:hover .chevron, .dropdown.is-open .chevron { transform: rotate(225deg) translate(-2px, -2px); }
.dropdown-menu { position: absolute; top: calc(100% + 12px); left: -22px; width: 250px; margin: 0; padding: 13px; visibility: hidden; opacity: 0; color: var(--text); background: white; border: 1px solid var(--border); box-shadow: 0 24px 55px rgba(7,24,47,.14); list-style: none; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
.dropdown-menu::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 16px; content: ""; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu, .dropdown.is-open .dropdown-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-menu a { display: flex; min-height: 42px; align-items: center; padding: 8px 10px; font-size: .83rem; border-bottom: 1px solid #edf0f3; transition: color .2s, padding .2s; }
.dropdown-menu li:last-child a { border-bottom: 0; }
.dropdown-menu a:hover { padding-left: 15px; color: var(--blue); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 12px; background: transparent; border: 1px solid currentColor; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 1px; margin: 5px 0; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 6. Hero */
.hero { position: relative; min-height: min(880px, 100svh); overflow: hidden; color: white; background: var(--navy-950); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1s var(--ease); }
.hero__slide.is-active { z-index: 1; opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide:nth-child(1) img { object-position: 58% 50%; }
.hero__slide:nth-child(2) img { object-position: 50% 48%; }
.hero__slide:nth-child(3) img { object-position: 56% 46%; }
.hero__overlay { position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, rgba(4,17,34,.91) 0%, rgba(4,17,34,.67) 43%, rgba(4,17,34,.1) 76%), linear-gradient(0deg, rgba(4,17,34,.42), transparent 45%); pointer-events: none; }
.hero__content { position: relative; z-index: 3; display: flex; width: var(--container); min-height: min(880px, 100svh); align-items: center; margin-inline: auto; padding-block: 150px 100px; }
.hero__copy { width: 100%; min-width: 0; max-width: 880px; }
.hero h1 { max-width: 870px; margin-bottom: 28px; color: white; font-size: clamp(3.15rem, 7.4vw, 7.25rem); text-transform: uppercase; }
.hero__subtitle { max-width: 590px; margin-bottom: 36px; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero__controls { position: absolute; z-index: 4; right: max(24px, calc((100vw - 1180px)/2)); bottom: 45px; display: flex; align-items: center; gap: 18px; }
.hero__arrow { display: grid; width: 48px; height: 48px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.42); cursor: pointer; transition: background .2s, color .2s; place-items: center; }
.hero__arrow:hover { color: var(--navy-950); background: white; }
.hero__status { display: flex; min-width: 120px; align-items: center; gap: 12px; color: white; font-size: .73rem; font-weight: 700; letter-spacing: .12em; }
.hero__progress { position: relative; width: 62px; height: 1px; overflow: hidden; background: rgba(255,255,255,.35); }
.hero__progress span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(.333); transform-origin: left; transition: transform .5s var(--ease); }

/* 7. Sections */
.about-media { position: relative; }
.about-media::before { position: absolute; z-index: 0; top: -28px; right: -28px; width: 54%; height: 63%; border: 1px solid var(--gold); content: ""; }
.about-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% center; }
.about-note { position: absolute; z-index: 2; right: -24px; bottom: 30px; max-width: 230px; padding: 24px; color: white; background: var(--navy-900); font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; }
.olympiad-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.olympiad-item { position: relative; display: grid; min-height: 310px; grid-template-rows: auto 1fr auto; padding: clamp(28px, 4vw, 52px); overflow: hidden; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.olympiad-item:nth-child(2), .olympiad-item:nth-child(3) { background: var(--ivory); }
.olympiad-item__num { color: var(--gold); font-family: var(--serif); font-size: 1.05rem; }
.olympiad-item h3 { max-width: 390px; align-self: center; margin: 34px 0; }
.olympiad-item .arrow-link { justify-self: start; }
.olympiad-item::after { position: absolute; right: -60px; bottom: -80px; width: 180px; aspect-ratio: 1; border: 1px solid var(--gold-light); border-radius: 50%; content: ""; transition: transform .5s var(--ease); }
.olympiad-item:hover::after { transform: scale(1.25); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.news-card { display: flex; min-height: 410px; flex-direction: column; padding: 34px 28px 28px 0; border-bottom: 1px solid var(--border); }
.news-card + .news-card { padding-left: 28px; border-left: 1px solid var(--border); }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.news-card__category { color: var(--blue); }
.demo-label { display: inline-flex; width: max-content; margin: 24px 0 16px; padding: 5px 9px; color: #70551c; background: #f4e8c9; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.news-card h3 { margin-bottom: 18px; font-size: 1.55rem; }
.news-card p { color: var(--muted); font-size: .92rem; }
.news-card .arrow-link { margin-top: auto; }
.timeline { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(46px, 7vw, 100px); align-items: center; }
.timeline-copy { color: rgba(255,255,255,.65); }
.timeline-tabs { position: relative; display: flex; justify-content: space-between; margin: 46px 0 0; padding: 0; list-style: none; }
.timeline-tabs::before { position: absolute; z-index: 0; top: 17px; right: 18px; left: 18px; height: 1px; background: rgba(255,255,255,.3); content: ""; }
.timeline-tab { position: relative; z-index: 1; min-width: 64px; padding: 0; color: rgba(255,255,255,.58); background: transparent; border: 0; cursor: pointer; font-family: var(--serif); font-size: 1.18rem; text-align: left; }
.timeline-tab::before { display: block; width: 12px; height: 12px; margin: 12px 0 18px 3px; background: var(--navy-950); border: 2px solid rgba(255,255,255,.5); border-radius: 50%; content: ""; transition: background .25s, box-shadow .25s, transform .25s; }
.timeline-tab.is-active { color: white; }
.timeline-tab.is-active::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 7px rgba(196,154,70,.16); transform: scale(1.08); }
.timeline-stage { position: relative; min-height: 520px; overflow: hidden; background: var(--navy-800); }
.timeline-panel { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility .5s; }
.timeline-panel.is-active { visibility: visible; opacity: 1; }
.timeline-panel img { width: 100%; height: 100%; object-fit: cover; }
.timeline-caption { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; padding: 65px 28px 25px; color: white; background: linear-gradient(transparent, rgba(7,24,47,.88)); font-size: .9rem; }
.gallery-featured { display: grid; height: min(700px, 60vw); min-height: 520px; grid-template-columns: 1.25fr .72fr .9fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.gallery-featured a { position: relative; overflow: hidden; background: var(--navy-900); }
.gallery-featured a:nth-child(1) { grid-row: 1 / 3; }
.gallery-featured a:nth-child(4) { grid-row: 1 / 3; grid-column: 3; }
.gallery-featured img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.gallery-featured a:hover img { opacity: .82; transform: scale(1.035); }
.gallery-featured span { position: absolute; right: 18px; bottom: 15px; left: 18px; color: white; font-size: .7rem; font-weight: 700; letter-spacing: .08em; opacity: 0; text-transform: uppercase; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gallery-featured a::after { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(7,24,47,.78)); content: ""; opacity: 0; transition: opacity .3s; }
.gallery-featured a:hover::after, .gallery-featured a:hover span { opacity: 1; }
.gallery-featured span { z-index: 1; }
.gallery-featured a:hover span { transform: translateY(0); }
.cta-band { position: relative; overflow: hidden; padding-block: clamp(70px, 9vw, 120px); color: white; background: var(--blue); }
.cta-band::after { position: absolute; top: 50%; right: -10vw; width: 38vw; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; content: ""; transform: translateY(-50%); }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 760px; margin-bottom: 0; color: white; font-size: clamp(2.2rem, 4.8vw, 4.7rem); }
.profile-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 8vw, 120px); }
.profile-aside { padding-top: 12px; border-top: 1px solid var(--gold); }
.profile-aside p { color: var(--muted); }
.profile-copy p { color: var(--muted); font-size: 1.05rem; }
.committee-empty { padding: clamp(40px, 7vw, 80px); text-align: center; border: 1px solid var(--border); }
.committee-empty p { max-width: 540px; margin: 0 auto; color: var(--muted); }
.program-list { border-top: 1px solid var(--border); }
.program-row { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 30px; min-height: 180px; border-bottom: 1px solid var(--border); transition: padding .35s var(--ease), background .35s; }
.program-row:hover { padding-inline: 26px; background: var(--ivory); }
.program-row__num { color: var(--gold); font-family: var(--serif); font-size: 1.15rem; }
.program-row h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.8rem); }
.program-row__arrow { font-size: 1.6rem; transition: transform .3s; }
.program-row:hover .program-row__arrow { transform: translateX(7px); }
.detail-nav { position: sticky; z-index: 10; top: var(--header-h); overflow-x: auto; background: white; border-bottom: 1px solid var(--border); }
.detail-nav__inner { display: flex; width: max-content; min-width: 100%; justify-content: center; }
.detail-nav a { display: flex; min-height: 58px; align-items: center; padding-inline: 18px; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .07em; white-space: nowrap; text-transform: uppercase; }
.detail-nav a:hover { color: var(--blue); }
.detail-section { display: grid; grid-template-columns: 230px 1fr; gap: clamp(35px, 7vw, 100px); padding-block: 58px; border-bottom: 1px solid var(--border); }
.detail-section h2 { font-size: clamp(1.75rem, 3vw, 2.7rem); }
.detail-section p { max-width: 680px; color: var(--muted); }
.status-note { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--navy-800); background: var(--blue-light); font-size: .82rem; font-weight: 700; }
.status-note::before { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; content: ""; }
.info-tools { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-bottom: 32px; }
.form-field label { display: block; margin-bottom: 8px; color: var(--navy-800); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.form-control { width: 100%; min-height: 54px; padding: 0 17px; color: var(--text); background: white; border: 1px solid var(--border); border-radius: 0; }
.form-control:focus { border-color: var(--blue); outline: 2px solid rgba(24,89,165,.15); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; }
.filter-btn { min-height: 44px; padding: 9px 16px; color: var(--muted); background: white; border: 1px solid var(--border); cursor: pointer; font-size: .74rem; font-weight: 750; letter-spacing: .05em; }
.filter-btn.is-active { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.info-list { border-top: 1px solid var(--border); }
.info-item { display: grid; grid-template-columns: 180px 1fr auto; gap: 35px; padding-block: 34px; border-bottom: 1px solid var(--border); }
.info-item[hidden] { display: none; }
.info-item__meta { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.info-item__meta strong { display: block; margin-bottom: 8px; color: var(--blue); }
.info-item h2 { margin-bottom: 10px; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.info-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.empty-result { padding: 52px 20px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--border); }
.article-layout { display: grid; grid-template-columns: minmax(0, 750px) 260px; gap: clamp(48px, 8vw, 110px); }
.article-body { color: #34465b; font-size: 1.08rem; }
.article-body h2 { margin: 54px 0 18px; font-size: 2rem; }
.article-aside { padding-top: 12px; }
.article-aside dl { margin: 0; border-top: 1px solid var(--border); }
.article-aside div { padding-block: 18px; border-bottom: 1px solid var(--border); }
.article-aside dt { margin-bottom: 4px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-aside dd { margin: 0; font-size: .88rem; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 130px); }
.contact-note { padding: 32px; color: white; background: var(--navy-900); }
.contact-note p { margin: 0; color: rgba(255,255,255,.72); }
.contact-placeholder { display: grid; min-height: 340px; padding: 40px; border: 1px solid var(--border); place-items: center; text-align: center; }
.contact-placeholder p { max-width: 520px; color: var(--muted); }

/* 8. Components */
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 14px; padding: 12px 22px; color: var(--navy-950); background: var(--gold); border: 1px solid var(--gold); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: color .25s, background .25s, border .25s; }
.button:hover { color: var(--navy-950); background: white; border-color: white; }
.button--outline { color: white; background: transparent; border-color: rgba(255,255,255,.55); }
.button--outline:hover { color: var(--navy-950); background: white; }
.button--navy { color: white; background: var(--navy-900); border-color: var(--navy-900); }
.button--navy:hover { color: white; background: var(--blue); border-color: var(--blue); }
.arrow-link { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-900); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.arrow-link::after { content: "→"; font-size: 1rem; transition: transform .25s; }
.arrow-link:hover::after { transform: translateX(6px); }
.section--navy .arrow-link { color: white; }
.text-link { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.scroll-top { position: fixed; z-index: 80; right: 22px; bottom: 22px; display: grid; width: 46px; height: 46px; visibility: hidden; opacity: 0; color: white; background: var(--navy-900); border: 0; cursor: pointer; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s; place-items: center; }
.scroll-top.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 9. Gallery */
.gallery-grid { columns: 3; column-gap: 14px; }
.gallery-card { display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; }
.gallery-card[hidden] { display: none; }
.gallery-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; background: var(--navy-900); border: 0; cursor: zoom-in; text-align: left; }
.gallery-button img { width: 100%; transition: opacity .3s, transform .6s var(--ease); }
.gallery-card:nth-child(3n + 2) .gallery-button img { aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-button:hover img { opacity: .78; transform: scale(1.025); }
.gallery-button::after { position: absolute; top: 16px; right: 16px; display: grid; width: 42px; height: 42px; color: white; background: rgba(7,24,47,.72); content: "+"; font-size: 1.35rem; opacity: 0; transition: opacity .25s; place-items: center; }
.gallery-button:hover::after { opacity: 1; }
.gallery-card figcaption { padding: 11px 2px 4px; color: var(--muted); font-size: .75rem; }
.gallery-card figcaption span { color: var(--blue); font-weight: 750; }
.lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; visibility: hidden; opacity: 0; color: white; background: rgba(4,13,26,.96); transition: opacity .3s, visibility .3s; place-items: center; }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__dialog { display: grid; width: min(1180px, calc(100% - 120px)); height: min(820px, calc(100svh - 100px)); grid-template-rows: 1fr auto; align-items: center; }
.lightbox__image-wrap { min-height: 0; overflow: hidden; }
.lightbox__image { width: 100%; height: 100%; object-fit: contain; }
.lightbox__caption { display: flex; justify-content: space-between; gap: 28px; margin: 0; padding-top: 18px; color: rgba(255,255,255,.8); font-size: .85rem; }
.lightbox__year { color: var(--gold-light); font-weight: 800; letter-spacing: .1em; }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; width: 52px; height: 52px; color: white; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.38); cursor: pointer; place-items: center; }
.lightbox__close { top: 22px; right: 22px; font-size: 1.5rem; }
.lightbox__nav { top: 50%; font-size: 1.3rem; transform: translateY(-50%); }
.lightbox__prev { left: 22px; }
.lightbox__next { right: 22px; }
.album-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.album-meta strong { color: var(--navy-900); }

/* 10. Footer */
.site-footer { color: white; background: var(--navy-950); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; padding-block: 66px; }
.footer-brand { max-width: 400px; }
.footer-brand h2 { margin-bottom: 16px; color: white; font-size: 2rem; }
.footer-brand p { margin: 0; color: rgba(255,255,255,.58); font-size: .86rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; align-content: start; }
.footer-nav a { padding-block: 7px; color: rgba(255,255,255,.72); border-bottom: 1px solid rgba(255,255,255,.12); font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; transition: color .2s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; color: rgba(255,255,255,.42); border-top: 1px solid rgba(255,255,255,.12); font-size: .69rem; letter-spacing: .06em; text-transform: uppercase; }

/* 11. Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.gold-rule { width: 66px; height: 2px; margin: 27px 0; background: var(--gold); }

/* 12. Responsive */
@media (max-width: 1050px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: block; }
  .nav-panel { position: fixed; z-index: 99; top: var(--header-h); right: 0; left: 0; height: calc(100svh - var(--header-h)); visibility: hidden; opacity: 0; color: var(--text); background: white; transform: translateY(-12px); transition: opacity .3s, transform .3s, visibility .3s; overflow-y: auto; }
  .nav-panel.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list { display: block; width: min(720px, calc(100% - 40px)); margin: 25px auto 50px; }
  .nav-list > li { border-bottom: 1px solid var(--border); }
  .nav-link, .dropdown-toggle { display: flex; width: 100%; min-height: 58px; justify-content: space-between; font-size: .82rem; }
  .nav-link::after { display: none; }
  .dropdown-menu { position: static; display: none; width: 100%; padding: 0 0 12px 18px; visibility: visible; opacity: 1; background: transparent; border: 0; box-shadow: none; transform: none; transition: none; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.is-open .dropdown-menu { display: block; }
  .dropdown-menu a { min-height: 48px; }
  .split, .profile-grid, .contact-layout { grid-template-columns: 1fr 1fr; gap: 50px; }
  .news-card { padding-right: 18px; }
  .news-card + .news-card { padding-left: 18px; }
  .detail-nav__inner { justify-content: flex-start; }
}

@media (max-width: 800px) {
  :root { --container: min(100% - 34px, 680px); }
  .section-head { display: block; }
  .section-head .arrow-link { margin-top: 20px; }
  .split, .profile-grid, .contact-layout, .timeline, .article-layout { grid-template-columns: 1fr; }
  .about-media { width: calc(100% - 20px); margin: 30px 0 0 20px; }
  .about-note { right: -12px; }
  .olympiad-grid { grid-template-columns: 1fr; }
  .olympiad-item:nth-child(3) { background: white; }
  .olympiad-item:nth-child(4) { background: var(--ivory); }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 0; padding: 30px 0; }
  .news-card + .news-card { padding-left: 0; border-left: 0; }
  .news-card .arrow-link { margin-top: 18px; }
  .timeline-stage { min-height: 450px; }
  .gallery-featured { height: auto; min-height: 0; grid-template-columns: 1.2fr .8fr; grid-template-rows: 260px 190px 260px; }
  .gallery-featured a:nth-child(1) { grid-row: 1 / 3; }
  .gallery-featured a:nth-child(4) { grid-row: 3; grid-column: 1 / 3; }
  .cta-band__inner { display: block; }
  .cta-band .button { margin-top: 28px; }
  .program-row { grid-template-columns: 50px 1fr auto; min-height: 150px; gap: 16px; }
  .detail-section { grid-template-columns: 1fr; gap: 4px; }
  .info-tools { grid-template-columns: 1fr; }
  .info-item { grid-template-columns: 130px 1fr; gap: 22px; }
  .info-item > .program-row__arrow { display: none; }
  .gallery-grid { columns: 2; }
  .footer-main { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 540px) {
  :root { --container: calc(100% - 32px); }
  .brand { min-width: 0; }
  .brand__text span { display: none; }
  .hero { min-height: 740px; }
  .hero__content { min-height: 740px; align-items: end; padding-bottom: 155px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .hero__controls { right: 16px; bottom: 28px; left: 16px; justify-content: space-between; }
  .hero__status { order: -1; min-width: 96px; }
  .hero__progress { width: 44px; }
  .page-hero { min-height: 400px; }
  .page-hero__content { padding-block: 100px 58px; }
  .page-hero h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .about-media::before { top: -16px; right: -16px; }
  .about-note { position: relative; right: auto; bottom: auto; max-width: none; margin: -24px 14px 0; }
  .olympiad-item { min-height: 270px; }
  .timeline-stage { min-height: 360px; }
  .gallery-featured { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 170px; }
  .gallery-featured a:nth-child(1) { grid-row: 1; grid-column: 1 / 3; }
  .gallery-featured a:nth-child(4) { display: none; }
  .program-row { grid-template-columns: 42px 1fr 20px; min-height: 140px; }
  .program-row:hover { padding-inline: 10px; }
  .info-item { grid-template-columns: 1fr; gap: 13px; }
  .gallery-grid { columns: 1; }
  .gallery-card:nth-child(3n + 2) .gallery-button img { aspect-ratio: auto; }
  .lightbox__dialog { width: calc(100% - 28px); height: calc(100svh - 130px); }
  .lightbox__close { top: 14px; right: 14px; }
  .lightbox__nav { top: auto; bottom: 18px; }
  .lightbox__prev { left: 14px; }
  .lightbox__next { right: 14px; }
  .lightbox__caption { padding-right: 65px; padding-bottom: 8px; flex-direction: column; gap: 3px; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none; }
  .site-header, .nav-panel, .dropdown-menu, .hero__slide, .hero__progress span,
  .hero__arrow, .olympiad-item::after, .program-row, .program-row__arrow,
  .timeline-panel, .timeline-tab::before, .gallery-featured img,
  .gallery-featured a::after, .gallery-featured span, .gallery-button img,
  .lightbox, .scroll-top, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

}
