/* =========================================================================
   IVANSON ENTERPRISES
   Website Style Definition
   ========================================================================= */

:root {
    /* Color Palette */
    --bg-color: #0B0B0B;
    /* Deep matte black */
    --bg-charcoal: #161616;
    /* Dark charcoal */
    --accent-gold: #C6A920;
    /* Warm muted gold accent */
    --text-primary: #EBEBEB;
    /* Soft off-white */
    --text-secondary: #999999;
    /* Muted text for subtle elements */

    /* Typography */
    --font-serif: 'Google Sans Display', 'Google Sans', sans-serif;
    --font-sans: 'Google Sans Text', 'Google Sans', sans-serif;
}

/* =========================================================================
   Base & Reset
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-weight: 300;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none !important;
}

a,
button,
.portal-card,
.doc-node,
.fp-link,
.advisory-card,
.seminar-card,
.upcoming-card {
    cursor: none !important;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6,
.nav-logo,
.footer-logo,
.hero-title,
.section-title,
.quote-block p {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s ease;
}

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

.scroll-container {
    overflow-x: hidden;
    position: relative;
}

/* =========================================================================
   Navigation
   ========================================================================= */
/* Neural-Fluid Global Cursor Styles */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: normal;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--accent-gold);
    z-index: 10001;
    transition: width 0.3s, height 0.3s, border-radius 0.3s;
}

.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(198, 169, 32, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.4s ease,
        background 0.4s ease;
}

/* Active / Hover Pulse State */
#custom-cursor.active .cursor-dot {
    width: 12px;
    height: 2px;
    border-radius: 0;
    /* Horizontal line/Crosshair part */
}

#custom-cursor.active .cursor-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 12px;
    background: var(--accent-gold);
}

#custom-cursor.active .cursor-ring {
    width: 70px;
    height: 70px;
    border-color: var(--accent-gold);
    background: rgba(198, 169, 32, 0.05);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 5vw;
    z-index: 100;
    /* Minimal gradient just to hint at structure, no hard limits */
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0.9) 0%, rgba(11, 11, 11, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    /* Only logo clickable if needed */
}

.nav-logo {
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    pointer-events: auto;
    opacity: 0.9;
    /* Minimal motion */
    transition: opacity 0.4s ease;
    cursor: default;
}

/* Audio Control */
.audio-toggle {
    position: fixed;
    top: 2.5rem;
    right: 5vw;
    z-index: 1000;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--accent-gold);
    padding: 0.5rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: auto;
}

.audio-toggle:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.audio-toggle .audio-icon {
    width: 14px;
    height: 14px;
}

.audio-status {
    font-size: 0.65rem;
}

/* =========================================================================
   Hero Section & Canvas
   ========================================================================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Global Fixed Canvas */
.global-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    /* Slight dimming so scrolling text runs over it legibly */
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-logo-wrapper {
    width: 100%;
    max-width: 160px;
    /* appropriately scale a PNG */
    height: auto;
    margin: 0 auto 2rem auto;
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-logo {
    width: 100%;
    height: auto;
    max-height: 160px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 0 12px rgba(198, 169, 32, 0.2));
    opacity: 0;
    animation:
        fadeInLogo 2s ease forwards,
        pulseGlow 8s infinite alternate ease-in-out 3s;
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(198, 169, 32, 0.1));
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(198, 169, 32, 0.6));
    }
}

/* Text Stagger Reveal */
.char-wrap {
    display: inline-block;
    overflow: hidden;
}

.char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: textUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes textUp {
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    letter-spacing: 0.05em;
    margin-bottom: 0;
    /* Removed entirely to bring subtitle closer */
    line-height: 1.1;
    /* Tighter bounding box */
    /* Tighter bounding box */
    /* Tighter bounding box */
    color: rgba(255, 255, 255, 0.95);
    opacity: 0;
    position: relative;
    display: inline-block;
    animation: simpleFadeIn 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.hero-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    background: linear-gradient(110deg,
            transparent 0%,
            transparent 40%,
            rgba(198, 169, 32, 0.9) 50%,
            transparent 60%,
            transparent 100%);
    background-size: 200% auto;
    background-position: 200% center;
    /* Start far left */
    -webkit-background-clip: text;
    background-clip: text;
    background-repeat: no-repeat;
    opacity: 0;
    /* Wait until page loaded */
    animation: goldSheen 10s linear infinite 3.5s;
    /* Delay 3.5s so everything is loaded */
}

@keyframes goldSheen {
    0% {
        opacity: 1;
        background-position: 200% center;
        /* Starts completely off left side */
    }

    40% {
        opacity: 1;
        background-position: -200% center;
        /* Sweeps left-to-right across text */
    }

    100% {
        opacity: 1;
        background-position: -200% center;
        /* Hold position until loop repeats */
    }
}

/* =========================================================================
   HERO ENHANCEMENTS (Aura & Axis)
   ========================================================================= */
#atmospheric-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    /* Above globe, below text */
    background: radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(198, 169, 32, 0.07), transparent 80%);
    opacity: 0;
    transition: opacity 2s ease;
}

#atmospheric-aura.active {
    opacity: 1;
}

.axis-line {
    position: fixed;
    background: rgba(198, 169, 32, 0.3);
    z-index: 2;
    pointer-events: none;
}

.axis-y {
    top: 0;
    left: 4vw;
    width: 1px;
    height: 0;
    animation: drawAxisY 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.axis-x {
    bottom: 2rem;
    left: 0;
    height: 1px;
    width: 0;
    animation: drawAxisX 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

@keyframes drawAxisY {
    to {
        height: 100vh;
    }
}

@keyframes drawAxisX {
    to {
        width: 100vw;
    }
}

.hero-subtitle {
    font-size: clamp(1.25rem, 1.75vw, 1.75rem);
    /* Increased base size and clamp bounds */
    color: var(--text-secondary);
    max-width: 600px;
    margin-top: 0.5rem;
    /* Explicit minimal spacing */
    margin-bottom: 4rem;
    line-height: 1.8;
    opacity: 0;
    animation: simpleFadeIn 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.6s forwards;
}

@keyframes simpleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* =========================================================================
   Buttons & Interactions
   ========================================================================= */
.btn {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1rem;
    width: 220px;
    /* Force uniform size */
    text-align: center;
    border: 1px solid rgba(235, 235, 235, 0.15);
    /* Very subtle */
    cursor: pointer;
    position: relative;
    overflow: visible;
    /* Allow brackets to show */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Animated Box Entry (Similar to portal cards) */
.hero-actions .btn,
.modal-actions .btn {
    opacity: 0;
    transform: translateY(30px);
}

.hero-actions .btn:nth-child(1) {
    animation: flyUpBtn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 2.4s forwards;
}

.hero-actions .btn:nth-child(2) {
    animation: flyUpBtn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 2.4s forwards;
}

.modal-overlay.active .modal-actions .btn:nth-child(1) {
    animation: flyUpBtn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.modal-overlay.active .modal-actions .btn:nth-child(2) {
    animation: flyUpBtn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards;
}

@keyframes flyUpBtn {
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Idle Floating Engine */
.hero-actions .btn-primary {
    animation: flyUpBtn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 2.4s forwards,
        idleFloat 4s ease-in-out 3.2s infinite alternate;
    /* Kicks in after flyUp is done */
}

@keyframes idleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-8px);
    }
}

/* Chevron Bounce */
@keyframes chevronBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.chevron-bounce {
    animation: chevronBounce 2s ease-in-out infinite;
}

/* Glassmorphism Hover Gradient */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(198, 169, 32, 0) 0%, rgba(198, 169, 32, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.btn-primary {
    border-color: rgba(198, 169, 32, 0.4);
    color: var(--accent-gold);
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(198, 169, 32, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(198, 169, 32, 0.08);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    border-color: var(--accent-gold);
    color: #ffffff;
}

/* =========================================================================
   Content Sections (Generous negative space)
   ========================================================================= */
.content-section {
    padding-top: 12rem;
    padding-bottom: 12rem;
    min-height: 135vh;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 5vw;
    padding-right: 5vw;
}

.pad-vertical {
    padding-top: 12rem;
    padding-bottom: 12rem;
}

.bg-charcoal {
    background-color: rgba(16, 16, 16, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(198, 169, 32, 0.05);
    border-bottom: 1px solid rgba(198, 169, 32, 0.05);
    width: 100%;
}

.section-title {
    font-size: 0.875rem;
    font-family: var(--font-sans);
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin-bottom: 5rem;
    text-transform: uppercase;
}

.section-content {
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    color: var(--text-secondary);
}

.section-content p {
    margin-bottom: 2rem;
    max-width: 700px;
    /* Readability constraint */
}

/* Typography styles */
.quote-block {
    margin: 5rem 0;
    padding-left: 2rem;
    border-left: 1px solid rgba(198, 169, 32, 0.4);
    /* Subtly gold */
}

.quote-block p {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
    max-width: none;
}

.quote-block p:last-child {
    margin-bottom: 0;
}

.statement-bold {
    color: var(--text-primary);
}

.emphasis-block {
    margin-top: 6rem;
}

/* ----------------------------------------------------------------------
   SLIDING DOOR REVEAL ARCHITECTURE (Section I)
   ---------------------------------------------------------------------- */
.door-container {
    position: relative;
    width: 100%;
    margin: 2.5rem 0;
}

/* Door Elements */
.door-top,
.door-bottom {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    color: var(--text-primary);
    line-height: 1.3;
    font-family: var(--font-serif);
    transition: transform 1.2s cubic-bezier(0.8, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

/* The Box That Appears In The Middle */
.door-middle-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.2s cubic-bezier(0.8, 0, 0.2, 1) 1.2s, opacity 0.8s ease 1.6s;
}

.fade-in.visible .door-container .door-middle-content {
    max-height: 800px;
    opacity: 1;
    overflow: visible;
    /* Allow callouts to bleed out */
}

.fade-in.visible .door-container .door-top {
    transform: translateY(-10px);
    transition-delay: 1.2s;
    /* Waits to slide until after it fades in */
}

.fade-in.visible .door-container .door-bottom {
    transform: translateY(10px);
    transition-delay: 1.2s;
}

/* We override the architecture box margins here because the door handles the space */
.door-middle-content .architecture-text {
    margin-top: 1.75rem;
    margin-bottom: 1.75rem;
}

/* Animated Architecture Text Block */
.architecture-text {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 2.5rem;
    background: rgba(16, 16, 16, 0.6);
    /* Slightly darker for better contrast */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(198, 169, 32, 0.1);
    border-radius: 4px;
    position: relative;
    max-width: 800px;
    margin-top: 1rem;
    z-index: 5;
}

/* ARCHITECTURAL CALLOUTS (Option 3) */
.callout-bracket {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(198, 169, 32, 0.8);
    /* Brighter gold */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 100;
    /* High priority visibility */
}

.callout-bracket.tl {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.callout-bracket.tr {
    top: -10px;
    right: -10px;
    border-left: none;
    border-bottom: none;
}

.callout-bracket.bl {
    bottom: -10px;
    left: -10px;
    border-right: none;
    border-top: none;
}

.callout-bracket.br {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.callout-label {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 0.65rem;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.callout-label.left {
    top: 50%;
    left: -60px;
    transform: translateY(-50%) rotate(-90deg);
}

.callout-label.right {
    top: 50%;
    right: -60px;
    transform: translateY(-50%) rotate(90deg);
}

/* Hover triggers */
.architecture-text:hover .callout-bracket {
    opacity: 1;
}

.architecture-text:hover .callout-bracket.tl {
    transform: translate(-5px, -5px);
}

.architecture-text:hover .callout-bracket.tr {
    transform: translate(5px, -5px);
}

.architecture-text:hover .callout-bracket.bl {
    transform: translate(-5px, 5px);
}

.architecture-text:hover .callout-bracket.br {
    transform: translate(5px, 5px);
}

.architecture-text:hover .callout-label {
    opacity: 0.6;
}

.architecture-text:hover .callout-label.left {
    transform: translateY(-50%) rotate(-90deg) translateY(-10px);
}

.architecture-text:hover .callout-label.right,
.access-node:hover .callout-label.right {
    transform: translateY(-50%) rotate(90deg) translateY(-10px);
}

/* Access Node & Button hover bridge */
.access-node:hover .callout-bracket,
.btn:hover .callout-bracket {
    opacity: 1;
}

.access-node:hover .callout-bracket.tl,
.btn:hover .callout-bracket.tl {
    transform: translate(-5px, -5px);
}

.access-node:hover .callout-bracket.tr,
.btn:hover .callout-bracket.tr {
    transform: translate(5px, -5px);
}

.access-node:hover .callout-bracket.bl,
.btn:hover .callout-bracket.bl {
    transform: translate(-5px, 5px);
}

.access-node:hover .callout-bracket.br,
.btn:hover .callout-bracket.br {
    transform: translate(5px, 5px);
}

/* Smaller brackets for buttons specifically */
.btn .callout-bracket {
    width: 15px;
    height: 15px;
}

.access-node:hover .callout-bracket.bl {
    transform: translate(-5px, 5px);
}

.access-node:hover .callout-bracket.br {
    transform: translate(5px, 5px);
}

.fade-in.visible .architecture-text {
    animation: borderGlow 1.5s ease forwards 2.0s;
}

@keyframes borderGlow {
    to {
        border-left-color: rgba(198, 169, 32, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), -15px 0 25px -15px rgba(198, 169, 32, 0.4);
    }
}

/* 2x2 Grid for Belief System */
.belief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.belief-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3.5rem 3rem;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
}

.belief-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(198, 169, 32, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(198, 169, 32, 0.05);
}

.belief-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.belief-card p {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.6;
    margin-bottom: 0;
}

.access-node {
    background: rgba(16, 16, 16, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(235, 235, 235, 0.05);
    padding: 0 2rem;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: visible;
    /* Allow brackets to show */
    cursor: default;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.access-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(198, 169, 32, 0) 0%, rgba(198, 169, 32, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.access-node:hover {
    color: #ffffff;
    border-color: rgba(198, 169, 32, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(198, 169, 32, 0.08);
}

.access-node:hover::before {
    opacity: 1;
}

/* =========================================================================
   CONSTELLATION CONNECT ARCHITECTURE
   ========================================================================= */
.constellation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 8rem;
    /* 8rem middle gap for spine */
    position: relative;
    margin: 4rem auto 0 auto;
    padding-bottom: 5rem;
    /* Let spine drop cleanly */
    max-width: 900px;
    width: 100%;
    z-index: 10;
}

.c-node-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* Base horizontal wire */
.c-wire-horizontal {
    position: absolute;
    top: 50%;
    height: 1px;
    width: 4rem;
    /* Spans the gap to center */
    background: rgba(198, 169, 32, 0.2);
    z-index: 1;
}

.c-wire-horizontal.right {
    right: -4rem;
}

.c-wire-horizontal.left {
    left: -4rem;
}

/* The travelling light pulse horizontal */
.c-wire-horizontal::after {
    content: '';
    position: absolute;
    top: -1px;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
    border-radius: 2px;
    opacity: 0;
    transition: width 0.3s ease-out, left 0.3s ease-out, right 0.3s ease-out, opacity 0.3s ease;
}

/* Hover activates horizontal wire glow */
.c-node-wrapper.left:hover .c-wire-horizontal::after {
    width: 100%;
    left: 0;
    opacity: 1;
}

.c-node-wrapper.left .c-wire-horizontal::after {
    left: 0;
}

.c-node-wrapper.right:hover .c-wire-horizontal::after {
    width: 100%;
    right: 0;
    opacity: 1;
}

.c-node-wrapper.right .c-wire-horizontal::after {
    right: 0;
}

/* CENTRAL SPINE */
.c-spine {
    position: absolute;
    top: 2rem;
    /* Dead center of Row 1 roughly */
    bottom: -3.5rem;
    /* Extends right down to the target button */
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: rgba(198, 169, 32, 0.2);
    z-index: 0;
}

.c-spine-glow {
    position: absolute;
    left: -1px;
    width: 3px;
    height: 0;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
    transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 4px;
    opacity: 0;
}

/* Full height drop from row 1 */
.c-spine-glow.full {
    top: 0;
}

.c-node-wrapper.row-1:hover~.c-spine .c-spine-glow.full {
    height: 100%;
    opacity: 1;
    transition-delay: 0.2s;
    /* Give horizontal wire a headstart */
}

/* Half height drop from row 2 */
.c-spine-glow.half {
    bottom: 0;
}

.c-node-wrapper.row-2:hover~.c-spine .c-spine-glow.half {
    height: calc(100% - 6.5rem);
    /* Start roughly right below row 1 gap */
    opacity: 1;
    transition-delay: 0.2s;
}

/* Spacers */
.spacing-small {
    height: 2rem;
}

.spacing-medium {
    height: 4rem;
}

.spacing-large {
    height: 8rem;
}

/* =========================================================================
   Footer
   ========================================================================= */
/* =========================================================================
   Architectural Footer
   ========================================================================= */
.footer {
    padding: 2.5rem 5vw 2rem;
    border-top: 1px solid rgba(198, 169, 32, 0.1);
    background: linear-gradient(to bottom, rgba(16, 16, 16, 1), rgba(11, 11, 11, 1));
}



/* LEFT COLUMN: Identity & Continuity */
.footer-column.left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand {
    font-size: 1.75rem;
    letter-spacing: 0.1em;
    color: #ffffff;
    font-family: var(--font-serif);
}

.operational-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    opacity: 0.8;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-column.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-link svg {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-social-link:hover svg {
    color: var(--accent-gold);
    opacity: 1;
    transform: scale(1.1);
}

.press-request {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.6;
}

.press-email {
    color: var(--accent-gold);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.press-email:hover {
    opacity: 1;
}



/* RIGHT COLUMN: Governance & Hash */
.footer-column.right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
}

.hash-container {
    width: 100%;
    max-width: 240px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(198, 169, 32, 0.1);
    padding: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.hash-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.hash-reel {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    color: var(--accent-gold);
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-gold);
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.return-surface {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: opacity 0.3s ease;
}

.return-surface:hover {
    opacity: 0.8;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* =========================================================================
   Animations & Motion
   ========================================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Sequence Reveal for Children */
.stagger-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s;
}

.fade-in.visible .stagger-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Elite Cinematic Text Reveal */
.elite-reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(8px);
    transition: opacity 1.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 2.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible .elite-reveal {
    opacity: 1;
    transform: translateY(0) scale(1.0);
    filter: blur(0px);
}

.fade-in-logo {
    animation: fadeInLogo 1.5s ease 0.5s forwards;
    opacity: 0;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================================================
   Responsive Adjustments
   ========================================================================= */
@media (max-width: 768px) {

    .content-section,
    .pad-vertical {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 320px;
    }

    .quote-block {
        margin: 3rem 0;
        padding-left: 1.5rem;
    }

    .belief-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .belief-card {
        padding: 2.5rem 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =========================================================================
   Private Access Modal
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #111111;
    border: 1px solid rgba(198, 169, 132, 0.2);
    padding: 3.5rem;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(198, 169, 132, 0.05);
}

.modal-box.modal-large {
    max-width: 800px;
    text-align: left;
    padding: 4.5rem;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-gold);
}

.modal-icon {
    width: 60px;
    margin: 0 auto 1.5rem auto;
    opacity: 0.8;
}

.modal-icon img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(198, 169, 32, 0.3));
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.modal-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Premium Scrollbar for Modals */
.modal-text::-webkit-scrollbar {
    width: 4px;
}

.modal-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.modal-text::-webkit-scrollbar-thumb {
    background: rgba(198, 169, 32, 0.2);
    border-radius: 2px;
}

.modal-text::-webkit-scrollbar-thumb:hover {
    background: rgba(198, 169, 32, 0.4);
}

.modal-actions .btn {
    width: 100% !important;
    flex-shrink: 0;
    /* Force override for modal layout */
}

/* =========================================================================
   Onboarding & Relay Logic
   ========================================================================= */
.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.onboarding-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.onboarding-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    opacity: 0.8;
}

.onboarding-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(198, 169, 132, 0.2);
    padding: 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
}

.onboarding-input:focus {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(198, 169, 132, 0.1);
}

.relay-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 11, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 2.5rem;
    animation: fadeIn 0.4s ease;
}

.relay-overlay.active {
    display: flex !important;
}

.relay-status {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 1.5rem;
}

.relay-progress {
    width: 150px;
    height: 1px;
    background: rgba(198, 169, 132, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.relay-progress::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    animation: progressMovement 2s infinite linear;
}

@keyframes progressMovement {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.success-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 0.8s ease;
}

.success-icon {
    color: var(--accent-gold);
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}