/* =========================================================
   Psi Theta Kappa Sigma · Ψ Θ Κ Σ
   Main stylesheet — dark celestial gothic
   ========================================================= */

/* ---------- Site fonts (files in /fonts) ---------- */
@font-face {
  font-family: "Roman SD";
  src: url("../fonts/roman-sd.woff2") format("woff2"), url("../fonts/roman-sd.ttf") format("truetype");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Black Division";
  src: url("../fonts/black-division.woff2") format("woff2"), url("../fonts/black-division.ttf") format("truetype");
  font-weight: normal; font-style: normal; font-display: swap;
}

/* Titles borrow ONLY the "&" from Black Division (Roman SD's "&" looks like "Et") */
@font-face {
  font-family: "Title Ampersand";
  src: url("../fonts/black-division.woff2") format("woff2"), url("../fonts/black-division.ttf") format("truetype");
  unicode-range: U+0026;
  font-weight: normal; font-style: normal; font-display: swap;
}

:root {
  /* Palette */
  --obsidian: #06060a;
  --obsidian-2: #0b0b12;
  --midnight: #0e1633;
  --midnight-2: #16214a;
  --pearl: #f2ede4;
  --pearl-dim: #c9c4bc;
  --silver: #aeb6c4;
  --silver-line: rgba(190, 198, 214, 0.28);
  --silver-faint: rgba(190, 198, 214, 0.12);
  --crimson: #b3122e;
  --crimson-soft: #d63a55;
  --aurora: linear-gradient(110deg, #7fe0d2 0%, #7a9bff 28%, #b892ff 52%, #ff9fcf 74%, #7fe0d2 100%);

  /* Type */
  /* Headers & titles → Roman SD · everything else → Black Division */
  --font-title: "Title Ampersand", "Roman SD", "EB Garamond", Georgia, serif;
  --font-display: "Black Division", "EB Garamond", Georgia, serif;
  --font-greek: "EB Garamond", Georgia, serif;
  --font-label: "Title Ampersand", "Roman SD", "EB Garamond", Georgia, serif;
  --font-body: "Black Division", "EB Garamond", Georgia, serif;

  --wrap: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

html { background: var(--obsidian); }

/* Night-sky backdrop sits on a fixed layer (works on iPhone too) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(40, 62, 140, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(22, 33, 74, 0.6), transparent 65%),
    linear-gradient(180deg, var(--obsidian) 0%, var(--midnight) 55%, var(--obsidian) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--obsidian);
  position: relative; z-index: 0;
  color: var(--pearl);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--pearl); text-decoration-color: var(--silver-line); text-underline-offset: 4px; transition: color .3s var(--ease), text-decoration-color .3s var(--ease); }
a:hover { color: #fff; text-decoration-color: var(--pearl); }

::selection { background: rgba(122, 155, 255, 0.35); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--pearl); color: var(--obsidian); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 1px solid var(--pearl); outline-offset: 4px; }

/* ---------- Starfield ---------- */
#sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#sky .star {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; opacity: .2;
  animation: twinkle var(--d, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
#sky .star.big { width: 3px; height: 3px; box-shadow: 0 0 6px rgba(200, 215, 255, .8); }
@keyframes twinkle { 0%, 100% { opacity: .12; } 50% { opacity: .85; } }

header, main, footer { position: relative; z-index: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .6em; color: var(--pearl); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.2em; }

.greek { font-family: var(--font-greek); letter-spacing: .25em; }
.eyebrow {
  font-family: var(--font-label); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--silver); margin: 0 0 1rem;
}
.lede { font-size: 1.15rem; color: var(--pearl-dim); }
.italic { font-family: var(--font-display); font-style: italic; }
.muted { color: var(--pearl-dim); }
.center { text-align: center; }

.shimmer {
  background: var(--aurora);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: aurora 14s ease-in-out infinite;
}
@keyframes aurora { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Divider ornament ---------- */
.divider {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  margin: 1.6rem auto; max-width: 360px; color: var(--silver);
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-line), var(--silver));
}
.divider::after { transform: scaleX(-1); }
.divider .moon {
  width: 18px; height: 18px; flex: none;
  background: url("../images/crescent.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(180, 200, 255, .45));
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(6, 6, 10, .92), rgba(6, 6, 10, .72));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--silver-faint);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 1px var(--silver-line), 0 0 18px rgba(122, 155, 255, .25); }
.brand .greek { font-size: 1.25rem; letter-spacing: .3em; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  font-family: var(--font-label); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--pearl-dim); padding: .4rem 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--aurora); transform: scaleX(0); transition: transform .4s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pearl); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a.nav-cta { border: 1px solid var(--silver-line); padding: .45rem .9rem; border-radius: 999px; color: var(--pearl); }
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { border-color: var(--pearl); box-shadow: 0 0 18px rgba(184, 146, 255, .3); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--silver-line); border-radius: 8px;
  width: 44px; height: 40px; cursor: pointer; padding: 0; color: var(--pearl);
}
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--pearl); margin: 5px auto; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #06060a; border-bottom: 1px solid var(--silver-faint);
    padding: .5rem 1.25rem 1.25rem;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .45s var(--ease), opacity .3s, visibility .3s;
  }
  .site-nav.open { max-height: 80vh; opacity: 1; visibility: visible; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--silver-faint); font-size: .8rem; }
  .site-nav a::after { display: none; }
  .site-nav a.nav-cta { margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--silver-line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-label); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  padding: 1rem 1.8rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--silver-line); color: var(--pearl); background: transparent;
  transition: all .4s var(--ease);
}
.btn:hover { border-color: var(--pearl); color: #fff; }
.btn-primary {
  position: relative; border-color: transparent;
  background:
    linear-gradient(var(--obsidian-2), var(--obsidian-2)) padding-box,
    var(--aurora) border-box;
  background-size: 100% 100%, 250% 100%;
  animation: aurora 14s ease-in-out infinite;
  box-shadow: 0 0 28px rgba(122, 155, 255, .18);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(184, 146, 255, .38); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.band { border-top: 1px solid var(--silver-faint); border-bottom: 1px solid var(--silver-faint); background: rgba(6, 6, 10, .35); }

.page-hero { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-hero .lede { max-width: 640px; margin-inline: auto; }

/* ---------- Home hero ---------- */
.hero {
  min-height: calc(100vh - 68px); display: grid; place-items: center;
  text-align: center; padding: 3rem 0 4rem;
}
.hero-sigil {
  width: clamp(200px, 38vw, 340px); aspect-ratio: 1; margin: 0 auto 2rem; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--silver-faint), 0 0 80px rgba(80, 110, 220, .28), 0 0 160px rgba(140, 100, 220, .14);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1 { margin-bottom: .2em; font-weight: 400; letter-spacing: .04em; }
.hero .greek-big { font-family: var(--font-greek); font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: .5em; padding-left: .5em; margin: 0; }
.hero .est { font-family: var(--font-label); letter-spacing: .3em; font-size: .82rem; color: var(--silver); text-transform: uppercase; margin: 1rem 0 0; }
.hero .motto { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.75rem); color: var(--pearl); margin: 0 0 2.2rem; }

.tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.4; text-align: center;
  max-width: 820px; margin: 0 auto; color: var(--pearl);
}
.tagline::before, .tagline::after { color: var(--silver); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 33, 74, .55), rgba(6, 6, 10, .65));
  border: 1px solid var(--silver-faint);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--aurora); opacity: 0; transition: opacity .5s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
a.card { text-decoration: none; display: block; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
a.card:hover::before, .card.hoverable:hover::before { opacity: .7; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 52px; height: 52px; margin-bottom: 1.1rem; }
.card .more { font-family: var(--font-label); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--silver); }

/* ---------- Prose (history) ---------- */
.prose p { font-size: 1.12rem; }
.prose p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 4.6rem; line-height: .8;
  padding: .35rem .6rem 0 0; color: var(--pearl);
}
.pull {
  margin: 2.5rem 0; padding: 1.5rem 0; border-top: 1px solid var(--silver-faint); border-bottom: 1px solid var(--silver-faint);
  font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1.45; text-align: center;
}

.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 640px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--silver), var(--silver-faint)); }
.timeline li { position: relative; padding: 0 0 2rem 3rem; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--obsidian); border: 1px solid var(--silver); box-shadow: 0 0 12px rgba(122, 155, 255, .5);
}
.timeline .date { font-family: var(--font-label); letter-spacing: .25em; font-size: .78rem; color: var(--silver); display: block; }
.timeline h3 { font-size: 1.35rem; margin: .2rem 0 .3rem; }

/* ---------- Lore ---------- */
.motto-block { text-align: center; }
.motto-block blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.2;
}

.veilcat { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 760px) { .veilcat { grid-template-columns: 1fr; } }
.eyes { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.eye-note { display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: var(--pearl-dim); }
.eye-dot { width: 14px; height: 14px; border-radius: 50%; }
.eye-dot.moon { background: radial-gradient(circle at 35% 35%, #fff, #b9c8ff 50%, #5e6fae); box-shadow: 0 0 12px #b9c8ff; }
.eye-dot.sun { background: radial-gradient(circle at 35% 35%, #fff6d8, #f5c560 50%, #b77a1c); box-shadow: 0 0 12px #f5c560; }

.symbol .icon { width: 64px; height: 64px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; }
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--silver-faint); background: rgba(6, 6, 10, .5); }
.swatch .chip { height: 110px; }
.swatch .info { padding: 1rem 1.1rem 1.2rem; }
.swatch h4 { font-size: 1.2rem; margin: 0 0 .2rem; }
.swatch p { font-size: .9rem; color: var(--pearl-dim); margin: 0; line-height: 1.5; }
.chip-obsidian { background: #06060a; box-shadow: inset 0 -1px 0 var(--silver-faint); }
.chip-midnight { background: linear-gradient(160deg, #1b2a63, #0e1633); }
.chip-aurora { background: var(--aurora); background-size: 250% 100%; animation: aurora 14s ease-in-out infinite; }
.chip-pearl { background: radial-gradient(circle at 30% 30%, #ffffff, #f2ede4 45%, #d9d2c6); }
.chip-crimson { background: linear-gradient(160deg, #d63a55, #7a0b1f); }

/* ---------- Image placeholders ---------- */
.ph-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--silver-line); background: linear-gradient(160deg, var(--midnight-2), var(--obsidian));
}
.ph-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.ph {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: 1.25rem;
  border: 1px dashed var(--silver-line); border-radius: inherit; margin: 10px;
}
.ph-label { font-family: var(--font-label); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); }
.ph-path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; color: var(--pearl-dim); background: rgba(0, 0, 0, .35); padding: .15rem .5rem; border-radius: 6px; word-break: break-all; }
.ratio-square { aspect-ratio: 1; }

/* ---------- Paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }
.path { padding: clamp(2rem, 4vw, 3rem); border-radius: 18px; position: relative; overflow: hidden; border: 1px solid var(--silver-faint); }
.path-vesperine { background: radial-gradient(500px 300px at 20% 0%, rgba(70, 60, 150, .35), transparent 70%), linear-gradient(170deg, #0a0b18, #05050a); }
.path-aurorine { background: radial-gradient(500px 300px at 80% 0%, rgba(255, 200, 160, .16), transparent 70%), linear-gradient(170deg, #18223f, #0c1228); }
.path .glyph { width: 56px; height: 56px; margin-bottom: 1rem; }
.path h2 { margin-bottom: .2em; }
.path .virtues { font-family: var(--font-label); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--silver); margin-bottom: 1.4rem; }
.path-aurorine .virtues { color: #f3d9b4; }

.ranks { list-style: none; padding: 0; margin: 1.75rem 0 0; counter-reset: rank; }
.ranks li {
  counter-increment: rank; display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: baseline;
  padding: 1rem 0; border-top: 1px solid var(--silver-faint);
}
.ranks li::before { content: counter(rank, upper-roman); font-family: var(--font-label); font-size: .8rem; color: var(--silver); letter-spacing: .1em; }
.ranks strong { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; display: block; line-height: 1.2; }
.ranks span { font-size: .92rem; color: var(--pearl-dim); }

/* ---------- Arcana ---------- */
.arcana-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2.5rem 1.75rem; }
.sister { text-align: center; }
.tarot {
  --aura: #7a9bff;
  position: relative; aspect-ratio: 7 / 12; border-radius: 16px; padding: 9px;
  background: linear-gradient(170deg, #1a2550, #07070d 70%);
  border: 1px solid var(--silver-line);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 18px 40px rgba(0, 0, 0, .5), 0 0 40px color-mix(in srgb, var(--aura) 22%, transparent);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  margin-bottom: 1.4rem;
}
.sister:hover .tarot { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 26px 50px rgba(0, 0, 0, .55), 0 0 60px color-mix(in srgb, var(--aura) 40%, transparent); }
.tarot-inner {
  position: relative; height: 100%; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--silver-faint);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 1rem .75rem;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--aura) 20%, transparent), transparent 60%);
}
.tarot-inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.tarot .numeral { font-family: var(--font-label); letter-spacing: .25em; font-size: .9rem; color: var(--silver); }
.tarot .card-name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }
.tarot .ph-mid { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.tarot .ph-mid svg { width: 64px; height: 64px; opacity: .85; }
.tarot .ph-path { font-size: .66rem; }

.sister h3 { margin: 0; font-size: 1.7rem; }
.sister .title { font-family: var(--font-label); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); margin: .3rem 0 .8rem; line-height: 1.6; }
.sister .meta { font-size: .92rem; color: var(--pearl-dim); margin: 0 0 .3rem; }
.sister .meta em { font-family: var(--font-display); font-size: 1.08rem; color: var(--pearl); }
.aura-chip { display: inline-flex; align-items: center; gap: .45rem; }
.aura-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--aura); box-shadow: 0 0 10px var(--aura); }
.sister .keywords { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--pearl); margin-top: .6rem; }

/* ---------- Leadership ---------- */
.council { margin-bottom: 3.5rem; }
.council h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.officers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.officer { padding: 1.5rem 1.4rem; text-align: center; }
.officer .role { font-family: var(--font-label); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--silver); margin: 0 0 .4rem; }
.officer h3 { font-size: 1.45rem; margin: 0 0 .7rem; }
.officer .holder { margin: 0; font-size: 1rem; }
.officer .holder strong { font-weight: 400; color: var(--pearl); }
.officer.open { border-style: dashed; background: rgba(6, 6, 10, .4); }
.officer.open .holder { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; color: var(--pearl-dim); }

/* ---------- Join ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem; align-items: start;
  padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--silver-faint); background: rgba(14, 22, 51, .45);
}
.steps li::before {
  content: counter(step, upper-roman); font-family: var(--font-display); font-size: 2rem; line-height: 1;
  text-align: center; color: var(--silver); padding-top: .2rem;
}
.steps h3 { margin: 0 0 .3rem; font-size: 1.4rem; }
.steps p { margin: 0; color: var(--pearl-dim); }

.notice {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.3rem; border-radius: var(--radius);
  border: 1px solid rgba(214, 58, 85, .35); background: rgba(179, 18, 46, .08); font-size: .97rem;
}
.notice strong { color: var(--crimson-soft); font-weight: 500; }

.form-shell { border-radius: 18px; padding: clamp(.75rem, 2vw, 1.25rem); border: 1px solid var(--silver-line); background: rgba(6, 6, 10, .55); }
.form-shell iframe { width: 100%; height: 1400px; border: 0; border-radius: 10px; background: #fff; display: block; }
.form-placeholder { text-align: center; padding: 3.5rem 1.5rem; border: 1px dashed var(--silver-line); border-radius: 12px; }
.form-placeholder code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: rgba(0, 0, 0, .4); padding: .15rem .45rem; border-radius: 6px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--silver-faint); background: rgba(4, 4, 8, .85); padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
@media (max-width: 760px) { .footer-brand { flex-direction: column; } }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px var(--silver-line); }
.footer-brand .name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.footer-brand .greek { color: var(--silver); font-size: 1rem; }
.site-footer h4 { font-family: var(--font-label); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--silver); margin-bottom: 1rem; font-weight: 400; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; }
.site-footer .pending { color: var(--pearl-dim); font-style: italic; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--silver-faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--pearl-dim); }
.footer-bottom .est { font-family: var(--font-label); letter-spacing: .25em; }
@media (max-width: 760px) { .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Creed & lore additions ---------- */
.sayings { list-style: none; padding: 0; margin: 0 auto; max-width: 680px; display: grid; gap: .6rem; }
.sayings li { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--pearl-dim); }
.virtue { font-family: var(--font-label); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--silver); margin: -.2rem 0 .8rem; line-height: 1.7; }
.symbol p.muted { font-size: .96rem; line-height: 1.7; }
.swatches { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.swatch .info p.virtue { font-size: .62rem; margin: .1rem 0 .6rem; color: var(--silver); }
.lead-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; text-align: center; margin-bottom: 1.6rem; }
.principles .num { font-family: var(--font-label); font-size: .85rem; letter-spacing: .25em; color: var(--silver); display: block; margin-bottom: .6rem; }
.principles p.muted { font-size: .98rem; }
.creed p { font-size: 1.08rem; text-align: center; }
.creed-close { font-family: var(--font-display); font-style: italic; font-size: 1.55rem; line-height: 1.45; color: var(--pearl); margin-top: 2rem; }

/* nav fit with 9 links */
.site-header .wrap { width: min(1320px, 100% - 2.5rem); }
.site-nav { gap: 1.15rem; }
.site-nav a { white-space: nowrap; letter-spacing: .16em; }
@media (max-width: 1365px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #06060a; border-bottom: 1px solid var(--silver-faint);
    padding: .5rem 1.25rem 1.25rem;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .45s var(--ease), opacity .3s, visibility .3s;
  }
  .site-nav.open { max-height: 85vh; opacity: 1; visibility: visible; overflow-y: auto; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--silver-faint); font-size: .8rem; }
  .site-nav a::after { display: none; }
  .site-nav a.nav-cta { margin-top: 1rem; text-align: center; border-bottom: 1px solid var(--silver-line); }
}
.principles { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }


/* =========================================================
   Font assignment: Roman SD (titles) / Black Division (text)
   ========================================================= */
body { font-weight: normal; font-size: 1.2rem; line-height: 1.7; font-synthesis: none; }
h1, h2, h3, h4,
.tarot .card-name, .ranks strong, .footer-brand .name, .sister h3, .officer h3 {
  font-family: var(--font-title); font-weight: normal; letter-spacing: .04em; line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3, .sister h3 { font-size: 1.4rem; }
.officer h3 { font-size: 1.25rem; }
.ranks strong { font-size: 1.25rem; }
.tarot .card-name { font-size: 1.15rem; }
.footer-brand .name { font-size: 1.2rem; }
.hero h1 { letter-spacing: .06em; }

/* Labels, nav & buttons count as titles */
.eyebrow, .site-nav a, .btn, .more, .virtue, .sister .title, .officer .role,
.timeline .date, .hero .est, .footer-bottom .est, .site-footer h4, .ph-label,
.principles .num, .tarot .numeral, .path .virtues, .ranks li::before {
  font-family: var(--font-label); font-weight: normal;
}
.eyebrow { font-size: .8rem; letter-spacing: .22em; }
.site-nav a { font-size: .82rem; letter-spacing: .1em; }
.btn { font-size: .85rem; letter-spacing: .14em; }

/* Black Division has no italic; keep it upright and a touch larger where it was italic */
.italic, .motto, .tagline, .pull, .sayings li, .keywords, .creed-close, .lead-quote,
.motto-block blockquote, .officer.open .holder, .site-footer .pending { font-style: normal; }
.lede { font-size: 1.25rem; }
.sister .meta, .eye-note, .swatch p, .notice { font-size: 1.05rem; }
.swatch .info p.virtue { font-size: .66rem; }
.symbol p.muted, .principles p.muted { font-size: 1.08rem; }
.site-footer ul, .footer-bottom { font-size: 1.05rem; }
.footer-bottom .est { font-size: .8rem; }
.prose p, .creed p { font-size: 1.22rem; }

/* Roman numerals read cleaner in Roman SD than in the blackletter text font */
.numerals { font-family: var(--font-label); font-size: .82em; letter-spacing: .12em; font-style: normal; }

/* =========================================================
   Join form (our own form → Google Form behind the scenes)
   ========================================================= */
.veil-form {
  border-radius: 18px; padding: clamp(1.4rem, 4vw, 2.6rem);
  border: 1px solid var(--silver-line);
  background: linear-gradient(165deg, rgba(22, 33, 74, .55), rgba(6, 6, 10, .75));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
  scroll-margin-top: 90px;
}
.form-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.form-steps li {
  font-family: var(--font-label); font-size: .8rem; letter-spacing: .14em; color: var(--pearl-dim);
  display: flex; align-items: center; gap: .6rem; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--silver-faint); opacity: .6; transition: all .4s var(--ease);
}
.form-steps li span { font-size: .75rem; color: var(--silver); }
.form-steps li.active { opacity: 1; color: var(--pearl); border-color: var(--silver-line); box-shadow: 0 0 18px rgba(122, 155, 255, .2); }
.form-steps li.done { opacity: .9; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
.field { margin: 0 0 1.4rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: .45rem; font-size: 1.1rem; color: var(--pearl); line-height: 1.4; padding: 0; }
.req { color: var(--crimson-soft); margin-left: .15rem; }
.opt { font-family: var(--font-label); font-size: .6rem; letter-spacing: .14em; color: var(--silver); margin-left: .4rem; vertical-align: middle; }

.veil-form input[type="text"], .veil-form input[type="date"], .veil-form select, .veil-form textarea {
  width: 100%; font: inherit; font-size: 1.1rem; color: var(--pearl);
  background: rgba(4, 4, 8, .65); border: 1px solid var(--silver-line); border-radius: 10px;
  padding: .75rem .95rem; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  color-scheme: dark;
}
.veil-form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.veil-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.veil-form select option { background: #0b0b12; color: var(--pearl); }
.veil-form input:focus, .veil-form select:focus, .veil-form textarea:focus {
  outline: none; border-color: #b892ff; box-shadow: 0 0 0 3px rgba(184, 146, 255, .18), 0 0 22px rgba(122, 155, 255, .15);
}
.veil-form ::placeholder { color: rgba(201, 196, 188, .45); }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; cursor: pointer; margin: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: .5rem 1rem; border-radius: 999px; font-size: 1rem;
  border: 1px solid var(--silver-line); background: rgba(4, 4, 8, .5); color: var(--pearl-dim);
  transition: all .3s var(--ease);
}
.chip:hover span { border-color: var(--pearl); color: var(--pearl); }
.chip input:checked + span {
  color: #fff; border-color: transparent;
  background: linear-gradient(#10172f, #10172f) padding-box, var(--aurora) border-box;
  box-shadow: 0 0 16px rgba(184, 146, 255, .3);
}
.chip input:checked + span::before { content: "☾ "; color: #c9d4ff; }
.chip input:focus-visible + span { outline: 1px solid var(--pearl); outline-offset: 3px; }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--crimson-soft); box-shadow: 0 0 0 3px rgba(214, 58, 85, .15); }
.field.invalid label, .field.invalid legend { color: #ff9aac; }
.field-error { color: #ff9aac; font-size: .95rem; margin: .5rem 0 0; }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.form-nav .btn:disabled { opacity: .6; cursor: wait; }
.form-status { color: #ff9aac; text-align: center; margin: 1rem 0 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-done {
  text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; border-radius: 18px;
  border: 1px solid var(--silver-line); background: linear-gradient(165deg, rgba(22, 33, 74, .55), rgba(6, 6, 10, .75));
  animation: fadeUp 1.2s var(--ease);
}
.form-done img { margin: 0 auto 1.2rem; filter: drop-shadow(0 0 12px rgba(180, 200, 255, .6)); }
.form-done:focus { outline: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Artwork & decoration
   ========================================================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Square art at the top of symbol & principle cards (titles are in the art) */
.card-art {
  width: calc(100% + 3.5rem); max-width: none; aspect-ratio: 1; object-fit: cover;
  margin: -2rem -1.75rem 1.4rem; border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--silver-faint);
  transition: filter .6s var(--ease);
}
.card:hover .card-art { filter: brightness(1.08) saturate(1.05); }
/* principle art is shown whole (titles are baked into the bottom of the image) */

/* Tall art at the top of each Path card */
.path-art {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--silver-faint); margin-bottom: 1.6rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}

/* Spider lily bouquets framing the home hero */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero::before, .hero::after {
  content: ""; position: absolute; bottom: -40px; width: clamp(150px, 24vw, 340px); aspect-ratio: 700 / 714;
  background: url("../images/deco/spider-lily-bouquet.webp") center bottom / contain no-repeat;
  opacity: .5; pointer-events: none; z-index: 0;
  filter: drop-shadow(0 0 24px rgba(179, 18, 46, .35));
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 35%);
          mask-image: linear-gradient(to top, transparent 0%, #000 35%);
}
.hero::before { left: -30px; transform: rotate(-6deg); }
.hero::after { right: -30px; transform: scaleX(-1) rotate(-6deg); }
@media (max-width: 700px) { .hero::before, .hero::after { opacity: .3; bottom: -20px; } }

/* A single lily resting on the footer edge (every page) */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: -78px; right: clamp(.5rem, 5vw, 4rem);
  width: clamp(130px, 16vw, 210px); aspect-ratio: 600 / 400;
  background: url("../images/deco/spider-lily.webp") center / contain no-repeat;
  transform: rotate(-8deg); pointer-events: none; opacity: .9;
  filter: drop-shadow(0 6px 18px rgba(179, 18, 46, .4));
}

/* =========================================================
   Night sky extras: aurora glows, tinted stars, shooting stars
   ========================================================= */
#sky .star { background: var(--c, #fff); }
#sky .star.big { box-shadow: 0 0 7px var(--c, #c8d7ff); }

#sky .aurora {
  position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen;
  animation: auroraDrift 26s ease-in-out infinite alternate; will-change: transform;
}
#sky .a1 { width: 75vw; height: 38vh; top: -12vh; left: -15vw; opacity: .30;
  background: linear-gradient(115deg, #7fe0d2, #7a9bff 55%, transparent); }
#sky .a2 { width: 65vw; height: 34vh; top: 4vh; right: -18vw; opacity: .24;
  background: linear-gradient(115deg, #b892ff, #ff9fcf 60%, transparent); animation-duration: 32s; animation-delay: -9s; }
#sky .a3 { width: 80vw; height: 40vh; bottom: -18vh; left: 10vw; opacity: .20;
  background: linear-gradient(115deg, #16214a, #7a9bff 50%, #7fe0d2); animation-duration: 38s; animation-delay: -17s; }
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(-4deg) scale(1); }
  50%  { transform: translate3d(6vw, 3vh, 0) rotate(3deg) scale(1.12); }
  100% { transform: translate3d(-4vw, 5vh, 0) rotate(-2deg) scale(.95); }
}

#sky .shooting-star {
  position: absolute; width: var(--len, 160px); height: 2px; border-radius: 2px;
  transform-origin: right center;
  background: linear-gradient(90deg, transparent, var(--c) 60%, #fff);
  filter: drop-shadow(0 0 6px var(--c));
  animation: shoot var(--t, 1.3s) cubic-bezier(.3, .1, .4, 1) forwards;
  opacity: 0;
}
#sky .shooting-star::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  transform: translateY(-50%); background: #fff;
  box-shadow: 0 0 8px 2px #fff, 0 0 18px 4px var(--c);
}
@keyframes shoot {
  0%   { opacity: 0; transform: rotate(var(--a)) translateX(0); }
  12%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--dist)); }
}

/* Roman SD is naturally wide; Black Division is narrow — balance them */
h1, h2, h3, h4,
.tarot .card-name, .ranks strong, .footer-brand .name, .sister h3, .officer h3 { letter-spacing: .01em; }
body { font-size: 1.25rem; }
.sister .meta, .eye-note, .swatch p, .notice, .site-footer ul, .footer-bottom { font-size: 1.12rem; }
.sister .keywords, .sayings li { font-size: 1.15rem; }
.steps li::before, .numerals { font-family: var(--font-label); }

/* ---------- Header brand: logo pinned left + sorority name ---------- */
.site-header .wrap { width: 100%; max-width: none; padding-inline: clamp(1rem, 2.2vw, 2rem); }
.brand { flex: none; }
.brand-name {
  font-family: var(--font-title); font-size: 1rem; letter-spacing: .08em; white-space: nowrap;
  color: var(--pearl);
}

@media (max-width: 420px)  { .brand-name { font-size: .78rem; letter-spacing: .05em; } .brand img { width: 36px; height: 36px; } }
/* make room for the full name beside the menu */
@media (min-width: 1366px) {
  .site-nav { gap: .95rem; }
  .site-nav a { font-size: .78rem; letter-spacing: .07em; }
  .site-nav a.nav-cta { padding: .42rem .8rem; }
}
@media (min-width: 1366px) and (max-width: 1499px) {
  .brand-name { font-size: .88rem; letter-spacing: .05em; }
  .site-nav { gap: .8rem; }
  .site-nav a { letter-spacing: .05em; }
}

/* ---------- Leadership portraits ---------- */
.officers { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.officer { overflow: hidden; }
.officer-art {
  display: block; width: calc(100% + 2.8rem); max-width: none; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 30%;
  margin: -1.5rem -1.4rem 1.2rem; border-bottom: 1px solid var(--silver-faint);
  transition: transform .8s var(--ease), filter .6s var(--ease);
}
.officer:hover .officer-art { transform: scale(1.04); }
.officer.open .officer-art { filter: saturate(.75) brightness(.8); }
.officer.open:hover .officer-art { filter: saturate(1) brightness(.95); }
.officers { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.officers .officer { flex: 0 1 260px; }
@media (max-width: 600px) { .officers .officer { flex-basis: 100%; } }
.officer .line-name { font-family: var(--font-label); font-size: .95rem; letter-spacing: .06em; color: var(--pearl); margin: -.4rem 0 .6rem; }
.officer .saying { font-size: 1.08rem; line-height: 1.5; color: var(--pearl-dim); margin: 0; }

/* ---------- Recruiting closed banner ---------- */
.form-closed.has-banner .closed-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.closed-banner {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--silver-line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(122, 155, 255, .12);
}
.closed-banner img { width: 100%; height: auto; display: block; }
.closed-cta { text-align: center; margin: 1.6rem 0 0; }
.form-done .closed-cta { margin-top: 1.6rem; }
/* the closed panel lives in the narrow join column; let the banner breathe */
@media (min-width: 900px) { .form-closed.has-banner { margin-inline: -8rem; } }
/* phones: the banner's small print is too tiny, so show the message as text below it */
@media (max-width: 640px) {
  .form-closed.has-banner .closed-text {
    position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    text-align: center; padding: 1.3rem .5rem 0;
  }
  .form-closed.has-banner .closed-text > img,
  .form-closed.has-banner .closed-text h3 { display: none; }
  .form-closed.has-banner .closed-text .eyebrow { margin-top: 1rem !important; }
}

/* =========================================================
   Spider lily crimson accents on titles
   Change --lily to adjust the red everywhere at once.
   ========================================================= */
:root { --lily: #e04a64; --lily-glow: rgba(214, 58, 85, .45); }

/* small labels above titles */
.eyebrow, .officer .role, .sister .title, .timeline .date, .form-steps li span { color: var(--lily); }

/* section headings: pearl text with a soft crimson glow */
h2 { text-shadow: 0 0 22px var(--lily-glow), 0 0 2px rgba(214, 58, 85, .35); }

/* thin crimson underline on the active menu item, labels on step numbers */
.site-nav a[aria-current="page"]::after { background: linear-gradient(90deg, var(--lily), #b892ff); }
.steps li::before, .ranks li::before, .principles .num { color: var(--lily); }

/* =========================================================
   Page banners (art behind each page's title)
   ========================================================= */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(420px, 46vw, 720px);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 0;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hero-bg) center 30% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
/* wide 3:1 banners get a shorter hero so their sides aren't cropped */
.page-history .page-hero, .page-contact .page-hero { min-height: clamp(340px, 33.4vw, 640px); }
.page-history .page-hero::before, .page-contact .page-hero::before { background-position: center; }

.page-history    { --hero-bg: url("../images/bg/history.jpg"); }
.page-creed      { --hero-bg: url("../images/bg/creed.jpg"); }
.page-lore       { --hero-bg: url("../images/bg/lore.jpg"); }
.page-paths      { --hero-bg: url("../images/bg/paths.jpg"); }
.page-arcana     { --hero-bg: url("../images/bg/arcana.jpg"); }
.page-leadership { --hero-bg: url("../images/bg/council.jpg"); }
.page-join       { --hero-bg: url("../images/bg/join.jpg"); }
.page-contact    { --hero-bg: url("../images/bg/contact.jpg"); }

.page-hero h1, .page-hero .lede, .page-hero .eyebrow { text-shadow: 0 2px 14px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8); }
.page-hero .lede { color: var(--pearl); }

/* Home: the sigil sits inside the round portal frame */
.hero { grid-template-rows: auto auto; align-content: center; gap: .5rem; }
.hero-portal {
  position: relative; width: min(1500px, 100vw); aspect-ratio: 3 / 1;
  background: url("../images/bg/portal.jpg") center / contain no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.portal-sigil {
  position: absolute; left: 50%; top: 48.8%; width: 17%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 40px rgba(122, 155, 255, .35), 0 0 90px rgba(184, 146, 255, .18);
}
.hero .hero-sigil { display: none; }
@media (max-width: 700px) {
  .hero-portal { aspect-ratio: 2 / 1; background-size: cover; -webkit-mask-image: none; mask-image: none; }
  .portal-sigil { width: 25.5%; }   /* = 17% of the image, which is 1.5x the box width here */
}

/* =========================================================
   FULL-PAGE BACKGROUNDS — each page's art stays fixed behind
   everything while you scroll. Swap a page's art by replacing
   its file in images/bg/ (same name; .png works too).
   ========================================================= */
body::before {
  background:
    radial-gradient(ellipse 60% 70% at 50% 55%, rgba(3, 4, 10, .55), rgba(3, 4, 10, .15) 70%, transparent),
    var(--page-bg, none) center top / cover no-repeat,
    #06060a;
}
.page-index      { --page-bg: url("../images/bg/home.jpg"); }
.page-history    { --page-bg: url("../images/bg/history.jpg"); }
.page-creed      { --page-bg: url("../images/bg/creed.jpg"); }
.page-lore       { --page-bg: url("../images/bg/lore.jpg"); }
.page-paths      { --page-bg: url("../images/bg/paths.jpg"); }
.page-arcana     { --page-bg: url("../images/bg/arcana.jpg"); }
.page-leadership { --page-bg: url("../images/bg/council.jpg"); }
.page-join       { --page-bg: url("../images/bg/join.jpg"); }
.page-contact    { --page-bg: url("../images/bg/contact.jpg"); }

/* banners at the top are no longer needed: the whole page is the art */
.page-hero::before { display: none; }
.page-hero { min-height: clamp(320px, 32vw, 520px); }
.page-history .page-hero, .page-contact .page-hero { min-height: clamp(320px, 32vw, 520px); }

/* let the art show through the sections */
.band { background: rgba(4, 4, 10, .28); border-color: rgba(190, 198, 214, .08); }
#sky .aurora { opacity: .1 !important; }
.hero::before, .hero::after { display: none; }   /* frames already have lilies */

/* text sitting straight on the art gets a soft shadow so it stays readable */
.prose p, .section-head p, .creed p, .lede, .muted, .tagline, .motto, .sayings li, .lead-quote {
  text-shadow: 0 1px 10px rgba(0, 0, 0, .85);
}
/* Home logo: bigger, glow follows the logo's shape instead of a circle */
.portal-sigil {
  width: 30%;                       /* logo size: raise for bigger, lower for smaller */
  box-shadow: none;                 /* removes the round ring */
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(122, 155, 255, .35));  /* soft glow hugging the emblem */
}
@media (max-width: 700px) {
  .portal-sigil { width: 36%; }     /* logo size on phones */
}
/* ---------- Quiz invitations (Paths + Arcana pages) ---------- */
.quiz-invite-wrap { padding-top: 0; }
.quiz-invite {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0;
  max-width: 980px; margin: 0 auto; text-decoration: none; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--silver-line);
  background: linear-gradient(160deg, rgba(22, 33, 74, .7), rgba(6, 6, 10, .8));
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.quiz-invite:hover { transform: translateY(-4px); border-color: rgba(214, 58, 85, .55); box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 40px rgba(214,58,85,.18); }
.quiz-invite-art { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.quiz-invite-text { padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center; }
.quiz-invite-text h2 { margin-bottom: .4em; }
.quiz-invite-text .btn { margin-top: .6rem; }
/* no art yet: the text panel fills the card */
.quiz-invite.no-art { grid-template-columns: 1fr; max-width: 680px; }
@media (max-width: 760px) { .quiz-invite { grid-template-columns: 1fr; } .quiz-invite-art { min-height: 0; aspect-ratio: 16 / 9; } }

/* Quiz invites as full banners (title + button are part of the art) */
.quiz-invite.banner { display: block; max-width: 1100px; background: none; }
.quiz-invite.banner .quiz-invite-art { min-height: 0; height: auto; aspect-ratio: auto; }
.quiz-invite.banner .quiz-invite-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
/* if the banner image is missing, fall back to the text panel */
.quiz-invite.banner.no-art .quiz-invite-text { position: static !important; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; padding: clamp(1.6rem, 4vw, 2.6rem); }
.quiz-invite.banner.no-art { background: linear-gradient(160deg, rgba(22, 33, 74, .7), rgba(6, 6, 10, .8)); }

/* ---------- Contact page image buttons ---------- */
.contact-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 980px; margin: 0 auto; }
@media (max-width: 700px) { .contact-buttons { grid-template-columns: 1fr; } }
.contact-btn { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--silver-line);
  box-shadow: 0 20px 44px rgba(0,0,0,.5); cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.contact-btn img { width: 100%; height: auto; display: block; }
.contact-btn:hover { transform: translateY(-4px); border-color: rgba(214, 58, 85, .55);
  box-shadow: 0 28px 56px rgba(0,0,0,.55), 0 0 36px rgba(214, 58, 85, .2); }
.contact-btn.soon { cursor: default; }
.contact-btn.soon:hover { transform: none; }
.note-wrap { max-width: 820px; margin: 0 auto; }

/* ---------- Framed forms (Join + Contact) ----------
   border-image keeps the ornate corners crisp at any form size. */
.veil-form, .form-done {
  background: none; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  border-style: solid; border-radius: 0;
  border-width: clamp(46px, 7vw, 78px);
  border-image: url("../images/site/form-frame-tall.jpg") 260 fill / clamp(46px, 7vw, 78px) stretch;
  padding: clamp(.4rem, 2vw, 1.4rem);
}
.note-form, .note-wrap .form-done {
  border-image-source: url("../images/site/form-frame-wide.jpg");
  border-image-slice: 230 fill;
}
