/* ==========================================================================
   玄枢 · 山海问命
   Core: tokens, base, header, hero, almanac, section frames, footer
   ========================================================================== */

:root {
  --bg: #070a11;
  --bg-deep: #05070c;
  --bg-soft: #0b101a;
  --panel: #0d131f;
  --panel-2: #111827;
  --panel-3: #151d2c;
  --line: rgba(201, 172, 116, 0.15);
  --line-strong: rgba(201, 172, 116, 0.32);
  --line-soft: rgba(232, 220, 197, 0.08);
  --gold: #c9a96e;
  --gold-2: #e8d2a1;
  --gold-3: #9b7d49;
  --gold-dim: #77643f;
  --cinnabar: #a9342b;
  --cinnabar-2: #cf5a48;
  --jade: #71998b;
  --jade-2: #a6c6b8;
  --paper: #e8ddc7;
  --paper-2: #d8c6a7;
  --paper-3: #c6b18d;
  --text: #e8e1d3;
  --text-2: #c9c2b4;
  --muted: #9b9589;
  --muted-2: #71736f;
  --white: #f5efe2;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "FangSong", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 6%, rgba(88, 112, 123, 0.08), transparent 30%),
    radial-gradient(circle at 86% 32%, rgba(142, 100, 57, 0.055), transparent 34%),
    radial-gradient(circle at 50% 108%, rgba(101, 79, 45, 0.07), transparent 45%),
    linear-gradient(180deg, #070a11 0%, #080b13 48%, #060910 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  background-image: var(--grain);
  mix-blend-mode: soft-light;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: rgba(180, 137, 73, 0.34);
  color: var(--white);
}

:focus-visible {
  outline: 1px solid var(--gold-2);
  outline-offset: 4px;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

p,
h1,
h2,
h3,
h4,
h5 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
}

em {
  font-style: normal;
}

kbd {
  font-family: var(--font-serif);
  font-size: 0.78em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--gold-2);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 500;
  padding: 10px 18px;
  background: var(--gold-2);
  color: #161008;
  transform: translateY(-150%);
  transition: transform 0.25s;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100vw - 96px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 118px 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.kicker i {
  display: block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-3), transparent);
}

.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.35s, border-color 0.35s, background 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--gold {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #dcc18c 0%, #c3a168 48%, #aa844c 100%);
  color: #171108;
  box-shadow: 0 12px 38px rgba(165, 127, 64, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.4) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(165, 127, 64, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn--gold:hover::before {
  transform: translateX(120%);
}

.btn--gold > * {
  position: relative;
  z-index: 1;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--gold-2);
  background: rgba(201, 169, 110, 0.025);
}

.btn--ghost:hover {
  border-color: rgba(201, 169, 110, 0.62);
  background: rgba(201, 169, 110, 0.08);
  color: var(--white);
}

.btn--text {
  padding: 0 0 7px;
  min-height: auto;
  color: var(--text-2);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  letter-spacing: 0.1em;
}

.btn--text:hover {
  color: var(--gold-2);
  border-color: var(--gold-3);
}

.btn--text .btn__index {
  margin-left: 6px;
  color: var(--gold-3);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.btn--large {
  min-height: 54px;
  padding: 0 30px;
  font-size: 13px;
}

.btn--small {
  min-height: 38px;
  padding: 0 17px;
  font-size: 12px;
}

.btn--block {
  width: 100%;
}

.btn--header {
  min-height: 40px;
  padding: 0 17px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.btn--header svg {
  width: 15px;
  height: 15px;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.text-btn:hover {
  color: var(--gold-2);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  padding: 11px 0;
  background: rgba(7, 10, 17, 0.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2));
  box-shadow: 0 0 12px rgba(232, 210, 161, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
}

.brand__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(140deg, #b33b2d, #87241e);
  border: 1px solid rgba(226, 191, 133, 0.62);
  color: #f1dfc0;
  font-family: var(--font-kai);
  font-size: 25px;
  line-height: 1;
  box-shadow: inset 0 0 0 3px rgba(107, 20, 15, 0.35), 0 6px 22px rgba(120, 26, 19, 0.25);
}

.brand__seal::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(241, 223, 192, 0.38);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__text strong {
  font-family: var(--font-kai);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.05;
}

.brand__text small {
  color: var(--muted-2);
  font-family: var(--font-serif);
  font-size: 8px;
  letter-spacing: 0.32em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.2vw, 43px);
}

.main-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  color: var(--text-2);
  transition: color 0.3s;
}

.main-nav a span {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.main-nav a small {
  color: var(--muted-2);
  font-family: var(--font-serif);
  font-size: 7px;
  letter-spacing: 0.24em;
  transition: color 0.3s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--gold-2);
}

.main-nav a:hover small,
.main-nav a.is-active small {
  color: var(--gold-3);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: translateX(-50%) rotate(45deg) scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--gold-2);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  margin: auto;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.55;
  animation: drift 20s ease-in-out infinite alternate;
}

.hero__aurora--one {
  width: 46vw;
  height: 38vw;
  top: -17vw;
  right: -7vw;
  background: radial-gradient(circle, rgba(77, 112, 119, 0.28), rgba(17, 28, 42, 0.08) 55%, transparent 72%);
}

.hero__aurora--two {
  width: 42vw;
  height: 30vw;
  top: 12%;
  left: -18vw;
  background: radial-gradient(circle, rgba(144, 96, 55, 0.14), transparent 68%);
  animation-delay: -7s;
}

.hero__moon {
  position: absolute;
  top: 6%;
  right: 3.5%;
  width: clamp(88px, 10vw, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 250, 232, 0.3), transparent 23%),
    radial-gradient(circle at 62% 67%, rgba(119, 101, 72, 0.12), transparent 20%),
    radial-gradient(circle at 50% 50%, #e6dcc3 0%, #c8b998 56%, #87765b 100%);
  box-shadow: 0 0 65px rgba(211, 194, 159, 0.13), 0 0 170px rgba(198, 175, 128, 0.08);
  opacity: 0.64;
  filter: blur(0.2px);
}

.hero__moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 72% 28%, rgba(54, 48, 37, 0.17), transparent 14%),
    radial-gradient(circle at 37% 63%, rgba(69, 59, 42, 0.12), transparent 18%);
}

.hero__moon::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: radial-gradient(circle, transparent 42%, rgba(7, 10, 17, 0.55) 58%, transparent 70%);
  transform: translate(12%, 10%);
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.hero__mountains {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 54%;
  opacity: 0.9;
}

.hero__mountains .mountain {
  stroke: rgba(199, 180, 142, 0.05);
  stroke-width: 1;
}

.mountain--back {
  fill: #111a28;
  opacity: 0.7;
}

.mountain--mid {
  fill: #0a111c;
  opacity: 0.88;
}

.mountain--front {
  fill: #070a11;
}

.hero__mist {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(169, 165, 145, 0.075), transparent 67%);
  filter: blur(14px);
  animation: mist 26s linear infinite;
}

.hero__mist--one {
  bottom: 18%;
}

.hero__mist--two {
  bottom: 4%;
  opacity: 0.65;
  animation-duration: 34s;
  animation-direction: reverse;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: clamp(30px, 4vw, 72px);
  position: relative;
  z-index: 1;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  animation: heroRise 1.1s var(--ease) both;
}

.hero__eyebrow {
  margin-bottom: 28px;
  color: #bbae91;
}

.hero__eyebrow em {
  margin-left: 7px;
  padding: 3px 7px;
  border: 1px solid rgba(169, 52, 43, 0.56);
  color: #d6a494;
  font-family: var(--font-kai);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.eyebrow__line {
  display: block;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-3), transparent);
}

.hero__title {
  margin: 0 0 29px;
  font-family: var(--font-kai);
  font-size: clamp(3.75rem, 7.35vw, 7.15rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.012em;
  color: var(--text);
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.4);
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__title-line--accent {
  position: relative;
  padding-top: 4px;
  background: linear-gradient(100deg, #b99761 0%, #eedcaf 33%, #c7a365 63%, #8c6c3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 34px rgba(157, 118, 58, 0.1));
}

.hero__title-line--accent::after {
  content: "";
  position: absolute;
  right: 0.04em;
  top: 36%;
  width: 9px;
  height: 9px;
  background: var(--cinnabar);
  transform: rotate(45deg);
  box-shadow: 0 0 20px rgba(169, 52, 43, 0.6);
}

.hero__lead {
  max-width: 470px;
  color: #b9b3a8;
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 2.05;
  letter-spacing: 0.055em;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 38px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 560px;
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.hero__stats > div {
  position: relative;
  padding: 19px 18px 0 0;
}

.hero__stats > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line-soft);
}

.hero__stats dt {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.3vw, 31px);
  line-height: 1;
  letter-spacing: 0.04em;
}

.hero__stats dt small {
  color: var(--gold-3);
  font-family: var(--font-kai);
  font-size: 13px;
}

.hero__stats dd {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.hero__cosmos-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: heroFade 1.6s var(--ease) 0.2s both;
}

.hero__cosmos-wrap::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 162, 100, 0.13), rgba(25, 42, 45, 0.06) 50%, transparent 68%);
  filter: blur(25px);
}

.cosmos-caption {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-3);
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.28em;
  white-space: nowrap;
}

.cosmos-caption i {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--line-strong);
}

.cosmos-caption--top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cosmos-caption--bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cosmos {
  position: relative;
  width: min(43vw, 580px);
  min-width: 330px;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  will-change: transform;
}

.cosmos__halo {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 165, 100, 0.14), transparent 67%);
  filter: blur(28px);
}

.cosmos__ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cosmos__ring-line {
  fill: none;
  stroke: rgba(197, 167, 111, 0.26);
  stroke-width: 0.8;
}

.cosmos__ring-line--faint {
  stroke: rgba(197, 167, 111, 0.12);
  stroke-dasharray: 1 6;
}

.cosmos__ring-line--inner {
  stroke: rgba(197, 167, 111, 0.2);
  stroke-dasharray: 2 11;
}

.cosmos__spin {
  transform-origin: 300px 300px;
  animation: orbit 120s linear infinite;
}

.cosmos__spin--reverse {
  animation-direction: reverse;
  animation-duration: 90s;
}

.cosmos__tick {
  stroke: rgba(213, 187, 138, 0.34);
  stroke-width: 0.7;
}

.cosmos__tick--major {
  stroke: rgba(232, 210, 161, 0.58);
  stroke-width: 1;
}

.cosmos__mansion-text {
  fill: rgba(199, 178, 138, 0.64);
  font-family: var(--font-kai);
  font-size: 12px;
  letter-spacing: 2.5px;
}

.cosmos__mansion-dot {
  fill: #cdb381;
  opacity: 0.55;
}

.cosmos__constellation {
  fill: none;
  stroke: rgba(205, 179, 129, 0.2);
  stroke-width: 0.7;
}

.cosmos__constellation-star {
  fill: #e0c994;
  opacity: 0.6;
}

.cosmos__crosshair {
  stroke: rgba(197, 167, 111, 0.1);
  stroke-width: 0.7;
  stroke-dasharray: 1 5;
}

.cosmos__trigram {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin: -15.5px;
  border: 1px solid rgba(201, 172, 116, 0.22);
  border-radius: 50%;
  background: rgba(8, 12, 19, 0.72);
  color: rgba(228, 205, 158, 0.8);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(201, 172, 116, 0.04);
}

.cosmos__node {
  position: absolute;
  width: 4px;
  height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 9px 2px rgba(232, 210, 161, 0.34);
  animation: twinkle 4s ease-in-out infinite;
}

.cosmos__node::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(232, 210, 161, 0.18);
  border-radius: 50%;
}

.cosmos__cardinal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transform: translate(-50%, -50%);
}

.cosmos__cardinal-seal {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid rgba(211, 184, 129, 0.34);
  background: radial-gradient(circle at 40% 30%, rgba(197, 161, 96, 0.16), rgba(8, 12, 19, 0.92));
  color: var(--gold-2);
  font-family: var(--font-kai);
  font-size: 23px;
  line-height: 1;
  transform: rotate(45deg);
  box-shadow: 0 0 29px rgba(191, 154, 88, 0.08);
}

.cosmos__cardinal-seal span {
  transform: rotate(-45deg);
}

.cosmos__cardinal-label {
  color: rgba(213, 196, 162, 0.58);
  font-family: var(--font-serif);
  font-size: 8px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.cosmos__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 31%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.09), rgba(7, 10, 17, 0.7) 62%, transparent 72%);
}

.cosmos__core::before,
.cosmos__core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.cosmos__core::before {
  inset: -13%;
  border: 1px solid rgba(201, 172, 116, 0.24);
  box-shadow: inset 0 0 28px rgba(201, 172, 116, 0.05);
}

.cosmos__core::after {
  inset: -24%;
  border: 1px dashed rgba(201, 172, 116, 0.12);
  animation: orbit 65s linear infinite;
}

.taiji {
  position: relative;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(223, 197, 146, 0.45);
  background: linear-gradient(90deg, #e1d0ae 0%, #d9c6a0 49.9%, #0e1520 50%, #0a1018 100%);
  box-shadow: 0 0 38px rgba(201, 172, 116, 0.14), inset 0 0 18px rgba(0, 0, 0, 0.25);
  animation: orbit 55s linear infinite;
}

.taiji::before,
.taiji::after {
  content: "";
  position: absolute;
  left: 25%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
}

.taiji::before {
  top: 0;
  background: #0d131e;
}

.taiji::after {
  bottom: 0;
  background: #ddcbaa;
}

.taiji__dot {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 12%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
}

.taiji__dot--yin {
  top: 19%;
  background: #ddcbaa;
}

.taiji__dot--yang {
  bottom: 19%;
  background: #0d131e;
}

.cosmos__core-glyph {
  position: absolute;
  z-index: 4;
  right: -17%;
  bottom: 1%;
  color: rgba(201, 172, 116, 0.45);
  font-family: var(--font-kai);
  font-size: 13px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
}

.hero__foot-note {
  color: rgba(177, 170, 155, 0.54);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-3);
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.22em;
  writing-mode: horizontal-tb;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 31px;
  background: linear-gradient(180deg, var(--gold-3), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}

/* --------------------------------------------------------------------------
   Almanac / verse
   -------------------------------------------------------------------------- */

.almanac-section {
  position: relative;
  z-index: 4;
  margin-top: -64px;
}

.almanac {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 30px;
  padding: 22px 30px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.024), transparent 35%),
    rgba(13, 18, 29, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.almanac::before,
.almanac::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.almanac::before {
  top: 5px;
  left: 5px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.almanac::after {
  right: 5px;
  bottom: 5px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.almanac__date {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 27px;
  border-right: 1px solid var(--line);
}

.almanac__day {
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.almanac__date div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.almanac__date div > span {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.almanac__date strong {
  color: var(--text-2);
  font-family: var(--font-kai);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.almanac__kicker {
  color: var(--gold-3);
  font-size: 9px;
  letter-spacing: 0.25em;
}

.almanac__kicker span {
  color: var(--gold);
}

.almanac__ganzhi {
  margin: 4px 0 2px;
  color: var(--text);
  font-family: var(--font-kai);
  font-size: 19px;
  letter-spacing: 0.14em;
}

.almanac__deity {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.almanac__deity span {
  padding-bottom: 1px;
  border-bottom: 1px dotted rgba(166, 198, 184, 0.4);
  color: var(--jade-2);
  transition: color 0.3s, border-color 0.3s;
}

.almanac__deity span:hover {
  border-color: var(--jade-2);
  color: var(--white);
}

.almanac__deity span::after {
  content: " ↗";
  font-family: var(--font-serif);
  font-size: 7px;
  opacity: 0.6;
}

.almanac__luck {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 4px;
}

.almanac__luck p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.almanac__label {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  font-family: var(--font-kai);
  font-size: 12px;
  line-height: 1;
}

.almanac__label--yi {
  color: #a9c8b8;
  border: 1px solid rgba(113, 153, 139, 0.38);
  background: rgba(113, 153, 139, 0.08);
}

.almanac__label--ji {
  color: #d19c8e;
  border: 1px solid rgba(169, 52, 43, 0.38);
  background: rgba(169, 52, 43, 0.08);
}

.almanac__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(201, 172, 116, 0.3);
  color: var(--gold-2);
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s;
}

.almanac__btn:hover {
  background: rgba(201, 172, 116, 0.08);
  border-color: rgba(201, 172, 116, 0.55);
}

.almanac__btn svg {
  width: 14px;
  height: 14px;
}

.verse-strip {
  padding: 74px 0 10px;
}

.verse-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
}

.verse-strip p {
  color: #bdb5a6;
  font-family: var(--font-kai);
  font-size: clamp(16px, 1.55vw, 21px);
  letter-spacing: 0.13em;
  line-height: 1.9;
}

.verse-strip cite {
  color: var(--gold-3);
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.verse-strip__ornament {
  position: relative;
  width: clamp(40px, 9vw, 125px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong));
}

.verse-strip__ornament:last-child {
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.verse-strip__ornament::after {
  content: "";
  position: absolute;
  top: -2.5px;
  right: -1px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold-3);
  transform: rotate(45deg);
}

.verse-strip__ornament:last-child::after {
  left: -1px;
  right: auto;
}

/* --------------------------------------------------------------------------
   Section heading / chapter
   -------------------------------------------------------------------------- */

.section-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(24px, 4vw, 54px);
  margin-bottom: 56px;
}

.chapter-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 2px;
}

.chapter-mark strong {
  color: transparent;
  font-family: var(--font-serif);
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(201, 172, 116, 0.5);
}

.chapter-mark span {
  color: var(--gold-dim);
  font-family: var(--font-serif);
  font-size: 8px;
  letter-spacing: 0.25em;
  writing-mode: vertical-rl;
}

.section-head__main {
  max-width: 720px;
}

.section-head__main .kicker {
  margin-bottom: 15px;
}

.section-head h2 {
  font-family: var(--font-kai);
  font-size: clamp(2.4rem, 4.2vw, 4.1rem);
  line-height: 1.3;
  letter-spacing: 0.035em;
  color: var(--text);
}

.section-head h2 em {
  color: var(--gold);
}

.section-head__desc {
  max-width: 620px;
  margin-top: 17px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.055em;
}

.section-head__note {
  align-self: end;
  padding: 0 0 8px 21px;
  border-left: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--font-serif);
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Footer / about
   -------------------------------------------------------------------------- */

.about {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 16% 50%, rgba(93, 121, 113, 0.07), transparent 35%),
    linear-gradient(180deg, #080b12, #06090f);
}

.about__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.about__copy h2 {
  margin: 20px 0 28px;
  font-family: var(--font-kai);
  font-size: clamp(2.2rem, 3.6vw, 3.5rem);
  line-height: 1.42;
}

.about__copy h2 em {
  color: var(--gold);
}

.about__copy > p {
  max-width: 580px;
  margin-bottom: 19px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 2.15;
  letter-spacing: 0.045em;
}

.about__copy .btn {
  margin-top: 18px;
}

.about__creed {
  position: relative;
  padding: 12px 0 0;
}

.creed-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.creed-item > span {
  color: var(--gold-dim);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.creed-item strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-family: var(--font-kai);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.creed-item p {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.9;
}

.about__seal {
  position: absolute;
  right: -3%;
  bottom: -55px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(169, 52, 43, 0.52);
  color: rgba(207, 90, 72, 0.68);
  font-family: var(--font-kai);
  font-size: 15px;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
  transform: rotate(-4deg);
  opacity: 0.8;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
  background: #06090f;
}

.site-footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 52px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 17px;
}

.footer-brand__seal {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 172, 116, 0.4);
  color: var(--gold);
  font-family: var(--font-kai);
  font-size: 27px;
  line-height: 1;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-brand strong {
  font-family: var(--font-kai);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
}

.footer-brand small {
  color: var(--muted-2);
  font-family: var(--font-serif);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.footer-quote {
  color: #9e9687;
  font-family: var(--font-kai);
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.16em;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: clamp(35px, 5vw, 72px);
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links span {
  margin-bottom: 3px;
  color: var(--gold-3);
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold-2);
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.site-footer__watermark {
  position: absolute;
  right: 2vw;
  bottom: -8vw;
  color: transparent;
  font-family: var(--font-kai);
  font-size: 34vw;
  line-height: 0.85;
  -webkit-text-stroke: 1px rgba(201, 172, 116, 0.045);
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes heroRise {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(4%, 2%, 0) scale(1.08); }
}

@keyframes mist {
  from { transform: translateX(-7%); opacity: 0.45; }
  50% { opacity: 0.8; }
  to { transform: translateX(7%); opacity: 0.45; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.28; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.35); opacity: 0.35; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Core responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .container {
    width: min(var(--container), calc(100vw - 64px));
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
  }

  .cosmos {
    width: min(44vw, 500px);
  }

  .main-nav {
    gap: 22px;
  }

  .almanac {
    grid-template-columns: auto 1.15fr 1.25fr;
    gap: 24px;
  }

  .almanac__btn {
    display: none;
  }

  .almanac__luck {
    padding-left: 10px;
  }
}

@media (max-width: 1000px) {
  .main-nav {
    position: fixed;
    inset: 75px 20px auto;
    z-index: 90;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 26px;
    background: rgba(9, 13, 21, 0.97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
  }

  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a small {
    font-size: 8px;
  }

  .main-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 135px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__cosmos-wrap {
    justify-self: center;
    width: min(620px, 82vw);
  }

  .cosmos {
    width: min(70vw, 540px);
  }

  .hero__stats {
    max-width: 620px;
  }

  .hero__foot {
    margin-top: 52px;
  }

  .almanac {
    grid-template-columns: auto 1fr auto;
  }

  .almanac__luck {
    grid-column: 2 / 4;
    flex-direction: row;
    gap: 24px;
    padding: 13px 0 0;
    border-top: 1px solid var(--line-soft);
  }

  .almanac__date {
    grid-row: 1 / 3;
    align-self: center;
  }

  .section-head {
    grid-template-columns: 70px 1fr;
  }

  .section-head__note {
    display: none;
  }

  .chapter-mark strong {
    font-size: 46px;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__seal {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-quote {
    display: none;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100vw - 40px);
  }

  .section {
    padding: 84px 0;
  }

  .site-header {
    padding: 12px 0;
  }

  .brand__seal {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .brand__text strong {
    font-size: 19px;
  }

  .brand__text small {
    font-size: 7px;
  }

  .btn--header {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 118px 0 80px;
  }

  .hero__moon {
    top: 4%;
    right: -5%;
    width: 94px;
    opacity: 0.46;
  }

  .hero__title {
    font-size: clamp(3.15rem, 15.2vw, 5.4rem);
  }

  .hero__title-line--accent::after {
    width: 7px;
    height: 7px;
    top: 34%;
  }

  .hero__lead {
    font-size: 14px;
    line-height: 2;
  }

  .hero__lead br {
    display: none;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-top: 29px;
  }

  .hero__actions .btn--large {
    width: 100%;
  }

  .hero__actions .btn--text {
    width: auto;
  }

  .hero__stats {
    margin-top: 40px;
    grid-template-columns: repeat(2, 1fr);
    border-top: 0;
  }

  .hero__stats > div {
    padding: 13px 0;
    border-top: 1px solid var(--line-soft);
  }

  .hero__stats > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .hero__stats > div:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid var(--line-soft);
  }

  .hero__cosmos-wrap {
    width: 100%;
  }

  .cosmos {
    width: min(86vw, 430px);
    min-width: 280px;
  }

  .cosmos__cardinal-seal {
    width: 33px;
    height: 33px;
    font-size: 19px;
  }

  .cosmos__cardinal-label {
    display: none;
  }

  .cosmos__trigram {
    width: 25px;
    height: 25px;
    margin: -12.5px;
    font-size: 14px;
  }

  .cosmos-caption {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .hero__foot-note {
    display: none;
  }

  .hero__foot {
    justify-content: flex-end;
  }

  .almanac-section {
    margin-top: -35px;
  }

  .almanac {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
  }

  .almanac__date {
    width: 100%;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .almanac__day {
    font-size: 46px;
  }

  .almanac__center {
    flex: 1 1 100%;
  }

  .almanac__ganzhi {
    font-size: 17px;
  }

  .almanac__luck {
    flex: 1 1 100%;
    flex-direction: column;
    gap: 5px;
    padding-top: 11px;
  }

  .almanac__btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
    padding: 12px 14px;
  }

  .verse-strip {
    padding: 50px 0 0;
  }

  .verse-strip__inner {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .verse-strip p {
    flex-basis: 100%;
    font-size: 15px;
    order: 2;
  }

  .verse-strip cite {
    order: 3;
    flex-basis: 100%;
  }

  .verse-strip__ornament {
    width: 45px;
    order: 1;
  }

  .verse-strip__ornament:last-child {
    order: 1;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 36px;
  }

  .chapter-mark {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .chapter-mark strong {
    font-size: 34px;
    -webkit-text-stroke-width: 0.8px;
  }

  .chapter-mark span {
    writing-mode: horizontal-tb;
  }

  .section-head h2 {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .section-head__desc {
    margin-top: 12px;
    font-size: 13px;
  }

  .about__copy h2 {
    font-size: 2.1rem;
  }

  .about__copy > p {
    font-size: 13px;
  }

  .site-footer {
    padding-top: 50px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 35px;
  }

  .footer-links {
    gap: 42px;
  }

  .site-footer__watermark {
    font-size: 55vw;
    bottom: -16vw;
  }

  .site-footer__bottom {
    font-size: 8px;
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
