:root {
  --void: #07060b;
  --ink: #0b1018;
  --navy: #121a2c;
  --armor: #1c3a6e;
  --armor-lit: #3d6fb8;
  --gold: #d4b56a;
  --gold-bright: #f3de9a;
  --gold-deep: #8a6a2f;
  --crimson: #8e1d2e;
  --crimson-lit: #c43a48;
  --ivory: #efe6d4;
  --cloud: #c5d0e0;
  --silver: #c8cdd6;
  --line: rgba(212, 181, 106, 0.28);
  --glass: rgba(10, 14, 22, 0.62);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
}

body {
  font-family: "Spectral", Georgia, serif;
  color: var(--ivory);
  background: var(--void);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.firmament,
.firmament > * {
  pointer-events: none;
}

.firmament {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.void {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 70% 10%, rgba(61, 111, 184, 0.18), transparent 55%),
    radial-gradient(900px 600px at 12% 80%, rgba(142, 29, 46, 0.16), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(212, 181, 106, 0.08), transparent 45%),
    linear-gradient(180deg, #07060b 0%, #0c1220 48%, #09080f 100%);
}

.canvas-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  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)'/%3E%3C/svg%3E");
}

.aurora {
  position: absolute;
  inset: -10%;
  background:
    conic-gradient(from 180deg at 70% 20%, transparent 0 40%, rgba(212, 181, 106, 0.08) 48%, transparent 60%),
    radial-gradient(circle at 72% 18%, rgba(243, 222, 154, 0.16), transparent 28%);
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

.silk {
  position: absolute;
  width: 55vw;
  height: 70vh;
  filter: blur(40px);
  opacity: 0.22;
  mix-blend-mode: screen;
}

.silk-a {
  right: -8%;
  top: 8%;
  background: radial-gradient(ellipse at center, rgba(196, 58, 72, 0.7), transparent 68%);
  animation: silk-sway 18s ease-in-out infinite;
}

.silk-b {
  right: 4%;
  top: 28%;
  width: 40vw;
  background: radial-gradient(ellipse at center, rgba(142, 29, 46, 0.55), transparent 70%);
  animation: silk-sway 24s ease-in-out infinite reverse;
}

.cloud {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 280px;
  background: radial-gradient(50% 70% at 50% 50%, rgba(197, 208, 224, 0.14), transparent 70%);
  filter: blur(18px);
  animation: cloud-drift 28s linear infinite;
}

.cloud-a { bottom: -40px; opacity: 0.45; }
.cloud-b { bottom: 80px; opacity: 0.22; animation-duration: 40s; animation-direction: reverse; }
.cloud-c { top: 8%; height: 180px; opacity: 0.12; animation-duration: 50s; }

.ray {
  position: absolute;
  top: -20%;
  width: 2px;
  height: 140%;
  background: linear-gradient(180deg, transparent, rgba(243, 222, 154, 0.35), transparent);
  transform-origin: top center;
  animation: ray-breathe 9s ease-in-out infinite;
}

.ray-a { left: 18%; transform: rotate(12deg); }
.ray-b { left: 46%; transform: rotate(-8deg); animation-delay: -3s; }
.ray-c { left: 78%; transform: rotate(6deg); animation-delay: -6s; }

.halo-wash {
  position: absolute;
  width: 640px;
  height: 640px;
  right: 6%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 222, 154, 0.16) 0%, rgba(61, 111, 184, 0.08) 40%, transparent 70%);
  animation: halo-pulse 8s ease-in-out infinite;
}

#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(7, 6, 11, 0.72) 100%);
}

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

.ember {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(243, 222, 154, 0.16), transparent 70%);
}

.ember-core {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fff6d2, rgba(212, 181, 106, 0.2) 70%, transparent);
}

.crown,
main,
.colophon,
.drawer {
  position: relative;
  z-index: 2;
}

.crown {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 36px;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.crown.scrolled {
  background: rgba(7, 6, 11, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.brand-seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 181, 106, 0.12), 0 0 24px rgba(212, 181, 106, 0.2);
}

.brand-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: "Cinzel", serif;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.orbit {
  display: flex;
  gap: 28px;
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.orbit a {
  position: relative;
  color: var(--silver);
}

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

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

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

.glyph {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(18, 26, 44, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.glyph:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 181, 106, 0.25);
}

.strike {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(212, 181, 106, 0.18), rgba(138, 106, 47, 0.12));
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

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

.strike:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 181, 106, 0.2);
  background: linear-gradient(180deg, rgba(212, 181, 106, 0.32), rgba(138, 106, 47, 0.18));
}

.strike-solid {
  background: linear-gradient(180deg, #e4c67a, #9a742f);
  color: #1a1408;
  border-color: #f3de9a;
}

.strike-solid:hover {
  background: linear-gradient(180deg, #f3de9a, #c9a45c);
}

.strike-ghost {
  background: transparent;
}

.fold {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
}

.fold i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s ease, top 0.3s ease;
}

.fold i:first-child { top: 16px; }
.fold i:last-child { top: 24px; }
.fold.open i:first-child { top: 20px; transform: rotate(40deg); }
.fold.open i:last-child { top: 20px; transform: rotate(-40deg); }

.drawer {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 19;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: rgba(7, 6, 11, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.drawer.open { display: flex; }

.drawer a {
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(212, 181, 106, 0.12);
}

main {
  padding: 110px 0 80px;
}

.first-light {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto 80px;
}

.first-copy h1 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(54px, 8vw, 98px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  margin: 12px 0 18px;
}

.first-copy h1 span {
  display: block;
  background: linear-gradient(180deg, #fff8e8 0%, #d4b56a 58%, #efe6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(243, 222, 154, 0.18);
}

.eyebrow {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.symbol-line {
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--silver);
  margin-bottom: 18px;
}

.symbol-line em {
  font-style: normal;
  color: var(--gold-bright);
}

.vow {
  max-width: 520px;
  font-size: 22px;
  line-height: 1.55;
  color: rgba(239, 230, 212, 0.86);
  margin-bottom: 28px;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: "Outfit", sans-serif;
}

.ca-label {
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--gold);
}

#ca-value {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--silver);
}

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

.reliquary {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(212, 181, 106, 0.35);
}

.ring-outer {
  inset: -8px;
  border-style: dashed;
  animation: spin 48s linear infinite;
  box-shadow: 0 0 40px rgba(212, 181, 106, 0.08);
}

.ring-mid {
  inset: 18px;
  border-color: rgba(197, 208, 224, 0.25);
  animation: spin 36s linear infinite reverse;
}

.ring-inner {
  inset: 42px;
  border-color: rgba(212, 181, 106, 0.55);
  animation: spin 22s linear infinite;
}

.nodes {
  position: absolute;
  inset: 0;
  animation: spin 60s linear infinite;
}

.nodes i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold);
}

.nodes i:nth-child(1) { top: 4%; left: 48%; }
.nodes i:nth-child(2) { top: 22%; right: 6%; }
.nodes i:nth-child(3) { bottom: 18%; right: 10%; }
.nodes i:nth-child(4) { bottom: 4%; left: 46%; }
.nodes i:nth-child(5) { bottom: 26%; left: 6%; }
.nodes i:nth-child(6) { top: 28%; left: 8%; }

.reliquary-well {
  position: absolute;
  inset: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(243, 222, 154, 0.7);
  box-shadow:
    0 0 0 10px rgba(18, 26, 44, 0.6),
    0 0 50px rgba(212, 181, 106, 0.22),
    inset 0 0 40px rgba(7, 6, 11, 0.35);
}

.reliquary-well img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  animation: portrait-breathe 10s ease-in-out infinite;
}

.gleam {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 248, 232, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: gleam 7s ease-in-out infinite;
}

.blade-glint {
  position: absolute;
  top: -8%;
  left: 46%;
  width: 2px;
  height: 28%;
  background: linear-gradient(180deg, #fff, var(--gold), transparent);
  box-shadow: 0 0 18px var(--gold-bright);
  animation: blade-pulse 3.6s ease-in-out infinite;
}

.section-head {
  width: min(760px, calc(100% - 64px));
  margin: 0 auto 42px;
  text-align: center;
}

.section-head h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(32px, 5vw, 52px);
  margin: 10px 0 14px;
  letter-spacing: 0.04em;
}

.section-head p:last-child {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(239, 230, 212, 0.78);
}

.armory,
.passage,
.atlas,
.enlist {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto 110px;
}

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

.shield,
.cut,
.atlas-frame,
.standard {
  position: relative;
  background:
    linear-gradient(180deg, rgba(28, 58, 110, 0.16), rgba(7, 6, 11, 0.4)),
    rgba(12, 16, 24, 0.55);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shield {
  padding: 32px 28px 36px;
  overflow: hidden;
}

.shield::before,
.cut::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 181, 106, 0.12);
  pointer-events: none;
}

.shield h3,
.cut h3 {
  font-family: "Cinzel", serif;
  font-size: 26px;
  margin-bottom: 12px;
}

.shield p,
.cut p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(239, 230, 212, 0.8);
}

.shield-mark,
.cut-index {
  display: inline-block;
  font-family: "Cinzel", serif;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.cuts {
  list-style: none;
  display: grid;
  gap: 16px;
  position: relative;
}

.cuts::before {
  content: "";
  position: absolute;
  left: 47px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.cut {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  padding: 26px 28px;
}

.cut em {
  color: var(--gold-bright);
  font-style: normal;
}

.quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  transition: border-color 0.3s ease, background 0.3s ease;
}

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

.quiet:hover {
  border-color: var(--gold);
  background: rgba(212, 181, 106, 0.08);
}

.atlas-frame {
  aspect-ratio: 16 / 10;
  min-height: 560px;
  padding: 10px;
}

.atlas-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1018;
}

.standard {
  aspect-ratio: 3 / 1;
  overflow: hidden;
  margin-bottom: 28px;
}

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

.enlist-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.colophon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.colophon-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
}

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

.colophon p {
  max-width: 520px;
  color: rgba(239, 230, 212, 0.65);
}

.rise {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s ease forwards;
}

.rise[data-delay="70"] { animation-delay: 0.07s; }
.rise[data-delay="90"] { animation-delay: 0.09s; }
.rise[data-delay="120"] { animation-delay: 0.12s; }
.rise[data-delay="140"] { animation-delay: 0.14s; }
.rise[data-delay="180"] { animation-delay: 0.18s; }
.rise[data-delay="210"] { animation-delay: 0.21s; }
.rise[data-delay="280"] { animation-delay: 0.28s; }

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

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

@keyframes gleam {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@keyframes portrait-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes blade-pulse {
  0%, 100% { opacity: 0.35; height: 24%; }
  50% { opacity: 1; height: 32%; }
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(-2deg); }
  to { transform: translate3d(3%, 2%, 0) rotate(3deg); }
}

@keyframes silk-sway {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(-40px, 30px, 0) rotate(-6deg); }
}

@keyframes cloud-drift {
  from { transform: translateX(-6%); }
  to { transform: translateX(6%); }
}

@keyframes ray-breathe {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.45; }
}

@keyframes halo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes banner-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-2%); }
}

@media (max-width: 980px) {
  .orbit,
  .crown-tools .strike {
    display: none;
  }

  .fold {
    display: block;
  }

  .first-light {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .vow,
  .first-acts,
  .ca-row {
    margin-inline: auto;
  }

  .ca-row {
    justify-content: center;
  }

  .first-acts {
    justify-content: center;
  }

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

  .cuts::before {
    display: none;
  }

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

  .atlas-frame {
    min-height: 420px;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 640px) {
  .crown {
    padding: 14px 16px;
  }

  main {
    padding-top: 92px;
  }

  .first-light,
  .armory,
  .passage,
  .atlas,
  .enlist,
  .section-head {
    width: min(1180px, calc(100% - 32px));
  }

  .vow {
    font-size: 18px;
  }

  .standard {
    aspect-ratio: 3 / 1;
  }
}

@media (pointer: coarse) {
  .ember,
  .ember-core {
    display: none;
  }
}
