:root {
  --bg: #07090b;
  --panel: #101316;
  --line: rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.055);
  --text: #eeece6;
  --muted: #92928d;
  --gold: #c8a96a;
  --gold-deep: #80612f;
  --gold-high: #f1e2bb;
  --metal-gold: linear-gradient(112deg, #82632f 0%, #c6a66a 28%, #f1e2bb 51%, #b18b4d 72%, #725426 100%);
  --sign-accent: #8a5263;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

#star-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  opacity: .7;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .045;
  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='.65'/%3E%3C/svg%3E");
}

.hover-dossier {
  position: fixed;
  z-index: 19;
  left: 0;
  top: 0;
  width: 188px;
  height: 244px;
  padding: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translate(22px, 22px) scale(.94);
  border: 1px solid rgba(213,184,125,.24);
  background: linear-gradient(145deg, rgba(25,25,23,.94), rgba(8,10,11,.96));
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(14px);
  transition: opacity .22s ease, transform .32s ease;
}
.hover-dossier::before, .hover-dossier::after { content: ""; position: absolute; width: 13px; height: 13px; border-color: rgba(230,207,157,.52); }
.hover-dossier::before { left: 7px; top: 7px; border-left: 1px solid; border-top: 1px solid; }
.hover-dossier::after { right: 7px; bottom: 7px; border-right: 1px solid; border-bottom: 1px solid; }
.hover-dossier.visible { opacity: 1; transform: translate(22px, 22px) scale(1); }
.hover-dossier svg { width: 100%; height: 162px; overflow: visible; }
.dossier-sigil, .apparition-sigil { fill: none; stroke: url(#none); stroke: var(--gold); stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dossier-sigil { opacity: .8; }
.dossier-constellation line, .apparition-constellation line { stroke: rgba(225,204,158,.38); stroke-width: .65; }
.dossier-constellation circle, .apparition-constellation circle { fill: var(--gold-high); filter: drop-shadow(0 0 3px rgba(220,186,116,.8)); }
.hover-dossier p { display: flex; align-items: center; justify-content: space-between; margin: 3px 4px 0; }
.hover-dossier p span { color: #76613a; font-family: var(--serif); font-size: 9px; }
.hover-dossier p b { color: #d8d4ca; font-family: var(--serif); font-size: 15px; font-weight: 300; letter-spacing: .16em; }
.hover-dossier > small { display: block; margin: 8px 4px 0; color: #736f65; font-size: 8px; letter-spacing: .2em; text-align: right; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 15;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 5vw, 80px);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.site-header.scrolled {
  background: rgba(7,9,11,.78);
  backdrop-filter: blur(18px);
  border-color: var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 12px; letter-spacing: .18em; font-weight: 500; }
.brand-mark { width: 27px; height: 27px; border: 1px solid rgba(211,180,111,.45); border-radius: 50%; display: grid; place-items: center; transform: rotate(-25deg); }
.brand-mark i { width: 10px; height: 10px; border-radius: 100% 0 100% 0; background: var(--metal-gold); box-shadow: 0 0 14px rgba(200,169,106,.35); }
.site-header nav { display: flex; gap: 38px; font-size: 12px; color: #c8c7c2; }
.site-header nav a { position: relative; padding: 9px 0; }
.site-header nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold); transition: .3s; }
.site-header nav a:hover::after { left: 0; right: 0; }
.sound-toggle { justify-self: end; display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: #979792; font-size: 11px; cursor: pointer; }
.sound-bars { height: 14px; display: flex; gap: 2px; align-items: end; }
.sound-bars i { width: 1px; height: 5px; background: var(--gold); animation: bars 1.1s ease-in-out infinite alternate; }
.sound-bars i:nth-child(2) { height: 12px; animation-delay: -.5s; }
.sound-bars i:nth-child(3) { height: 8px; animation-delay: -.2s; }
.motion-off * { animation-play-state: paused !important; }
@keyframes bars { to { height: 13px; opacity: .4; } }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: 6vw;
  padding: 110px clamp(26px, 8vw, 140px) 90px;
  overflow: hidden;
}
.hero-cosmos { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.nebula { position: absolute; border-radius: 50%; filter: blur(75px); mix-blend-mode: screen; opacity: .12; }
.nebula-one { width: 48vw; height: 22vw; right: 2vw; top: 5vh; transform: rotate(-19deg); background: radial-gradient(ellipse, rgba(103,90,121,.42), rgba(45,66,83,.2) 42%, transparent 73%); animation: nebulaDrift 22s ease-in-out infinite alternate; }
.nebula-two { width: 35vw; height: 18vw; left: -8vw; bottom: 2vh; transform: rotate(12deg); background: radial-gradient(ellipse, rgba(139,100,53,.2), rgba(44,58,68,.15) 45%, transparent 72%); animation: nebulaDrift 27s -9s ease-in-out infinite alternate-reverse; }
@keyframes nebulaDrift { to { transform: translate3d(2.5vw, 1.5vh, 0) rotate(-14deg) scale(1.05); } }
.meteor { position: absolute; left: 68%; top: 16%; width: 120px; height: 1px; opacity: 0; transform: rotate(-31deg); background: linear-gradient(90deg, transparent, rgba(241,226,187,.7)); filter: drop-shadow(0 0 4px rgba(241,226,187,.35)); animation: meteorPass 14s 4s ease-in-out infinite; }
.meteor::after { content: ""; position: absolute; right: -1px; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: #f1e2bb; box-shadow: 0 0 8px rgba(241,226,187,.8); }
@keyframes meteorPass {
  0%, 72% { opacity: 0; transform: translate3d(0,0,0) rotate(-31deg); }
  75% { opacity: .45; }
  82% { opacity: 0; transform: translate3d(170px,100px,0) rotate(-31deg); }
  100% { opacity: 0; }
}
.constellation-fragment { position: absolute; left: 30%; top: 12%; width: 280px; opacity: .1; transform: rotate(-9deg); }
.constellation-fragment path, .archive-star-chart path { fill: none; stroke: rgba(223,206,168,.55); stroke-width: .6; stroke-dasharray: 2 5; }
.constellation-fragment circle, .archive-star-chart circle { fill: #e8d6aa; filter: drop-shadow(0 0 3px rgba(232,214,170,.7)); }
.hero::before {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  right: -12vw;
  top: -10vw;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sign-accent) 20%, transparent), transparent 67%);
  filter: blur(30px);
  opacity: .7;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 25%; background: linear-gradient(transparent, #090b0d); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 19px; margin: 0 0 30px; font-size: 9px; letter-spacing: .26em; color: var(--gold); }
.eyebrow span { display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.eyebrow span::before { content: ""; width: 25px; height: 1px; background: var(--gold); }
.eyebrow b { font-weight: 400; color: #73746f; letter-spacing: .12em; }
.hero h1, .section-heading h2, .relation-copy h2, .closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .04em;
}
.hero h1 { font-size: clamp(45px, 4.2vw, 64px); line-height: 1.28; font-weight: 300; letter-spacing: .07em; }
h1 em, h2 em { display: inline-block; color: transparent; background: var(--metal-gold); background-clip: text; -webkit-background-clip: text; font-style: normal; }
.hero-lead { margin: 31px 0 35px; color: #a09f9a; font-family: var(--serif); font-size: 14px; font-weight: 300; line-height: 2.15; letter-spacing: .1em; }
.primary-cta { position: relative; overflow: hidden; min-width: 188px; height: 50px; display: inline-flex; justify-content: space-between; align-items: center; padding: 0 18px 0 24px; border: 1px solid #c4a362; border-radius: 1px; color: #12100c; background: var(--metal-gold); font-size: 11px; font-weight: 500; letter-spacing: .15em; cursor: pointer; transition: transform .4s, box-shadow .4s; }
.primary-cta::before { content: ""; position: absolute; top: -100%; bottom: -100%; left: -45%; width: 28%; transform: rotate(18deg); background: rgba(255,255,255,.38); filter: blur(6px); transition: left .7s ease; }
.primary-cta i { font-style: normal; font-size: 18px; }
.primary-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 42px rgba(167,129,60,.2); }
.primary-cta:hover::before { left: 120%; }
.micro-copy { margin: 15px 0 0 5px; color: #555853; font-size: 9px; letter-spacing: .12em; }

.celestial-device { position: relative; z-index: 2; width: min(48vw, 690px); aspect-ratio: 1; justify-self: end; }
.orbit { position: absolute; inset: 8%; border: 1px solid rgba(211,180,111,.14); border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.orbit::before { left: 13%; top: 14%; }
.orbit::after { right: 4%; bottom: 29%; }
.orbit-a { animation: spin 70s linear infinite; }
.orbit-b { inset: 18%; border-style: dashed; opacity: .65; animation: spinReverse 50s linear infinite; }
.orbit-c { inset: 31%; opacity: .8; animation: spin 35s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
.wheel { position: absolute; z-index: 4; inset: 0; border-radius: 50%; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.012); } }
.wheel-sign { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #777970; cursor: pointer; transform: rotate(var(--angle)) translateY(-18vw) rotate(calc(-1 * var(--angle))); transition: color .35s, border-color .35s, background .35s, box-shadow .35s; }
.wheel-sign span { display: block; font-family: var(--serif); font-size: 18px; }
.wheel-sign small { position: absolute; left: 50%; top: 55px; transform: translateX(-50%); width: 70px; opacity: 0; font-size: 9px; letter-spacing: .15em; transition: .3s; }
.wheel-sign:hover, .wheel-sign:focus-visible { color: var(--gold); border-color: rgba(211,180,111,.35); background: rgba(211,180,111,.045); box-shadow: 0 0 35px rgba(211,180,111,.08); outline: none; }
.wheel-sign:hover small, .wheel-sign:focus-visible small { opacity: 1; }
.sign-apparition { position: absolute; z-index: 2; inset: 14%; display: grid; place-items: center; opacity: 0; transform: scale(.94); pointer-events: none; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.celestial-device.previewing .sign-apparition { opacity: 1; transform: scale(1); }
.celestial-device.previewing .core-seal { opacity: .08; transform: scale(.72); }
.sign-apparition > svg { width: 72%; height: 72%; overflow: visible; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--sign-accent) 40%, transparent)); }
.apparition-sigil { opacity: .72; stroke-width: 1.1; stroke-dasharray: 430; stroke-dashoffset: 430; }
.celestial-device.previewing .apparition-sigil { animation: drawSigil 1.15s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes drawSigil { to { stroke-dashoffset: 0; } }
.apparition-constellation { opacity: 0; }
.celestial-device.previewing .apparition-constellation { animation: constellationIn .7s .42s ease forwards; }
@keyframes constellationIn { to { opacity: 1; } }
.apparition-index { position: absolute; left: 9%; top: 22%; color: #5d513a; font-size: 7px; letter-spacing: .24em; writing-mode: vertical-rl; }
.apparition-copy { position: absolute; left: 50%; bottom: 4%; width: 230px; transform: translateX(-50%); text-align: center; }
.apparition-copy small { display: block; margin-bottom: 9px; color: #76613a; font-size: 7px; letter-spacing: .25em; }
.apparition-copy strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 300; letter-spacing: .2em; }
.apparition-copy p { margin: 8px 0 0; color: #6e6e68; font-family: var(--serif); font-size: 9px; letter-spacing: .16em; }
.core-seal { position: absolute; z-index: 3; inset: 39%; border: 1px solid rgba(200,169,106,.38); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #17191a 0 38%, #0b0d0e 40% 100%); box-shadow: 0 0 80px rgba(0,0,0,.8), inset 0 0 30px rgba(255,255,255,.02); transition: opacity .45s, transform .45s; }
.core-seal::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); }
.seal-moon { width: 38%; height: 38%; border-radius: 50%; background: var(--metal-gold); box-shadow: 0 0 25px rgba(200,169,106,.28); }
.seal-moon::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #111314; transform: translate(-25%, -10%); }
.core-seal small { position: absolute; top: calc(100% + 44px); width: 110px; text-align: center; color: #6d6f69; font-size: 8px; letter-spacing: .22em; }
.device-note { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); margin: 0; color: #4e514c; font-size: 8px; letter-spacing: .2em; white-space: nowrap; }
.scroll-cue { position: absolute; z-index: 3; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: #5a5d58; font-size: 8px; letter-spacing: .18em; }
.scroll-cue span { width: 1px; height: 25px; background: linear-gradient(var(--gold), transparent); animation: scroll 1.7s ease-in-out infinite; }
@keyframes scroll { 50% { transform: translateY(7px); opacity: .3; } }
.side-index { position: absolute; right: 24px; bottom: 50%; margin: 0; color: #3f423e; font-size: 8px; letter-spacing: .25em; writing-mode: vertical-rl; }

.archive-section { position: relative; padding: 150px clamp(26px, 8vw, 140px); background: linear-gradient(#090b0d, #0c0f11 55%, #080a0c); }
.archive-section::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 7.5vw 7.5vw; mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); opacity: .25; }
.archive-star-chart { position: absolute; z-index: 0; width: min(17vw, 250px); pointer-events: none; opacity: .105; }
.archive-star-chart path { stroke-dasharray: 4 8; }
.archive-star-chart circle { animation: chartPulse 4.5s ease-in-out infinite alternate; }
.archive-star-chart circle:nth-of-type(2n) { animation-delay: -2s; }
@keyframes chartPulse { to { opacity: .28; } }
.chart-left { left: -2%; top: 19%; }
.chart-right { right: -2%; top: 51%; transform: rotate(7deg); }
.section-heading { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; max-width: 1120px; margin: 0 auto 70px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 3px; }
.section-heading h2, .relation-copy h2 { font-size: clamp(36px, 3.7vw, 56px); line-height: 1.38; font-weight: 300; letter-spacing: .07em; }
.section-heading > p:last-child, .relation-copy > p { color: #858580; font-family: var(--serif); font-size: 12px; line-height: 2.15; letter-spacing: .08em; max-width: 430px; }

.sign-selector { position: relative; max-width: 1220px; margin: 0 auto 34px; display: grid; grid-template-columns: repeat(12, 1fr); border: 1px solid var(--line); background: rgba(8,10,11,.72); backdrop-filter: blur(12px); }
.sign-button { position: relative; height: 88px; border: 0; border-right: 1px solid var(--line-soft); color: #71736f; background: transparent; cursor: pointer; transition: .3s; }
.sign-button:last-child { border-right: 0; }
.sign-button span { display: block; font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.sign-button small { font-size: 8px; letter-spacing: .13em; }
.sign-button:hover { color: #d8d5cb; background: rgba(255,255,255,.02); }
.sign-button.active { color: var(--gold); background: linear-gradient(rgba(211,180,111,.09), transparent); }
.sign-button.active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 1px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.archive-file { --file-accent: var(--sign-accent); position: relative; z-index: 1; max-width: 1220px; min-height: 760px; margin: auto; padding: 64px clamp(28px, 5vw, 78px) 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 3px; background: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--file-accent) 18%, transparent), transparent 36%), linear-gradient(135deg, rgba(255,255,255,.038), rgba(255,255,255,.01) 45%), #101316; box-shadow: 0 40px 90px rgba(0,0,0,.32); transition: background .5s;
}
.archive-file::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.045); pointer-events: none; }
.file-watermark { position: absolute; right: 4%; top: -5%; color: rgba(255,255,255,.025); font-family: var(--serif); font-size: 390px; line-height: 1; }
.file-header { position: relative; display: flex; justify-content: space-between; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.file-number { margin: 0 0 21px; color: var(--gold); font-size: 9px; letter-spacing: .22em; }
.file-header h3 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 4.2vw, 58px); font-weight: 300; letter-spacing: .11em; }
.file-header h3 small { margin-left: 18px; color: #50534f; font-family: var(--sans); font-size: 10px; letter-spacing: .3em; }
.sign-date { margin: 13px 0 0; color: #767873; font-size: 10px; letter-spacing: .2em; }
.identity-stamp { align-self: center; display: flex; align-items: center; gap: 22px; min-width: 210px; }
.identity-stamp > span { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--file-accent) 65%, #777); border-radius: 50%; color: var(--gold); font-family: var(--serif); font-size: 30px; box-shadow: inset 0 0 28px color-mix(in srgb, var(--file-accent) 18%, transparent); }
.identity-stamp p { margin: 0; }
.identity-stamp b, .identity-stamp small { display: block; }
.identity-stamp b { font-family: var(--serif); font-size: 15px; font-weight: 400; letter-spacing: .15em; }
.identity-stamp small { margin-top: 9px; color: #676964; font-size: 9px; letter-spacing: .1em; }
.file-intro { position: relative; display: grid; grid-template-columns: .7fr 1.45fr .85fr; gap: 40px; align-items: start; padding: 54px 0 48px; }
.archive-label { margin: 8px 0 0; color: #585b56; font-size: 8px; letter-spacing: .2em; }
.file-intro blockquote { margin: 0; font-family: var(--serif); font-size: clamp(21px, 2vw, 29px); font-weight: 300; line-height: 1.8; letter-spacing: .06em; }
.file-intro > p:nth-of-type(2) { margin: 6px 0 0; color: #92938e; font-family: var(--serif); font-size: 12px; line-height: 2; letter-spacing: .04em; }
.trait-list { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: -16px; }
.trait-list span, .relation-tags span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 50px; color: #9b9c97; font-size: 9px; letter-spacing: .12em; }
.file-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.file-tabs button { height: 57px; border: 0; border-right: 1px solid var(--line); background: transparent; color: #666964; font-size: 10px; letter-spacing: .15em; cursor: pointer; transition: .3s; }
.file-tabs button:last-child { border: 0; }
.file-tabs button.active { color: var(--gold); background: rgba(211,180,111,.04); }
.tab-panel { position: relative; min-height: 145px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; padding: 38px 0; }
.tab-panel .insight { padding-left: 18px; border-left: 1px solid color-mix(in srgb, var(--file-accent) 60%, #555); }
.insight span { color: var(--gold); font-size: 8px; letter-spacing: .18em; }
.insight h4 { margin: 11px 0 9px; font-family: var(--serif); font-weight: 400; font-size: 16px; letter-spacing: .08em; }
.insight p { margin: 0; color: #777974; font-size: 11px; line-height: 1.8; }
.file-footer { position: relative; display: flex; align-items: center; justify-content: space-between; padding-top: 24px; color: #5e615c; font-size: 8px; letter-spacing: .18em; }
.file-footer p span { margin-left: 8px; color: var(--gold); }
.file-footer button { border: 0; background: transparent; color: #c1bfb7; font-size: 10px; letter-spacing: .1em; cursor: pointer; }
.file-footer button span { margin-left: 12px; color: var(--gold); }
.archive-file.switching { animation: fileSwitch .55s ease; }
@keyframes fileSwitch { 0% { opacity: .45; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

.relation-section { position: relative; min-height: 100vh; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 7vw; padding: 150px clamp(26px, 8vw, 140px); overflow: hidden; background: radial-gradient(circle at 78% 45%, color-mix(in srgb, var(--sign-accent) 16%, transparent), transparent 35%), #080a0c; }
.relation-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3; background-image: radial-gradient(circle at 8% 18%, rgba(239,223,184,.65) 0 1px, transparent 1.4px), radial-gradient(circle at 18% 76%, rgba(194,211,220,.45) 0 1px, transparent 1.4px), radial-gradient(circle at 35% 27%, rgba(239,223,184,.4) 0 1px, transparent 1.4px), radial-gradient(circle at 47% 83%, rgba(239,223,184,.5) 0 1px, transparent 1.4px), radial-gradient(circle at 63% 12%, rgba(193,208,217,.4) 0 1px, transparent 1.4px), radial-gradient(circle at 82% 77%, rgba(239,223,184,.5) 0 1px, transparent 1.4px), radial-gradient(circle at 94% 35%, rgba(239,223,184,.35) 0 1px, transparent 1.4px); }
.relation-copy { position: relative; z-index: 2; }
.relation-copy > p { margin: 28px 0 38px; }
.relation-pickers { display: flex; align-items: end; gap: 14px; }
.relation-pickers > span { padding-bottom: 12px; color: var(--gold); }
.relation-pickers label { display: grid; gap: 9px; color: #666965; font-size: 8px; letter-spacing: .16em; }
.relation-pickers select { width: 145px; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #111416; color: #d4d2ca; font-size: 11px; cursor: pointer; }
.relation-map { position: relative; aspect-ratio: 1; max-width: 700px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.025), transparent 57%); }
.relation-map::before, .relation-map::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.relation-map::before { inset: 10%; }
.relation-map::after { inset: 22%; border-style: dashed; }
.gravity-line { position: absolute; left: 29%; right: 29%; top: 49%; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(255,255,255,.1), var(--other-accent, #aaa)); transform: rotate(-16deg); }
.gravity-line i { position: absolute; left: 0; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); animation: travel 3s ease-in-out infinite alternate; }
@keyframes travel { to { left: 100%; } }
.planet { position: absolute; z-index: 2; width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; font-family: var(--serif); box-shadow: 0 0 60px rgba(0,0,0,.7), inset -15px -15px 30px rgba(0,0,0,.5); }
.planet span { font-size: 32px; }
.planet p { position: absolute; top: 100%; margin: 12px 0 0; width: 110px; text-align: center; color: #8a8b86; font-family: var(--sans); font-size: 9px; letter-spacing: .15em; }
.planet-self { left: 16%; top: 37%; color: var(--gold); border: 1px solid rgba(211,180,111,.45); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--sign-accent) 70%, #ddd), #151617 64%); animation: float 5s ease-in-out infinite; }
.planet-other { right: 13%; top: 26%; color: #dfddd6; border: 1px solid rgba(255,255,255,.25); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--other-accent, #667) 75%, #ddd), #131516 65%); animation: float 6s -2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }
.relation-result { position: absolute; z-index: 3; left: 50%; bottom: 8%; width: 52%; transform: translateX(-50%); padding: 25px 28px; border: 1px solid var(--line); background: rgba(11,13,15,.78); backdrop-filter: blur(14px); text-align: center; }
.relation-result > p:first-child { margin: 0; color: #62645f; font-size: 7px; letter-spacing: .2em; }
.relation-result h3 { margin: 12px 0 8px; color: var(--gold); font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: .12em; }
.relation-result > p:nth-of-type(2) { margin: 13px 0 17px; color: #8b8c87; font-family: var(--serif); font-size: 11px; line-height: 1.8; }
.signal { display: flex; justify-content: center; gap: 4px; }
.signal i { width: 20px; height: 2px; background: #393c38; }
.signal i.on { background: var(--gold); box-shadow: 0 0 8px rgba(211,180,111,.4); }
.relation-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.relation-tags span { padding: 6px 9px; font-size: 7px; }

.closing { position: relative; min-height: 72vh; display: grid; place-content: center; text-align: center; padding: 100px 24px; overflow: hidden; background: #090b0c; }
.closing::before { content: ""; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%,-50%); border: 1px solid rgba(211,180,111,.08); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.013), 0 0 0 180px rgba(255,255,255,.009); }
.closing-symbol { position: relative; color: var(--gold); font-size: 22px; }
.star-crown { position: absolute; left: 50%; top: 22%; width: 420px; height: 120px; transform: translateX(-50%); pointer-events: none; }
.star-crown::before { content: ""; position: absolute; left: 14%; right: 14%; top: 54%; height: 1px; background: linear-gradient(90deg, transparent, rgba(221,201,157,.17), transparent); }
.star-crown i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #e5d3a8; box-shadow: 0 0 7px rgba(229,211,168,.75); animation: crownTwinkle 3s ease-in-out infinite alternate; }
.star-crown i:nth-child(1) { left: 13%; top: 67%; }
.star-crown i:nth-child(2) { left: 27%; top: 43%; animation-delay: -1.1s; }
.star-crown i:nth-child(3) { left: 39%; top: 56%; animation-delay: -.4s; }
.star-crown i:nth-child(4) { left: 50%; top: 20%; width: 3px; height: 3px; animation-delay: -1.8s; }
.star-crown i:nth-child(5) { left: 62%; top: 54%; animation-delay: -.7s; }
.star-crown i:nth-child(6) { left: 74%; top: 40%; animation-delay: -2.2s; }
.star-crown i:nth-child(7) { left: 87%; top: 67%; animation-delay: -.2s; }
@keyframes crownTwinkle { to { opacity: .25; transform: scale(.6); } }
.closing p { position: relative; margin: 25px 0; color: #686b66; font-family: var(--serif); font-size: 11px; letter-spacing: .1em; }
.closing h2 { position: relative; font-size: clamp(34px, 4vw, 56px); line-height: 1.5; }
.closing a { position: relative; margin: 36px auto 0; padding-bottom: 10px; border-bottom: 1px solid rgba(211,180,111,.5); color: #aaa8a0; font-size: 10px; letter-spacing: .13em; }
.closing a span { margin-left: 15px; color: var(--gold); }
.site-footer { min-height: 90px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(26px, 5vw, 80px); border-top: 1px solid var(--line-soft); background: #07090a; color: #434641; font-size: 8px; letter-spacing: .18em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; padding-inline: 6vw; }
  .wheel-sign { transform: rotate(var(--angle)) translateY(-21vw) rotate(calc(-1 * var(--angle))); }
  .sign-selector { grid-template-columns: repeat(6, 1fr); }
  .sign-button:nth-child(-n+6) { border-bottom: 1px solid var(--line-soft); }
  .sign-button:nth-child(6) { border-right: 0; }
  .file-intro { grid-template-columns: .65fr 1.35fr; }
  .file-intro > p:nth-of-type(2) { grid-column: 2; }
  .trait-list { grid-column: 2; margin-top: 0; }
  .relation-section { gap: 2vw; padding-inline: 5vw; }
  .relation-result { width: 64%; }
}

@media (max-width: 740px) {
  .hover-dossier { display: none; }
  .meteor, .constellation-fragment, .archive-star-chart { display: none; }
  .nebula { opacity: .07; filter: blur(48px); }
  .site-header { height: 64px; padding-inline: 18px; }
  .brand { font-size: 11px; }
  .sound-toggle span:last-child { display: none; }
  .hero { min-height: 100svh; display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 90px 24px 70px; }
  .hero-copy { order: 2; margin-top: -12px; text-align: center; }
  .hero-copy .eyebrow { justify-content: center; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(36px, 9.6vw, 40px); letter-spacing: .01em; }
  .hero h1 em { white-space: nowrap; }
  .hero-lead { margin-block: 19px 23px; font-size: 12px; }
  .celestial-device { order: 1; width: min(82vw, 400px); align-self: center; }
  .wheel-sign { width: 40px; height: 40px; margin: -20px; transform: rotate(var(--angle)) translateY(-35vw) rotate(calc(-1 * var(--angle))); }
  .wheel-sign small, .device-note, .side-index, .micro-copy { display: none; }
  .core-seal { inset: 37%; }
  .scroll-cue { display: none; }
  .archive-section { padding: 100px 18px; }
  .section-heading { display: block; margin-bottom: 45px; text-align: center; }
  .section-heading .eyebrow { justify-content: center; }
  .section-heading > p:last-child { margin: 24px auto 0; }
  .sign-selector { grid-template-columns: repeat(4, 1fr); }
  .sign-button { height: 72px; border-bottom: 1px solid var(--line-soft); }
  .sign-button:nth-child(6) { border-right: 1px solid var(--line-soft); }
  .sign-button:nth-child(4n) { border-right: 0; }
  .archive-file { padding: 40px 26px 26px; }
  .file-watermark { font-size: 250px; }
  .file-header { display: block; }
  .file-header h3 small { display: block; margin: 10px 0 0; }
  .identity-stamp { margin-top: 30px; }
  .file-intro { display: block; padding-block: 38px; }
  .archive-label { margin-bottom: 20px; }
  .file-intro > p:nth-of-type(2) { margin-top: 20px; }
  .trait-list { margin-top: 22px; }
  .file-tabs button { font-size: 9px; }
  .tab-panel { grid-template-columns: 1fr; gap: 23px; }
  .file-footer { gap: 15px; }
  .file-footer > p { display: none; }
  .file-footer button { margin-left: auto; }
  .relation-section { display: block; padding: 100px 20px; }
  .relation-copy { text-align: center; }
  .relation-copy .eyebrow { justify-content: center; }
  .relation-copy > p { margin-inline: auto; }
  .relation-pickers { justify-content: center; }
  .relation-pickers select { width: 130px; }
  .relation-map { margin: 55px auto 0; }
  .planet { width: 72px; height: 72px; }
  .planet span { font-size: 24px; }
  .relation-result { width: 78%; bottom: 2%; padding: 19px 18px; }
  .relation-result h3 { font-size: 20px; }
  .closing::before { width: 340px; height: 340px; }
  .star-crown { width: 310px; top: 18%; }
  .site-footer { display: grid; justify-content: center; gap: 10px; text-align: center; }
}

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