:root {
  color-scheme: dark;
  --night: #101b2d;
  --night-deep: #091321;
  --night-soft: #1a2a42;
  --moon: #f3e8ce;
  --moon-bright: #fff7df;
  --gold: #cdb781;
  --gold-soft: #e3d3a8;
  --jade: #8baba3;
  --vermilion: #bd6253;
  --ink: #111a28;
  --text: #ece4d4;
  --muted: #aaa495;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --calligraphy: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', cursive;
  --sans: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-family: var(--serif);
  background: var(--night-deep);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--night-deep); }
body { min-width: 320px; margin: 0; background: var(--night-deep); }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { color: var(--night-deep); background: var(--gold-soft); }

.moon-gate { align-items: center; background: radial-gradient(ellipse at 50% 47%, #263750 0%, #142238 31%, #091321 74%); display: flex; flex-direction: column; inset: 0; justify-content: center; overflow: hidden; position: fixed; text-align: center; transition: opacity 1.15s ease, visibility 1.15s ease; z-index: 1000; }
.moon-gate::before { background: radial-gradient(circle, rgba(255, 249, 231, .9), rgba(243, 232, 206, .24) 27%, transparent 67%); content: ''; height: min(84vw, 84vh); left: 50%; opacity: .48; position: absolute; top: 46%; transform: translate(-50%, -50%); transition: opacity .7s ease; width: min(84vw, 84vh); }
.moon-gate.is-opening { opacity: 0; visibility: hidden; }
.gate-light { background: radial-gradient(circle, rgba(255, 253, 242, .98), rgba(255, 247, 223, .52) 17%, rgba(231, 218, 184, .16) 38%, transparent 70%); border-radius: 50%; height: min(32vw, 32vh); left: 50%; opacity: 0; pointer-events: none; position: absolute; top: 46%; transform: translate(-50%, -50%) scale(.24); width: min(32vw, 32vh); }
.moon-gate.is-opening .gate-light { animation: gate-burst 1.45s cubic-bezier(.2,.75,.2,1) both; }
.gate-moon { appearance: none; background: transparent; border: 0; border-radius: 50%; cursor: pointer; height: min(31vw, 31vh, 280px); margin-top: -5vh; padding: 0; position: relative; transition: filter .55s ease, transform .55s ease; width: min(31vw, 31vh, 280px); z-index: 1; }
.gate-moon:focus-visible { outline: 1px solid rgba(255, 247, 223, .8); outline-offset: 12px; }
.gate-moon:hover, .gate-moon:focus-visible { filter: brightness(1.12); transform: scale(1.035); }
.gate-moon-face { animation: gate-breathe 6.5s ease-in-out infinite; background: radial-gradient(circle at 38% 32%, #fffdf1 0%, #fff6db 25%, #e7d8b6 62%, #b7a987 100%); border: 1px solid rgba(255, 250, 231, .78); border-radius: 50%; box-shadow: 0 0 22px rgba(255, 246, 217, .56), 0 0 74px rgba(231, 218, 184, .25), inset -16px -14px 34px rgba(93, 87, 75, .2), inset 10px 10px 24px rgba(255, 255, 244, .72); display: block; inset: 13%; position: absolute; }
.gate-moon-face::before, .gate-moon-face::after { background: rgba(159, 145, 111, .13); border-radius: 50%; content: ''; position: absolute; }
.gate-moon-face::before { height: 11%; left: 27%; top: 35%; width: 11%; }
.gate-moon-face::after { height: 7%; right: 24%; top: 58%; width: 7%; }
.gate-moon-halo { background: radial-gradient(circle, rgba(255, 247, 223, .22), rgba(243, 232, 206, .07) 45%, transparent 68%); border-radius: 50%; filter: blur(10px); inset: -22%; position: absolute; }
.gate-copy { color: rgba(245, 238, 220, .92); font-size: clamp(13px, 1.4vw, 17px); letter-spacing: .24em; margin: 7vh 0 0; position: relative; text-shadow: 0 2px 22px rgba(255, 246, 217, .3); }
.gate-signature { bottom: 6vh; color: rgba(205, 183, 129, .55); font-size: 9px; letter-spacing: .24em; position: absolute; }
.gate-dust { inset: 0; pointer-events: none; position: absolute; }
.gate-dust i { animation: dust-drift 8s ease-in-out infinite alternate; background: #fff4d8; border-radius: 50%; box-shadow: 0 0 12px rgba(255, 240, 201, .8); height: 2px; left: var(--dust-x); opacity: .42; position: absolute; top: var(--dust-y); width: 2px; }
.gate-dust i:nth-child(1) { --dust-x: 18%; --dust-y: 25%; animation-delay: -2s; }.gate-dust i:nth-child(2) { --dust-x: 79%; --dust-y: 18%; animation-delay: -5s; }
.gate-dust i:nth-child(3) { --dust-x: 25%; --dust-y: 73%; animation-delay: -3s; }.gate-dust i:nth-child(4) { --dust-x: 86%; --dust-y: 61%; animation-delay: -6s; }
.gate-dust i:nth-child(5) { --dust-x: 39%; --dust-y: 13%; animation-delay: -1s; }.gate-dust i:nth-child(6) { --dust-x: 68%; --dust-y: 82%; animation-delay: -4s; }
.gate-dust i:nth-child(7) { --dust-x: 11%; --dust-y: 48%; animation-delay: -7s; }.gate-dust i:nth-child(8) { --dust-x: 92%; --dust-y: 37%; animation-delay: -2.5s; }
.gate-dust i:nth-child(9) { --dust-x: 34%; --dust-y: 88%; animation-delay: -5.5s; }.gate-dust i:nth-child(10) { --dust-x: 72%; --dust-y: 26%; animation-delay: -3.5s; }
.gate-dust i:nth-child(11) { --dust-x: 55%; --dust-y: 10%; animation-delay: -4.5s; }.gate-dust i:nth-child(12) { --dust-x: 63%; --dust-y: 91%; animation-delay: -1.5s; }
.entry-locked .site-shell { opacity: 0; pointer-events: none; visibility: hidden; }
.is-entering .site-shell, .is-entered .site-shell { opacity: 1; pointer-events: auto; visibility: visible; }
.is-entering .site-shell { animation: site-unveil 1.65s cubic-bezier(.18,.74,.27,1) both; }

.site-shell { overflow: hidden; position: relative; }
.site-header {
  align-items: center;
  display: flex;
  height: 90px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(24px, 5.8vw, 100px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}
.brand { align-items: center; display: inline-flex; gap: 12px; }
.brand-seal {
  align-items: center;
  border: 1px solid rgba(205, 183, 129, .62);
  color: var(--gold-soft);
  display: flex;
  font-size: 19px;
  height: 38px;
  justify-content: center;
  position: relative;
  width: 38px;
}
.brand-seal::after { border: 1px solid rgba(205, 183, 129, .24); content: ''; inset: 3px; position: absolute; }
.brand strong { color: #f0e7d5; display: block; font-size: 13px; font-weight: 500; letter-spacing: .19em; }
.brand small { color: #a59c8c; display: block; font-family: var(--sans); font-size: 7px; letter-spacing: .15em; margin-top: 4px; }
.main-nav { align-items: center; display: flex; gap: clamp(23px, 3.3vw, 52px); margin-left: 40px; }
.main-nav a { color: rgba(227, 218, 199, .76); font-size: 11px; letter-spacing: .1em; transition: color .25s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-soft); }
.header-cta { align-items: center; border-bottom: 1px solid rgba(205, 183, 129, .48); color: #dfd2b3; display: inline-flex; font-size: 10px; gap: 13px; letter-spacing: .14em; padding: 8px 0; }
.header-cta i { color: var(--gold); font-size: 15px; font-style: normal; }

.hero {
  background: var(--night);
  height: max(760px, 100svh);
  isolation: isolate;
  min-height: 740px;
  overflow: hidden;
  position: relative;
}
.hero-sky { inset: 0; overflow: hidden; pointer-events: none; position: absolute; z-index: -1; }
.hero-sky::before { background: radial-gradient(ellipse at 64% 45%, rgba(37, 55, 79, .23), transparent 48%), linear-gradient(180deg, rgba(7, 14, 26, .8), transparent 20%, rgba(8, 16, 28, .25) 76%, #091321); content: ''; inset: 0; position: absolute; }
.hero-sky::after { background: linear-gradient(90deg, #0a1423 0%, rgba(10, 20, 35, .89) 19%, rgba(10, 20, 35, .3) 38%, transparent 70%, rgba(7, 13, 22, .36)); content: ''; inset: 0; position: absolute; }
.sky-wash { border: 1px solid rgba(178, 173, 154, .07); border-radius: 50%; filter: blur(2px); height: 28vw; position: absolute; width: 72vw; }
.sky-wash-one { left: -25vw; top: 51%; transform: rotate(-17deg); }
.sky-wash-two { right: -33vw; top: 18%; transform: rotate(23deg); }
.sky-star { animation: star-breathe 5s ease-in-out infinite alternate; background: #e8d9b5; border-radius: 50%; box-shadow: 0 0 8px rgba(238, 217, 169, .55); height: 2px; position: absolute; width: 2px; }
.star-a { left: 39%; top: 23%; }.star-b { left: 75%; top: 16%; animation-delay: -1s; }.star-c { left: 86%; top: 36%; height: 3px; width: 3px; animation-delay: -3s; }.star-d { left: 32%; top: 73%; animation-delay: -2s; }.star-e { left: 92%; top: 68%; animation-delay: -4s; }.star-f { left: 53%; top: 11%; height: 3px; width: 3px; animation-delay: -2.5s; }
.cloud-mist { border: 1px solid rgba(206, 197, 175, .07); border-radius: 50%; height: 96px; position: absolute; width: 290px; }
.cloud-mist::before, .cloud-mist::after { border: inherit; border-radius: 50%; content: ''; height: 66px; position: absolute; top: -25px; width: 170px; }
.cloud-mist::before { left: 23px; }.cloud-mist::after { right: 12px; top: -17px; }
.mist-a { animation: mist-float 26s ease-in-out infinite alternate; bottom: 13%; left: -210px; transform: rotate(-8deg); }
.mist-b { animation: mist-float 30s ease-in-out infinite alternate-reverse; right: -210px; top: 51%; transform: rotate(13deg) scale(.72); }

.hero-art { height: 100%; left: 52%; max-height: 1080px; object-fit: contain; object-position: center; position: absolute; top: 50%; transform: translate(-50%, -50%); width: min(100%, 1920px); z-index: 0; }
.art-vignette { background: linear-gradient(90deg, rgba(8, 17, 30, .72), rgba(8, 17, 30, .24) 25%, transparent 46%, transparent 77%, rgba(8, 15, 25, .2)), linear-gradient(0deg, rgba(8, 16, 28, .62), transparent 22%, transparent 76%, rgba(9, 16, 28, .2)); inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.hero-crescent { height: 58%; left: 17%; opacity: .72; overflow: visible; pointer-events: none; position: absolute; top: 30%; width: min(20vw, 310px); z-index: 2; }
.crescent-glow { fill: url(#crescent-ink); filter: url(#crescent-glow); opacity: .58; }
.crescent-body { fill: url(#crescent-ink); filter: drop-shadow(0 0 16px rgba(245, 234, 207, .28)); }
.crescent-edge { fill: none; stroke: rgba(255, 247, 223, .44); stroke-width: 2; }
.hero-ribbons { inset: 0; overflow: visible; pointer-events: none; position: absolute; }
.hero-ribbons-back { opacity: .54; z-index: 2; }
.hero-ribbons-front { opacity: 0; z-index: 8; }
.is-entering .hero-ribbons-back, .is-entering .hero-ribbons-front { animation: ribbon-arrive 1.5s ease-out both; }
.is-entering .hero-ribbons-front { animation-delay: .25s; }
.is-entered .hero-ribbons-front { opacity: .78; }
.flow-stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow-stroke-back { stroke-dasharray: 180 85 36 110; stroke-width: 10; }
.flow-back-one { animation: ribbon-flow 34s linear infinite; stroke: url(#ribbon-back-one); }
.flow-back-two { animation: ribbon-flow-reverse 43s linear infinite; stroke: url(#ribbon-back-two); stroke-dasharray: 250 120 48 145; stroke-width: 6; }
.flow-stroke-front { stroke-dasharray: 240 110 42 130; stroke-width: 12; }
.flow-front-one { animation: ribbon-flow 26s linear infinite; stroke: url(#ribbon-front-one); }
.flow-front-two { animation: ribbon-flow-reverse 37s linear infinite; stroke: url(#ribbon-front-two); stroke-dasharray: 190 86 26 122; stroke-width: 7; }
.flow-highlight { fill: none; stroke: rgba(255, 249, 229, .34); stroke-dasharray: 3 66 1 100; stroke-linecap: round; stroke-width: 2; }
.flow-highlight-back { animation: ribbon-flow 29s linear infinite; }
.flow-highlight-front { animation: ribbon-flow-reverse 24s linear infinite; stroke: rgba(255, 250, 233, .55); }
.is-entering .hero-art { animation: artwork-arrive 1.65s cubic-bezier(.16,.74,.2,1) both; }
.is-entering .hero-copy { animation: copy-arrive 1s .5s ease-out both; }
.hero-copy { left: clamp(34px, 8.2vw, 146px); position: absolute; top: 27%; width: min(300px, 26vw); z-index: 50; }
.eyebrow { align-items: center; color: var(--gold); display: flex; font-family: var(--sans); font-size: 8px; gap: 9px; letter-spacing: .25em; margin: 0; }
.hero-copy .eyebrow span { background: var(--vermilion); display: inline-block; height: 6px; transform: rotate(45deg); width: 6px; }
.hero-copy h1 { color: #f3ead8; font-size: clamp(42px, 5.1vw, 76px); font-weight: 400; letter-spacing: .17em; line-height: 1.16; margin: 23px 0 16px; text-shadow: 0 5px 35px rgba(0, 0, 0, .26); white-space: nowrap; }
.hero-copy h1 span { color: var(--gold-soft); }
.hero-subtitle { color: #ded5c4; font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .13em; margin: 0; white-space: nowrap; }
.hero-poem { border-left: 1px solid rgba(205, 183, 129, .54); color: rgba(213, 205, 189, .76); font-size: 11px; letter-spacing: .15em; line-height: 2.1; margin: 27px 0 0; padding-left: 15px; }
.scroll-cue { align-items: center; color: #a79d88; display: inline-flex; font-size: 8px; gap: 12px; letter-spacing: .2em; margin-top: 61px; }
.scroll-line { background: linear-gradient(180deg, var(--gold), transparent); display: inline-block; height: 36px; width: 1px; }
.hero-side-note { align-items: center; color: rgba(222, 211, 184, .64); display: flex; flex-direction: column; font-size: 9px; gap: 15px; letter-spacing: .32em; position: absolute; right: 4.3vw; top: 33%; writing-mode: vertical-rl; z-index: 50; }
.hero-side-note i { background: var(--gold); height: 27px; opacity: .48; width: 1px; }
.hero-index { bottom: 54px; color: #898879; font-family: var(--sans); font-size: 8px; letter-spacing: .18em; position: absolute; right: 5.7vw; z-index: 50; }
.hero-index span { color: var(--gold); font-family: var(--serif); font-size: 14px; }
.hero-next { align-items: center; border: 1px solid rgba(205, 183, 129, .38); border-radius: 50%; bottom: 45px; color: var(--gold-soft); display: flex; font-family: var(--sans); font-size: 14px; height: 36px; justify-content: center; left: 50%; position: absolute; transform: translateX(-50%); transition: background .2s ease; width: 36px; z-index: 5; }
.hero-next:hover { background: rgba(205, 183, 129, .16); }

.moon-system { --orbit-center-x: 63%; --orbit-center-y: 50%; inset: 0; pointer-events: none; position: absolute; user-select: none; }
.moon-system.is-dragging, .moon-system.is-spinning { cursor: grabbing; }
.orbit-drag-zone { border-radius: 50%; cursor: grab; height: min(82vh, 780px); left: var(--orbit-center-x); pointer-events: auto; position: absolute; top: var(--orbit-center-y); touch-action: pan-y; transform: translate(-50%, -50%); width: min(78vw, 1120px); z-index: 1; }
.center-moon { align-items: center; appearance: none; background: radial-gradient(circle, rgba(255, 248, 226, .13), rgba(226, 208, 165, .045) 52%, transparent 73%); border: 0; border-radius: 50%; cursor: pointer; display: flex; height: min(31vw, 36vh, 340px); justify-content: center; left: 47%; padding: 0; pointer-events: auto; position: absolute; top: 44%; transition: box-shadow .4s ease, background .4s ease; transform: translate(-50%, -50%); width: min(31vw, 36vh, 340px); z-index: 2; }
.center-moon::before { background: radial-gradient(ellipse, rgba(255, 246, 219, .32), rgba(238, 227, 207, .1) 44%, transparent 72%); border-radius: 50%; content: ''; filter: blur(19px); inset: -14%; opacity: .36; pointer-events: none; position: absolute; }
.center-moon:focus-visible { outline: 1px solid var(--moon-bright); outline-offset: 6px; }
.center-moon:hover { background: radial-gradient(circle, rgba(255, 246, 217, .14), rgba(226, 208, 165, .045) 55%, transparent 72%); box-shadow: 0 0 48px rgba(235, 217, 172, .15); }
.center-moon-glint { animation: glint 7s ease-in-out infinite; background: var(--moon-bright); border-radius: 50%; box-shadow: 0 0 9px 2px rgba(255, 239, 200, .8), 0 0 32px 9px rgba(239, 221, 175, .34); height: 3px; opacity: .7; position: absolute; right: 19%; top: 25%; width: 3px; }
.moon-track { inset: 0; pointer-events: none; position: absolute; }
.phase-slot { height: 0; left: 0; pointer-events: none; position: absolute; top: 0; width: 0; }
.moon-phase { --phase-depth-opacity: .8; --phase-depth-scale: 1; align-items: center; background: transparent; border: 0; cursor: pointer; display: flex; height: var(--phase-size, 38px); justify-content: center; left: 0; opacity: 0; padding: 0; pointer-events: auto; position: absolute; top: 0; transform: translate(-50%, -50%); transition: opacity .9s ease, filter .3s ease; width: var(--phase-size, 38px); }
.is-entering .moon-phase, .is-entered .moon-phase { opacity: var(--phase-depth-opacity); transition-delay: var(--phase-entry-delay, 0ms); }
.moon-phase::before { border: 1px solid rgba(239, 226, 190, .08); border-radius: 50%; content: ''; inset: -3px; opacity: 0; position: absolute; transform: scale(.82); transition: opacity .25s ease, transform .25s ease; }
.moon-disc { filter: drop-shadow(0 0 9px rgba(233, 218, 178, .34)); height: 100%; overflow: visible; transform: scale(var(--phase-depth-scale, 1)); transform-origin: center; width: 100%; }
.moon-shadow { fill: #111d30; stroke: rgba(223, 210, 174, .83); stroke-width: 2.1; }
.moon-light { fill: #f2e7cc; }
.moon-edge { fill: none; stroke: rgba(251, 242, 216, .6); stroke-width: 1.25; }
.moon-crater { fill: rgba(139, 128, 99, .2); }
.crater-one { fill: rgba(138, 129, 106, .24); }.crater-two { fill: rgba(138, 129, 106, .2); }.crater-three { fill: rgba(138, 129, 106, .18); }
.moon-phase:hover .moon-disc, .moon-phase:focus-visible .moon-disc, .moon-phase.is-selected .moon-disc { filter: drop-shadow(0 0 14px rgba(255, 235, 183, .82)); }
.moon-phase:hover::before, .moon-phase:focus-visible::before, .moon-phase.is-selected::before { opacity: 1; transform: scale(1); }
.moon-phase:focus-visible { outline: 0; }
.moon-phase.is-flashing .moon-disc { animation: selected-moon 650ms ease-out both; }
.moon-phase[data-phase="new"] .moon-disc { filter: drop-shadow(0 0 8px rgba(225, 207, 159, .39)); }
.moon-phase[data-phase="new"] .moon-shadow { fill: #101a2b; stroke: #d1bd87; stroke-width: 3; }

.orbit-hint { bottom: 8%; color: rgba(229, 222, 208, .74); font-family: var(--sans); font-size: 8px; left: 50%; letter-spacing: .08em; margin: 0; pointer-events: none; position: absolute; transform: translateX(-50%); white-space: nowrap; z-index: 30; }
.hero.is-moon-revealing .center-moon { animation: moon-heart 920ms ease-out both; }
.hero.is-moon-revealing .center-moon::before { animation: halo-expand 900ms ease-out both; }
.hero.is-phase-revealing .moon-phase:not(.is-selected) { opacity: .46; }

.culture-section { margin: 0 auto; max-width: 1440px; padding: clamp(100px, 13vw, 190px) clamp(26px, 9vw, 150px); position: relative; }
.section-number { color: rgba(215, 198, 157, .74); font-family: var(--sans); font-size: 8px; letter-spacing: .22em; }
.section-number span { color: var(--vermilion); margin: 0 8px; }
.section-heading { margin: 32px 0 0 16%; max-width: 620px; position: relative; z-index: 1; }
.section-heading h2, .legend-copy h2, .poetry-intro h2, .customs-heading h2, .closing-content h2 { color: #f0e8d7; font-size: clamp(33px, 4.3vw, 58px); font-weight: 400; letter-spacing: .12em; line-height: 1.55; margin: 20px 0; }
.section-heading h2 em, .legend-copy h2 em, .poetry-intro h2 em, .customs-heading h2 em, .closing-content h2 em { color: var(--gold-soft); font-style: normal; }
.section-heading > p:last-child, .origin-copy p, .legend-copy > p:not(.eyebrow), .poetry-intro > p:last-child, .custom-card p, .closing-content > p:not(.eyebrow) { color: #b7b1a4; font-size: 13px; letter-spacing: .035em; line-height: 2.25; }
.section-heading > p:last-child { max-width: 520px; }
.origin-section { background: linear-gradient(180deg, #0b1524, #101b2d); min-height: 650px; overflow: hidden; }
.origin-details { align-items: center; display: grid; gap: clamp(42px, 9vw, 142px); grid-template-columns: 180px minmax(260px, 460px); margin: 58px 0 0 16%; position: relative; z-index: 1; }
.moon-stamp { align-items: center; border: 1px solid rgba(205, 183, 129, .43); color: var(--gold-soft); display: flex; flex-direction: column; height: 166px; justify-content: center; outline: 1px solid rgba(205, 183, 129, .18); outline-offset: 5px; position: relative; width: 166px; }
.moon-stamp::before, .moon-stamp::after { border: 1px solid rgba(205, 183, 129, .33); content: ''; height: 8px; position: absolute; width: 8px; }
.moon-stamp::before { left: 6px; top: 6px; }.moon-stamp::after { bottom: 6px; right: 6px; }
.moon-stamp span { font-size: 13px; letter-spacing: .3em; margin-left: .3em; }.moon-stamp b { font-size: 28px; font-weight: 400; letter-spacing: .25em; margin: 5px 0; margin-left: .25em; }.moon-stamp small { color: #958b75; font-size: 8px; letter-spacing: .2em; }
.origin-copy p { margin: 0 0 16px; }
.text-link { border-bottom: 1px solid rgba(205, 183, 129, .44); color: var(--gold-soft); display: inline-flex; font-size: 10px; gap: 17px; letter-spacing: .1em; margin-top: 16px; padding-bottom: 8px; }
.text-link span { font-family: var(--sans); }
.section-cloud { border: 1px solid rgba(205, 183, 129, .09); border-radius: 50%; height: 250px; position: absolute; width: 520px; }
.section-cloud::before, .section-cloud::after { border: inherit; border-radius: 50%; content: ''; height: 150px; position: absolute; top: -50px; width: 240px; }
.section-cloud::before { left: 40px; }.section-cloud::after { right: 30px; top: -32px; }
.cloud-origin { bottom: -140px; right: -265px; transform: rotate(-18deg); }

.legend-section { align-items: center; background: #121f32; display: grid; gap: 9%; grid-template-columns: 1fr 1fr; min-height: 770px; overflow: hidden; padding-bottom: 150px; padding-top: 150px; }
.legend-art { height: min(48vw, 550px); min-height: 360px; position: relative; }
.legend-art::after { background: radial-gradient(ellipse, transparent 32%, rgba(18, 31, 50, .08) 51%, #121f32 77%); content: ''; inset: -2%; pointer-events: none; position: absolute; }
.legend-art img { filter: saturate(.72) brightness(.75); height: 100%; object-fit: cover; object-position: 57% 43%; opacity: .8; width: 100%; }
.legend-copy { max-width: 500px; position: relative; z-index: 1; }
.legend-copy .section-number { margin-bottom: 35px; }
.legend-copy h2 { font-size: clamp(36px, 4vw, 54px); margin: 22px 0; }
.legend-copy > p:not(.eyebrow) { margin: 0 0 14px; }
.source-note { border-left: 1px solid var(--vermilion); color: #958f80; font-size: 9px; letter-spacing: .15em; margin-top: 27px; padding-left: 12px; }
.source-note a { border-bottom: 1px solid rgba(205, 183, 129, .28); color: #cdbd98; }
.legend-seal { border: 1px solid rgba(189, 98, 83, .64); bottom: 58px; color: rgba(189, 98, 83, .78); font-size: 12px; letter-spacing: .16em; line-height: 1.55; padding: 8px 7px; position: absolute; right: 7%; transform: rotate(4deg); }

.poetry-section { background: radial-gradient(ellipse at 79% 18%, rgba(200, 184, 144, .08), transparent 33%), #0d1828; display: grid; gap: 8%; grid-template-columns: .85fr 1.15fr; padding-bottom: 160px; padding-top: 143px; }
.poetry-intro { max-width: 450px; padding-top: 30px; }
.poetry-intro h2 { font-size: clamp(35px, 3.8vw, 51px); }
.poetry-intro > p:last-child { max-width: 390px; }
.poem-cards { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.poem-card { background: linear-gradient(145deg, rgba(29, 44, 64, .7), rgba(18, 29, 45, .8)); border: 1px solid rgba(205, 183, 129, .2); min-height: 280px; overflow: hidden; padding: 30px 27px; position: relative; }
.poem-card-featured { background: linear-gradient(150deg, rgba(38, 50, 66, .85), rgba(23, 36, 54, .76)); border-color: rgba(205, 183, 129, .37); transform: translateY(38px); }
.poem-index { color: var(--gold); font-family: var(--sans); font-size: 8px; letter-spacing: .19em; }
.poem-card blockquote { color: #efe6d4; font-size: clamp(16px, 1.7vw, 21px); letter-spacing: .1em; line-height: 2; margin: 48px 0 18px; position: relative; z-index: 1; }
.poem-card p { color: #a89e89; font-size: 9px; letter-spacing: .13em; margin: 0; position: relative; z-index: 1; }
.poem-orb { border: 1px solid rgba(221, 203, 158, .14); border-radius: 50%; height: 110px; position: absolute; right: -38px; top: 66px; width: 110px; }
.poem-orb::before, .poem-orb::after { border: inherit; border-radius: 50%; content: ''; inset: 8px; position: absolute; }.poem-orb::after { inset: 17px; }
.poem-card-featured .poem-orb { background: radial-gradient(circle at 40% 35%, rgba(244, 229, 191, .35), rgba(194, 173, 127, .04) 67%); box-shadow: 0 0 38px rgba(213, 191, 143, .1); }

.customs-section { background: #111d2e; padding-bottom: 160px; padding-top: 140px; }
.customs-heading { margin: 34px 0 53px 16%; }
.customs-heading h2 { font-size: clamp(32px, 4vw, 52px); margin-top: 18px; }
.custom-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-left: 16%; }
.custom-card { background: linear-gradient(150deg, rgba(35, 50, 69, .53), rgba(17, 28, 44, .48)); border-top: 1px solid rgba(205, 183, 129, .34); min-height: 245px; padding: 27px 26px; position: relative; }
.custom-symbol { color: var(--gold); font-size: 24px; opacity: .83; }
.custom-card h3 { color: #eee5d4; font-size: 17px; font-weight: 400; letter-spacing: .18em; margin: 20px 0 10px; }
.custom-card p { font-size: 11px; line-height: 2; margin: 0; }
.custom-card small { bottom: 20px; color: #998f7a; font-size: 8px; letter-spacing: .13em; position: absolute; }

.closing-section { align-items: center; background: radial-gradient(ellipse at 55% 38%, #21314a 0%, #111e32 41%, #091422 82%); display: flex; justify-content: center; min-height: 750px; overflow: hidden; padding: 130px 28px; position: relative; text-align: center; }
.closing-moon { background: radial-gradient(circle at 43% 37%, #fdf2d1, #d9c99f 67%, #9f936f); border-radius: 50%; box-shadow: 0 0 46px rgba(237, 218, 169, .26), 0 0 150px rgba(237, 218, 169, .14); height: min(56vw, 580px); opacity: .12; position: absolute; right: 8%; top: -18%; width: min(56vw, 580px); }
.closing-moon::before, .closing-moon::after { border: 1px solid rgba(236, 219, 178, .28); border-radius: 50%; content: ''; inset: -9%; position: absolute; }.closing-moon::after { inset: -18%; opacity: .5; }
.closing-content { max-width: 590px; position: relative; z-index: 1; }
.closing-content .section-number { margin: 29px 0 0; }
.closing-content h2 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.4; margin: 26px 0; }
.closing-content > p:not(.eyebrow) { font-size: 12px; margin: 0 auto 12px; max-width: 520px; }
.back-to-moon { align-items: center; border-bottom: 1px solid rgba(205, 183, 129, .5); color: var(--gold-soft); display: inline-flex; font-size: 10px; gap: 17px; letter-spacing: .14em; margin-top: 32px; padding: 0 2px 9px; }
.closing-ribbon { bottom: 35px; color: rgba(209, 197, 167, .42); font-size: 8px; letter-spacing: .32em; position: absolute; right: 5vw; writing-mode: vertical-rl; }
.site-footer { align-items: center; background: #091321; color: #8e897c; display: flex; font-size: 8px; justify-content: space-between; letter-spacing: .15em; min-height: 76px; padding: 0 clamp(24px, 6vw, 90px); }
.site-footer a { align-items: center; border: 1px solid rgba(205, 183, 129, .36); border-radius: 50%; color: var(--gold); display: flex; font-family: var(--sans); height: 28px; justify-content: center; width: 28px; }

.story-dialog { background: transparent; border: 0; color: var(--text); max-height: min(90svh, 800px); max-width: min(590px, calc(100vw - 32px)); overflow: visible; padding: 0; width: 100%; }
.story-dialog::backdrop { animation: fade-in .4s ease both; backdrop-filter: blur(8px); background: rgba(5, 10, 19, .79); }
.dialog-content { background: radial-gradient(ellipse at 50% 0%, #22334c, #101b2c 72%); border: 1px solid rgba(205, 183, 129, .42); box-shadow: 0 24px 90px rgba(0, 0, 0, .48), inset 0 0 50px rgba(218, 195, 137, .035); max-height: min(90svh, 800px); overflow-y: auto; padding: 48px clamp(27px, 7vw, 60px) 39px; position: relative; text-align: center; }
.dialog-content::before { border: 1px solid rgba(205, 183, 129, .22); content: ''; inset: 8px; pointer-events: none; position: absolute; }
.dialog-close { align-items: center; background: rgba(8, 16, 28, .5); border: 1px solid rgba(205, 183, 129, .4); border-radius: 50%; color: var(--gold-soft); cursor: pointer; display: flex; font-family: var(--sans); font-size: 22px; height: 36px; justify-content: center; line-height: 1; padding: 0 0 3px; position: absolute; right: 18px; top: 18px; transition: background .2s ease; width: 36px; z-index: 2; }
.dialog-close:hover { background: rgba(205, 183, 129, .18); }.dialog-close:focus-visible { outline: 1px solid var(--moon); outline-offset: 3px; }
.dialog-kicker { color: var(--gold); font-family: var(--sans); font-size: 8px; letter-spacing: .22em; position: relative; z-index: 1; }
.dialog-moon { align-items: center; background: radial-gradient(circle at 36% 31%, #fff5d8, #e3d4ad 75%, #b5a47c); border: 1px solid rgba(255, 245, 214, .75); border-radius: 50%; box-shadow: 0 0 30px rgba(232, 212, 160, .32); color: #817657; display: flex; height: 48px; justify-content: center; margin: 22px auto 12px; position: relative; width: 48px; z-index: 1; }
.dialog-moon svg { height: 100%; width: 100%; }.dialog-moon .moon-shadow { fill: #17263b; stroke: none; }.dialog-moon .moon-light { fill: #f3e8ce; }.dialog-moon .moon-edge { fill: none; stroke: rgba(255, 245, 218, .7); stroke-width: 1.5; }.dialog-moon span { font-family: var(--serif); font-size: 17px; }
.dialog-phase { color: #f0e7d5; font-size: 12px; letter-spacing: .2em; margin: 12px 0 0; position: relative; z-index: 1; }
.dialog-time { color: #cdb781; font-family: var(--sans); font-size: 9px; letter-spacing: .06em; line-height: 1.8; margin: 8px 0 20px; position: relative; z-index: 1; }
.dialog-content h2 { color: #f1e8d6; font-size: clamp(25px, 5vw, 34px); font-weight: 400; letter-spacing: .11em; line-height: 1.65; margin: 20px 0 9px; position: relative; z-index: 1; }
.dialog-lead { color: #d6cbb4; font-size: 11px; letter-spacing: .08em; line-height: 1.9; margin: 9px 0 0; position: relative; z-index: 1; }
.dialog-rule { align-items: center; color: var(--gold); display: flex; font-size: 9px; gap: 10px; justify-content: center; margin: 22px auto; position: relative; width: 58%; z-index: 1; }.dialog-rule span { background: linear-gradient(90deg, transparent, rgba(205, 183, 129, .52)); height: 1px; width: 44%; }.dialog-rule span:last-child { transform: rotate(180deg); }
.dialog-body { color: #c1bbad; font-size: 12px; letter-spacing: .035em; line-height: 2.1; position: relative; text-align: justify; z-index: 1; }.dialog-body p { margin: 0 0 12px; }
.dialog-verse { color: var(--gold-soft); font-size: 15px; letter-spacing: .1em; line-height: 1.8; margin: 20px 0 0; position: relative; z-index: 1; }
.dialog-source { color: #928a7b; font-size: 9px; letter-spacing: .06em; margin: 8px 0 0; position: relative; z-index: 1; }

@keyframes star-breathe { from { opacity: .28; transform: scale(.8); } to { opacity: .88; transform: scale(1.2); } }
@keyframes mist-float { from { translate: -1vw 0; } to { translate: 2vw -12px; } }
@keyframes glint { 0%, 78%, 100% { opacity: .45; transform: scale(.8); } 84% { opacity: 1; transform: scale(1.8); } }
@keyframes gate-breathe { 0%, 100% { filter: brightness(.96); transform: scale(.98); } 50% { filter: brightness(1.08); transform: scale(1.025); } }
@keyframes gate-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 21% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(8.5); } }
@keyframes dust-drift { from { opacity: .24; translate: -3px 5px; scale: .75; } to { opacity: .72; translate: 6px -8px; scale: 1.25; } }
@keyframes site-unveil { 0% { filter: blur(12px) brightness(1.7); transform: scale(1.025); } 40% { filter: blur(4px) brightness(1.28); } 100% { filter: blur(0) brightness(1); transform: scale(1); } }
@keyframes artwork-arrive { 0% { opacity: 0; filter: brightness(.62) saturate(.72); } 48% { opacity: .82; filter: brightness(1.14) saturate(.9); } 100% { opacity: 1; filter: brightness(1) saturate(1); } }
@keyframes copy-arrive { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes ribbon-arrive { 0% { opacity: 0; } 48% { opacity: .85; } 100% { opacity: .68; } }
@keyframes ribbon-flow { to { stroke-dashoffset: -540px; } }
@keyframes ribbon-flow-reverse { to { stroke-dashoffset: 420px; } }
@keyframes selected-moon { 0% { filter: drop-shadow(0 0 0 rgba(255, 235, 183, 0)); transform: scale(1); } 42% { filter: drop-shadow(0 0 16px rgba(255, 235, 183, .95)); transform: scale(1.22); } 100% { filter: drop-shadow(0 0 5px rgba(255, 235, 183, .28)); transform: scale(1.05); } }
@keyframes moon-heart { 0% { box-shadow: 0 0 0 rgba(247, 223, 171, 0); } 24% { box-shadow: 0 0 44px 16px rgba(250, 233, 192, .55), inset 0 0 55px rgba(255, 247, 218, .25); } 100% { box-shadow: 0 0 12px rgba(247, 223, 171, .1); } }
@keyframes halo-expand { from { opacity: .7; scale: .72; } to { opacity: 0; scale: 1.48; } }
@keyframes aura-bloom { 25% { background: radial-gradient(ellipse, rgba(248, 239, 219, .25), rgba(214, 205, 189, .07) 55%, transparent 76%); } 100% { background: radial-gradient(ellipse, rgba(232, 222, 205, .12), rgba(183, 187, 174, .035) 48%, transparent 72%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.reveal-target { opacity: 0; translate: 0 24px; transition: opacity .9s ease, translate .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-target.is-revealed { opacity: 1; translate: 0 0; }
.poem-card.reveal-target { transition-delay: calc(var(--reveal-delay, 0ms) + 100ms); }
.custom-card.reveal-target { transition-delay: calc(var(--reveal-delay, 0ms) + 120ms); }
.legend-art img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1.4s ease; }
.legend-art.is-revealed img { filter: drop-shadow(0 0 30px rgba(222, 209, 175, .12)); transform: scale(1.018); }
.story-dialog[open] .dialog-content { animation: story-arrive .55s cubic-bezier(.18,.74,.2,1) both; }
@keyframes story-arrive { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1120px) {
  .main-nav { gap: 19px; margin-left: 14px; }
  .main-nav a { font-size: 9px; }
  .header-cta { font-size: 9px; }
  .moon-system { --orbit-center-x: 63%; --orbit-center-y: 50%; }
  .orbit-drag-zone { width: min(88vw, 1120px); }
  .hero-crescent { left: 16%; width: 22vw; }
  .hero-copy { left: 5.5vw; top: 28%; width: 28vw; }
  .hero-copy h1 { font-size: clamp(42px, 5vw, 60px); }
  .culture-section { padding-left: 7vw; padding-right: 7vw; }
}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 22px; }
  .gate-moon { height: min(52vw, 34vh, 230px); margin-top: -3vh; width: min(52vw, 34vh, 230px); }
  .gate-copy { margin-top: 5vh; }
  .brand { gap: 9px; }.brand-seal { height: 33px; width: 33px; }.brand strong { font-size: 11px; }.brand small { font-size: 6px; }
  .main-nav { display: none; }
  .header-cta { font-size: 8px; gap: 8px; }
  .hero { height: max(830px, 100svh); min-height: 830px; }
  .hero-art { height: 77%; left: 50%; max-height: none; object-fit: contain; top: 49%; transform: translate(-61%, -50%); width: auto; }
  .hero-sky::before { background: linear-gradient(180deg, rgba(8, 16, 28, .77), transparent 26%, rgba(7, 13, 23, .1) 66%, #091321 98%); }
  .hero-sky::after { background: linear-gradient(90deg, rgba(7, 14, 25, .28), transparent 40%, transparent 72%, rgba(8, 14, 24, .26)); }
  .art-vignette { background: linear-gradient(180deg, rgba(8, 17, 30, .36), transparent 29%, transparent 63%, rgba(8, 16, 28, .45)), linear-gradient(90deg, rgba(8, 17, 30, .16), transparent 30%, transparent 75%, rgba(8, 15, 25, .16)); }
  .hero-copy { left: 5.5%; text-align: left; top: 12.3%; width: auto; }
  .hero-copy .eyebrow { justify-content: flex-start; font-size: 7px; }
  .hero-copy h1 { font-size: clamp(31px, 6.2vw, 39px); letter-spacing: .18em; margin: 12px 0 7px; }
  .hero-subtitle { font-size: 9px; letter-spacing: .07em; }
  .hero-poem, .scroll-cue { display: none; }
  .moon-system { --orbit-center-x: 50%; --orbit-center-y: 51%; }
  .orbit-drag-zone { height: 69vh; width: 100vw; }
  .hero-crescent { height: 40%; left: 12%; opacity: .56; top: 38%; width: 25vw; }
  .hero-ribbons-back { opacity: .42; }
  .hero-ribbons-front { opacity: 0; }
  .hero-ribbons { clip-path: inset(86px 0 0); }
  .is-entered .hero-ribbons-front { opacity: .56; }
  .center-moon { height: 36vw; left: 45%; top: 43%; width: 36vw; }
  .moon-phase { height: calc(var(--phase-size, 36px) * .84); width: calc(var(--phase-size, 36px) * .84); }
  .orbit-hint { bottom: 5%; font-size: 7px; letter-spacing: .04em; }
  .hero-side-note { display: none; }
  .hero-index { bottom: 23px; font-size: 7px; right: 23px; }
  .hero-next { bottom: 22px; height: 30px; width: 30px; }
  .culture-section { padding: 91px 26px; }
  .section-number { font-size: 7px; }
  .section-heading { margin: 26px 0 0; }
  .section-heading h2, .legend-copy h2, .poetry-intro h2, .customs-heading h2 { font-size: clamp(30px, 9vw, 42px); letter-spacing: .1em; }
  .section-heading > p:last-child, .origin-copy p, .legend-copy > p:not(.eyebrow), .poetry-intro > p:last-child, .closing-content > p:not(.eyebrow) { font-size: 11px; line-height: 2.1; }
  .origin-section { min-height: 0; }
  .origin-details { gap: 31px; grid-template-columns: 92px 1fr; margin: 42px 0 0; }
  .moon-stamp { height: 88px; width: 88px; }
  .moon-stamp span { font-size: 9px; }.moon-stamp b { font-size: 19px; }.moon-stamp small { font-size: 6px; }
  .origin-copy p { margin-bottom: 12px; }
  .text-link { font-size: 8px; margin-top: 9px; }
  .legend-section { display: flex; flex-direction: column; gap: 27px; padding-bottom: 98px; padding-top: 95px; }
  .legend-art { height: 62vw; min-height: 220px; order: 2; width: 100%; }
  .legend-copy { order: 1; }
  .legend-copy .section-number { margin-bottom: 27px; }
  .legend-copy h2 { margin: 17px 0; }
  .legend-seal { bottom: 37px; font-size: 9px; right: 9%; }
  .poetry-section { display: block; padding-bottom: 110px; padding-top: 94px; }
  .poetry-intro { padding-top: 25px; }
  .poetry-intro h2 { margin: 17px 0; }
  .poem-cards { gap: 10px; margin: 37px 0 0; }
  .poem-card { min-height: 215px; padding: 20px 15px; }
  .poem-card-featured { transform: translateY(20px); }
  .poem-index { font-size: 7px; }.poem-card blockquote { font-size: 14px; letter-spacing: .04em; margin: 39px 0 14px; }.poem-card p { font-size: 7px; }
  .poem-orb { height: 74px; right: -26px; top: 57px; width: 74px; }
  .customs-section { padding-bottom: 105px; padding-top: 94px; }
  .customs-heading { margin: 28px 0 33px; }
  .customs-grid { margin-left: 0; }
  .custom-grid { gap: 9px; grid-template-columns: 1fr; margin-left: 0; }
  .custom-card { min-height: 0; padding: 18px 18px 37px; }
  .custom-symbol { font-size: 18px; }.custom-card h3 { font-size: 14px; margin: 9px 0 5px; }.custom-card p { font-size: 10px; line-height: 1.85; }.custom-card small { bottom: 13px; font-size: 7px; }
  .closing-section { min-height: 690px; padding: 105px 28px; }
  .closing-content .eyebrow { justify-content: center; font-size: 7px; }
  .closing-content .section-number { margin-top: 24px; }
  .closing-content h2 { font-size: 44px; margin: 22px 0; }
  .closing-content > p:not(.eyebrow) { font-size: 10px; }
  .closing-ribbon { bottom: 23px; font-size: 7px; right: 17px; }
  .closing-moon { height: 77vw; right: -13%; top: -6%; width: 77vw; }
  .site-footer { font-size: 7px; gap: 10px; min-height: 68px; padding: 0 20px; }.site-footer span:nth-child(2) { display: none; }.site-footer a { height: 26px; width: 26px; }
  .dialog-content { padding: 45px 25px 32px; }
  .dialog-time { font-size: 8px; }
  .dialog-content h2 { font-size: 25px; }
  .dialog-body { font-size: 11px; }
}

@media (max-width: 380px) {
  .hero { min-height: 800px; }
  .moon-system { --orbit-center-y: 52%; }
  .orbit-drag-zone { height: 66vh; width: 100vw; }
  .hero-copy h1 { font-size: 35px; }
  .origin-details { gap: 19px; grid-template-columns: 82px 1fr; }
  .moon-stamp { height: 78px; width: 78px; }
  .poem-card { padding-left: 11px; padding-right: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal-target { opacity: 1; translate: none; }
}
