* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #222;
  font-family: Arial, sans-serif;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 88px;
  padding: 10px 3.1%;
  background: #fff;
}

.brand { display: flex; align-items: center; margin: 0; }
.brand-logo { width: 62px; height: 62px; margin: 0; }
.brand > div { display: none; }
.brand-cn { font-size: 22px; font-weight: 700; line-height: 1.1; }
.brand-en { font-size: 10px; letter-spacing: .2px; }
.brand-sub { margin-top: 3px; font-size: 11px; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0 0 0 88px;
  font-size: 14px;
  white-space: nowrap;
}

.site-header nav a { padding: 8px 13px; }

.site-header nav a.active {
  border: 1px solid #b40d18;
  border-radius: 18px;
  color: #b40d18;
  font-weight: 700;
}

.search { position: absolute; right: max(3.1%, calc(50% - 500px)); display: flex; height: 30px; }
.search input { width: 104px; border: 1px solid #999; padding: 4px 7px; font-size: 12px; }
.search button { min-width: 48px; border: 1px solid #b40d18; background: #b40d18; color: #fff; cursor: pointer; font-size: 12px; line-height: 1; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.search button:hover { background: #fff; color: #b40d18; box-shadow: 0 4px 12px rgba(91, 10, 17, .13); }

.hero {
  position: relative;
  height: 630px;
  overflow: hidden;
  background: #1678bc url("../images/hero-cultural-event.jpg") center / cover no-repeat;
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(12, 83, 151, .43), rgba(20, 110, 180, .23));
}

.hero::after {
  position: absolute;
  z-index: 2;
  inset: 38% 0 0;
  content: "";
  background: linear-gradient(180deg, transparent 0 30%, #315f88 30.2% 100%);
  clip-path: polygon(0 65%, 5% 57%, 13% 66%, 20% 49%, 28% 63%, 38% 35%, 45% 62%, 54% 45%, 64% 64%, 75% 42%, 85% 60%, 100% 48%, 100% 100%, 0 100%);
  opacity: .88;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.hero-slide.is-active { opacity: 1; transform: none; }

.hero-copy {
  position: absolute;
  top: 96px;
  right: 3.5%;
  width: 64%;
  color: #fff;
  text-align: right;
}

.hero-en {
  display: inline-block;
  border-bottom: 2px solid #fff;
  padding: 0 0 4px;
  font-size: 39px;
  font-weight: 700;
  letter-spacing: .2px;
}

.hero h1 { margin: 10px 0; border-bottom: 2px solid #fff; padding: 0 0 8px; font-size: 55px; line-height: 1.15; }
.hero p { margin: 14px 0; font-size: 17px; line-height: 1.8; }

.outline-btn, .solid-btn, .contact-form button {
  display: inline-flex;
  min-width: 128px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b40d18;
  padding: 0 28px;
  background: #b40d18;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .8px;
  line-height: 1;
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.outline-btn { margin-top: 9px; border-color: #fff; background: transparent; }
.outline-btn:hover { background: #fff; color: #b40d18; box-shadow: 0 8px 20px rgba(0, 0, 0, .16); }
.solid-btn:hover { border-color: #8f0a13; background: #8f0a13; box-shadow: 0 8px 18px rgba(91, 10, 17, .18); }
.contact-form button:hover { border-color: #8f0a13; background: #8f0a13; box-shadow: 0 8px 18px rgba(91, 10, 17, .18); }

.hero-dots { position: absolute; z-index: 3; bottom: 22px; left: 50%; display: flex; gap: 9px; transform: translateX(-50%); }
.hero-dots button { width: 10px; height: 10px; border: 1px solid #fff; border-radius: 50%; padding: 0; background: transparent; cursor: pointer; }
.hero-dots button.is-active { background: #fff; }

.section { padding: 80px 8%; text-align: center; }
.eyebrow { color: #b40d18; font-size: 14px; letter-spacing: 2px; }
.section h2, .contact-band h2 { margin: 8px 0 35px; font-size: 34px; }

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.about-grid h3 { margin: 0 0 10px; font-size: 20px; }
.about-grid p, .course p { margin: 0; color: #666; line-height: 1.8; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.stats b { display: block; color: #b40d18; font-size: 34px; }
.stats span { display: block; margin-top: 8px; color: #666; }

.course { padding-right: 20%; padding-left: 20%; background: #f4f4f4; }
.news { padding-bottom: 90px; }
.tabs, .category-tabs { display: flex; justify-content: center; gap: 34px; margin: 0 0 31px; }
.tabs a, .category-tabs a { border-bottom: 2px solid transparent; padding: 8px 13px; }
.tabs a.active, .tabs a:hover, .category-tabs a.active, .category-tabs a:hover { border-color: #b40d18; color: #b40d18; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
.news-card { border-bottom: 1px solid #ddd; padding-bottom: 16px; }
.news-card img { display: block; width: 100%; height: 170px; object-fit: cover; background: #e7edf2; }
.news-card h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.45; }
.news-card time { color: #999; font-size: 12px; }
.news-card p { margin: 9px 0 0; color: #666; font-size: 14px; line-height: 1.65; }
.more { display: inline-block; margin-top: 35px; color: #b40d18; }

.contact-band { display: flex; align-items: center; justify-content: space-between; padding: 64px 8%; background: #b40d18; color: #fff; }
.contact-band .eyebrow { color: #fff; }
.contact-band h2 { margin-bottom: 12px; }
.contact-band p { opacity: .9; }
.contact-icons { display: flex; gap: 31px; }
.contact-icons a { display: flex; align-items: center; gap: 8px; font-size: 28px; }
.contact-icons span { font-size: 14px; }
.contact-icons small { font-size: 11px; opacity: .8; }

footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 45px 8%; background: #222; color: #ddd; }
footer h3 { margin: 0 0 12px; color: #fff; font-size: 16px; }
footer p { margin: 4px 0; color: #aaa; font-size: 13px; line-height: 1.7; }
.qr { display: grid; width: 70px; height: 70px; place-items: center; background: #fff; color: #222; }
.qr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qr a { display: block; width: 100%; height: 100%; }
.copyright { grid-column: 1 / -1; border-top: 1px solid #444; padding-top: 18px; color: #888; font-size: 12px; text-align: center; }
.footer-beian { color: #aaa; }
.footer-beian:hover { color: #fff; text-decoration: underline; }

.inner-hero {
  display: flex;
  height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(rgba(19, 109, 183, .68), rgba(57, 158, 217, .68)), url("../images/hero-cultural-event.jpg") center 44% / cover no-repeat;
  color: #fff;
}

.inner-hero h1 { margin: 5px; font-size: 42px; }
.inner-hero p { margin: 0; letter-spacing: 2px; }
.detail-hero { height: 260px; align-items: flex-start; padding-left: 9%; background-position: center; }
.news-detail-hero { background-image: linear-gradient(90deg, rgba(19, 57, 87, .64), rgba(19, 57, 87, .14)), url("../images/hero-cultural-event.jpg"); }
.product-detail-hero { background-image: linear-gradient(90deg, rgba(26, 50, 67, .58), rgba(26, 50, 67, .12)), url("../images/hero-city-skyline.jpg"); }
.content-wrap { max-width: 1100px; margin: auto; padding: 70px 20px; }
.content-wrap h2 { margin: 0 0 24px; font-size: 30px; }
.content-wrap p { color: #555; line-height: 1.9; }
.search-summary { margin-bottom: 28px; color: #777; font-size: 15px; }
.search-group { margin-top: 34px; }
.search-group-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; border-bottom: 2px solid #b40d18; padding-bottom: 9px; }
.search-group-heading h2 { margin: 0; color: #222; font-size: 25px; }
.search-group-heading span { color: #999; font-size: 13px; }
.search-results { display: grid; gap: 18px; }
.search-result { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; border-bottom: 1px solid #e5e5e5; padding-bottom: 18px; }
.search-result-image { display: block; height: 118px; overflow: hidden; background: #f0f0f0; }
.search-result-image img { width: 100%; height: 100%; object-fit: cover; }
.search-result h3 { margin: 0 0 7px; font-size: 21px; }
.search-result h3 a { color: #222; }
.search-result time { color: #999; font-size: 12px; }
.search-result p { margin: 9px 0 0; font-size: 14px; }
.search-empty { padding: 35px 0; color: #888; text-align: center; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { border: 1px solid #ddd; padding: 12px; transition: .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.product-card img { width: 100%; height: 190px; object-fit: cover; }
.product-card h3 { margin: 10px 0; font-size: 16px; }
.price { color: #b40d18; font-weight: 700; }

.list-news .news-card { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin-bottom: 25px; }
.list-news .news-card img { height: 150px; }
.detail { max-width: 900px; }
.detail h1 { font-size: 32px; }
.detail .meta { margin-bottom: 30px; color: #999; }
.product-detail { display: flex; align-items: flex-start; gap: 44px; }
.product-detail img { width: 320px; height: 320px; object-fit: cover; }

.contact-form { display: grid; max-width: 600px; gap: 15px; }
.contact-form input, .contact-form textarea { border: 1px solid #ddd; padding: 12px; font: inherit; }
.to-top { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: none; width: 40px; height: 40px; border: 1px solid #b40d18; background: #b40d18; color: #fff; cursor: pointer; font-size: 19px; line-height: 1; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.to-top.show { display: block; }
.to-top:hover { background: #fff; color: #b40d18; box-shadow: 0 7px 18px rgba(91, 10, 17, .18); }

@media (max-width: 900px) {
  .site-header { height: auto; flex-wrap: wrap; gap: 10px; justify-content: initial; padding: 10px 3%; }
  .brand { min-width: auto; margin-left: 0; flex: 1; }
  .site-header nav { order: 3; width: 100%; justify-content: center; gap: 7px; margin: 0; font-size: 13px; }
  .search { position: static; margin-left: auto; }
  .hero { height: 560px; }
  .hero-copy { top: 86px; right: 3%; width: 72%; }
  .hero-en { font-size: 24px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 14px; }
  .section { padding: 55px 6%; }
  .about-grid { gap: 20px; }
  .stats b { font-size: 26px; }
  .contact-band { display: block; }
  .contact-icons { justify-content: space-between; gap: 10px; margin-top: 30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .brand-cn { font-size: 18px; }
  .brand-en, .brand-sub { font-size: 9px; }
  .site-header nav a { padding: 6px 8px; }
  .search { display: none; }
  .hero { height: 500px; }
  .hero-copy { top: 70px; width: 90%; }
  .hero h1 { font-size: 30px; }
  .hero-en { font-size: 18px; }
  .hero p { font-size: 13px; }
  .about-grid, .stats { grid-template-columns: 1fr 1fr; }
  .contact-icons { flex-wrap: wrap; }
  .news-grid, .product-grid { grid-template-columns: 1fr; }
  .list-news .news-card { display: block; }
  .product-detail { display: block; }
  .product-detail img { width: 100%; height: auto; max-width: 320px; }
}

/* Homepage presentation and interaction refinements. */
.hero { background-image: url("../images/hero-city-skyline.jpg"); }
.hero-slide { background-image: var(--hero-image); background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero::before { background: linear-gradient(90deg, rgba(16, 99, 187, .2), rgba(20, 125, 216, .07)); }
.hero-slide-alt { background-image: linear-gradient(90deg, rgba(7, 61, 122, .68), rgba(7, 61, 122, .22)), var(--hero-image); }
.hero-slide-alt .hero-copy { max-width: 900px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 auto 38px; max-width: 1180px; text-align: left; }
.section-heading h2 { margin: 8px 0 0; }
.section-heading.centered { justify-content: center; text-align: center; }
.text-link, .course-link, .contact-action, .more {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border-bottom: 1px solid currentColor;
  padding: 0 2px 7px;
  font-size: 13px;
  letter-spacing: .35px;
  transition: color .25s ease, border-color .25s ease;
}
.text-link { color: #555; border-color: #c7c7c7; }
.text-link b, .course-link b { display: inline-block; margin-left: 12px; color: #b40d18; font-size: 18px; font-weight: 400; line-height: 1; transition: transform .25s ease; }
.text-link:hover, .course-link:hover, .more:hover { border-color: #b40d18; color: #b40d18; }
.text-link:hover b, .course-link:hover b { transform: translateX(4px); }

.about { max-width: 1440px; margin: auto; padding-right: 9%; padding-left: 9%; }
.about-layout { display: grid; grid-template-columns: minmax(300px, .94fr) minmax(390px, 1.06fr); gap: 70px; align-items: center; max-width: 1180px; margin: auto; text-align: left; }
.about-photo { position: relative; overflow: hidden; margin: 0; min-height: 385px; background: #e6e6e6; }
.about-photo::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .48)); transition: opacity .35s ease; }
.about-photo img { width: 100%; height: 385px; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.about-photo figcaption { position: absolute; z-index: 1; right: 24px; bottom: 20px; color: #fff; font-size: 15px; letter-spacing: 1px; }
.about-photo:hover img { filter: contrast(1.03) saturate(1.04); transform: none; }
.about-photo:hover::after { opacity: .72; }
.about-copy { align-self: stretch; padding: 12px 0 0; }
.about-copy p { max-width: 580px; margin: 0 0 18px; color: #666; font-size: 15px; line-height: 2; }
.about-copy .lead { color: #262626; font-size: 21px; line-height: 1.7; }
.about-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 36px; border-top: 1px solid #ddd; }
.about-links a { position: relative; min-height: 116px; border-right: 1px solid #ddd; padding: 18px 18px 12px 0; transition: background .28s ease, color .28s ease, padding .28s ease; }
.about-links a:last-child { border-right: 0; padding-left: 18px; }
.about-links a:nth-child(2) { padding-left: 18px; }
.about-links span, .about-links b, .about-links small { display: block; }
.about-links a { text-align: center; }
.about-links span { margin-bottom: 8px; color: #b40d18; font-size: 12px; }
.about-links b { margin-bottom: 6px; font-size: 17px; }
.about-links small { color: #888; font-size: 11px; letter-spacing: .8px; }
.about-links a:hover { background: #fff7f7; color: #b40d18; }
.about-links a:hover span, .about-links a:hover small { color: #b40d18; }
.stats { max-width: 1080px; margin: 70px auto 0; border-top: 1px solid #ddd; padding-top: 28px; }
.stats > div { position: relative; padding: 10px 18px; transition: transform .28s ease; }
.stats > div:not(:last-child)::after { position: absolute; top: 15px; right: 0; width: 1px; height: 50px; content: ""; background: #ddd; }
.stats > div:hover { background: #fff7f7; }

.course { position: relative; overflow: hidden; padding: 92px 9% 104px; background: #f5f5f5; }
.course::before { position: absolute; top: -85px; left: -80px; width: 330px; height: 330px; border: 1px solid rgba(180, 13, 24, .18); border-radius: 50%; content: ""; }
.course-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(320px, .82fr) minmax(480px, 1.18fr); gap: 86px; align-items: center; max-width: 1180px; margin: auto; }
.course-copy { text-align: left; }
.course-copy h2 { margin: 9px 0 24px; font-size: 42px; }
.course-intro { max-width: 480px; margin: 0; color: #666; font-size: 15px; line-height: 2; }
.course-years { display: grid; grid-template-columns: 70px 1fr; gap: 15px 16px; margin-top: 32px; padding-top: 23px; border-top: 1px solid #d8d8d8; }
.course-years b { color: #b40d18; font-size: 22px; }
.course-years span { padding-top: 3px; color: #777; font-size: 13px; line-height: 1.6; }
.course-link { margin-top: 32px; color: #b40d18; }
.spiral-stage { position: relative; width: min(100%, 650px); aspect-ratio: 1.18; min-height: 440px; perspective: 1100px; overflow: hidden; cursor: grab; }
.spiral-stage:active { cursor: grabbing; }
.spiral-stage::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(245,245,245,.82) 0%, transparent 12%, transparent 88%, rgba(245,245,245,.82) 100%); pointer-events: none; }
.spiral-orbit { position: absolute; inset: 0; transform-style: preserve-3d; }
.spiral-item { position: absolute; top: 50%; left: 50%; width: 188px; height: 126px; border: 5px solid #fff; box-shadow: 0 14px 25px rgba(28, 50, 66, .2); object-fit: cover; transform-style: preserve-3d; will-change: transform, opacity; user-select: none; }
.spiral-core { position: absolute; top: 50%; left: 50%; z-index: 120; display: grid; width: 102px; height: 102px; border: 1px solid rgba(180, 13, 24, .55); border-radius: 50%; place-items: center; background: rgba(255, 255, 255, .94); color: #b40d18; font-size: 17px; font-weight: 700; line-height: 1.35; text-align: center; transform: translate(-50%, -50%); box-shadow: 0 8px 25px rgba(0, 0, 0, .1); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1100px; margin: auto; text-align: left; }
.timeline::before { position: absolute; top: 44px; right: 7%; left: 7%; height: 1px; content: ""; background: #c9c9c9; }
.timeline article { position: relative; min-height: 172px; margin-top: 82px; border: 1px solid #e3e3e3; border-top: 3px solid #b40d18; padding: 24px 22px 25px; background: #fff; box-shadow: 0 10px 25px rgba(33, 33, 33, .035); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.timeline time { position: absolute; top: -73px; left: 22px; display: block; color: #b40d18; font-size: 28px; font-weight: 700; }
.timeline i { position: absolute; z-index: 1; top: -45px; left: 22px; display: block; width: 15px; height: 15px; margin: 0; border: 4px solid #f5f5f5; border-radius: 50%; background: #b40d18; box-shadow: 0 0 0 1px #b40d18; transition: transform .3s ease, background .3s ease; }
.timeline h3 { margin: 0 0 9px; font-size: 18px; }
.timeline p { margin: 0; color: #777; font-size: 13px; line-height: 1.8; }
.timeline article:hover { border-color: #d7b2b5; border-top-color: #b40d18; box-shadow: 0 10px 24px rgba(24, 54, 79, .09); }
.timeline article:hover i { background: #b40d18; box-shadow: 0 0 0 1px #b40d18; transform: scale(1.12); }

.news { max-width: 1440px; margin: auto; padding-right: 9%; padding-left: 9%; }
.news .tabs { justify-content: flex-start; max-width: 1180px; margin-right: auto; margin-left: auto; border-bottom: 1px solid #e3e3e3; gap: 24px; }
.news-card { position: relative; border: 0; padding-bottom: 21px; transition: transform .35s ease; }
.news-card::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; content: ""; background: #dedede; transition: background .3s ease, height .3s ease; }
.news-card img { height: 205px; transition: transform .65s cubic-bezier(.2, .8, .2, 1), filter .35s ease; }
.news-card h3 { padding-right: 14px; font-size: 19px; }
.news-card time { display: inline-block; margin-top: 2px; color: #b40d18; }
.news-card:hover { transform: none; }
.news-card:hover img { filter: saturate(1.06) brightness(1.03); transform: none; }
.news-card:hover::after { height: 2px; background: #b40d18; }
.news-card:hover h3 { color: #b40d18; }
.news-card { overflow: hidden; }

.contact-band { position: relative; overflow: hidden; min-height: 272px; padding-right: 9%; padding-left: 9%; background: #b40d18; }
.contact-band::before { position: absolute; top: -190px; right: -70px; width: 500px; height: 500px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; content: ""; }
.contact-band::after { position: absolute; right: 95px; bottom: -190px; width: 330px; height: 330px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; content: ""; }
.contact-copy, .contact-icons { position: relative; z-index: 1; }
.contact-copy { max-width: 450px; }
.contact-action { margin-top: 19px; border-color: rgba(255, 255, 255, .72); color: #fff; }
.contact-action::after { margin-left: 11px; content: "+"; font-size: 17px; line-height: 1; transition: transform .25s ease; }
.contact-action:hover { border-color: #fff; }
.contact-action:hover::after { transform: translateX(4px); }
.contact-icons { gap: 0; }
.contact-icons a { min-width: 178px; padding: 13px 18px; border-left: 1px solid rgba(255, 255, 255, .3); font-size: 14px; transition: background .25s ease, transform .25s ease; }
.contact-icons a:last-child { border-right: 1px solid rgba(255, 255, 255, .3); }
.contact-icons em { display: block; margin-bottom: 15px; color: rgba(255, 255, 255, .6); font-size: 12px; font-style: normal; }
.contact-icons b, .contact-icons small { display: block; }
.contact-icons b { margin-bottom: 6px; }
.contact-icons small { max-width: 150px; overflow: hidden; font-size: 11px; opacity: .82; text-overflow: ellipsis; white-space: nowrap; }
.contact-icons a:hover { background: rgba(255, 255, 255, .12); transform: none; }

[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .75s ease var(--reveal-delay, 0ms), transform .75s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.hero[data-reveal] { opacity: 1; transform: none; }
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: heroCopyIn .65s ease forwards; }
.hero-copy .hero-en { animation-delay: .15s; }
.hero-copy h1 { animation-delay: .28s; }
.hero-copy p { animation-delay: .42s; }
.hero-copy .outline-btn { animation-delay: .55s; }
.hero-slide:not(.is-active) .hero-copy > * { animation: none; opacity: 0; }

@keyframes heroCopyIn { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .section-heading { margin-bottom: 28px; }
  .about, .news { padding-right: 6%; padding-left: 6%; }
  .about-layout { grid-template-columns: 1fr 1fr; gap: 34px; }
  .about-photo, .about-photo img { min-height: 330px; height: 330px; }
  .about-copy .lead { font-size: 18px; }
  .about-links { grid-template-columns: 1fr; }
  .about-links a, .about-links a:last-child, .about-links a:nth-child(2) { min-height: 72px; border-right: 0; border-bottom: 1px solid #ddd; padding: 10px 0; }
  .about-links a:last-child { border-bottom: 0; }
  .about-links span, .about-links b, .about-links small { display: inline-block; margin: 0 10px 0 0; }
  .course { padding-right: 6%; padding-left: 6%; }
  .course-layout { grid-template-columns: 1fr 1fr; gap: 30px; }
  .course-copy h2 { font-size: 34px; }
  .spiral-stage { min-height: 350px; }
  .contact-band { padding-right: 6%; padding-left: 6%; }
  .contact-icons a { min-width: 0; flex: 1; }
}

@media (max-width: 600px) {
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 29px; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo, .about-photo img { min-height: 270px; height: 270px; }
  .about-copy .lead { font-size: 18px; }
  .stats { margin-top: 48px; }
  .stats > div:nth-child(2)::after { display: none; }
  .course-layout { grid-template-columns: 1fr; gap: 34px; }
  .course-copy { text-align: center; }
  .course-intro { margin-right: auto; margin-left: auto; }
  .course-years { max-width: 360px; margin-right: auto; margin-left: auto; text-align: left; }
  .spiral-stage { width: 100%; min-height: 320px; }
  .news .tabs { gap: 7px; }
  .news .tabs a { padding: 8px 6px; font-size: 13px; }
  .content-wrap .category-tabs { justify-content: flex-start; gap: 8px; margin: 0 -4px 27px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; }
  .content-wrap .category-tabs::-webkit-scrollbar { display: none; }
  .content-wrap .category-tabs a { flex: 0 0 auto; min-height: 38px; border: 1px solid #e2e2e2; padding: 0 16px; background: #fafafa; color: #666; font-size: 13px; line-height: 36px; white-space: nowrap; }
  .content-wrap .category-tabs a.active, .content-wrap .category-tabs a:hover { border-color: #b40d18; background: #b40d18; color: #fff; }
  .search-result { grid-template-columns: 108px minmax(0, 1fr); gap: 13px; }
  .search-result-image { height: 82px; }
  .search-group { margin-top: 27px; }
  .search-group-heading h2 { font-size: 21px; }
  .search-result h3 { font-size: 17px; }
  .search-result p { display: -webkit-box; overflow: hidden; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .contact-icons { display: grid; grid-template-columns: 1fr; margin-top: 28px; }
  .contact-icons a, .contact-icons a:last-child { min-height: 74px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
}

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

/* Collapsed navigation for narrow screens. */
.mobile-menu-toggle { display: none; }

@media (max-width: 768px) {
  .site-header { position: relative; height: 80px; min-height: 80px; flex-wrap: nowrap; justify-content: space-between; gap: 0; padding: 8px 5%; }
  .brand { flex: 0; }
  .brand-logo { width: 56px; height: 56px; }
  .search { display: none; }
  .mobile-menu-toggle { display: grid; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid #d8b1b4; padding: 0; background: #fff; cursor: pointer; transition: border-color .25s ease, background .25s ease; }
  .mobile-menu-toggle:hover { border-color: #b40d18; background: #fff7f7; }
  .mobile-menu-toggle img { width: 22px; height: 22px; }
  .site-header nav { position: absolute; z-index: 20; top: 74px; right: 12px; left: 12px; display: grid; width: auto; max-height: 0; margin: 0; overflow: hidden; visibility: hidden; justify-content: stretch; justify-items: stretch; gap: 0; border: 1px solid #ead7d8; background: #fff; box-shadow: 0 14px 28px rgba(20, 20, 20, .14); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: max-height .35s ease, opacity .25s ease, transform .35s ease, visibility .35s ease; }
  .site-header nav::before { display: block; height: 3px; content: ""; background: #b40d18; }
  .site-header nav a { display: flex; min-height: 47px; align-items: center; justify-content: flex-start; border-bottom: 1px solid #f0e7e7; padding: 0 22px; color: #333; font-size: 14px; letter-spacing: .2px; }
  .site-header nav a:last-child { border-bottom: 0; }
  .site-header nav a.active { width: 100%; border: 0; border-bottom: 1px solid #f0e7e7; border-left: 3px solid #b40d18; padding-left: 19px; border-radius: 0; background: #fff7f7; color: #b40d18; font-weight: 700; }
  .site-header.nav-open nav { max-height: 270px; visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
  footer { grid-template-columns: 1fr; gap: 24px; width: 100%; padding: 38px 20px 28px; }
  footer > div { min-width: 0; }
  .copyright { grid-column: auto; }
  .qr { width: 64px; height: 64px; }
  .content-wrap .category-tabs { justify-content: flex-start; gap: 8px; margin: 0 -4px 27px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; }
  .content-wrap .category-tabs::-webkit-scrollbar { display: none; }
  .content-wrap .category-tabs a { flex: 0 0 auto; min-height: 38px; border: 1px solid #e2e2e2; padding: 0 16px; background: #fafafa; color: #666; font-size: 13px; line-height: 36px; white-space: nowrap; }
  .content-wrap .category-tabs a.active, .content-wrap .category-tabs a:hover { border-color: #b40d18; background: #b40d18; color: #fff; }
}

/* About and contact page layouts. */
.page-shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.page-banner { display: flex; height: 260px; align-items: center; background-position: center; background-repeat: no-repeat; background-size: cover; color: #fff; }
.page-banner-copy h1 { margin: 0 0 4px; font-size: 32px; line-height: 1.2; }
.page-banner-copy p { margin: 0; font-size: 16px; letter-spacing: .7px; }
.about-page-banner { background-image: linear-gradient(90deg, rgba(31, 27, 24, .46), rgba(31, 27, 24, .1)), url("../images/news-performance.jpg"); }
.contact-page-banner { background-image: linear-gradient(90deg, rgba(25, 37, 47, .42), rgba(25, 37, 47, .07)), url("../images/hero-city-skyline.jpg"); }

.about-profile { padding: 78px 0; background: #f3f3f3; }
.about-profile-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(420px, 1.02fr); gap: 94px; align-items: center; }
.section-kicker { margin: 0 0 6px; color: #3f474f; font-size: 14px; letter-spacing: .2px; }
.about-profile-copy h2 { margin: 0 0 15px; color: #252525; font-size: 31px; line-height: 1.3; }
.about-profile-copy h2 span { color: #b40d18; }
.about-profile-copy > p:not(.section-kicker) { max-width: 510px; margin: 0 0 6px; color: #676767; font-size: 14px; line-height: 1.72; }
.about-profile-copy .solid-btn { width: 143px; min-width: 143px; height: 42px; margin-top: 30px; }
.about-profile-photo { overflow: hidden; margin: 0; background: #ddd; aspect-ratio: 1.43; }
.about-profile-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter .35s ease; }
.about-profile-photo:hover img { filter: saturate(1.06) contrast(1.02); }

.mission-section { padding: 82px 0 100px; background: #fff; }
.mission-heading { margin-bottom: 46px; text-align: center; }
.mission-heading p { margin: 0 0 7px; color: #555; font-size: 16px; letter-spacing: .7px; }
.mission-heading h2 { margin: 0; color: #242424; font-size: 32px; font-weight: 500; }
.mission-heading > span { display: block; width: 38px; height: 2px; margin: 17px auto 0; background: #b40d18; }
.mission-gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 202px 202px 202px; gap: 14px; }
.mission-image { position: relative; display: block; overflow: hidden; background: #e9e9e9; perspective: 900px; }
.mission-image img, .mission-image span { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; transform-style: preserve-3d; transition: transform .66s cubic-bezier(.2, .7, .2, 1), filter .35s ease; }
.mission-image img { object-fit: cover; }
.mission-image span { display: flex; align-items: center; justify-content: center; padding: 22px; background: #b40d18; color: #fff; font-size: 16px; letter-spacing: 1.5px; opacity: 1; text-align: center; transform: rotateY(180deg); }
.mission-image:hover img { filter: saturate(1.05) brightness(.9); transform: rotateY(180deg); }
.mission-image:hover span { transform: rotateY(360deg); }
.mission-image-wide { grid-column: 1 / span 2; grid-row: 1; }
.mission-image:nth-child(2) { grid-column: 3; grid-row: 1; }
.mission-image:nth-child(3) { grid-column: 2; grid-row: 2; }
.mission-image-side { grid-column: 3; grid-row: 2; }
.mission-image-tall { grid-column: 1; grid-row: 2 / span 2; }
.mission-image-wide-bottom { grid-column: 2 / span 2; grid-row: 3; }

.about-callout { padding: 78px 0; background: repeating-linear-gradient(135deg, #eee 0, #eee 14px, #f1f1f1 14px, #f1f1f1 28px); }
.about-callout-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.about-callout h2 { margin: 0 0 9px; color: #303030; font-size: 28px; font-weight: 500; }
.about-callout p { margin: 0; color: #686868; font-size: 14px; }
.about-callout .solid-btn { width: 220px; min-width: 220px; height: 48px; }

.contact-main { padding: 54px 0 62px; }
.contact-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 112px; }
.contact-main h2 { margin: 0 0 10px; color: #222; font-size: 38px; line-height: 1.3; }
.contact-main p { margin: 0; color: #777; font-size: 14px; line-height: 1.65; }
.contact-lead { max-width: 445px; }
.contact-list { display: grid; gap: 19px; margin: 34px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; min-height: 40px; align-items: center; gap: 17px; color: #777; font-size: 16px; line-height: 1.45; }
.contact-list img { width: 40px; height: 40px; flex: 0 0 40px; }
.contact-list b { color: #222; }
.message-panel > p { margin-bottom: 31px; }
.contact-page .contact-form { max-width: none; gap: 17px; }
.contact-page .contact-form label { display: grid; gap: 9px; color: #777; font-size: 13px; }
.contact-page .contact-form input, .contact-page .contact-form textarea { width: 100%; border-color: #cfcfcf; padding: 10px 12px; color: #333; background: #fff; }
.contact-page .contact-form input { height: 40px; }
.contact-page .contact-form textarea { min-height: 112px; resize: vertical; }
.contact-page .contact-form button { width: 140px; min-width: 140px; height: 40px; margin-top: 8px; border-color: #777; border-radius: 22px; background: #fff; color: #333; }
.contact-page .contact-form button:hover { border-color: #b40d18; background: #b40d18; color: #fff; }

.location-section { padding: 0 0 76px; }
.location-map { position: relative; height: 468px; overflow: hidden; border: 1px solid #d5dfdd; background-color: #e7f0e9; background-image: linear-gradient(32deg, transparent 0 47%, rgba(255, 255, 255, .92) 47.3% 51.4%, transparent 51.7%), linear-gradient(118deg, transparent 0 47%, rgba(255, 255, 255, .85) 47.3% 51.2%, transparent 51.5%), linear-gradient(0deg, rgba(151, 192, 171, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(151, 192, 171, .22) 1px, transparent 1px); background-size: auto, auto, 42px 42px, 42px 42px; }
.location-map::before { position: absolute; top: 20%; left: -6%; width: 116%; height: 46%; border: 56px solid rgba(189, 219, 230, .72); border-radius: 50%; content: ""; transform: rotate(-8deg); }
.location-map::after { position: absolute; right: 14%; bottom: -22%; width: 380px; height: 380px; border: 34px solid rgba(185, 220, 182, .95); border-radius: 50%; content: ""; }
.map-route { position: absolute; z-index: 1; display: block; height: 16px; border: 4px solid #f8f8f4; border-radius: 999px; background: #c6d9e1; transform-origin: left center; }
.route-one { top: 29%; left: -3%; width: 64%; transform: rotate(20deg); }
.route-two { top: 61%; left: 15%; width: 78%; transform: rotate(-18deg); }
.route-three { top: 18%; left: 42%; width: 56%; transform: rotate(71deg); }
.map-block { position: absolute; z-index: 2; border: 1px solid rgba(113, 143, 150, .36); padding: 12px 18px; background: rgba(255, 255, 255, .76); color: #52636b; font-size: 13px; }
.block-one { top: 21%; left: 14%; }
.block-two { right: 19%; bottom: 22%; }
.block-three { top: 58%; left: 36%; }
.map-pin { position: absolute; z-index: 3; top: 45%; left: 50%; color: #b40d18; font-size: 42px; line-height: 1; text-shadow: 0 2px 0 #fff; }
.map-label { position: absolute; z-index: 3; top: calc(45% + 43px); left: calc(50% - 38px); border: 1px solid #ddd; padding: 7px 11px; background: #fff; color: #333; font-size: 12px; white-space: nowrap; }
.map-scale { position: absolute; z-index: 3; right: 18px; bottom: 16px; color: #617174; font-size: 12px; }


@media (max-width: 900px) {
  .page-shell { width: min(calc(100% - 36px), 1200px); }
  .about-profile-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 42px; }
  .mission-gallery { grid-template-rows: 155px 155px 155px; gap: 12px; }
  .contact-main-grid { gap: 50px; }
  .contact-main h2 { font-size: 32px; }
  .location-map { height: 390px; }
}

@media (max-width: 600px) {
  .page-shell { width: min(calc(100% - 32px), 1200px); }
  .page-banner { height: 210px; }
  .page-banner-copy h1 { font-size: 29px; }
  .detail-hero { height: 210px; padding-left: 6%; }
  .detail-hero h1 { font-size: 31px; }
  .about-profile { padding: 50px 0; }
  .about-profile-grid, .contact-main-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-profile-copy h2 { font-size: 28px; }
  .about-profile-photo { aspect-ratio: 1.3; }
  .mission-section { padding: 52px 0 62px; }
  .mission-heading { margin-bottom: 28px; }
  .mission-heading p { font-size: 15px; }
  .mission-heading h2 { font-size: 25px; }
  /* The desktop mosaic leaves an intentional ninth grid cell. On a phone, use a complete six-image grid instead. */
  .mission-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 164px); grid-auto-rows: 164px; gap: 10px; }
  .mission-image, .mission-image-wide, .mission-image-side, .mission-image-tall, .mission-image-wide-bottom, .mission-image:nth-child(2), .mission-image:nth-child(3) { grid-column: auto; grid-row: auto; }
  .mission-image span { padding: 14px; font-size: 14px; line-height: 1.45; letter-spacing: .8px; }
  .about-callout { padding: 52px 0; }
  .about-callout-inner { display: block; }
  .about-callout h2 { font-size: 24px; }
  .about-callout .solid-btn { width: 180px; min-width: 180px; margin-top: 28px; }
  .contact-main { padding: 48px 0; }
  .contact-main h2 { font-size: 30px; }
  .contact-list { margin-top: 27px; }
  .contact-list li { gap: 13px; font-size: 14px; }
  .contact-page .contact-form button { align-self: flex-start; }
  .location-section { padding-bottom: 55px; }
  .location-map { height: 310px; }
  .location-map::before { border-width: 34px; }
  .location-map::after { width: 230px; height: 230px; border-width: 22px; }
  .map-block { padding: 8px 10px; font-size: 11px; }
  .map-label { left: calc(50% - 64px); font-size: 10px; }
}
