:root {
  --orange: #FF5A1F;
  --orange-2: #FF7A45;
  --orange-soft: #FFEDE4;
  --ink: #1A1410;
  --ink-2: #5A4E47;
  --paper: #FFFFFF;
  --mist: #FFF6F1;
  --line: #F2E1D7;
  --pw: clamp(380px, 36vw, 520px);   /* narrow content card */
  --pr: calc(104px + clamp(24px, 7vw, 140px)); /* right margin: dock + air */
  --gl: clamp(28px, 5vw, 96px);      /* left page edge */
  --hd: 84px;                        /* header height */
  --r: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --en: "Montserrat", "Noto Sans TC", sans-serif;
  --zh: "Noto Sans TC", "PingFang TC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; }
body {
  margin: 0; background: var(--ink); color: var(--ink);
  font-family: var(--zh); font-size: 15px; line-height: 2; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ================= Preloader ================= */
.loader { position: fixed; inset: 0; z-index: 100; color: #fff; }
.loader__panel { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--orange); transition: transform 1.1s var(--ease-io); }
.loader__panel--a { left: 0; }
.loader__panel--b { right: 0; }
.loader__inner { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; transition: opacity .5s, transform .8s var(--ease); }
.loader__mark { width: 92px; overflow: visible; }
.loader__mark .m { fill: #fff; transform-box: fill-box; }
.m1 { transform-origin: 50% 100%; animation: growY .7s var(--ease) .15s both; }
.m2 { animation: wipe .7s var(--ease) .55s both; }
.m3 { transform-origin: 50% 100%; animation: growY .6s var(--ease) .95s both; }
.m4 { transform-origin: 50% 50%; animation: pop .6s cubic-bezier(.34, 1.8, .5, 1) 1.3s both; }
@keyframes growY { from { transform: scaleY(0); } }
@keyframes wipe { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0); } }
@keyframes pop { from { transform: scale(0); } }
.loader__word { display: flex; gap: .18em; font: 800 44px/1 var(--en); letter-spacing: .12em; overflow: hidden; padding-top: 4px; }
.loader__word span { display: inline-block; animation: rise .8s var(--ease) both; }
.loader__word span:nth-child(1) { animation-delay: 1.25s; }
.loader__word span:nth-child(2) { animation-delay: 1.32s; }
.loader__word span:nth-child(3) { animation-delay: 1.39s; }
.loader__word span:nth-child(4) { animation-delay: 1.46s; }
@keyframes rise { from { transform: translateY(110%); } }
.loader__sub { font-size: 13px; letter-spacing: .5em; font-weight: 500; animation: fade .8s ease 1.7s both; }
@keyframes fade { from { opacity: 0; } }
.loader__foot { position: absolute; left: 40px; right: 40px; bottom: 36px; display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--en); transition: opacity .4s; }
.loader__tag { font-size: 11px; letter-spacing: .3em; font-weight: 600; opacity: .85; }
.loader__count { font-size: 14px; font-weight: 600; }
.loader__count b { font-size: 64px; font-weight: 300; line-height: .8; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); transition: opacity .4s; }
.loader__bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
body.is-loaded .loader { pointer-events: none; }
body.is-loaded .loader__inner { opacity: 0; transform: translateY(-40px); }
body.is-loaded .loader__foot, body.is-loaded .loader__bar { opacity: 0; }
body.is-loaded .loader__panel { transform: translateY(-100%); transition-delay: .35s; }
body.is-loaded .loader__panel--b { transition-delay: .47s; }

/* ================= Backdrop ================= */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg__img { position: absolute; inset: 0; background: var(--img) center / cover no-repeat; opacity: 0; transform: scale(1.1); transition: opacity 1.2s var(--ease), transform 2.4s var(--ease); }
.bg__img.is-active { opacity: 1; transform: scale(1); }
.bg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg__veil { position: absolute; inset: 0; transition: opacity 1.2s; background: linear-gradient(90deg, rgba(26, 20, 16, .6) 0%, rgba(26, 20, 16, .25) 50%, rgba(26, 20, 16, .15) 100%); }
body[data-scene="hero"] .bg__veil { opacity: .55; background: linear-gradient(20deg, rgba(26, 20, 16, .75) 0%, rgba(26, 20, 16, 0) 60%); }
.bg::after { content: ""; position: absolute; inset: 0; background: var(--orange); mix-blend-mode: soft-light; opacity: .28; }

/* ================= Header (minimal) ================= */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--hd);
  display: flex; align-items: center; gap: 20px; padding: 0 24px 0 28px; color: #fff;
  transition: background .4s, transform .9s var(--ease), opacity .6s;
}
.hd.is-scrolled { background: rgba(26, 20, 16, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* scrim keeps the white logo / MENU readable on bright photos before the bar turns solid */
.hd::before { content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(26, 20, 16, .55), rgba(26, 20, 16, 0)); transition: opacity .4s; }
.hd.is-scrolled::before, body.menu-open .hd::before { opacity: 0; }
body.is-loading .hd { opacity: 0; transform: translateY(-100%); }
.hd__logo { margin-right: auto; }
.hd__logo img { width: 124px; height: auto; }
.hd__tel { display: flex; align-items: center; gap: 8px; font: 500 15px var(--en); letter-spacing: .04em; }
.hd__tel svg { width: 15px; fill: #fff; }
.hd__cta { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 700; transition: background .3s, color .3s; }
.hd__cta span { transition: transform .4s var(--ease); }
.hd__cta:hover { background: #fff; color: var(--orange); }
.hd__cta:hover span { transform: translateX(4px); }
.burger { position: relative; z-index: 60; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer; color: #fff; }
.burger__txt { font: 600 11px var(--en); letter-spacing: .3em; }
.burger__lines { position: relative; width: 36px; height: 12px; }
.burger__lines i { position: absolute; right: 0; height: 2px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease), width .5s var(--ease); }
.burger__lines i:first-child { top: 0; width: 100%; }
.burger__lines i:last-child { top: 10px; width: 60%; }
.burger:hover .burger__lines i:last-child { width: 100%; }
body.menu-open .burger__lines i { width: 100%; top: 5px; }
body.menu-open .burger__lines i:first-child { transform: rotate(25deg); }
body.menu-open .burger__lines i:last-child { transform: rotate(-25deg); }
/* header rides above the open menu so the close (✕) button stays reachable */
body.menu-open .hd { z-index: 60; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .hd__logo img { filter: brightness(0) invert(1); } /* orange mark would vanish on the orange menu */
body.menu-open .hd__cta, body.menu-open .hd__tel { opacity: 0; pointer-events: none; }

/* ================= Right dock: vertical orange capsule nav ================= */
.dock {
  position: fixed; right: 24px; top: 50%; z-index: 30; width: 64px; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 10px;
  background: var(--orange); border-radius: 999px; box-shadow: 0 16px 40px rgba(26, 20, 16, .28);
  transition: transform .9s var(--ease), opacity .6s;
}
body.is-loading .dock { transform: translate(160%, -50%); }
.dock > a:not(.dock__tel) {
  position: relative; writing-mode: vertical-rl; width: 48px; padding: 16px 0; border-radius: 999px;
  display: flex; align-items: center; font-size: 16px; font-weight: 700; letter-spacing: .18em; line-height: 48px;
  color: rgba(255, 255, 255, .92); transition: background .3s, color .3s;
}
/* thin divider between items */
.dock > a:not(.dock__tel) + a:not(.dock__tel)::before { content: ""; position: absolute; top: -5px; left: 30%; right: 30%; height: 1px; background: rgba(255, 255, 255, .4); }
.dock > a:not(.dock__tel):hover { background: rgba(255, 255, 255, .18); color: #fff; }
/* current section: solid white pill, readable at a glance */
.dock > a.is-active, .dock > a.is-active:hover { background: #fff; color: var(--orange); }
.dock > a.is-active::before, .dock > a.is-active + a::before { opacity: 0; }
.dock__tel { width: 44px; height: 44px; margin-top: 4px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .4s var(--ease); }
.dock__tel svg { width: 18px; fill: var(--orange); }
@media (max-height: 640px) { .dock > a:not(.dock__tel) { font-size: 14px; padding: 10px 0; } .dock { gap: 4px; } }
.dock__tel:hover { transform: scale(1.1); }
.dock__tel { border: 0; padding: 0; cursor: pointer; }
.dock__tel[aria-expanded="true"] { box-shadow: 0 0 0 4px rgba(255, 255, 255, .45); }
/* phone popover, opens to the left of the dock's phone button */
.telpop {
  position: absolute; right: calc(100% + 16px); bottom: 6px; display: grid; gap: 2px;
  padding: 14px 20px 14px 18px; border-radius: 14px; background: #fff; color: var(--ink); white-space: nowrap;
  box-shadow: 0 18px 40px rgba(26, 20, 16, .28); animation: popIn .35s var(--ease);
}
.telpop::after { content: ""; position: absolute; right: -6px; bottom: 22px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.telpop small { font: 700 11px var(--en); letter-spacing: .25em; color: var(--orange); }
.telpop a { font: 600 22px var(--en); letter-spacing: .04em; }
.telpop a:hover { color: var(--orange); }
.telpop span { font-size: 12px; color: var(--ink-2); }
@keyframes popIn { from { opacity: 0; transform: translateX(8px); } }

/* ================= Hero ================= */
.hero { position: relative; z-index: 2; height: 100vh; height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--pr) clamp(96px, 14vh, 160px) var(--gl); color: #fff; }
.hero__copy { display: grid; justify-items: start; font-weight: 400; opacity: calc(1 - var(--hp, 0) * 1.4); transform: translateY(calc(var(--hp, 0) * -80px)); }
.hero__tag { font: 600 12px var(--en); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; opacity: 0; transition: opacity 1s .2s; }
.hero__tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.hero__line { display: block; overflow: hidden; padding: .02em 0; font: 300 clamp(44px, 8vw, 136px)/.98 var(--en); letter-spacing: .01em; }
.hero__line .w { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.hero__line b.w { font-weight: 800; color: var(--orange); transition-delay: .12s; }
.hero__sub { margin-top: 24px; font-size: clamp(14px, 1.4vw, 19px); font-weight: 700; letter-spacing: .24em; opacity: 0; transform: translateY(12px); transition: opacity 1s .6s, transform 1s var(--ease) .6s; }
body.is-ready .hero__tag, body.is-ready .hero__sub { opacity: 1; transform: none; }
body.is-ready .hero__line .w { transform: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 36px; display: grid; justify-items: center; gap: 10px; font: 600 10px var(--en); letter-spacing: .3em; }
.hero__scroll i { width: 1px; height: 48px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ================= Panel & scenes: narrow card right of centre, sticky vertical title beside it ================= */
.panel { position: relative; z-index: 2; padding: 0 var(--pr) 120px var(--gl); }
.scene { display: grid; grid-template-columns: minmax(0, 1fr) auto var(--pw); column-gap: 28px; padding-top: 70vh; }
.scene:first-child { padding-top: 14vh; }
.scene__head {
  grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: calc(var(--hd) + 28px);
  writing-mode: vertical-rl; display: flex; align-items: flex-start; gap: 14px; color: #fff;
}
.scene__head.rv { opacity: 1; transform: none; }
.scene__head small { font: 700 13px var(--zh); letter-spacing: .3em; display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity .8s .3s; }
.scene__head small::before { content: ""; width: 2px; height: 32px; background: var(--orange); }
.scene__head h2 { font: 800 clamp(44px, 5vw, 80px)/1 var(--en); letter-spacing: .04em; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.scene__head.is-in small { opacity: 1; }
.scene__head.is-in h2 { clip-path: inset(0 -10% 0 -10%); }
.scene__body { grid-column: 3; grid-row: 1; position: relative; background: var(--paper); border-radius: 20px; padding: 56px clamp(24px, 3vw, 44px) 68px; box-shadow: 0 24px 60px rgba(26, 20, 16, .18); }
.scene__body::before { content: ""; position: absolute; top: 0; left: clamp(24px, 3vw, 44px); width: 48px; height: 4px; background: var(--orange); border-radius: 0 0 4px 4px; }


.block + .block { margin-top: 64px; padding-top: 52px; border-top: 1px solid var(--line); }
.dot { position: relative; padding-left: 20px; font-size: 16px; font-weight: 700; color: var(--orange); letter-spacing: .12em; margin-bottom: 24px; }
.dot::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--orange); }
.lead { font-size: 22px; font-weight: 900; line-height: 1.7; margin-bottom: 24px; letter-spacing: .06em; }
.scene__body p + p { margin-top: 1.4em; }
h4 { font-size: 15px; color: var(--orange); margin: 36px 0 12px; }

.naming { margin-top: 36px; border: 1.5px solid var(--line); border-radius: 16px; padding: 24px; }
.naming__eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 300 26px/1.3 var(--en); margin-bottom: 12px; }
.naming__eq i { font-style: normal; opacity: .4; }
.naming__eq b { font-weight: 800; color: var(--orange); letter-spacing: .06em; }
.naming p:not(.naming__eq) { font-size: 14px; color: var(--ink-2); }
.naming p + p { margin-top: .8em; }

.quote { position: relative; margin: 0; padding-top: 44px; }
.quote::before { content: "\201C"; position: absolute; top: -18px; left: -4px; font: 800 96px/1 var(--en); color: var(--orange); }
.quote p { font-size: 16px; }
.sign { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); line-height: 1.5; }
.sign__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.sign small { display: block; font-size: 12px; color: var(--ink-2); }
.sign strong { display: block; font-size: 20px; letter-spacing: .25em; }
.sign em { font: 600 11px var(--en); font-style: normal; letter-spacing: .2em; color: var(--orange); }

.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0; }
.profile > div { background: #fff; padding: 14px 16px; }
.profile > div:last-child { grid-column: 1 / -1; }
.profile dt { font-size: 12px; font-weight: 700; color: var(--orange); }
.profile dd { font-size: 14px; line-height: 1.7; }
.years { border-left: 2px solid var(--orange-soft); margin-left: 5px; }
.years li { position: relative; display: flex; gap: 14px; padding: 8px 0 8px 22px; font-size: 14px; line-height: 1.7; }
.years li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.years b { font: 700 14px var(--en); color: var(--orange); min-width: 44px; }

/* services: cards floating over photo */
.scene[data-scene="services"] .scene__body { background: none; padding: 0; box-shadow: none; }
.intro { background: var(--paper); border-radius: 24px; padding: 32px clamp(24px, 3vw, 44px); font-weight: 700; line-height: 1.9; }
.svc > li { position: relative; background: var(--paper); border-radius: 24px; margin-top: 16px; padding: 36px clamp(24px, 3vw, 44px) 32px; overflow: hidden; }
.svc__no { position: absolute; right: 20px; top: 6px; font: 800 72px/1 var(--en); color: transparent; -webkit-text-stroke: 1.5px var(--orange); opacity: .5; }
.svc h3 { font-size: 21px; font-weight: 900; margin-bottom: 12px; letter-spacing: .1em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: 12px; padding: 2px 12px; background: var(--orange-soft); color: var(--orange); border-radius: 99px; }
.more { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--orange); border-bottom: 2px solid; line-height: 1.6; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 32px 1fr 20px; align-items: center; padding: 20px 0; font-weight: 700; line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font: 700 18px var(--en); font-style: normal; color: var(--orange); }
.faq summary::after { content: "+"; font: 300 24px/1 var(--en); color: var(--orange); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px 32px; color: var(--ink-2); }
.faq details[open] > div { animation: drop .5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

.scene__body--brand { background: var(--orange); color: #fff; padding-top: 56px; padding-bottom: 56px; }
.scene__body--brand > p { margin: 24px 0 20px; font-weight: 700; }
.scene__body--brand address { font-style: normal; font-size: 13px; line-height: 2; margin: 36px 0 20px; }
.btn { display: inline-block; border: 1px solid #fff; border-radius: 999px; padding: 8px 28px; font-size: 13px; font-weight: 700; letter-spacing: .15em; transition: background .3s, color .3s; }
.btn:hover { background: #fff; color: var(--orange); }
.btn--white { background: #fff; color: var(--orange); padding: 12px 28px; font-size: 15px; }
.btn--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.copy { display: block; margin-top: 48px; font: 400 11px var(--en); opacity: .7; letter-spacing: .1em; }

.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

.mbar { display: none; }

/* ================= Menu (full-screen) ================= */
.menu {
  position: fixed; inset: 0; z-index: 50; visibility: hidden; background: var(--orange); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hd) + 32px) max(24px, var(--gl)) 40px; overflow-y: auto; text-align: center;
  clip-path: circle(0 at calc(100% - 60px) 42px); transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.menu__list { display: grid; justify-items: center; }
.menu__list a { display: flex; align-items: baseline; justify-content: center; gap: 16px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 900; line-height: 1.9; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s var(--ease); }
.menu__list a:hover { opacity: .75 !important; }
.menu__list small { font: 600 12px var(--en); opacity: .75; }
.menu__list .hl { margin-top: 16px; padding: 4px 24px; background: #fff; color: var(--orange); border-radius: 999px; font-size: 16px; }
.menu__foot { font-size: 13px; line-height: 1.9; margin-top: 40px; }
.menu__foot > a { font: 400 24px var(--en); display: block; margin-bottom: 6px; }
body.menu-open { overflow: hidden; }
body.menu-open .menu { visibility: visible; clip-path: circle(150% at calc(100% - 60px) 42px); transition: clip-path .8s var(--ease-io); }
body.menu-open .menu__list a { opacity: 1; transform: none; }
body.menu-open .menu__list a:nth-child(1) { transition-delay: .3s; }
body.menu-open .menu__list a:nth-child(2) { transition-delay: .36s; }
body.menu-open .menu__list a:nth-child(3) { transition-delay: .42s; }
body.menu-open .menu__list a:nth-child(4) { transition-delay: .48s; }
body.menu-open .menu__list a:nth-child(5) { transition-delay: .54s; }
body.menu-open .menu__list a:nth-child(6) { transition-delay: .6s; }

/* ================= Register page ================= */
.reg .hd { background: rgba(26, 20, 16, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.reg .panel { padding-top: calc(var(--hd) + 48px); }
.reg .scene { padding-top: 0; }
.reg .scene__head { display: none; }
.reg .progress { top: var(--hd); }
#regForm { scroll-margin-top: var(--hd); }
.side {
  position: fixed; z-index: 5; top: calc(var(--hd) + 48px); bottom: 32px; left: var(--gl);
  width: calc(100vw - var(--gl) - var(--pr) - var(--pw) - 56px);
  display: flex; flex-direction: column; color: #fff; overflow-y: auto; scrollbar-width: none;
}
.side small { display: flex; align-items: center; gap: 12px; font: 700 12px var(--en); letter-spacing: .25em; }
.side small::before { content: ""; width: 36px; height: 2px; background: var(--orange); }
.side h2 { margin-top: 12px; font: 800 clamp(36px, 4vw, 64px)/.95 var(--en); letter-spacing: .02em; }
.side > p { margin-top: 12px; font-size: 14px; font-weight: 700; letter-spacing: .2em; }
.steps { margin-top: 28px; display: grid; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; opacity: .55; transition: opacity .4s; }
.steps li b { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #fff; display: grid; place-items: center; font: 700 11px var(--en); transition: background .4s, border-color .4s; }
.steps li.is-done { opacity: .85; cursor: pointer; }
.steps li.is-done b { background: #fff; color: var(--orange); }
.steps li.is-current { opacity: 1; }
.steps li.is-current b { background: var(--orange); border-color: var(--orange); }
.side__tip:not(:empty) { margin-top: 28px; color: var(--ink); max-width: 380px; }
.side__tip .tip { margin: 0; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(26, 20, 16, .25); animation: tipIn .7s var(--ease); }
@keyframes tipIn { from { opacity: 0; transform: translateY(12px); } }
@media (min-width: 961px) { .reg .step .tip { display: none; } }


/* ================= Register form ================= */
.guide ol { counter-reset: g; margin: 8px 0 8px; }
.guide ol li { position: relative; padding: 0 0 18px 44px; line-height: 1.8; }
.guide ol li::before { counter-increment: g; content: counter(g); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font: 700 12px var(--en); }
.guide ol li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
.guide ol b { display: block; }
.guide ol small { color: var(--ink-2); font-size: 13px; }
.docs { background: var(--mist); border-radius: 14px; padding: 20px 22px; margin: 24px 0 32px; }
.docs h4 { margin: 0 0 8px; }
.docs li { position: relative; padding-left: 26px; font-size: 14px; line-height: 2; }
.docs li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.note { font-size: 12px; color: var(--ink-2); line-height: 1.8; margin-top: 16px; }

.progress { position: sticky; top: 0; z-index: 3; background: var(--paper); padding: 16px 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; font: 700 12px var(--en); color: var(--orange); }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i::after { content: ""; display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--prog, 0)); transition: transform .6s var(--ease); }

.step { display: none; padding-top: 24px; }
.step.is-current { display: block; animation: fade .5s; }
/* slide children, not the fieldset: a transformed fieldset would trap the fixed-position tip */
.step.is-current > :not(.tip) { animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
.step legend { font-size: 22px; font-weight: 900; line-height: 1.5; padding: 0; margin-bottom: 6px; }
.step legend small { display: block; font: 700 12px var(--en); color: var(--orange); letter-spacing: .2em; }
.step .desc { color: var(--ink-2); font-size: 14px; margin-bottom: 20px; }

.tip { background: var(--orange-soft); border-radius: 14px; padding: 18px 20px; margin-bottom: 24px; font-size: 13px; line-height: 1.9; }
.tip strong { display: flex; align-items: center; gap: 8px; color: var(--orange); font-size: 14px; margin-bottom: 4px; }
.tip strong::before { content: "i"; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font: 700 12px var(--en); }
.tip ul { margin-top: 6px; }
.tip li { position: relative; padding-left: 14px; }
.tip li::before { content: ""; position: absolute; left: 0; top: .85em; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.tip a { color: var(--orange); text-decoration: underline; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > span, .label { font-size: 14px; font-weight: 700; }
.field > span em, .label em { font-style: normal; color: var(--orange); margin-left: 4px; }
.field small { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.in, .field input, .field select, .field textarea {
  width: 100%; font: 500 16px var(--zh); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus, .in:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 90, 31, .15); }
.field input:user-invalid, .field select:user-invalid { border-color: #D33; }
.affix { display: flex; align-items: center; gap: 8px; }
.affix b { font: 700 13px var(--en); color: var(--ink-2); }

.choices { display: grid; gap: 10px; margin-bottom: 18px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 46px; line-height: 1.6; transition: border-color .3s, background .3s; }
.choice > span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #CDB9AD; background: #fff; transition: border .3s; }
.choice input[type="checkbox"] + span::before { border-radius: 5px; }
.choice b { display: block; font-size: 15px; }
.choice small { display: block; font-size: 12px; color: var(--ink-2); }
.choice code { font: 600 11px var(--en); color: var(--orange); margin-right: 6px; }
.choice:hover > span { border-color: #F5BFA6; }
.choice input:checked + span { border-color: var(--orange); background: var(--mist); }
.choice input:checked + span::before { border: 6px solid var(--orange); }
.choice input[type="checkbox"]:checked + span::before { border: 0; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 90, 31, .2); }
.choice--sm > span { padding: 10px 12px 10px 40px; font-size: 13px; }
.choice--sm > span::before { left: 12px; top: 13px; }

.holders { display: grid; gap: 10px; margin-bottom: 10px; }
.holder { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: center; }
.holder button { width: 40px; height: 44px; border: 0; background: none; color: var(--ink-2); font-size: 20px; cursor: pointer; border-radius: 10px; }
.holder button:hover { background: var(--mist); color: var(--orange); }
.add { border: 1.5px dashed var(--orange); background: none; color: var(--orange); border-radius: 10px; padding: 10px; width: 100%; font: 700 14px var(--zh); cursor: pointer; }
.sum { font-size: 13px; margin: 10px 0 18px; padding: 10px 14px; border-radius: 10px; background: var(--mist); }
.sum.is-bad { background: #FFF0F0; color: #C22; }

.review { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.review section { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.review section:last-child { border-bottom: 0; }
.review h5 { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 13px; color: var(--orange); }
.review h5 button { border: 0; background: none; color: var(--ink-2); font: 700 12px var(--zh); cursor: pointer; text-decoration: underline; }
.review p { font-size: 14px; line-height: 1.8; white-space: pre-line; }

.actions { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 16px 0 20px; background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0)); margin-top: 16px; }
.actions button { flex: 1; font: 700 15px var(--zh); border-radius: 999px; padding: 13px; cursor: pointer; border: 1.5px solid var(--orange); transition: background .3s, color .3s; }
.b-prev { background: #fff; color: var(--orange); flex: 0 0 34% !important; }
.b-next { background: var(--orange); color: #fff; }
.b-next:hover { background: var(--ink); border-color: var(--ink); }
.b-prev:hover { background: var(--mist); }
.b-start { display: block; width: 100%; text-align: center; background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: 15px; font: 700 16px var(--zh); cursor: pointer; }
.b-start:hover { background: var(--ink); }

.done { text-align: center; padding: 32px 0; }
.done__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; animation: pop .6s cubic-bezier(.34, 1.8, .5, 1); }
.done__icon svg { width: 34px; fill: none; stroke: #fff; stroke-width: 3; }
.done h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.done ol { text-align: left; margin: 24px 0; }

/* ================= Mobile ================= */
@media (max-width: 960px) {
  :root { --pw: 100%; --pr: 0px; --gl: 0px; --hd: 64px; }
  body { font-size: 14px; }
  .hd { padding: 0 8px 0 16px; gap: 8px; }
  .hd__tel, .hd__cta, .burger__txt, .dock { display: none; }
  .hd__logo img { width: 100px; }

  .hero { padding: 0 16px 130px; }
  body[data-scene="hero"] .bg__veil { opacity: 1; background: linear-gradient(to top, rgba(26, 20, 16, .78) 0%, rgba(26, 20, 16, .35) 45%, rgba(26, 20, 16, 0) 70%); }
  .hero__line { font-size: clamp(40px, 13vw, 72px); }
  .hero__scroll { display: none; }

  .panel { padding: 0 0 96px; }
  .scene { display: block; padding-top: 42vh; }
  .scene:first-child { padding-top: 30vh; }
  .scene__head { position: static; writing-mode: horizontal-tb; flex-direction: column; gap: 8px; padding: 0 16px 24px; }
  .scene__head small::before { width: 32px; height: 2px; }
  .scene__head h2 { font-size: clamp(48px, 15vw, 80px); clip-path: inset(0 0 100% 0); }
  .scene__head.is-in h2 { clip-path: inset(-10% 0 -10% 0); }
  .scene__body { margin: 0 10px; border-radius: 20px; padding: 40px 20px 52px; }
  .scene[data-scene="services"] .scene__body { padding: 0; }
  .profile { grid-template-columns: 1fr; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: rgba(26, 20, 16, .85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .9s var(--ease);
  }
  .mbar > a, .mbar > button { font-family: inherit; background: none; cursor: pointer; text-align: center; padding: 12px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
  .mbar .mbar__cta { background: var(--orange); border-color: var(--orange); }
  .mbar__tel[aria-expanded="true"] { background: rgba(255, 255, 255, .15) !important; }
  /* phone popover above the mobile bar, pointing at 來電諮詢 */
  .telpop--up { right: auto; left: 10px; bottom: calc(100% + 10px); }
  .telpop--up::after { right: auto; left: 44px; bottom: -6px; }
  body.is-loading .mbar { transform: translateY(100%); }

  .loader__foot { left: 20px; right: 20px; bottom: 24px; }
  .loader__count b { font-size: 44px; }
  .loader__tag { font-size: 9px; }

  .choices--2 { grid-template-columns: 1fr; }
  .side { display: none; }
  .reg .panel { padding: calc(var(--hd) + 8px) 0 40px; }
  .reg .scene__head { display: block; padding-top: 24px; }
  .reg .progress { top: var(--hd); }
  #regForm { scroll-margin-top: var(--hd); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
