/* ===== Tokens ===== */
:root {
  --ivory: #f7f3ec;
  --ivory-2: #efe8dc;
  --paper: #fffdf9;
  --ink: #1f1b16;
  --ink-soft: #4a4238;
  --muted: #867a6a;
  --gold: #b8893f;
  --gold-deep: #966a29;
  --line: #e2d8c7;
  --serif: "Noto Serif TC", Georgia, serif;
  --sans: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --maxw: 1180px;
  --radius: 18px;
  --shadow: 0 26px 60px -30px rgba(60, 42, 16, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: #fff; }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s, box-shadow .35s, background .35s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(60, 42, 16, .5);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  color: var(--paper);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 8px 20px -10px rgba(150, 106, 41, .8);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.1; letter-spacing: .02em; display: flex; flex-direction: column; }
.brand__sub { font-family: var(--sans); font-weight: 400; font-size: .66rem; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: .92rem; color: var(--ink-soft); position: relative; transition: color .25s; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.nav__links a:not(.nav__cta):hover { color: var(--ink); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  padding: 10px 22px; border-radius: 999px; color: var(--paper) !important;
  background: var(--ink); font-weight: 500;
  transition: background .25s, transform .25s;
}
.nav__cta:hover { background: var(--gold-deep); transform: translateY(-1px); }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 28px 110px;
  background:
    radial-gradient(1100px 620px at 78% 0%, rgba(184, 137, 63, .16), transparent 60%),
    radial-gradient(760px 520px at 8% 92%, rgba(184, 137, 63, .10), transparent 62%),
    var(--ivory);
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(60,42,16,.045) 1px, transparent 1px);
  background-size: 4px 4px;
}
.hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .74rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 20px;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1.5px; background: var(--gold); vertical-align: middle; margin-right: 12px; }
.hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.16; letter-spacing: .01em;
  margin-bottom: 26px;
}
.hero__title em { font-style: normal; color: var(--gold-deep); position: relative; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 34%;
  background: rgba(184, 137, 63, .22); z-index: -1; border-radius: 3px;
}
.hero__lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 32em; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-size: .96rem; font-weight: 500;
  transition: transform .25s, box-shadow .3s, background .25s, color .25s;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--ivory); box-shadow: 0 16px 34px -18px rgba(31,27,22,.8); }
.btn--solid:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 22px 40px -20px rgba(150,106,41,.85); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.btn--wide { width: 100%; }

.hero__facts { list-style: none; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-deep); line-height: 1.1; }
.hero__facts span { font-size: .82rem; color: var(--muted); letter-spacing: .08em; }

.hero__media { position: relative; }
.hero__photo {
  border-radius: 200px 200px 24px 24px; overflow: hidden;
  box-shadow: var(--shadow); border: 8px solid var(--paper);
  aspect-ratio: 4 / 5;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__badge {
  position: absolute; left: -22px; bottom: 34px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 44px -26px rgba(60,42,16,.6);
}
.hero__badge svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.hero__badge span { font-family: var(--serif); font-size: .9rem; line-height: 1.4; font-weight: 600; }

/* ===== Section base ===== */
.section { padding: 104px 28px; max-width: var(--maxw); margin: 0 auto; }
.section__head { max-width: 46rem; margin-bottom: 60px; }
.section__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.24; letter-spacing: .01em; }
.section__lead { margin-top: 18px; color: var(--ink-soft); font-size: 1.04rem; }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.about__text p { margin-bottom: 18px; color: var(--ink-soft); }
.about__text strong { color: var(--gold-deep); font-weight: 600; }
.about__points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.about__points li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.about__points svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 5px; }
.about__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 22%; }
.about__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(31,27,22,.72); color: var(--ivory); backdrop-filter: blur(6px);
  font-size: .82rem; padding: 10px 16px; border-radius: 10px; letter-spacing: .04em;
}

/* ===== Resume ===== */
.resume { background: var(--paper); border-radius: 32px; box-shadow: 0 40px 90px -60px rgba(60,42,16,.5); }
.resume__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.resume__card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.resume__card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 30px 50px -34px rgba(150,106,41,.7); }
.resume__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(184,137,63,.14); color: var(--gold-deep); margin-bottom: 20px;
}
.resume__icon svg { width: 24px; height: 24px; }
.resume__card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 16px; }
.resume__card ul { list-style: none; display: grid; gap: 10px; }
.resume__card li { position: relative; padding-left: 20px; font-size: .95rem; color: var(--ink-soft); }
.resume__card li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.resume__card li strong { color: var(--ink); font-weight: 600; }

/* ===== Stage ===== */
.stage__showcase { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: stretch; }
.stage__main {
  position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow);
  min-height: 440px;
}
.stage__main img { width: 100%; height: 100%; object-fit: cover; }
.stage__main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,27,22,.82) 0%, rgba(31,27,22,.15) 45%, transparent 70%);
}
.stage__main figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 32px; color: var(--ivory); font-size: 1.05rem; letter-spacing: .02em;
}
.stage__tag {
  display: inline-block; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  background: var(--gold); color: #241f19; padding: 5px 12px; border-radius: 999px;
  margin-bottom: 12px; font-weight: 600;
}
.stage__side { display: flex; flex-direction: column; gap: 24px; }
.stage__thumb { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); height: 220px; flex: none; }
.stage__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.stage__text {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 32px 30px;
  flex: 1;
}
.stage__text h3 { font-family: var(--serif); font-size: 1.24rem; margin-bottom: 14px; }
.stage__text p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 12px; }
.stage__text p:last-child { margin-bottom: 0; }

/* ===== Courses ===== */
.courses__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.course {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.course:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 34px 56px -42px rgba(150,106,41,.75); }
.course__num {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: rgba(184,137,63,.28);
  line-height: 1; display: block; margin-bottom: 14px;
}
.course h3 { font-family: var(--serif); font-size: 1.08rem; margin-bottom: 12px; line-height: 1.4; }
.course p { font-size: .91rem; color: var(--ink-soft); }

.courses__types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ctype {
  display: flex; gap: 20px; align-items: flex-start;
  background: linear-gradient(140deg, rgba(184,137,63,.1), rgba(184,137,63,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px;
}
.ctype__icon {
  width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: var(--paper); color: var(--gold-deep); box-shadow: 0 8px 20px -12px rgba(150,106,41,.6);
}
.ctype__icon svg { width: 24px; height: 24px; }
.ctype h3 { font-family: var(--serif); font-size: 1.16rem; margin-bottom: 8px; }
.ctype p { font-size: .93rem; color: var(--ink-soft); }

/* ===== Benefits ===== */
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit {
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.benefit:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 34px 56px -42px rgba(150,106,41,.75); }
.benefit__icon {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(184,137,63,.2), rgba(184,137,63,.06));
  color: var(--gold-deep); margin-bottom: 20px;
}
.benefit__icon svg { width: 25px; height: 25px; }
.benefit h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 12px; }
.benefit p { font-size: .93rem; color: var(--ink-soft); }

.benefits__banner { position: relative; margin-top: 40px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.benefits__banner img { width: 100%; height: 460px; object-fit: cover; object-position: center 20%; }
.benefits__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,27,22,.78), rgba(31,27,22,.12)); }
.benefits__quote {
  position: absolute; bottom: 0; left: 0; z-index: 2; color: var(--ivory);
  font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1.5;
  max-width: 24em; padding: 46px;
}

/* ===== Gallery ===== */
.gallery__grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
}
.gallery__item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { object-position: center 40%; }

/* ===== Contact ===== */
.contact { padding-bottom: 110px; }
.contact__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  background: linear-gradient(150deg, #241f19, #33291c);
  color: var(--ivory); border-radius: 34px; padding: 60px; overflow: hidden;
  box-shadow: 0 50px 100px -60px rgba(31,27,22,.9);
}
.contact__copy .eyebrow { color: var(--gold); }
.contact__copy .eyebrow::before { background: var(--gold); }
.contact__copy .section__title { color: var(--ivory); }
.contact__copy .section__lead { color: rgba(247,243,236,.78); }
.contact__list { list-style: none; margin: 34px 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__icon {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: rgba(184,137,63,.18); color: var(--gold);
}
.contact__icon svg { width: 23px; height: 23px; }
.contact__list strong { display: block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.contact__list div span, .contact__link { font-size: 1.02rem; color: var(--ivory); }
.contact__link { font-family: var(--serif); font-size: 1.5rem !important; font-weight: 700; letter-spacing: .02em; transition: color .25s; }
.contact__link:hover { color: var(--gold); }
.contact .btn--solid { background: var(--gold); color: #241f19; }
.contact .btn--solid:hover { background: var(--ivory); }
.contact__photo { border-radius: 24px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0,0,0,.8); }
.contact__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--ivory); padding: 62px 28px 46px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-bottom: 16px; }
.footer__tag { color: rgba(247,243,236,.66); font-size: .92rem; letter-spacing: .04em; }
.footer__contact { margin-top: 14px; font-size: 1rem; }
.footer__contact a { color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.footer__copy { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(247,243,236,.12); font-size: .82rem; color: rgba(247,243,236,.5); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gallery__item img { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .nav__links {
    position: fixed; top: 74px; right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
    padding: 18px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { text-align: center; margin-top: 8px; }
  .nav__burger { display: block; }

  .hero { padding: 130px 22px 80px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 380px; margin: 0 auto; width: 100%; }
  .hero__badge { left: 0; bottom: -18px; }

  .section { padding: 76px 22px; }
  .about__grid, .contact__inner { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .resume__grid { grid-template-columns: 1fr; }
  .stage__showcase { grid-template-columns: 1fr; }
  .stage__side { flex-direction: row; }
  .stage__thumb { height: auto; width: 40%; }
  .courses__grid { grid-template-columns: repeat(2, 1fr); }
  .courses__types { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: span 2; }
  .contact__inner { padding: 40px 32px; }
  .benefits__banner img { height: 340px; }
  .benefits__quote { padding: 28px; }
}
@media (max-width: 560px) {
  .hero__title { font-size: 2.15rem; }
  .hero__facts { gap: 26px; }
  .courses__grid, .benefits__grid { grid-template-columns: 1fr; }
  .stage__side { flex-direction: column; }
  .stage__thumb { width: 100%; height: 200px; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery__item--tall, .gallery__item--wide { grid-row: span 1; grid-column: span 1; }
  .section__head { margin-bottom: 42px; }
  .contact__link { font-size: 1.3rem !important; }
}
