:root {
  --void: #000;
  --bone: #f3ecdc;
  --ash: #a79fb4;
  --brass: #d4af37;
  --brass-low: #7d6620;
  --dusk: #8a4fd6;
  --dusk-deep: #2a1648;

  --f-cap: "Marcellus", "Trajan Pro", Georgia, serif;
  --f-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-text: "Spectral", Georgia, "Times New Roman", serif;

  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--void);
  color: var(--bone);
  font: 400 1.125rem/1.7 var(--f-text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass); }

a:focus-visible,
button:focus-visible,
svg:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: .02em;
}

p { margin: 0 0 1.1em; max-width: 62ch; }

.vanish {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.girth { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

section { padding: clamp(3rem, 8vw, 6rem) 0; position: relative; }



.seam {
  position: relative;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 10;
}

.seam::before,
.seam::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.2px;
  margin-top: -.6px;
  pointer-events: none;
}

.seam::before {
  background: linear-gradient(90deg, rgba(212,175,55,.22), #7d6620 18%, #f1d77a 50%, #7d6620 82%, rgba(212,175,55,.22));
}

.seam::after {
  height: 2px;
  margin-top: -1px;
  background:
    linear-gradient(90deg, transparent, #fff3c4, transparent) 50% 0 / 14% 100% no-repeat,
    linear-gradient(90deg, transparent, #c9a6ff, transparent) 50% 0 / 14% 100% no-repeat;
  animation: seam-sweep 5s ease-in infinite;
}

.seam-motes {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 3;
}

.seam-glyph {
  position: relative;
  z-index: 2;
  width: min(1000px, 92%);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seam-glyph svg { width: 100%; height: 100%; overflow: visible; }

.seam-glyph .whirl,
.seam-glyph .throb,
.seam-glyph .nimbus {
  transform-box: fill-box;
  transform-origin: center;
}

.seam-glyph .whirl { animation: seam-whirl 28s linear infinite; }
.seam-glyph .whirl.back { animation-duration: 18s; animation-direction: reverse; }
.seam-glyph .throb { animation: seam-throb 3.2s ease-in-out infinite; }
.seam-glyph .throb.lag1 { animation-delay: -.8s; }
.seam-glyph .throb.lag2 { animation-delay: -1.6s; }
.seam-glyph .throb.lag3 { animation-delay: -2.4s; }
.seam-glyph .nimbus { animation: seam-nimbus 4s ease-in-out infinite; }

.seam:not(.live)::after,
.seam:not(.live) .seam-glyph .whirl,
.seam:not(.live) .seam-glyph .throb,
.seam:not(.live) .seam-glyph .nimbus { animation-play-state: paused; }

@keyframes seam-sweep {
  0%   { background-position: 50% 0, 50% 0; opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: .9; }
  100% { background-position: 0% 0, 100% 0; opacity: 0; }
}
@keyframes seam-whirl  { to { transform: rotate(360deg); } }
@keyframes seam-throb  { 50% { transform: scale(1.35); opacity: .65; } }
@keyframes seam-nimbus {
  0%, 100% { opacity: .25; transform: scale(.85); }
  50%      { opacity: .7;  transform: scale(1.15); }
}



.prow {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 2.5vw, 1.75rem) 0;
  background:
    radial-gradient(ellipse 60% 140% at 85% 50%, var(--dusk-deep), transparent 70%),
    var(--void);
}

.prow-pic {
  position: absolute;
  right: 0; top: 0;
  width: 46%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent);
  mask-image: linear-gradient(to left, #000 40%, transparent);
}

.prow .girth {
  position: relative;
  z-index: 1;
  width: min(1600px, 100% - 2rem);
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(0, 1fr) auto;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.sigil {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0;
  object-fit: contain;
  justify-self: start;
  transform-origin: left center;
}

.spiel, .doors { position: relative; z-index: 1; }

.strapline {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-style: italic;
  max-width: 34ch;
  margin: 0;
  color: var(--bone);
  line-height: 1.45;
}

.aside {
  margin: .5rem 0 0;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--ash);
}

.doors { display: flex; flex-direction: column; gap: .6rem; }

.door {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: .6rem 1.3rem;
  border: 1px solid var(--brass);
  color: var(--brass);
  text-decoration: none;
  text-align: center;
  font: 500 1rem var(--f-head);
  letter-spacing: .06em;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.door::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s;
  pointer-events: none;
}

.door:hover { background: var(--brass); color: var(--void); box-shadow: 0 0 18px rgba(212,175,55,.35); }
.door:hover::before { left: 125%; }

.door.twin { border-color: var(--dusk); color: #d9c3ff; }
.door.twin:hover { background: var(--dusk); color: #fff; box-shadow: 0 0 18px rgba(138,79,214,.55); }


.orrery {
  background: radial-gradient(circle at 70% 50%, #1a0d2e, var(--void) 65%);
  padding-top: clamp(.75rem, 2vw, 1.5rem);
  padding-bottom: 0;
  overflow: hidden;
}

.orrery .girth {
  width: min(1900px, 100% - 1rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}

.film-head { grid-column: 1; grid-row: 1; align-self: start; position: relative; z-index: 2; text-align: center; }
.filmbox   { grid-column: 1; grid-row: 2; }
.lectern   { grid-column: 2; grid-row: 1 / span 2; }

.filmbox {
  position: relative;
  z-index: 2;
  align-self: center;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.film-sub { color: var(--ash); margin: 1rem auto 1.25rem; }

.clip {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0614;
  border: 1px solid var(--brass-low);
}

.shelf { display: grid; margin-top: auto; }
.shelf > .plinth,
.shelf > .rim { grid-area: 1 / 1; }

.plinth {
  position: relative;
  width: 95%;
  justify-self: end;
  margin-right: -8%;
  height: clamp(450px, 57svh, 630px);
  filter: drop-shadow(0 0 8px rgba(138,79,214,.35));
}

.effigy {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: bottom center;
}

.attrib { font-size: .85rem; color: var(--ash); }

.lectern { display: flex; flex-direction: column; }
.preamble, .lectern .attrib { position: relative; z-index: 2; }
.preamble { min-height: 15rem; }

.preamble > * { animation: preamble-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.preamble > p { animation-delay: .1s; }

@keyframes preamble-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.lectern p { color: var(--ash); margin-top: 1rem; }
.lectern .nm { color: var(--brass); }
.lectern .sub { margin: .6rem 0 0; color: #d9c3ff; font-style: italic; }
.lectern .sub.epithet { font-size: 1.1rem; color: var(--brass); margin-top: .8rem; }
.lectern .sub.elem { margin-top: .2rem; }
.lectern .sub.stars { margin: .2rem 0 1rem; font-style: normal; font-size: .9rem; color: var(--ash); }
.lectern .blurb { color: var(--bone); }
.lectern .blurb .vitals { display: block; margin-top: .8rem; font-size: .85rem; color: var(--ash); }
.lectern .attrib { margin: 1rem 0 1.5rem; }

.lectern .preamble > p:not(.sub) {
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(125,102,32,.4);
  border-left: 2px solid var(--brass-low);
  background: linear-gradient(160deg, rgba(42,22,72,.55), rgba(0,0,0,.45));
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.lectern .preamble > p:not(.sub):hover {
  transform: translateY(-3px);
  border-color: var(--brass);
  box-shadow: 0 10px 28px rgba(138,79,214,.3);
}

.rim {
  width: min(460px, 88%);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  margin: 0;
  justify-self: start;
  align-self: end;
  position: relative;
  z-index: 1;
}

.astrolabe {
  width: 100%;
  display: block;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.astrolabe.gripped { cursor: grabbing; }

.astrolabe .disc  { fill: #0a0512; fill-opacity: .95; }
.astrolabe .band  { fill: none; stroke: var(--brass); stroke-width: 1.2; }
.astrolabe .band-b { fill: none; stroke: var(--dusk); stroke-width: 1; }
.astrolabe .rib   { stroke: var(--dusk); stroke-width: 1; }
.astrolabe .hub   { fill: var(--void); stroke: var(--brass); stroke-width: 1.2; }

.astrolabe .rune {
  fill: var(--brass);
  font: 30px "Playfair Display", "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", serif;
  text-anchor: middle;
  dominant-baseline: central;
  transition: fill .2s;
}

.astrolabe .house { cursor: pointer; }
.astrolabe .house:hover .rune,
.astrolabe .house.lit .rune { fill: #fff; }
.astrolabe .house .pad { fill: transparent; }
.astrolabe .house.lit .pad { fill: var(--dusk); fill-opacity: .35; }
.astrolabe .house.sealed { cursor: not-allowed; }
.astrolabe .house.sealed .rune,
.astrolabe .house.sealed:hover .rune { fill: #cfc9da; opacity: .28; }


.lore { background: radial-gradient(ellipse 50% 60% at 12% 45%, rgba(138,79,214,.16), transparent 70%); }
.lore h2 { margin-top: -1.5rem; }
.lore .girth > p { margin-bottom: calc(1.1em + 1.5rem); }
.lore .lede { margin-top: 1.5rem; }

.signal {
  background:
    radial-gradient(ellipse 60% 70% at 85% 100%, rgba(212,175,55,.10), transparent 70%),
    linear-gradient(var(--void), #12081f);
}
.signal .hail { margin-top: 1rem; }
.signal .mailto { margin-top: 2.5rem; }

.lore h2,
.signal h2,
.film-head h2,
.lectern .preamble h2 {
  background: linear-gradient(180deg, #fff3c4, var(--brass));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lore h2::after,
.signal h2::after,
.lectern .preamble h2::after {
  content: "";
  display: block;
  width: 80px; height: 2px;
  margin-top: .7rem;
  background: linear-gradient(90deg, var(--brass), var(--dusk), transparent);
}

.film-head h2::after {
  content: "";
  display: block;
  width: min(260px, 60%); height: 2px;
  margin: .7rem auto 0;
  background: linear-gradient(90deg, transparent, var(--brass) 28%, var(--dusk) 50%, var(--brass) 72%, transparent);
}

.doorway { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }


@property --sweep { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes tenet-orbit { to { --sweep: 360deg; } }

.tenets {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tenets strong { display: block; font: 500 1.25rem var(--f-head); color: var(--brass); }

.tenets li {
  position: relative;
  padding: 1.5rem 1.4rem;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(42,22,72,.55), rgba(0,0,0,.45));
  box-shadow: 0 0 5px rgba(138,79,214,.22), inset 0 0 22px rgba(212,175,55,.06);
  transition: transform .3s, box-shadow .3s;
}

.tenets li::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  pointer-events: none;
  z-index: -1;
  background: conic-gradient(from var(--sweep), #7d6620, #f1d77a, #fff3c4, #c9a6ff, #8a4fd6, #2a1648, #7d6620 55%, #f1d77a 75%, #fff3c4 82%, #7d6620);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: tenet-orbit 4s linear infinite paused;
  filter: drop-shadow(0 0 2px rgba(212,175,55,.45));
}

.tenets li::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(125,102,32,.35);
  background:
    linear-gradient(var(--brass), var(--brass)) top left / 14px 2px,
    linear-gradient(var(--brass), var(--brass)) top left / 2px 14px,
    linear-gradient(var(--brass), var(--brass)) top right / 14px 2px,
    linear-gradient(var(--brass), var(--brass)) top right / 2px 14px,
    linear-gradient(var(--brass), var(--brass)) bottom left / 14px 2px,
    linear-gradient(var(--brass), var(--brass)) bottom left / 2px 14px,
    linear-gradient(var(--brass), var(--brass)) bottom right / 14px 2px,
    linear-gradient(var(--brass), var(--brass)) bottom right / 2px 14px;
  background-repeat: no-repeat;
  transition: inset .3s, border-color .3s;
}

.tenets li:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(138,79,214,.4), 0 0 22px rgba(212,175,55,.3), inset 0 0 26px rgba(138,79,214,.15);
}
.tenets li:hover::before { animation-play-state: running; }
.tenets li:hover::after  { inset: 4px; border-color: rgba(241,215,122,.6); }

footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--ash);
  font-size: .95rem;
  border-top: 1px solid #1d1429;
}

.scripted .unveil {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.scripted .unveil.shown { opacity: 1; transform: none; }


@media (min-width: 861px) {
  .prow .girth:not(.stilled) .sigil { transform: scale(1.4); }
  .prow .girth.stilled .sigil { transform: scale(2); }
}

@media (max-width: 860px) {
  .prow .girth { grid-template-columns: 1fr; }
  .prow-pic { width: 100%; opacity: .25; }
  .sigil { max-width: min(210px, 100%); }
  .doors { flex-direction: row; flex-wrap: wrap; }
  .orrery .girth { grid-template-columns: 1fr; grid-template-rows: none; }
  .film-head, .filmbox, .lectern { grid-column: 1; grid-row: auto; }
  .filmbox { margin-bottom: 1.5rem; }
  .plinth { margin-right: 0; width: 100%; height: clamp(380px, 60svh, 520px); }
  .rim { width: 100%; justify-self: center; }
  .effigy { translate: 0 -12%; }
  .preamble { min-height: 13rem; }
  .tenets { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1.05rem; line-height: 1.65; }
  .seam { height: 56px; }
  .seam-motes { height: 120px; }
  .prow { padding: 1.5rem 0; }
  .prow .girth { gap: 1.1rem; }
  .doors { flex-direction: column; width: 100%; }
  .door { width: 100%; padding: .85rem 1.2rem; min-height: 48px; }
  .doorway { flex-direction: column; }
  .doorway .door { width: 100%; }
  .tenets { gap: 1.2rem; }
  .lectern .preamble > p:not(.sub) { padding: .9rem 1rem; }
  footer { padding: 2rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seam::after, .seam-motes { display: none; }
  .seam-glyph .whirl,
  .seam-glyph .throb,
  .seam-glyph .nimbus { animation: none; }
  .preamble > *, .tenets li::before { animation: none; }
  .door, .door::before, .tenets li, .lectern .preamble > p:not(.sub) { transition: none; }
  .tenets li:hover, .lectern .preamble > p:not(.sub):hover { transform: none; }
}