:root {
  --navy: #1a2b56;
  --navy-2: #243a6e;
  --sky: #eaf1fb;
  --sky-2: #f5f8fd;
  --white: #ffffff;
  --muted: #6b7690;
  --line: #e3eaf4;
  --text: #1a2b56;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 16px 48px rgba(26, 43, 86, 0.08);
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Serif 4", "Georgia", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 16px; text-decoration: none; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

h1, h2, h3,
.hero h1,
.section-head h2,
.page-mast h1,
.page-hero h1,
.news-copy h3,
.news-row h3,
.cms-content h1,
.cms-content h2,
.cms-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  line-height: 1.2;
  color: var(--navy);
}
.kicker, .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(26, 43, 86, 0.18);
  transition: background 0.25s ease, transform 0.25s cubic-bezier(.22, 1, .36, 1);
}
.btn:hover { background: var(--navy-2); transform: translateX(4px); }
.more-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: flex; align-items: center; gap: 16px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 64px; width: auto; max-width: 240px; object-fit: contain; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 2px; background: var(--navy); margin: 0 auto; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.header-nav { border-top: 1px solid var(--line); }
.nav-list {
  display: flex; flex-wrap: nowrap; align-items: center;
  justify-content: space-between; gap: 0;
}
.nav-list > li { position: relative; flex: 0 0 auto; }
.nav-list a, .nav-list button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 12px 6px; background: none; border: 0;
  color: var(--navy); text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: 0; cursor: pointer;
  position: relative; white-space: nowrap;
}
.nav-list a.is-active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--navy); border-radius: 2px;
}
.nav-list a.is-active::before {
  content: "";
  position: absolute; left: 50%; bottom: 2px;
  width: 6px; height: 6px; background: var(--navy);
  transform: translateX(-50%) rotate(45deg);
}
.nav-list .caret {
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
}
.sub-menu {
  display: none; position: absolute; top: 100%; right: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 8px 0; z-index: 20; box-shadow: var(--shadow);
}
.sub-menu a { display: block; width: 100%; font-weight: 500; padding: 10px 16px; white-space: normal; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { display: block; }

.lang-pill {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto;
}
.lang-pill a {
  min-width: 36px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 800; color: var(--muted);
}
.lang-pill a.is-active { background: var(--navy); color: #fff; }

/* Hero — screenshot 3 */
.hero { padding: 28px 0 0; overflow: visible; }
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  background: var(--sky);
  border-radius: var(--radius);
  padding: 44px 44px 44px 48px;
  box-shadow: 0 20px 60px rgba(26, 43, 86, 0.06);
  overflow: visible;
}
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(32px, 4vw, 48px); max-width: 14ch; }
.hero .lede { margin: 12px 0 20px; color: var(--muted); font-size: 16px; max-width: 42ch; }
.checks { display: grid; gap: 10px; margin: 0 0 24px; }
.checks li {
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
}
.check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.check svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; }

.hero-slider { position: relative; overflow: visible; }
.hero-slider .stage-slide { display: none; }
.hero-slider .stage-slide.is-on {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #e8eef8;
  border-radius: 16px;
  animation: slide-in 0.55s cubic-bezier(.22, 1, .36, 1);
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.frame3d, .frame3d-orbit, .frame3d-face { transform: none; }
.frame3d-orbit { animation: frame-float 6.5s ease-in-out infinite; }
.frame3d-face {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  padding: 12px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(26, 43, 86, 0.08),
    0 16px 36px rgba(26, 43, 86, 0.12);
}
.frame3d-face img,
.hero-slider .frame3d-face img,
.news-feature .frame3d-face img,
.news-feature img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: min(520px, 62vh);
  object-fit: contain;
  object-position: center;
  background: #e8eef8;
  border-radius: 14px;
  display: block;
}
@keyframes frame-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-slider .cap { margin: 12px 4px 0; color: var(--muted); font-size: 13px; }
.slider-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.stage-nav {
  border: 0; background: transparent; color: var(--navy);
  font-size: 22px; cursor: pointer; line-height: 1; padding: 0;
}
.stage-dots { display: flex; gap: 6px; }
.stage-dots button { width: 18px; height: 3px; border: 0; padding: 0; background: #c5d0e4; border-radius: 2px; cursor: pointer; }
.stage-dots button.is-on { background: var(--navy); }

.gallery-grid, .book-shelf, .news-feature {
  perspective: 900px;
}
.gallery-card, .book-card, .act-item, .news-row {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease;
}
.gallery-card:hover, .book-card:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(-4deg);
  box-shadow: 0 24px 40px rgba(26, 43, 86, 0.14);
}
.act-item:hover {
  transform: translateY(-3px) translateZ(8px);
}

@media (prefers-reduced-motion: reduce) {
  .frame3d-orbit { animation: none; }
  .gallery-card:hover, .book-card:hover, .act-item:hover { transform: none; }
  .site-header, .hero-slider .stage-slide.is-on { animation: none; }
  [data-reveal], .reveal, .checks li { opacity: 1 !important; transform: none !important; }
}

/* Activity card — screenshot 2 */
.act { padding: 28px 0 8px; }
.act-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 28px 28px 12px;
}
.act-card .kicker { color: var(--muted); }
.act-card h2 { font-size: 26px; margin-bottom: 20px; }
.act-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.act-item {
  display: grid;
  grid-template-columns: 48px 28px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 14px 8px;
  text-decoration: none;
  border-radius: 14px;
}
.act-item:hover { background: var(--sky-2); }
.act-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sky-2); display: grid; place-items: center; color: var(--navy);
}
.act-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.act-item small { color: var(--muted); font-size: 12px; font-weight: 700; }
.act-item span { font-weight: 700; font-size: 14px; }
.act-item em { font-style: normal; color: var(--muted); font-size: 16px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 32px 0 8px;
}
.stat-row div {
  background: var(--sky-2);
  border-radius: var(--radius-sm);
  padding: 22px 14px;
  text-align: center;
}
.stat-row b { display: block; font-size: 28px; font-weight: 800; }
.stat-row span { font-size: 12px; color: var(--muted); font-weight: 600; }

.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.7fr);
  gap: 32px; align-items: start;
}
.panel, .sheet, .side-block {
  background: var(--sky-2);
  border: 0;
  border-radius: var(--radius);
  padding: 28px;
}
.cms-content { font-size: 1.05rem; line-height: 1.8; overflow-x: auto; }
.cms-content h1, .cms-content h2, .cms-content h3 { margin: 1.2em 0 0.5em; }
.cms-content p { margin: 0 0 1em; }
.cms-content img, .cms-content table, .cms-content iframe { max-width: 100% !important; height: auto; border-radius: 12px; }
.cms-content a { color: var(--navy); }

.aside-stack { display: grid; gap: 12px; }
.aside-card { background: var(--sky-2); border-radius: var(--radius-sm); padding: 10px; overflow: hidden; }
.aside-card img { width: 100%; object-fit: contain; border-radius: 10px; }

.partners {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.partners a {
  display: flex; align-items: center; justify-content: center;
  min-height: 104px; background: var(--sky-2); border-radius: var(--radius-sm); padding: 16px;
  transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), box-shadow 0.35s ease;
}
.partners a:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(26, 43, 86, 0.08); }
.partners img { max-height: 64px; width: auto; object-fit: contain; }

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
}
.news-copy time, .news-item time, .news-row time { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.news-copy h3 { font-size: 26px; }
.news-copy h3 a, .news-item h3 a, .news-row h3 a { text-decoration: none; }
.news-stack { background: var(--sky-2); border-radius: var(--radius); overflow: hidden; }
.news-item {
  display: grid; grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px; padding: 14px; text-decoration: none; border-bottom: 1px solid #fff;
}
.news-item:last-child { border-bottom: 0; }
.news-item img { width: 108px; height: 80px; object-fit: cover; object-position: top center; border-radius: 12px; }
.news-item h3 { font-size: 16px; }

.news-list { display: grid; gap: 16px; }
.news-row {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px; background: var(--sky-2); border-radius: var(--radius); padding: 16px;
}
.news-row img { width: auto; max-width: 100%; height: auto; max-height: 220px; object-fit: contain; object-position: top center; border-radius: 16px; background: #eef2f8; }
.news-row h3 { font-size: 24px; margin: 0 0 8px; }
.news-excerpt { color: var(--muted); margin: 0 0 12px; }

.article-hero, .article-spread {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px; align-items: start;
}
.article-hero img, .article-spread img {
  width: auto; max-width: 100%; height: auto; max-height: 520px; object-fit: contain; background: var(--sky-2); border-radius: 20px;
}
.gild { background: none; padding: 0; border: 0; box-shadow: none; }

.book-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.book-card { text-decoration: none; background: var(--sky-2); border-radius: var(--radius-sm); overflow: hidden; }
.book-card img { width: 100%; height: 220px; object-fit: cover; }
.book-card p { margin: 0; padding: 12px; font-weight: 700; font-size: 14px; }

.pub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pub-tabs a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 700; background: var(--sky-2); color: var(--navy);
}
.pub-tabs a.is-on { background: var(--navy); color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-grid.home-gallery article:first-child { grid-column: auto; grid-row: auto; }
.gallery-card, .tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: var(--sky-2);
  text-decoration: none;
}
.gallery-card img, .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.gallery-card .cap, .tile .cap {
  position: absolute; inset: auto 0 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(26,43,86,0.78));
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35;
}

.page-mast, .page-hero {
  padding: 20px 0 0;
}
.page-mast .wrap, .page-hero-inner {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.page-mast h1, .page-hero h1 { font-size: clamp(28px, 4vw, 40px); }

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: 20px; align-items: start;
}
.side-item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px; margin-bottom: 12px; text-decoration: none;
}
.side-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.side-item h3 { font-size: 14px; }
.side-item span { font-size: 12px; color: var(--muted); font-weight: 700; }

.pager, .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.pagination li a, .pagination li span, .page-item .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: 10px;
  background: var(--sky-2); color: var(--navy); text-decoration: none; font-weight: 700;
}
.pagination .active span, .page-item.active .page-link { background: var(--navy); color: #fff; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--sky-2); border-radius: var(--radius); }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: rgba(26,43,86,0.88); padding: 24px; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 16px; }
.lightbox p { position: absolute; bottom: 24px; left: 24px; right: 72px; margin: 0; color: #fff; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: #fff; color: var(--navy); font-size: 22px; cursor: pointer;
}

[data-reveal], .reveal {
  opacity: 1;
  transform: none;
}

.site-footer {
  background: var(--sky-2);
  padding: 48px 0 24px;
  margin-top: 8px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px; padding-bottom: 24px;
}
.site-footer img { width: 120px; height: auto; }
.site-footer h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer li { margin-bottom: 6px; color: var(--muted); }
.footer-copy { font-size: 13px; color: var(--muted); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: var(--navy); color: #fff; text-decoration: none; display: grid; place-items: center;
}

@media (max-width: 980px) {
  .hero-shell, .home-layout, .news-feature, .page-grid, .article-hero, .article-spread, .footer-grid, .news-row, .act-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid, .book-shelf, .partners { grid-template-columns: 1fr 1fr; }
  .gallery-grid.home-gallery article:first-child { grid-column: auto; grid-row: auto; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero-shell { padding: 24px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0 16px;
  }
  .site-header.is-open .header-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; flex-wrap: wrap; }
  .nav-list a, .nav-list button { padding: 12px 20px; font-size: 16px; }
  .lang-pill { display: none; }
  .gallery-grid, .book-shelf, .partners, .stat-row { grid-template-columns: 1fr; }
  .news-item, .news-row { grid-template-columns: 1fr; }
  .hero-slider .frame3d-face img,
  .news-feature .frame3d-face img { max-height: min(420px, 58vh); }
  .brand img { height: 56px; }
  .section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
