@charset "UTF-8";

@font-face {
  font-family: "Noto Sans TC Local";
  src: url("../public/fonts/NotoSansTC-Subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green-950: #034e2b;
  --green-900: #056337;
  --green-800: #087a42;
  --green-700: #0c914e;
  --green-100: #e7f5e9;
  --green-50: #f3faf3;
  --orange: #ef5b22;
  --sun: #ffc928;
  --cream: #fffaf0;
  --paper: #fdf6e8;
  --paper-soft: #fffdf6;
  --icon-yellow: #ffc928;
  --icon-green: #8fce4e;
  --icon-blue: #7fd0ef;
  --icon-cream: #fff8dd;
  --icon-ink: #1e4633;
  --ink: #173c2d;
  --muted: #5f7169;
  --white: #ffffff;
  --shadow: 0 .5rem 1.5rem rgba(96, 66, 12, 0.12);
  --radius-lg: 1.25rem;
  --radius-md: 1.25rem;
  --container: 73.75rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 1rem; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-soft);
  font-family: "Noto Sans TC Local", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* dropdown nav no longer locks page scroll */
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 2.5rem), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 2.25rem 0; }
.section[id], .benefits[id], .contact-cta[id] { scroll-margin-top: 5.5rem; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.footer-qr-label svg, .button--line svg, .avatar svg {
  width: 1em;
  height: 1em;
  overflow: visible;
}
.section > .container { position: relative; z-index: 1; }
.sr-only { position: absolute; width: .0625rem; height: .0625rem; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .625rem 1rem; background: var(--green-900); color: #fff; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255, 252, 242, 0.94); border-bottom: .0625rem solid rgba(3, 78, 43, 0.08); transition: box-shadow .25s ease, background .25s ease; }
.qa-screenshot .site-header { position: relative; }
html.qa-screenshot-root { scrollbar-width: none; }
html.qa-screenshot-root::-webkit-scrollbar { display: none; }
.site-header.is-scrolled { box-shadow: 0 .5rem 1.875rem rgba(2, 54, 29, .08); backdrop-filter: blur(.875rem); }
.nav-wrap { position: relative; min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.brand img { width: 3.625rem; height: 3.625rem; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { color: var(--green-900); font-size: 1.16rem; letter-spacing: .04em; }
.brand small { margin-top: .3125rem; font-size: .74rem; color: #253d33; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: clamp(.9375rem, 2vw, 1.75rem); font-size: .92rem; font-weight: 700; }
.site-nav > a:not(.nav-cta) { position: relative; padding: 1.9375rem 0; white-space: nowrap; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; height: .1875rem; left: 50%; right: 50%; bottom: 1.25rem; border-radius: 6.1875rem; background: var(--green-700); transition: left .2s, right .2s; }
.site-nav > a:not(.nav-cta):hover::after, .site-nav > a:not(.nav-cta):focus-visible::after { left: 0; right: 0; }
.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; padding: .5625rem; }
.menu-toggle span { display: block; height: .1875rem; margin: .3125rem 0; background: var(--green-900); border-radius: .1875rem; transition: transform .2s, opacity .2s; }

.button { appearance: none; border: 0; border-radius: .875rem; min-height: 3rem; padding: .75rem 1.5rem; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; cursor: pointer; font-weight: 900; letter-spacing: .02em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-.125rem); }
.button:disabled { cursor: not-allowed; opacity: .68; transform: none; box-shadow: none; }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: .1875rem solid rgba(255, 201, 40, .72); outline-offset: .1875rem; }
.button--green { color: #fff; background: var(--green-800); box-shadow: 0 .5rem 1.25rem rgba(8, 122, 66, .2); }
.button--green:hover { background: var(--green-900); }
.button--sun { color: #27331c; background: var(--sun); box-shadow: 0 .5rem 1.25rem rgba(210, 156, 0, .2); }
.button--sun:hover { background: #ffd64f; }
.button--line { color: #075d32; background: #fff; border: .125rem solid #48b857; box-shadow: 0 .375rem 1rem rgba(0, 52, 27, .14); }
.button--line:hover { background: #effbf0; }
.button--line svg { width: 1.5rem; height: 1.5rem; stroke-width: 3; }
.button--large { min-width: 9.875rem; min-height: 3.375rem; }
.nav-cta { min-height: 2.75rem; padding: .625rem 1.1875rem; border-radius: .8125rem; }
.button-arrow { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; font-size: .9rem; line-height: 1; }
.button--green .button-arrow { background: rgba(255, 255, 255, .24); }
.button--sun .button-arrow { background: rgba(63, 42, 0, .16); }

.hero { position: relative; overflow: hidden; min-height: auto; display: flex; align-items: stretch; padding: 1rem 0 5.75rem; background: radial-gradient(28rem 24rem at -5% 8%, #fce9ad 0 42%, transparent 66%), radial-gradient(24rem 20rem at 103% 14%, #dff1d4 0 44%, transparent 68%), linear-gradient(112deg, #fffaf0 0%, #fdf5e2 53%, #f2f8eb 100%); }
.hero::before { content: ""; position: absolute; z-index: 0; inset: 0; opacity: .28; pointer-events: none; background-image: radial-gradient(circle at 9% 25%, #f3bd17 0 .12rem, transparent .14rem), radial-gradient(circle at 92% 34%, #78b760 0 .1rem, transparent .12rem); background-size: 2.25rem 2.25rem, 2.75rem 2.75rem; -webkit-mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 72%, #000); mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 72%, #000); }
.hero-stage { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(30rem, 2fr) minmax(11rem, 1fr); gap: clamp(.625rem, 1.3vw, 1.125rem); align-items: stretch; }
.hero-center { min-width: 0; display: grid; grid-template-rows: auto auto; align-content: start; gap: .75rem; }
.hero-copy { position: relative; z-index: 3; padding: .125rem clamp(.5rem, 1.8vw, 1.5rem) .25rem; text-align: center; }
.hero-eyebrow { width: fit-content; margin: 0 auto .25rem; padding: .25rem .875rem; display: flex; align-items: center; gap: .625rem; color: var(--green-900); background: rgba(255, 253, 246, .82); border: .0625rem solid rgba(8, 122, 66, .18); border-radius: 99rem; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.hero-eyebrow i { color: var(--orange); font-size: .85rem; font-style: normal; }
.hero-copy h1 { margin: 0; font-family: "Noto Sans TC Local", sans-serif; font-weight: 900; font-synthesis: none; letter-spacing: .025em; text-wrap: balance; }
.hero-title-primary, .hero-title-result { display: block; }
.hero-title-primary, .hero-title-result { font-size: clamp(1.5rem, 2.3vw, 2.2rem); }
.hero-title-primary { color: var(--green-900); line-height: 1.28; }
.hero-title-result { margin-top: -.05em; color: var(--orange); line-height: 1.22; }
.hero-copy h1 em { position: relative; display: inline-block; margin-right: .08em; color: inherit; font-style: normal; }
.hero-copy h1 em::after { content: ""; position: absolute; z-index: -1; left: -.14em; right: -.14em; bottom: .04em; height: .42em; border-radius: 50%; background: var(--sun); opacity: .65; transform: rotate(-2deg); }
.hero-bonus { width: fit-content; margin: .45rem auto .625rem; display: inline-flex; align-items: center; color: #23412f; font-size: .93rem; font-weight: 800; }
.hero-bonus strong { color: #39420d; font-size: 1.05rem; font-weight: 900; }
.hero-bonus strong::before { content: "✦"; margin-right: .35rem; color: #e9a900; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hero-actions .button { min-height: 2.75rem; padding: .625rem 1.25rem; }
.qa-font-noto .program-ribbon h3, .qa-font-noto .cta-highlight, .qa-font-noto .display-font, .qa-font-noto .section-heading h2, .qa-font-noto .contact-inner h2 { font-family: "Noto Sans TC Local", sans-serif; font-weight: 900; }
.hero-campus { position: relative; min-width: 0; overflow: hidden; color: #fff; background: var(--green-900); border: .25rem solid #fffaf0; box-shadow: 0 .75rem 1.75rem rgba(73, 53, 13, .2); isolation: isolate; transition: transform .24s ease, box-shadow .24s ease; }
.hero-campus--dounan { margin-top: 1.5rem; margin-bottom: .25rem; border-radius: 1.75rem .65rem 1.2rem .65rem; transform: rotate(-.45deg); }
.hero-campus--douliu { margin-top: .4rem; margin-bottom: 1.35rem; border-radius: .65rem 1.75rem .65rem 1.2rem; transform: rotate(.45deg); }
.hero-campus:hover, .hero-campus:focus-visible { transform: translateY(-.2rem) rotate(0); box-shadow: 0 1rem 2rem rgba(73, 53, 13, .25); }
.hero-campus::after, .hero-classroom::after { content: ""; position: absolute; z-index: 2; inset: .32rem; border: .0625rem solid rgba(255, 255, 255, .7); border-radius: inherit; pointer-events: none; }
.hero-campus picture, .hero-campus img { width: 100%; height: 100%; }
.hero-campus picture { display: block; }
.hero-campus img { object-fit: cover; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.hero-campus:hover img, .hero-campus:focus-visible img { transform: scale(1.025); }
.hero-campus--douliu img { object-position: 50% 50%; }
.hero-campus--dounan img { object-position: 50% 50%; transform: translateX(-3.5%) translateY(-8%) scale(1.05) rotate(0.75deg); }
.hero-campus--dounan:hover img, .hero-campus--dounan:focus-visible img { transform: translateX(-3.5%) translateY(-8%) scale(1.075) rotate(0.75deg); }
.hero-campus-label { position: absolute; z-index: 3; left: .65rem; right: .65rem; bottom: .65rem; display: grid; gap: .05rem; padding: .5rem .55rem .55rem; color: #fffdf5; background: rgba(3, 78, 43, .93); border-radius: .35rem .8rem .35rem .8rem; text-align: center; box-shadow: 0 .35rem .8rem rgba(0, 0, 0, .17); }
.hero-campus--dounan .hero-campus-label { bottom: .25rem; }
.hero-campus-label strong { font-size: .92rem; letter-spacing: .08em; }
.hero-campus-label small { font-size: .57rem; font-weight: 700; letter-spacing: .03em; opacity: .9; }
.hero-classroom { position: relative; min-width: 0; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; border: .25rem solid #fffaf0; border-radius: .75rem 1.75rem .75rem 1.75rem; background: #e9eee4; box-shadow: 0 .7rem 1.6rem rgba(73, 53, 13, .18); isolation: isolate; }
.hero-picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 38% 48%; }
.hero-classroom-label { position: absolute; z-index: 3; left: .85rem; bottom: .75rem; padding: .35rem .7rem; color: #fffdf5; background: rgba(3, 78, 43, .9); border-radius: 99rem; font-size: .65rem; font-weight: 800; letter-spacing: .07em; }
.hero-mascot { position: absolute; z-index: 1; width: 7rem; height: auto; right: clamp(13rem, 24vw, 22rem); top: -7.25rem; filter: drop-shadow(0 .4375rem .625rem rgba(0, 0, 0, .13)); }
.hero-wave { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 8rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0 12 C104 28 166 52 252 68 C364 90 470 78 590 76 C752 72 842 100 1002 120 C1162 140 1304 136 1440 116 L1440 160 L0 160 Z' fill='%2358ad67'/%3E%3Cpath d='M0 48 C128 60 232 78 360 84 C498 92 610 76 730 82 C880 90 968 116 1112 132 C1246 146 1350 140 1440 130 L1440 160 L0 160 Z' fill='%23087a42'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }

/* 桌機分校照保留較接近原始直幅的視野，避免被整個 hero 高度拉成狹長裁切。 */
@media (min-width: 1121px) {
  .hero-stage { grid-template-columns: minmax(11rem, 1fr) minmax(30rem, 1.29fr) minmax(11rem, 1fr); }
  .hero-campus { align-self: center; aspect-ratio: 2 / 3; margin-block: 0; }
  .hero-campus--douliu img,
  .hero-campus--dounan img { object-position: 50% 50%; }
}

.benefits { position: relative; z-index: 5; isolation: isolate; margin-top: 0; padding: 1.25rem 0 .875rem; background: #fffdf8; }
.benefits::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: -2.5rem; height: 2.5625rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath d='M0 72 C0 31 29 11 78 8 C330 2 529 10 742 7 C978 3 1192 2 1364 11 C1412 14 1440 36 1440 72 L1440 72 L0 72 Z' fill='%23fffdf8'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }
.benefits .container { position: relative; z-index: 2; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.125rem; }
.benefit-card { display: flex; align-items: center; gap: .9375rem; min-height: 7.625rem; padding: 1.125rem 1.25rem; background: #fff; border: .0625rem solid #efe9da; border-radius: 1rem; box-shadow: 0 .375rem 1.125rem rgba(96, 66, 12, .10); }
.benefit-card h3 { margin: 0 0 .4375rem; color: var(--green-900); font-size: 1.18rem; }
.benefit-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.icon-bubble { flex: 0 0 auto; width: 5.25rem; height: 4.75rem; display: grid; place-items: center; transform: rotate(-2deg); }
.icon-bubble img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .1875rem .125rem rgba(70, 57, 14, .08)); }

.section-heading { position: relative; max-width: 42.5rem; margin: 0 auto 1.25rem; text-align: center; }
/* 標題列自己扛字級，h2 與裝飾一律用 em 相對它 —— 比例在任何寬度下都鎖死，不必逐斷點手調 */
.section-title-row { position: relative; width: fit-content; margin-inline: auto; font-size: clamp(2.05rem, 3.4vw, 2.85rem); }
.section-title-row--decorated { display: flex; align-items: center; justify-content: center; gap: .24em; }
.section-heading h2 { margin: 0; color: var(--green-900); font-family: "JF Open Huninn Display", "Noto Sans TC Local", sans-serif; font-size: 1em; font-weight: 400; font-synthesis: none; line-height: 1.25; letter-spacing: .045em; }
#tuition-title, #day-title, #teachers-title, #gallery-title, #testimonial-title, #branches-title { font-family: "Noto Sans TC Local", sans-serif; font-weight: 900; }
.section-lead { max-width: 40rem; margin: .9375rem auto 0; color: #43544d; font-size: .96rem; line-height: 1.75; text-wrap: pretty; }
.tuition-promo { display: inline-block; margin: 0 auto 1rem; padding: .55rem 1.5rem; background: var(--sun); color: var(--green-950); font-family: "Noto Sans TC Local", sans-serif; font-size: 1.75rem; font-weight: 900; letter-spacing: .03em; line-height: 1.25; border-radius: 1rem; box-shadow: 0 .5rem 0 rgba(210, 150, 20, .32); transform: rotate(-1.8deg); }
/*
  標題側翼：標題區寬 42.5rem、容器寬 73.75rem，兩側各留下約 15.6rem 的空白帶。
  裝飾放在這裡填滿留白。z-index: -1 讓它永遠畫在文字底下（.section > .container
  是 z-index:1 的堆疊環境，負值不會穿到 section 背景之外），pointer-events: none
  確保不吃點擊。960px 以下空白帶被標題吃掉，整組隱藏。
*/
.heading-flourish { position: absolute; z-index: -1; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 .1875rem .1875rem rgba(55, 44, 8, .07)); }
.heading-flourish--left { left: -8rem; }
.heading-flourish--right { right: -8rem; }
/* 高低、角度、尺寸逐個錯開，否則六個 section 的側翼會排成一列制式徽章 */
.flourish-trail { width: 3.9rem; }
.flourish-cluster { width: 3.5rem; }
.flourish-burst { width: 3.7rem; }
.flourish-shooting { width: 4.5rem; }
.flourish-pencil { width: 3.4rem; }
.flourish-letter { width: 3.6rem; }
.flourish-book { width: 4.2rem; }
/*
  top 以「標題列高度（約 3.56em ≈ 3.56rem × 字級比）」為基準做垂直置中，再加 ±.25rem 抖動。
  往上不得超過 -.3rem，否則 .branches / .day 的側翼會戳進上緣撕紙邊；
  往下不得超過標題列 + 下方 margin，否則會被卡片的不透明底蓋掉半截。
*/
.flourish-trail.heading-flourish--left { top: -.3rem; transform: rotate(-14deg); }
.flourish-trail.heading-flourish--right { top: -.05rem; right: -8.75rem; transform: rotate(8deg); }
.flourish-cluster.heading-flourish--left { top: .1rem; left: -8.5rem; transform: rotate(-7deg); }
.flourish-cluster.heading-flourish--right { top: -.15rem; transform: rotate(12deg); }
.flourish-burst.heading-flourish--left { top: .05rem; transform: rotate(-16deg); }
.flourish-burst.heading-flourish--right { top: .45rem; right: -7.25rem; transform: rotate(14deg); }
.flourish-shooting.heading-flourish--left { top: .3rem; left: -9rem; transform: rotate(-6deg); }
.flourish-shooting.heading-flourish--right { top: -.05rem; transform: rotate(6deg) scaleX(-1); }
.flourish-pencil.heading-flourish--left { top: -.1rem; transform: rotate(-24deg); }
.flourish-letter.heading-flourish--right { top: .15rem; right: -7.5rem; transform: rotate(11deg); }
.flourish-book.heading-flourish--left { top: .35rem; left: -8.75rem; transform: rotate(-9deg); }
.section-heading--compact { margin-bottom: 1rem; }
/* 光芒線的內部用 % 定位，改動外框尺寸時三條線會自己跟著縮放 */
.heading-rays { position: relative; flex: 0 0 auto; width: 1.08em; height: .95em; }
.heading-rays i { position: absolute; width: 56.1%; height: 7.6%; border-radius: 99rem; background: var(--sun); transform-origin: center; }
.heading-rays i:nth-child(1) { left: 5.4%; top: 12.2%; transform: rotate(48deg); }
.heading-rays i:nth-child(2) { left: 0; top: 39.6%; transform: rotate(8deg); }
.heading-rays i:nth-child(3) { left: 10.7%; top: 66.9%; transform: rotate(-34deg); }
.heading-rays--right { transform: scaleX(-1); }
.heading-star { flex: 0 0 auto; width: .78em; height: .78em; clip-path: polygon(50% 0, 61% 36%, 100% 38%, 69% 59%, 79% 100%, 50% 75%, 21% 100%, 31% 59%, 0 38%, 39% 36%); transform: rotate(-10deg); }
.heading-star--green { background: var(--green-700); }
/*
  標題裝飾必須是單一實心剪影：細碎散點的素材（如 sparkle-trail）在此尺寸會化成灰塵。

  尺寸只給 height、寬度交給長寬比。不要用正方形框 + object-fit: contain ——
  橫幅素材（書 1.44:1）會被寬度卡住，畫出來的高度只剩設定值的六成。
  下面的 height 是「畫布」高度，已用 畫布高/內容高 補償素材四周的透明留白，
  使實際畫出來的內容高度落在漢字字面（約 .88em）附近：書略高於字，其餘向它看齊。
*/
.heading-image { flex: 0 0 auto; width: auto; height: .95em; object-fit: contain; transform: rotate(9deg); }
.heading-image--burst { height: 1.22em; transform: rotate(-8deg); }      /* 實畫 .95em */
.heading-image--book { height: 1.3em; transform: rotate(-7deg); }        /* 實畫 1.00em */
.heading-image--shooting { height: 1.25em; transform: rotate(-4deg); }   /* 星體約 .78em */
.heading-image--globe { height: .98em; transform: rotate(7deg); }        /* 實畫 .98em */
.heading-image--star { height: .93em; }                                  /* 實畫 .93em */
.heading-heart { flex: 0 0 auto; width: .72em; height: .72em; fill: #ef765b; transform: rotate(9deg); }

/*
  各 section 的自訂 padding 一律用 .x.section 提高權重。
  否則斷點裡的 .section{padding} 同權重、在後面，會把它們蓋掉——
  對有撕紙邊的 .day / .branches 來說那是直接壓到內容上。
*/
.programs { overflow: hidden; background: linear-gradient(var(--paper-soft), var(--paper)); }
.programs.section { padding: 2rem 0 1.25rem; }
.program-grid { position: relative; padding: clamp(1rem, 2.2vw, 1.5rem); background: #fff3c9; border-radius: 2rem; }
/* 編輯式構圖：左側說明課程方法，右側由真實課堂照承擔信任感。 */
.program-editorial { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(22rem, .98fr); grid-template-rows: auto 1fr; column-gap: clamp(1.5rem, 3.5vw, 3.5rem); min-height: 39rem; padding: clamp(1.5rem, 3.2vw, 3rem); background: #fffdf7; border: .0625rem solid #cfe3bb; border-radius: 1.5rem; box-shadow: 0 .5rem 1.375rem rgba(74, 54, 7, .11); }
.program-editorial::before { content: ""; position: absolute; z-index: 0; width: 15rem; height: 11rem; right: -6.5rem; bottom: -5rem; border-radius: 50%; background: #eff6dc; transform: rotate(-14deg); }
.program-editorial-intro, .program-editorial-details, .program-editorial-media { min-width: 0; position: relative; z-index: 1; }
.program-editorial-intro { align-self: start; }
.program-ribbon { position: relative; width: 80%; aspect-ratio: 1350 / 317; display: grid; place-items: center; margin: -.15rem auto 1.25rem; color: #fff; transform: rotate(-2deg); pointer-events: none; }
.program-ribbon-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .25rem .25rem rgba(54, 45, 6, .13)); }
.program-ribbon h3 { position: relative; z-index: 1; margin: 0 0 .08em; font-family: "Noto Sans TC Local", sans-serif; font-size: clamp(1.65rem, 2.45vw, 2.2rem); font-weight: 900; font-synthesis: none; line-height: 1.1; letter-spacing: .055em; text-shadow: 0 .125rem 0 rgba(3, 67, 36, .42); white-space: nowrap; }
.program-editorial-title { margin: 0; color: var(--green-950); font-family: "Noto Sans TC Local", sans-serif; font-size: clamp(2rem, 2.65vw, 2.45rem); font-weight: 900; line-height: 1.28; letter-spacing: .025em; text-wrap: balance; }
.program-editorial-title span { display: block; white-space: nowrap; }
.program-editorial-title-result { color: var(--orange); font-size: 1em; }
.program-editorial-lead { max-width: 33rem; margin: 1rem 0 0; color: #4d5c54; font-size: 1rem; font-weight: 600; line-height: 1.8; text-wrap: pretty; }
.program-editorial-media { grid-column: 2; grid-row: 1 / span 2; min-height: 33rem; overflow: hidden; border: .25rem solid rgba(255, 255, 255, .92); border-radius: 1.25rem; background: #edf3e6; box-shadow: 0 .5rem 1.25rem rgba(68, 52, 10, .14); }
.program-editorial-media picture { display: block; width: 100%; height: 100%; }
.program-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.program-photo-label { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: .48rem .8rem; color: #fff; background: rgba(3, 78, 43, .9); border-radius: .5rem; font-size: .74rem; font-weight: 800; letter-spacing: .03em; }
.program-editorial-details { align-self: stretch; display: flex; min-height: 0; flex-direction: column; margin-top: clamp(.75rem, 1.3vw, 1.125rem); }
.learning-steps { list-style: none; display: grid; flex: 1; align-content: space-between; gap: .625rem; margin: 0; padding: 0; }
.learning-steps li { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); align-items: stretch; min-width: 0; background: rgba(245, 242, 232, .75); border: .0625rem solid rgba(214, 207, 187, .7); border-radius: .75rem; overflow: hidden; box-shadow: 0 .25rem .625rem rgba(72, 57, 18, .06); }
.learning-step-visual { display: flex; min-height: 5.5rem; align-items: center; justify-content: center; color: #fffdf7; background: radial-gradient(circle at 50% 35%, rgba(255, 201, 40, .24), transparent 48%), var(--green-950); }
.learning-step-visual img { width: 4.15rem; height: 4.15rem; object-fit: contain; filter: drop-shadow(0 .16rem .12rem rgba(0, 0, 0, .18)); }
.learning-steps li:nth-child(1) .learning-step-visual img { transform: rotate(-2deg); }
.learning-steps li:nth-child(2) .learning-step-visual img { transform: rotate(1deg); }
.learning-steps li:nth-child(3) .learning-step-visual img { transform: rotate(1.5deg); }
.learning-steps li > div { min-width: 0; padding: .75rem .9rem; }
.learning-steps strong { display: block; color: var(--green-900); font-size: 1.02rem; line-height: 1.35; }
.learning-steps p { margin: .25rem 0 0; color: #647068; font-size: .8rem; font-weight: 600; line-height: 1.55; }
/* 安親只保留為美語方案的課後安心註記。 */
.aftercare-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; margin: .875rem 0 0; padding: .75rem .9rem; color: #6c6a59; background: #fbf5df; border-left: .1875rem solid #d4b757; border-radius: .5rem; }
.aftercare-note span { color: #8b7842; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.aftercare-note strong { color: #50633f; font-size: .88rem; }
.aftercare-note p { margin: 0; color: #777567; font-size: .76rem; font-weight: 700; line-height: 1.5; }

.tuition { background: var(--paper); }
.tuition.section { padding: 1rem 0 2rem; }
.tuition-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.125rem; align-items: stretch; }
.tuition-card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(1.25rem, 3vw, 2rem); background: #fffdf7; border: .0625rem solid #e9e1cd; border-radius: 1.5rem; box-shadow: 0 .625rem 1.75rem rgba(74, 54, 7, .1); }
.tuition-card--plan { width: min(100%, 58rem); justify-self: center; }
.tuition-card::before { content: ""; position: absolute; z-index: -1; width: 14rem; height: 9rem; right: -4rem; top: -4.5rem; border-radius: 50%; background: #eff6dc; transform: rotate(-12deg); }
.tuition-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.tuition-eyebrow { width: fit-content; margin: 0 0 .375rem; padding: .3rem .7rem; color: #fffdf7; background: var(--green-800); border-radius: 99rem; font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.tuition-card h3 { margin: 0; color: var(--green-900); font-size: clamp(2.2rem, 4.5vw, 3.1rem); font-weight: 900; line-height: 1.08; letter-spacing: .035em; }
.tuition-card-tagline { margin: .45rem 0 0; color: #607066; font-size: .82rem; font-weight: 800; letter-spacing: .05em; }
.tuition-unit-price { flex: 0 0 auto; display: flex; align-items: baseline; gap: .5rem; margin: 0; padding: .625rem 1rem .75rem; color: var(--green-950); background: var(--sun); border-radius: 1rem .55rem 1rem .55rem; transform: rotate(1deg); box-shadow: 0 .25rem 0 rgba(210, 150, 20, .24); }
.tuition-unit-price > span { font-size: .78rem; font-weight: 900; }
.tuition-unit-price strong { font-size: clamp(2.25rem, 5vw, 3.4rem); line-height: .9; letter-spacing: -.04em; }
.tuition-unit-price small { margin-right: .2rem; font-size: .8rem; letter-spacing: 0; }
.tuition-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.5rem 0 0; padding: .875rem 0; background: var(--green-50); border-radius: .875rem; }
.tuition-facts > div { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding-inline: .75rem; text-align: center; }
.tuition-facts > div + div { border-left: .0625rem dashed #bad0b9; }
.tuition-facts dt { color: #66766c; font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
.tuition-facts dd { margin: 0; color: #285438; font-size: .9rem; font-weight: 800; }
.tuition-facts dd strong { margin-right: .12rem; font-size: 1.35rem; line-height: 1; }
.tuition-calculation { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: center; gap: .75rem; margin-top: 1rem; padding: .875rem 1rem; color: #fffdf7; background: var(--green-950); border-radius: 1rem; }
.tuition-calculation span { display: flex; flex-direction: column; gap: .1rem; min-width: 0; text-align: center; }
.tuition-calculation-example { align-self: center; padding-right: .75rem; color: var(--sun); font-family: "JF Open Huninn Display", "Noto Sans TC Local", sans-serif; font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 400; letter-spacing: .05em; line-height: 1; white-space: nowrap; border-right: .0625rem dashed rgba(255, 253, 247, .35); }
.tuition-calculation small { color: rgba(255, 253, 247, .72); font-size: .65rem; font-weight: 800; letter-spacing: .06em; }
.tuition-calculation strong { font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.25; white-space: nowrap; }
.tuition-calculation i { color: var(--sun); font-size: 1.35rem; font-style: normal; font-weight: 900; }
.tuition-calculation-total { align-self: stretch; justify-content: center; margin: -.35rem; padding: .45rem .75rem; color: var(--green-950); background: var(--sun); border-radius: .7rem; transform: rotate(-.4deg); }
.tuition-calculation-total small { color: #5c5b25; }
.tuition-calculation-total strong { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.tuition-included { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; padding-right: 3rem; color: #475b4e; }
.tuition-included > span { flex: 0 0 auto; min-width: 3rem; height: 1.9rem; display: grid; place-items: center; padding-inline: .5rem; color: var(--green-950); background: var(--sun); border-radius: 99rem; font-size: .9rem; font-weight: 900; font-variant-numeric: tabular-nums; transform: rotate(-2deg); }
.tuition-included strong { display: block; color: var(--green-900); font-size: 1rem; }
.tuition-included p { margin: .12rem 0 0; font-size: .75rem; font-weight: 650; line-height: 1.5; }
.tuition-card-decoration { position: absolute; z-index: 1; width: 3.75rem; height: auto; right: -.35rem; bottom: -.55rem; object-fit: contain; pointer-events: none; transform: rotate(13deg); filter: drop-shadow(0 .1875rem .1875rem rgba(55, 44, 8, .08)); }

.day { position: relative; overflow: hidden; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V14 C1370 36 1290 40 1210 27 C1130 14 1050 12 970 25 C890 38 810 40 730 27 C650 14 570 12 490 25 C410 38 330 40 250 27 C170 14 90 13 0 30 Z' fill='%23fdf6e8'/%3E%3C/svg%3E") top center / 100% 2.75rem no-repeat, linear-gradient(180deg, #f2fafe, #e7f4fd); }
/* padding 需容納上下兩道撕紙邊（上 2.75rem、下 2.25rem），否則內容會壓在撕紙邊上 */
.day.section { padding: 2.75rem 0 3.125rem; }
/* 下緣撕紙邊：獨立元素而非背景層，才能疊在雲朵之上（與 .hero-wave 同一手法） */
.day-edge { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2.25rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0 44 H1440 V30 C1370 8 1290 4 1210 17 C1130 30 1050 32 970 19 C890 6 810 4 730 17 C650 30 570 32 490 19 C410 6 330 4 250 17 C170 30 90 31 0 14 Z' fill='%23fffdf6'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }
.day::before, .day::after { content: ""; position: absolute; bottom: -4.75rem; width: 13rem; height: 9rem; border-radius: 52% 48% 0 0; background: rgba(115, 201, 240, .3); box-shadow: 4.25rem 1.25rem 0 rgba(115, 201, 240, .22), 8rem .375rem 0 rgba(115, 201, 240, .16); }
.day::before { left: -5.25rem; }.day::after { right: -5.25rem; transform: scaleX(-1); }
.timeline { position: relative; z-index: 1; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; }
.timeline li { position: relative; text-align: center; padding: 0 .5rem; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; z-index: -1; top: 1.75rem; left: calc(50% + 3rem); width: calc(100% - 6rem); height: 2.25rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M6 26 Q60 6 104 19' fill='none' stroke='%234f9a58' stroke-width='3.5' stroke-linecap='round' stroke-dasharray='7 8'/%3E%3Cpath d='M112 21 L102 15.5 M112 21 L103.5 26.5' fill='none' stroke='%234f9a58' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.timeline li:nth-child(even)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M6 10 Q60 30 104 17' fill='none' stroke='%234f9a58' stroke-width='3.5' stroke-linecap='round' stroke-dasharray='7 8'/%3E%3Cpath d='M112 15 L102 12 M112 15 L103.5 21.5' fill='none' stroke='%234f9a58' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.timeline-icon { width: 5.75rem; height: 5.25rem; display: grid; place-items: center; margin: 0 auto .5rem; }
.timeline-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .1875rem .1875rem rgba(58, 51, 13, .08)); }
.timeline time { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; }
.timeline strong { display: block; color: var(--ink); font-size: .92rem; }
.day-decoration { position: absolute; z-index: 0; width: 2.25rem; height: auto; pointer-events: none; }
.day-decoration--left { left: -.375rem; top: 4.875rem; transform: rotate(-11deg); }
.day-decoration--right { right: -.25rem; top: 5.25rem; transform: rotate(14deg); }

/* 手繪相框：照片未到位時的刻意佔位，照片到位後保留外框、換掉內容 */
.photo-frame { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3125rem; aspect-ratio: 4 / 5; padding: 1rem; background: #fdf7e9; border: .1875rem solid var(--green-950); border-radius: .875rem; box-shadow: inset 0 0 0 .375rem #fffdf7; }
.photo-frame--portrait { aspect-ratio: 3 / 4; }
.photo-frame-photo { position: absolute; inset: .375rem; width: calc(100% - .75rem); height: calc(100% - .75rem); object-fit: cover; border-radius: .5rem; }
.photo-frame::before, .photo-frame::after { content: ""; position: absolute; z-index: 2; width: 3.25rem; height: 1.125rem; background: rgba(255, 232, 158, .7); box-shadow: 0 .0625rem .1875rem rgba(76, 58, 12, .14); transform: rotate(-38deg); }
.photo-frame::before { left: -.8125rem; top: 1rem; }
.photo-frame::after { right: -.8125rem; bottom: 1rem; }
.photo-frame-mascot { width: 45%; max-height: 58%; object-fit: contain; opacity: .3; }
.photo-frame-label { color: #8b9a92; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }

.teachers { position: relative; overflow: hidden; background: var(--paper-soft); }
.teachers.section { padding: 1.75rem 0 2.25rem; }
/* 電腦版讓六位老師一列呈現；螢幕收窄後才依序重組成三欄、兩欄。 */
.teacher-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .875rem; max-width: 70rem; margin-inline: auto; }
.teacher-card { display: flex; flex-direction: column; gap: .9375rem; min-width: 0; padding: 1rem 1rem 1.25rem; background: #fff; border: .0625rem solid #efe7d5; border-radius: 1.25rem; box-shadow: 0 .375rem 1.125rem rgba(96, 66, 12, .10); }
.teacher-body { display: flex; flex-direction: column; gap: .1875rem; }
.teacher-body > strong { color: var(--green-900); font-size: 1.12rem; }
.teacher-en-name { color: var(--muted); font-size: .82rem; font-weight: 700; font-style: italic; letter-spacing: .03em; }
.teacher-role { color: #b3450f; font-size: .8rem; font-weight: 800; letter-spacing: .04em; }
.teacher-school { color: var(--green-800); font-size: .82rem; font-weight: 700; line-height: 1.5; }
.teacher-notes { list-style: none; display: grid; gap: .3125rem; margin: .4375rem 0 0; padding: 0; }
.teacher-notes li { position: relative; padding-left: .875rem; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.teacher-notes li::before { content: ""; position: absolute; left: 0; top: .5625rem; width: .375rem; height: .375rem; border-radius: 50%; background: var(--icon-green); }

.gallery { background: linear-gradient(180deg, var(--paper-soft), var(--paper)); }
.gallery.section { padding: 1.5rem 0 1rem; }
.gallery-shell { position: relative; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 4); gap: 1rem; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: inline mandatory; padding: .625rem .25rem; cursor: grab; }
.gallery-track::-webkit-scrollbar { display: none; }
/* 拖曳中關掉 snap，否則會與 scrollLeft 打架；放開後恢復，瀏覽器自動吸附 */
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track.is-dragging .gallery-card { pointer-events: none; }
.gallery-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border-radius: .875rem; background: #fff; border: .0625rem solid #efe7d5; box-shadow: 0 .3125rem 1rem rgba(96, 66, 12, .10); scroll-snap-align: start; transition: transform .25s ease, box-shadow .25s ease; }
.gallery-card:nth-child(odd) { transform: rotate(-1deg); }
.gallery-card:nth-child(even) { transform: rotate(1deg); }
.gallery-card:hover, .gallery-card:focus-within { transform: rotate(0deg) translateY(-.25rem); box-shadow: 0 .5rem 1.375rem rgba(96, 66, 12, .16); }
.gallery-photo { width: calc(100% - .875rem); height: auto; aspect-ratio: 4 / 3; margin: .4375rem .4375rem 0; border-radius: .5rem; object-fit: cover; object-position: center; background: #e8efe8; }
.gallery-card span { margin-top: .4375rem; }
.gallery-card span { display: grid; flex: 1; place-items: center; padding: .75rem .5rem; color: #fff; background: var(--green-800); text-align: center; font-size: .95rem; font-weight: 900; }
.gallery-control { position: absolute; z-index: 2; top: 50%; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: #fff; background: var(--green-800); border: .25rem solid #fff; border-radius: 50%; box-shadow: 0 .3125rem 1rem rgba(6, 76, 41, .22); cursor: pointer; transform: translateY(-50%); }
.gallery-control svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.gallery-control--prev { left: -1.25rem; }.gallery-control--next { right: -1.25rem; }
.gallery-control:disabled { cursor: default; opacity: .45; }

.testimonials { background: var(--paper); }
.testimonials.section { padding: 1.25rem 0 1.5rem; }
.testimonials .section-title-row::before, .testimonials .section-title-row::after { content: ""; position: absolute; top: 50%; width: clamp(3rem, 9vw, 8.75rem); height: .0625rem; background: #dfe8df; }
.testimonials .section-title-row::before { right: calc(100% + 1.25rem); }
.testimonials .section-title-row::after { left: calc(100% + 1.25rem); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial-grid figure { position: relative; display: flex; flex-direction: column; min-height: 11rem; margin: 0; padding: 2.75rem 1.5rem 1.25rem; border: .0625rem solid #efe7d5; border-radius: 1rem; background: #fff; box-shadow: 0 .3125rem 1rem rgba(96, 66, 12, .10); }
.testimonial-grid figure::before { content: ""; position: absolute; left: 1.375rem; top: 1.125rem; width: 1.75rem; height: 1.375rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22'%3E%3Cpath d='M0 13 C0 5 5 0 12 0 L12 6 C9 6 8 8.5 8 12 L12 12 L12 22 L0 22 Z M16 13 C16 5 21 0 28 0 L28 6 C25 6 24 8.5 24 12 L28 12 L28 22 L16 22 Z' fill='%232f8f57'/%3E%3C/svg%3E") center / contain no-repeat; }
.testimonial-grid blockquote { position: relative; z-index: 1; flex: 1; margin: 0 0 .875rem; color: #43544d; font-size: .9rem; }
.testimonial-grid figcaption { display: flex; align-items: center; gap: .6875rem; padding-top: .75rem; border-top: .125rem solid #edf6ed; }
.testimonial-grid figcaption div { display: flex; flex-direction: column; }
.testimonial-grid figcaption strong { font-size: .9rem; }.testimonial-grid figcaption small { color: var(--muted); }
.avatar { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; overflow: hidden; color: var(--icon-ink); }
.avatar svg { width: 3rem; height: 3rem; display: block; }
.avatar--1 { background: #e7ddf3; }.avatar--2 { background: #d9ecf7; }.avatar--3 { background: #fdeecb; }

/* 頁面下半部的冷色呼吸點，呼應 .day；上緣撕紙邊填 --paper，撕開上一段的暖紙 */
.branches { position: relative; overflow: hidden; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1440 V14 C1370 36 1290 40 1210 27 C1130 14 1050 12 970 25 C890 38 810 40 730 27 C650 14 570 12 490 25 C410 38 330 40 250 27 C170 14 90 13 0 30 Z' fill='%23fdf6e8'/%3E%3C/svg%3E") top center / 100% 2.75rem no-repeat, linear-gradient(180deg, #eef7fd, #e1effa); }
/* 上緣撕紙邊 2.75rem，padding-top 必須大於它 */
.branches.section { padding: 3.5rem 0 2rem; }
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding: 1.25rem; background: #d7e9f6; border-radius: 2rem; }
.branch-card { position: relative; display: flex; flex-direction: column; gap: 1.125rem; padding: 5.25rem 1.25rem 1.375rem; background: #fffdf7; border: .0625rem solid #cfe3bb; border-radius: 1.5rem; box-shadow: 0 .5rem 1.375rem rgba(74, 54, 7, .11); }
.branch-card--orange { border-color: #f1d49a; }
.branch-ribbon { position: absolute; z-index: 4; left: 50%; top: .75rem; width: min(76%, 20rem); aspect-ratio: 1350 / 317; display: grid; place-items: center; color: #fff; transform: translateX(-50%); pointer-events: none; }
.branch-ribbon-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .25rem .25rem rgba(54, 45, 6, .13)); }
.branch-ribbon h3 { position: relative; z-index: 1; margin: 0 0 .08em; font-family: "Noto Sans TC Local", sans-serif; font-size: clamp(1.5rem, 2.3vw, 1.9rem); font-weight: 900; font-synthesis: none; line-height: 1.1; letter-spacing: .055em; text-shadow: 0 .125rem 0 rgba(3, 67, 36, .42); white-space: nowrap; }
.branch-card--orange .branch-ribbon h3 { text-shadow: 0 .125rem 0 rgba(128, 47, 0, .38); }
.branch-info { display: grid; gap: .5rem; font-style: normal; }
.branch-info-item { display: flex; align-items: flex-start; gap: .625rem; margin: 0; color: #43544d; font-size: .88rem; line-height: 1.6; }
.branch-info-item svg { flex: 0 0 auto; width: 1.1875rem; height: 1.1875rem; margin-top: .1875rem; fill: none; stroke: var(--green-800); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.branch-card--orange .branch-info-item svg { stroke: #c86a12; }
.branch-info-item--phone { min-height: 2.75rem; align-items: center; margin-inline: -.375rem; padding-inline: .375rem; border-radius: .625rem; transition: background .18s ease; }
.branch-info-item--phone:hover, .branch-info-item--phone:focus-visible { background: rgba(8, 122, 66, .08); }
.branch-card--orange .branch-info-item--phone:hover, .branch-card--orange .branch-info-item--phone:focus-visible { background: rgba(239, 91, 34, .08); }
.branch-info-item--phone:hover span, .branch-info-item--phone:focus-visible span { text-decoration: underline; }

.contact-cta { position: relative; isolation: isolate; background: radial-gradient(ellipse 42% 135% at 97% 140%, rgba(3, 78, 43, .38) 0 60%, transparent 61%), var(--green-800); color: #fff; }
.contact-inner { position: relative; z-index: 1; min-height: 10.75rem; display: grid; grid-template-columns: 9rem 1fr minmax(21.875rem, auto); align-items: center; gap: 1.5rem; }
.contact-mascot { align-self: end; width: 9rem; height: auto; max-height: 12.5rem; margin-top: -2.5rem; object-fit: contain; object-position: bottom; filter: drop-shadow(0 .5rem .875rem rgba(0, 0, 0, .16)); }
.contact-message { min-width: 0; }
.contact-inner h2 { position: relative; display: inline-block; margin: 0; font-family: "JF Open Huninn Display", "Noto Sans TC Local", sans-serif; font-size: clamp(1.8rem, 3.2vw, 2.75rem); font-weight: 400; font-synthesis: none; line-height: 1.18; letter-spacing: .03em; text-shadow: 0 .1875rem 0 rgba(1, 78, 42, .35); }
.cta-highlight { position: relative; display: inline-block; margin-inline: .08em; color: var(--sun); font-family: "JF Open Huninn Display", "Noto Sans TC Local", sans-serif; font-size: 1.08em; font-weight: 400; font-synthesis: none; letter-spacing: .02em; text-shadow: 0 .1875rem 0 rgba(0, 68, 36, .5); }
#contact-title, #contact-title .cta-highlight { font-family: "Noto Sans TC Local", sans-serif; font-weight: 900; }
.contact-decoration { display: inline-block; width: 2.375rem; height: auto; margin: -.875rem 0 0 .375rem; vertical-align: top; pointer-events: none; transform: rotate(11deg); }
.display-font { font-family: "JF Open Huninn Display", "Noto Sans TC Local", sans-serif; font-weight: 400; font-synthesis: none; letter-spacing: .035em; }
.nav-cta.display-font { font-family: "Noto Sans TC Local", sans-serif; font-weight: 900; }
.contact-actions { width: min(100%, 26rem); display: grid; grid-template-columns: repeat(2, minmax(10.5rem, 1fr)); justify-self: end; justify-content: end; gap: .75rem; }
.contact-line-button { white-space: nowrap; }
.contact-line-button svg { width: 1.5rem; height: 1.5rem; overflow: visible; color: var(--green-800); stroke-width: 3; }
.contact-accent { position: absolute; z-index: 0; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 .25rem .25rem rgba(0, 52, 27, .18)); }
.contact-accent--pencil { top: -.65rem; right: clamp(.5rem, 2vw, 1.75rem); width: clamp(3.75rem, 5vw, 5.5rem); transform: rotate(35deg); }
.contact-accent--sparkles { right: clamp(10.5rem, 18vw, 17rem); bottom: .45rem; width: clamp(2.5rem, 3.25vw, 3.5rem); opacity: .78; transform: rotate(-8deg); }

.site-footer { padding: 2rem 0 max(.875rem, env(safe-area-inset-bottom)); color: rgba(255, 255, 255, .88); background: var(--green-950); font-size: .82rem; }
.footer-grid { display: grid; grid-template-columns: minmax(11rem, .72fr) repeat(2, minmax(18rem, 1.15fr)); align-items: stretch; }
.footer-grid > * { min-width: 0; padding-inline: clamp(1rem, 2vw, 1.75rem); }
.footer-grid > :first-child { padding-left: 0; }
.footer-grid > :last-child { padding-right: 0; }
.footer-grid > .footer-branch-panel { border-left: .0625rem solid rgba(255, 255, 255, .18); }
.footer-brand { display: flex; flex-direction: column; justify-content: center; gap: .75rem; align-items: center; text-align: center; }
.footer-brand img { width: 4.5rem; height: 4.5rem; }
.footer-brand div { display: flex; flex-direction: column; align-items: center; }
.footer-brand strong { color: #fffdf6; font-size: 1rem; }
.footer-brand span { font-size: .73rem; }
.footer-brand small { margin-top: .25rem; color: #9dd7b1; }
.footer-branch-panel { display: flex; flex-direction: column; gap: .75rem; }
.footer-branch-heading { display: flex; align-items: center; gap: .5rem; }
.footer-branch-heading > span { width: 1.5rem; height: 1.5rem; display: grid; place-items: center; flex: 0 0 auto; color: #584200; background: var(--sun); border-radius: 50%; font-size: .72rem; line-height: 1; transform: rotate(-8deg); }
.footer-branch-heading h2 { margin: 0; color: #fffdf6; font-size: 1rem; line-height: 1.25; letter-spacing: .05em; }
.site-footer address { font-style: normal; }
.site-footer p { margin: 0; }
.footer-branch-contact { display: grid; gap: .375rem; }
.footer-info-item { display: flex; align-items: flex-start; gap: .5rem; }
.footer-info-item svg { flex: 0 0 auto; width: 1.125rem; height: 1.125rem; margin-top: .0625rem; fill: none; stroke: #fffdf6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-info-item span { min-width: 0; overflow-wrap: anywhere; }
.footer-info-item--address span { line-height: 1.25rem; }
.footer-info-item--phone { color: #fffdf6; font-weight: 800; letter-spacing: .04em; }
.site-footer a.footer-info-item:hover { color: #fff; text-decoration: underline; }
.footer-qr-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; margin-top: .125rem; }
.footer-qr-link { min-width: 0; min-height: 2.75rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .625rem .5rem .75rem; color: #fffdf6; background: rgba(255, 255, 255, .065); border: .0625rem solid rgba(255, 255, 255, .14); border-radius: 1rem; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.footer-qr-frame { width: clamp(5.75rem, 7vw, 7rem); aspect-ratio: 1; display: grid; place-items: center; padding: .3125rem; overflow: hidden; background: #fff; border-radius: .625rem; box-shadow: 0 .25rem .75rem rgba(0, 30, 16, .16); }
.footer-qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.footer-qr-label { min-width: 0; display: flex; align-items: center; justify-content: center; gap: .375rem; text-align: left; line-height: 1.1; }
.footer-qr-label > svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.footer-qr-label > span { min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.footer-qr-label strong { color: #fffdf6; font-size: .72rem; white-space: nowrap; }
.footer-qr-label small { color: #b8e0c3; font-size: .62rem; white-space: nowrap; }
.footer-qr-link--line .footer-qr-label > svg { color: #70dc8a; }
.footer-qr-link--facebook .footer-qr-label > svg { color: #a9c7ff; }
.footer-meta { margin-top: 1.5rem; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; border-top: .0625rem solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .72); font-size: .72rem; }
.footer-hours { display: flex; align-items: center; gap: .5rem; }
.footer-hours svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copyright { flex: 0 0 auto; text-align: right; }
@media (hover: hover) {
  .footer-qr-link:hover { color: #fff; background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .26); transform: translateY(-.125rem); }
}

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .nav-wrap { min-height: 4.5rem; }
  .brand img { width: 3rem; height: 3rem; }
  .brand strong { font-size: 1rem; }.brand small { font-size: .66rem; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(.5rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-.5rem) rotate(-45deg); }
  .site-nav {
    position: absolute;
    z-index: 60;
    top: calc(100% + .5rem);
    right: 0;
    width: min(60vw, 17rem);
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .625rem 1rem max(1rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--paper-soft);
    border: .0625rem solid rgba(3, 78, 43, .1);
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(2, 54, 29, .18);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-.5rem) scale(.97);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition-delay: 0s; }
  .site-nav > a:not(.nav-cta) { padding: .75rem .25rem; font-size: 1rem; border-bottom: .0625rem solid #edf2ed; }
  .site-nav > a:not(.nav-cta)::after { display: none; }
  .site-nav .nav-cta { display: inline-flex; justify-content: center; margin-top: .875rem; }
  .program-grid { padding: 1.375rem; }
  .program-editorial { grid-template-columns: minmax(0, .98fr) minmax(20rem, 1.02fr); column-gap: 1.75rem; min-height: 34rem; padding: 2rem; }
  .program-editorial-media { min-height: 30rem; }
  .program-ribbon { width: 80%; }
  .program-editorial-title { font-size: clamp(1.9rem, 3.5vw, 2.35rem); }
  .heading-flourish { display: none; }
  .tuition-grid { grid-template-columns: 1fr; }
  .teacher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .contact-inner { grid-template-columns: 8.4375rem 1fr; }
  .contact-mascot { width: 8.4375rem; }
  .contact-actions { grid-column: 1 / -1; width: min(100%, 28.5rem); justify-self: center; justify-content: center; padding-bottom: 1.5rem; }
  .contact-accent--pencil { top: auto; right: 1rem; bottom: .75rem; width: 4.5rem; transform: rotate(28deg); }
  .contact-accent--sparkles { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .footer-grid > * { padding-inline: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; padding: 0 0 1.25rem; border-bottom: .0625rem solid rgba(255, 255, 255, .16); }
  .footer-grid > .footer-branch-panel { padding-left: 0; border-left: 0; }
  .footer-grid > .footer-branch-panel + .footer-branch-panel { padding-left: 1.5rem; padding-right: 0; border-left: .0625rem solid rgba(255, 255, 255, .18); }
  .footer-brand { flex-direction: row; text-align: left; }
  .footer-brand div { align-items: flex-start; }
}

/* 平板把標語提到完整首列，三張實景照片在第二列並肩，保留分校辨識。 */
@media (max-width: 1120px) {
  .hero { min-height: auto; padding: 1rem 0 5.25rem; }
  .hero-stage { grid-template-columns: minmax(8rem, 24%) minmax(0, 52%) minmax(8rem, 24%); grid-template-rows: auto minmax(18rem, 21rem); min-height: auto; }
  .hero-center { display: contents; }
  .hero-copy { grid-column: 1 / -1; grid-row: 1; padding: 0 .25rem .5rem; }
  .hero-campus { grid-row: 2; min-height: 0; margin: 0; }
  .hero-campus--dounan { grid-column: 1; transform: rotate(-.35deg); }
  .hero-campus--douliu { grid-column: 3; transform: rotate(.35deg); }
  .hero-campus-label small { display: none; }
  .hero-classroom { grid-column: 2; grid-row: 2; min-height: 0; aspect-ratio: auto; }
  .hero-photo { object-position: 38% 46%; }
  .hero-mascot { width: 5.75rem; right: 22vw; top: -5.75rem; }
  .hero-wave { height: 6rem; }
  .benefits { margin-top: 0; }
  .benefits::after { top: -1.625rem; height: 1.6875rem; }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 1.875rem), var(--container)); }
  .section { padding: 1.875rem 0; }
  .hero-stage { grid-template-columns: minmax(7rem, 24%) minmax(0, 52%) minmax(7rem, 24%); grid-template-rows: auto 16rem; gap: .75rem; }
  .hero-title-primary, .hero-title-result { font-size: clamp(1.45rem, 4.5vw, 2rem); }
  .hero-campus-label { left: .45rem; right: .45rem; bottom: .45rem; padding: .45rem .35rem; }
  .hero-campus-label small { display: none; }
  .hero-classroom-label { left: .65rem; bottom: .6rem; }
  .day.section { padding: 3rem 0 3rem; }
  .branches.section { padding: 3.5rem 0 1.875rem; }
  .brand strong { font-size: .96rem; }
  .benefits { padding-top: .875rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 7.75rem; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 2.125rem; }
  .timeline li:nth-child(3n)::after { display: none; }
  .gallery-track { grid-auto-columns: calc((100% - 2rem) / 3); }.gallery-control--prev { left: -.625rem; }.gallery-control--next { right: -.625rem; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .tuition-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .tuition-card { width: min(100%, 46rem); margin-inline: auto; }
  .program-editorial { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 1.25rem; min-height: 0; padding: 1.5rem; }
  .program-editorial-media { grid-column: 1; grid-row: 2; min-height: 0; aspect-ratio: 4 / 3; }
  .program-editorial-details { grid-column: 1; grid-row: 3; margin-top: 0; }
  .program-ribbon { width: min(70%, 26rem); }
  .program-editorial-title { font-size: clamp(2rem, 5vw, 2.6rem); }
  .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .branch-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.375rem; }
  .branch-card { width: min(100%, 34rem); justify-self: center; }
  .contact-inner { min-height: 15.5rem; }
  .day-decoration--left { left: 0; }.day-decoration--right { right: 0; }
}

/* 平板沿用手機的緊湊蛇形比例，所有轉折都留在內容區中央。 */
@media (min-width: 561px) and (max-width: 820px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .5rem; row-gap: 2.25rem; width: min(100%, 34rem); margin-inline: auto; }
  .timeline li { min-height: 0; padding: 0 .25rem; text-align: center; }
  .timeline li:nth-child(1) { grid-column: 1; grid-row: 1; }
  .timeline li:nth-child(2) { grid-column: 2; grid-row: 1; }
  .timeline li:nth-child(3) { grid-column: 2; grid-row: 2; }
  .timeline li:nth-child(4) { grid-column: 1; grid-row: 2; }
  .timeline li:nth-child(5) { grid-column: 1; grid-row: 3; }
  .timeline li:nth-child(6) { grid-column: 2; grid-row: 3; }
  .timeline li:nth-child(1)::after, .timeline li:nth-child(5)::after { display: block; z-index: 0; top: 1.75rem; right: auto; bottom: auto; left: calc(50% + 3rem); width: calc(100% - 6rem); height: 2.25rem; transform: none; }
  .timeline li:nth-child(3)::after { display: block; z-index: 0; top: 1.75rem; right: calc(50% + 3rem); bottom: auto; left: auto; width: calc(100% - 6rem); height: 2.25rem; transform: scaleX(-1); }
  .timeline li:nth-child(2)::after, .timeline li:nth-child(4)::after { display: block; z-index: 0; top: auto; right: auto; bottom: -2.05rem; left: calc(50% - .875rem); width: 1.75rem; height: 1.8rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 56' preserveAspectRatio='none'%3E%3Cpath d='M14 3 C9 16 19 28 14 42' fill='none' stroke='%234f9a58' stroke-width='3.5' stroke-linecap='round' stroke-dasharray='6 7'/%3E%3Cpath d='M8 41 L14 51 L20 41' fill='none' stroke='%234f9a58' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transform: none; }
  .timeline li:nth-child(6)::after { display: none; }
  .timeline-icon { position: relative; z-index: 1; width: 5rem; height: 4.625rem; margin: 0 auto .5rem; }
}

@media (max-width: 680px) {
  .hero { padding: .75rem 0 4.5rem; }
  .hero-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto minmax(15rem, 19rem) auto; gap: .625rem; }
  .hero-copy { grid-column: 1 / -1; grid-row: 1; padding: 0 0 .5rem; }
  .hero-eyebrow { margin-bottom: .4rem; font-size: .64rem; }
  .hero-title-primary, .hero-title-result { font-size: clamp(1.35rem, 6.1vw, 1.8rem); }
  .hero-bonus { margin-block: .4rem .625rem; }
  .hero-classroom { grid-column: 1 / -1; grid-row: 2; border-width: .2rem; border-radius: .7rem 1.4rem .7rem 1.4rem; }
  .hero-campus { grid-row: 3; min-height: 0; aspect-ratio: 3 / 4; align-self: start; border-width: .2rem; transform: none; }
  .hero-campus--dounan { grid-column: 1; border-radius: 1.25rem .55rem .9rem .55rem; }
  .hero-campus--douliu { grid-column: 2; border-radius: .55rem 1.25rem .55rem .9rem; }
  .hero-campus--douliu img { object-position: 50% 50%; }
  .hero-campus--dounan img { object-position: 50% 50%; }
  .hero-campus-label strong { font-size: .78rem; }
  .hero-classroom-label { font-size: .6rem; }
  .hero-wave { height: 5rem; }
  .programs.section { padding: 2rem 0 1rem; }
  .tuition-promo { padding: .45rem 1.1rem; font-size: 1.2rem; border-radius: .75rem; }
  .program-grid { gap: .875rem; padding: 1rem .875rem; border-radius: 1.5rem; }
  .program-editorial { row-gap: 1rem; padding: 1.125rem; border-radius: 1.25rem; }
  .program-ribbon { width: min(80%, 18rem); margin: 0 auto .875rem; }
  .program-ribbon h3 { font-size: 1.22rem; }
  .program-editorial-title { font-size: clamp(1.25rem, 5.6vw, 1.75rem); line-height: 1.35; }
  .program-editorial-lead { margin-top: .75rem; font-size: .88rem; line-height: 1.7; }
  .program-editorial-media { min-height: 0; aspect-ratio: 4 / 3; border-width: .2rem; border-radius: 1rem; }
  .program-photo { min-height: 0; object-fit: cover; }
  .program-editorial-media .program-photo { object-position: 50% 28%; }
  .program-photo-label { left: .625rem; bottom: .625rem; padding: .35rem .55rem; font-size: .62rem; }
  .learning-steps { gap: .5rem; }
  .learning-steps li { grid-template-columns: 4rem minmax(0, 1fr); border-radius: .6rem; }
  .learning-step-visual { min-height: 5.1rem; }
  .learning-step-visual img { width: 3.55rem; height: 3.55rem; }
  .learning-steps li > div { padding: .625rem .7rem; }
  .learning-steps strong { font-size: .9rem; }
  .learning-steps p { margin-top: .15rem; font-size: .72rem; line-height: 1.5; }
  .aftercare-note { gap: .12rem .4rem; margin-top: .7rem; padding: .625rem .7rem; }
  .aftercare-note p { font-size: .69rem; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 1.5rem), var(--container)); }
  .section { padding: 1.5rem 0; }
  .day.section { padding: 2.75rem 0 2.5rem; }
  .branches.section { padding: 3.25rem 0 1.75rem; }
  .brand small { display: none; }.brand img { width: 2.75rem; height: 2.75rem; }
  .hero { padding-top: .625rem; }
  .hero-stage { grid-template-rows: auto clamp(15rem, 65vw, 18rem) auto; }
  .hero-copy { padding: 0 0 .375rem; }
  .hero-actions .button { flex: 1 1 0; padding-inline: .625rem; }
  .hero-bonus strong { font-size: .98rem; }
  .hero-campus-label { left: .35rem; right: .35rem; bottom: .35rem; }
  .hero-mascot { width: 4.5rem; right: .3125rem; top: -4.5rem; }
  .benefits { padding-top: .875rem; }
  .benefit-grid { gap: .75rem; }
  .benefit-card { min-height: 6.75rem; padding: .9375rem .9375rem; gap: .75rem; }
  .icon-bubble { width: 4.5rem; height: 4.125rem; }
  .benefit-card h3 { font-size: 1.06rem; }.benefit-card p { font-size: .8rem; }
  /* 只需調字級，裝飾是 em，會自己跟著縮 */
  .section-heading { margin-bottom: 1.125rem; }
  .section-title-row { font-size: 1.9rem; }
  .testimonials .section-title-row::before, .testimonials .section-title-row::after { width: 2rem; }
  .testimonials .section-title-row::before { right: calc(100% + .625rem); }
  .testimonials .section-title-row::after { left: calc(100% + .625rem); }
  /* 手機也採蛇形，讓每一次換排都有明確、短距離的轉折箭頭。 */
  .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .25rem; row-gap: 2.25rem; width: min(100%, 24rem); margin-inline: auto; }
  .timeline li { min-height: 0; padding: 0 .25rem; text-align: center; }
  .timeline li:nth-child(1) { grid-column: 1; grid-row: 1; }
  .timeline li:nth-child(2) { grid-column: 2; grid-row: 1; }
  .timeline li:nth-child(3) { grid-column: 2; grid-row: 2; }
  .timeline li:nth-child(4) { grid-column: 1; grid-row: 2; }
  .timeline li:nth-child(5) { grid-column: 1; grid-row: 3; }
  .timeline li:nth-child(6) { grid-column: 2; grid-row: 3; }
  .timeline li:nth-child(1)::after, .timeline li:nth-child(5)::after { display: block; z-index: 0; top: 1.75rem; right: auto; bottom: auto; left: calc(50% + 3rem); width: calc(100% - 6rem); height: 2.25rem; transform: none; }
  .timeline li:nth-child(3)::after { display: block; z-index: 0; top: 1.75rem; right: calc(50% + 3rem); bottom: auto; left: auto; width: calc(100% - 6rem); height: 2.25rem; transform: scaleX(-1); }
  .timeline li:nth-child(2)::after, .timeline li:nth-child(4)::after { display: block; z-index: 0; top: auto; right: auto; bottom: -2.05rem; left: calc(50% - .875rem); width: 1.75rem; height: 1.8rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 56' preserveAspectRatio='none'%3E%3Cpath d='M14 3 C9 16 19 28 14 42' fill='none' stroke='%234f9a58' stroke-width='3.5' stroke-linecap='round' stroke-dasharray='6 7'/%3E%3Cpath d='M8 41 L14 51 L20 41' fill='none' stroke='%234f9a58' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; transform: none; }
  .timeline li:nth-child(6)::after { display: none; }
  .timeline-icon { position: relative; z-index: 1; width: 5rem; height: 4.625rem; margin: 0 auto .5rem; }
  .gallery-track { grid-auto-columns: 82%; scroll-snap-type: none; }
  .gallery-card { scroll-snap-align: none; }
  .gallery-control { display: none; }
  .section-lead { font-size: .9rem; }
  .day-edge { height: 1.75rem; }
  .tuition-card { padding: 1rem; border-radius: 1.25rem; }
  .tuition-card-heading { align-items: flex-start; gap: .5rem; }
  .tuition-card-heading > div { min-width: 0; }
  .tuition-eyebrow { margin-bottom: .3rem; font-size: .62rem; }
  .tuition-card h3 { font-size: clamp(1.65rem, 8vw, 2.15rem); }
  .tuition-card-tagline { margin-top: .3rem; font-size: .68rem; }
  .tuition-unit-price { gap: .3rem; padding: .55rem .65rem .65rem; border-radius: .8rem .45rem .8rem .45rem; }
  .tuition-unit-price > span { font-size: .66rem; }
  .tuition-unit-price strong { font-size: clamp(2rem, 10vw, 2.6rem); }
  .tuition-unit-price small { font-size: .66rem; }
  .tuition-facts { margin-top: 1rem; padding-block: .75rem; }
  .tuition-facts > div { padding-inline: .3rem; }
  .tuition-facts dt { font-size: .62rem; }
  .tuition-facts dd { font-size: .72rem; }
  .tuition-facts dd strong { font-size: 1.15rem; }
  .tuition-calculation { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .3rem .5rem; padding: .75rem; }
  .tuition-calculation-example { grid-column: 1 / -1; grid-row: 1; justify-self: start; padding: 0; border: 0; font-size: 1.15rem; }
  .tuition-calculation-term { grid-column: 1; grid-row: 2; }
  .tuition-calculation > i:nth-of-type(1) { grid-column: 2; grid-row: 2; }
  .tuition-calculation-price { grid-column: 3; grid-row: 2; }
  .tuition-calculation > i:nth-of-type(2) { grid-column: 1 / -1; grid-row: 3; font-size: 1rem; line-height: .8; text-align: center; }
  .tuition-calculation-total { grid-column: 1 / -1; grid-row: 4; margin: 0; padding: .55rem .75rem; }
  .tuition-included { align-items: flex-start; gap: .6rem; padding-right: 2.25rem; }
  .tuition-included p { font-size: .7rem; }
  .teacher-grid { gap: .75rem; }
  .teacher-card { padding: .8125rem .8125rem 1rem; gap: .75rem; }
  .photo-frame { padding: .75rem; border-width: .125rem; box-shadow: inset 0 0 0 .25rem #fffdf7; }
  .photo-frame::before, .photo-frame::after { width: 2.5rem; height: .875rem; }
  .photo-frame::before { left: -.625rem; top: .75rem; }
  .photo-frame::after { right: -.625rem; bottom: .75rem; }
  .photo-frame-label { font-size: .66rem; }
  .branch-grid { padding: 1rem .875rem; border-radius: 1.5rem; }
  .branch-card { padding: 4.5rem 1rem 1.125rem; border-radius: 1.25rem; }
  .branch-ribbon { width: min(84%, 17rem); top: .625rem; }
  .testimonials.section { padding: 1rem 0 1.5rem; }
  .testimonial-grid { gap: .625rem; }
  .testimonial-grid figure { min-height: 10.375rem; padding: 2.5rem 1.25rem 1.125rem; }
  .contact-inner { grid-template-columns: 6.5625rem minmax(0, 1fr); gap: 1.125rem; padding-top: 1.125rem; }
  .contact-inner > div { min-width: 0; }
  .contact-mascot { width: 6.375rem; margin-top: -1.25rem; }
  .contact-inner h2 { font-size: 1.44rem; line-height: 1.26; word-break: normal; text-wrap: balance; }
  .contact-decoration { width: 1.75rem; margin-top: -.625rem; }
  .contact-actions { grid-template-columns: 1fr; width: 100%; }
  .contact-actions .button { width: 100%; height: 3.25rem; min-height: 3.25rem; padding-block: .5rem; }
  .contact-accent--pencil { display: none; }
  .site-footer { padding-top: 1.625rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid > *, .footer-grid > .footer-branch-panel, .footer-grid > .footer-branch-panel + .footer-branch-panel { padding: 1.25rem 0; border-left: 0; border-bottom: .0625rem solid rgba(255, 255, 255, .14); }
  .footer-grid > .footer-brand { grid-column: auto; padding-top: 0; }
  .footer-grid > :last-child { padding-bottom: 0; border-bottom: 0; }
  .footer-brand { justify-content: flex-start; }
  .footer-qr-links { width: min(100%, 30rem); }
  .footer-qr-frame { width: clamp(5.75rem, 27vw, 7.5rem); }
  .footer-meta { margin-top: 1.25rem; align-items: flex-start; flex-direction: column; gap: .5rem; }
  .copyright { text-align: left; }
}

@media (max-width: 390px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-stage { grid-template-rows: auto 15rem auto; }
  .hero-eyebrow { gap: .4rem; padding-inline: .65rem; letter-spacing: .08em; }
}

@media (min-width: 1280px) {
  :root { --container: 92vw; }
  html { font-size: clamp(1rem, 1.25vw, 1.5rem); }
}

@media (min-width: 2400px) {
  .hero-stage { width: min(calc(100% - 5rem), 104rem); }
  .branch-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr); align-items: center; }
  .branch-card .photo-frame--portrait { aspect-ratio: 1; }
  .branch-ribbon { left: 30%; }
}
