/* ═══════════════════════════════════════════
   RITUAL WORLD — Global Stylesheet
   Aesthetic: Sutera-minimal × Cyber Sigilism
═══════════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
    font-family: 'Gambarino';
    src: url('font/Gambarino/Gambarino-Regular.woff2') format('woff2'),
         url('font/Gambarino/Gambarino-Regular.woff')  format('woff'),
         url('font/Gambarino/Gambarino-Regular.ttf')   format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Saint';
    src: url('saint.otf') format('opentype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Kinky';
    src: url('KINKY.otf') format('opentype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'RX100';
    src: url('font/RX100_Complete/Fonts/WEB/fonts/RX100-Regular.woff2') format('woff2'),
         url('font/RX100_Complete/Fonts/WEB/fonts/RX100-Regular.woff')  format('woff'),
         url('font/RX100_Complete/Fonts/WEB/fonts/RX100-Regular.ttf')   format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* ── Variables ── */
:root {
    --black:         #070710;
    --off-black:     #0a0a18;
    --surface:       #0d0d1a;
    --rule:          rgba(255,255,255,0.08);
    --rule-bright:   rgba(255,255,255,0.18);
    --cream:         #f0ece4;
    --dim:           rgba(240,236,228,0.65);
    --dimmer:        rgba(240,236,228,0.38);
    --chrome-primary: #c0c0c0;
    --chrome-light:  #e8e8e8;
    --chrome-dark:   #808080;
    --chrome-darker: #505050;
    --bg-dark:       #080808;
    --text-light:    #f0ece4;
    --text-chrome:   #b8b4ac;
    --accent-cyan:   #a0c8d0;
    --purple-light:  #c084fc;
    --purple-medium: #a855f7;
    --pink-light:    #f9a8d4;
    --pink-medium:   #ec4899;

    /* ── Liquid glass tokens ── */
    --glass-blur: 20px;
    --glass-sat: 180%;
    --glass-fill:        linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.03) 55%);
    --glass-fill-strong: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.07) 60%);
    --glass-edge:
        inset 0 1px 1px rgba(255,255,255,0.40),
        inset 1px 0 1px rgba(255,255,255,0.12),
        inset 0 -1px 1px rgba(255,255,255,0.07),
        0 14px 36px rgba(0,0,0,0.5);
    --glass-edge-soft:
        inset 0 1px 1px rgba(255,255,255,0.30),
        inset 0 -1px 1px rgba(255,255,255,0.05),
        0 8px 22px rgba(0,0,0,0.4);
    --glass-r-panel: 20px;
    --glass-r-ctl: 12px;
    --glass-section-blur: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Saint', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.7;
    background: #070710;
    color: var(--text-light);
    overflow-x: hidden;
}

/* ── Space background canvas ── */
#space-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#oracle-portal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(240,236,228,0.28), transparent 0 7%, rgba(192,132,252,0.14) 13%, transparent 34%),
        radial-gradient(ellipse at 50% 50%, rgba(5,5,10,0.12), rgba(0,0,0,0.92) 70%),
        linear-gradient(180deg, rgba(7,7,16,0.2), rgba(0,0,0,0.96));
    mix-blend-mode: screen;
}

#oracle-portal.portal-active {
    visibility: visible;
    animation: oracle-portal-field 1.58s cubic-bezier(.16,1,.3,1) forwards;
}

.oracle-portal-field {
    position: relative;
    width: min(82vmin, 720px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
}

.oracle-portal-ring,
.oracle-portal-core,
.oracle-portal-slit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.oracle-portal-ring {
    inset: 0;
    border: 1px solid rgba(240,236,228,0.24);
    box-shadow:
        inset 0 0 44px rgba(240,236,228,0.09),
        0 0 74px rgba(192,132,252,0.16);
    opacity: 0;
}

.oracle-portal-ring.ring-a {
    animation: oracle-ring-a 1.48s cubic-bezier(.16,1,.3,1) forwards;
}

.oracle-portal-ring.ring-b {
    inset: 13%;
    border-style: dotted;
    border-color: rgba(192,132,252,0.28);
    animation: oracle-ring-b 1.48s cubic-bezier(.16,1,.3,1) 0.08s forwards;
}

.oracle-portal-ring.ring-c {
    inset: 29%;
    border-color: rgba(240,236,228,0.42);
    animation: oracle-ring-c 1.48s cubic-bezier(.16,1,.3,1) 0.16s forwards;
}

.oracle-portal-core {
    width: 32%;
    aspect-ratio: 1;
    background:
        radial-gradient(circle, rgba(255,255,255,0.95) 0 8%, rgba(240,236,228,0.42) 10%, rgba(192,132,252,0.16) 32%, transparent 68%);
    filter: blur(0.3px);
    opacity: 0;
    animation: oracle-core 1.4s ease forwards;
}

.oracle-portal-slit {
    width: 8px;
    height: 112%;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.94), transparent);
    box-shadow:
        0 0 34px rgba(255,255,255,0.72),
        0 0 92px rgba(192,132,252,0.42);
    opacity: 0;
    animation: oracle-slit 1.45s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes oracle-portal-field {
    0% { opacity: 0; backdrop-filter: blur(0); }
    22% { opacity: 1; }
    100% { opacity: 1; backdrop-filter: blur(18px); }
}

@keyframes oracle-ring-a {
    0% { opacity: 0; transform: scale(0.22) rotate(0deg); }
    28% { opacity: 0.88; }
    100% { opacity: 0.2; transform: scale(1.18) rotate(44deg); }
}

@keyframes oracle-ring-b {
    0% { opacity: 0; transform: scale(0.4) rotate(0deg); }
    34% { opacity: 0.72; }
    100% { opacity: 0.32; transform: scale(1.36) rotate(-72deg); }
}

@keyframes oracle-ring-c {
    0% { opacity: 0; transform: scale(0.18) rotate(0deg); }
    42% { opacity: 1; }
    100% { opacity: 0.18; transform: scale(2.5) rotate(118deg); }
}

@keyframes oracle-core {
    0% { opacity: 0; transform: scale(0.16); filter: blur(10px); }
    38% { opacity: 1; filter: blur(0); }
    100% { opacity: 0.92; transform: scale(4.8); filter: blur(18px); }
}

@keyframes oracle-slit {
    0% { opacity: 0; transform: scaleY(0.08) rotate(0deg); }
    24% { opacity: 0.96; }
    100% { opacity: 0.2; transform: scaleY(1.3) rotate(90deg); }
}

/* ── Stage wrapper (perspective tilt removed for performance) ── */
#perspective-stage {
    position: relative;
    z-index: 1;
    overflow: visible;
}

#site-wrapper {
    transform: none;
}

/* ── Typography ── */
h1, h2       { font-family: 'Gambarino', Georgia, serif; font-weight: normal; letter-spacing: 0.03em; margin-bottom: 1rem;
               text-shadow: 0 0 2px rgba(255,255,255,0.9), 0 0 18px rgba(255,255,255,0.12); }
h3, h4, h5, h6 { font-family: 'Saint', monospace; font-weight: normal; letter-spacing: 0.1em; margin-bottom: 0.75rem;
               text-shadow: 0 0 2px rgba(255,255,255,0.75); }
h1 { font-size: 3rem;  line-height: 1.12; }
h2 { font-size: 2.4rem; line-height: 1.2; }
h3 { font-size: 0.7rem; text-transform: uppercase; }
p  { margin-bottom: 1rem; line-height: 1.85; text-shadow: 0 0 2px rgba(255,255,255,0.3); }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; text-shadow: 0 0 2px rgba(255,255,255,0.3); }
a  { color: inherit; }

/* ── Hidden site navigation compass ───────────────────────────── */
body.site-compass-armed {
    cursor: crosshair;
    touch-action: none;
    user-select: none;
}

body.site-compass-armed * {
    cursor: crosshair !important;
}

.site-nav-compass {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    touch-action: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.site-nav-compass.is-open {
    opacity: 1;
    visibility: visible;
}

.site-nav-compass-field {
    position: fixed;
    left: var(--origin-x);
    top: var(--origin-y);
    width: clamp(250px, 78vmin, 390px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.62);
    transition: transform 340ms cubic-bezier(.16,1,.3,1), opacity 160ms ease;
    filter: drop-shadow(0 0 34px rgba(240,236,228,0.14));
    background:
        radial-gradient(circle, rgba(240,236,228,0.24) 0 1px, transparent 2px 6%),
        radial-gradient(circle, rgba(240,236,228,0.14) 0 15%, rgba(192,132,252,0.08) 16% 28%, transparent 29%),
        conic-gradient(from 45deg, transparent 0 12%, rgba(240,236,228,0.16) 13%, transparent 16% 34%, rgba(192,132,252,0.14) 35%, transparent 38% 100%);
}

.site-nav-compass.is-open .site-nav-compass-field {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.site-nav-compass-ring,
.site-nav-compass-ring::before,
.site-nav-compass-ring::after {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.site-nav-compass-ring {
    inset: 0;
    border: 1px solid rgba(240,236,228,0.16);
    box-shadow: inset 0 0 38px rgba(240,236,228,0.06), 0 0 68px rgba(192,132,252,0.16);
    animation: site-compass-orbit 10s linear infinite;
}

.site-nav-compass-ring::before,
.site-nav-compass-ring::after {
    content: "";
}

.site-nav-compass-ring::before {
    inset: 10%;
    border: 1px dotted rgba(240,236,228,0.18);
}

.site-nav-compass-ring::after {
    inset: 23%;
    border: 1px solid rgba(192,132,252,0.12);
}

.site-nav-compass-ring.ring-b {
    inset: 8%;
    border-style: dashed;
    animation-duration: 7s;
    animation-direction: reverse;
}

.site-nav-compass-ring.ring-c {
    inset: 22%;
    border-color: rgba(240,236,228,0.24);
    animation: site-compass-pulse 1.4s ease-in-out infinite;
}

.site-nav-compass-needle,
.site-nav-compass-beam {
    position: fixed;
    left: var(--origin-x);
    top: var(--origin-y);
    transform: rotate(var(--angle));
    transform-origin: 0 50%;
}

.site-nav-compass-needle {
    width: calc(var(--distance) + 44px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(192,132,252,0.64), transparent);
    box-shadow: 0 0 12px rgba(255,255,255,0.66), 0 0 34px rgba(192,132,252,0.38);
}

.site-nav-compass-beam {
    width: var(--distance);
    height: 1px;
    background: linear-gradient(90deg, rgba(240,236,228,0.72), rgba(192,132,252,0.2), transparent);
    box-shadow: 0 0 18px rgba(192,132,252,0.32);
}

.site-nav-compass-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    gap: 3px;
    border: 1px solid rgba(240,236,228,0.32);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-transform: uppercase;
    color: var(--cream);
    background:
        radial-gradient(circle, rgba(240,236,228,0.26), rgba(192,132,252,0.12) 38%, rgba(0,0,0,0.74) 68%),
        linear-gradient(145deg, rgba(255,255,255,0.14), rgba(0,0,0,0.64));
    box-shadow: inset 0 1px rgba(255,255,255,0.36), inset 0 -16px 24px rgba(0,0,0,0.66), 0 0 34px rgba(240,236,228,0.2);
}

.site-nav-compass-core span {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 18px rgba(240,236,228,0.58);
}

.site-nav-compass-core strong {
    color: rgba(192,132,252,0.82);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.24em;
}

.site-nav-compass-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: grid;
    gap: 3px;
    min-width: 104px;
    padding: 12px 11px 9px;
    border: 1px solid rgba(240,236,228,0.18);
    border-radius: 5px;
    color: rgba(240,236,228,0.62);
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%) scale(0.86);
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    background:
        radial-gradient(circle at 50% 0%, rgba(240,236,228,0.12), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.74)),
        linear-gradient(118deg, transparent 0 25%, rgba(240,236,228,0.12) 32%, transparent 42% 100%);
    box-shadow: inset 0 1px rgba(255,255,255,0.16), inset 0 -10px 18px rgba(0,0,0,0.58), 0 0 22px rgba(0,0,0,0.32);
}

.site-nav-compass-node::before,
.site-nav-compass-node::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0.72;
}

.site-nav-compass-node::before {
    inset: -1px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.16), transparent 0 24%),
        conic-gradient(from 28deg, transparent 0 18%, rgba(240,236,228,0.18) 19%, transparent 23% 49%, rgba(192,132,252,0.16) 51%, transparent 56% 100%);
    mix-blend-mode: screen;
}

.site-nav-compass-node::after {
    inset: 4px;
    border: 1px solid rgba(240,236,228,0.14);
    transform: rotate(45deg) scale(0.72);
}

.site-nav-compass-node > * {
    position: relative;
    z-index: 1;
}

.site-nav-compass-node span {
    color: rgba(192,132,252,0.78);
    font-size: 7px;
    letter-spacing: 0.28em;
}

.site-nav-compass-node strong {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.site-nav-compass-node.is-current,
.site-nav-compass-node.is-chosen {
    border-color: rgba(240,236,228,0.6);
    color: var(--cream);
    transform: translate(-50%, -50%) scale(1);
    box-shadow: inset 0 1px rgba(255,255,255,0.34), inset 0 -9px 18px rgba(0,0,0,0.62), 0 0 28px rgba(240,236,228,0.2);
}

.site-nav-compass-node.is-chosen {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.22), rgba(24,28,45,0.86) 44%, rgba(0,0,0,0.78)),
        linear-gradient(118deg, transparent 0 28%, rgba(255,255,255,0.34) 34%, transparent 42% 100%);
}

.site-nav-compass-puck {
    position: fixed;
    left: var(--cursor-x);
    top: var(--cursor-y);
    width: 32px;
    aspect-ratio: 1;
    border: 1px solid rgba(240,236,228,0.54);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.92) 0 7%, rgba(192,132,252,0.3) 9% 28%, rgba(0,0,0,0.18) 30% 100%);
    box-shadow: inset 0 1px rgba(255,255,255,0.58), 0 0 24px rgba(240,236,228,0.36), 0 0 52px rgba(192,132,252,0.28);
}

@keyframes site-compass-orbit {
    to { transform: rotate(360deg); }
}

@keyframes site-compass-pulse {
    0%, 100% { opacity: 0.62; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.03); }
}

@media (max-width: 520px) {
    .site-nav-compass-field {
        width: min(92vmin, 330px);
    }

    .site-nav-compass-core {
        width: 80px;
        height: 80px;
    }

    .site-nav-compass-core span {
        font-size: 12px;
    }

    .site-nav-compass-node {
        min-width: 82px;
        padding: 9px 8px 7px;
    }

    .site-nav-compass-node span {
        font-size: 6px;
    }

    .site-nav-compass-node strong {
        font-size: 9px;
    }
}

/* #hero-pretext removed — particle canvas deleted for performance */
#hero-pretext-REMOVED {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* ── Flee-char spans (section headings) ── */
.flee-char {
    display: inline;
    transition: none;
}

/* ═══════════════════════════════════════════
   SITE WRAPPER (normal scrollable site)
═══════════════════════════════════════════ */
#site-wrapper {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.site-fade-out {
    animation: none;
}
@keyframes fade-out {
    to { opacity: 0; }
}

/* ── Persistent top nav ── */
#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    background: rgba(7,7,16,0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--rule);
}

/* RITUAL WORLD button */
#ritual-world-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 1px solid var(--rule-bright);
    padding: 8px 18px 8px 13px;
    color: var(--cream);
    font-family: 'Kinky', 'Saint', monospace;
    font-size: 10px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.25s, box-shadow 0.25s;
}
#ritual-world-btn:hover {
    border-color: var(--cream);
    box-shadow: 0 0 16px rgba(240,236,228,0.1);
}

.rw-glyph {
    font-size: 13px; opacity: 0.65;
    animation: glyph-pulse 3s ease-in-out infinite;
}
@keyframes glyph-pulse {
    0%,100% { opacity: 0.45; }
    50%     { opacity: 0.9; }
}
.rw-text  { font-family: 'Kinky', monospace; letter-spacing: 0.4em; }
.rw-arrow { font-size: 12px; animation: arr-nudge 2.2s ease-in-out infinite; }
@keyframes arr-nudge {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(3px,-3px); }
}

.nav-wordmark {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 11px;
    letter-spacing: 0.52em;
    text-transform: uppercase;
    color: var(--dimmer);
    position: absolute; left: 50%; transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

/* ── Radio nav button (top-right, mirrors RITUAL WORLD btn) ── */
#radio-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px 8px 13px;
    border: 1px solid rgba(168,85,247,0.45);
    border-radius: 0;
    background: rgba(168,85,247,0.07);
    color: var(--purple-light);
    font-family: 'Kinky', 'Saint', monospace;
    font-size: 10px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
#radio-nav-btn:hover {
    border-color: var(--purple-medium);
    background: rgba(168,85,247,0.16);
    box-shadow: 0 0 18px rgba(168,85,247,0.2);
}

#tickets-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px 8px 13px;
    /* nav is space-between: without this the middle item centers under the wordmark */
    margin-left: auto;
    margin-right: 12px;
    border: 1px solid rgba(240,236,228,0.3);
    background: rgba(240,236,228,0.05);
    color: var(--cream);
    font-family: 'Kinky', 'Saint', monospace;
    font-size: 10px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
#tickets-nav-btn:hover {
    border-color: var(--cream);
    background: rgba(240,236,228,0.12);
    box-shadow: 0 0 18px rgba(240,236,228,0.15);
}
.tickets-nav-glyph { font-size: 12px; }
.tickets-nav-text { font-family: 'Kinky', monospace; letter-spacing: 0.38em; }
@media (max-width: 1100px) {
    #tickets-nav-btn { display: none; }  /* below this the centered wordmark collides; tickets sit right under the hero anyway */
}

.radio-nav-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ff4444;
    flex-shrink: 0;
    animation: radioDot 1.5s ease-in-out infinite;
}
.radio-nav-text { font-family: 'Kinky', monospace; letter-spacing: 0.38em; }
.radio-nav-arrow { font-size: 12px; animation: arr-nudge 2.2s ease-in-out infinite; }

@keyframes radioDot {
    0%,100% { opacity:1; transform:scale(1); }
    50%     { opacity:0.25; transform:scale(0.55); }
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px; /* nav height */
}

/* Grain */
.entry-grain {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 1; opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: grain-anim 1.1s steps(1) infinite;
}
@keyframes grain-anim {
    0%  { background-position:   0   0; }
    20% { background-position: -25px  8px; }
    40% { background-position:  8px -18px; }
    60% { background-position: -12px 26px; }
    80% { background-position:  18px -8px; }
}

/* Hero logo area */
.hero-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    animation: hero-in 1.3s cubic-bezier(.22,1,.36,1) 0.2s both;
}

.hero-logo-wrap:focus-visible {
    outline: 1px solid rgba(240,236,228,0.8);
    outline-offset: 28px;
}

.hero-logo-wrap:hover .logo-ring-outer,
.hero-logo-wrap:focus-visible .logo-ring-outer {
    border-color: rgba(240,236,228,0.34);
    box-shadow: 0 0 80px rgba(192,132,252,0.16), inset 0 0 44px rgba(240,236,228,0.08);
}

.hero-logo-wrap:hover .logo-ring-inner,
.hero-logo-wrap:focus-visible .logo-ring-inner {
    border-color: rgba(192,132,252,0.28);
}
@keyframes hero-in {
    from { opacity:0; transform: translateY(20px); }
    to   { opacity:1; transform: translateY(0); }
}

/* Orbit rings — spin only, logo is static */
.logo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--rule);
    pointer-events: none;
}
.logo-ring-outer {
    width: clamp(320px, 52vmin, 600px);
    height: clamp(320px, 52vmin, 600px);
    animation: ring-spin 36s linear infinite;
}
.logo-ring-inner {
    width: clamp(240px, 40vmin, 460px);
    height: clamp(240px, 40vmin, 460px);
    border-color: rgba(240,236,228,0.04);
    animation: ring-spin 22s linear infinite reverse;
}
@keyframes ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Logo — STATIC, no rotation */
#hero-logo {
    width: clamp(320px, 55vw, 700px);
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    position: relative;
    z-index: 10;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 60px rgba(240,236,228,0.05));
    transition: filter 0.45s ease, transform 0.45s cubic-bezier(.22,1,.36,1);
}

.hero-logo-wrap:hover #hero-logo,
.hero-logo-wrap:focus-visible #hero-logo {
    filter: drop-shadow(0 0 44px rgba(240,236,228,0.22)) drop-shadow(0 0 80px rgba(192,132,252,0.12));
    transform: scale(1.018);
}

/* Horizontal rules */
.hero-rule {
    position: absolute;
    left: 40px; right: 40px;
    height: 1px;
    background: var(--rule);
    z-index: 8; pointer-events: none;
}
.hero-rule-top    { top: 80px; }
.hero-rule-bottom { bottom: 56px; }

/* Column markers */
.hero-col {
    position: absolute;
    top: 96px; bottom: 72px;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    z-index: 8; pointer-events: none;
}
.hero-col-left  { left: 40px; }
.hero-col-right { right: 40px; }
.col-label {
    font-family: 'Saint', monospace;
    font-size: 7px; letter-spacing: 0.38em;
    text-transform: uppercase; color: var(--dimmer);
    writing-mode: vertical-rl; white-space: nowrap;
}
.col-line { flex: 1; width: 1px; background: var(--rule); }

/* Sub-copy */
.hero-sub {
    position: absolute;
    bottom: 66px; left: 50%; transform: translateX(-50%);
    font-family: 'Saint', monospace;
    font-size: 7.5px; letter-spacing: 0.52em;
    text-transform: uppercase; color: var(--dimmer);
    display: flex; align-items: center; gap: 14px;
    white-space: nowrap; pointer-events: none; z-index: 10;
}
.sub-sep { opacity: 0.3; }

/* Bottom bar */
.hero-bottom {
    position: absolute;
    bottom: 18px; left: 40px; right: 40px;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    font-family: 'Saint', monospace;
    font-size: 7px; letter-spacing: 0.34em;
    text-transform: uppercase; color: rgba(240,236,228,0.08);
    pointer-events: none; z-index: 10;
}
.hero-bottom span:nth-child(1) { text-align: left; }
.hero-bottom span:nth-child(2) { text-align: center; }
.hero-bottom span:nth-child(3) { text-align: right; }

/* Scroll hint */
.scroll-hint {
    position: absolute;
    right: 44px; bottom: 120px;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    font-family: 'Saint', monospace;
    font-size: 7px; letter-spacing: 0.42em;
    text-transform: uppercase; color: var(--dimmer);
    z-index: 10;
    animation: scroll-fade 2s ease 1.5s both;
}
@keyframes scroll-fade {
    from { opacity:0; }
    to   { opacity:1; }
}
.scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, var(--rule-bright), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%,100% { opacity:0.3; }
    50%     { opacity:0.9; }
}

/* ═══════════════════════════════════════════
   SITE SECTIONS (scrollable content)
═══════════════════════════════════════════ */
.site-section {
    padding: 100px 0;
    border-top: 1px solid var(--rule);
    background: rgba(7,7,16,0.55);
}
.site-section--ruled { background: rgba(13,13,26,0.72); }

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 80px;
}

.section-label {
    font-family: 'Saint', monospace;
    font-size: 7.5px; letter-spacing: 0.52em;
    text-transform: uppercase; color: var(--dimmer);
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Gambarino', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: normal;
    color: var(--cream);
    margin-bottom: 56px;
    line-height: 1.1;
}

.section-intro {
    font-family: 'Saint', monospace;
    font-size: 13px; line-height: 1.9;
    color: var(--text-chrome);
    margin-bottom: 60px;
    max-width: 600px;
}

/* ── About two-column ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.col-text { color: var(--text-chrome); font-size: 13px; }

.sub-label {
    font-family: 'Saint', monospace;
    font-size: 7.5px; letter-spacing: 0.52em;
    text-transform: uppercase; color: var(--dimmer);
    margin-bottom: 16px;
    display: block;
}

.offer-list {
    list-style: none;
    padding: 0; margin-top: 12px;
}
.offer-list li {
    font-family: 'Saint', monospace;
    font-size: 12px; color: var(--text-chrome);
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
    letter-spacing: 0.04em;
}
.offer-list li:first-child { border-top: 1px solid var(--rule); }

/* ── Instagram swarm ── */
.ig-feed-wrap {
    margin-bottom: 72px;
    padding-bottom: 72px;
    border-bottom: 1px solid var(--rule);
}

#ig-swarm {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.ig-card {
    position: absolute;
    top: 0; left: 0;
    width: 170px;
    height: 170px;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    border: 1px solid rgba(240,236,228,0.08);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

.ig-card:hover,
.ig-card:focus-visible {
    border-color: rgba(240,236,228,0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    z-index: 20;
}

.ig-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    opacity: 0.75;
    transition: opacity 0.25s;
}

.ig-card:hover img { opacity: 1; }

.ig-card-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(7,7,16,0.88);
    color: rgba(240,236,228,0.75);
    font-family: 'Saint', monospace;
    font-size: 9px;
    line-height: 1.5;
    padding: 8px 9px;
    opacity: 0;
    transition: opacity 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ig-card:hover .ig-card-cap { opacity: 1; }

/* Lightbox */
#ig-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7,7,16,0.92);
    backdrop-filter: blur(14px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#ig-lightbox.active { opacity: 1; }

.ig-lb-inner {
    position: relative;
    width: min(90vw, 560px);
    animation: lb-in 0.35s cubic-bezier(.22,1,.36,1) both;
}

@keyframes lb-in {
    from { transform: scale(0.88) translateY(20px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.ig-lb-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 78vh;
    object-fit: contain;
}

.ig-lb-close {
    position: absolute;
    top: -38px; right: 0;
    background: none;
    border: none;
    color: rgba(240,236,228,0.6);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.ig-lb-close:hover { color: var(--fg); }

.ig-lb-cap {
    margin-top: 14px;
    font-family: 'Saint', monospace;
    font-size: 11px;
    line-height: 1.65;
    color: rgba(240,236,228,0.5);
    max-height: 72px;
    overflow: hidden;
}

.ig-lb-link {
    display: inline-block;
    margin-top: 12px;
    font-family: 'Saint', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(240,236,228,0.45);
    text-decoration: none;
    border-bottom: 1px solid rgba(240,236,228,0.18);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.ig-lb-link:hover {
    color: var(--fg);
    border-color: rgba(240,236,228,0.5);
}

.ig-error {
    color: var(--dimmer);
    font-family: 'Saint', monospace;
    font-size: 12px;
    padding: 24px 0;
}

.ig-error a { color: var(--fg); }

/* ── Events ── */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1px;
    border: 1px solid var(--rule);
}

.event-card {
    padding: 40px;
    background: rgba(10,10,24,0.7);
    backdrop-filter: blur(8px);
    transition: background 0.2s;
}
.event-card:hover { background: rgba(18,18,36,0.8); }

.event-no {
    font-family: 'Saint', monospace;
    font-size: 7.5px; letter-spacing: 0.52em;
    color: var(--dimmer); margin-bottom: 20px;
}

.event-title {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 1.35rem; font-weight: normal;
    color: var(--cream); letter-spacing: 0.02em;
    margin-bottom: 16px; text-transform: none;
}

.event-meta {
    font-family: 'Saint', monospace;
    font-size: 10px; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--dim);
    margin-bottom: 20px;
    display: flex; gap: 12px; align-items: center;
}
.meta-sep { opacity: 0.3; }

.event-lineup {
    list-style: none; padding: 0;
}
.event-lineup li {
    font-family: 'Saint', monospace;
    font-size: 12px; color: var(--text-chrome);
    padding: 6px 0;
    border-bottom: 1px solid var(--rule);
}
.event-lineup li:last-child { border-bottom: none; }
.event-lineup em { opacity: 0.45; font-style: normal; }

/* ── Tickets ── */
.tickets-block { margin-bottom: 72px; }

.ticket-card {
    display: flex; flex-direction: column;
    /* anchor + own stacking context so the sigil layers (z:-1) sit above
       the card background but below all content, even on glass-lite */
    position: relative; isolation: isolate;
    overflow: hidden;
}

/* Cybersigilism ornaments */
.ticket-sigil {
    position: absolute; z-index: -1;
    right: -30px; top: 50%;
    width: 270px; height: 270px;
    margin-top: -135px;
    color: var(--cream); opacity: 0.13;
    pointer-events: none;
    transition: opacity 0.4s, filter 0.4s;
}
.ticket-card:hover .ticket-sigil {
    opacity: 0.22;
    filter: drop-shadow(0 0 7px rgba(240,236,228,0.35));
}
/* vary sigil orientation card-to-card so the mark never repeats exactly */
.ticket-card:nth-child(2) .ticket-sigil { transform: scaleX(-1); }
.ticket-card:nth-child(3) .ticket-sigil { transform: scale(-1, -1); }
.ticket-card:nth-child(4) .ticket-sigil { transform: scaleY(-1); }

/* Featured full pass — spans the whole grid row */
.ticket-card--pass { grid-column: 1 / -1; }
.pass-desc {
    font-family: 'Saint', monospace;
    font-size: 11px; color: var(--text-chrome);
    letter-spacing: 0.06em; line-height: 1.7;
}

/* Lineup names as Saint display type — runsheet layout */
.ticket-card .event-lineup li {
    display: flex; justify-content: space-between;
    align-items: baseline; gap: 12px;
    font-family: 'Saint', monospace;
    font-size: 14px; color: var(--cream);
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 9px 0;
}
.ticket-card .event-lineup em {
    font-size: 9px; letter-spacing: 0.2em;
    color: var(--text-chrome); opacity: 0.8;
    white-space: nowrap;
}
.ticket-barb {
    position: absolute; z-index: -1;
    width: 44px; height: 44px;
    color: var(--cream); opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.4s;
}
.ticket-barb--tl { top: 12px; left: 12px; }
.ticket-barb--br { right: 12px; bottom: 12px; transform: rotate(180deg); }
.ticket-card:hover .ticket-barb { opacity: 0.55; }

.ticket-price-row {
    display: flex; align-items: baseline; gap: 12px;
    margin-top: 24px; padding-top: 18px;
    border-top: 1px solid var(--rule);
}
.ticket-price {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 1.15rem; color: var(--cream);
}
.ticket-price-note {
    font-family: 'Saint', monospace;
    font-size: 9px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--dimmer);
}

.ticket-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
/* Buy buttons stay hidden until the checkout script validates their link */
.ticket-actions .shop-btn:not([href]) { display: none; }

.ticket-pending {
    font-family: 'Saint', monospace;
    font-size: 9px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--dim);
    margin-top: 16px;
}

.ticket-soldout {
    display: none;
    font-family: 'Saint', monospace;
    font-size: 9px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--dim);
    border: 1px solid var(--rule);
    padding: 10px 14px;
    margin-top: 16px;
    align-self: flex-start;
}
.ticket--soldout .ticket-soldout { display: inline-block; }
.ticket--soldout .ticket-actions,
.ticket--soldout .ticket-pending { display: none; }

.ticket-trust {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 20px; padding: 18px 20px;
    border: 1px solid var(--rule);
    background: rgba(10,10,24,0.5);
}
.ticket-trust-methods {
    font-family: 'Saint', monospace;
    font-size: 9px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--text-chrome);
}
.ticket-trust-note {
    font-family: 'Saint', monospace;
    font-size: 10px; color: var(--dim);
    letter-spacing: 0.06em; line-height: 1.7;
}

.ticket-terms {
    margin-top: 14px;
    border: 1px solid var(--rule);
    background: rgba(10,10,24,0.5);
}
.ticket-terms summary {
    font-family: 'Saint', monospace;
    font-size: 9px; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--text-chrome);
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}
.ticket-terms summary::-webkit-details-marker { display: none; }
.ticket-terms summary::before {
    content: '+'; display: inline-block;
    margin-right: 12px; color: var(--dimmer);
}
.ticket-terms[open] summary::before { content: '−'; }
.ticket-terms summary:hover { color: var(--cream); }
.ticket-terms-body { padding: 4px 20px 20px; }
.ticket-terms-body .sub-label { margin: 16px 0 8px; }
.ticket-terms-body ol {
    margin: 0; padding-left: 18px;
}
.ticket-terms-body li {
    font-family: 'Saint', monospace;
    font-size: 11px; color: var(--text-chrome);
    letter-spacing: 0.04em; line-height: 1.75;
    padding: 4px 0;
}
.ticket-terms-body a { color: var(--cream); }

/* ── Shop / Ritual Cafe ── */
.shop-block { margin-bottom: 72px; }

.shop-block-title {
    font-family: 'Saint', monospace;
    font-size: 7.5px; letter-spacing: 0.52em;
    text-transform: uppercase; color: var(--dimmer);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1px;
    border: 1px solid var(--rule);
}
.shop-grid--wide {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.shop-card {
    padding: 32px 28px;
    background: rgba(10,10,24,0.68);
    backdrop-filter: blur(8px);
    display: flex; flex-direction: column; gap: 12px;
    transition: background 0.2s;
}
.shop-card:hover { background: rgba(18,18,36,0.82); }
.shop-card--wide { padding: 36px 36px; }

.shop-card-tag {
    font-family: 'Saint', monospace;
    font-size: 7px; letter-spacing: 0.5em;
    text-transform: uppercase; color: var(--dimmer);
}

.shop-card-name {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 1.05rem; color: var(--cream);
    letter-spacing: 0.02em; line-height: 1.3;
}

.shop-card-detail {
    font-family: 'Saint', monospace;
    font-size: 11px; color: var(--text-chrome);
    letter-spacing: 0.06em;
}

.shop-card-price {
    display: flex; align-items: baseline; gap: 10px;
    margin-top: auto; padding-top: 8px;
}
.price-current {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 1.1rem; color: var(--cream);
}
.price-was {
    font-family: 'Saint', monospace;
    font-size: 10px; color: var(--dimmer);
    text-decoration: line-through;
    letter-spacing: 0.1em;
}

.shop-btn {
    display: inline-block;
    font-family: 'Saint', monospace;
    font-size: 8px; letter-spacing: 0.42em;
    text-transform: uppercase; color: var(--cream);
    border: 1px solid var(--rule-bright);
    padding: 11px 20px;
    text-decoration: none;
    margin-top: 4px;
    cursor: pointer;
    transition: border-color 0.22s, box-shadow 0.22s;
    background: transparent;
    align-self: flex-start;
}
.shop-btn:hover {
    border-color: var(--cream);
    box-shadow: 0 0 14px rgba(240,236,228,0.08);
}

/* ── Print service ── */
.print-service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    border: 1px solid var(--rule);
    padding: 48px;
    background: rgba(10,10,24,0.68);
    backdrop-filter: blur(8px);
}
.print-service-text, .print-service-cta {
    font-family: 'Saint', monospace;
    font-size: 13px; color: var(--text-chrome);
}
.print-service-cta p { margin-bottom: 20px; }

/* ── 3D Print Calculator ── */
.print-calc {
    font-family: 'Saint', monospace;
    color: var(--text-chrome);
}

.calc-note {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--dimmer);
    margin-bottom: 28px;
    line-height: 1.7;
}

.calc-row {
    margin-bottom: 18px;
}

.calc-row label {
    display: block;
    font-size: 7.5px;
    letter-spacing: 0.48em;
    text-transform: uppercase;
    color: var(--dimmer);
    margin-bottom: 8px;
}

.calc-dims {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-dims input {
    font-family: 'Saint', monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    background: transparent;
    border: 1px solid var(--rule-bright);
    padding: 10px 12px;
    color: var(--cream);
    width: 72px;
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}
.calc-dims input::-webkit-outer-spin-button,
.calc-dims input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-dims input:focus { border-color: var(--cream); }

.dim-sep {
    font-size: 11px;
    color: var(--dimmer);
}

.calc-select-wrap select {
    font-family: 'Saint', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    background: rgba(7,7,16,0.8);
    border: 1px solid var(--rule-bright);
    padding: 10px 14px;
    color: var(--cream);
    width: 100%;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.calc-select-wrap select:focus { border-color: var(--cream); }

.calc-btn {
    font-family: 'Saint', monospace;
    font-size: 8.5px;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--rule-bright);
    color: var(--cream);
    padding: 13px 28px;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    transition: border-color 0.22s, box-shadow 0.22s;
}
.calc-btn:hover {
    border-color: var(--cream);
    box-shadow: 0 0 16px rgba(240,236,228,0.08);
}

.calc-result {
    margin-top: 28px;
    border-top: 1px solid var(--rule);
    padding-top: 24px;
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-chrome);
}

.calc-result-total {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 1.1rem;
    color: var(--cream);
    border-bottom: none;
    padding-top: 14px;
}

.calc-disclaimer {
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--dimmer);
    margin-top: 14px;
    line-height: 1.7;
    font-style: italic;
}

/* ── Contact grid ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--rule);
}
.contact-block {
    padding: 44px 40px;
    background: rgba(10,10,24,0.68);
    backdrop-filter: blur(8px);
    display: flex; flex-direction: column; gap: 10px;
    font-family: 'Saint', monospace;
    font-size: 13px; color: var(--text-chrome);
}
.contact-block a { color: var(--text-chrome); text-decoration: none; transition: color 0.2s; }
.contact-block a:hover { color: var(--cream); }
.contact-block .shop-btn { margin-top: 12px; }

/* ── Site footer ── */
#site-footer {
    border-top: 1px solid var(--rule);
    padding: 36px 0;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-mark {
    font-family: 'Saint', monospace;
    font-size: 7.5px; letter-spacing: 0.38em;
    text-transform: uppercase; color: var(--dimmer);
}
.footer-links {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Saint', monospace;
    font-size: 8px; letter-spacing: 0.3em;
    text-transform: uppercase;
}
.footer-links a { color: var(--dimmer); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }

/* ═══════════════════════════════════════════
   LOADING SCREEN
═══════════════════════════════════════════ */
#loading-screen {
    position: fixed; inset: 0;
    background: var(--black);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 999;
}
.loader-wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.loader-sigil {
    font-family: 'Kinky', monospace;
    font-size: 34px; color: var(--cream); opacity: 0.4;
    animation: sigil-spin 4s linear infinite;
}
@keyframes sigil-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.loader-bar {
    width: 180px; height: 1px;
    background: var(--rule); position: relative; overflow: hidden;
}
.loader-bar-fill {
    position: absolute; top:0; left:-60%; width:60%; height:100%;
    background: linear-gradient(90deg, transparent, var(--cream), transparent);
    animation: bar-sweep 1.8s ease-in-out infinite;
}
@keyframes bar-sweep { from{left:-60%} to{left:110%} }
.loader-label {
    font-family: 'Saint', monospace;
    font-size: 8.5px; letter-spacing: 0.42em;
    text-transform: uppercase; color: var(--dimmer); margin: 0;
}

/* ═══════════════════════════════════════════
   MAIN 3D SCENE
═══════════════════════════════════════════ */
#scene-container {
    width: 100%; height: 100vh; position: relative;
}
#ritual-canvas { display: block; width: 100%; height: 100%; }

/* Instructions — TRANSPARENT, text only */
#instructions {
    position: fixed;
    bottom: 68px; left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    padding: 10px 24px;
    font-family: 'Saint', monospace;
    font-size: 8px; letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(240,236,228,0.22);
    text-align: center;
    z-index: 90;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* Interaction Hint */
#interaction-hint {
    position: fixed; top:50%; left:50%;
    transform: translate(-50%,-50%);
    background: rgba(8,8,8,0.88);
    border: 1px solid var(--rule-bright);
    padding: 16px 32px;
    z-index: 95; pointer-events: none;
    backdrop-filter: blur(12px);
    animation: hint-pulse 1.1s ease-in-out infinite alternate;
}
@keyframes hint-pulse {
    from { box-shadow: 0 0 0 rgba(240,236,228,0.06); }
    to   { box-shadow: 0 0 20px rgba(240,236,228,0.12); }
}
#hint-text {
    font-family: 'Saint', monospace;
    font-size: 8.5px; letter-spacing: 0.42em;
    text-transform: uppercase; color: var(--dim); margin: 0;
}

/* ═══════════════════════════════════════════
   INFO PANELS
═══════════════════════════════════════════ */
.info-panel {
    position: absolute; top:50%; left:50%;
    transform: translate(-50%,-50%);
    background: rgba(10,10,10,0.96);
    border: 1px solid var(--rule-bright);
    padding: 44px 52px;
    max-width: 660px; width: 92vw;
    max-height: 82vh; overflow-y: auto;
    z-index: 100; backdrop-filter: blur(24px);
    animation: panel-in 0.35s cubic-bezier(.22,1,.36,1);
}
@keyframes panel-in {
    from { opacity:0; transform:translate(-50%,-54%); }
    to   { opacity:1; transform:translate(-50%,-50%); }
}

.info-panel h2 {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 1.9rem; letter-spacing: 0.04em;
    color: var(--cream); margin-bottom: 28px; font-weight: normal;
}
.info-panel h3 {
    font-family: 'Saint', monospace;
    font-size: 7.5px; letter-spacing: 0.46em;
    text-transform: uppercase; color: var(--dimmer);
    margin-top: 26px; margin-bottom: 12px; font-weight: normal;
}
.info-panel p {
    font-family: 'Saint', monospace;
    font-size: 13px; line-height: 1.9;
    color: var(--text-chrome); margin-bottom: 12px;
}
.info-panel ul { margin-bottom: 16px; }
.info-panel li {
    font-family: 'Saint', monospace;
    font-size: 12px; line-height: 1.8; color: var(--text-chrome); margin-bottom: 8px;
}

.info-panel::-webkit-scrollbar { width: 3px; }
.info-panel::-webkit-scrollbar-track { background: transparent; }
.info-panel::-webkit-scrollbar-thumb { background: var(--rule-bright); }

.close-btn {
    position: absolute; top:14px; right:18px;
    background: none; border: none;
    color: var(--dimmer); font-size: 20px;
    cursor: pointer; transition: color 0.2s; line-height: 1;
}
.close-btn:hover { color: var(--cream); }

/* Event list inside panel */
.event { padding: 20px 0; border-top: 1px solid var(--rule); }
.event:last-child { border-bottom: 1px solid var(--rule); }
.event h3 {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 1rem; color: var(--cream);
    text-transform: none; margin-bottom: 8px; letter-spacing: 0.02em;
}

/* Panel buttons */
.patreon-btn, .location-btn {
    display: inline-block;
    font-family: 'Saint', monospace;
    font-size: 8px; letter-spacing: 0.4em;
    text-transform: uppercase; color: var(--cream);
    border: 1px solid var(--rule-bright);
    padding: 12px 28px; text-decoration: none;
    margin: 18px 0; transition: border-color 0.22s;
    background: transparent;
}
.patreon-btn:hover, .location-btn:hover { border-color: var(--cream); }

.access-code {
    margin-top: 26px; padding-top: 20px;
    border-top: 1px solid var(--rule);
}
.access-code input {
    font-family: 'Saint', monospace; font-size: 12px;
    background: transparent; border: 1px solid var(--rule-bright);
    padding: 11px 14px; color: var(--cream); width: 100%;
    margin: 10px 0; outline: none; letter-spacing: 0.12em;
    transition: border-color 0.2s;
}
.access-code input:focus { border-color: var(--cream); }
.access-code button {
    font-family: 'Saint', monospace; font-size: 8px; letter-spacing: 0.38em;
    text-transform: uppercase; background: transparent;
    border: 1px solid var(--rule-bright); color: var(--cream);
    padding: 11px 24px; cursor: pointer; transition: border-color 0.22s;
}
.access-code button:hover { border-color: var(--cream); }

.contact-info a { color: var(--text-chrome); text-decoration: none; transition: color 0.2s; }
.contact-info a:hover { color: var(--cream); }

.gallery-placeholder {
    border: 1px dashed var(--rule-bright);
    padding: 40px; text-align: center;
    margin-top: 16px; color: var(--dimmer);
    font-family: 'Saint', monospace; font-size: 11px;
    letter-spacing: 0.2em;
}

/* Quote popup */
.quote-popup {
    position: absolute; top:50%; left:50%;
    transform: translate(-50%,-50%);
    background: rgba(8,8,8,0.97);
    border: 1px solid var(--rule-bright);
    padding: 44px 56px;
    max-width: 560px; width: 88vw;
    backdrop-filter: blur(20px); z-index: 200;
    animation: panel-in 0.4s cubic-bezier(.22,1,.36,1);
}
.quote-popup p {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 1.35rem; font-style: italic;
    color: var(--cream); text-align: center; line-height: 1.6;
}

/* Easter egg */
#easter-egg-effect {
    position: fixed; inset: 0;
    background: radial-gradient(circle, rgba(240,236,228,0.05), transparent);
    pointer-events: none; z-index: 500;
    animation: easter-pulse 0.9s ease-out;
}
@keyframes easter-pulse {
    0%  { opacity:0; transform:scale(0.5); }
    50% { opacity:1; transform:scale(1.15); }
    100%{ opacity:0; transform:scale(1); }
}

/* 3D scene footer */
#ritual-footer {
    position: fixed; bottom:0; left:0; right:0;
    background: linear-gradient(0deg, rgba(8,8,8,0.95) 0%, transparent 100%);
    padding: 12px 0; z-index: 90;
    border-top: 1px solid var(--rule);
}
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: center; align-items: center;
    gap: 32px; padding: 0 24px;
}
.footer-link {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Saint', monospace;
    font-size: 7.5px; letter-spacing: 0.38em;
    text-transform: uppercase; color: var(--dimmer);
    text-decoration: none; transition: color 0.22s; padding: 6px 12px;
}
.footer-link:hover { color: var(--cream); }
.footer-icon { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .section-inner { padding: 0 32px; }
    .two-col { grid-template-columns: 1fr; gap: 48px; }
    .print-service { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    #site-nav { padding: 0 20px; }
    .radio-nav-arrow { display: none; }
}

@media (max-width: 768px) {
    /* Disable 3D tilt — touch devices don't have mouse */
    #perspective-stage { perspective: none; }
    #site-wrapper { transform: none !important; transform-style: flat; }

    .section-inner { padding: 0 20px; }
    .site-section { padding: 56px 0; }
    .hero-col, .hero-rule, .scroll-hint { display: none; }
    .hero-bottom { left: 20px; right: 20px; font-size: 6.5px; }
    .hero-sub { bottom: 52px; }
    #hero-logo { width: clamp(260px, 82vw, 480px); }
    .logo-ring-outer { width: clamp(240px, 68vmin, 340px); height: clamp(240px, 68vmin, 340px); }
    .logo-ring-inner { width: clamp(180px, 52vmin, 260px); height: clamp(180px, 52vmin, 260px); }

    /* Shop */
    .shop-grid { grid-template-columns: 1fr 1fr; }
    .shop-grid--wide { grid-template-columns: 1fr; }
    .event-grid { grid-template-columns: 1fr; }

    /* Calculator */
    .print-service { grid-template-columns: 1fr; gap: 40px; }
    .calc-dims { flex-wrap: wrap; gap: 6px; }
    .calc-dims input { width: 60px; flex: 1 1 60px; }

    /* Instagram swarm — convert to scrollable grid on mobile */
    #ig-swarm {
        height: auto !important;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
    .ig-card {
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 100%;
    }
    .ig-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Zine */
    .zine-book-wrap { width: 96vw; }
    .zine-spread { padding-bottom: 80%; }
    .zine-nav { width: 36px; height: 36px; font-size: 22px; }

    #instructions { font-size: 7px; letter-spacing: 0.16em; white-space: normal; max-width: 88vw; bottom: 60px; }
    .footer-content { flex-direction: column; gap: 8px; }

    /* Flee chars — disable on touch (performance + no mouse) */
    .flee-char { transition: none; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .section-intro { font-size: 13px; }
    .shop-grid { grid-template-columns: 1fr; }
    .shop-card { padding: 20px 16px; }
    .info-panel { padding: 28px 20px; }
    .nav-wordmark { display: none; }
    #ritual-world-btn { font-size: 8.5px; padding: 7px 12px; }

    /* Instagram: 2 cols on very small */
    #ig-swarm { grid-template-columns: repeat(2, 1fr); }

    /* Zine single-column feel */
    .zine-stage { gap: 6px; }
    .zine-leaf-left, .zine-leaf-right { font-size: 10px; }

    /* Calculator dims stack */
    .calc-dims { flex-direction: column; align-items: stretch; }
    .calc-dims input { width: 100%; }
    .dim-sep { display: none; }

    /* Nav */
    #site-nav { height: 52px; }
    #ritual-world-btn { gap: 5px; }
    .rw-glyph { font-size: 10px; }

    /* Lightbox */
    .ig-lb-inner { width: 96vw; }

    /* Zine modal */
    .zine-book-wrap { gap: 12px; }
    .zine-footer { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Touch: make ig-card tap highlight visible */
@media (hover: none) {
    .ig-card:active img { opacity: 1; }
    .ig-card:active .ig-card-cap { opacity: 1; }
    .ig-card:active { border-color: rgba(240,236,228,0.35); }
    .shop-btn:active { background: rgba(240,236,228,0.12); }
    .zine-nav:active { color: var(--fg); border-color: rgba(240,236,228,0.4); }
}

/* ── Merch & Artwork ── */
.merch-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--rule);
}

.merch-visual {
    position: sticky;
    top: 80px;
}

.merch-3d-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    background: rgba(10,10,24,0.8);
    border: 1px solid rgba(240,236,228,0.08);
    overflow: hidden;
}

.merch-3d-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    cursor: grab;
}
.merch-3d-wrap canvas:active { cursor: grabbing; }

.merch-3d-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Saint', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(240,236,228,0.35);
    text-transform: uppercase;
    pointer-events: none;
}
.merch-3d-spinner {
    display: block;
    width: 24px; height: 24px;
    border: 1px solid rgba(240,236,228,0.15);
    border-top-color: rgba(240,236,228,0.6);
    border-radius: 50%;
    animation: spin3d 1s linear infinite;
}
@keyframes spin3d { to { transform: rotate(360deg); } }

.merch-3d-hint {
    position: absolute;
    bottom: 12px;
    left: 0; right: 0;
    text-align: center;
    font-family: 'Saint', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(240,236,228,0.3);
    pointer-events: none;
    text-transform: uppercase;
    transition: opacity 0.4s;
}

.merch-artist {
    font-family: 'Saint', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(240,236,228,0.4);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.merch-artist span { color: rgba(240,236,228,0.75); }

.merch-name {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 3rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-shadow: 0 0 2px rgba(255,255,255,0.9), 0 0 30px rgba(255,120,40,0.2);
}

.merch-desc {
    font-family: 'Saint', monospace;
    font-size: 12px;
    line-height: 1.9;
    color: rgba(240,236,228,0.65);
    margin-bottom: 28px;
}

.merch-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.merch-price {
    font-family: 'Gambarino', Georgia, serif;
    font-size: 2rem;
    color: var(--fg);
    text-shadow: 0 0 2px rgba(255,255,255,0.8);
}

.merch-tag {
    font-family: 'Saint', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(240,236,228,0.4);
    border: 1px solid rgba(240,236,228,0.15);
    padding: 4px 10px;
}

.merch-option-group {
    margin-bottom: 24px;
}

.merch-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.merch-opt {
    font-family: 'Saint', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: none;
    border: 1px solid rgba(240,236,228,0.18);
    color: rgba(240,236,228,0.5);
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.merch-opt:hover {
    border-color: rgba(240,236,228,0.45);
    color: var(--fg);
}

.merch-opt--active {
    border-color: rgba(240,236,228,0.8);
    color: var(--fg);
    background: rgba(240,236,228,0.06);
    text-shadow: 0 0 2px rgba(255,255,255,0.6);
}

.merch-cta {
    margin-top: 8px;
    display: inline-block;
}

/* X1 ruled separator */
.merch-product--ruled {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid var(--rule);
}

/* Colour swatches */
.x1-colours {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.x1-swatch {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--sw);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    padding: 0;
}
.x1-swatch:hover { transform: scale(1.18); }
.x1-swatch--active {
    border-color: rgba(240,236,228,0.9);
    transform: scale(1.15);
}
.filament-hint {
    font-size: 8px;
    opacity: 0.45;
    letter-spacing: 0.1em;
    font-family: 'Saint', monospace;
    text-transform: none;
}

.x1-colour-label {
    margin-top: 8px;
    font-family: 'Saint', monospace;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
}

.merch-coming {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
}

@media (max-width: 768px) {
    .merch-product {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .merch-visual { position: static; }
    .merch-3d-wrap { aspect-ratio: 1 / 1; }
    .merch-name { font-size: 2.2rem; }
}

/* ── Zine card ── */
.zine-card { border-color: rgba(240,236,228,0.18); }
.zine-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.zine-preview-btn { background: rgba(240,236,228,0.08); }
.zine-preview-btn:hover { background: rgba(240,236,228,0.18); }

/* ── Zine Magic Book Modal ── */
#zine-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(4,4,12,0.96);
    backdrop-filter: blur(18px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}
#zine-modal.active { opacity: 1; }

.zine-book-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: min(92vw, 560px);
    position: relative;
}

.zine-close {
    position: absolute;
    top: -44px; right: 0;
    background: none;
    border: none;
    color: rgba(240,236,228,0.5);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.zine-close:hover { color: var(--fg); }

.zine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: 'Saint', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: rgba(240,236,228,0.45);
    text-transform: uppercase;
}

.zine-stage {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Two-page spread */
.zine-spread {
    position: relative;
    flex: 1;
    display: flex;
    height: 0;
    padding-bottom: 70%; /* aspect ratio: width × 0.7 for landscape spread */
}

.zine-leaf {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    overflow: hidden;
    background: #0a0a18;
}

.zine-leaf-left  {
    left: 0;
    border: 1px solid rgba(240,236,228,0.1);
    border-right: none;
}
.zine-leaf-right {
    right: 0;
    border: 1px solid rgba(240,236,228,0.1);
    border-left: none;
}

.zine-leaf-inner {
    position: absolute;
    inset: 0;
}

.zine-half {
    position: absolute;
    inset: 0;
    background-color: #0a0a18;
}

/* Spine shadow divider */
.zine-spine-shadow {
    position: absolute;
    top: 0; bottom: 0;
    width: 18px;
    pointer-events: none;
    z-index: 3;
}
.zine-spine-left  { right: 0; background: linear-gradient(to left, rgba(0,0,0,0.45), transparent); }
.zine-spine-right { left: 0;  background: linear-gradient(to right, rgba(0,0,0,0.45), transparent); }

/* Centre spine line */
.zine-spread::after {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: rgba(240,236,228,0.08);
    z-index: 4;
    pointer-events: none;
}

/* Page turn animations */
@keyframes zine-out-left {
    from { opacity:1; transform: perspective(800px) rotateY(0deg) translateX(0); }
    to   { opacity:0; transform: perspective(800px) rotateY(12deg) translateX(-6%); }
}
@keyframes zine-in-right {
    from { opacity:0; transform: perspective(800px) rotateY(-12deg) translateX(6%); }
    to   { opacity:1; transform: perspective(800px) rotateY(0deg) translateX(0); }
}
@keyframes zine-out-right {
    from { opacity:1; transform: perspective(800px) rotateY(0deg) translateX(0); }
    to   { opacity:0; transform: perspective(800px) rotateY(-12deg) translateX(6%); }
}
@keyframes zine-in-left {
    from { opacity:0; transform: perspective(800px) rotateY(12deg) translateX(-6%); }
    to   { opacity:1; transform: perspective(800px) rotateY(0deg) translateX(0); }
}

.zine-spread.zine-flip-out-left  { animation: zine-out-left  0.28s ease-in  both; }
.zine-spread.zine-flip-in-right  { animation: zine-in-right  0.42s ease-out both; }
.zine-spread.zine-flip-out-right { animation: zine-out-right 0.28s ease-in  both; }
.zine-spread.zine-flip-in-left   { animation: zine-in-left   0.42s ease-out both; }

/* Magic particles on page turn */
.zine-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}
.zp {
    position: absolute;
    width: 3px; height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px 2px rgba(255,255,255,0.8), 0 0 12px 4px rgba(200,200,255,0.4);
    animation: zp-fly var(--dur, 0.7s) ease-out both;
}
@keyframes zp-fly {
    from { opacity: 1; transform: translate(0,0) scale(1); }
    to   { opacity: 0; transform: translate(var(--tx,40px), var(--ty,-60px)) scale(0); }
}

.zine-nav {
    background: none;
    border: 1px solid rgba(240,236,228,0.15);
    color: rgba(240,236,228,0.5);
    font-size: 28px;
    line-height: 1;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s;
}
.zine-nav:hover {
    color: var(--fg);
    border-color: rgba(240,236,228,0.4);
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.zine-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.zine-price {
    font-family: 'Saint', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(240,236,228,0.5);
    text-shadow: 0 0 2px rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════
   LIQUID GLASS — material system
   Tokens in :root. Tiers: full (default) /
   lite (html.glass-lite, Task 2) / solid (Task 3).
   Restyles existing surfaces only — no layout,
   font, or color changes.
═══════════════════════════════════════════ */

/* ── Nav buttons ── */
#ritual-world-btn,
#radio-nav-btn {
    background: var(--glass-fill);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border-color: transparent;
    border-radius: 999px;
    box-shadow: var(--glass-edge-soft);
}
#ritual-world-btn:hover,
#radio-nav-btn:hover {
    border-color: transparent;
    background: var(--glass-fill-strong);
    box-shadow: var(--glass-edge);
}

/* ── Ruled sections: keep full-bleed, swap flat tint for light glass ── */
.site-section--ruled {
    background: rgba(13,13,26,0.45);
    backdrop-filter: blur(var(--glass-section-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-section-blur)) saturate(140%);
}

/* ── Event / IG / shop cards ── */
.ig-card,
.event-card,
.shop-card {
    background: var(--glass-fill);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border-color: transparent;
    border-radius: var(--glass-r-ctl);
    box-shadow: var(--glass-edge-soft);
    overflow: hidden;
}
.event-card:hover,
.shop-card:hover {
    background: var(--glass-fill-strong);
}
/* Keep ig-card border transparent on hover/focus/tap (base rules add a cream hairline) */
.ig-card:hover,
.ig-card:focus-visible,
.ig-card:active {
    border-color: transparent;
}

/* ── Merch: viewer frame, option buttons, CTA ── */
.merch-3d-wrap {
    background: var(--glass-fill);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border-color: transparent;
    border-radius: var(--glass-r-panel);
    box-shadow: var(--glass-edge);
}
.merch-opt {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-color: transparent;
    border-radius: 999px;
    box-shadow: var(--glass-edge-soft);
}
.merch-opt:hover {
    background: rgba(255,255,255,0.10);
    border-color: transparent;
}
.merch-opt--active {
    background: var(--glass-fill-strong);
    border-color: transparent;
    box-shadow: var(--glass-edge);
}
.shop-btn,
.merch-cta,
.calc-btn {
    background: var(--glass-fill-strong);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border-color: transparent;
    border-radius: 999px;
    box-shadow: var(--glass-edge);
}
.shop-btn:hover,
.calc-btn:hover {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(255,255,255,0.26), rgba(255,255,255,0.12) 60%);
}

/* ── 3D print calculator ── */
.print-calc {
    background: var(--glass-fill);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border-color: transparent;
    border-radius: var(--glass-r-panel);
    box-shadow: var(--glass-edge);
}
.calc-dims input,
.calc-select-wrap select {
    background: rgba(255,255,255,0.06);
    border-color: transparent;
    border-radius: 10px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.18), inset 0 -1px 1px rgba(0,0,0,0.25);
}
.calc-dims input:focus,
.calc-select-wrap select:focus {
    border-color: transparent;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.3), 0 0 0 1px rgba(240,236,228,0.35);
}
.calc-result {
    background: rgba(255,255,255,0.04);
    border-radius: var(--glass-r-ctl);
    box-shadow: var(--glass-edge-soft);
}

/* ── 3D world overlays ──
   #instructions intentionally excluded: it's faint centered micro-text
   (transparent, border:none by design), not a panel — glassing it would
   wrap tiny text in an oversized frosted pill. */
.info-panel,
#interaction-hint,
.quote-popup {
    background: var(--glass-fill);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border-color: transparent;
    border-radius: var(--glass-r-panel);
    box-shadow: var(--glass-edge);
}
.patreon-btn, .location-btn,
.access-code input, .access-code button {
    background: rgba(255,255,255,0.06);
    border-color: transparent;
    border-radius: 999px;
    box-shadow: var(--glass-edge-soft);
}
.patreon-btn:hover, .location-btn:hover,
.access-code input:focus, .access-code button:hover {
    border-color: transparent;
}

/* ── Footer strip ── */
#site-footer {
    background: rgba(13,13,26,0.4);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* ── Specular sheen on large panels only ── */
.print-calc::after,
.merch-3d-wrap::after,
.info-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(165deg, rgba(255,255,255,0.16) 0%, transparent 28%);
}
.print-calc, .merch-3d-wrap { position: relative; }

/* ── Interactive glass transitions ── */
#ritual-world-btn, #radio-nav-btn,
.event-card, .shop-card,
.merch-opt, .shop-btn, .merch-cta, .calc-btn {
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ── Lite tier (html.glass-lite): weak touch devices ── */
html.glass-lite {
    --glass-blur: 10px;
}
html.glass-lite .site-section--ruled {
    background: rgba(13,13,26,0.6);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ── Solid tier: no backdrop-filter support, or user prefers reduced transparency ── */
@supports (not (backdrop-filter: blur(1px))) and (not (-webkit-backdrop-filter: blur(1px))) {
    #ritual-world-btn, #radio-nav-btn,
    .site-section--ruled,
    .ig-card, .event-card, .shop-card,
    .merch-3d-wrap, .merch-opt, .shop-btn, .merch-cta, .calc-btn,
    .print-calc, .calc-result,
    .info-panel, #interaction-hint, .quote-popup,
    #site-footer {
        background: rgba(13,13,26,0.88);
    }
}
@media (prefers-reduced-transparency: reduce) {
    #ritual-world-btn, #radio-nav-btn,
    .site-section--ruled,
    .ig-card, .event-card, .shop-card,
    .merch-3d-wrap, .merch-opt, .shop-btn, .merch-cta, .calc-btn,
    .print-calc, .calc-result,
    .info-panel, #interaction-hint, .quote-popup,
    #site-footer {
        background: rgba(13,13,26,0.88);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ── Reduced motion: glass state changes become instant ── */
@media (prefers-reduced-motion: reduce) {
    #ritual-world-btn, #radio-nav-btn,
    .event-card, .shop-card,
    .merch-opt, .shop-btn, .merch-cta, .calc-btn {
        transition: none;
    }
}
