*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --blue-deep:   #0D2B5E;
    --blue-mid:    #1B4F8A;
    --blue-bright: #2D6BC4;
    --blue-light:  #D6E8FF;
    --gold:        #C8A84B;
    --white:       #FFFFFF;
    --off-white:   #F4F8FF;
    --text-dark:   #0A1A3A;
  }

  body { font-family: 'Inter', sans-serif; background: var(--blue-deep); color: var(--white); min-height: 100vh; }

  /* GATE */
  #gate {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--blue-deep);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem;
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  #gate.unlocking { opacity: 0; transform: scale(1.04); pointer-events: none; }

  .gate-bg { position: absolute; inset: 0; overflow: hidden; }
  .gate-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; filter: saturate(0.5); }
  .gate-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(13,43,94,0.6) 0%, rgba(13,43,94,0.85) 60%, rgba(13,43,94,0.97) 100%);
  }

  .gate-content { position: relative; z-index: 2; text-align: center; max-width: 440px; width: 100%; }

  .gate-logo {
    width: 100px; height: 100px; border-radius: 50%;
    margin: 0 auto 1.5rem; display: block;
    filter: drop-shadow(0 4px 24px rgba(45,107,196,0.6));
    animation: pulse-glow 3s ease-in-out infinite;
  }
  @keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 4px 24px rgba(45,107,196,0.5)); }
    50% { filter: drop-shadow(0 4px 36px rgba(45,107,196,0.9)); }
  }

  .gate-tagline { font-family: 'Noto Serif SC', serif; font-size: 0.85rem; letter-spacing: 0.25em; color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem; }
  .gate-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 0.4rem; }
  .gate-year { font-size: 1rem; color: var(--blue-light); font-weight: 300; letter-spacing: 0.1em; margin-bottom: 2.5rem; }

  .gate-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px; padding: 2rem; backdrop-filter: blur(12px);
  }
  .gate-card p { font-size: 0.85rem; color: var(--blue-light); margin-bottom: 1.2rem; letter-spacing: 0.04em; }

  .gate-input-wrap { position: relative; margin-bottom: 1rem; }
  .gate-input-wrap .lock-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1rem; opacity: 0.5; }
  .gate-input-wrap .eye-icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1rem; opacity: 0.5; cursor: pointer; user-select: none; }

  #pw-input {
    width: 100%; padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 10px; color: var(--white);
    font-family: 'Inter', sans-serif; font-size: 1rem; letter-spacing: 0.08em;
    outline: none; transition: border-color 0.2s, background 0.2s;
  }
  #pw-input::placeholder { color: rgba(255,255,255,0.35); letter-spacing: 0.04em; }
  #pw-input:focus { border-color: var(--blue-bright); background: rgba(45,107,196,0.15); }
  #pw-input.error { border-color: #FF6B6B; animation: shake 0.4s ease; }
  @keyframes shake {
    0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); }
  }

  #error-msg { font-size: 0.78rem; color: #FF6B6B; min-height: 1.1rem; margin-bottom: 0.8rem; display: none; }

  #enter-btn {
    width: 100%; padding: 0.9rem;
    background: linear-gradient(135deg, var(--blue-bright), var(--blue-mid));
    border: none; border-radius: 10px; color: var(--white);
    font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
    letter-spacing: 0.06em; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(27,79,138,0.5);
  }
  #enter-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(27,79,138,0.7); }
  #enter-btn:active { transform: translateY(0); }
  .gate-footer { margin-top: 1.5rem; font-size: 0.72rem; color: rgba(255,255,255,0.25); letter-spacing: 0.05em; }

  /* SITE */
  #site { display: none; opacity: 0; transition: opacity 1s ease; }
  #site.visible { display: block; opacity: 1; }

  /* NAVBAR */
  #navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 2rem;
    background: rgba(13,43,94,0.9); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transform: translateY(-100%); transition: transform 0.6s ease 0.8s;
  }
  #navbar.shown { transform: translateY(0); }
  .nav-brand { display: flex; align-items: center; gap: 0.7rem; }
  .nav-logo { width: 36px; height: 36px; border-radius: 50%; }
  .nav-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--white); }
  .nav-year { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.1em; }
  .nav-links { display: flex; gap: 1.5rem; list-style: none; }
  .nav-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.82rem; letter-spacing: 0.06em; transition: color 0.2s; }
  .nav-links a:hover { color: var(--white); }

  /* HERO */
  #hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    overflow: hidden; padding: 2rem;
  }
  .hero-slides { position: absolute; inset: 0; }
  .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; }
  .hero-slide.active { opacity: 1; }
  .hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 8s ease; }
  .hero-slide.active img { transform: scale(1); }
  .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(13,43,94,0.55) 0%, rgba(13,43,94,0.4) 40%, rgba(13,43,94,0.75) 80%, rgba(13,43,94,0.95) 100%);
  }
  .hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; }
  .hero-logo { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 1.5rem; display: block; filter: drop-shadow(0 2px 16px rgba(45,107,196,0.7)); }
  .hero-eyebrow { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; margin-bottom: 1rem; }
  .hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.05; color: var(--white); margin-bottom: 1rem; }
  .hero-title span { color: var(--gold); }
  .hero-sub { font-size: clamp(0.9rem, 2vw, 1.1rem); color: var(--blue-light); font-weight: 300; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
  .hero-class { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; color: rgba(255,255,255,0.55); margin-bottom: 2.5rem; }
  .hero-divider { width: 60px; height: 2px; background: linear-gradient(to right, transparent, var(--gold), transparent); margin: 0 auto 2.5rem; }
  .hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
  .hero-stat { text-align: center; }
  .hero-stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
  .hero-stat-label { font-size: 0.72rem; color: var(--blue-light); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.25rem; }
  .hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    color: rgba(255,255,255,0.4); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
  }
  @keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
  }

  /* COMING SOON */
  #coming-soon { background: var(--off-white); color: var(--text-dark); text-align: center; padding: 5rem 2rem; }
  .cs-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3em; color: var(--blue-mid); text-transform: uppercase; margin-bottom: 1rem; }
  .cs-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--blue-deep); margin-bottom: 1rem; }
  .cs-body { font-size: 1rem; color: #4A5A7A; max-width: 460px; margin: 0 auto; line-height: 1.7; }
  .section-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2rem; }
  .pill { background: var(--blue-light); color: var(--blue-deep); border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.8rem; font-weight: 500; }

  @media (max-width: 600px) { .nav-links { display: none; } .hero-stats { gap: 1.5rem; } }
/* ======== TEACHERS SECTION ======== */
  #teachers {
    background: var(--off-white);
    padding: 5rem 1.5rem;
  }

  .teachers-header {
    text-align: center;
    margin-bottom: 3.5rem;
  }

  .section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--blue-mid);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--blue-deep);
    margin-bottom: 0.8rem;
  }

  .section-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--blue-mid), var(--gold));
    margin: 0 auto 0.8rem;
    border-radius: 999px;
  }

  .section-sub {
    font-size: 0.85rem;
    color: #6A7A9A;
    letter-spacing: 0.08em;
  }

  .teachers-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .teacher-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(13,43,94,0.08);
    overflow: hidden;
    border: 1px solid rgba(27,79,138,0.08);
  }

  .teacher-card-inner {
    padding: 2rem;
  }

  .teacher-top {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
  }

  .teacher-photo-wrap {
    position: relative;
    flex-shrink: 0;
  }

  .teacher-photo {
    width: 120px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid var(--blue-light);
  }

  .teacher-number {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--blue-mid);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 999px;
    letter-spacing: 0.05em;
  }

  .teacher-info { flex: 1; min-width: 200px; }

  .teacher-badge {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue-deep);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
    letter-spacing: 0.04em;
  }

  .teacher-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue-deep);
    line-height: 1.1;
  }

  .teacher-name-en {
    font-size: 0.95rem;
    color: #6A7A9A;
    margin-bottom: 0.6rem;
    font-style: italic;
  }

  .teacher-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #4A5A7A;
  }

  .teacher-meta span {
    background: var(--off-white);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(27,79,138,0.1);
  }

  .teacher-bio {
    background: #F0F5FF;
    border-left: 3px solid var(--blue-bright);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  .bio-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blue-bright);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
  }

  .teacher-bio p:last-child {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.7;
  }

  .teacher-quote-block {
    background: #FFFBF0;
    border: 1px solid rgba(200,168,75,0.3);
    border-radius: 12px;
    padding: 1.2rem 1.5rem 1.2rem 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
  }

  .quote-mark {
    position: absolute;
    top: 0.2rem;
    left: 0.8rem;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
    opacity: 0.6;
  }

  .teacher-quote-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.7;
    font-style: italic;
  }

  .teacher-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .teacher-col-box {
    border-radius: 12px;
    padding: 1rem 1.2rem;
  }

  .teacher-col-box.green { background: #F0FFF4; border: 1px solid rgba(72,187,120,0.25); }
  .teacher-col-box.blue { background: #EFF6FF; border: 1px solid rgba(45,107,196,0.2); }

  .col-box-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2D6BC4;
    margin-bottom: 0.6rem;
  }

  .col-box-chinese { font-family: 'Noto Serif SC', serif; font-size: 1rem; color: var(--text-dark); margin-bottom: 0.2rem; }
  .col-box-small { font-size: 0.8rem; color: #4A5A7A; line-height: 1.6; margin-top: 0.4rem; }
  .col-box-item { font-size: 0.82rem; color: #4A5A7A; margin-bottom: 0.3rem; }

  .teacher-funfacts {
    background: #FDF4FF;
    border: 1px solid rgba(159,122,234,0.2);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .funfacts-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #805AD5;
    margin-bottom: 0.8rem;
  }

  .funfacts-grid { display: flex; flex-direction: column; gap: 0.7rem; }

  .funfact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .funfact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
  .funfact-key { font-size: 0.72rem; font-weight: 600; color: #6A7A9A; letter-spacing: 0.05em; }
  .funfact-val { font-size: 0.85rem; color: var(--text-dark); }

  .teacher-moments {
    background: #FFFBF0;
    border: 1px solid rgba(200,168,75,0.25);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .moments-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #B7791F;
    margin-bottom: 0.8rem;
  }

  .moments-list { padding-left: 1.2rem; }
  .moments-list li { font-size: 0.85rem; color: var(--text-dark); margin-bottom: 0.4rem; line-height: 1.6; }

  .teacher-wishes {
    background: #F0FFF4;
    border: 1px solid rgba(72,187,120,0.25);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .wishes-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #276749;
    margin-bottom: 0.8rem;
  }

  .wishes-text { font-size: 0.85rem; color: var(--text-dark); line-height: 1.7; margin-bottom: 0.6rem; }
  .wishes-extra { font-family: 'Noto Serif SC', serif; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 0.3rem; }
  .wishes-extra-en { font-size: 0.82rem; color: #6A7A9A; font-style: italic; }

  .teacher-autograph {
    border-top: 1px dashed rgba(27,79,138,0.15);
    padding-top: 1.2rem;
  }

  .autograph-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6A7A9A;
    margin-bottom: 0.8rem;
  }

  .autograph-box {
    background: var(--off-white);
    border: 1px dashed rgba(27,79,138,0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .autograph-sig {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    color: var(--blue-mid);
    font-weight: 700;
  }

  .autograph-doodle {
    font-size: 1.5rem;
    color: var(--blue-bright);
  }

  @media (max-width: 600px) {
    .teacher-two-col { grid-template-columns: 1fr; }
    .teacher-top { flex-direction: column; align-items: center; text-align: center; }
    .teacher-meta { justify-content: center; }
  }

  /* ======== TEACHERS SECTION ======== */
  #teachers { background: var(--off-white); padding: 5rem 1.5rem; }
  .teachers-header { text-align: center; margin-bottom: 3.5rem; }
  .section-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3em; color: var(--blue-mid); text-transform: uppercase; margin-bottom: 0.6rem; }
  .section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: var(--blue-deep); margin-bottom: 0.8rem; }
  .section-divider { width: 50px; height: 3px; background: linear-gradient(to right, var(--blue-mid), var(--gold)); margin: 0 auto 0.8rem; border-radius: 999px; }
  .section-sub { font-size: 0.85rem; color: #6A7A9A; letter-spacing: 0.08em; }
  .teachers-container { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
  .teacher-card { background: var(--white); border-radius: 20px; box-shadow: 0 4px 30px rgba(13,43,94,0.08); overflow: hidden; border: 1px solid rgba(27,79,138,0.08); }
  .teacher-card-inner { padding: 2rem; }
  .teacher-top { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.8rem; flex-wrap: wrap; }
  .teacher-photo-wrap { position: relative; flex-shrink: 0; }
  .teacher-photo { width: 120px; height: 140px; object-fit: cover; border-radius: 12px; border: 3px solid var(--blue-light); display: block; background: #D6E8FF; }
  .teacher-photo-placeholder { width: 120px; height: 140px; border-radius: 12px; border: 3px dashed var(--blue-light); background: #EFF6FF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; }
  .teacher-photo-placeholder span:first-child { font-size: 2rem; }
  .teacher-photo-placeholder span:last-child { font-size: 0.65rem; color: #6A7A9A; text-align: center; }
  .teacher-number { position: absolute; top: -8px; right: -8px; background: var(--blue-mid); color: white; font-size: 0.65rem; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
  .teacher-info { flex: 1; min-width: 200px; }
  .teacher-badge { display: inline-block; background: var(--blue-light); color: var(--blue-deep); font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 0.6rem; }
  .teacher-name { font-family: 'Noto Serif SC', serif; font-size: 1.8rem; font-weight: 700; color: var(--blue-deep); line-height: 1.1; }
  .teacher-name-en { font-size: 0.95rem; color: #6A7A9A; margin-bottom: 0.6rem; font-style: italic; }
  .teacher-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.8rem; color: #4A5A7A; }
  .teacher-meta span { background: var(--off-white); padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid rgba(27,79,138,0.1); }
  .teacher-bio { background: #F0F5FF; border-left: 3px solid var(--blue-bright); border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
  .bio-label { font-size: 0.7rem; font-weight: 700; color: var(--blue-bright); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.4rem; }
  .teacher-bio p:last-child { font-size: 0.9rem; color: var(--text-dark); line-height: 1.7; }
  .teacher-quote-block { background: #FFFBF0; border: 1px solid rgba(200,168,75,0.3); border-radius: 12px; padding: 1.2rem 1.5rem 1.2rem 2.5rem; margin-bottom: 1.5rem; position: relative; }
  .quote-mark { position: absolute; top: 0.2rem; left: 0.8rem; font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--gold); line-height: 1; opacity: 0.6; }
  .teacher-quote-text { font-size: 0.9rem; color: var(--text-dark); line-height: 1.7; font-style: italic; }
  .teacher-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
  .teacher-col-box { border-radius: 12px; padding: 1rem 1.2rem; }
  .teacher-col-box.green { background: #F0FFF4; border: 1px solid rgba(72,187,120,0.25); }
  .teacher-col-box.blue { background: #EFF6FF; border: 1px solid rgba(45,107,196,0.2); }
  .col-box-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #2D6BC4; margin-bottom: 0.6rem; }
  .col-box-chinese { font-family: 'Noto Serif SC', serif; font-size: 1rem; color: var(--text-dark); margin-bottom: 0.2rem; }
  .col-box-small { font-size: 0.8rem; color: #4A5A7A; line-height: 1.6; margin-top: 0.4rem; }
  .col-box-item { font-size: 0.82rem; color: #4A5A7A; margin-bottom: 0.3rem; }
  .teacher-funfacts { background: #FDF4FF; border: 1px solid rgba(159,122,234,0.2); border-radius: 12px; padding: 1.2rem; margin-bottom: 1.5rem; }
  .funfacts-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #805AD5; margin-bottom: 0.8rem; }
  .funfacts-grid { display: flex; flex-direction: column; gap: 0.7rem; }
  .funfact-item { display: flex; align-items: flex-start; gap: 0.8rem; }
  .funfact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
  .funfact-key { font-size: 0.72rem; font-weight: 600; color: #6A7A9A; }
  .funfact-val { font-size: 0.85rem; color: var(--text-dark); }
  .teacher-moments { background: #FFFBF0; border: 1px solid rgba(200,168,75,0.25); border-radius: 12px; padding: 1.2rem; margin-bottom: 1.5rem; }
  .moments-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #B7791F; margin-bottom: 0.8rem; }
  .moments-list { padding-left: 1.2rem; }
  .moments-list li { font-size: 0.85rem; color: var(--text-dark); margin-bottom: 0.4rem; line-height: 1.6; }
  .teacher-mem-photos { margin-bottom: 1.5rem; }
  .mem-photos-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #2D6BC4; margin-bottom: 0.8rem; }
  .mem-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
  .mem-photo-slot { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: #EFF6FF; border: 2px dashed var(--blue-light); display: flex; align-items: center; justify-content: center; }
  .mem-photo-slot img { width: 100%; height: 100%; object-fit: cover; }
  .mem-photo-slot .slot-placeholder { font-size: 0.7rem; color: #6A7A9A; text-align: center; padding: 0.5rem; }
  .teacher-wishes { background: #F0FFF4; border: 1px solid rgba(72,187,120,0.25); border-radius: 12px; padding: 1.2rem; margin-bottom: 1.5rem; }
  .wishes-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #276749; margin-bottom: 0.8rem; }
  .wishes-text { font-size: 0.85rem; color: var(--text-dark); line-height: 1.7; margin-bottom: 0.6rem; }
  .wishes-extra { font-family: 'Noto Serif SC', serif; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 0.3rem; }
  .wishes-extra-en { font-size: 0.82rem; color: #6A7A9A; font-style: italic; }
  .teacher-autograph { border-top: 1px dashed rgba(27,79,138,0.15); padding-top: 1.2rem; }
  .autograph-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #6A7A9A; margin-bottom: 0.8rem; }
  .autograph-box { background: var(--off-white); border: 1px dashed rgba(27,79,138,0.2); border-radius: 10px; padding: 1.5rem; text-align: center; min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
  .autograph-sig { font-family: 'Noto Serif SC', serif; font-size: 2rem; color: var(--blue-mid); font-weight: 700; }
  .autograph-doodle { font-size: 1.5rem; color: var(--blue-bright); }
  @media (max-width: 600px) { .teacher-two-col { grid-template-columns: 1fr; } .teacher-top { flex-direction: column; align-items: center; text-align: center; } .teacher-meta { justify-content: center; } }

  /* ======== TEACHER SLIDER ======== */
.teacher-slider-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.teacher-slides-container {
  flex: 1;
  overflow: hidden;
}

.teacher-slide {
  display: none;
}

.teacher-slide.active {
  display: block;
}

.teacher-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.teacher-pages img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(13,43,94,0.12);
  border: 1px solid rgba(27,79,138,0.1);
}

.teacher-slide-name {
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  color: var(--blue-deep);
  font-weight: 700;
  margin-top: 1rem;
}

.slider-arrow {
  background: var(--blue-mid);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(13,43,94,0.2);
}

.slider-arrow:hover {
  background: var(--blue-deep);
  transform: scale(1.08);
}

.teacher-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-light);
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: var(--blue-mid);
}

@media (max-width: 600px) {
  .teacher-pages { grid-template-columns: 1fr; }
  .slider-arrow { width: 36px; height: 36px; font-size: 1rem; }
}

/* ======== MEMORIES SECTION ======== */
#memories {
  background: var(--blue-deep);
  padding: 5rem 1.5rem;
}

.memories-header {
  text-align: center;
  margin-bottom: 3rem;
}

.memories-header .section-eyebrow { color: var(--gold); }
.memories-header .section-title { color: var(--white); }
.memories-header .section-sub { color: var(--blue-light); }

.memories-slideshow {
  max-width: 900px;
  margin: 0 auto;
}

.mem-slide-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1a3a;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.mem-slide {
  display: none;
  animation: memFadeIn 0.8s ease;
}

.mem-slide.active {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 6px;
}

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

.mem-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.mem-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.mem-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.mem-btn:hover {
  background: var(--blue-bright);
  transform: scale(1.1);
}

.mem-counter {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  min-width: 80px;
  text-align: center;
}

.mem-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  margin-top: 1rem;
  overflow: hidden;
}

.mem-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--blue-bright), var(--gold));
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

.mem-auto-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.mem-auto-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.mem-auto-btn:hover {
  background: rgba(255,255,255,0.1);
}

.mem-auto-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .mem-slide-wrap { aspect-ratio: 4/3; border-radius: 10px; }
  .mem-counter { font-size: 0.95rem; }
}

/* ======== STUDENTS SECTION ======== */
#students {
  background: #EFF6FF;
  padding: 5rem 1.5rem;
}

.students-header {
  text-align: center;
  margin-bottom: 3rem;
}

.student-slider-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}

.student-slides-container {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(13,43,94,0.12);
}

.student-slide {
  display: none;
  animation: studentFadeIn 0.6s ease;
}

.student-slide.active {
  display: block;
}

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

.student-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.student-arrow {
  background: var(--blue-mid);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(13,43,94,0.2);
}

.student-arrow:hover {
  background: var(--blue-deep);
  transform: scale(1.08);
}

.student-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.student-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-light);
  cursor: pointer;
  transition: background 0.2s;
}

.student-dot.active {
  background: var(--blue-mid);
}

.student-counter {
  text-align: center;
  margin-top: 0.8rem;
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: var(--blue-deep);
}

@media (max-width: 600px) {
  .student-arrow { width: 36px; height: 36px; font-size: 1rem; }
}
.mem-slide-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0a1a3a;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  min-height: 200px;
}

.mem-slide {
  display: none;
  animation: memFadeIn 0.8s ease;
}

.mem-slide.active {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 6px;
}

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

.mem-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
/* ======== VIDEOS SECTION ======== */
#videos {
  background: var(--blue-deep);
  padding: 5rem 1.5rem;
}

.videos-header {
  text-align: center;
  margin-bottom: 3rem;
}

.videos-header .section-eyebrow { color: var(--gold); }
.videos-header .section-title { color: var(--white); }
.videos-header .section-sub { color: var(--blue-light); }

.video-slider-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}
.video-slides-container {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.video-slide {
  display: none;
  animation: videoFadeIn 0.6s ease;
}
.video-slide.active {
  display: block;
}
@keyframes videoFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.video-slide video {
  width: 100%;
  display: block;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, #0D2B5E, #1B4F8A);
  max-height: 450px;
}
.video-arrow {
  background: var(--blue-bright);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.video-arrow:hover {
  background: var(--blue-deep);
  transform: scale(1.08);
}
.video-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.video-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s;
}
.video-dot.active {
  background: var(--gold);
}
.video-counter {
  text-align: center;
  margin-top: 0.8rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--blue-light);
}
.video-label {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--blue-light);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 0 0 16px 16px;
}
/* ======== SCROLL REVEAL ======== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.reveal-up { transform: translateY(40px); }
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ======== LIGHTBOX ======== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
#lightbox.active {
  display: flex;
  animation: lbFadeIn 0.25s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.8);
  animation: lbImgIn 0.2s ease;
}
@keyframes lbImgIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover, .lb-next:hover {
  background: var(--blue-bright);
  transform: translateY(-50%) scale(1.08);
}
.lb-counter {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}
.mem-img { cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.mem-img:hover { transform: scale(1.04); opacity: 0.9; }

/* ======== FOOTER ======== */
#footer {
  background: var(--blue-deep);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
}
.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  opacity: 0.85;
}
.footer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.footer-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.footer-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 1.2rem;
}
.footer-sub {
  font-size: 0.82rem;
  color: var(--blue-light);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* ======== CLASSMATES SECTION ======== */
#classmates {
  background: var(--blue-deep);
  padding: 5rem 1.5rem;
}
.classmates-header {
  text-align: center;
  margin-bottom: 3rem;
}
.classmates-header .section-eyebrow { color: var(--gold); }
.classmates-header .section-title { color: var(--white); }
.classmates-header .section-sub { color: var(--blue-light); 
}

.classmates-photo {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.classmates-photo img {
  width: 100%;
  border-radius: 16px;
  display: block;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* ======== EVENTS SECTION ======== */
#events {
  background: #EFF6FF;
  padding: 5rem 1.5rem;
}
.events-header {
  text-align: center;
  margin-bottom: 3rem;
}
.event-group {
  max-width: 1000px;
  margin: 0 auto 3.5rem;
}
.event-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--blue-deep);
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--gold);
  padding-left: 0.8rem;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.event-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s, opacity 0.25s;
}
.event-grid img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ======== MUSIC BUTTON ======== */
#music-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: rgba(13, 43, 94, 0.85);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
  display: none;
}
#music-btn:hover { transform: scale(1.1); background: rgba(27,79,138,0.95); }
#music-btn.visible { display: flex; align-items: center; justify-content: center; }

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .student-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ======== FUN MEMORIES ======== */
#fun-memories {
  background: var(--blue-deep);
  padding: 5rem 1.5rem;
}
.fun-header {
  text-align: center;
  margin-bottom: 3rem;
}
.fun-header .section-eyebrow { color: var(--gold); }
.fun-header .section-title { color: var(--white); }
.fun-header .section-sub { color: var(--blue-light); }
.fun-grid {
  max-width: 1000px;
  margin: 0 auto;
}