/* Zodiac Lodge No. 2615 — homepage */

:root {
    --bg: #05070f;
    --bg-2: #0a0f1f;
    --ink: #e8e4d8;
    --ink-dim: #a9a6b8;
    --ink-faint: #6b6a80;
    --gold: #d4af6a;
    --gold-bright: #f1d9a0;
    --gold-dim: rgba(212, 175, 106, 0.35);
    --line: rgba(212, 175, 106, 0.18);
    --card: rgba(14, 19, 38, 0.55);
    --serif-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --serif-body: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --gutter: clamp(16px, 4vw, 48px);
    --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--serif-body);
    font-size: clamp(18px, 1.15vw + 12px, 21px);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--gold); color: var(--bg); }

/* ---------- Sky ---------- */

#sky {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nebula {
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 40% 30% at 20% 25%, rgba(70, 60, 140, 0.22), transparent 70%),
        radial-gradient(ellipse 35% 28% at 80% 70%, rgba(30, 80, 130, 0.18), transparent 70%),
        radial-gradient(ellipse 30% 22% at 65% 15%, rgba(140, 100, 60, 0.10), transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(20, 30, 70, 0.6), transparent 70%);
    animation: drift 60s ease-in-out infinite alternate;
}

@keyframes drift {
    to { transform: translate3d(3%, -2%, 0) scale(1.05); }
}

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

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--gutter);
    transition: background 0.4s, padding 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
    background: rgba(5, 7, 15, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--serif-display);
    font-size: 15px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.nav__brand em { font-style: normal; color: var(--gold); opacity: 0.7; }

.nav__mark { width: 30px; height: 30px; color: var(--gold); }

.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }

.nav__links a {
    font-family: var(--serif-display);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink-dim);
    position: relative;
    padding: 6px 0;
    transition: color 0.3s;
}

.nav__links a::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    transition: left 0.3s, right 0.3s;
}

.nav__links a:hover { color: var(--gold-bright); }
.nav__links a:hover::after { left: 0; right: 0; }

.nav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.nav__toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 1px;
    background: var(--gold);
    transition: transform 0.3s, top 0.3s;
}

.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 22px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

@media (max-width: 760px) {
    .nav__toggle { display: block; }
    .nav__links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        z-index: -1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        background: rgba(5, 7, 15, 0.96);
        backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s, visibility 0.35s;
    }
    .nav__links.is-open { opacity: 1; visibility: visible; }
    .nav__links a { font-size: 16px; }
}

/* ---------- Shared ---------- */

.eyebrow {
    margin: 0 0 14px;
    font-family: var(--serif-display);
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
}

h1, h2, h3 {
    font-family: var(--serif-display);
    font-weight: 500;
    letter-spacing: 0.06em;
    margin: 0;
    color: var(--ink);
}

h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
    margin-bottom: 24px;
}

h3 { font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase; }

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(280px, 70%);
    margin: 24px auto;
    color: var(--gold);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.divider::after { background: linear-gradient(-90deg, transparent, var(--gold-dim)); }

.btn {
    display: inline-block;
    padding: 15px 34px;
    font-family: var(--serif-display);
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gold);
    transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.35s;
}

.btn--gold {
    background: linear-gradient(135deg, #e6c886, #b98f45);
    color: #120e05;
    border-color: transparent;
}

.btn--gold:hover {
    box-shadow: 0 0 32px rgba(212, 175, 106, 0.45);
    transform: translateY(-2px);
}

.btn--ghost { color: var(--gold-bright); background: rgba(5, 7, 15, 0.4); }
.btn--ghost:hover { background: rgba(212, 175, 106, 0.12); transform: translateY(-2px); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 1px solid var(--gold-bright);
    outline-offset: 4px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 120px var(--gutter) 100px;
    text-align: center;
    overflow: hidden;
}

.hero__wheel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(880px, 140vw);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    opacity: 0.55;
    pointer-events: none;
}

.wheel { width: 100%; height: 100%; animation: spin 240s linear infinite; }

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

.wheel__ring { fill: none; stroke: var(--line); stroke-width: 1; }
.wheel__ring--thin { stroke: rgba(212, 175, 106, 0.1); }
.wheel__ticks line { stroke: rgba(212, 175, 106, 0.22); stroke-width: 1; }
.wheel__glyphs text {
    fill: var(--gold);
    font-size: 26px;
    opacity: 0.75;
    font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', serif;
}
.wheel__motto {
    fill: rgba(212, 175, 106, 0.45);
    font-family: var(--serif-display);
    font-size: 13px;
    letter-spacing: 6px;
}

.hero__content { position: relative; max-width: 760px; }

.hero__emblem {
    width: clamp(72px, 9vw, 104px);
    height: auto;
    color: var(--gold);
    filter: drop-shadow(0 0 18px rgba(212, 175, 106, 0.45));
    margin-bottom: 18px;
    animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
    50% { filter: drop-shadow(0 0 30px rgba(241, 217, 160, 0.7)); }
}

.hero__title { display: flex; flex-direction: column; align-items: center; line-height: 1; }

.hero__name {
    font-size: clamp(46px, 9vw, 108px);
    font-weight: 600;
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, #fff6df 0%, var(--gold-bright) 40%, #b98f45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(212, 175, 106, 0.18);
}

.hero__number {
    margin-top: 14px;
    font-size: clamp(18px, 2.4vw, 28px);
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    color: var(--gold);
}

.hero__founded {
    margin: 0;
    font-family: var(--serif-display);
    font-size: 14px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.hero__lede {
    margin: 22px auto 40px;
    max-width: 560px;
    font-size: clamp(20px, 2vw, 24px);
    font-style: italic;
    color: var(--ink-dim);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    width: 24px;
    height: 40px;
    margin-left: -12px;
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
}

.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 2px;
    height: 8px;
    margin-left: -1px;
    background: var(--gold);
    border-radius: 2px;
    animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* Hero entrance */
.hero__content > * { opacity: 0; transform: translateY(16px); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero__content > *:nth-child(1) { animation-delay: 0.2s; }
.hero__content > *:nth-child(2) { animation-delay: 0.45s; }
.hero__content > *:nth-child(3) { animation-delay: 0.6s; }
.hero__content > *:nth-child(4) { animation-delay: 0.8s; }
.hero__content > *:nth-child(5) { animation-delay: 0.95s; }
.hero__content > *:nth-child(6) { animation-delay: 1.1s; }
.hero__content > *:nth-child(7) { animation-delay: 1.25s; }

.hero__content > .hero__emblem { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) 0.2s forwards, glow 6s ease-in-out 1.3s infinite; }

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

/* ---------- Band ---------- */

.band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--max);
    margin: 0 auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, transparent, rgba(14, 19, 38, 0.6), transparent);
}

.band__item {
    padding: 36px 16px;
    text-align: center;
    position: relative;
}

.band__item + .band__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 28%;
    bottom: 28%;
    width: 1px;
    background: var(--line);
}

.band__num {
    display: block;
    font-family: var(--serif-display);
    font-size: clamp(28px, 3.4vw, 42px);
    color: var(--gold-bright);
    letter-spacing: 0.06em;
}

.band__label {
    display: block;
    margin-top: 6px;
    font-family: var(--serif-display);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

@media (max-width: 760px) {
    .band { grid-template-columns: repeat(2, 1fr); margin: 0 16px; }
    .band__item:nth-child(3)::before { display: none; }
    .band__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 12vw, 150px) var(--gutter); }

.section__inner { max-width: var(--max); margin: 0 auto; }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 60px; }

.section__sub { color: var(--ink-dim); font-style: italic; margin: 0; }

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 7vw, 100px);
    align-items: center;
}

.split__text p { color: var(--ink-dim); margin: 0 0 20px; }
.split__text strong { color: var(--gold-bright); font-weight: 600; }

.split__art { margin: 0; text-align: center; }

.split__art figcaption {
    margin-top: 16px;
    font-family: var(--serif-display);
    font-size: 12px;
    letter-spacing: 0.4em;
    color: var(--ink-faint);
}

.constellation-art {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(40, 50, 100, 0.35), transparent 70%);
}

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split__art { order: -1; }
    .constellation-art { max-width: 280px; }
}

/* ---------- Cards ---------- */

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

.card {
    position: relative;
    padding: 44px 32px 38px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    backdrop-filter: blur(4px);
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--gold);
    border-style: solid;
    opacity: 0.6;
}

.card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-dim);
    box-shadow: 0 20px 50px -20px rgba(212, 175, 106, 0.25);
}

.card__icon { width: 56px; height: 56px; margin: 0 auto 22px; }

.card__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 { margin-bottom: 14px; color: var(--gold-bright); }
.card p { margin: 0; color: var(--ink-dim); }

@media (max-width: 860px) {
    .cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ---------- Signs ---------- */

.signs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.sign {
    position: relative;
    background: var(--bg-2);
    padding: 22px 12px 18px;
    text-align: center;
    overflow: hidden;
    cursor: default;
    transition: background 0.4s;
}

.sign:hover,
.sign:focus-within { background: #10172e; }

.sign svg {
    display: block;
    width: 100%;
    max-width: 120px;
    aspect-ratio: 1;
    margin: 0 auto 8px;
}

.sign line {
    stroke: var(--gold);
    stroke-width: 0.8;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    opacity: 0.25;
    transition: stroke-dashoffset 1.2s ease, opacity 0.6s;
}

.sign circle { fill: var(--ink); opacity: 0.6; transition: opacity 0.4s, fill 0.4s; }

.sign:hover line,
.sign:focus-within line { stroke-dashoffset: 0; opacity: 0.8; }

.sign:hover circle { fill: var(--gold-bright); opacity: 1; }

.sign__glyph {
    display: block;
    font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', serif;
    font-size: 22px;
    color: var(--gold);
    line-height: 1;
}

.sign__name {
    display: block;
    margin-top: 8px;
    font-family: var(--serif-display);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink);
}

.sign__dates {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-style: italic;
    color: var(--ink-faint);
}

@media (max-width: 960px) { .signs { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .signs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA ---------- */

.section--cta { padding-top: 40px; }

.cta {
    position: relative;
    max-width: 780px;
    text-align: center;
    padding: clamp(56px, 8vw, 90px) clamp(24px, 6vw, 72px);
    border: 1px solid var(--line);
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 106, 0.1), transparent 60%), var(--card);
}

.cta p:not(.eyebrow) { color: var(--ink-dim); margin: 0 0 36px; }

.cta__star {
    width: 36px;
    height: 36px;
    fill: var(--gold);
    margin-bottom: 18px;
    filter: drop-shadow(0 0 12px rgba(241, 217, 160, 0.7));
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    50% { opacity: 0.55; transform: scale(0.88) rotate(18deg); }
}

/* ---------- Footer ---------- */

.footer {
    text-align: center;
    padding: 70px var(--gutter) 50px;
    border-top: 1px solid var(--line);
    background: linear-gradient(transparent, rgba(5, 7, 15, 0.9));
}

.footer__mark { width: 44px; height: 44px; color: var(--gold); opacity: 0.8; }

.footer__name {
    margin: 14px 0 4px;
    font-family: var(--serif-display);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.footer__meta { margin: 0; color: var(--ink-faint); font-style: italic; }

.footer__copy {
    margin: 28px 0 0;
    font-size: 14px;
    color: var(--ink-faint);
    opacity: 0.7;
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

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