/* Golden Lai · goldenlai.com
   Palette: black base, deep grey surfaces, one gold. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --black: #000000;
  --grey-900: #0f0f0f;
  --grey-800: #161616;
  --grey-700: #1f1f1f;
  --grey-600: #2a2a2a;
  --grey-500: #3a3a3a;
  --gold: #C9A227;
  --gold-light: #E9CF7A;
  --gold-deep: #8A6D1F;
  --gold-dim: rgba(201, 162, 39, .18);
  --gold-line: rgba(201, 162, 39, .35);
  --ivory: #F2EAD8;
  --ivory-70: rgba(242, 234, 216, .72);
  --ivory-50: rgba(242, 234, 216, .5);
  --red: #B3261E;
  --wa: #25D366;

  --font-display: "Cormorant Garamond", Georgia, "Songti SC", "STSong", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-cn: "Songti SC", "STSong", "SimSun", "PingFang SC", serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

.lang-zh {
  --font-display: "Noto Serif SC", "Cormorant Garamond", serif;
  --font-body: "Noto Sans SC", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--black); color: var(--ivory);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip; max-width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--ivory); letter-spacing: .005em; }
h1, h2, h3, .stat-num { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lang-zh h1 { font-weight: 700; line-height: 1.25; }
.lang-zh .hero h1 { word-break: keep-all; overflow-wrap: anywhere; }
.lang-zh h2, .lang-zh h3 { font-weight: 700; }
.lang-en h1 { font-weight: 500; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.hero-grid > *, .about-grid > *, .product-grid > *, .contact-grid > *, .svc-layout > *, .about-page > *, .product-hero-grid > * { min-width: 0; }
section[id] { scroll-margin-top: 80px; }
.narrow { width: min(820px, 100% - var(--gutter) * 2); }
.center { text-align: center; margin-top: 2.5rem; }
.lead { font-size: 1.15rem; color: var(--ivory-70); }
.note { font-size: .9rem; color: var(--ivory-50); margin-top: 1.5rem; }
.skip { position: absolute; left: var(--gutter); top: 8px; transform: translateY(-160%); background: var(--gold); color: var(--black); padding: .5rem 1rem; z-index: 100; }
.skip:focus { transform: none; }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- icons ---- */
.ic { width: 22px; height: 22px; flex: none; }
.ic--btn { width: 19px; height: 19px; }
.ic--chev { width: 20px; height: 20px; transition: transform .3s var(--ease); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  cursor: pointer; border: 1px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep)); color: var(--black); }
.btn--gold:hover { color: var(--black); transform: translateY(-1px); filter: brightness(1.06); }
.btn--ghost { border-color: var(--gold-line); color: var(--ivory); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); background: var(--gold-dim); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.cta-stack { display: grid; gap: .6rem; margin-top: 1rem; }
.link { color: var(--gold-light); font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--gold-line); padding-bottom: 2px; }
.link:hover { border-color: var(--gold); }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; max-width: 100%; background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(201, 162, 39, .18); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ivory); }
.brand-coin { display: block; width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.footer-brand .brand-coin { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-cn); font-size: 1.25rem; font-weight: 700; color: var(--gold-light); letter-spacing: .04em; }
.brand-sub { font-size: .72rem; color: var(--ivory-50); letter-spacing: .08em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav a { color: var(--ivory-70); font-size: .93rem; font-weight: 500; padding: .4rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ivory); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.lang { font-size: .9rem; font-weight: 600; color: var(--ivory-70); padding: .4rem .6rem; border: 1px solid var(--grey-600); border-radius: var(--radius); }
.lang:hover { color: var(--gold-light); border-color: var(--gold-line); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--gold-light); transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { display: none; }
.drawer[hidden] { display: none; }
@media (max-width: 1200px) {
  .nav { display: none; }
  .burger { display: flex; }
  .lang { display: none; }
  .drawer:not([hidden]) { display: block; border-top: 1px solid var(--grey-700); padding: 1rem var(--gutter) 1.5rem; background: var(--grey-900); }
  .drawer ul { list-style: none; margin: 0 0 1rem; padding: 0; }
  .drawer ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--grey-700); color: var(--ivory); font-size: 1.05rem; }
}
@media (max-width: 560px) { .brand-sub { display: none; } .header-actions .btn--sm span { display: none; } .header-actions .btn--sm { padding: .5rem .7rem; } }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 2rem; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-copy { max-width: 600px; }
.hero-name { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.hero-name-zh { font-family: var(--font-cn); font-size: 1.35rem; font-weight: 700; color: var(--gold-light); letter-spacing: .06em; }
.hero-motto { font-family: var(--font-cn); font-size: .95rem; color: var(--ivory-50); letter-spacing: .12em; }
.hero h1 { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .12em; }
.hero-places { display: block; white-space: nowrap; font-size: clamp(1.45rem, 2.55vw, 2.35rem); letter-spacing: .02em; }
.hero-role { display: block; font-size: clamp(2rem, 4.2vw, 3.35rem); }
@media (max-width: 430px) { .hero-places { white-space: normal; } }
.hero-lead { font-size: 1.12rem; color: var(--ivory-70); max-width: 54ch; }
.chips { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.chips li { font-size: .85rem; color: var(--ivory-50); padding-left: .9rem; position: relative; }
.chips li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.hero-visual { position: relative; width: min(100%, 560px); margin-inline: auto; aspect-ratio: 1; overflow: visible; }
.hero-visual .luopan { width: 100%; height: 100%; display: block; transform-origin: 50% 50%; }
.hero-portrait {
  position: absolute; z-index: 2; left: 50%;
  bottom: calc(-1 * clamp(2rem, 5vw, 4rem));
  width: 82%;
  height: calc(82% * 1003 / 900);
  /* Head axis is 400px across the 900px cutout. */
  transform: translateX(-44.444%);
  overflow: hidden;
  pointer-events: none; user-select: none;
  filter:
    drop-shadow(0 0 6px rgba(233, 207, 122, .85))
    drop-shadow(0 0 16px rgba(201, 162, 39, .55))
    drop-shadow(0 0 34px rgba(201, 162, 39, .35));
}
.hero-portrait img {
  display: block; width: 100%; height: auto; max-width: none;
}
.trust { list-style: none; margin: clamp(2rem, 5vw, 4rem) 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--gold-line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust li { display: flex; flex-direction: column; }
.trust strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--gold-light); line-height: 1.1; }
.trust span { font-size: .85rem; color: var(--ivory-50); }
@media (max-width: 900px) {
  .hero { padding-top: 1.6rem; padding-bottom: 1.25rem; }
  .hero-grid { grid-template-columns: 1fr; gap: .65rem; }
  .hero-visual { order: -1; width: min(68vw, 42vh, 280px); width: min(68vw, 42svh, 280px); margin-top: 1.35rem; margin-bottom: .15rem; overflow: visible; }
  .hero-portrait { bottom: 0; width: 74%; height: auto; overflow: visible; transform: translateX(-50%); filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
  .hero-copy { display: flex; flex-direction: column; }
  .hero-name { margin-bottom: .35rem; }
  .hero-copy h1 { font-size: clamp(1.55rem, 6.4vw, 2.15rem); margin-bottom: .4rem; }
  .hero-copy .cta-row { order: 1; margin: .45rem 0 .7rem; }
  .hero-copy .cta-row .btn { flex: 1 1 auto; }
  .hero-copy .hero-lead { order: 2; font-size: .98rem; }
  .hero-copy .chips { order: 3; }
  .trust { grid-template-columns: repeat(2, 1fr); margin-top: 1.25rem; }
}

/* ---- luopan ---- */
.luopan .c { fill: none; stroke: var(--gold); }
.luopan .c--faint { stroke: var(--gold-deep); opacity: .7; }
.luopan .k { stroke: var(--gold); }
.luopan .k--strong { stroke: var(--gold-light); }
.luopan .k--faint { stroke: var(--gold-deep); }
.luopan .k--hex { stroke: var(--gold-light); opacity: .85; }
.luopan .k--tri { stroke: var(--gold-light); }
.luopan .t { fill: var(--gold); font-family: var(--font-cn); font-size: 15px; font-weight: 500; }
.luopan .t--strong { fill: var(--gold-light); font-weight: 700; }
.luopan .t--tri { font-size: 18px; fill: var(--gold-light); font-weight: 700; }
.lp-ring { transform-origin: 300px 300px; transform-box: view-box; }
.lp-needle { transform-origin: 300px 300px; transform-box: view-box; transition: transform .9s var(--ease); }
.lp-ring--outer { animation: lpSpin 180s linear infinite; }
.lp-ring--mid { animation: lpSpin 240s linear infinite reverse; }
@keyframes lpSpin { to { transform: rotate(360deg); } }
.lp-portrait { filter: saturate(.85) contrast(1.05); }
@media (prefers-reduced-motion: reduce) {
  .lp-ring--outer, .lp-ring--mid, .creds .ic { animation: none; }
  .lp-needle { transition: none; }
}

/* ---- sections ---- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--grey { background: var(--grey-900); }
.section-head { max-width: 700px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { color: var(--ivory-70); font-size: 1.08rem; }
.eyebrow { font-family: var(--font-cn); color: var(--gold); font-size: .95rem; letter-spacing: .14em; margin: 0 0 .6rem; display: flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lang-zh .eyebrow { font-family: var(--font-display); letter-spacing: .1em; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.svc-card--wide { grid-column: 1 / -1; grid-template-columns: minmax(220px, 320px) 1fr; }
.svc-card--wide .svc-card-img { background: #050505; display: block; min-height: 0; }
.svc-card--wide .svc-card-img img { width: 100%; height: 100%; max-height: none; aspect-ratio: 3 / 2; object-fit: cover; object-position: center center; }
.svc-card { background: var(--grey-800); border: 1px solid var(--grey-700); display: grid; grid-template-columns: 42% 1fr; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.svc-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.svc-card-img { display: block; min-height: 100%; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.svc-card-body { padding: 1.5rem; display: flex; flex-direction: column; }
.svc-icon { width: 44px; height: 44px; border: 1px solid var(--gold-line); border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); margin-bottom: .9rem; }
.svc-alt { font-family: var(--font-cn); color: var(--gold); font-size: .9rem; letter-spacing: .08em; margin: 0 0 .25rem; }
.svc-name { font-size: 1.45rem; margin-bottom: .5rem; }
.svc-name a { color: var(--ivory); }
.svc-name a:hover { color: var(--gold-light); }
.svc-blurb { color: var(--ivory-70); font-size: .96rem; flex: 1; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.card-price { margin: 0; font-family: var(--font-body); font-size: 1.05rem; line-height: 1.35; color: var(--gold-light); font-weight: 600; }
.card-price span { font-family: var(--font-body); font-size: .8rem; color: var(--ivory-50); font-weight: 400; margin: 0 .25rem; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .svc-card { grid-template-columns: 1fr; } .svc-card-img img { aspect-ratio: 16/9; } }

/* about */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--gold-line); }
.about-quote { position: absolute; right: -1rem; bottom: 2rem; margin: 0; background: var(--black); border: 1px solid var(--gold); padding: 1.1rem 1.4rem; max-width: 300px; }
.about-quote p { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--gold-light); }
.about-copy p { color: var(--ivory-70); }
.creds { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.creds li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ivory); }
.creds .ic {
  color: var(--gold-light); margin-top: 3px; width: 18px; height: 18px; flex: none;
  filter: drop-shadow(0 0 3px rgba(233, 207, 122, .95)) drop-shadow(0 0 8px rgba(201, 162, 39, .7));
  animation: checkGlow 2.8s ease-in-out infinite;
}
@keyframes checkGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(233, 207, 122, .65)) drop-shadow(0 0 5px rgba(201, 162, 39, .35)); }
  50% { filter: drop-shadow(0 0 5px rgba(255, 236, 180, 1)) drop-shadow(0 0 12px rgba(201, 162, 39, .9)); }
}
@media (prefers-reduced-motion: reduce) { .creds .ic { animation: none; } }
.award { margin: 1.1rem 0 0; max-width: 100%; }
.award picture, .proof picture, .product-photo picture { display: block; }
.award figcaption, .proof figcaption, .product-photo figcaption { margin-top: .45rem; font-size: .78rem; color: var(--ivory-50); line-height: 1.4; }
.proof { margin: 1.1rem 0 0; }
.product-media { display: grid; gap: 1.25rem; align-content: start; }
.product-media .product-photo { margin: 0; }
.product-photo { margin: 0 0 1.2rem; }
.product-photo--main { margin: 1.4rem auto 0; width: min(640px, calc(100% - var(--gutter) * 2)); }
.product-photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1365 / 1024;
  object-fit: contain;
  display: block;
  background: #120e0a;
  border: 1px solid var(--gold-line);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-quote { position: static; margin-top: 1rem; max-width: none; } }

/* product band */
.section--product { background: linear-gradient(180deg, var(--black), var(--grey-900)); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.section--process { position: relative; overflow: hidden; }
.process-luopan { position: absolute; right: -4%; top: 4%; width: min(62vw, 720px); opacity: .72; pointer-events: none; filter: drop-shadow(0 0 28px rgba(201, 162, 39, .55)); animation: luopanGlow 7s ease-in-out infinite; }
.section--process .process-luopan .luopan { animation: lpSpin 90s linear infinite; transform-origin: 50% 50%; }
@keyframes luopanGlow { 50% { filter: drop-shadow(0 0 42px rgba(233, 207, 122, .85)); opacity: .9; } }
.process-luopan .lp-portrait { display: none; }
.section--process > .wrap { position: relative; z-index: 1; }
.section--dna { position: relative; overflow: hidden; background: #05070a url("/assets/img/bazi-dna-bg.webp") center / cover no-repeat; }
.section--dna .dna-canvas { display: none; }
.dna-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.section--dna::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.68), rgba(0,0,0,.38) 30%, rgba(0,0,0,.46)); pointer-events: none; }
.section--dna .pillar { background: #070707; position: relative; z-index: 1; }
.section--dna .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .dna-canvas { display: none; } }
.bazi-luck { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.bazi-luck li { color: var(--ivory-70); font-size: .9rem; }
.bazi-god, .bazi-hid { display: block; font-size: .72rem; color: var(--ivory-50); line-height: 1.35; }
.product-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.product-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.product-art::before, .product-art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-line); }
.product-art::after { inset: 14%; border-color: var(--gold); }
.product-char { font-family: var(--font-cn); font-size: clamp(4rem, 9vw, 7rem); font-weight: 700; color: var(--gold-light); letter-spacing: .1em; text-shadow: 0 0 40px rgba(201, 162, 39, .35); }
.product-art--big { width: min(100%, 420px); margin-inline: auto; }
.product-ring { position: absolute; inset: 28%; border: 1px dashed var(--gold-line); border-radius: 50%; animation: lpSpin 60s linear infinite; }
@media (prefers-reduced-motion: reduce) { .product-ring { animation: none; } }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } .product-art { width: min(100%, 260px); margin-inline: auto; } }

/* Shi Fang 3D cube.
   Do not put overflow, filter, opacity, or will-change on .cube-scene or
   anything between it and the faces. That flattens preserve-3d. Clip on
   the stage, which sits outside the perspective element. */
.section--product { overflow: clip; }
.section--product::after { display: none; }
.section--product > .wrap, .page-hero--product > .wrap { z-index: auto; }
.cube-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  container-type: inline-size;
  overflow: clip;
  padding-top: clamp(36px, 12vw, 80px);
  text-align: center;
}
.cube-scene {
  --cs: clamp(140px, min(42vw, 70cqi), 240px);
  --half: calc(var(--cs) / 2);
  --rx: -22; --ry: 32;
  position: relative; width: var(--cs); height: var(--cs);
  margin: 0 auto calc(var(--cs) * 1.08);
  perspective: calc(var(--cs) * 2.93); perspective-origin: 50% 42%;
  transform-style: preserve-3d;
  cursor: grab; touch-action: pan-y;
}
.cube-stage--big .cube-scene { --cs: clamp(140px, min(42vw, 78cqi), 300px); }
.cube-scene.dragging { cursor: grabbing; }
.cube-glow, .cube-burst, .cube-rays, .cube-bolts, .cube-shadow { position: absolute; pointer-events: none; }
.cube-scene { --strike: 0; }
.cube-glow {
  left: 50%; top: 46%;
  width: 170%; height: 170%;
  transform: translate(-50%, -54%);
  background: radial-gradient(circle, rgba(255, 248, 225, .55) 0%, rgba(233, 207, 122, .32) 18%, rgba(201, 162, 39, .16) 36%, rgba(138, 109, 31, .05) 58%, transparent 74%);
  filter: blur(10px);
  animation: cubeBreath 8.5s ease-in-out infinite;
}
.cube-burst {
  left: 50%; top: 46%;
  width: 190%; height: 190%;
  transform: translate(-50%, -54%);
  background: radial-gradient(circle, rgba(255, 248, 225, .85) 0%, rgba(233, 207, 122, .34) 22%, transparent 64%);
  filter: blur(12px);
  opacity: var(--strike);
}
.cube-rays {
  left: 50%; top: 46%;
  width: 220%; height: 220%;
  transform: translate(-50%, -52%);
  background: conic-gradient(from 0deg,
    transparent 0 10%, rgba(233, 207, 122, .16) 24%, transparent 42%,
    transparent 50%, rgba(255, 246, 214, .1) 66%, transparent 80%,
    rgba(138, 109, 31, .14) 92%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 28%, rgba(0, 0, 0, .55) 46%, transparent 78%);
  mask: radial-gradient(circle, transparent 28%, rgba(0, 0, 0, .55) 46%, transparent 78%);
  filter: blur(28px);
  opacity: .2;
  animation: cubeRays 52s linear infinite;
}
/* Canvas is a replaced element, so width/height auto stays 300x150.
   Cover the stage only. A 240% box was wider than a phone and scrolled the page. */
.cube-bolts { inset: 0; width: 100%; height: 100%; }
.cube-float { position: absolute; inset: 0; transform-style: preserve-3d; }
.cube {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0) rotateX(-22deg) rotateY(32deg);
}
.cube-face {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  overflow: hidden;
  background: #070707;
  box-shadow: inset 0 0 0 1px rgba(233, 207, 122, .5);
}
.cube-face img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.cube-sheen, .cube-flash { position: absolute; inset: 0; pointer-events: none; }
.cube-sheen {
  background: radial-gradient(ellipse 16% 3.4% at var(--sx, 50%) var(--sy, 42%),
    rgba(255, 248, 225, calc(var(--spec, 0) * .85)) 0%,
    rgba(233, 207, 122, calc(var(--spec, 0) * .4)) 28%,
    rgba(201, 162, 39, calc(var(--spec, 0) * .12)) 48%,
    transparent 70%);
  mix-blend-mode: soft-light;
  transform-origin: var(--sx, 50%) var(--sy, 42%);
  transform: rotate(var(--srot, -18deg));
}
.cube-flash {
  background: linear-gradient(185deg, rgba(255, 248, 225, .5), rgba(233, 207, 122, .16) 34%, transparent 68%);
  opacity: calc(var(--strike) * .34);
  mix-blend-mode: soft-light;
}
.cube-face--front { transform: translateZ(var(--half)); }
.cube-face--back { transform: rotateY(180deg) translateZ(var(--half)); }
.cube-face--right { transform: rotateY(90deg) translateZ(var(--half)); }
.cube-face--left { transform: rotateY(-90deg) translateZ(var(--half)); }
.cube-face--top { transform: rotateX(90deg) translateZ(var(--half)); }
.cube-face--bottom { transform: rotateX(-90deg) translateZ(var(--half)) rotate(180deg); }
.cube-shadow {
  left: 50%; bottom: calc(var(--cs) * -.36);
  width: calc(var(--cs) * 1.05); height: calc(var(--cs) * .22);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, .45), transparent 70%);
  filter: blur(8px);
}
.cube-caption { position: relative; font-size: .88rem; color: var(--ivory-50); margin: .4rem 0 .7rem; }
/* Shi Fang video, in the slot the CSS cube used. Reduced motion shows the still. */
.shifang-video { margin: 0 auto; width: 100%; max-width: 100%; text-align: center; }
.shifang-video--big { max-width: 560px; }
.shifang-video-el, .shifang-video-still { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #000; box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px var(--gold-line); }
.shifang-video-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .shifang-video-el { display: none; }
  .shifang-video-still { display: block; }
}
.cube-phrases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem .6rem; }
.cube-phrases li { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cube-phrases li span[lang] { font-family: var(--font-cn); color: var(--gold-light); font-size: 1rem; letter-spacing: .1em; }
.cube-phrases li span:last-child { font-size: .72rem; color: var(--ivory-50); overflow-wrap: anywhere; }
@keyframes cubeRays { to { transform: translate(-50%, -52%) rotate(360deg); } }
@keyframes cubeBreath {
  0%, 100% { opacity: .74; transform: translate(-50%, -54%) scale(1); }
  50% { opacity: .95; transform: translate(-50%, -54%) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .cube-bolts, .cube-burst, .cube-flash { display: none; }
  .cube-rays { animation: none; opacity: .1; }
  .cube-glow { animation: none; opacity: .66; filter: blur(12px); }
}

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.step { background: var(--grey-800); border: 1px solid var(--grey-700); padding: 1.4rem; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: .35rem 1rem; height: 100%; }
.step-icon { grid-row: 1 / span 2; color: var(--gold-light); display: grid; place-items: start center; }
.step-icon .ic { width: 28px; height: 28px; }
.step-n { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); line-height: 1; font-weight: 600; }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ivory-70); font-size: .93rem; }
.steps--compact { grid-template-columns: 1fr; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.benefits { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.benefits li { text-align: center; }
.benefit-ic { width: 64px; height: 64px; margin: 0 auto .6rem; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-light); }
.benefits h3 { font-size: 1rem; margin: 0 0 .25rem; }
.benefits p { margin: 0; color: var(--ivory-70); font-size: .82rem; line-height: 1.45; }
.qi-banner { margin: 2.2rem auto 0; max-width: 760px; text-align: center; padding: 1.4rem 1rem; background: radial-gradient(60% 120% at 50% 0%, rgba(201,162,39,.28), transparent 70%); }
.qi-banner span { display: block; letter-spacing: .22em; }
.qi-banner span:first-child { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--ivory); }
.qi-banner span:last-child { margin-top: .45rem; color: var(--gold-light); font-size: .95rem; }
.qi-banner span:first-child::before, .qi-banner span:first-child::after { content: ""; display: inline-block; width: 2.2rem; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 .6rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(3, 1fr); } .svc-card--wide { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .process-luopan, .section--process .process-luopan .luopan { animation: none; }
}
.wx-radar { width: min(100%, 280px); height: auto; display: block; margin: .4rem auto 1rem; }
.dayun-strip, .ln-strip { display: flex; gap: .45rem; overflow-x: auto; padding: .2rem 0 .8rem; }
.dayun-btn, .ln-btn { flex: 0 0 auto; background: #111; color: var(--ivory); border: 1px solid var(--grey-700); padding: .45rem .6rem; min-width: 4.2rem; }
.dayun-btn b, .ln-btn b { display: block; color: var(--gold-light); font-size: 1.05rem; }
.dayun-btn span, .ln-btn span { display: block; color: var(--ivory-50); font-size: .75rem; }
.dayun-btn.is-on, .ln-btn:focus { border-color: var(--gold); }
.ln-note { color: var(--ivory-70); }
.el-wood { color: #3caf62; }
.el-fire { color: #e15b52; }
.el-earth { color: #c4923f; }
.el-metal { color: #e6c96e; }
.el-water { color: #4c8fe0; }
.lamp-stage { display: grid; place-items: center; min-height: 210px; margin: .6rem 0; }
.lamp { width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff8df 0%, #e6c96e 28%, #8a6d1f 62%, rgba(201,162,39,0) 74%); opacity: .35; transition: opacity .35s var(--ease), box-shadow .35s var(--ease); }
.lamp.is-on { opacity: 1; box-shadow: 0 0 18px #fff1c2, 0 0 48px rgba(233, 207, 122, .85), 0 0 90px rgba(201, 162, 39, .45); }
@media (prefers-reduced-motion: reduce) { .lamp { transition: none; } }
.yao-list { list-style: none; margin: .4rem auto 1rem; padding: 1rem 1.1rem; width: min(100%, 320px); display: flex; flex-direction: column-reverse; gap: .55rem; border: 1px solid var(--gold-line); background: radial-gradient(80% 60% at 50% 0%, rgba(201,162,39,.16), transparent 70%), #0c0c0c; }
.yao { height: 16px; display: flex; justify-content: center; gap: 16px; }
.yao i { display: block; height: 11px; flex: 1; border-radius: 2px; background: linear-gradient(180deg, #fff1c2, #e6c96e 45%, #8a6d1f); box-shadow: 0 0 10px rgba(233, 207, 122, .45); }
.yao i.gap { background: transparent; box-shadow: none; flex: 0 0 28px; }
.hex-table .yao { width: 72px; margin-left: auto; }
.shenji-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.shenji-table th, .shenji-table td { border-bottom: 1px solid var(--grey-700); padding: .4rem .35rem; text-align: center; }
.shenji-changed { outline: 1px solid var(--gold); }

/* pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--grey-700); border: 1px solid var(--grey-700); }
.pillar { background: var(--black); padding: 1.6rem 1.3rem 1.8rem; }
.pillar-ch { display: block; font-family: var(--font-cn); font-size: 3rem; color: var(--gold-light); line-height: 1; margin-bottom: 1rem; font-weight: 700; }
.pillar h3 { font-size: 1.25rem; margin-bottom: .15rem; }
.pillar-sub { color: var(--gold); font-size: .85rem; margin-bottom: .6rem; letter-spacing: .04em; }
.pillar p:last-child { margin: 0; color: var(--ivory-70); font-size: .93rem; }
@media (max-width: 800px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* areas */
.section--areas { background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Ccircle cx='60' cy='60' r='58' fill='none' stroke='%23C9A227' stroke-opacity='.08'/%3E%3C/svg%3E") center/120px; }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.area { border: 1px solid var(--gold-line); padding: 1.4rem 1.5rem; background: rgba(0, 0, 0, .7); }
.area h3 { font-size: 1.3rem; color: var(--gold-light); margin-bottom: .3rem; }
.area p { margin: 0; color: var(--ivory-70); font-size: .94rem; }
@media (max-width: 900px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { margin: 0; background: var(--grey-800); border-top: 2px solid var(--gold); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.2rem; flex: 1; }
.quote blockquote p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; color: var(--ivory); }
.lang-zh .quote blockquote p { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; }
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption strong { color: var(--gold-light); font-weight: 600; }
.quote figcaption span { color: var(--ivory-50); font-size: .85rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.g-item { margin: 0; position: relative; overflow: hidden; }
.gallery { content-visibility: auto; contain-intrinsic-size: auto 800px; }
.g-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.page-hero .updated { color: var(--ivory-50); font-size: .85rem; margin: .85rem 0 0; }
.feature-fig { margin: 1.25rem auto 0; width: min(var(--wrap), 100% - var(--gutter) * 2); }
.feature-fig img { display: block; width: 100%; height: auto; aspect-ratio: 1536 / 1024; object-fit: cover; border: 1px solid var(--gold-line); }
.link-list { padding-left: 1.1rem; }
.link-list a { color: var(--gold-light); }
.hex-tools { display: flex; gap: .6rem; align-items: center; margin: 1rem 0; }
.hex-tools select, .table-scroll { max-width: 100%; }
.table-scroll { overflow-x: auto; }
.hex-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hex-table th, .hex-table td { border-bottom: 1px solid var(--grey-700); padding: .45rem .4rem; text-align: left; vertical-align: middle; }
.hex-glyph { width: 22px; height: 32px; display: block; }
.wx-diagram { width: min(100%, 320px); height: auto; margin: 1rem 0; }
.wx-bars { list-style: none; padding: 0; margin: 0 0 1rem; }
.wx-bars li { display: grid; grid-template-columns: 4.5rem 2rem 1fr; gap: .4rem; align-items: center; margin: .25rem 0; }
.wx-bars i { display: block; height: 6px; background: var(--gold); }
.example-chart, .ex-pillars { list-style: none; padding: 0; }
.ex-pillars li { display: flex; gap: .7rem; align-items: baseline; margin: .35rem 0; }
.prose.narrow { max-width: 760px; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .8rem .6rem; font-size: .8rem; color: var(--ivory); background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* faq */
.faqs { display: grid; gap: .6rem; }
.faq { background: var(--grey-800); border: 1px solid var(--grey-700); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
.faq summary .ic--chev { color: var(--gold); }
.faq[open] summary .ic--chev { transform: rotate(180deg); }
.faq[open] summary { border-bottom: 1px solid var(--grey-700); }
.faq-a { padding: 1rem 1.3rem 1.2rem; color: var(--ivory-70); }
.faq-a p { margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.contact-list li { display: flex; gap: .7rem; align-items: center; color: var(--ivory-70); font-size: .95rem; }
.contact-list .ic { color: var(--gold); width: 18px; height: 18px; }
.contact-list.big { margin: 1.5rem 0; gap: .8rem; }
.contact-list.big li { font-size: 1.05rem; }
.form { background: var(--grey-900); border: 1px solid var(--gold-line); padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-h { font-size: 1.6rem; margin-bottom: .25rem; }
.form-intro { color: var(--ivory-50); font-size: .92rem; margin-bottom: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ivory); }
.field small { color: var(--ivory-50); font-size: .8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ivory); background: var(--black); border: 1px solid var(--grey-600); border-radius: var(--radius); padding: .75rem .9rem; min-height: 48px; }
textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23C9A227' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.form-note { margin: .9rem 0 0; font-size: .85rem; color: var(--ivory-50); }
.form-note.ok { color: var(--gold-light); }
.form-note.err { color: #e07b73; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* cta band */
.cta-band { background: var(--grey-900); border-top: 1px solid var(--gold-line); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--ivory-70); max-width: 60ch; }
.cta-band .cta-row { margin: 0; }

/* page hero (subpages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--grey-700); }
.page-hero--product { overflow: clip; }
.page-hero .hero-bg { position: absolute; right: 0; top: 50%; width: min(48%, 520px); max-width: 100%; transform: translateY(-50%); opacity: .14; pointer-events: none; z-index: 0; }
.page-hero .hero-bg .lp-portrait { display: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; }
.page-lead { font-size: 1.15rem; color: var(--ivory-70); max-width: 60ch; }
.hero-alt { font-family: var(--font-cn); color: var(--gold); letter-spacing: .1em; margin: 0 0 .5rem; }
.price-line { font-family: var(--font-body); font-size: 1.05rem; color: var(--gold-light); }
.price-line strong { font-family: var(--font-body); font-size: 1.35rem; color: var(--gold-light); font-weight: 600; margin: 0 .3rem; }
.crumbs ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--ivory-50); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--gold-deep); }
.crumbs a { color: var(--ivory-70); }
.tldr { margin: 2.5rem auto 0; border-left: 2px solid var(--gold); background: var(--grey-900); padding: 1.2rem 1.5rem; max-width: 820px; }
.tldr-label { font-family: var(--font-display); color: var(--gold-light); font-size: 1rem; letter-spacing: .08em; margin: 0 0 .3rem; font-weight: 600; }
.tldr p:last-child { margin: 0; color: var(--ivory); }

/* prose + layouts */
.prose h2 { margin-top: 2.2rem; }
.prose p { color: var(--ivory-70); }
.prose .plain { color: var(--ivory-70); padding-left: 1.2rem; }
.prose .plain li { margin-bottom: .4rem; }
.blocks { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.blocks li { background: var(--grey-800); border-left: 2px solid var(--gold); padding: 1.1rem 1.3rem; }
.blocks h2, .blocks h3 { font-size: 1.2rem; margin: 0 0 .3rem; font-family: var(--font-body); font-weight: 600; }
a.wikilink { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: #C9A227; text-underline-offset: .18em; }
a.wikilink:hover, a.wikilink:focus { color: #E9CF7A; text-decoration-style: solid; }
.see-also { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--gold-line); }
.see-also h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.see-also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.see-also a { color: var(--ivory); text-decoration: underline; text-decoration-style: dotted; text-decoration-color: #C9A227; text-underline-offset: .18em; }
.see-also a:hover, .see-also a:focus { color: #E9CF7A; }
.blocks p { margin: 0; }
.disclaimer { font-size: .88rem; color: var(--ivory-50); border: 1px dashed var(--grey-600); padding: .9rem 1rem; }
.facts { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--grey-700); vertical-align: top; }
.facts th { color: var(--gold-light); font-weight: 600; width: 32%; }
.facts td { color: var(--ivory-70); }
.about-page, .svc-layout { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.svc-layout { grid-template-columns: 1fr 340px; }
.about-side img, .svc-side img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--gold-line); }
.about-side, .svc-side { position: sticky; top: 90px; }
.side-card { background: var(--grey-800); border: 1px solid var(--grey-700); padding: 1.3rem; margin-top: 1rem; }
.side-card .price-line { margin: 0; }
.side-nav { margin-top: 1.5rem; }
.side-nav-h { color: var(--gold); font-size: .85rem; letter-spacing: .1em; margin-bottom: .5rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--grey-700); color: var(--ivory-70); font-size: .95rem; }
.side-nav a:hover { color: var(--gold-light); }
@media (max-width: 900px) {
  .about-page, .svc-layout { grid-template-columns: 1fr; }
  .svc-side { order: -1; } .about-side, .svc-side { position: static; }
  .about-side img, .svc-side img { aspect-ratio: 16/10; }
}
/* The MIE banner is wide. The sidebar portrait rule must not crop it. */
.award { max-width: 300px; background: none; }
.award img,
.about-side .award img,
.about-copy .award img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1400 / 486;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: 0;
}
.proof img,
.about-side .proof img,
.about-copy .proof img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 28%;
  background: #000;
  border: 1px solid var(--gold-line);
}
.proof--stage img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center center; }

/* product hero */
.product-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .product-hero-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--black); border-top: 1px solid var(--gold-line); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.6rem 1.2rem; }
.footer-name { font-family: var(--font-cn); font-size: 1.4rem; color: var(--gold-light); font-weight: 700; margin: .8rem 0 .3rem; }
.footer-name span { font-family: var(--font-display); font-weight: 500; color: var(--ivory-70); font-size: 1.1rem; margin-left: .5rem; }
.footer-tag { color: var(--ivory-50); font-size: .92rem; max-width: 36ch; }
.footer-h { font-family: var(--font-cn); font-size: 1rem; color: var(--gold); letter-spacing: .1em; margin-bottom: .8rem; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col a { color: var(--ivory-70); font-size: .93rem; }
.footer-col a:hover { color: var(--gold-light); }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 42px; height: 42px; border: 1px solid var(--grey-600); border-radius: var(--radius); display: grid; place-items: center; color: var(--ivory-70); }
.social a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-qr { text-align: center; }
.qr-frame {
  display: inline-block;
  box-sizing: content-box;
  width: 128px;
  height: 128px;
  border: 1px solid var(--gold);
  padding: 10px;
  background: var(--black);
  position: relative;
}
.qr-frame::before, .qr-frame::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--gold-light); }
.qr-frame::before { left: -3px; top: -3px; border-right: 0; border-bottom: 0; }
.qr-frame::after { right: -3px; bottom: -3px; border-left: 0; border-top: 0; }
.qr-frame .qr { display: block; width: 100%; height: 100%; }
.qr-frame--inline { margin-top: .5rem; }
.footer-qr p { font-size: .8rem; color: var(--ivory-50); margin: .6rem 0 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; border-top: 1px solid var(--grey-700); margin-top: 3rem; padding: 1.2rem 0 5.5rem; font-size: .82rem; color: var(--ivory-50); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ivory-70); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-qr { text-align: left; } }

/* floating whatsapp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
@media (max-width: 600px) { .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; } .wa-float .ic { width: 24px; height: 24px; } }

.lang-banner {
  position: fixed; z-index: 55; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem;
  margin: 0; padding: .6rem .55rem .6rem .9rem;
  background: #000; color: var(--ivory); border: 1px solid var(--gold-line); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5); font-size: .92rem; line-height: 1.35;
}
.lang-banner p { margin: 0; flex: 1 1 10rem; }
.lang-banner-go {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--gold); color: #000; font-weight: 700; text-decoration: none;
  border-radius: 4px; padding: .45rem .85rem; min-height: 44px;
}
.lang-banner-go:hover { color: #000; background: var(--gold-light); }
.lang-banner-x {
  width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: var(--ivory-70); font: inherit; font-size: 1.25rem;
  line-height: 1; cursor: pointer;
}
.lang-banner-x:hover { color: var(--gold-light); }
@media (min-width: 720px) {
  .lang-banner { left: auto; right: 88px; width: min(36rem, calc(100vw - 110px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .lang-banner { animation: lang-banner-in .35s var(--ease); }
}
@keyframes lang-banner-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* reveal on scroll (one orchestrated pass, respects reduced motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cta-row--center { justify-content: center; }
.calc-callout { margin: 2rem auto 0; max-width: 820px; border: 1px solid var(--gold-line); background: var(--grey-900); padding: 1.3rem 1.4rem; }
.calc-callout p { color: var(--ivory-70); }
.field--check label { display: flex; gap: .65rem; align-items: flex-start; font-weight: 600; }
.field--check input { width: 1.15rem; min-height: 0; margin-top: .25rem; accent-color: var(--gold); }
.field--check small { margin: .15rem 0 0 1.8rem; }
.bazi-layout { display: grid; gap: 1.5rem; align-items: start; }
.bazi-layout > * { min-width: 0; }
@media (min-width: 960px) { .bazi-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
@media (min-width: 960px) {
  #baziApp.bazi-layout { grid-template-columns: 1fr minmax(0, 39rem) 1fr; }
  #baziApp > .form { grid-column: 2; }
}
.bazi-result { border: 1px solid var(--gold-line); background: var(--grey-900); padding: clamp(1rem, 2vw, 1.5rem); min-height: 12rem; }
.bazi-result:not([hidden]) { grid-column: 1 / -1; }
.chart-card { border: 1px solid var(--gold-line); background: #121212; border-radius: 8px; padding: .9rem 1rem 1rem; margin: 0 0 1rem; }
.chart-head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: .7rem; }
.chart-head strong { color: var(--gold-light); font-size: 1.05rem; }
.chart-solar { margin-left: auto; color: var(--gold); }
.chart-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .55rem .8rem; margin: 0; }
.chart-facts div { background: #1b1b1b; border-radius: 6px; padding: .45rem .6rem; }
.chart-facts dt { color: var(--ivory-50); font-size: .78rem; }
.chart-facts dd { margin: .15rem 0 0; color: var(--ivory); }
.pillar-cards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.pillar-card { background: #1b1b1b; border: 1px solid var(--gold-line); border-radius: 8px; padding: .7rem .55rem; text-align: center; }
.pillar-card--day { border-color: var(--gold); }
.pillar-card { position: relative; }
.pillar-card.is-day { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.day-badge { position: absolute; top: .4rem; right: .4rem; font-size: .68rem; letter-spacing: .04em; color: #111; background: var(--gold-light); border-radius: 999px; padding: .05rem .4rem; }
.pillar-role { display: block; color: var(--ivory-50); font-size: .82rem; }
.pillar-stem, .pillar-branch { display: block; font-size: 2rem; line-height: 1; margin: .15rem 0; font-family: var(--font-cn); font-weight: 700; }
.pillar-rule { display: block; height: 1px; margin: .45rem .6rem; background: var(--gold-line); }
.pillar-star { display: block; font-size: .78rem; color: var(--ivory-70); line-height: 1.35; }
.wx-radar { width: min(100%, 340px); }
.wx-key { display: flex; gap: 1rem; justify-content: center; color: var(--ivory-50); font-size: .82rem; margin: 0 0 .4rem; }
.geju-name { font-family: var(--font-cn); font-size: 1.6rem; color: var(--gold-light); margin: .2rem 0 .8rem; }
.wx-note, .year-detail { color: var(--ivory-70); font-size: .95rem; }
.year-detail b { color: var(--gold-light); font-family: var(--font-cn); }
.gua-ci, .shen-strip { color: var(--ivory-70); }
.gua-ci b, .shen-strip { color: var(--gold-light); }
.wx-key i { display: inline-block; width: 1.1rem; height: 0; border-top: 2px solid var(--gold-light); margin-right: .35rem; vertical-align: middle; }
.wx-key .wx-ke { border-top-style: dashed; border-top-color: #8a8a8a; }
.dayun-btn, .ln-btn { border-radius: 8px; }
.dayun-btn.is-on, .ln-btn.is-on { border-color: var(--gold); background: #1c180c; }
.el-wood { color: #6fce86; }
.el-fire { color: #ef6d5e; }
.el-earth { color: #d7a15a; }
.el-metal { color: #e9cf7a; }
.el-water { color: #7eb6e8; }
.chart-scroll { overflow-x: auto; }
.chart-table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: .92rem; }
.chart-table th, .chart-table td { border-bottom: 1px solid #2a2a2a; padding: .45rem .4rem; text-align: left; vertical-align: top; }
.chart-table th { color: var(--ivory-50); font-weight: 500; }
.chart-table tbody th { white-space: nowrap; width: 1%; }
.chart-rows { display: contents; }
.chart-rows-btn {
  margin-left: auto; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  padding: .16rem .62rem; border: 1px solid #3a3a3a; border-radius: 999px; background: #0c0c0c;
  color: var(--ivory-50); font: inherit; font-size: .78rem; line-height: 1.45; white-space: nowrap;
}
.chart-rows-btn::after {
  content: ""; width: .38rem; height: .38rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-.12rem); margin-left: .1rem;
}
.chart-rows-btn[aria-expanded="true"] { border-color: var(--gold-line); color: var(--ivory); }
.chart-rows-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-.05rem); }
.chart-rows-count { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.chart-rows-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.chart-toggle {
  flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: .35rem;
  margin: .15rem 0 0; padding: 0;
}
.chart-toggle[hidden] { display: none; }
.row-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.row-chip input {
  position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.row-chip span {
  display: inline-block; white-space: nowrap; padding: .12rem .55rem; border-radius: 999px;
  border: 1px solid #5c5648; color: rgba(242, 234, 216, .55); background: transparent;
  font-size: .78rem; line-height: 1.45; font-weight: 500;
}
.row-chip input:checked + span { border-color: var(--gold); color: var(--gold-light); background: rgba(201, 162, 39, .16); }
.row-chip input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.shen { display: inline-block; margin: .12rem; padding: .05rem .35rem; border-radius: 4px; border: 1px solid transparent; background: #111; font: inherit; color: inherit; cursor: pointer; }
.shen--ji { color: #e9cf7a; border-color: rgba(201, 162, 39, .55); }
.shen--zhong { color: #f2ead8; border-color: #5c5648; }
.shen--xiong { color: #f0a39a; border-color: rgba(224, 122, 114, .7); }
.shen-note { margin: .2rem 0 .35rem; color: var(--ivory-70); font-size: .8rem; }
.shen-note[hidden] { display: none; }
.chart-legend { color: var(--ivory-50); font-size: .82rem; }
@media (max-width: 720px) {
  .pillar-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-solar { margin-left: 0; }
}
.bazi-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1rem; padding: 0; }
.bazi-cell { border: 1px solid var(--gold-line); background: var(--black); text-align: center; padding: .75rem .3rem .85rem; }
.bazi-role { display: block; color: var(--gold); font-size: .72rem; letter-spacing: .08em; }
.bazi-gz { display: block; font-family: var(--font-cn); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold-light); line-height: 1.25; font-weight: 700; }
.bazi-py { display: block; color: var(--ivory-50); font-size: .78rem; }
.bazi-dm { color: var(--ivory); }
.bazi-counts { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--ivory-70); }
.bazi-counts li { margin: .35rem 0; }
@media (max-width: 520px) { .bazi-grid { grid-template-columns: repeat(2, 1fr); } }

/* Parallax depth. Transforms only, so layout does not shift. */
.section, .cta-band { position: relative; }
.section::after, .cta-band::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: 5%; top: 16%;
  background: radial-gradient(circle, rgba(201, 162, 39, .14), transparent 68%);
  transform: translate3d(0, var(--py, 0px), 0);
  pointer-events: none;
  z-index: 0;
}
.section > .wrap, .cta-band > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .section::after, .cta-band::after { display: none; }
}
