@font-face {
  font-family: "Centre Serif";
  src: url("assets/headings.ttf") format("truetype");
  font-display: swap;
  font-weight: 900;
}
:root {
  --ink: #193d36;
  --green: #155549;
  --deep: #104238;
  --muted: #52675e;
  --paper: #fffaf0;
  --line: #dcdac5;
  --orange: #ac592e;
  --serif: "Centre Serif", "Songti TC", "Noto Serif CJK TC", serif;
  --sans: "PingFang HK", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --max: 1180px;
  --gut: clamp(22px, 5.3vw, 92px);
  --edge: max(var(--gut), calc((100% - var(--max)) / 2));
  --head: 76px;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  scroll-padding-top: calc(var(--head) + 14px);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(calc(100% - var(--gut) * 2), var(--max)); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 3px solid #e99830; outline-offset: 4px; }
.skip { position: fixed; top: -80px; left: 15px; padding: 12px; color: white; background: var(--deep); z-index: 80; }
.skip:focus { top: 10px; }
.header { height: var(--head); position: sticky; top: 0; z-index: 10; background: #fffdf6; border-bottom: 1px solid #e5e3d2; }
.navigation { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 38px; height: 46px; object-fit: contain; }
.brand span { font: 900 27px/1 var(--serif); letter-spacing: .05em; }
.main-nav, .nav-actions, .hero-actions, .rail-controls { display: flex; align-items: center; }
.main-nav { gap: clamp(18px, 2.8vw, 44px); }
.main-nav a { display: grid; text-align: center; gap: 3px; padding: 6px 0; font-size: 14px; font-weight: 750; }
.main-nav a small { color: var(--muted); font: 650 10px/1.1 system-ui,sans-serif; letter-spacing: .045em; }
.main-nav a:hover, .main-nav a[aria-current] { color: #a8562f; }
.nav-actions { gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 46px; padding: 11px 22px; border: 1.5px solid transparent; border-radius: 40px; font-size: 15px; line-height: 1.4; font-weight: 750; width: fit-content; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--green); color: white; }
.primary:hover { background: #0d443a; }
.secondary { border-color: #79917d; background: #fffbed; color: var(--deep); }
.secondary:hover { background: #f2efd9; }
.nav-button { min-height: 42px; padding: 9px 18px; font-size: 14px; flex-direction: row-reverse; gap: 8px; }
.menu { display: none; border: 0; background: transparent; width: 42px; height: 44px; align-content: center; justify-items: center; gap: 4px; }
.menu span { width: 22px; height: 2px; border-radius: 2px; background: var(--deep); transition: transform .2s, opacity .2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.hero { display: grid; position: relative; isolation: isolate; min-height: 415px; height: clamp(415px, 37.7vw, 690px); place-items: center; overflow: hidden; background: #f8edc3; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-art img { object-fit: cover; object-position: center 59%; }
.hero-copy { margin: 0 4% 1.8% 0; text-align: center; }
.hero-location { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(12px,1.05vw,16px); letter-spacing: .14em; color: #456249; font-weight: 700; }
.hero-location .ic { width: 1.05em; }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(66px,7.25vw,122px); line-height: 1.22; letter-spacing: .015em; color: var(--deep); margin: 8px 0 7px; }
.hero h1 span { color: #a8522c; }
.hero-sub { font-size: clamp(17px,1.6vw,25px); letter-spacing: .035em; font-weight: 730; }
.hero-actions { justify-content: center; gap: 12px; margin-top: clamp(19px,2vw,32px); }
.shortcuts { position: relative; margin-top: -30px; display: grid; grid-template-columns: repeat(3,1fr); background: #fffdf6; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 7px 0 -4px #e0d9bf, 0 14px 30px -22px #403e2e60; padding: 16px 0; }
.shortcuts a { display: flex; align-items: center; gap: clamp(9px,1.2vw,18px); min-height: 62px; padding: 0 clamp(15px,2.25vw,36px); }
.shortcuts a + a { border-left: 1px dashed #d5d3bd; }
.short-icon { display: grid; place-items: center; width: clamp(38px,3.5vw,52px); aspect-ratio: 1; flex: none; border-radius: 15px; color: #356c55; background: #e7efd8; }
.shortcuts a:nth-child(2) .short-icon { background: #ffead1; color: #9c542d; }
.shortcuts a:nth-child(3) .short-icon { background: #dcedea; color: #32665d; }
.short-icon .ic { width: 53%; height: 53%; }
.shortcuts strong, .shortcuts small { display: block; }
.shortcuts strong { font-size: clamp(16px,1.45vw,22px); }
.shortcuts small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.short-arrow { margin-left: auto; display: flex; color: #779185; }
.short-arrow .ic { width: 17px; }
.shortcuts a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.shortcuts a:hover .short-arrow { transform: translateX(2px); }
.centre { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(35px,7vw,120px); align-items: center; padding-block: clamp(66px,6.6vw,114px); }
.section-label { display: inline-flex; gap: 8px; align-items: center; font: 750 12px/1.4 system-ui,sans-serif; letter-spacing: .15em; text-transform: uppercase; color: #5b7355; }
.section-label .ic { width: 14px; height: 14px; color: #b27437; }
h2 { font: 900 clamp(34px,3.6vw,60px)/1.32 var(--serif); letter-spacing: .005em; }
.section-label + h2 { margin-top: 9px; }
.no-wrap { display: inline-block; }
.centre-copy > p, .contact p, .detail p { color: var(--muted); font-size: 16px; line-height: 1.9; }
.centre-copy > p:first-of-type { margin: 19px 0 7px; }
.text-link, .return-link, .back-top, .next-course b { display: inline-flex; gap: 9px; align-items: center; font-weight: 730; }
.text-link { margin-top: 21px; padding-block: 4px; border-bottom: 1.5px solid var(--green); color: var(--green); }
.text-link .ic { width: 16px; }
.centre-photo { position: relative; width: 100%; max-width: 490px; padding: 8px; background: #fffef9; border: 1px solid #d9d6bf; border-radius: 14px; box-shadow: 4px 7px 0 #e3dfc9; transform: rotate(1.4deg); }
.centre-photo::before { content: ""; position: absolute; width: 82px; height: 24px; background: #e5bd6bbf; top: -8px; left: calc(50% - 41px); z-index: 1; transform: rotate(-4deg); clip-path: polygon(0 0,100% 5%,97% 20%,100% 36%,98% 55%,100% 72%,98% 100%,0 96%,2% 77%,0 58%,3% 42%,0 28%,3% 12%); }
.centre-photo img { border-radius: 7px; width: 100%; height: clamp(255px,23vw,360px); object-fit: cover; object-position: 50% 36%; }
.centre-photo figcaption { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 0 2px; font-size: 13px; font-weight: 650; }
.courses { --rail-gap: clamp(14px,2vw,32px); background-color: #12463c; background-image: linear-gradient(#e0efcc09 1px,transparent 1px),linear-gradient(90deg,#e0efcc09 1px,transparent 1px); background-size: 38px 38px; color: #fffae8; padding: clamp(48px,5.2vw,86px) 0 clamp(37px,4.3vw,67px); }
.course-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.courses .section-label { color: #dfedcb; }
.courses .section-label .ic { color: #f1c474; }
.rail-controls { gap: 8px; }
.rail-controls button { display: grid; place-items: center; border: 1px solid #bdceaf; padding: 0; border-radius: 50%; width: 44px; height: 44px; background: #f6efda; color: var(--deep); }
.rail-controls button:disabled { color: #a3bdaf; background: transparent; opacity: .7; }
.course-rail { display: flex; align-items: stretch; gap: var(--rail-gap); padding: 6px var(--edge) 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; }
.course-rail::-webkit-scrollbar { display: none; }
.course-card { scroll-snap-align: start; flex: 0 0 min(83vw, 955px); display: grid; grid-template-columns: 1fr .95fr; overflow: hidden; color: var(--ink); border-radius: 21px; border: 2px solid #fff5d9; background: #f7f6e7; box-shadow: 4px 5px 0 #9db58f; }
.course-card.dse { background: #fff1db; box-shadow: 4px 5px 0 #d3a469; }
.card-copy { padding: clamp(28px,3.8vw,58px); align-self: center; }
.stage { display: inline-flex; gap: 5px; align-items: center; color: #526d4d; font-size: 14px; font-weight: 700; }
.course-card h3 { font: 900 clamp(30px,3.4vw,54px)/1.3 var(--serif); margin: 10px 0 0; }
.card-en { color: #587265; font: 650 13px/1.45 system-ui,sans-serif; letter-spacing: .035em; }
.card-copy > p:not(.card-en) { font-size: 16px; line-height: 1.8; color: #4b6053; margin: 15px 0 20px; }
.course-card img { align-self: stretch; width: 100%; height: 100%; object-fit: cover; object-position: center; min-height: 0; }
.rail-foot { margin-top: 13px; display: flex; align-items: center; gap: 16px; color: #dbe8ce; font-size: 12px; }
.rail-foot > span { height: 2px; flex: 1; background: #799e875e; }
.rail-foot i { display: block; height: 100%; width: 50%; transform: translateX(var(--progress,0%)); background: #e3bd72; }
.rail-foot output { min-width: 66px; text-align: end; }
.contact { padding-block: clamp(45px,6vw,90px); background: #f0e9cd; }
.contact-inner { display: flex; align-items: center; gap: 27px; }
.contact-icon { display: grid; place-items: center; flex: none; width: 65px; height: 65px; border-radius: 48% 52% 58% 42%; background: #d7e3be; transform: rotate(-7deg); }
.contact-icon .ic { width: 35px; height: 35px; }
.contact h2 { font-size: clamp(28px,2.9vw,43px); }
.contact p { margin-top: 8px; }
.contact-inner > .button { margin-left: auto; flex: none; }
.foot { padding-block: 25px; display: flex; align-items: center; gap: 23px; }
.foot .brand img { width: 28px; height: 34px; }
.foot .brand span { font-size: 21px; }
.foot small { color: var(--muted); }
.back-top { margin-left: auto; font-size: 13px; }
.detail { padding-bottom: 40px; }
.return-link { min-height: 57px; color: var(--muted); font-size: 14px; }
.detail-banner { display: grid; grid-template-columns: 1fr .92fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #e9efda; }
.detail.dse .detail-banner { background: #f9e8ce; }
.detail-banner > div { align-self: center; padding: clamp(24px,4vw,65px); }
.detail-banner img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { margin: 10px 0; font: 900 clamp(40px,5vw,76px)/1.25 var(--serif); }
.detail h2 { font-size: clamp(27px,3vw,44px); }
.detail-banner .button, .enquiry .primary { margin-top: 18px; }
.detail-focus { padding-block: 48px 38px; }
.focus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 22px; }
.focus-grid article { border-top: 2px solid #c4d1ab; padding-top: 15px; }
.focus-grid h3 { margin-bottom: 6px; font-size: 18px; }
.enquiry { padding: clamp(24px,3.6vw,50px); border-radius: 22px; background: #e7eddd; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,5vw,70px); align-items: center; }
.enquiry h2 + p { margin-top: 10px; }
.enquiry-note label { display: block; font-weight: 750; font-size: 14px; }
.enquiry-note textarea { margin: 7px 0 10px; display: block; width: 100%; min-height: 100px; font-size: 16px; line-height: 1.65; resize: vertical; border: 1px solid #aab9a8; border-radius: 10px; background: #fffdf3; padding: 12px; }
.copy-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.next-course { display: flex; align-items: center; justify-content: space-between; padding: 23px 0 14px; color: var(--muted); font-size: 14px; }
.next-course b { font-size: 17px; color: var(--green); }
@media (max-width: 840px) {
  :root { --gut: 24px; --head: 66px; }
  .navigation { gap: 12px; }
  .main-nav { gap: 16px; }
  .brand span { font-size: 23px; }
  .shortcuts a { padding: 0 15px; gap: 8px; }
  .short-arrow { display: none; }
  .contact-inner { flex-wrap: wrap; }
  .contact-icon { display: none; }
  .centre { gap: 30px; }
  .card-copy { padding: 24px; }
}
@media (max-width: 670px) {
  :root { --head: 62px; --gut: 19px; }
  .brand { gap: 6px; }
  .brand img { width: 29px; height: 37px; }
  .brand span { font-size: 22px; }
  .nav-button { font-size: 12px; min-height: 36px; gap: 6px; padding: 7px 12px; }
  .menu { display: grid; }
  .main-nav { display: none; position: absolute; inset: calc(100% - 1px) 0 auto; background: #fffdf6; padding: 5px var(--gut) 15px; border-block: 1px solid var(--line); box-shadow: 0 13px 15px -15px #193d3680; }
  .main-nav.open { display: grid; gap: 0; }
  .main-nav a { display: flex; align-items: baseline; gap: 12px; padding: 12px 3px; text-align: start; }
  .main-nav small { margin-left: auto; }
  .hero { height: clamp(425px,120vw,650px); min-height: 0; align-items: start; }
  .hero-art img { object-position: center 72%; }
  .hero-copy { margin: clamp(57px,16vw,93px) 0 0; }
  .hero h1 { font-size: clamp(54px,14vw,85px); margin: 3px 0 4px; }
  .hero-sub { font-size: clamp(15px,4.1vw,20px); }
  .hero-location { font-size: 11px; }
  .hero-actions { margin-top: 15px; gap: 9px; }
  .hero-actions .button { font-size: 13px; min-height: 41px; padding: 9px 16px; }
  .shortcuts { margin-top: -21px; padding: 13px 2px; border-radius: 14px; }
  .shortcuts a { flex-direction: column; justify-content: center; gap: 5px; padding: 1px 4px; min-height: 58px; text-align: center; }
  .shortcuts small { display: none; }
  .shortcuts strong { font-size: 13px; }
  .short-icon { width: 33px; border-radius: 10px; }
  .short-icon .ic { width: 19px; height: 19px; }
  .centre { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 52px; }
  h2 { font-size: clamp(29px,7.6vw,41px); }
  .section-label { font-size: 10px; }
  .centre-copy > p { font-size: 15px; }
  .centre-copy > p:first-of-type { margin-top: 12px; }
  .centre-photo { width: calc(100% - 10px); justify-self: center; }
  .centre-photo img { height: clamp(248px,69vw,345px); object-position: 50% 33%; }
  .courses { padding-block: 42px 32px; }
  .course-intro { align-items: end; margin-bottom: 16px; }
  .course-intro h2 { max-width: 9em; font-size: clamp(24px,6.4vw,36px); }
  .rail-controls { gap: 5px; }
  .rail-controls button { width: 36px; height: 36px; }
  .course-card { flex-basis: 84vw; grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-radius: 15px; }
  .course-card img { grid-row: 1; height: clamp(150px,45vw,238px); object-position: center 53%; }
  .card-copy { padding: 19px 21px 23px; }
  .card-copy > p:not(.card-en) { font-size: 15px; margin: 9px 0 14px; }
  .course-card h3 { margin-top: 5px; }
  .card-copy .button { min-height: 40px; padding: 8px 15px; font-size: 14px; }
  .contact-inner { display: block; }
  .contact-inner > .button { margin: 18px 0 0; }
  .contact p { font-size: 15px; }
  .foot { gap: 10px; flex-wrap: wrap; }
  .foot small { font-size: 11px; }
  .foot .brand img { width: 22px; height: 27px; }
  .foot .brand span { font-size: 17px; }
  .return-link { min-height: 51px; }
  .detail-banner, .focus-grid, .enquiry { grid-template-columns: 1fr; }
  .detail-banner img { grid-row: 1; height: clamp(166px,49vw,265px); }
  .detail-focus { padding-block: 32px; }
  .focus-grid { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.courses { padding: 0; }
.course-sticky { padding-block: clamp(48px,5.2vw,86px) clamp(37px,4.3vw,67px); }
.courses.pinned .course-sticky { position: sticky; top: var(--head); }
@media (max-width: 670px) { .course-sticky { padding-block: 42px 32px; } }
.courses.pinned .course-rail { scroll-snap-type: none; }
.centre-photo img { object-position: 50% 0; }
.centre-photo figcaption { justify-content: flex-start; padding-inline: 6px; }
.photo-expand { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 671px) and (max-width: 1000px) {
  .hero { min-height: 0; height: max(300px,40vw); }
  .hero h1 { font-size: clamp(54px,7.5vw,76px); }
}
