:root {
  --void: #070b14;
  --ink: #0a1220;
  --navy: #12243c;
  --armor: #1c3f6e;
  --steel: #c8d4e2;
  --steel-dim: #8ea0b5;
  --moon: #e8eef5;
  --ivory: #f0e6d0;
  --parchment: #d8c9a8;
  --bronze: #c4a574;
  --bronze-hot: #e0c48a;
  --glass: rgba(10, 18, 32, 0.62);
  --line: rgba(200, 212, 226, 0.18);
  --glow: rgba(184, 204, 232, 0.35);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --mid: "Philosopher", Georgia, serif;
  --ui: "Sora", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--moon);
  font-family: var(--ui);
  cursor: none;
}

body {
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: none;
}

.sight,
.sight-core {
  position: fixed;
  pointer-events: none;
  z-index: 80;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.sight {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(224, 196, 138, 0.45);
  box-shadow: 0 0 24px rgba(184, 204, 232, 0.22);
}

.sight-core {
  width: 6px;
  height: 6px;
  background: var(--ivory);
}

.night {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.void {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 18% 12%, rgba(28, 63, 110, 0.38), transparent 58%),
    radial-gradient(900px 600px at 82% 18%, rgba(196, 165, 116, 0.08), transparent 50%),
    linear-gradient(180deg, #05080f 0%, #0a1422 46%, #070b14 100%);
}

.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 62%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(90, 130, 180, 0.22), transparent 62%),
    radial-gradient(ellipse at 30% 20%, rgba(200, 180, 130, 0.08), transparent 45%);
  animation: aurora-drift 22s ease-in-out infinite;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}

.nebula-a {
  width: 42vw;
  height: 42vw;
  left: -8%;
  top: 18%;
  background: radial-gradient(circle, rgba(32, 70, 120, 0.55), transparent 70%);
  animation: nebula-float 28s ease-in-out infinite;
}

.nebula-b {
  width: 36vw;
  height: 36vw;
  right: -10%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(180, 150, 100, 0.16), transparent 70%);
  animation: nebula-float 34s ease-in-out infinite reverse;
}

.spire {
  position: absolute;
  bottom: 0;
  width: 28vw;
  height: 54vh;
  opacity: 0.22;
  background:
    linear-gradient(180deg, transparent 0%, rgba(8, 14, 24, 0.1) 30%, rgba(8, 14, 24, 0.72) 100%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(200, 212, 226, 0.05) 18px 19px);
  clip-path: polygon(50% 0, 62% 18%, 70% 16%, 78% 38%, 86% 36%, 100% 100%, 0 100%, 14% 40%, 22% 42%, 32% 18%, 40% 20%);
}

.spire-a { left: -6%; height: 62vh; animation: spire-breathe 16s ease-in-out infinite; }
.spire-b { left: 36%; height: 48vh; opacity: 0.16; animation: spire-breathe 19s ease-in-out infinite reverse; }
.spire-c { right: -4%; height: 70vh; animation: spire-breathe 21s ease-in-out infinite; }

.lance {
  position: absolute;
  top: -10%;
  width: 18vw;
  height: 90vh;
  background: linear-gradient(180deg, rgba(232, 238, 245, 0.14), transparent 70%);
  filter: blur(18px);
  transform: rotate(12deg);
  animation: lance-sweep 14s ease-in-out infinite;
}

.lance-a { left: 12%; }
.lance-b { left: 48%; animation-delay: -5s; transform: rotate(-8deg); }
.lance-c { right: 8%; animation-delay: -9s; }

#heavens,
.fleurs {
  position: absolute;
  inset: 0;
}

.fleurs span {
  position: absolute;
  width: 14px;
  height: 14px;
  background:
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(240, 230, 208, 0.55) 35% 42%, transparent 43%),
    conic-gradient(from 0deg, transparent 0 20deg, rgba(200, 212, 226, 0.35) 20deg 40deg, transparent 40deg);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: fleur-fall linear infinite;
  opacity: 0.35;
}

.film {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%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='.55'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

.rim {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px 40px rgba(5, 8, 15, 0.78);
}

.vestry,
main,
.crypt,
.procession,
.cloister {
  position: relative;
  z-index: 2;
}

.vestry {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.vestry.scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark-frame {
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, var(--ivory), var(--bronze), var(--steel));
  animation: gleam 6s linear infinite;
}

.mark-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mark-copy {
  display: flex;
  flex-direction: column;
}

.mark-copy strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.mark-copy small {
  color: var(--bronze);
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}

.aisle {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.aisle a {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

.aisle a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width 0.35s ease;
}

.aisle a:hover {
  color: var(--ivory);
}

.aisle a:hover::after {
  width: 100%;
}

.vestry-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sigil {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(200, 212, 226, 0.04);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.sigil img {
  width: 16px;
  height: 16px;
  filter: brightness(1.15);
}

.sigil:hover {
  border-color: var(--bronze);
  transform: translateY(-2px);
  background: rgba(196, 165, 116, 0.08);
}

.pledge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(200, 212, 226, 0.22);
  background: linear-gradient(180deg, rgba(200, 212, 226, 0.08), rgba(200, 212, 226, 0.02));
  color: var(--moon);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pledge img {
  width: 16px;
  height: 16px;
}

.pledge:hover {
  transform: translateY(-2px);
  border-color: var(--bronze);
  box-shadow: 0 10px 30px rgba(196, 165, 116, 0.14);
}

.pledge-solid {
  background: linear-gradient(180deg, #d8c9a8, #b8955e);
  color: #1a140c;
  border-color: transparent;
}

.pledge-ghost {
  background: transparent;
}

.gate {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
}

.gate i {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.3s ease;
}

.gate i:first-child { top: 16px; }
.gate i:last-child { bottom: 16px; }

.gate.open i:first-child { transform: translateY(4.5px) rotate(40deg); }
.gate.open i:last-child { transform: translateY(-4.5px) rotate(-40deg); }

.cloister {
  display: none;
  flex-direction: column;
  padding: 12px 28px 22px;
  background: rgba(7, 11, 20, 0.94);
  border-bottom: 1px solid var(--line);
}

.cloister.open { display: flex; }

.cloister a {
  padding: 12px 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.procession {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 18, 32, 0.45);
}

.procession-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 10px 0;
  animation: procession 42s linear infinite;
  color: var(--parchment);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.procession-track b {
  width: 8px;
  height: 8px;
  background: var(--bronze);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.oratory {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 128px);
  padding: 64px 0 80px;
}

.precept {
  margin: 0 0 12px;
  color: var(--bronze);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: clamp(4.4rem, 9vw, 7.6rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
}

h1 em {
  display: block;
  font-style: italic;
  background: linear-gradient(100deg, var(--ivory), var(--moon) 40%, var(--bronze-hot) 55%, var(--steel));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-sheen 8s linear infinite;
}

h1 span {
  display: block;
  color: var(--steel);
}

.credo {
  max-width: 34rem;
  color: var(--steel);
  font-family: var(--mid);
  font-size: 1.2rem;
  line-height: 1.7;
}

.relic {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.55);
}

.relic-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--bronze);
}

.relic code {
  flex: 1;
  color: var(--ivory);
  font-size: 0.92rem;
}

.relic button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--moon);
  padding: 7px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.relic button.ok {
  border-color: var(--bronze);
  color: var(--bronze-hot);
}

.oratory-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.oratory-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.oratory-facts li {
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.oratory-facts span {
  display: block;
  margin-bottom: 6px;
  color: var(--steel-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.oratory-facts strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}

.reliquary {
  position: relative;
  display: grid;
  place-items: center;
}

.reliquary-orbit,
.reliquary-orbit.late {
  position: absolute;
  inset: 4%;
  border: 1px dashed rgba(200, 212, 226, 0.2);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  animation: orbit 18s linear infinite;
}

.reliquary-orbit.late {
  inset: -3%;
  animation-duration: 26s;
  animation-direction: reverse;
  border-style: solid;
  border-color: rgba(196, 165, 116, 0.22);
}

.reliquary-glass {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(240, 230, 208, 0.7), rgba(196, 165, 116, 0.2) 36%, rgba(200, 212, 226, 0.45));
  clip-path: polygon(22% 0, 78% 0, 100% 22%, 100% 78%, 78% 100%, 22% 100%, 0 78%, 0 22%);
  box-shadow:
    0 0 0 1px rgba(240, 230, 208, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(184, 204, 232, 0.12);
  animation: reliquary-pulse 7s ease-in-out infinite;
}

.reliquary-glass::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18), transparent 52%);
  background-size: 220% 100%;
  animation: glass-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.reliquary-glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inherit;
}

.reliquary-caption {
  margin-top: 22px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--parchment);
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

.section-head p:last-child {
  color: var(--steel);
  font-family: var(--mid);
  font-size: 1.15rem;
  line-height: 1.7;
}

.chronicle,
.stations,
.lancet,
.tapestry {
  padding: 88px 0 20px;
}

.chronicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.leaf {
  position: relative;
  padding: 28px 24px 32px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(200, 212, 226, 0.05), rgba(7, 11, 20, 0.35));
  overflow: hidden;
}

.leaf::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(196, 165, 116, 0.28), transparent 60%);
}

.leaf-num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--bronze);
}

.leaf h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.leaf p {
  margin: 0;
  color: var(--steel);
  line-height: 1.7;
}

.station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.station-list::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--bronze), transparent);
}

.station {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 0 18px 0;
}

.station-index {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.8);
  font-family: var(--display);
  color: var(--ivory);
  position: relative;
  z-index: 1;
}

.station h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.station p {
  margin: 0 0 12px;
  color: var(--steel);
  line-height: 1.7;
}

.station em {
  font-style: normal;
  color: var(--ivory);
}

.quiet-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--bronze-hot);
  letter-spacing: 0.08em;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(196, 165, 116, 0.35);
}

.quiet-act img {
  width: 14px;
  height: 14px;
}

.lancet-frame {
  position: relative;
  min-height: 640px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(200, 212, 226, 0.1), rgba(7, 11, 20, 0.2));
  clip-path: polygon(0 8%, 8% 0, 92% 0, 100% 8%, 100% 100%, 0 100%);
  box-shadow: 0 0 0 1px var(--line), 0 0 50px rgba(184, 204, 232, 0.08);
}

.lancet-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(28, 63, 110, 0.18);
}

.lancet-frame iframe {
  width: 100%;
  height: 640px;
  border: 0;
  background: #0b111b;
}

.banner-hold {
  margin: 0 0 28px;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.banner-hold img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  animation: tapestry-drift 18s ease-in-out infinite;
}

.tapestry-copy p {
  max-width: 680px;
  color: var(--steel);
  font-family: var(--mid);
  font-size: 1.18rem;
  line-height: 1.75;
}

.tapestry-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.crypt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 48px));
  margin: 40px auto 0;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
}

.crypt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.crypt-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crypt-links img {
  width: 14px;
  height: 14px;
}

.crypt p {
  width: 100%;
  margin: 0;
  color: var(--steel-dim);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s ease forwards;
  animation-delay: calc(var(--d, 0) * 1ms);
}

.reveal[data-delay="70"] { --d: 70; }
.reveal[data-delay="80"] { --d: 80; }
.reveal[data-delay="120"] { --d: 120; }
.reveal[data-delay="140"] { --d: 140; }
.reveal[data-delay="160"] { --d: 160; }
.reveal[data-delay="210"] { --d: 210; }
.reveal[data-delay="280"] { --d: 280; }

@keyframes aurora-drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateY(18px) scale(1.06); opacity: 1; }
}

@keyframes nebula-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes spire-breathe {
  0%, 100% { opacity: 0.18; transform: translateY(0); }
  50% { opacity: 0.28; transform: translateY(-8px); }
}

@keyframes lance-sweep {
  0%, 100% { opacity: 0.2; transform: rotate(12deg) translateX(0); }
  50% { opacity: 0.42; transform: rotate(14deg) translateX(18px); }
}

@keyframes fleur-fall {
  from { transform: translateY(-10vh) rotate(0deg); }
  to { transform: translateY(110vh) rotate(220deg); }
}

@keyframes gleam {
  0% { filter: drop-shadow(0 0 0 rgba(224, 196, 138, 0.1)); }
  50% { filter: drop-shadow(0 0 10px rgba(224, 196, 138, 0.45)); }
}

@keyframes title-sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

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

@keyframes reliquary-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(240, 230, 208, 0.18), 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(184, 204, 232, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(224, 196, 138, 0.4), 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 80px rgba(196, 165, 116, 0.2); }
}

@keyframes glass-sweep {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}

@keyframes procession {
  to { transform: translateX(-50%); }
}

@keyframes tapestry-drift {
  0%, 100% { transform: scale(1.04) translateY(0); }
  50% { transform: scale(1.1) translateY(-2%); }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .aisle,
  .vestry-tools .pledge {
    display: none;
  }

  .gate {
    display: block;
    margin-left: auto;
  }

  .oratory,
  .chronicle-grid {
    grid-template-columns: 1fr;
  }

  .oratory {
    min-height: auto;
    padding-top: 36px;
  }

  .oratory-facts {
    grid-template-columns: 1fr 1fr;
  }

  .lancet-frame,
  .lancet-frame iframe {
    min-height: 520px;
    height: 520px;
  }
}

@media (max-width: 640px) {
  body { cursor: auto; }
  .sight,
  .sight-core { display: none; }

  main,
  .crypt {
    width: min(1180px, calc(100% - 28px));
  }

  h1 { font-size: 3.6rem; }

  .banner-hold {
    aspect-ratio: 3 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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