/* HSANNU International Curriculum Center — homepage
 * Design: refined Design B "Field Guide", White · Jade palette
 */

:root {
  --serif-en: 'Fraunces', 'Times New Roman', serif;
  --serif-display: 'Instrument Serif', 'Times New Roman', serif;
  --serif-cn: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --sans-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --sans-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html, body { margin: 0; padding: 0; background: #fbfdfb; }
body { font-family: var(--sans-en); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.HP-root {
  --bg: #fbfdfb;
  --paper: #ffffff;
  --ink: #111111;
  --muted: rgba(17, 17, 17, 0.6);
  --rule: rgba(17, 17, 17, 0.14);
  --rule-strong: rgba(17, 17, 17, 0.85);
  --accent: #0f4f3a;        /* White · Jade — deep jade green */
  --accent-deep: #063327;
  --hot: #b08746;           /* muted gold */
  --gold: #b08746;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans-en);
  width: 100%;
  min-height: 100vh;
}
.HP-root[lang="zh"] { font-family: var(--sans-cn); }
.HP-root a { color: inherit; text-decoration: none; }
.HP-root img { display: block; max-width: 100%; }

/* ===== Header ===== */
.HP-header {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-strong);
  position: sticky; top: 0; z-index: 50;
}
.HP-mark { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.HP-mark-logo {
  width: 48px; height: 48px; object-fit: contain;
  background: var(--paper);
  border-radius: 50%;
  padding: 2px;
}
.HP-mark-text { display: flex; flex-direction: column; line-height: 1.05; }
.HP-mark-l1 {
  font-family: var(--sans-en);
  font-weight: 700; font-size: 14px; letter-spacing: 0.18em;
}
.HP-root[lang="zh"] .HP-mark-l1 {
  font-family: var(--serif-cn);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.HP-mark-l2 {
  font-family: var(--serif-en); font-style: italic;
  font-size: 15px; color: var(--muted); margin-top: 2px;
}
.HP-root[lang="zh"] .HP-mark-l2 {
  font-family: var(--serif-cn); font-style: normal; font-weight: 400; font-size: 13.5px; margin-top: 1px;
}

.HP-nav {
  display: flex; gap: 30px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.HP-nav a { color: var(--ink); opacity: 0.82; transition: color 0.15s, opacity 0.15s; }
.HP-nav a:hover { color: var(--accent); opacity: 1; }
.HP-root[lang="zh"] .HP-nav {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
  font-size: 13.5px; font-weight: 500;
}

.HP-lang {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
}
.HP-lang button {
  all: unset; cursor: pointer;
  padding: 4px 8px; color: var(--muted);
  letter-spacing: 0.06em;
}
.HP-lang button.is-on { color: var(--accent); font-weight: 600; }
.HP-lang span { color: var(--muted); }

/* ===== Video Hero ===== */
.HP-hero {
  position: relative;
  height: calc(100vh - 89px);
  min-height: 640px; max-height: 920px;
  overflow: hidden;
  background: #000;
}
.HP-video {
  position: absolute; inset: 0;
}
.HP-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;        /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: 0;
}
.HP-video--contain iframe {
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
}
.HP-video-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 26%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.45) 86%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}
.HP-hero-frame {
  position: relative;
  height: 100%;
  padding: 36px 40px 36px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #fff;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.6s ease;
}
.HP-hero-frame.is-idle { opacity: 0; }
.HP-hero-frame button,
.HP-hero-frame a { pointer-events: auto; }
.HP-hero-top {
  display: flex; justify-content: space-between; align-items: center;
}
.HP-mute {
  all: unset; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.HP-mute:hover { background: rgba(0, 0, 0, 0.5); }
.HP-mute svg { flex: 0 0 auto; }
.HP-root[lang="zh"] .HP-mute {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}

.HP-hero-body {
  align-self: end;
  max-width: 980px;
  padding-bottom: 24px;
}
.HP-hero-title {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: 68px; line-height: 1.05; letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  margin: 0;
}
.HP-root[lang="zh"] .HP-hero-title {
  font-family: var(--serif-cn);
  font-weight: 400;
  font-size: 56px; line-height: 1.2; letter-spacing: 0;
}
.HP-hero-lede {
  font-family: var(--serif-en);
  font-size: 19px; line-height: 1.55; font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  max-width: 720px;
  margin: 24px 0 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
.HP-root[lang="zh"] .HP-hero-lede {
  font-family: var(--serif-cn);
  font-size: 17px; line-height: 1.85; font-weight: 400;
}
.HP-hero-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
}
.HP-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  border: 1px solid #fff;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.HP-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.HP-btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.HP-btn--ghost { background: transparent; color: #fff; }
.HP-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.HP-btn span {
  font-family: var(--serif-en);
  font-size: 16px; text-transform: none; letter-spacing: 0;
}
.HP-root[lang="zh"] .HP-btn {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none; font-size: 13px;
}
.HP-root[lang="zh"] .HP-btn span { font-family: var(--serif-cn); }

.HP-hero-foot {
  display: flex; justify-content: space-between; align-items: end;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.HP-hero-scroll {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 10px;
}
.HP-scroll-line {
  width: 56px; height: 1px;
  background: rgba(255, 255, 255, 0.6);
  position: relative; overflow: hidden;
}
.HP-scroll-line::after {
  content: ""; position: absolute;
  left: -30%; top: 0; width: 30%; height: 100%;
  background: #fff;
  animation: HP-scroll 2.4s ease-in-out infinite;
}
@keyframes HP-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(450%); }
}
.HP-root[lang="zh"] .HP-hero-scroll {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}

/* ===== Stats strip ===== */
.HP-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); color: var(--bg);
}
.HP-stat {
  padding: 36px 28px;
  border-right: 1px solid rgba(251, 247, 238, 0.16);
}
.HP-stat:last-child { border-right: 0; }
.HP-stat-k {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 64px; line-height: 0.95; letter-spacing: -0.02em;
}
.HP-stat-v {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(251, 247, 238, 0.66);
  margin-top: 14px;
}
.HP-root[lang="zh"] .HP-stat-v {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}

/* ===== Section frame ===== */
.HP-section {
  padding: 96px 40px;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 110px;
}
.HP-sec-head {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 32px; align-items: baseline;
  margin-bottom: 56px;
}
.HP-sec-num {
  font-family: var(--serif-display);
  font-size: 56px; line-height: 0.9;
  color: var(--accent); font-style: italic;
}
.HP-root[lang="zh"] .HP-sec-num { font-family: var(--serif-cn); font-style: normal; }
.HP-sec-kicker {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.HP-root[lang="zh"] .HP-sec-kicker {
  font-family: var(--sans-cn);
  letter-spacing: 0.12em; text-transform: none;
}
.HP-h2 {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: 44px; line-height: 1.12; letter-spacing: -0.01em;
  max-width: 900px;
  text-wrap: balance;
  margin: 0;
}
.HP-root[lang="zh"] .HP-h2 {
  font-family: var(--serif-cn);
  font-weight: 500;
  font-size: 36px; line-height: 1.35; letter-spacing: 0;
}
.HP-sec-lede {
  font-family: var(--serif-en);
  font-size: 18px; line-height: 1.55; font-weight: 300;
  color: var(--muted);
  margin: 18px 0 0; max-width: 780px;
}
.HP-root[lang="zh"] .HP-sec-lede {
  font-family: var(--serif-cn);
  font-size: 16px; line-height: 1.85; font-weight: 400;
}

/* ===== About ===== */
.HP-about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}
.HP-about-col { padding-top: 28px; }
.HP-col-num {
  font-size: 11px; letter-spacing: 0.24em; color: var(--accent);
  margin-bottom: 16px; font-weight: 700;
}
.HP-body {
  font-family: var(--serif-en);
  font-size: 17px; line-height: 1.6; font-weight: 300;
  margin: 0;
}
.HP-root[lang="zh"] .HP-body {
  font-family: var(--serif-cn);
  font-size: 15.5px; line-height: 1.95; font-weight: 400;
}

/* ===== Full-bleed campus image ===== */
.HP-bleed { padding: 0; }
.HP-bleed-fig { position: relative; margin: 0; }
.HP-bleed-fig img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  filter: saturate(0.92);
}
.HP-bleed-fig figcaption {
  position: absolute; top: 24px; left: 24px;
  background: var(--bg);
  padding: 8px 14px;
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.HP-root[lang="zh"] .HP-bleed-fig figcaption {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}

/* ===== Programs ===== */
.HP-programs { background: var(--paper); }
.HP-prog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule-strong);
}
.HP-prog-card {
  padding: 36px 36px 40px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
}
.HP-prog-card:last-child { border-right: 0; }
.HP-prog-head {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.HP-root[lang="zh"] .HP-prog-head {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}
.HP-prog-dot { color: var(--accent); }
.HP-prog-h {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: 34px; line-height: 1.1;
  margin: 28px 0 0;
}
.HP-root[lang="zh"] .HP-prog-h {
  font-family: var(--serif-cn);
  font-weight: 500; font-size: 28px;
}
.HP-prog-meta {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px;
}
.HP-root[lang="zh"] .HP-prog-meta {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}
.HP-prog-body {
  font-family: var(--serif-en);
  font-size: 16px; line-height: 1.6; font-weight: 300;
  margin: 20px 0 0;
}
.HP-root[lang="zh"] .HP-prog-body {
  font-family: var(--serif-cn);
  font-size: 14.5px; line-height: 1.95;
}

/* IB DP detail */
.HP-ib-detail {
  margin-top: 64px;
  border: 1px solid var(--rule-strong);
}
.HP-ib-detail-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600;
}
.HP-root[lang="zh"] .HP-ib-detail-head {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}
.HP-ib-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
}
.HP-ib-groups, .HP-ib-core { padding: 32px 32px 36px; }
.HP-ib-groups { border-right: 1px solid var(--rule); }
.HP-ib-core { background: var(--bg); }
.HP-ib-sub {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  margin-bottom: 24px;
}
.HP-root[lang="zh"] .HP-ib-sub {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}
.HP-ib-grouplist {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
}
.HP-ib-grouplist li {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.HP-ib-gnum {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.HP-root[lang="zh"] .HP-ib-gnum {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}
.HP-ib-gname {
  font-family: var(--serif-en);
  font-size: 16px; font-weight: 400;
}
.HP-root[lang="zh"] .HP-ib-gname {
  font-family: var(--serif-cn);
  font-size: 15px; font-weight: 500;
}

.HP-ib-corelist { list-style: none; margin: 0; padding: 0; }
.HP-ib-corelist li {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.HP-ib-corelist li:last-child { border-bottom: 1px solid var(--rule); }
.HP-core-k {
  font-family: var(--serif-display);
  font-style: italic; font-size: 26px; color: var(--accent);
  letter-spacing: 0;
}
.HP-root[lang="zh"] .HP-core-k { font-family: var(--serif-en); font-style: italic; }
.HP-core-v {
  font-family: var(--serif-en);
  font-size: 15.5px; font-weight: 400;
  line-height: 1.4;
}
.HP-root[lang="zh"] .HP-core-v {
  font-family: var(--serif-cn);
  font-size: 14.5px; font-weight: 400;
}

/* ===== Outcomes ===== */
.HP-out-table {
  width: 100%; border-collapse: collapse;
  border-top: 1px solid var(--rule-strong);
}
.HP-out-table th, .HP-out-table td {
  text-align: left;
  padding: 18px 14px;
  border-bottom: 1px solid var(--rule);
}
.HP-out-table th {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--rule-strong);
}
.HP-root[lang="zh"] .HP-out-table th {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}
.HP-out-region {
  font-family: var(--serif-en);
  font-size: 22px; font-weight: 400;
  width: 220px;
}
.HP-root[lang="zh"] .HP-out-region {
  font-family: var(--serif-cn);
  font-size: 19px; font-weight: 500;
}
.HP-out-school {
  font-family: var(--serif-en);
  font-size: 16.5px; font-weight: 300;
}
.HP-root[lang="zh"] .HP-out-school {
  font-family: var(--serif-cn);
  font-size: 15px; font-weight: 400;
}

/* ===== Campus ===== */
.HP-campus { background: var(--paper); }
.HP-campus-fig {
  margin: 8px 0 0;
  position: relative;
  border-top: 1px solid var(--rule);
}
.HP-campus-fig img {
  width: 100%;
  height: 540px;
  object-fit: cover;
}
.HP-campus-fig figcaption {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--bg);
  padding: 8px 14px;
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.HP-root[lang="zh"] .HP-campus-fig figcaption {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}

/* ===== Footer ===== */
.HP-footer {
  background: var(--ink);
  color: var(--bg);
}
.HP-foot-top {
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px; align-items: center;
  border-bottom: 1px solid rgba(251, 247, 238, 0.16);
}
.HP-foot-l { display: flex; align-items: center; gap: 18px; }
.HP-foot-school-logo {
  width: 64px; height: 64px; object-fit: contain;
  background: var(--bg); border-radius: 50%; padding: 4px;
}
.HP-foot-mark {
  font-family: var(--serif-display);
  font-size: 28px;
  line-height: 1.05;
}
.HP-root[lang="zh"] .HP-foot-mark {
  font-family: var(--serif-cn);
  font-weight: 500;
}
.HP-foot-tag {
  font-size: 12px; letter-spacing: 0.14em;
  color: rgba(251, 247, 238, 0.6);
  margin-top: 6px; max-width: 480px;
}
.HP-root[lang="zh"] .HP-foot-tag {
  font-family: var(--sans-cn);
  letter-spacing: 0.06em;
}

.HP-foot-r {
  display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
}
.HP-foot-accred-label {
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(251, 247, 238, 0.5); font-weight: 600;
}
.HP-root[lang="zh"] .HP-foot-accred-label {
  font-family: var(--sans-cn);
  letter-spacing: 0.1em; text-transform: none;
}
.HP-foot-accred {
  display: flex; align-items: center; gap: 20px;
}
.HP-foot-badge {
  background: #fff;
  padding: 10px 14px;
  display: inline-flex; align-items: center;
  border-radius: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.HP-foot-badge:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.HP-foot-badge img {
  height: 52px; width: auto; display: block;
}

.HP-foot-bottom {
  padding: 18px 40px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(251, 247, 238, 0.5);
}
.HP-root[lang="zh"] .HP-foot-bottom {
  font-family: var(--sans-cn);
  letter-spacing: 0.08em; text-transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .HP-nav { display: none; }
  .HP-header { grid-template-columns: auto 1fr; }
  .HP-lang { justify-self: end; }
  .HP-stats { grid-template-columns: repeat(2, 1fr); }
  .HP-stat:nth-child(2) { border-right: 0; }
  .HP-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .HP-prog-grid { grid-template-columns: 1fr; }
  .HP-prog-card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .HP-ib-grid { grid-template-columns: 1fr; }
  .HP-ib-groups { border-right: 0; border-bottom: 1px solid var(--rule); }
  .HP-ib-grouplist { grid-template-columns: 1fr; }
  .HP-foot-top { grid-template-columns: 1fr; }
  .HP-foot-r { align-items: flex-start; }
}
@media (max-width: 700px) {
  .HP-header { padding: 14px 20px; }
  .HP-section { padding: 64px 20px; }
  .HP-sec-head { grid-template-columns: 1fr; gap: 12px; }
  .HP-h2 { font-size: 32px; }
  .HP-root[lang="zh"] .HP-h2 { font-size: 26px; }
  .HP-hero-title { font-size: 42px; }
  .HP-root[lang="zh"] .HP-hero-title { font-size: 34px; }
  .HP-bleed-fig img { height: 360px; }
  .HP-out-table th, .HP-out-table td { padding: 12px 8px; }
  .HP-out-table { font-size: 13px; }
  .HP-foot-top, .HP-foot-bottom { padding: 32px 20px; }
}
