:root {
    --black: #030303;
    --panel: rgba(12, 12, 12, 0.78);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(214, 168, 91, 0.42);
    --gold: #d6a85b;
    --gold-soft: #ecd19a;
    --text: #f5efe6;
    --muted: #a9a19a;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", Arial, sans-serif;
    --mono: "JetBrains Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #030303;
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ========================================
   BACKGROUND
   ======================================== */

.site-bg {
    position: absolute;
    inset: 0 0 auto;
    height: 140vh;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}

.site-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.5;
    filter: saturate(0.86) contrast(1.08) brightness(0.75);
    transform: translateY(calc(var(--scroll-y, 0) * 0.15px)) scale(1.02);
    transform-origin: center top;
    will-change: transform;
}

@media (max-width: 900px) {
    .site-bg {
        position: fixed;
        height: 100vh;
        inset: 0;
    }
    .site-bg img {
        transform: none;
        opacity: 0.55;
    }
}

#mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.12;
    z-index: 1;
}

#shader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.7;
    z-index: 2;
}

.bg-wash,
.bg-noise {
    position: absolute;
    inset: 0;
}

.bg-wash {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.5) 52%, rgba(3,3,3,0.9) 94%),
        radial-gradient(circle at 52% 32%, transparent 0%, rgba(0, 0, 0, 0.15) 42%, rgba(0, 0, 0, 0.7) 100%);
}

.bg-noise {
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.values-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.values-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.classified-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.classified-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.rituals-list .reveal:nth-child(2) { transition-delay: 0.1s; }
.rituals-list .reveal:nth-child(3) { transition-delay: 0.2s; }
.rituals-list .reveal:nth-child(4) { transition-delay: 0.3s; }
.rituals-list .reveal:nth-child(5) { transition-delay: 0.4s; }
.rituals-list .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ========================================
   NAVBAR
   ======================================== */

.nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(18px, 5vw, 64px);
    background: transparent;
}

.brand {
    display: block;
    width: clamp(120px, 12vw, 168px);
    opacity: 0.9;
}

.brand img {
    width: 100%;
    transform: scale(1.18);
    transform-origin: left center;
    opacity: 0.92;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(245, 239, 230, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-links a {
    transition: color 180ms ease;
}

.nav-links a:hover {
    color: var(--gold-soft);
}

/* Live Pulse Indicator */
.nav-live-pulse {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.06);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e, 0 0 20px rgba(34, 197, 94, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.pulse-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    color: #22c55e;
    font-weight: 700;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #22c55e, 0 0 20px rgba(34, 197, 94, 0.3); }
    50% { opacity: 0.4; box-shadow: 0 0 4px #22c55e, 0 0 10px rgba(34, 197, 94, 0.15); }
}

/* ========================================
   LAYOUT
   ======================================== */

.section-shell {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

/* ========================================
   HERO
   ======================================== */

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 160px 0 88px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow,
.section-kicker,
.flow-label {
    margin: 0 0 18px;
    color: var(--gold-soft);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    max-width: 650px;
    font-family: var(--serif);
    font-size: clamp(3.25rem, 7vw, 6.25rem);
    font-weight: 600;
    line-height: 1.1;
    padding-bottom: 0.08em;
    letter-spacing: 0;
    text-wrap: balance;
    background: linear-gradient(180deg, #fff 0%, #efe5d7 48%, #a89f95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 570px;
    margin-bottom: 30px;
    color: rgba(245, 239, 230, 0.68);
    font-size: clamp(1rem, 1.5vw, 1.13rem);
    font-weight: 300;
    line-height: 1.82;
    letter-spacing: 0.012em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--line);
}

/* ========================================
   SOCIAL PROOF TICKER
   ======================================== */

.ticker-bar {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 32s linear infinite;
}

.ticker-track span {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    padding-right: 12px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   BUTTONS
   ======================================== */

.primary-btn,
.submit-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 211, 154, 0.58);
    border-radius: 999px;
    padding: 0 24px;
    background: linear-gradient(135deg, #ffe4ad, #b97f34 50%, #f1cf8b);
    color: #090806;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    box-shadow: 0 18px 60px rgba(214, 168, 91, 0.16);
    transition: transform 180ms ease, filter 180ms ease;
}

.primary-btn:hover,
.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

/* ========================================
   VALUES
   ======================================== */

.values {
    padding: 80px 0 32px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.value-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease, box-shadow 240ms ease;
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 168, 91, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.value-image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.value-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover .value-image-wrapper img {
    transform: scale(1.05);
}

.value-content {
    padding: 24px;
}

.value-content h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--text);
}

.value-content p {
    font-size: 0.9rem;
    color: rgba(245,239,230,0.52);
    line-height: 1.72;
    margin: 0;
    letter-spacing: 0.01em;
    font-weight: 300;
}

/* ========================================
   MANIFESTO / THESIS
   ======================================== */

.manifesto {
    padding: 100px 0 80px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.manifesto-content {
    max-width: 800px;
}

.manifesto-content h2 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    margin-bottom: 30px;
    background: linear-gradient(180deg, #fff 0%, #efe5d7 48%, #a89f95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.manifesto-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
}

/* ========================================
   CLASSIFIED SECTION
   ======================================== */

.classified {
    padding: 120px 0;
}

.classified-header {
    margin-bottom: 48px;
}

.classified-header h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #fff 0%, #efe5d7 48%, #a89f95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.classified-subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
}

.classified-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.classified-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.classified-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 168, 91, 0.2);
}

.classified-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.classified-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.5) saturate(0.6);
    transition: filter 400ms ease;
}

.classified-card:hover .classified-image img {
    filter: blur(5px) brightness(0.35) saturate(0.4);
}

.classified-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(236, 209, 154, 0.7);
    border: 1.5px solid rgba(236, 209, 154, 0.4);
    padding: 8px 18px;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.classified-info {
    padding: 22px;
}

.classified-date {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.classified-info h4 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 8px 0 14px;
    color: var(--text);
}

.redacted-line {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: rgba(169, 161, 154, 0.6);
    line-height: 1.7;
    margin: 0 0 4px;
}

.redact-block {
    background-color: rgba(214, 168, 91, 0.3);
    color: transparent;
    border-radius: 2px;
    padding: 0 4px;
    user-select: none;
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: help;
}

.redact-block:hover {
    background-color: transparent;
    color: var(--gold-soft);
    user-select: auto;
}

/* ========================================
   RITUALS
   ======================================== */

.rituals {
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

.rituals-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 40px;
}

.ritual-item {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 40px;
}

.ritual-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ritual-num {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: var(--gold-soft);
    opacity: 0.6;
    line-height: 1;
    font-weight: 500;
}

.ritual-info h3 {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 500;
    margin: 0 0 14px;
}

.ritual-info p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    max-width: 680px;
}

/* ========================================
   MEMBERSHIP TOKEN
   ======================================== */

.membership-token {
    padding: 120px 0;
    border-top: 1px solid var(--line);
}

.token-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.token-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.token-image img {
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.token-image:hover img {
    transform: scale(1.03) rotate(1deg);
}

.token-copy h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    margin: 0 0 22px;
    background: linear-gradient(180deg, #fff 0%, #efe5d7 48%, #a89f95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.token-copy p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   APPLICATION FORM
   ======================================== */

.application {
    display: flex;
    justify-content: center;
    padding: 96px 0 112px;
    scroll-margin-top: 92px;
    border-top: 1px solid var(--line);
}

.application-form {
    width: min(100%, 760px);
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(0, 0, 0, 0.66);
    box-shadow: 0 34px 120px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.form-header {
    margin-bottom: 24px;
}

.form-header p:last-child {
    max-width: 520px;
    margin: 0;
    color: rgba(245, 239, 230, 0.68);
    font-size: 0.95rem;
    line-height: 1.65;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

label {
    display: grid;
    gap: 8px;
    color: rgba(245, 239, 230, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wide {
    grid-column: 1 / -1;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(214,168,91,0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--text);
    font: 500 0.98rem var(--sans);
    letter-spacing: 0;
    outline: none;
    box-shadow: 0 0 18px -8px rgba(214,168,91,0.08), inset 0 1px 0 rgba(214,168,91,0.04);
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

input {
    height: 50px;
    padding: 0 15px;
}

textarea {
    min-height: 136px;
    resize: vertical;
    padding: 15px;
    line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
    color: rgba(245, 239, 230, 0.34);
}

input:hover,
textarea:hover {
    border-color: rgba(214,168,91,0.22);
    box-shadow: 0 0 28px -8px rgba(214,168,91,0.18), inset 0 1px 0 rgba(214,168,91,0.06);
}
input:focus,
textarea:focus {
    border-color: rgba(214,168,91,0.55);
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(214,168,91,0.1), 0 0 35px -8px rgba(214,168,91,0.28), inset 0 1px 0 rgba(214,168,91,0.1);
}

.glow-field {
    position: relative;
}

.glow-field::before {
    content: "";
    position: absolute;
    inset: 28px -2px -2px;
    z-index: -1;
    border-radius: 10px;
    opacity: 0.56;
    filter: blur(8px);
    background: conic-gradient(from 80deg, transparent, rgba(214, 168, 91, 0.62), transparent 30%, rgba(255, 255, 255, 0.18), transparent 62%);
    animation: slow-spin 9s linear infinite;
}

.submit-btn {
    width: 100%;
    margin-top: 22px;
    cursor: pointer;
}

.submit-btn:disabled {
    cursor: wait;
    filter: grayscale(0.45);
    opacity: 0.78;
}

.form-status {
    min-height: 42px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

@keyframes slow-spin {
    to {
        transform: rotate(1turn);
    }
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 64px 0;
    text-align: center;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    width: 100px;
    opacity: 0.5;
}

.footer-logo img {
    width: 100%;
}

.footer-line {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(245, 239, 230, 0.35);
    margin: 0;
}

.footer-meta {
    display: flex;
    gap: 12px;
    font-size: 0.68rem;
    color: rgba(245, 239, 230, 0.22);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .section-shell {
        width: min(100% - 32px, 1100px);
    }

    .hero {
        min-height: auto;
        padding: 130px 0 82px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .application {
        justify-content: center;
        padding-top: 36px;
    }

    .values-grid,
    .classified-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .token-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ritual-item {
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 16px;
    }

    .brand {
        width: 112px;
    }

    .nav-links {
        font-size: 0.68rem;
        gap: 14px;
    }

    .nav-live-pulse {
        display: none;
    }

    h1 {
        font-size: clamp(3rem, 16vw, 4.55rem);
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .primary-btn {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .application {
        padding-bottom: 72px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    /* Mobile Terminal Override */
    .terminal-overlay {
        padding: 0;
    }

    .terminal-container {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .terminal-body {
        padding: 16px;
        font-size: 0.76rem !important;
    }

    #terminal-input {
        font-size: 0.76rem !important;
    }

    /* Mobile/Tablet Spacing & Layout Optimization */
    .values,
    .manifesto,
    .classified,
    .flow-section,
    .entry-section,
    .membership-token {
        padding: 64px 0;
    }

    .step-indicator {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }

    .form-progress {
        margin-bottom: 24px;
        padding-bottom: 16px;
        gap: 8px;
    }

    .next-btn, .prev-btn {
        padding: 10px 20px;
        font-size: 0.7rem;
    }

    .entry-step {
        gap: 16px;
    }

    .entry-connector {
        min-height: 48px;
    }

    .entry-copy {
        padding-bottom: 32px;
    }
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, border-radius 0.3s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold);
}

.cursor-outline {
    width: 24px;
    height: 24px;
    border: 1px solid var(--gold-soft);
    background-color: transparent;
}


/* Cursor states */
.cursor-outline.hovering-interactive {
    width: 46px;
    height: 46px;
    border-color: var(--gold);
    background-color: rgba(214, 168, 91, 0.08);
}

.cursor-dot.hovering-interactive {
    width: 4px;
    height: 4px;
    background-color: #ffffff;
}

/* Redact Hover specific cursor */
.cursor-outline.hovering-redact {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.cursor-dot.hovering-redact {
    background-color: var(--gold);
    width: 4px;
    height: 4px;
}

/* ========================================
   HIDDEN ACCESS TERMINAL
   ======================================== */
.terminal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(3, 3, 3, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.terminal-container {
    width: min(100%, 700px);
    height: 450px;
    background: #000;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    box-shadow: 0 30px 100px rgba(214, 168, 91, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.terminal-scanline {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 2;
}

.terminal-header {
    background: #0d0d0d;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.terminal-title {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    font-weight: 700;
}

.terminal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s ease;
}

.terminal-close:hover {
    color: #ff3b30;
}

.terminal-body {
    flex: 1;
    padding: 24px;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: #ffffff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

.system-line {
    color: var(--gold-soft);
    opacity: 0.8;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.terminal-prompt {
    color: var(--gold);
    font-weight: 700;
}

#terminal-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    color: #ffffff !important;
    font-family: var(--mono) !important;
    font-size: 0.82rem !important;
    caret-color: var(--gold);
}

/* ========================================
   SOUND TOGGLE
   ======================================= */
.sound-toggle {
    background: transparent;
    border: none;
    color: rgba(245, 239, 230, 0.6);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.sound-toggle:hover {
    color: var(--gold-soft);
    background-color: rgba(255, 255, 255, 0.05);
}

.sound-icon {
    display: block;
}

/* ========================================
   MOUSE REACTIVE SPOTLIGHT
   ======================================== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(
        circle 500px at var(--mouse-x, 50%) var(--mouse-y, 30%), 
        rgba(214, 168, 91, 0.09), 
        transparent 80%
    );
    pointer-events: none;
    will-change: background;
}

/* ========================================
   GHOST TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 2px solid var(--gold);
    border-radius: 4px;
    padding: 14px 18px;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: auto;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: toast-glow 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.toast-message {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: rgba(245, 239, 230, 0.85);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

@keyframes toast-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--gold); }
    50% { opacity: 0.4; box-shadow: 0 0 2px var(--gold); }
}

@media (max-width: 640px) {
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* ========================================
   FLUID FORMAT SECTION
   ======================================== */

.rituals-fluid {
    max-width: 680px;
    padding: 80px 0 64px;
    border-top: 1px solid var(--line);
}

.fluid-heading {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 12px 0 24px;
}

.fluid-body {
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.75;
    color: rgba(245, 239, 230, 0.68);
    max-width: 520px;
    margin: 0;
}

/* ========================================
   CAPACITY METER
   ======================================== */
.capacity-meter {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.capacity-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
}

.capacity-title {
    color: var(--muted);
}

.capacity-val {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(214, 168, 91, 0.4);
}

.capacity-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.capacity-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-soft) 0%, var(--gold) 100%);
    border-radius: 99px;
    box-shadow: 0 0 12px var(--gold);
    position: relative;
}

.capacity-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    animation: bar-glow 1.5s ease-in-out infinite;
}

@keyframes bar-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   WAITLIST INTERACTIVE FLOW
   ======================================== */

.waitlist-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    text-align: center;
    min-height: 380px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(214, 168, 91, 0.1);
    border-top: 2px solid var(--gold);
    border-radius: 50%;
    animation: spin-loader 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 32px;
    box-shadow: 0 0 15px rgba(214, 168, 91, 0.2);
}

@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.loader-step {
    opacity: 0.35;
    transition: opacity 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}

.loader-step.active {
    opacity: 1;
    color: var(--gold-soft);
    text-shadow: 0 0 8px rgba(236, 209, 154, 0.4);
}

.loader-step.completed {
    opacity: 0.8;
    color: var(--text);
}

.waitlist-ticket-container {
    padding: 24px clamp(12px, 3vw, 24px);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(214, 168, 91, 0.15);
    box-shadow: inset 0 0 24px rgba(214, 168, 91, 0.03);
    position: relative;
    overflow: hidden;
    animation: ticket-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ticket-reveal {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(214, 168, 91, 0.25);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ticket-badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

.ticket-serial {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 8px rgba(214, 168, 91, 0.45);
    letter-spacing: 0.05em;
}

.ticket-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-status-title {
    margin: 0;
    font-size: 0.85rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.status-badge-val {
    color: #e6a741;
    background: rgba(230, 167, 65, 0.08);
    border: 1px solid rgba(230, 167, 65, 0.25);
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.72rem;
    margin-left: 6px;
    text-shadow: 0 0 8px rgba(230, 167, 65, 0.3);
    display: inline-block;
}

.ticket-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px 0;
}

.ticket-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 0.58rem;
    font-family: var(--mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.detail-val {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-val.priority-high {
    color: #ffd899;
    text-shadow: 0 0 8px rgba(255, 216, 153, 0.25);
    font-weight: 700;
}

.ticket-message {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(245, 239, 230, 0.7);
}

.ticket-message p {
    margin: 0 0 12px;
}

.ticket-message p:last-child {
    margin-bottom: 0;
}

.ticket-warning {
    color: #c75656;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(199, 86, 86, 0.04);
    border: 1px solid rgba(199, 86, 86, 0.15);
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 14px;
    text-align: center;
}

/* ========================================
   MULTI-STEP FORM
   ======================================== */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.step-indicator {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.step-indicator.active {
    opacity: 1;
    color: var(--gold);
    text-shadow: 0 0 8px rgba(214, 168, 91, 0.4);
}
.form-step {
    animation: fadeIn 0.4s ease forwards;
}
.form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}
.form-actions.split {
    justify-content: space-between;
}
.next-btn, .prev-btn {
    background: transparent;
    border: 1px solid rgba(214, 168, 91, 0.3);
    color: var(--gold);
    padding: 12px 24px;
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.next-btn:hover, .prev-btn:hover {
    background: rgba(214, 168, 91, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(214, 168, 91, 0.2);
}

/* ========================================
   PREMIUM SECTIONS (The Flow / How You Get In)
   ======================================== */
.flow-header,
.entry-header {
    margin-bottom: 32px;
}

.flow-section,
.entry-section {
    padding: 120px 0;
}

.flow-heading {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 500;
    margin: 0;
    background: linear-gradient(180deg, #fff 0%, #efe5d7 48%, #a89f95 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.flow-rows {
    display: flex;
    flex-direction: column;
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.flow-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s ease;
    position: relative;
}

.flow-row::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-row:hover::before {
    width: 100%;
}

.flow-row-num {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--gold);
    opacity: 0.5;
    letter-spacing: 0.15em;
    transition: opacity 0.3s ease;
}

.flow-row:hover .flow-row-num {
    opacity: 1;
}

.flow-row-content h3 {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.flow-row:hover .flow-row-content h3 {
    color: var(--gold-soft);
}

.flow-row-content p {
    font-size: 0.92rem;
    color: rgba(245,239,230,0.5);
    line-height: 1.78;
    max-width: 560px;
    font-weight: 300;
    letter-spacing: 0.012em;
}

.flow-row-tag {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.flow-row:hover .flow-row-tag {
    border-color: var(--gold);
    color: var(--gold);
}

@media (max-width: 700px) {
    .flow-row {
        grid-template-columns: 48px 1fr;
        gap: 20px;
    }
    .flow-row-tag {
        display: none;
    }
}

/* Timeline */
.entry-steps {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.entry-step {
    display: flex;
    gap: 32px;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}
.entry-step:hover {
    opacity: 1;
}
.entry-step-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.entry-num {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(214, 168, 91, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 2;
}
.entry-connector {
    width: 1px;
    flex-grow: 1;
    background: linear-gradient(to bottom, rgba(214, 168, 91, 0.3), rgba(214, 168, 91, 0.05));
    min-height: 60px;
    margin: 8px 0;
}
.entry-step:last-child .entry-connector {
    display: none;
}
.entry-copy {
    padding-bottom: 48px;
}
.entry-copy h4 {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 12px;
}
.entry-copy p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Member Pass ─────────────────────────────────────── */
.member-pass-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 32px 0;
}

.member-pass {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(145deg, #0e0c08 0%, #1a1508 50%, #0e0c08 100%);
    border: 1px solid var(--gold);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(214, 168, 91, 0.18), 0 20px 60px rgba(0,0,0,0.6);
    animation: passReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes passReveal {
    0%   { opacity: 0; transform: scale(0.08); }
    60%  { opacity: 1; transform: scale(1.04); }
    80%  { transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.pass-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(214,168,91,0.08) 0%, transparent 50%, rgba(214,168,91,0.04) 100%);
    pointer-events: none;
}

.pass-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
}

.pass-logo-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pass-brand {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.pass-city {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pass-member-num {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.pass-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
    margin: 0 24px;
}

.pass-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    padding: 20px 24px;
}

.pass-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pass-label {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pass-val {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pass-priority {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    width: fit-content;
}

.pass-priority.priority-high {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(214, 168, 91, 0.08);
}

.pass-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 20px;
    gap: 16px;
}

.pass-barcode {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.barcode-lines {
    display: flex;
    align-items: stretch;
    height: 36px;
}

.barcode-lines span {
    display: inline-block;
    height: 100%;
    background: var(--gold);
    opacity: 0.7;
    flex-shrink: 0;
}

.barcode-text {
    font-family: var(--mono);
    font-size: 0.55rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pass-cohort {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    flex-shrink: 0;
}

.pass-note {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    max-width: 400px;
    line-height: 1.6;
}

.pass-warning {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: rgba(214, 168, 91, 0.5);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Fullscreen Pass Overlay ─────────────────────────── */
#pass-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

#pass-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.pass-overlay-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(214,168,91,0.12) 0%, rgba(3,3,3,0.97) 60%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pass-overlay-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pass-overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 16px;
    width: 100%;
    max-width: 520px;
    transform: translateY(32px);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

#pass-overlay.active .pass-overlay-content {
    transform: translateY(0);
}

.pass-overlay-eyebrow {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.6s ease 0.6s;
    margin: 0;
}

#pass-overlay.active .pass-overlay-eyebrow {
    opacity: 1;
}

#pass-overlay .member-pass {
    width: 100%;
    animation: passReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
    box-shadow: 0 0 80px rgba(214,168,91,0.2), 0 40px 100px rgba(0,0,0,0.8);
}

#pass-overlay .pass-note {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    max-width: 380px;
    line-height: 1.65;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s ease 1.1s;
}

#pass-overlay.active .pass-note {
    opacity: 1;
}

/* ── Editorial Quote ─────────────────────────────────── */
.editorial-quote {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    line-height: 1.15;
    color: var(--text);
    margin: 24px 0 32px;
    font-weight: 300;
    letter-spacing: -0.01em;
}
.editorial-quote strong {
    font-weight: 700;
    color: #fff;
}
.editorial-quote em {
    font-style: italic;
    color: var(--gold-soft);
    font-weight: 300;
}
.manifesto-sub {
    font-size: 1rem;
    color: rgba(245,239,230,0.52);
    line-height: 1.85;
    max-width: 500px;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.012em;
}

/* ── Spotlight Glow Cards ────────────────────────────── */
[data-glow] {
    --base: 40;
    --spread: 60;
    --hue: calc(var(--base) + (var(--xp, 0.5) * var(--spread)));
    --spotlight-size: 300px;
    --border-size: 1px;
}
.glow-card {
    position: relative;
    /* Ambient always-on gold glow + cursor spotlight layered on top */
    background-image:
        radial-gradient(
            var(--spotlight-size) var(--spotlight-size) at
            calc(var(--x, 9999) * 1px) calc(var(--y, 9999) * 1px),
            rgba(214,168,91,0.15),
            transparent
        ),
        radial-gradient(ellipse 90% 60% at 50% 25%, rgba(214,168,91,0.18) 0%, transparent 65%);
    border: 1px solid rgba(214,168,91,0.22);
    box-shadow: 0 0 50px -10px rgba(214,168,91,0.3), inset 0 1px 0 rgba(214,168,91,0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.glow-card:hover {
    border-color: rgba(214,168,91,0.4);
    box-shadow: 0 0 70px -8px rgba(214,168,91,0.45), inset 0 1px 0 rgba(214,168,91,0.2);
}
.glow-card::before,
.glow-card::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: inherit;
    background-attachment: fixed;
    background-size: calc(100% + 2px) calc(100% + 2px);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
}
.glow-card::before {
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.7) calc(var(--spotlight-size) * 0.7) at
        calc(var(--x, 9999) * 1px) calc(var(--y, 9999) * 1px),
        rgba(214,168,91,0.85), transparent 100%
    );
    filter: brightness(1.6);
}
.glow-card::after {
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.45) calc(var(--spotlight-size) * 0.45) at
        calc(var(--x, 9999) * 1px) calc(var(--y, 9999) * 1px),
        rgba(255,235,180,0.65), transparent 100%
    );
}
.glow-inner {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

/* ── New Button Style ────────────────────────────────── */
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 36px;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #0a0800;
    background: linear-gradient(135deg, #ecd19a 0%, #d6a85b 50%, #c49040 100%);
    border: none;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
    box-shadow: 0 0 0 0 rgba(214,168,91,0);
}
.primary-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff8e8 0%, #ecd19a 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.primary-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 40px rgba(214,168,91,0.45), 0 0 0 1px rgba(214,168,91,0.3);
}
.primary-btn:hover::before { opacity: 1; }
.primary-btn span, .primary-btn { isolation: isolate; }

/* ── Pass Preview Section ────────────────────────────── */
.pass-preview-section {
    padding: 120px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(214,168,91,0.03) 50%, transparent 100%);
}
.pass-preview-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.pass-preview-copy h2 {
    margin: 12px 0 20px;
}
.pass-preview-copy p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 400px;
}
.pass-preview-card {
    display: flex;
    justify-content: center;
}
.preview-pass {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(145deg, #0e0c08 0%, #1c1608 50%, #0e0c08 100%);
    border: 1px solid rgba(214,168,91,0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(214,168,91,0.12), 0 30px 80px rgba(0,0,0,0.7);
}
.preview-pass-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(214,168,91,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.preview-pass-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 14px;
}
.preview-pass-brand {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
}
.preview-pass-num {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    opacity: 0.5;
}
.preview-pass-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.25;
    margin: 0 22px;
}
.preview-pass-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 14px;
    padding: 18px 22px;
}
.preview-pass-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.preview-label {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
}
.preview-val {
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(245,239,230,0.3);
    letter-spacing: 0.04em;
}
.preview-active {
    color: var(--gold) !important;
    opacity: 1 !important;
}
.preview-pass-bottom {
    padding: 14px 22px 20px;
}
.preview-barcode {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.preview-barcode-lines {
    display: flex;
    align-items: stretch;
    height: 30px;
    opacity: 0.35;
}
.preview-barcode-lines span {
    display: inline-block;
    height: 100%;
    background: var(--gold);
    flex-shrink: 0;
}
.preview-barcode-text {
    font-family: var(--mono);
    font-size: 0.5rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.4;
}
@media (max-width: 860px) {
    .pass-preview-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .pass-preview-card { order: -1; }
}

/* ── Card Pass (member-card.png overlay) ─────────────── */
.card-pass-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    animation: passReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
    box-shadow: 0 0 80px rgba(214,168,91,0.2), 0 40px 100px rgba(0,0,0,0.8);
    border-radius: 12px;
    overflow: hidden;
}

.card-pass-img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

/* Black box to cover the baked-in #0001 in the image */
.card-pass-cover {
    position: absolute;
    top: 52%;
    left: 22%;
    right: 22%;
    height: 9%;
    background: #080806;
    pointer-events: none;
}

.card-pass-number {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    text-align: center;
    font-family: var(--serif);
    font-size: clamp(1.1rem, 3vw, 1.7rem);
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.12em;
    white-space: nowrap;
    pointer-events: none;
    line-height: 9vh;
}

/* ── Vault Doors ─────────────────────────────────────── */
.doors-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    background: #030302;
    transition: opacity 0.5s ease;
}

.doors-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #080705;
    transition: transform 2.6s cubic-bezier(0.87, 0, 0.13, 1);
    z-index: 2;
    will-change: transform;
}

.door-left {
    left: 0;
    border-right: 1px solid rgba(214, 168, 91, 0.3);
}

.door-right {
    right: 0;
    border-left: 1px solid rgba(214, 168, 91, 0.3);
}

.doors-overlay.open .door-left  { transform: translateX(-100%); }
.doors-overlay.open .door-right { transform: translateX(100%); }

.door-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
    text-align: center;
    padding: 24px;
    background: #030302;
}

.door-bloom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(214,168,91,0.1) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.4s ease 2.2s;
}

.doors-overlay.open .door-bloom { opacity: 1; }

.door-serial {
    font-family: var(--serif);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.06em;
    margin: 0;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.1s ease 2.4s, transform 1.1s cubic-bezier(0.16,1,0.3,1) 2.4s;
    line-height: 1;
}

.door-name {
    font-family: var(--sans);
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(245,239,230,0.5);
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s ease 3.2s;
}

.door-logo {
    height: 52px;
    width: auto;
    opacity: 0;
    filter: brightness(0) invert(1) sepia(1) saturate(0.8) hue-rotate(5deg) brightness(0.9);
    transition: opacity 0.9s ease 2.2s;
    margin-bottom: 8px;
}
.doors-overlay.open .door-logo { opacity: 0.55; }

.door-divider {
    width: 80px;
    height: 1px;
    background: rgba(214,168,91,0.4);
    opacity: 0;
    transition: opacity 0.8s ease 2.4s;
    margin: 8px 0 12px;
}
.doors-overlay.open .door-divider { opacity: 1; }

.door-label {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(214,168,91,0.5);
    margin: 0 0 8px;
    opacity: 0;
    transition: opacity 0.8s ease 2.5s;
}
.doors-overlay.open .door-label { opacity: 1; }

.door-tagline {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-style: normal;
    font-weight: 300;
    color: rgba(245,239,230,0.5);
    margin: 16px 0 0;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.8s ease 3.7s;
}

.door-note {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--muted);
    margin: 24px 0 0;
    opacity: 0;
    max-width: 300px;
    line-height: 1.7;
    transition: opacity 0.7s ease 4.3s;
}

.doors-overlay.open .door-serial,
.doors-overlay.open .door-name,
.doors-overlay.open .door-tagline,
.doors-overlay.open .door-note {
    opacity: 1;
    transform: scale(1);
}
