/* ==========================================================================
   MING ATELIER — main stylesheet
   A quiet, editorial system: rice paper, ink, cinnabar, five-element orbit.
   ========================================================================== */

:root {
  --type-bump: 1px;
  --paper: #f6f1e7;
  --paper-deep: #ede4d4;
  --paper-soft: #fbf7ef;
  --white: #fffcf6;
  --ink: #171a17;
  --ink-soft: #2a2e29;
  --moss: #364238;
  --cinnabar: #a63f2e;
  --cinnabar-deep: #863224;
  --gold: #b08a55;
  --gold-light: #e3c69a;
  --stone: #d7cdbb;
  --muted: #6b675e;
  --muted-light: #8d877b;
  --line: rgba(23, 26, 23, 0.15);
  --line-strong: rgba(23, 26, 23, 0.28);
  --line-light: rgba(246, 241, 231, 0.18);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1240px;
  --gutter: 32px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection {
  background: var(--cinnabar);
  color: var(--paper);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

section[id],
#begin,
#unlocked,
#personality-full {
  scroll-margin-top: 104px;
}

body.is-loading {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Type utilities
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--cinnabar);
  font-family: var(--sans);
  font-size: calc(10px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.section--elements .eyebrow,
.section--pricing .eyebrow {
  color: var(--gold-light);
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.1rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.lede {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.78;
}

.micro {
  display: block;
  color: var(--cinnabar);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.text-link span {
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--cinnabar);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--cinnabar);
}

.btn--small {
  min-height: 39px;
  padding: 0 18px;
  font-size: calc(9px + var(--type-bump, 0px));
}

.btn--wide {
  width: 100%;
}

.btn-arrow {
  font-size: 17px;
  font-weight: 400;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 241, 231, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-seal {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: rotate(-2deg);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.brand:hover .brand-seal {
  background: var(--cinnabar);
  color: var(--paper);
}

.brand-type {
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
}

.brand-type span {
  margin-top: 5px;
  color: var(--muted);
  font-size: calc(7px + var(--type-bump, 0px));
  font-weight: 500;
  letter-spacing: 0.34em;
}

.brand--mingli {
  gap: 0;
}

.brand--minglinow {
  gap: 14px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 252, 246, 0.18);
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(134, 50, 36, 0.15);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.brand-word {
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 20px;
  letter-spacing: 0.055em;
  line-height: 1;
  white-space: nowrap;
}

.brand-now {
  color: var(--cinnabar);
}

.brand-com {
  font-size: 0.68em;
  letter-spacing: 0.01em;
}

.brand-sub {
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
}

.brand--footer.brand--minglinow .brand-mark {
  width: 44px;
  height: 44px;
  border-color: rgba(246, 241, 231, 0.22);
  box-shadow: none;
  font-size: 12.5px;
}

.brand--footer .brand-word {
  color: var(--paper);
  font-size: 18px;
}

.brand--footer .brand-now {
  color: #d97a66;
}

.brand--footer .brand-com {
  color: var(--paper);
}

.brand--footer .brand-sub {
  color: rgba(246, 241, 231, 0.42);
  font-size: calc(9px + var(--type-bump, 0px));
}

.mingli-logo {
  display: block;
  width: auto;
  height: 42px;
}

@media (max-width: 980px) {
  .mingli-logo {
    height: 38px;
  }
  .brand--minglinow {
    gap: 12px;
  }
  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 12.5px;
  }
  .brand-word {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  .mingli-logo {
    height: 34px;
  }
  .brand--minglinow {
    gap: 10px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 11.5px;
  }
  .brand-word {
    font-size: 16px;
  }
  .brand-sub {
    font-size: calc(8px + var(--type-bump, 0px));
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-size: calc(10px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover {
  color: var(--cinnabar);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-price {
  color: var(--muted);
  font-size: calc(10px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-price span {
  color: var(--muted-light);
  font-weight: 400;
  text-transform: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.mobile-menu {
  padding: 0 var(--gutter) 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 18px;
}

.mobile-menu nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
}

.mobile-menu .btn {
  margin-top: 18px;
}

.site-header--reading {
  background: rgba(246, 241, 231, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.reading-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.private-badge,
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.private-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moss);
}

.demo-badge {
  border-color: rgba(166, 63, 46, 0.28);
  color: var(--cinnabar);
}

.header-back {
  margin-left: 24px;
  color: var(--muted);
  font-size: calc(10px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-back:hover {
  color: var(--cinnabar);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 148px 0 92px;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 42%, rgba(166, 63, 46, 0.095), transparent 34%),
    radial-gradient(circle at 16% 8%, rgba(54, 66, 56, 0.08), transparent 42%),
    linear-gradient(180deg, var(--paper) 0%, #f2ebdf 68%, var(--paper) 100%);
}

.hero-wash::after {
  content: "";
  position: absolute;
  top: 16%;
  right: -12%;
  width: min(56vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 26, 23, 0.08);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(48px, 6vw, 92px);
}

.hero-copy {
  position: relative;
}

.hero-copy h1 {
  max-width: 10.5ch;
  margin: 24px 0 28px;
  font-size: clamp(3.35rem, 6.5vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero-copy h1 em {
  color: var(--cinnabar);
  font-style: italic;
}

.hero-lede {
  max-width: 46ch;
  margin-bottom: 28px;
  color: #514d45;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cinnabar);
  opacity: 0.7;
}

.hero-art {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 420px;
  height: 118px;
  pointer-events: none;
}

.hero-vertical {
  position: absolute;
  top: -312px;
  left: 0;
  color: rgba(23, 26, 23, 0.34);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.38em;
  writing-mode: vertical-rl;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 78px;
  border: 1px solid rgba(23, 26, 23, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-orbit--one {
  width: 90px;
  height: 90px;
}

.hero-orbit--two {
  width: 160px;
  height: 160px;
}

.hero-orbit--three {
  width: 240px;
  height: 240px;
}

.hero-orbit--two::after,
.hero-orbit--three::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.hero-orbit--three {
  animation: slow-spin 70s linear infinite;
}

.hero-seal {
  position: absolute;
  top: 50%;
  left: 78px;
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(-3deg);
  box-shadow: 0 14px 30px rgba(134, 50, 36, 0.22);
}

.hero-star {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.hero-star--a {
  top: 6px;
  left: 178px;
}

.hero-star--b {
  bottom: 8px;
  left: 320px;
  opacity: 0.45;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--cinnabar), transparent);
}

/* --------------------------------------------------------------------------
   Birth form
   -------------------------------------------------------------------------- */

.form-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(23, 26, 23, 0.14);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: 0 36px 90px rgba(23, 26, 23, 0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.form-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--cinnabar);
}

.form-card-head {
  margin-bottom: 26px;
}

.card-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--cinnabar);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.2em;
}

.form-card-head h2 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 2.2vw, 2.05rem);
  letter-spacing: -0.035em;
}

.form-card-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.field-group {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.field-group legend {
  width: 100%;
  margin-bottom: 9px;
  padding: 0;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row--date {
  grid-template-columns: 1.15fr 0.8fr 1fr;
}

.field-row--time {
  grid-template-columns: 1fr 1fr 0.82fr;
}

.select-wrap {
  position: relative;
  min-width: 0;
}

.select-wrap select {
  width: 100%;
  height: 60px;
  padding: 0 34px 0 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: 0;
  background: rgba(255, 252, 246, 0.72);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.select-wrap select:hover {
  border-color: var(--line-strong);
}

.select-wrap select:focus {
  border-color: var(--cinnabar);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(166, 63, 46, 0.08);
}

.select-wrap select:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: rgba(23, 26, 23, 0.035);
}

.select-wrap select:invalid,
.select-wrap select.is-empty {
  color: var(--muted-light);
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}

.check-line input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--cinnabar);
}

.gender-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gender-pill {
  position: relative;
  cursor: pointer;
}

.gender-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gender-pill span {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 246, 0.55);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.gender-pill span:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.gender-pill input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.gender-pill input:focus-visible + span {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

.timezone-line {
  margin: -4px 0 18px;
  color: var(--muted-light);
  font-size: calc(10px + var(--type-bump, 0px));
  line-height: 1.5;
}

.timezone-line span {
  color: var(--muted);
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--cinnabar);
  background: rgba(166, 63, 46, 0.06);
  color: var(--cinnabar-deep);
  font-size: 12px;
  line-height: 1.5;
}

.form-submit {
  height: 62px;
  justify-content: space-between;
  padding: 0 24px;
  font-size: calc(10px + var(--type-bump, 0px));
}

.form-fineprint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.form-consent {
  margin: 8px 0 0;
  color: var(--muted-light);
  font-size: calc(9px + var(--type-bump, 0px));
  line-height: 1.55;
  text-align: center;
}

.form-consent a {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.28);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 19px 22px;
  background: var(--paper);
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.trust-mark {
  color: var(--cinnabar);
  font-family: var(--mono);
  font-size: calc(8px + var(--type-bump, 0px));
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: 132px 0;
}

.section--name {
  padding-top: 150px;
}

.section-top {
  max-width: 880px;
  margin-bottom: 66px;
}

.section-top h2 {
  margin-top: 18px;
  margin-bottom: 24px;
}

.section-top .lede {
  margin-top: 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
}

.section-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 8px;
}

.vertical-cn {
  margin-top: 60px;
  color: rgba(166, 63, 46, 0.11);
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 0.8;
  writing-mode: vertical-rl;
}

.section-body {
  max-width: 820px;
}

.section-body h2 {
  max-width: 13ch;
  margin-top: 0;
  margin-bottom: 30px;
}

.section-body > p {
  max-width: 65ch;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
}

.name-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line-strong);
}

.mini-card {
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--line);
}

.mini-card:not(:first-child) {
  padding-left: 24px;
}

.mini-card:last-child {
  border-right: 0;
}

.mini-num {
  display: block;
  margin-bottom: 22px;
  color: var(--cinnabar);
  font-family: var(--mono);
  font-size: calc(9px + var(--type-bump, 0px));
  letter-spacing: 0.08em;
}

.mini-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.mini-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.72;
}

.pull-quote {
  margin: 62px 0 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--cinnabar);
}

.pull-quote p {
  max-width: 20ch;
  margin-bottom: 13px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.pull-quote cite {
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Five elements
   -------------------------------------------------------------------------- */

.section--elements {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.section--elements::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(246, 241, 231, 0.06);
  border-radius: 50%;
}

.section--elements::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(246, 241, 231, 0.05);
  border-radius: 50%;
}

.section--elements .section-top {
  position: relative;
  z-index: 1;
}

.section--elements .lede {
  color: rgba(246, 241, 231, 0.62);
}

.elements-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(50px, 7vw, 96px);
  margin-top: 62px;
}

.element-orbit {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(246, 241, 231, 0.14);
  border-radius: 50%;
}

.orbit-ring--outer {
  inset: 2%;
}

.orbit-ring--inner {
  inset: 25%;
  border-color: rgba(246, 241, 231, 0.1);
}

.orbit-cross {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
}

.orbit-cross::before,
.orbit-cross::after {
  content: "";
  position: absolute;
  background: rgba(246, 241, 231, 0.07);
}

.orbit-cross::before {
  top: 50%;
  left: 8%;
  width: 84%;
  height: 1px;
}

.orbit-cross::after {
  top: 8%;
  left: 50%;
  width: 1px;
  height: 84%;
}

.element-node {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 92px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(246, 241, 231, 0.48);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.element-node::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-bottom: 7px;
  border-radius: 50%;
  background: currentColor;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.element-node:hover,
.element-node.is-active {
  color: var(--gold-light);
}

.element-node.is-active {
  transform: translate(-50%, -50%) scale(1.08);
}

.element-node.is-active::before {
  background: var(--cinnabar);
  box-shadow: 0 0 0 5px rgba(166, 63, 46, 0.2);
}

.node-cn {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.node-en {
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.node-wood {
  top: 0;
  left: 50%;
}

.node-fire {
  top: 31%;
  left: 92%;
}

.node-earth {
  top: 84%;
  left: 76%;
}

.node-metal {
  top: 84%;
  left: 24%;
}

.node-water {
  top: 31%;
  left: 8%;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 118px;
  height: 118px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 241, 231, 0.2);
  border-radius: 50%;
  color: var(--paper);
  transform: translate(-50%, -50%);
}

.orbit-center-cn {
  font-family: var(--serif);
  font-size: 2.7rem;
  line-height: 1;
}

.orbit-center-en {
  margin-top: 7px;
  color: rgba(246, 241, 231, 0.48);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.element-detail {
  min-height: 340px;
  padding-left: clamp(28px, 4vw, 54px);
  border-left: 1px solid var(--line-light);
}

.element-index {
  display: block;
  margin-bottom: 30px;
  color: rgba(246, 241, 231, 0.38);
  font-family: var(--mono);
  font-size: calc(9px + var(--type-bump, 0px));
  letter-spacing: 0.1em;
}

.element-title-line {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.element-glyph {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(227, 198, 154, 0.34);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}

.element-title-line h3 {
  margin-bottom: 4px;
  font-size: clamp(2.4rem, 3.4vw, 3.3rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.element-season {
  margin: 0;
  color: rgba(246, 241, 231, 0.5);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.element-copy {
  max-width: 48ch;
  margin-bottom: 28px;
  color: rgba(246, 241, 231, 0.66);
  font-size: 0.96rem;
  line-height: 1.8;
}

.element-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}

.element-facts dt {
  margin-bottom: 6px;
  color: rgba(246, 241, 231, 0.36);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.element-facts dd {
  margin: 0;
  color: rgba(246, 241, 231, 0.75);
  font-size: 11px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Chart section
   -------------------------------------------------------------------------- */

.section--chart {
  background: var(--paper);
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.chart-copy h2 {
  max-width: 11ch;
  margin: 18px 0 26px;
}

.chart-copy .lede {
  margin-bottom: 20px;
}

.chart-copy > p:not(.lede) {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.chart-points {
  margin: 32px 0 30px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.chart-points li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.chart-points span {
  display: inline-block;
  width: 64px;
  color: var(--ink);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chart-visual {
  position: relative;
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.pillar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 22px 8px 18px;
  border-right: 1px solid var(--line);
}

.pillar:last-child {
  border-right: 0;
}

.pillar-label {
  margin-bottom: 18px;
  color: var(--muted-light);
  font-size: calc(7px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.18em;
}

.pillar strong {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.pillar small {
  color: var(--muted);
  font-size: calc(8px + var(--type-bump, 0px));
  line-height: 1.4;
  text-align: center;
}

.chart-caption {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  line-height: 1.55;
}

.caption-dot {
  width: 4px;
  height: 4px;
  margin-top: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cinnabar);
}

.chart-stamp {
  position: absolute;
  top: -27px;
  right: -27px;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 2px solid var(--cinnabar);
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  transform: rotate(3deg);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.section--how {
  background: var(--paper-deep);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}

.step {
  padding: 28px 34px 0 0;
  border-right: 1px solid var(--line);
}

.step:not(:first-child) {
  padding-left: 34px;
}

.step:last-child {
  border-right: 0;
}

.step-num {
  display: block;
  margin-bottom: 42px;
  color: var(--cinnabar);
  font-family: var(--mono);
  font-size: calc(9px + var(--type-bump, 0px));
  letter-spacing: 0.08em;
}

.step h3 {
  margin-bottom: 14px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.78;
}

/* --------------------------------------------------------------------------
   Sample reading
   -------------------------------------------------------------------------- */

.section--sample {
  background: var(--paper);
}

.sample-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(23, 26, 23, 0.06);
}

.sample-name {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 48px;
  background: var(--ink);
  color: var(--paper);
}

.sample-name::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(246, 241, 231, 0.1);
  border-radius: 50%;
}

.sample-badge {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
  color: var(--gold-light);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.18em;
}

.sample-name-cn {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 6.3rem);
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.sample-pinyin {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.sample-meaning {
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
  color: rgba(246, 241, 231, 0.6);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
}

.sample-elements {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.sample-elements span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(246, 241, 231, 0.62);
  font-size: calc(9px + var(--type-bump, 0px));
  letter-spacing: 0.06em;
}

.el-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.el-dot--wood { background: #8da37e; }
.el-dot--fire { background: #c5674f; }
.el-dot--earth { background: #c2a36e; }
.el-dot--metal { background: #b9b8ae; }
.el-dot--water { background: #6f8c99; }

.sample-seal {
  position: absolute;
  right: 30px;
  bottom: 26px;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(246, 241, 231, 0.25);
  color: rgba(246, 241, 231, 0.28);
  font-family: var(--serif);
  font-size: 1.25rem;
  transform: rotate(-5deg);
}

.sample-reading {
  display: flex;
  flex-direction: column;
  padding: 44px 48px;
}

.sample-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.sample-block:first-child {
  padding-top: 0;
}

.sample-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sample-block p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.sample-block strong {
  color: var(--ink);
  font-weight: 600;
}

.sample-locked {
  position: relative;
  overflow: hidden;
}

.sample-locked > p {
  margin-bottom: 0;
}

.lock-fade {
  height: 84px;
  margin-top: -58px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0) 0%, var(--white) 76%);
}

.lock-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.preview-tag {
  color: var(--cinnabar);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lock-cta strong {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Method
   -------------------------------------------------------------------------- */

.section--method {
  background: var(--paper-deep);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}

.method-item {
  padding: 28px 36px 0 0;
  border-right: 1px solid var(--line);
}

.method-item:not(:first-child) {
  padding-left: 36px;
}

.method-item:last-child {
  border-right: 0;
}

.method-num {
  display: block;
  margin-bottom: 42px;
  color: var(--cinnabar);
  font-family: var(--mono);
  font-size: calc(9px + var(--type-bump, 0px));
}

.method-item h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.method-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.78;
}

.method-note {
  max-width: 70ch;
  margin: 48px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: calc(10px + var(--type-bump, 0px));
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.section--pricing {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.section--pricing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -160px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(246, 241, 231, 0.07);
  border-radius: 50%;
  transform: translateY(-50%);
}

.pricing-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.pricing-copy h2 {
  max-width: 10ch;
  margin: 18px 0 26px;
}

.pricing-copy .lede {
  color: rgba(246, 241, 231, 0.62);
}

.pricing-assurance {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.pricing-assurance li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  color: rgba(246, 241, 231, 0.7);
  font-size: 11px;
}

.pricing-assurance span {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: calc(8px + var(--type-bump, 0px));
}

.price-card {
  position: relative;
  padding: 42px 44px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.price-kicker {
  display: block;
  margin-bottom: 20px;
  color: var(--cinnabar);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.18em;
}

.price {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 6.6rem;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.price .currency {
  margin-top: 13px;
  margin-right: 3px;
  font-size: 2.2rem;
  letter-spacing: 0;
}

.price-note {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: calc(10px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-list {
  margin: 0 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.price-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.price-list li::before {
  content: "—";
  position: absolute;
  top: 9px;
  left: 0;
  color: var(--cinnabar);
}

.price-fine {
  margin: 12px 0 0;
  color: var(--muted-light);
  font-size: calc(9px + var(--type-bump, 0px));
  line-height: 1.55;
  text-align: center;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.section--faq {
  background: var(--paper);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 110px);
}

.faq-intro h2 {
  max-width: 7ch;
  margin: 18px 0 24px;
}

.faq-intro p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.faq-intro a {
  color: var(--ink);
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  letter-spacing: -0.015em;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--cinnabar);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 62ch;
  padding: 0 0 20px;
}

.faq-answer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.faq-answer a {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 150px 0;
  background: var(--paper-deep);
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 26, 23, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-seal {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 30px;
  place-items: center;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  transform: rotate(-3deg);
  box-shadow: 0 16px 34px rgba(134, 50, 36, 0.18);
}

.final-cta h2 {
  max-width: 14ch;
  margin: 20px 0 18px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.final-cta p {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 76px 0 28px;
  background: var(--ink);
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1.05fr);
  gap: 48px;
  padding-bottom: 54px;
}

.brand--footer {
  color: var(--paper);
}

.brand--footer .brand-seal {
  border-color: rgba(246, 241, 231, 0.32);
  color: var(--gold-light);
}

.brand--footer .brand-type span {
  color: rgba(246, 241, 231, 0.42);
}

.footer-brand > p {
  max-width: 34ch;
  margin: 22px 0 0;
  color: rgba(246, 241, 231, 0.5);
  font-size: 12px;
  line-height: 1.75;
}

.footer-brand .footer-cn {
  margin-top: 16px;
  color: rgba(227, 198, 154, 0.62);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-col h3 {
  margin-bottom: 16px;
  color: rgba(246, 241, 231, 0.36);
  font-family: var(--sans);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  color: rgba(246, 241, 231, 0.68);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-col--note p {
  margin-bottom: 10px;
  color: rgba(246, 241, 231, 0.46);
  font-size: 11px;
  line-height: 1.7;
}

.footer-col--note .footer-small {
  color: rgba(246, 241, 231, 0.32);
  font-size: calc(9px + var(--type-bump, 0px));
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}

.footer-bottom p {
  margin: 0;
  color: rgba(246, 241, 231, 0.32);
  font-size: calc(9px + var(--type-bump, 0px));
  letter-spacing: 0.06em;
}

.footer-bottom a {
  color: rgba(246, 241, 231, 0.52);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Reading page
   -------------------------------------------------------------------------- */

.reading-page {
  position: relative;
  overflow-x: hidden;
  background: var(--paper);
}

.reading-dragon {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 820px;
  overflow: hidden;
  pointer-events: none;
}

.reading-dragon picture {
  position: absolute;
  top: -30px;
  left: 50%;
  display: block;
  width: min(1100px, 92vw);
  transform: translateX(-50%) rotate(-4deg);
  opacity: 0.10;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 32%, transparent 74%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 32%, transparent 74%);
}

.reading-dragon img {
  display: block;
  width: 100%;
  height: auto;
}

.reading-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: 148px 0 100px;
}

.reading-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.name-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
  margin: 20px 0 22px;
}

.name-cn {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 9vw, 8.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 0.94;
  white-space: nowrap;
}

.name-side {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 8px;
}

.name-pinyin {
  color: var(--cinnabar);
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.name-meaning {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
}

.reading-intro {
  max-width: 56ch;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.name-rationale {
  max-width: 62ch;
  margin: 0 0 24px;
  padding: 12px 0 12px 16px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
}

.name-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.name-character {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.name-character:last-child {
  border-right: 0;
}

.name-character-glyph {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 0.9;
}

.name-character-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.name-character-pinyin {
  color: var(--cinnabar);
  font-size: calc(10px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.1em;
}

.name-character-element {
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: calc(7px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.name-character p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.reading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.reading-stamp {
  display: flex;
  width: 118px;
  height: 118px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(166, 63, 46, 0.6);
  color: var(--cinnabar);
  transform: rotate(3deg);
}

.reading-stamp span {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.reading-stamp small {
  margin-top: 7px;
  font-size: calc(7px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.28em;
}

.reading-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 18px;
  border-left: 2px solid var(--cinnabar);
  background: var(--paper-deep);
}

.note-mark {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--cinnabar);
  border-radius: 50%;
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: calc(10px + var(--type-bump, 0px));
  font-style: italic;
}

.reading-note p {
  margin: 0;
  color: var(--muted);
  font-size: calc(10px + var(--type-bump, 0px));
  line-height: 1.65;
}

.reading-section {
  padding: 54px 0 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.reading-section-head {
  margin-bottom: 30px;
}

.reading-section-head h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.chart-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.chart-tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.chart-tile:last-child {
  border-right: 0;
}

.chart-tile--accent {
  background: rgba(166, 63, 46, 0.055);
}

.tile-label {
  --type-bump: 2px;
  margin-bottom: 14px;
  color: var(--muted-light);
  font-size: calc(7px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.16em;
}

.chart-tile strong {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.chart-tile--accent strong {
  color: var(--cinnabar);
}

.tile-sub {
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  line-height: 1.5;
}

.element-balance-panel {
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.balance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 22px;
}

.balance-head h3 {
  margin: 8px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.balance-head p {
  max-width: 40ch;
  margin: 0;
  color: var(--muted);
  font-size: calc(10px + var(--type-bump, 0px));
  line-height: 1.65;
  text-align: right;
}

.element-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.element-bar {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
}

.element-bar-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.element-bar-label .el-dot {
  width: 6px;
  height: 6px;
}

.element-track {
  height: 6px;
  background: rgba(23, 26, 23, 0.07);
}

.element-fill {
  display: block;
  height: 100%;
  background: var(--moss);
  transition: width 0.8s var(--ease);
}

.element-fill--wood { background: #7f956f; }
.element-fill--fire { background: #b95842; }
.element-fill--earth { background: #b08a55; }
.element-fill--metal { background: #8b8a82; }
.element-fill--water { background: #58747e; }

.element-bar-value {
  color: var(--muted);
  font-family: var(--mono);
  font-size: calc(9px + var(--type-bump, 0px));
  text-align: right;
}

.balance-note {
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: calc(10px + var(--type-bump, 0px));
  line-height: 1.65;
}

.personality-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: 54px;
  align-items: start;
}

.personality-snapshot {
  max-width: 60ch;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.018em;
  line-height: 1.55;
}

.personality-locked {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.lock-icon {
  color: var(--cinnabar);
  font-size: 14px;
  line-height: 1.4;
}

.personality-locked p {
  margin: 0;
  color: var(--muted);
  font-size: calc(10px + var(--type-bump, 0px));
  line-height: 1.65;
}

.personality-quote {
  padding: 6px 0 0 26px;
  border-left: 1px solid var(--line-strong);
}

.quote-cn {
  display: block;
  margin-bottom: 22px;
  color: rgba(166, 63, 46, 0.16);
  font-family: var(--serif);
  font-size: 4.8rem;
  line-height: 1;
}

.personality-quote p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
}

.fortune-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.preview-pill {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(166, 63, 46, 0.3);
  color: var(--cinnabar);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.fortune-body {
  position: relative;
}

.fortune-preview {
  max-width: 68ch;
}

.fortune-preview p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
}

.lock-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 40px;
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.lock-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--cinnabar);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.17em;
}

.lock-card h3 {
  max-width: 22ch;
  margin-bottom: 20px;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.lock-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lock-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.lock-list span {
  color: var(--cinnabar);
  font-family: var(--mono);
  font-size: calc(8px + var(--type-bump, 0px));
}

.lock-extra {
  margin: 18px 0 0;
  color: var(--muted-light);
  font-size: calc(10px + var(--type-bump, 0px));
}

.lock-card-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.lock-price {
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 3.5rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

.lock-price span {
  margin-right: 2px;
  font-size: 1.3rem;
  vertical-align: top;
}

.lock-card-action > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lock-secure {
  display: block;
  margin-top: 10px;
  color: var(--muted-light);
  font-size: calc(8px + var(--type-bump, 0px));
  text-align: center;
}

.reading-section--unlocked {
  border-top: 2px solid var(--cinnabar);
}

.unlocked-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.unlocked-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--moss);
  color: var(--paper);
  font-size: 16px;
}

.unlocked-banner h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.full-chapter {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.full-chapter:first-child {
  border-top: 0;
  padding-top: 0;
}

.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.chapter-num {
  color: var(--cinnabar);
  font-family: var(--mono);
  font-size: calc(9px + var(--type-bump, 0px));
}

.full-chapter h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.025em;
}

.full-chapter p {
  max-width: 68ch;
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.85;
}

.reading-subsection {
  padding-top: 44px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.reading-subsection h2 {
  margin: 12px 0 28px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  padding: 20px 22px 0 0;
  border-right: 1px solid var(--line);
}

.timeline-item:not(:first-child) {
  padding-left: 22px;
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-month {
  display: block;
  margin-bottom: 18px;
  color: var(--cinnabar);
  font-family: var(--mono);
  font-size: calc(9px + var(--type-bump, 0px));
  letter-spacing: 0.07em;
}

.timeline-item h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: calc(10px + var(--type-bump, 0px));
  line-height: 1.7;
}

.name-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.guide-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.guide-card h3 {
  margin: 8px 0 10px;
  font-size: 1.2rem;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.guide-card .guide-big {
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.lucky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.lucky-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.lucky-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-light);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lucky-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.reading-footnote {
  margin: 22px 0 0;
  color: var(--muted-light);
  font-size: calc(9px + var(--type-bump, 0px));
  line-height: 1.65;
}

.personality-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.personality-detail-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.personality-detail-card h3 {
  margin: 8px 0 10px;
  font-size: 1.2rem;
}

.personality-detail-card p,
.personality-detail-card li {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.personality-detail-card ul {
  margin: 0;
  padding-left: 16px;
}

.site-footer--reading {
  position: relative;
  z-index: 1;
  padding: 22px 0;
}

.site-footer--reading .footer-bottom {
  padding-top: 0;
  border-top: 0;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-main {
  padding: 148px 0 100px;
}

.legal-shell {
  max-width: 820px;
}

.legal-shell h1 {
  max-width: 12ch;
  margin: 20px 0 24px;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.legal-lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-updated {
  margin: 26px 0 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted-light);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-content section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.legal-content p {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.legal-content a {
  color: var(--ink);
}

.legal-back {
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Loading, paywall, toast
   -------------------------------------------------------------------------- */

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 26, 23, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.loading-card {
  width: min(430px, 100%);
  padding: 44px 38px;
  border: 1px solid rgba(246, 241, 231, 0.15);
  background: var(--paper);
  text-align: center;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
}

.loading-seal {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  place-items: center;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.25rem;
  animation: soft-pulse 2.2s var(--ease) infinite;
}

.loading-card .eyebrow {
  justify-content: center;
  margin-bottom: 12px;
}

.loading-stage {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.loading-bar {
  height: 2px;
  background: rgba(23, 26, 23, 0.1);
  overflow: hidden;
}

.loading-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cinnabar);
  transition: width 0.5s var(--ease);
}

.loading-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  letter-spacing: 0.06em;
}

.paywall {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
  overflow: auto;
}

.paywall::backdrop {
  background: rgba(16, 18, 16, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.paywall-inner {
  padding: 44px 42px 34px;
}

.paywall-close-form {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  height: 0;
  margin: 0;
}

.paywall-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.paywall-close:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
}

.paywall h2 {
  max-width: 15ch;
  margin: 18px 0 18px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
}

.paywall-price {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 4.4rem;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.paywall-price .currency {
  margin-top: 9px;
  margin-right: 2px;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.paywall-note {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.paywall-list {
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.paywall-list li {
  position: relative;
  padding: 7px 0 7px 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.paywall-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--cinnabar);
}

.paywall-demo {
  margin: 10px 0 0;
  padding: 9px 10px;
  background: rgba(166, 63, 46, 0.06);
  color: var(--cinnabar-deep);
  font-size: calc(9px + var(--type-bump, 0px));
  line-height: 1.55;
  text-align: center;
}

.paywall-fine {
  margin: 12px 0 0;
  color: var(--muted-light);
  font-size: calc(8px + var(--type-bump, 0px));
  line-height: 1.55;
  text-align: center;
}

.paywall-fine a {
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 180;
  padding: 12px 20px;
  border: 1px solid rgba(246, 241, 231, 0.2);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: calc(10px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  animation: toast-in 0.35s var(--ease);
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 250;
  padding: 14px 18px;
  border: 1px solid var(--cinnabar);
  background: var(--paper);
  color: var(--cinnabar-deep);
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Reveal / motion
   -------------------------------------------------------------------------- */

@keyframes slow-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes soft-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.82; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .site-nav {
    gap: 20px;
  }

  .header-price {
    display: none;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 6vw, 5.6rem);
  }

  .editorial-grid {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 40px;
  }

  .vertical-cn {
    font-size: 5rem;
  }

  .chart-layout,
  .pricing-layout {
    gap: 52px;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    gap: 12px;
  }

  .hero {
    padding-top: 126px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3.5rem, 9vw, 6.2rem);
  }

  .hero-art {
    display: none;
  }

  .form-card {
    width: min(100%, 620px);
  }

  .scroll-cue {
    display: none;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-label {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .vertical-cn {
    margin-top: 0;
    font-size: 3.4rem;
    writing-mode: horizontal-tb;
  }

  .elements-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .element-orbit {
    width: min(100%, 470px);
  }

  .element-detail {
    min-height: 0;
    padding: 36px 0 0;
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .chart-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .chart-visual {
    max-width: 620px;
  }

  .sample-card {
    grid-template-columns: 1fr;
  }

  .sample-name {
    min-height: 390px;
  }

  .pricing-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .price-card {
    max-width: 580px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .faq-intro h2 {
    max-width: 10ch;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col--note {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
  }

  .chart-tile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chart-tile:nth-child(2) {
    border-right: 0;
  }

  .chart-tile:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .lock-card {
    grid-template-columns: 1fr;
  }

  .lock-card-action {
    padding: 26px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .personality-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .personality-quote {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .header-inner {
    height: 72px;
  }

  .brand-seal {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .brand-type {
    font-size: 13px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    padding: 112px 0 72px;
  }

  .hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .form-card {
    padding: 26px 22px;
  }

  .form-card-head h2 {
    font-size: 1.6rem;
  }

  .field-row--date,
  .field-row--time {
    grid-template-columns: 1fr 1fr;
  }

  .field-row--date .select-wrap:first-child,
  .field-row--time .select-wrap:first-child {
    grid-column: 1 / -1;
  }

  .field-row--date .select-wrap:last-child {
    grid-column: auto;
  }

  .select-wrap select {
    height: 56px;
    font-size: 0.92rem;
  }

  .gender-row {
    grid-template-columns: 1fr;
  }

  .gender-pill span {
    height: 48px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item {
    padding: 15px 14px;
    font-size: calc(8px + var(--type-bump, 0px));
  }

  .section {
    padding: 86px 0;
  }

  .section--name {
    padding-top: 96px;
  }

  .section-top {
    margin-bottom: 44px;
  }

  .section-body h2 {
    max-width: none;
  }

  .name-pillars {
    grid-template-columns: 1fr;
  }

  .mini-card,
  .mini-card:not(:first-child) {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mini-card:last-child {
    border-bottom: 0;
  }

  .mini-num {
    margin-bottom: 12px;
  }

  .pull-quote {
    margin-top: 42px;
  }

  .element-orbit {
    width: min(100%, 350px);
  }

  .node-cn {
    font-size: 1.55rem;
  }

  .node-en {
    font-size: calc(7px + var(--type-bump, 0px));
  }

  .element-node {
    width: 72px;
  }

  .orbit-center {
    width: 84px;
    height: 84px;
  }

  .orbit-center-cn {
    font-size: 2rem;
  }

  .element-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .element-title-line {
    gap: 16px;
  }

  .element-glyph {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .chart-visual {
    padding: 24px 16px;
  }

  .pillar {
    padding: 16px 4px 14px;
  }

  .pillar-label {
    margin-bottom: 12px;
    font-size: calc(6px + var(--type-bump, 0px));
  }

  .pillar small {
    font-size: calc(7px + var(--type-bump, 0px));
  }

  .chart-stamp {
    top: -18px;
    right: -12px;
    width: 58px;
    height: 58px;
    font-size: 1.8rem;
  }

  .steps,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .step,
  .step:not(:first-child),
  .method-item,
  .method-item:not(:first-child) {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child,
  .method-item:last-child {
    border-bottom: 0;
  }

  .step-num,
  .method-num {
    margin-bottom: 20px;
  }

  .sample-name,
  .sample-reading {
    padding: 32px 24px;
  }

  .sample-name {
    min-height: 330px;
  }

  .sample-name-cn {
    font-size: clamp(3.6rem, 16vw, 5.2rem);
  }

  .sample-seal {
    display: none;
  }

  .sample-reading {
    padding-top: 22px;
  }

  .price-card {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col--note {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .reading-shell {
    padding-top: 106px;
  }

  .reading-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .reading-stamp {
    width: 74px;
    height: 74px;
    grid-row: 1;
    justify-self: end;
    margin-top: -6px;
  }

  .reading-stamp span {
    font-size: 1.5rem;
  }

  .reading-stamp small {
    font-size: calc(6px + var(--type-bump, 0px));
  }

  .name-lockup {
    gap: 12px;
  }

  .name-cn {
    font-size: clamp(3.6rem, 16vw, 5.4rem);
  }

  .name-side {
    padding-bottom: 4px;
  }

  .reading-section {
    margin-top: 38px;
    padding-top: 38px;
  }

  .chart-tile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chart-tile {
    padding: 18px 14px;
  }

  .balance-head {
    flex-direction: column;
    gap: 10px;
  }

  .balance-head p {
    text-align: left;
  }

  .element-balance-panel {
    padding: 22px 18px;
  }

  .element-bar {
    grid-template-columns: 74px minmax(0, 1fr) 24px;
  }

  .fortune-head {
    flex-direction: column;
    gap: 14px;
  }

  .lock-card {
    padding: 22px 18px;
  }

  .lock-list {
    grid-template-columns: 1fr;
  }

  .timeline,
  .lucky-grid,
  .name-guide,
  .personality-detail-grid {
    grid-template-columns: 1fr;
  }

  .name-breakdown {
    grid-template-columns: 1fr;
  }

  .name-character {
    padding: 22px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .name-character:last-child {
    border-bottom: 0;
  }

  .name-character-glyph {
    font-size: 3.2rem;
    margin-bottom: 10px;
  }

  .timeline-item,
  .timeline-item:not(:first-child) {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .reading-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .paywall-inner {
    padding: 36px 22px 26px;
  }

  .legal-main {
    padding-top: 106px;
  }

  .legal-shell h1 {
    font-size: clamp(2.7rem, 10vw, 3.8rem);
  }

  .reading-header-meta {
    display: none;
  }

  .header-back {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 2.85rem;
  }

  .field-row--date,
  .field-row--time {
    grid-template-columns: 1fr;
  }

  .field-row--date .select-wrap:first-child,
  .field-row--time .select-wrap:first-child,
  .field-row--date .select-wrap:last-child {
    grid-column: auto;
  }

  .form-card {
    padding: 22px 16px;
  }

  .sample-name-cn {
    font-size: 3.3rem;
  }

  .price {
    font-size: 5.4rem;
  }

  .trust-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 980px) {
  .reading-dragon {
    height: 720px;
  }
  .reading-dragon picture {
    width: 130vw;
    opacity: 0.08;
  }
}

@media (max-width: 720px) {
  .reading-dragon {
    height: 560px;
  }
  .reading-dragon picture {
    top: -10px;
    width: 160vw;
    opacity: 0.07;
    transform: translateX(-50%) rotate(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print — the paid reading becomes a clean document
   -------------------------------------------------------------------------- */

@media print {
  @page {
    margin: 18mm;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  body::before,
  .site-header,
  .site-footer,
  .reading-note,
  .lock-card,
  .reading-actions,
  .paywall,
  .toast,
  .header-back {
    display: none !important;
  }

  .reading-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .reading-hero {
    padding-bottom: 26px;
  }

  .name-cn {
    font-size: 38pt;
  }

  .reading-section {
    break-inside: avoid;
    margin-top: 26px;
    padding-top: 26px;
  }

  .reading-section-head h2 {
    font-size: 20pt;
  }

  .reading-section--unlocked {
    border-top: 1px solid #999;
  }

  .full-chapter,
  .reading-subsection,
  .timeline-item,
  .name-guide,
  .lucky-card {
    break-inside: avoid;
  }

  .element-fill {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* --------------------------------------------------------------------------
   Fortune year + language entry
   -------------------------------------------------------------------------- */

.year-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.year-pill {
  position: relative;
  cursor: pointer;
}

.year-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.year-pill span {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 252, 246, 0.55);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.year-pill span:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.year-pill input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.year-pill input:focus-visible + span {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-toggle {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: calc(9px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.lang-toggle:hover,
.lang-toggle[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: rgba(255, 252, 246, 0.6);
  color: var(--ink);
}

.lang-icon {
  width: 16px;
  height: 16px;
  color: var(--cinnabar);
}

.lang-mark {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(166, 63, 46, 0.4);
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 90;
  width: 264px;
  padding: 15px 16px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(23, 26, 23, 0.14);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu-title {
  margin: 0 0 9px;
  color: var(--muted-light);
  font-family: var(--sans);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lang-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
}

.lang-option {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.lang-option:hover {
  color: var(--cinnabar);
}

.lang-option.is-current {
  color: var(--cinnabar);
  font-weight: 600;
}

.lang-option.is-current::after {
  content: " ·";
  color: var(--cinnabar);
}

.lang-menu-note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: calc(9px + var(--type-bump, 0px));
  line-height: 1.45;
}

.footer-lang {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line-light);
}

.footer-lang-label {
  flex: 0 0 auto;
  padding-top: 3px;
  color: rgba(246, 241, 231, 0.32);
  font-family: var(--sans);
  font-size: calc(8px + var(--type-bump, 0px));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.footer-lang-item {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: rgba(246, 241, 231, 0.58);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.footer-lang-item:hover {
  color: var(--gold-light);
}

.footer-lang-item.is-current {
  color: var(--gold-light);
}

@media (max-width: 980px) {
  .lang-toggle {
    height: 32px;
    padding: 0 9px;
    gap: 5px;
  }

  .lang-menu {
    position: fixed;
    top: 92px;
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
  }

  .footer-lang {
    flex-direction: column;
    gap: 10px;
    padding: 18px 0 20px;
  }
}

@media (max-width: 420px) {
  .lang-toggle > span:last-child {
    display: none;
  }

  .lang-toggle {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .lang-icon {
  width: 16px;
  height: 16px;
  color: var(--cinnabar);
}

.lang-mark {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}

/* Paid reading: on-demand PDF */
.pdf-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 46px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(105deg, rgba(179, 56, 46, 0.055), rgba(255, 252, 245, 0.7));
}
.pdf-download-card h3 { margin: 6px 0 4px; font-size: 1.55rem; font-weight: 400; }
.pdf-download-card p { margin: 0; color: var(--muted); font-size: 12px; max-width: 48ch; }
.pdf-download-card .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 640px) {
  .pdf-download-card { flex-direction: column; align-items: flex-start; padding: 22px; gap: 18px; }
  .pdf-download-card .btn { width: 100%; }
}

/* Sitemap link appended to public page footers */
.footer-sitemap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 18px;
  font-size: calc(10px + var(--type-bump, 0px));
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-sitemap a { color: inherit; opacity: .72; text-decoration: none; }
.footer-sitemap a:hover { opacity: 1; color: var(--cinnabar); }
