/* Amplify Qi Men: the consult page. Lacquer green and gold for the paid service, the site's celadon for the rest. */
:root {
  --lq: #17211D; --lq-2: #223129; --gold: #E3C07A; --gold-2: #C9A158; --paper: #F2EEE2; --paper-2: #CFC6AF;
  --ground: #DDE7E1; --surface: #EEF3EF; --surface-2: #F6F9F7; --line: #C6D6CD; --line-2: #A9BFB4;
  --ink: #1C2925; --ink-2: #3F5049; --ink-3: #56675F; --jade: #2E6A54; --jade-deep: #22503F; --brass: #7A5213; --cinnabar: #B5462F;
  --serif: "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --g: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.6 var(--sans); overflow-x: hidden; }
.zh { font-family: var(--serif); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* ---------- top bar, sitting on the lacquer ---------- */
.top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 22px var(--g); color: var(--paper); }
.brand { text-decoration: none; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand .m2 { color: var(--gold); font-weight: 400; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--paper-2); transition: color .2s; }
.top-nav a:hover { color: var(--paper); }
.top-nav .top-book { color: var(--gold); font-family: var(--serif); font-size: 16px; }

/* ---------- hero: one statement, one action ---------- */
.hero { position: relative; isolation: isolate; color: var(--paper); text-align: center;
  padding: 150px var(--g) 210px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .85  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(168deg, #24352D 0%, var(--lq-2) 38%, var(--lq) 100%); }
.hero { min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-h { font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 9vw, 112px); line-height: 1.02; letter-spacing: -.015em; }
.hero-h em { font-style: normal; color: var(--gold); }
.hero-p { margin: 26px auto 0; max-width: 34em; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: #D9D3C2; }
.hero-act { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-price { font-size: 15px; color: var(--paper-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-price b { font-family: var(--serif); font-size: 22px; color: var(--paper); font-weight: 600; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-2); }

.btn-wa { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px 16px 22px; border-radius: 12px; text-decoration: none;
  font-family: var(--serif); font-size: 18px; font-weight: 600; color: #1A231F; background: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 248, 225, .6), 0 1px 2px rgba(23, 33, 29, .25); transition: background-color .2s; }
.btn-wa:hover { background: #EDD08F; }
.btn-wa:active { transform: scale(.98); }
.btn-wa .wa { width: 22px; height: 22px; fill: currentColor; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.btn-wa:hover .wa { transform: rotate(-12deg); }

/* ---------- the decision brief: crosses from the hero into the page ---------- */
.brief-wrap { position: relative; z-index: 3; margin: -150px auto 0; max-width: 640px; padding: 0 var(--g); }
.brief { position: relative; padding: 26px 30px 28px; border-radius: 6px; background: var(--surface-2); color: var(--ink);
  transform: rotate(-1.2deg); box-shadow: 0 2px 3px rgba(23, 33, 29, .16), 0 12px 24px -12px rgba(23, 33, 29, .35);
  animation: settle 1s var(--ease) both .2s; }
@keyframes settle { from { transform: translateY(26px) rotate(-3.5deg); } to { transform: rotate(-1.2deg); } }
.brief-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brief-t { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.brief-t .zh { color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.brief-ex { font-size: 12.5px; color: var(--ink-3); }
.brief-q { margin-top: 16px; font-family: var(--serif); font-size: clamp(21px, 3.6vw, 26px); line-height: 1.3; }
.brief-dl { margin: 14px 0 0; display: grid; gap: 10px; }
.brief-dl div { display: grid; grid-template-columns: 70px 1fr; gap: 14px; font-size: 15px; line-height: 1.5; }
.brief-dl dt { font-size: 13px; font-weight: 600; color: var(--jade); padding-top: 2px; }
.brief-dl dd { margin: 0; color: var(--ink-2); }
.brief-dl dd b { color: var(--ink); font-weight: 600; }
/* A cinnabar seal, as on a signed document. */
.brief-seal { position: absolute; right: 22px; bottom: 20px; width: 54px; height: 54px; border-radius: 6px; display: grid; place-items: center;
  border: 2px solid rgba(181, 70, 47, .82); color: rgba(181, 70, 47, .88); transform: rotate(8deg); }
.brief-seal .zh { font-size: 30px; line-height: 1; font-weight: 700; }

/* ---------- sections ---------- */
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; color: var(--ink); }
.get { padding: 96px var(--g) 24px; }
.get-in { max-width: 1040px; margin: 0 auto; }
.get-lead { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5.4vw, 58px); line-height: 1.1; color: var(--jade-deep); }
.get-sub { margin-top: 12px; max-width: 40em; font-size: 17px; color: var(--ink-2); }
.get-cols { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.get-cols h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.get-cols p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.fork { padding: 56px var(--g) 40px; }
.fork-in, .solve-in, .steps-in, .faq-in, .about-in { max-width: 1040px; margin: 0 auto; }
.fork-cols { margin-top: 26px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; }
.fork-free, .fork-paid { padding: 26px 28px 28px; border-radius: 16px; display: grid; align-content: start; gap: 10px; }
.fork-free { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .65); }
.fork-paid { background: linear-gradient(160deg, #24352D, var(--lq)); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(227, 192, 122, .3); }
.fork-k { font-size: 14.5px; color: var(--ink-3); }
.fork-paid .fork-k { color: var(--paper-2); }
.fork-t { font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.2; }
.fork-paid .fork-t { color: var(--gold); }
.fork-p { font-size: 15.5px; color: var(--ink-2); }
.fork-paid .fork-p { color: #D9D3C2; }
.link { margin-top: 6px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 17px; color: var(--jade); text-decoration: none; width: max-content; }
.link-gold { color: var(--gold); }
.arrow { width: 9px; height: 9px; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; border-radius: 0 2px 0 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.link:hover .arrow { transform: translateX(4px) rotate(45deg); }

.solve { padding: 56px var(--g); }
.solve-row { margin-top: 30px; display: grid; grid-template-columns: 96px 1fr; gap: 26px; align-items: start; }
.solve-row + .solve-row { margin-top: 40px; }
.glyph { font-size: 76px; line-height: .9; color: var(--jade); text-align: center; }
.solve-row h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.solve-row p { margin-top: 8px; font-size: 16px; color: var(--ink-2); max-width: 46em; }

.steps { padding: 56px var(--g); }
.step-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-list li { padding: 20px 20px 22px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .65); }
.step-list .n { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--brass); }
.step-list p { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.step-list b { color: var(--ink); font-weight: 600; }

.about { padding: 56px var(--g); }
.about-in { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; max-width: 880px; }
.about-img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 1px var(--line); }
.about p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }

.faq { padding: 56px var(--g); }
.faq-in { max-width: 760px; }
.faq details { margin-top: 10px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.faq details:first-of-type { margin-top: 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-family: var(--serif); font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; flex: none; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3); border-radius: 0 0 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq details p { padding: 0 20px 18px; font-size: 15.5px; color: var(--ink-2); }

/* ---------- the booking receipt: a torn edge along the bottom ---------- */
.close { padding: 64px var(--g) 110px; display: grid; justify-items: center; gap: 18px; }
.ticket { width: min(680px, 100%); padding: 30px 32px 46px; background: var(--surface-2); color: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 33, 29, .12);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; }
.ticket-k { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink-2); text-align: center; }
.ticket-list { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; }
.ticket-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 15px; border-bottom: 1px dashed var(--line-2); }
.ticket-list span { color: var(--ink-3); }
.ticket-list b { font-weight: 600; text-align: right; }
.menu { list-style: none; margin: 18px 0 6px; padding: 0; }
.pkg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 22px; padding: 18px 0; border-bottom: 1px dashed var(--line-2); }
.pkg-t h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.3; }
.pkg-s { margin-top: 2px; font-size: 14px !important; font-weight: 600; color: var(--jade) !important; }
.pkg-s .zh { display: block; margin: 2px 0 0; font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: .12em; }
.pkg-t p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.pkg-p { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; min-width: 4.6em; white-space: nowrap; }
.pkg-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 10px; text-decoration: none;
  font-family: var(--serif); font-size: 16px; font-weight: 600; background: var(--jade); color: #F4F8F5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(34, 80, 63, .3); transition: background-color .2s; }
.pkg-go:hover { background: var(--jade-deep); }
.pkg-go:active { transform: scale(.98); }
.pkg-go .wa { width: 18px; height: 18px; fill: currentColor; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.pkg-go:hover .wa { transform: rotate(-12deg); }
.ticket-small { margin-top: 0; text-align: center; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.close-free { max-width: 32em; text-align: center; font-size: 15.5px; color: var(--ink-2); }
.close-free b { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.close-free a { color: var(--jade); }

.foot { padding: 26px var(--g) 40px; border-top: 1px solid var(--line); background: #D3DFD8; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- phone booking bar ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  :root { --g: 18px; }
  .top-nav a:not(.top-book) { display: none; }
  .hero { padding: 120px var(--g) 190px; }
  .fork-cols, .step-list, .get-cols { grid-template-columns: 1fr; }
  .ticket { padding: 26px 20px 42px; }
  .pkg { grid-template-columns: minmax(0, 1fr) auto; }
  .pkg-t { grid-column: 1 / -1; }
  .pkg-p { text-align: left; font-size: 26px; }
  .get-cols { gap: 16px; }
  .solve-row { grid-template-columns: 64px 1fr; gap: 16px; }
  .glyph { font-size: 54px; }
  .about-in { grid-template-columns: 1fr; gap: 18px; justify-items: start; }
  .about-img { width: 120px; height: 120px; }
  .brief { padding: 22px 20px 26px; }
  .brief-dl div { grid-template-columns: 1fr; gap: 2px; }
  .brief-seal { width: 46px; height: 46px; right: 16px; bottom: 16px; }
  .brief-seal .zh { font-size: 25px; }
  .dock { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-radius: 14px; text-decoration: none; background: var(--gold); color: #1A231F; font-family: var(--serif); font-size: 17px; font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 248, 225, .6), 0 2px 6px -2px rgba(23, 33, 29, .35);
    transform: translateY(140%); transition: transform .45s cubic-bezier(.25, .9, .3, 1); }
  .dock.on { transform: none; }
  .dock .wa { width: 22px; height: 22px; fill: currentColor; }
  .dock b { margin-left: auto; font-weight: 600; }
  .close { padding-bottom: 90px; }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}
/* ---------- motion ---------- */
/* The Qi Men plate behind the headline: earth plate fixed, doors and stars turning. */
.plate { position: absolute; z-index: -1; left: 50%; top: 47%; width: min(1040px, 168vw); height: auto; transform: translate(-50%, -50%);
  pointer-events: none; overflow: visible; font-family: var(--serif); }
.plate circle, .plate line { fill: none; stroke: rgba(227, 192, 122, .15); stroke-width: 1.4; stroke-linecap: round; }
.plate line.lt { stroke: rgba(227, 192, 122, .24); }
.plate text { fill: rgba(227, 192, 122, .2); font-size: 34px; text-anchor: middle; dominant-baseline: central; }
.plate .door { font-size: 44px; fill: rgba(242, 238, 226, .13); transition: fill 1.1s ease; }
.plate .door.lit { fill: rgba(227, 192, 122, .62); }
.plate .star { font-size: 24px; fill: rgba(242, 238, 226, .12); letter-spacing: .05em; }
.plate .pl-mid { font-size: 40px; fill: rgba(227, 192, 122, .18); }

/* The seal stamps when the brief comes into view. Without the class it simply sits there. */
.brief-seal { animation: none; }
.brief-seal.play { animation: stamp .55s cubic-bezier(.3, 1.4, .5, 1) both .25s; }
@keyframes stamp { 0% { transform: rotate(14deg) scale(1.7); opacity: .25; } 70% { opacity: 1; } 100% { transform: rotate(8deg) scale(1); opacity: 1; } }

/* Three drawings for what you get. They rest in their final pose and play once in view. */
.gi { display: block; width: 64px; height: 64px; margin-bottom: 12px; overflow: visible; }
.gi-face { fill: none; stroke: var(--jade); stroke-width: 1.6; opacity: .55; }
.gi-tick { stroke: var(--jade); stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.gi-pin { fill: var(--jade-deep); }
.gi-shadow { fill: none; stroke: var(--jade-deep); stroke-width: 3; stroke-linecap: round; transform-origin: 32px 32px; transform: rotate(120deg); }
.play .gi-shadow { animation: sweep 1.6s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes sweep { from { transform: rotate(-70deg); } to { transform: rotate(120deg); } }
.gi-needle { transform-origin: 32px 32px; transform: rotate(45deg); }
.gi-n { fill: var(--cinnabar); }
.gi-s { fill: var(--jade-deep); opacity: .55; }
.play .gi-needle { animation: swing 1.8s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes swing { 0% { transform: rotate(-80deg); } 35% { transform: rotate(78deg); } 55% { transform: rotate(30deg); } 72% { transform: rotate(53deg); } 86% { transform: rotate(42deg); } 100% { transform: rotate(45deg); } }
.gi-cell { fill: transparent; stroke: var(--jade); stroke-width: 1.6; opacity: .75; }
.gi-risk { fill: var(--cinnabar); stroke: var(--cinnabar); opacity: .9; }
.play .gi-cell:not(.gi-risk) { animation: flick .5s ease both; animation-delay: calc(var(--i) * 110ms); }
.play .gi-risk { animation: risk 1.5s ease both; }
@keyframes flick { 0%, 100% { fill: transparent; } 40% { fill: rgba(46, 106, 84, .35); } }
@keyframes risk { 0%, 60% { fill: transparent; stroke: var(--jade); } 100% { fill: var(--cinnabar); stroke: var(--cinnabar); } }

/* The service glyph at the middle of the screen darkens; the others rest a shade lighter but stay readable. */
.glyph { color: #5E8C79; transition: color .5s ease, transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.solve-row.live .glyph { color: var(--jade-deep); transform: scale(1.08); }

/* Steps rise into place, one after another. They are visible the whole time. */
.step-list.play li { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.step-list.play li:nth-child(2) { animation-delay: .09s; }
.step-list.play li:nth-child(3) { animation-delay: .18s; }
.step-list.play li:nth-child(4) { animation-delay: .27s; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

/* The receipt feeds down like a printed slip. */
.ticket.play { animation: feed .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes feed { 0% { transform: translateY(-22px); } 60% { transform: translateY(3px); } 100% { transform: none; } }

@media (max-width: 760px) {
  .plate { top: 44%; width: 190vw; }
  .plate .pl-earth text, .plate .star, .plate .pl-mid { display: none; }
  .hero-price { row-gap: 4px; }
  .hero-price b { flex-basis: 100%; text-align: center; }
  .plate .door.lit { fill: rgba(227, 192, 122, .5); }
}
@media (prefers-reduced-motion: reduce) {
  .plate .door { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

