/* ===== Reset / base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
  color: #16232a;
  background: #f6f4ee;
  width: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; }
button { font-family: inherit; }

@keyframes fcuRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.serif { font-family: 'Noto Serif TC', serif; }

/* ===== NAV (WWDC-style slim bar) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(115, 32, 47, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 56.0625px;
  padding: 0 clamp(18px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header__logo img {
  height: 30.46875px;
  width: auto;
  display: block;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 30px);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.site-header__nav::-webkit-scrollbar { display: none; }
.site-header__nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15.84375px;
  font-weight: 400;
  white-space: nowrap;
}

.fcu-mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.fcu-mobile-btn span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  display: block;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #5a1824;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px clamp(18px, 4vw, 40px) 18px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 720px) {
  .fcu-desktop-nav { display: none !important; }
  .fcu-mobile-btn { display: flex !important; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #5a1824 0%, #73202f 55%, #8f2a3b 100%);
  color: #ffffff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.6;
}
.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 110px) clamp(18px, 4vw, 40px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy { animation: fcuRise 0.7s ease both; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 116, 87, 0.18);
  border: 1px solid rgba(242, 116, 87, 0.5);
  color: #ffc7b8;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero__title {
  font-weight: 900;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.14;
  margin: 22px 0 0;
  letter-spacing: 0.01em;
}
.hero__lede {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin: 22px 0 0;
  max-width: 30em;
}
.hero__lede strong { color: #ffc7b8; }
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.btn-solid {
  background: #f27457;
  color: #5a1824;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  display: inline-block;
}
.hero__media { animation: fcuRise 0.9s ease both; }
.hero__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  border: 6px solid rgba(255, 255, 255, 0.14);
}
.hero__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.hero__caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin: 12px 4px 0;
  line-height: 1.6;
}

/* ===== Shared section layout ===== */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 40px); }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--tight { margin-bottom: clamp(32px, 5vw, 48px); }
.eyebrow { color: #73202f; font-weight: 700; letter-spacing: 0.22em; font-size: 13px; }
.eyebrow--onDark { color: #f2a08f; }
.eyebrow--onRosé { color: #73202f; }
.section-title {
  font-weight: 900;
  font-size: clamp(26px, 4vw, 42px);
  margin: 10px 0 0;
  color: #2e1219;
}
.section-title--onDark { color: #ffffff; }

/* ===== HIGHLIGHTS / STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}
.stat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: 0 12px 30px rgba(115, 32, 47, 0.07);
  border-top: 4px solid #73202f;
}
.stat-card--coral { border-top-color: #f27457; }
.stat-card__value {
  font-weight: 900;
  font-size: clamp(44px, 6vw, 58px);
  color: #73202f;
  line-height: 1;
}
.stat-card__value--coral { color: #d0492a; }
.stat-card__value .unit { font-size: 0.4em; font-weight: 700; margin-left: 4px; }
.stat-card__label { margin-top: 12px; font-weight: 700; font-size: 16px; }
.stat-card__sub { margin-top: 4px; color: #5a6b72; font-size: 13px; }

.faculty-banner {
  margin-top: clamp(16px, 2.4vw, 24px);
  background: linear-gradient(120deg, #5a1824, #73202f);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 40px);
  color: #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: center;
}
.faculty-banner__figure { font-weight: 900; font-size: clamp(34px, 5vw, 48px); }
.faculty-banner__label { color: rgba(255, 255, 255, 0.85); font-size: 15px; margin-top: 8px; }
.faculty-banner__copy { color: rgba(255, 255, 255, 0.9); line-height: 1.8; font-size: 15px; margin: 0; }

/* ===== RANKING ===== */
.ranking-section { background: #ffffff; }
.ranking-sub { color: #5a6b72; font-size: 15px; margin: 0 0 22px; }
.tab-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tab-btn {
  font-family: 'Noto Sans TC', sans-serif;
  cursor: pointer;
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #c9a0a8;
  background: #ffffff;
  color: #73202f;
}
.tab-btn.is-active { background: #73202f; color: #ffffff; border-color: #73202f; }

.ranking-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ranking-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #f7f9fa;
  border: 1px solid #eceff0;
}
.ranking-row.is-fcu { background: #f7e8ea; border-color: #c9a0a8; }
.ranking-row__rank { font-weight: 900; font-size: 22px; color: #9aa7ac; text-align: center; }
.ranking-row.is-fcu .ranking-row__rank { color: #73202f; }
.ranking-row__name { font-weight: 500; font-size: clamp(15px, 2.2vw, 17px); color: #3a474d; }
.ranking-row.is-fcu .ranking-row__name { font-weight: 700; color: #73202f; }
.ranking-row__count { display: flex; align-items: baseline; gap: 2px; color: #3a474d; }
.ranking-row.is-fcu .ranking-row__count { color: #73202f; }
.ranking-row__count .num { font-weight: 900; font-size: clamp(18px, 2.6vw, 22px); }
.ranking-row__count .unit { font-size: 13px; opacity: 0.7; }
.ranking-source { text-align: center; color: #93a0a6; font-size: 13px; margin-top: 22px; }

/* ===== TWO TRENDS ===== */
.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 3vw, 28px);
}
.trend-card {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 12px 30px rgba(115, 32, 47, 0.07);
}
.trend-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e6f2f6;
  color: #73202f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
}
.trend-card__icon--coral { background: #fde4dd; color: #d0492a; font-size: 17px; letter-spacing: 0.02em; }
.trend-card__title { font-size: clamp(20px, 3vw, 26px); font-weight: 700; margin: 20px 0 10px; color: #2e1219; }
.trend-card__copy { color: #4a5960; line-height: 1.85; font-size: 15px; margin: 0; }

/* ===== FEATURED PROJECTS ===== */
.projects-section { background: #3d0f18; color: #ffffff; }
.scroller-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}
.scroller-controls { display: flex; align-items: center; gap: 10px; }
.scroller-hint { color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-right: 4px; }
.scroller-hint--rose { color: #9a7a80; }
.scroller-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scroller-btn--next { border: 1px solid #f27457; background: #f27457; color: #5a1824; }
.scroller-btn--rose { border: 1px solid #d9b4bb; background: #ffffff; color: #73202f; }
.scroller-btn--rose-next { border: 1px solid #73202f; background: #73202f; color: #ffffff; }

.projects-scroller {
  display: flex;
  gap: clamp(16px, 2.4vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 18px;
}
.projects-scroller::-webkit-scrollbar { display: none; }
.project-card {
  flex: 0 0 clamp(270px, 78vw, 340px);
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}
.project-card__field {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(242, 116, 87, 0.16);
  color: #f5b3a3;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.project-card__title {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 700;
  line-height: 1.5;
  margin: 16px 0 12px;
  color: #ffffff;
}
.project-card__desc { color: rgba(255, 255, 255, 0.78); line-height: 1.8; font-size: 14px; margin: 0 0 18px; }
.project-card__meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.project-card__meta .student { color: #f5b3a3; }

/* ===== ROSTER ===== */
.roster-section { background: #f7e8ea; }
.roster-lede {
  color: #7a5a60;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.8;
  margin: 0 auto 24px;
  max-width: 34em;
}
.roster-lede strong { color: #73202f; }
.roster-meta { color: #9a7a80; font-size: 14px; margin: 18px 0 0; }
.roster-meta strong { color: #73202f; }

.distribution {
  max-width: 900px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.distribution__row {
  display: grid;
  grid-template-columns: minmax(96px, 150px) 1fr 40px;
  align-items: center;
  gap: 12px;
}
.distribution__label { font-size: 13px; font-weight: 600; color: #2e1219; text-align: right; }
.distribution__track { background: #ecd4d8; border-radius: 999px; height: 14px; overflow: hidden; }
.distribution__fill { height: 100%; background: linear-gradient(90deg, #73202f, #f27457); border-radius: 999px; }
.distribution__count { font-size: 13px; font-weight: 700; color: #73202f; }

.roster-controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.roster-search {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid #d9b4bb;
  background: #ffffff;
  font-size: 15px;
  font-family: 'Noto Sans TC', sans-serif;
  color: #2e1219;
  outline: none;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  font-family: 'Noto Sans TC', sans-serif;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #d9b4bb;
  transition: all 0.15s;
  background: #ffffff;
  color: #73202f;
}
.chip.is-active { background: #73202f; color: #ffffff; border-color: #73202f; }

.roster-result-count { text-align: center; color: #7a5a60; font-size: 14px; margin-bottom: 20px; }
.roster-result-count strong { color: #73202f; }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  max-width: 960px;
  margin: 0 auto;
}
.roster-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 8px 22px rgba(115, 32, 47, 0.06);
  border-left: 4px solid #f27457;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.roster-card__college {
  display: inline-flex;
  align-self: flex-start;
  background: #f7e8ea;
  color: #73202f;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.roster-card__who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 2px;
  flex-wrap: wrap;
}
.roster-card__student { font-size: 20px; font-weight: 700; color: #2e1219; }
.roster-card__dept { font-size: 13px; color: #8a6b70; }
.roster-card__advisor { font-size: 12px; color: #a07b81; margin-bottom: 12px; }
.roster-card__title { font-size: 14px; line-height: 1.7; color: #4a3338; margin: 0; text-wrap: pretty; }

.roster-more { text-align: center; margin-top: 32px; }
.btn-maroon {
  background: #73202f;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  padding: 13px 34px;
  border-radius: 999px;
  font-size: 15px;
}
.roster-empty { text-align: center; color: #a07b81; padding: 40px 0; font-size: 15px; }

/* ===== SPOTLIGHT ===== */
.spotlight-section { background: #f6f4ee; }
.spotlight-scroller {
  display: flex;
  gap: clamp(16px, 2.5vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 18px;
  scroll-padding-left: 0;
}
.spotlight-scroller::-webkit-scrollbar { display: none; }
.spotlight-card {
  flex: 0 0 clamp(290px, 82vw, 400px);
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(115, 32, 47, 0.1);
  display: flex;
  flex-direction: column;
}
.spotlight-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.spotlight-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight-card__body { padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.spotlight-card__name { font-weight: 700; font-size: 22px; color: #2e1219; }
.spotlight-card__dept { color: #8a6b70; font-size: 13px; margin-top: 4px; }
.spotlight-card__quote {
  font-weight: 600;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.65;
  color: #73202f;
  margin: 18px 0;
  padding-left: 15px;
  border-left: 4px solid #f27457;
  text-wrap: pretty;
}
.spotlight-card__summary { color: #4a3338; line-height: 1.85; font-size: 14px; margin: 0 0 18px; text-wrap: pretty; }
.spotlight-card__tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; }
.spotlight-card__tags span {
  background: #f7e8ea;
  color: #73202f;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.spotlight-card__link {
  margin-top: auto;
  align-self: flex-start;
  background: #73202f;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
}

/* ===== VISION ===== */
.vision-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.vision-title { margin: 10px 0 20px; color: #2e1219; line-height: 1.25; }
.vision-copy { color: #4a5960; line-height: 1.95; font-size: 15px; margin: 0 0 18px; }
.vision-list { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.vision-list__item { display: flex; gap: 12px; align-items: flex-start; }
.vision-list__dot { width: 8px; height: 8px; border-radius: 50%; background: #f27457; margin-top: 8px; flex-shrink: 0; }
.vision-list__item strong { color: #2e1219; }
.vision-list__item span { color: #4a5960; }
.vision-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vision-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 14px 34px rgba(115, 32, 47, 0.14);
}
.vision-media img.offset { margin-top: 28px; }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, #5a1824, #73202f); }
.cta-inner { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 90px) clamp(18px, 4vw, 40px); text-align: center; color: #ffffff; }
.cta-title { font-weight: 900; font-size: clamp(26px, 4.4vw, 44px); margin: 0 0 16px; }
.cta-copy { color: rgba(255, 255, 255, 0.88); font-size: clamp(15px, 2.2vw, 18px); line-height: 1.8; max-width: 34em; margin: 0 auto 32px; }
.cta-copy--wide { max-width: 38em; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ===== FOOTER ===== */
.site-footer { background: #2a0a10; color: rgba(255, 255, 255, 0.7); }
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px clamp(18px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.footer-brand { color: #ffffff; font-weight: 700; font-size: 17px; }
.footer-address { font-size: 13px; line-height: 1.9; margin: 12px 0 0; }
.footer-address a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-col { font-size: 13px; line-height: 2; }
.footer-col__title { color: #ffffff; font-weight: 600; margin-bottom: 6px; }
.footer-col a { color: rgba(255, 255, 255, 0.7); text-decoration: none; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
