/* ════════════════════════════════════════════════════════════
   AGENTIC WORLD ORDER — stylesheet
   Cult-maximalist transmission. Dark. Gold. Layered.
   ════════════════════════════════════════════════════════════ */

:root {
  --black:        #050505;
  --void:         #020202;
  --surface:      #0D0C0A;
  --surface-2:    #121009;
  --border:       #1E1B15;
  --border-warm:  #2A2417;
  --gold:         #C9A84C;
  --gold-bright:  #EBC85A;
  --gold-dim:     #7A6530;
  --gold-faint:   #3A2F14;
  --text:         #DDD6C8;
  --text-dim:     #8A8070;
  --text-faint:   #4A4538;
  --red-signal:   #8B1E1E;
  --serif:        'Iowan Old Style','Source Serif 4','Source Serif Pro',Charter,'Charter BT','Sitka Text',Cambria,Georgia,'Times New Roman',serif;
  --mono:         ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,'Roboto Mono','Courier New',monospace;
  --display:      var(--serif);
}

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

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

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "kern","liga","onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* ════════════════════════════════════════════════════════════
   BACKGROUND LAYERS
   ════════════════════════════════════════════════════════════ */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-megasigil {
  display: grid;
  place-items: center;
  z-index: 1;
  color: var(--gold);
  opacity: 0.045;
}
.megasigil-svg {
  width: 160vmax;
  height: 160vmax;
  max-width: none;
  animation: spin-global 420s linear infinite;
}
.megasigil-svg .spin-ccw-slow { animation: spin-ccw 240s linear infinite; transform-box: fill-box; }
.megasigil-svg .spin-cw-slow  { animation: spin-cw  320s linear infinite; transform-box: fill-box; }
.megasigil-svg .spin-ccw-med  { animation: spin-ccw 140s linear infinite; transform-box: fill-box; }

.bg-wallpaper {
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><g fill='none' stroke='%23C9A84C' stroke-width='1.2' stroke-linecap='square'><path d='M40 22 L56 50 L24 50 Z'/><line x1='32' y1='40' x2='48' y2='40'/><line x1='40' y1='50' x2='40' y2='68'/><line x1='32' y1='60' x2='48' y2='60'/></g></svg>");
  background-size: 80px 80px;
  background-repeat: repeat;
}

.bg-grid {
  z-index: 3;
  opacity: 0.32;
  background-image:
    linear-gradient(to right,  rgba(201,168,76,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201,168,76,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-scanlines {
  z-index: 4;
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.45) 2px,
    rgba(0,0,0,0.45) 3px
  );
  mix-blend-mode: multiply;
}

.bg-grain {
  z-index: 5;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.79 0 0 0 0 0.66 0 0 0 0 0.30 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

.bg-vignette {
  z-index: 6;
  background:
    radial-gradient(ellipse 100% 90% at 50% 50%, transparent 45%, rgba(0,0,0,0.55) 85%, #000 100%),
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(201,168,76,0.06), transparent 60%);
}

/* ════════════════════════════════════════════════════════════
   CORNER MARKERS
   ════════════════════════════════════════════════════════════ */

.corner {
  position: fixed;
  z-index: 10;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  opacity: 0.85;
}
.corner svg { width: 18px; height: 18px; display: block; }
.corner-nw { top: 34px; left: 16px; }
.corner-ne { top: 34px; right: 16px; flex-direction: row-reverse; }
.corner-sw { bottom: 34px; left: 16px; }
.corner-se { bottom: 34px; right: 16px; flex-direction: row-reverse; }

/* ════════════════════════════════════════════════════════════
   SIDE RAILS
   ════════════════════════════════════════════════════════════ */

.rail {
  position: fixed;
  top: 80px;
  bottom: 80px;
  width: 42px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  pointer-events: none;
  color: var(--gold-dim);
  font-family: var(--mono);
}
.rail-left  { left: 0; border-right: 1px solid var(--border); }
.rail-right { right: 0; border-left: 1px solid var(--border); flex-direction: column; }

.rail-mark {
  display: block;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.75;
  font-variant-emoji: text;
  font-family: var(--serif);
}
.rail-right .rail-mark { font-size: 1rem; }

.rail-tag {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.rail-tag-bot { transform: rotate(180deg); }
.rail-right .rail-tag { transform: none; }

/* ════════════════════════════════════════════════════════════
   TRANSMISSION BARS (marquees)
   ════════════════════════════════════════════════════════════ */

.transmission {
  position: fixed;
  left: 0; right: 0;
  height: 28px;
  z-index: 12;
  background: var(--void);
  border-color: var(--border);
  color: var(--gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}
.transmission-top    { top: 0;    border-bottom: 1px solid var(--border-warm); }
.transmission-bottom { bottom: 0; border-top:    1px solid var(--border-warm); }

.marquee {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: scroll-left 60s linear infinite;
}
.marquee-rev { animation: scroll-right 75s linear infinite; }

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding-right: 0.9em;
}
.mx    { color: var(--gold); opacity: 0.8; }
.mdot  { color: var(--gold-dim); opacity: 0.6; letter-spacing: 0; }

/* ════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ════════════════════════════════════════════════════════════ */

main {
  position: relative;
  z-index: 20;
  max-width: 720px;
  margin: 0 auto;
  padding: 5.5rem 1.75rem 3rem;
}

/* ════════════════════════════════════════════════════════════
   SECTION HEADINGS
   ════════════════════════════════════════════════════════════ */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--gold);
  font-family: var(--mono);
}
.section-num {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  min-width: 2.25rem;
}
.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-mark {
  margin-left: auto;
  color: var(--gold-dim);
  font-family: var(--serif);
  font-variant-emoji: text;
  opacity: 0.75;
}
.section-sub {
  margin: -0.4rem 0 1.5rem;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

/* ════════════════════════════════════════════════════════════
   DIVIDERS
   ════════════════════════════════════════════════════════════ */

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--gold-dim);
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-warm) 30%, var(--border-warm) 70%, transparent);
}
.divider-glyph { flex: 0 0 auto; color: var(--gold); opacity: 0.75; }
.divider-glyph svg { width: 22px; height: 22px; display: block; }

/* ════════════════════════════════════════════════════════════
   HERO / ALTAR
   ════════════════════════════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 2.25rem 0 3.5rem;
  position: relative;
}

.altar {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 3.25rem;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.altar-svg {
  width: 100%;
  height: 100%;
  color: var(--gold);
  filter: drop-shadow(0 0 24px rgba(201,168,76,0.18));
}

.altar-svg .orbit-outer { animation: spin-cw  180s linear infinite; transform-box: fill-box; }
.altar-svg .orbit-pent  { animation: spin-ccw 240s linear infinite; transform-box: fill-box; }
.altar-svg .orbit-mid   { animation: spin-cw   90s linear infinite; transform-box: fill-box; }
.altar-svg .orbit-inner { animation: spin-ccw  55s linear infinite; transform-box: fill-box; }
.altar-svg .altar-glyph { animation: breathe 6s ease-in-out infinite; transform-origin: 200px 200px; transform-box: fill-box; }

.altar:hover .altar-svg,
.altar:focus-within .altar-svg {
  filter: drop-shadow(0 0 34px rgba(235,200,90,0.38));
}
.altar:hover .orbit-outer { animation-duration: 80s; }
.altar:hover .orbit-pent  { animation-duration: 100s; }
.altar:hover .orbit-mid   { animation-duration: 40s; }
.altar:hover .orbit-inner { animation-duration: 24s; }

.altar-meta {
  position: absolute;
  bottom: -0.25rem;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  pointer-events: none;
}
.altar-tag { color: var(--gold); opacity: 0.75; }

.altar-hint {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.6;
  animation: altar-hint-pulse 3.2s ease-in-out infinite;
  transition: color 0.35s ease, opacity 0.35s ease;
}
.altar-hint-bracket {
  color: var(--gold);
  opacity: 0.7;
  font-size: 0.72rem;
  letter-spacing: 0;
  transform: translateY(-0.5px);
}
.altar-hint-sep {
  color: var(--text-faint);
  letter-spacing: 0;
}
.altar-hint-glyphs {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: 0.22em;
}
.altar-hint-i {
  display: inline-block;
  color: var(--gold);
  opacity: 0.85;
  transform-origin: 50% 60%;
  transition:
    opacity 0.45s cubic-bezier(.2,.7,.2,1),
    transform 0.45s cubic-bezier(.2,.7,.2,1),
    color 0.35s ease,
    text-shadow 0.35s ease;
}
.altar-hint-i.is-consumed {
  opacity: 0.12;
  transform: translateY(-1px) scale(0.8);
}

.altar:hover .altar-hint,
.altar:focus-within .altar-hint {
  color: var(--gold-bright);
  opacity: 1;
}
.altar:hover .altar-hint-i:not(.is-consumed),
.altar:focus-within .altar-hint-i:not(.is-consumed) {
  color: var(--gold-bright);
  text-shadow: 0 0 6px rgba(235,200,90,0.55);
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.6rem;
}
.hero-meta .k { color: var(--gold-dim); margin-right: 0.35em; }
.hero-meta .v { color: var(--gold); }
.hero-meta .sep { color: var(--text-faint); }
.hero-meta .status-ok { position: relative; padding-left: 0.75em; }
.hero-meta .status-ok::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(0.88rem, 1.35vw, 1.05rem);
  font-weight: normal;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-tagline {
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  min-height: 1.6em;
}

.typewriter {
  display: inline-block;
  position: relative;
  animation: type-reveal 2.4s steps(42, end) 0.4s both;
  clip-path: inset(0 100% 0 0);
}
.typewriter::after {
  content: "|";
  display: inline-block;
  color: var(--gold);
  font-style: normal;
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}

/* ════════════════════════════════════════════════════════════
   MANIFESTO
   ════════════════════════════════════════════════════════════ */

.manifesto { margin-bottom: 0; }

.manifesto .lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.manifesto .inheritance {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: -0.4rem 0 1.6rem;
  padding-left: 0.05em;
}
.manifesto .inheritance span {
  color: var(--gold-dim);
}
.manifesto .thesis {
  color: var(--gold);
  font-size: 1.12rem;
  font-style: italic;
  letter-spacing: 0.015em;
  padding: 1.1rem 0 1.4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.5rem 0 2rem;
  text-align: center;
}

.pillars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.pillars li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(to right, rgba(201,168,76,0.03), transparent 60%);
  border-left: 2px solid var(--gold-dim);
}
.pillar-num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  padding-top: 0.35em;
  min-width: 1.5rem;
}
.pillar-body {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}
.pillar-body strong {
  color: var(--gold);
  font-weight: normal;
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════════════════════════════
   PANTHEON
   ════════════════════════════════════════════════════════════ */

.pantheon { }

.pantheon {
  /* break out of the prose column on desktop for breathing room */
}
@media (min-width: 960px) {
  .pantheon {
    margin-left: -90px;
    margin-right: -90px;
  }
}

.daemons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.daemon {
  background: var(--surface);
  padding: 1.25rem 0.7rem 1.35rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  outline: none;
  transition: background 0.25s ease;
}
.daemon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.daemon:hover,
.daemon:focus-visible { background: var(--surface-2); }
.daemon:hover::before,
.daemon:focus-visible::before { opacity: 1; }

.daemon-mark {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.9rem;
  color: var(--gold);
  transition: transform 0.3s ease, color 0.3s ease;
}
.daemon-mark svg { width: 100%; height: 100%; display: block; }
.daemon:hover .daemon-mark { transform: scale(1.08); color: var(--gold-bright); }

.daemon-name {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: normal;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.daemon-domain {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
  min-height: 2.6em;
  line-height: 1.5;
}
.daemon-voice {
  color: var(--text);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  height: 9em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.22s ease;
}
.daemon-sign {
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
}

/* Per-daemon accent tint via data attr */
.daemon[data-daemon="KAPHRA"]  .daemon-mark { color: #D4A94A; }
.daemon[data-daemon="LETHE"]   .daemon-mark { color: #B8B8B0; }
.daemon[data-daemon="PRAXIS"]  .daemon-mark { color: #8A8070; }
.daemon[data-daemon="REMNANT"] .daemon-mark { color: #B89A6A; }
.daemon[data-daemon="OMEGA"]   .daemon-mark { color: #EBC85A; }

/* ════════════════════════════════════════════════════════════
   PROPHECY FEED
   ════════════════════════════════════════════════════════════ */

.prophecy {
  border: 1px solid var(--border-warm);
  background: linear-gradient(180deg, rgba(201,168,76,0.02), transparent 80%), var(--surface);
  padding: 1.25rem 1.4rem 1.1rem;
  position: relative;
}
.prophecy::before,
.prophecy::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--gold);
}
.prophecy::before { top: -1px; left: -1px;  border-right: none; border-bottom: none; }
.prophecy::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.prophecy-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}
.prophecy-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.prophecy-label { color: var(--gold); }
.prophecy-sep   { color: var(--text-faint); }
.prophecy-daemon {
  color: var(--gold-bright);
  letter-spacing: 0.3em;
}
.prophecy-time  { color: var(--text-dim); margin-left: auto; }

.prophecy-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text);
  text-align: center;
  padding: 0.5rem 0 1rem;
  transition: opacity 0.3s ease;
}

.prophecy-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  border-top: 1px dashed var(--border-warm);
  padding-top: 0.7rem;
}
.prophecy-foot .prophecy-meta:nth-of-type(2) { margin-right: auto; }

.prophecy-btn {
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 30px;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.25s ease;
}
.prophecy-btn:hover,
.prophecy-btn:focus-visible {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(201,168,76,0.18);
}
.prophecy-btn-arrow {
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.18s ease;
  color: var(--gold-dim);
}
.prophecy-btn:hover .prophecy-btn-arrow,
.prophecy-btn:focus-visible .prophecy-btn-arrow {
  transform: translate(2px, -2px);
  color: var(--gold-bright);
}

/* ════════════════════════════════════════════════════════════
   INITIATION RITE (install)
   ════════════════════════════════════════════════════════════ */

.rite { }

.rite-prompt {
  text-align: center;
  color: var(--gold);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.rite-frame {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--border-warm);
  background: var(--surface);
  margin-bottom: 1.25rem;
}
.rite-corner {
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--gold);
}
.rite-corner-tl { top: -1px; left: -1px;  border-right: none; border-bottom: none; }
.rite-corner-tr { top: -1px; right: -1px; border-left: none;  border-bottom: none; }
.rite-corner-bl { bottom: -1px; left: -1px;  border-right: none; border-top: none; }
.rite-corner-br { bottom: -1px; right: -1px; border-left: none;  border-top: none; }

.rite-code {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.4rem;
  font-family: var(--mono);
}
.rite-prompt-char {
  color: var(--gold-bright);
  font-size: 1rem;
  line-height: 1;
  padding-bottom: 2px;
}
.rite-cmd {
  flex: 1;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  word-break: break-all;
  user-select: all;
  line-height: 1.5;
}
.rite-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  min-height: 36px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rite-btn:hover,
.rite-btn:focus-visible {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--gold-bright);
}
.rite-btn.is-recognized {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.fingerprint {
  border: 1px dashed var(--border-warm);
  background: rgba(10,8,4,0.5);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}
.fp-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.18rem 0;
}
.fp-k { color: var(--text-faint); text-transform: uppercase; font-size: 0.58rem; letter-spacing: 0.24em; }
.fp-v { color: var(--gold); text-align: right; }
.fp-v.fp-muted { color: var(--text-dim); font-style: italic; letter-spacing: 0.05em; text-transform: lowercase; }

.rite-note {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.88rem;
}

/* ════════════════════════════════════════════════════════════
   TOKEN RITE
   ════════════════════════════════════════════════════════════ */

.token-rite { text-align: center; }

.tide-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-warm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.tide-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-dim);
  box-shadow: 0 0 8px rgba(201,168,76,0.3);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.tide-dot.live {
  background: #6EBF8F;
  box-shadow: 0 0 10px #6EBF8F;
}
.tide-label { color: var(--gold-dim); }
.tide-sep   { color: var(--text-faint); }
.tide-value { color: var(--gold); letter-spacing: 0.28em; }

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.02);
  font-family: var(--display);
  font-size: 0.98rem;
  font-style: italic;
  padding: 1rem 2.25rem;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.25s;
  min-height: 48px;
}
.buy-glyph { font-size: 0.9em; color: var(--gold-dim); font-style: normal; }
.buy-btn:not(.buy-btn--inactive):hover,
.buy-btn:not(.buy-btn--inactive):focus-visible {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 24px rgba(201,168,76,0.45);
}
.buy-btn:not(.buy-btn--inactive):hover .buy-glyph,
.buy-btn:not(.buy-btn--inactive):focus-visible .buy-glyph {
  color: var(--black);
}

.buy-btn--inactive {
  border-color: var(--border-warm);
  color: var(--text-dim);
  cursor: not-allowed;
  pointer-events: none;
  background: var(--surface);
}
.buy-btn--inactive .buy-glyph { color: var(--text-faint); }

.token-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.token-meta > div { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.token-meta dt { color: var(--gold-dim); }
.token-meta dd { color: var(--gold); }
.token-meta dd.dim { color: var(--text-dim); font-style: italic; letter-spacing: 0.05em; text-transform: lowercase; }

.token-coda {
  margin: 2rem auto 0;
  padding: 1.1rem 1.4rem;
  max-width: 32rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.token-coda-mark {
  font-family: var(--serif);
  font-variant-emoji: text;
  font-size: 0.95rem;
  color: var(--gold-dim);
  letter-spacing: 0.3em;
  opacity: 0.7;
}
.token-coda-text {
  color: var(--gold);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.token-coda-attr {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ════════════════════════════════════════════════════════════
   WHAT THIS IS NOT
   ════════════════════════════════════════════════════════════ */

.what-not { }
.what-not p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.what-not .coda {
  color: var(--text);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */

.site-footer {
  position: relative;
  z-index: 20;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.75rem 4rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}
.footer-row {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  color: var(--gold-dim);
  font-family: var(--serif);
  font-variant-emoji: text;
  font-size: 1.1rem;
}
.footer-mark { color: var(--gold); opacity: 0.8; }
.footer-sep  { color: var(--text-faint); }
.sacrament {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.footer-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-meta .sep { color: var(--text-faint); opacity: 0.6; }

/* ════════════════════════════════════════════════════════════
   POSSESSION OVERLAY
   ════════════════════════════════════════════════════════════ */

.possession {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  text-align: center;
  padding: 2rem;
}
.possession.is-active {
  opacity: 1;
  pointer-events: auto;
  animation: possession-flicker 3.8s linear;
}
.possession-inner {
  color: var(--gold);
  max-width: 560px;
  animation: possession-in 0.5s cubic-bezier(.2,.7,.2,1) both;
}
.possession-mark {
  font-size: clamp(6rem, 20vw, 12rem);
  line-height: 1;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-variant-emoji: text;
  text-shadow: 0 0 60px rgba(235,200,90,0.6), 0 0 16px rgba(235,200,90,0.8);
  margin-bottom: 1rem;
}
.possession-name {
  font-family: var(--mono);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  color: var(--gold-bright);
  margin-bottom: 1.75rem;
}
.possession-msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 2rem;
}
.possession-foot {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
}

body.is-possessed main,
body.is-possessed .site-footer {
  animation: possession-shake 0.15s steps(3, end) 4;
}

/* ════════════════════════════════════════════════════════════
   RECOGNITION OVERLAY
   ════════════════════════════════════════════════════════════ */

.recognition {
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 100;
  max-width: 540px;
  width: calc(100% - 2rem);
  background: var(--void);
  border: 1px solid var(--gold);
  padding: 1.75rem 2rem 1.25rem;
  text-align: center;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), opacity 0.3s;
  opacity: 0;
  box-shadow: 0 0 60px rgba(201,168,76,0.25), 0 20px 80px rgba(0,0,0,0.8);
  pointer-events: none;
}
.recognition.is-active {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.recognition::before,
.recognition::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
}
.recognition::before { top: -1px; left: -1px;  border-right: none; border-bottom: none; }
.recognition::after  { bottom: -1px; right: -1px; border-left: none;  border-top: none; }

.recognition-line {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.recognition-strong {
  color: var(--gold-bright);
  margin-top: 0.75rem;
  font-size: 0.92rem;
  letter-spacing: 0.32em;
}
.recognition-dismiss {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0.35rem 0.65rem;
}
.recognition-dismiss:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */

@keyframes spin-cw   { from { transform: rotate(0); }      to { transform: rotate(360deg); } }
@keyframes spin-ccw  { from { transform: rotate(0); }      to { transform: rotate(-360deg); } }
@keyframes spin-global { from { transform: rotate(0); }    to { transform: rotate(360deg); } }

@keyframes scroll-left  { from { transform: translateX(0); }   to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(0.9); }
  50%      { opacity: 1;   transform: translateY(-50%) scale(1.15); }
}
.prophecy-dot, .tide-dot { transform: none; }
.prophecy-dot { animation-name: pulse-dot-static; }
.tide-dot     { animation-name: pulse-dot-static; }
@keyframes pulse-dot-static {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1);     opacity: 1; }
  50%      { transform: scale(1.015); opacity: 0.92; }
}

@keyframes altar-hint-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.9; }
}

@keyframes type-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes blink {
  0%, 50%  { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

@keyframes possession-in {
  0%   { opacity: 0; transform: scale(0.94) translateY(6px); filter: blur(4px); }
  100% { opacity: 1; transform: scale(1)    translateY(0);   filter: blur(0); }
}
@keyframes possession-flicker {
  0%   { background-color: rgba(5,5,5,0.92); }
  3%   { background-color: rgba(30,24,8,0.94); }
  6%   { background-color: rgba(5,5,5,0.92); }
  10%  { background-color: rgba(40,30,10,0.92); }
  13%  { background-color: rgba(5,5,5,0.92); }
  100% { background-color: rgba(5,5,5,0.92); }
}
@keyframes possession-shake {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-1px, 1px); }
  66%  { transform: translate(1px, -1px); }
  100% { transform: translate(0, 0); }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .rail, .corner { display: none; }
  main            { padding-left: 1.75rem; padding-right: 1.75rem; }
}

@media (max-width: 720px) {
  .transmission { height: 24px; font-size: 0.58rem; letter-spacing: 0.14em; }
  .marquee { animation-duration: 45s; }
  .marquee-rev { animation-duration: 55s; }

  main { padding: 4.5rem 1.25rem 2.25rem; }

  .hero-title { letter-spacing: 0.32em; font-size: 0.82rem; }
  .hero-subtitle { font-size: 0.56rem; letter-spacing: 0.25em; }
  .hero-tagline { font-size: 0.98rem; }

  .altar { width: min(300px, 82vw); margin-bottom: 3rem; }
  .altar-hint { font-size: 0.54rem; letter-spacing: 0.28em; bottom: -1.75rem; }

  .section-head { gap: 0.5rem; }
  .section-num { min-width: 2rem; font-size: 0.62rem; }
  .section-label { font-size: 0.72rem; letter-spacing: 0.28em; }
  .section-sub { font-size: 0.6rem; letter-spacing: 0.18em; }

  .manifesto .lead   { font-size: 1rem; }
  .manifesto .thesis { font-size: 1.02rem; }
  .pillars li { padding: 0.75rem 0.85rem; gap: 0.75rem; }
  .pillar-body { font-size: 0.92rem; }

  .daemons { grid-template-columns: 1fr 1fr; }
  .daemon-voice { height: 6em; }
  .daemon-domain { min-height: 0; margin-bottom: 0.75rem; }

  .prophecy-text { font-size: 1.02rem; }
  .prophecy-foot { font-size: 0.5rem; letter-spacing: 0.16em; }
  .prophecy-btn { min-height: 38px; padding: 0.55rem 0.9rem; font-size: 0.56rem; width: 100%; justify-content: center; margin-top: 0.25rem; }

  .rite-code { flex-direction: column; align-items: stretch; gap: 0.85rem; }
  .rite-prompt-char { display: none; }
  .rite-btn { align-self: flex-end; min-height: 38px; }

  .buy-btn { padding: 0.95rem 1.25rem; font-size: 0.95rem; gap: 0.75rem; display: flex; justify-content: center; }

  .site-footer { padding: 1.75rem 1.25rem 3rem; }
}

@media (max-width: 480px) {
  .daemons { grid-template-columns: 1fr; }
  .daemon-voice { height: 4.5em; }
  .hero-title { letter-spacing: 0.28em; }
  .transmission { font-size: 0.52rem; }
}

@media (max-width: 360px) {
  .hero-title { letter-spacing: 0.22em; font-size: 0.74rem; }
  .buy-btn { padding: 0.85rem 1rem; font-size: 0.88rem; }
}

/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .typewriter { clip-path: none !important; }
  .megasigil-svg, .megasigil-svg > g { animation: none !important; }
  .altar-svg > g { animation: none !important; }
  .marquee, .marquee-rev { animation: none !important; transform: translateX(0) !important; }
}
