/* The Vault of Divine Time - Three Witnesses Times Two Methodology */

/* Crimson Text Font - Self-Hosted */
@font-face {
    font-family: 'Crimson Text';
    src: url('fonts/CrimsonText-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('fonts/CrimsonText-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Crimson Text';
    src: url('fonts/CrimsonText-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --vault-black: #0a0e27;
    --chamber-dark: #1a2744;
    --seal-blue: #2d4164;
    --witness-gold: #d4af37;
    --key-bronze: #c9a961;
    --trinity-silver: #d0d5dd;
    --cipher-teal: #3d7f8f;
    --ancient-copper: #d4a574;
    --parchment-light: #f5f1e8;
    --sacred-white: #fdfbf7;
    --scripture-crimson: #b83545;
    --history-emerald: #3d8f6e;
    --math-sapphire: #2e6bae;
}

html {
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', 'Garamond', 'Baskerville', 'Georgia', serif;
    background:
        /* Atmospheric gradients */
        radial-gradient(circle at 30% 20%, rgba(184, 53, 69, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(46, 107, 174, 0.12) 0%, transparent 40%),
        linear-gradient(180deg, var(--chamber-dark) 0%, var(--vault-black) 50%, #070b1f 100%);
    background-attachment: fixed;
    color: var(--sacred-white);
    line-height: 1.75;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* Parallax Sky Scanning Animations - Different speeds for depth */
@keyframes constellation1Drift {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: -10% 2%;
    }
}

@keyframes constellation2Drift {
    0% {
        background-position:
            0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%,
            0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%,
            0 0, 0 0;
    }
    100% {
        background-position:
            1.5% -0.5%, 1.5% -0.5%, 1.5% -0.5%, 1.5% -0.5%, 1.5% -0.5%,
            1.5% -0.5%, 1.5% -0.5%, 1.5% -0.5%, 1.5% -0.5%, 1.5% -0.5%,
            300px 0, 300px 0;
    }
}

/* Clean background - diagonal lines with subtle parallax scroll */

/* Diagonal Lines Pattern - Subtle background texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        /* Diagonal constellation lines pattern */
        linear-gradient(45deg, transparent 0%, transparent 43%, rgba(212, 175, 55, 0.03) 43%, rgba(212, 175, 55, 0.03) 57%, transparent 57%),
        linear-gradient(-45deg, transparent 0%, transparent 43%, rgba(208, 213, 221, 0.03) 43%, rgba(208, 213, 221, 0.03) 57%, transparent 57%);
    background-size: 600px 600px, 600px 600px;
    background-position:
        calc(60px + var(--diagonal-offset, 0px)) var(--diagonal-offset, 0px),
        calc(60px + var(--diagonal-offset, 0px)) var(--diagonal-offset, 0px);
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

/* Hero - The Chamber of Keys */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(30, 42, 58, 0.3) 0%, transparent 70%);
}

/* Witness Pillars - Flanking the Sacred Geometry Frame */
.witness-pillar {
    position: absolute;
    width: 100px;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(212, 175, 55, 0.12) 5%,
        rgba(208, 213, 221, 0.15) 10%,
        rgba(208, 213, 221, 0.15) 90%,
        rgba(212, 175, 55, 0.12) 95%,
        transparent 100%
    );
    border-left: 3px solid var(--witness-gold);
    border-right: 3px solid var(--witness-gold);
}

.witness-pillar.left {
    left: 8%;
}

.witness-pillar.right {
    right: 8%;
}

/* Pillar Capital (top) - Witness Gold */
.witness-pillar::before {
    content: '';
    position: absolute;
    top: 100px;
    left: -10px;
    right: -10px;
    height: 50px;
    background: linear-gradient(135deg, var(--witness-gold) 0%, var(--ancient-copper) 100%);
    border-top: 4px solid var(--trinity-silver);
    border-bottom: 4px solid var(--trinity-silver);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(201, 169, 97, 0.2);
}

/* Pillar Base (bottom) - Trinity Silver */
.witness-pillar::after {
    content: '';
    position: absolute;
    bottom: 100px;
    left: -10px;
    right: -10px;
    height: 50px;
    background: linear-gradient(135deg, var(--trinity-silver) 0%, var(--seal-blue) 100%);
    border-top: 4px solid var(--witness-gold);
    border-bottom: 4px solid var(--witness-gold);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(192, 197, 206, 0.2);
}

/* Trinity Circles - Three Witnesses Visualization */
.trinity-circle {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.15;
}

.trinity-circle.scripture {
    top: 15%;
    left: 15%;
    width: 350px;
    height: 350px;
    border-color: var(--scripture-crimson);
    box-shadow:
        inset 0 0 30px rgba(139, 38, 53, 0.2),
        0 0 30px rgba(139, 38, 53, 0.2);
}

.trinity-circle.history {
    top: 20%;
    right: 12%;
    width: 380px;
    height: 380px;
    border-color: var(--history-emerald);
    box-shadow:
        inset 0 0 30px rgba(45, 95, 78, 0.2),
        0 0 30px rgba(45, 95, 78, 0.2);
}

.trinity-circle.mathematics {
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    border-color: var(--math-sapphire);
    box-shadow:
        inset 0 0 30px rgba(30, 77, 123, 0.2),
        0 0 30px rgba(30, 77, 123, 0.2);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Hero Content */
.hero-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Three Witnesses Times Two Seal */
.methodology-seal {
    width: 140px;
    height: 140px;
    margin: 0 auto 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer Circle - Second Trinity (Scripture + History + Mathematics) */
.outer-trinity {
    position: absolute;
    inset: 0;
    border: 3px solid var(--witness-gold);
    border-radius: 50%;
    box-shadow:
        0 0 0 6px rgba(13, 13, 15, 0.8),
        0 0 15px rgba(201, 169, 97, 0.2),
        inset 0 0 30px rgba(201, 169, 97, 0.1);
}

/* Inner Triangle - First Trinity (Hebrew Bible, New Testament, Quran) */
.inner-trinity {
    position: absolute;
    width: 65px;
    height: 65px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(135deg, var(--scripture-crimson) 0%, var(--math-sapphire) 100%);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(201, 169, 97, 0.3);
}

/* Three Witness Points */
.witness-point {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--witness-gold);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.witness-point.w1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--scripture-crimson);
}

.witness-point.w2 {
    bottom: 0;
    left: 15%;
    background: var(--history-emerald);
}

.witness-point.w3 {
    bottom: 0;
    right: 15%;
    background: var(--math-sapphire);
}

.hero-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--trinity-silver);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--sacred-white);
    text-transform: uppercase;
    letter-spacing: clamp(4px, 1vw, 10px);
    text-shadow:
        0 0 30px rgba(201, 169, 97, 0.3),
        3px 3px 0 rgba(30, 42, 58, 0.5);
}

.hero-title .divine {
    display: block;
    color: var(--witness-gold);
    text-shadow: 0 0 40px rgba(201, 169, 97, 0.5);
}

/* Key Divider - Representing the Eight Keys */
.key-divider {
    width: min(400px, 90%);
    height: 3px;
    background: var(--witness-gold);
    margin: 2.5rem auto;
    position: relative;
    box-shadow: 0 0 6px rgba(201, 169, 97, 0.2);
}

/* Eight Key Markers */
.key-divider::before,
.key-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    height: 1px;
    background:
        repeating-linear-gradient(90deg,
            var(--witness-gold) 0px, var(--witness-gold) 2px,
            transparent 2px, transparent 50px
        );
    transform: translateY(-50%);
}

.key-divider::after {
    background:
        repeating-linear-gradient(90deg,
            var(--trinity-silver) 0px, var(--trinity-silver) 8px,
            transparent 8px, transparent 50px
        );
}

.hero-description {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    line-height: 1.8;
    color: var(--trinity-silver);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 800px;
}

.hero-methodology {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--witness-gold);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    max-width: 700px;
}

.hero-quote {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    font-style: italic;
    color: var(--parchment-light);
    margin-bottom: 3rem;
    padding-left: 2.5rem;
    border-left: 4px solid var(--witness-gold);
    line-height: 1.8;
    box-shadow: -3px 0 20px rgba(201, 169, 97, 0.2);
    max-width: 700px;
    text-align: left;
}

.cta-unlock {
    display: inline-block;
    padding: clamp(1.2rem, 3vw, 1.8rem) clamp(3rem, 8vw, 5.5rem);
    background:
        linear-gradient(135deg, var(--witness-gold) 0%, var(--ancient-copper) 100%);
    color: var(--vault-black);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.8vw, 5px);
    border: 3px solid var(--trinity-silver);
    box-shadow:
        0 0 0 2px var(--vault-black),
        0 0 15px rgba(201, 169, 97, 0.25),
        0 12px 35px rgba(0, 0, 0, 0.6);
    transition: all 0.3s;
    position: relative;
}

.cta-unlock::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--witness-gold);
    opacity: 0.4;
}

.cta-unlock:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 2px var(--vault-black),
        0 0 20px rgba(201, 169, 97, 0.35),
        0 18px 45px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #d4b875 0%, var(--witness-gold) 100%);
}

/* Witness Tablet Frame - Inspired by Persian Cylinder Seal */
.witness-tablet {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.tablet-witness {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.85) 0%, rgba(10, 14, 39, 0.85) 100%);
    border: 10px solid var(--seal-blue);
    border-top: 14px solid var(--seal-blue);
    border-bottom: 14px solid var(--seal-blue);
    box-shadow:
        inset 0 0 0 4px var(--witness-gold),
        inset 0 0 0 8px var(--trinity-silver),
        inset 0 0 0 12px rgba(26, 39, 68, 0.3),
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 3px var(--ancient-copper);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem;
    backdrop-filter: blur(15px);
}

/* Sacred Pattern Background */
.tablet-witness::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 3px solid var(--witness-gold);
    background-image:
        radial-gradient(circle at center, var(--trinity-silver) 2px, transparent 2px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.08;
    pointer-events: none;
}

/* Corner Ornaments */
.witness-ornament {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--witness-gold);
}

.witness-ornament.tl {
    top: 18px;
    left: 18px;
    border-right: none;
    border-bottom: none;
    border-top-color: var(--trinity-silver);
    border-left-color: var(--trinity-silver);
}

.witness-ornament.tr {
    top: 18px;
    right: 18px;
    border-left: none;
    border-bottom: none;
    border-top-color: var(--trinity-silver);
    border-right-color: var(--trinity-silver);
}

.witness-ornament.bl {
    bottom: 18px;
    left: 18px;
    border-right: none;
    border-top: none;
    border-bottom-color: var(--witness-gold);
    border-left-color: var(--witness-gold);
}

.witness-ornament.br {
    bottom: 18px;
    right: 18px;
    border-left: none;
    border-top: none;
    border-bottom-color: var(--witness-gold);
    border-right-color: var(--witness-gold);
}

/* Center Medallion - Eight Keys */
.witness-ornament::after {
    content: '✦';
    position: absolute;
    color: var(--trinity-silver);
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(208, 213, 221, 0.5);
}

.witness-ornament.tl::after {
    bottom: -15px;
    right: -15px;
}

.witness-ornament.tr::after {
    bottom: -15px;
    left: -15px;
}

.witness-ornament.bl::after {
    top: -15px;
    right: -15px;
}

.witness-ornament.br::after {
    top: -15px;
    left: -15px;
}

/* Eight Orbital Points - Representing Eight Keys */
.orbital-point {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--witness-gold);
    border: 2px solid var(--chamber-dark);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
    z-index: 10;
}

.orbital-point::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.6rem;
    color: var(--vault-black);
    opacity: 0.6;
}

.orbital-point.p1 { top: -7px; left: 50%; transform: translateX(-50%); }
.orbital-point.p2 { top: 15%; right: -7px; }
.orbital-point.p3 { top: 50%; right: -7px; transform: translateY(-50%); }
.orbital-point.p4 { bottom: 15%; right: -7px; }
.orbital-point.p5 { bottom: -7px; left: 50%; transform: translateX(-50%); }
.orbital-point.p6 { bottom: 15%; left: -7px; }
.orbital-point.p7 { top: 50%; left: -7px; transform: translateY(-50%); }
.orbital-point.p8 { top: 15%; left: -7px; }

.book-placeholder {
    text-align: center;
    color: var(--trinity-silver);
    font-size: 0.9rem;
    font-style: italic;
    padding: 2rem;
}

.book-cover-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.book-collection-link {
    position: relative;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.view-collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 0.8) 100%);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.book-collection-link:hover .view-collection-overlay {
    transform: translateY(0);
}

.book-collection-link:hover .book-cover-image {
    transform: scale(1.02);
}

.collection-text {
    color: var(--witness-gold);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    text-align: center;
}

/* Section Styling */
section {
    padding: 10rem 2rem;
    position: relative;
}

/* First section - less top padding */
section.about {
    padding-top: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cosmic Seal */
.cosmic-seal {
    width: 90px;
    height: 90px;
    background:
        radial-gradient(circle, var(--witness-gold) 0%, var(--ancient-copper) 100%);
    border: 3px solid var(--trinity-silver);
    border-radius: 50%;
    margin-bottom: 2.5rem;
    box-shadow:
        0 0 0 6px rgba(10, 14, 39, 0.8),
        0 0 0 8px var(--witness-gold),
        0 0 20px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    animation: rotate 60s linear infinite reverse;
}

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

.cosmic-seal::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-style: dashed;
}

.cosmic-seal::after {
    content: '⁂';
    position: absolute;
    font-size: 2rem;
    color: var(--vault-black);
    animation: rotate 60s linear infinite reverse;
}

.witness-marker {
    width: 160px;
    height: 3px;
    background: var(--witness-gold);
    margin: 0 auto 2.5rem;
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.2);
    position: relative;
}

.witness-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background:
        repeating-linear-gradient(90deg,
            var(--scripture-crimson) 0px, var(--scripture-crimson) 53.3px,
            var(--history-emerald) 53.3px, var(--history-emerald) 106.6px,
            var(--math-sapphire) 106.6px, var(--math-sapphire) 160px
        );
    transform: translateY(-50%);
}

.section-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 10px;
    color: var(--trinity-silver);
    font-weight: 300;
    margin-bottom: 1rem;
    display: block;
}

.section-label:last-of-type {
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--sacred-white);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: clamp(4px, 1vw, 10px);
    text-shadow: 0 0 30px rgba(201, 169, 97, 0.3);
    white-space: nowrap;
}

.witness-line {
    width: 250px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--witness-gold) 15%,
        var(--trinity-silver) 50%,
        var(--witness-gold) 85%,
        transparent);
    margin: 0 auto;
    box-shadow: 0 0 6px rgba(201, 169, 97, 0.15);
}

/* About - The Chamber of Understanding */
.about {
    background:
        radial-gradient(circle at 50% 50%, rgba(30, 77, 123, 0.15) 0%, transparent 70%);
}

.chamber-panel {
    max-width: 1100px;
    margin: 0 auto;
    background:
        linear-gradient(135deg, rgba(26, 39, 68, 1) 0%, rgba(10, 14, 39, 1) 100%);
    border: 3px solid var(--witness-gold);
    box-shadow:
        inset 0 0 0 1px var(--trinity-silver),
        inset 0 0 50px rgba(212, 175, 55, 0.15),
        0 0 25px rgba(212, 175, 55, 0.2),
        0 35px 90px rgba(0, 0, 0, 0.6);
    padding: 5.5rem 5rem;
    position: relative;
    z-index: 10;
}

.chamber-panel::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 1px solid var(--witness-gold);
    opacity: 0.15;
    pointer-events: none;
}

/* Corner Star Symbols */
.corner-star {
    position: absolute;
    font-size: 1.8rem;
    color: var(--witness-gold);
    opacity: 0.3;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.corner-star.tl { top: 35px; left: 35px; }
.corner-star.tr { top: 35px; right: 35px; }
.corner-star.bl { bottom: 35px; left: 35px; }
.corner-star.br { bottom: 35px; right: 35px; }

.chamber-content {
    position: relative;
    z-index: 1;
}

.chamber-content p {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--sacred-white);
    font-weight: 300;
}

.chamber-content p:last-child {
    margin-bottom: 0;
}

.chamber-content ul,
.chamber-content li {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

/* Divine Timeline Section */
.divine-timeline {
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    padding: 6rem 2rem;
    border-top: 2px solid var(--witness-gold);
    border-bottom: 2px solid var(--witness-gold);
    box-shadow:
        inset 0 2px 20px rgba(201, 169, 97, 0.1),
        inset 0 -2px 20px rgba(201, 169, 97, 0.1);
}

.timeline-container {
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-track {
    padding: 2rem 1rem;
    position: relative;
    background:
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(10, 25, 55, 0.65) 0%, rgba(10, 25, 55, 0.3) 40%, transparent 85%);
}

.timeline-level-1 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    padding: 50px 20px;
}

/* Row for dates */
.timeline-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-dates .solar-date {
    flex: 1;
    text-align: center;
}

/* Row for markers and line */
.timeline-markers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.marker-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Single timeline line through markers */
.timeline-markers::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--witness-gold);
    opacity: 0.4;
    transform: translateY(-50%);
    z-index: 0;
}

/* Row for event names */
.timeline-names {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-names .event-name {
    flex: 1;
    text-align: center;
}

/* Row for linear years */
.timeline-years {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-years .linear-ly {
    flex: 1;
    text-align: center;
}

/* Row 5: Cyclical measurements */
.timeline-cyclical {
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.7;
}

.timeline-event {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    text-align: center;
    z-index: 1;
}

.timeline-arrow {
    font-size: 1.5rem;
    color: var(--witness-gold);
    opacity: 0.6;
    flex: 0 0 auto;
    min-width: 40px;
    text-align: center;
    z-index: 2;
}

.solar-date {
    font-size: 0.95rem;
    color: var(--witness-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

.event-marker {
    width: 50px;
    height: 50px;
    border: 2px solid var(--trinity-silver);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(26, 39, 68, 0.9) 0%, rgba(10, 14, 39, 0.95) 100%);
    box-shadow:
        inset 0 0 0 1px var(--witness-gold),
        0 0 15px rgba(212, 175, 55, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.event-marker.bookend {
    border-color: var(--witness-gold);
    border-width: 3px;
    box-shadow:
        inset 0 0 0 1px var(--trinity-silver),
        0 0 20px rgba(212, 175, 55, 0.5),
        0 12px 35px rgba(212, 175, 55, 0.3);
}

.marker-symbol {
    font-size: 1.2rem;
    color: var(--witness-gold);
}

.event-marker.bookend .marker-symbol {
    font-size: 1.4rem;
    color: var(--trinity-silver);
}

.event-name {
    font-size: 1.15rem;
    color: var(--sacred-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
}

.linear-ly {
    font-size: 1rem;
    color: var(--witness-gold);
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
}

.edge-spacer {
    flex: 0.5;
}

.cyclical-gap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
}

.cyclical-arch {
    width: 60%;
    height: 40px;
    position: relative;
    margin: 0 auto;
}

.cyclical-arch svg {
    width: 100%;
    height: 100%;
}

.cyclical-arch path {
    stroke: rgba(208, 213, 221, 0.3);
    stroke-width: 1.5;
    fill: none;
    marker-end: url(#arrowhead);
}

/* SVG arrow marker */
.cyclical-arch marker {
    overflow: visible;
}

.cyclical-measure {
    font-size: 0.95rem;
    color: var(--trinity-silver);
    font-weight: 300;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.cyclical-gap.bookend .cyclical-measure {
    color: var(--witness-gold);
    opacity: 0.7;
}

/* Newsletter - The Convergence */
.newsletter {
    background:
        radial-gradient(circle at 50% 50%, rgba(139, 38, 53, 0.15) 0%, transparent 70%);
    border-top: 3px solid var(--witness-gold);
    border-bottom: 3px solid var(--witness-gold);
    box-shadow:
        inset 0 3px 25px rgba(201, 169, 97, 0.2),
        inset 0 -3px 25px rgba(201, 169, 97, 0.2);
}

.newsletter-container {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-description {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--trinity-silver);
    line-height: 1.8;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.witness-form {
    display: flex;
    gap: 0;
    background: rgba(26, 39, 68, 0.7);
    border: 3px solid var(--witness-gold);
    box-shadow:
        inset 0 0 0 1px var(--trinity-silver),
        0 0 20px rgba(212, 175, 55, 0.25),
        0 18px 45px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(15px);
}

.witness-form::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid var(--witness-gold);
    opacity: 0.3;
    pointer-events: none;
}

.witness-form input {
    flex: 1;
    padding: 2.2rem 3rem;
    background: transparent;
    border: none;
    border-right: 2px solid var(--witness-gold);
    color: var(--sacred-white);
    font-size: 1.15rem;
    font-family: 'Crimson Text', 'Garamond', serif;
    font-weight: 300;
}

.witness-form input::placeholder {
    color: var(--trinity-silver);
    opacity: 0.5;
}

.witness-form input:focus {
    outline: none;
    background: rgba(201, 169, 97, 0.08);
    box-shadow: inset 0 0 25px rgba(201, 169, 97, 0.15);
}

.witness-form button {
    padding: 2.2rem 4.5rem;
    background: linear-gradient(135deg, var(--witness-gold) 0%, var(--ancient-copper) 100%);
    border: none;
    color: var(--vault-black);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Crimson Text', 'Garamond', serif;
    font-size: 1.05rem;
}

.witness-form button:hover {
    background: linear-gradient(135deg, #d4b875 0%, var(--witness-gold) 100%);
    box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.3);
}

/* Support - The Offering */
.support {
    background:
        radial-gradient(circle at 50% 50%, rgba(45, 95, 78, 0.15) 0%, transparent 70%);
}

/* Methodology - Three Witnesses Times Two */
.methodology {
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
}

.offering-chamber {
    max-width: 950px;
    margin: 0 auto;
    background:
        linear-gradient(135deg, rgba(26, 39, 68, 1) 0%, rgba(10, 14, 39, 1) 100%);
    border: 3px solid var(--trinity-silver);
    box-shadow:
        inset 0 0 0 1px var(--witness-gold),
        0 0 25px rgba(208, 213, 221, 0.2),
        0 35px 90px rgba(0, 0, 0, 0.6);
    padding: 6rem 5.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.offering-chamber::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 1px solid var(--trinity-silver);
    opacity: 0.15;
    pointer-events: none;
}

.convergence-seal {
    width: 100px;
    height: 100px;
    background:
        radial-gradient(circle, var(--seal-blue) 0%, var(--chamber-dark) 100%);
    border: 4px solid var(--witness-gold);
    border-radius: 50%;
    margin: 0 auto 4rem;
    box-shadow:
        0 0 0 3px var(--vault-black),
        0 0 15px rgba(212, 175, 55, 0.3),
        inset 0 0 35px rgba(201, 169, 97, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
}

.convergence-seal::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.offering-content {
    position: relative;
    z-index: 1;
}

.offering-content p {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    line-height: 1.8;
    margin-bottom: 4rem;
    color: var(--sacred-white);
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.offering-content ul,
.offering-content li {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
}

.cta-offering {
    display: inline-block;
    padding: clamp(1.2rem, 3vw, 1.8rem) clamp(3rem, 8vw, 5.5rem);
    background: transparent;
    color: var(--witness-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: clamp(2px, 0.8vw, 5px);
    border: 3px solid var(--witness-gold);
    box-shadow:
        0 0 12px rgba(201, 169, 97, 0.15),
        inset 0 0 25px rgba(201, 169, 97, 0.08);
    transition: all 0.3s;
    position: relative;
}

.cta-offering::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid var(--trinity-silver);
    opacity: 0.3;
    pointer-events: none;
}

.cta-offering:hover {
    background: linear-gradient(135deg, var(--witness-gold) 0%, var(--ancient-copper) 100%);
    color: var(--vault-black);
    transform: translateY(-5px);
    box-shadow:
        0 0 18px rgba(201, 169, 97, 0.25),
        0 14px 40px rgba(0, 0, 0, 0.6);
}

/* Footer - The Foundation */
footer {
    background: linear-gradient(135deg, var(--chamber-dark) 0%, var(--vault-black) 100%);
    border-top: 3px solid var(--witness-gold);
    padding: 6rem 2rem 4rem;
    position: relative;
    box-shadow: inset 0 3px 40px rgba(201, 169, 97, 0.2);
}

.footer-witness-line {
    height: 3px;
    background: var(--witness-gold);
    margin-bottom: 5rem;
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.2);
    position: relative;
}

.footer-witness-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg,
            var(--scripture-crimson) 0px, var(--scripture-crimson) 10px,
            transparent 10px, transparent 20px,
            var(--history-emerald) 20px, var(--history-emerald) 30px,
            transparent 30px, transparent 40px,
            var(--math-sapphire) 40px, var(--math-sapphire) 50px,
            transparent 50px, transparent 60px
        );
    opacity: 0.3;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.social-witness {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
}

.social-witness-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--sacred-white);
    padding: 1.5rem 2.5rem;
    background: rgba(26, 39, 68, 0.7);
    border: 2px solid var(--witness-gold);
    box-shadow:
        inset 0 0 0 1px var(--trinity-silver),
        0 0 20px rgba(212, 175, 55, 0.2),
        0 12px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    position: relative;
    backdrop-filter: blur(10px);
    min-width: 320px;
    z-index: 10;
}

.social-witness-card:hover {
    transform: translateY(-6px);
    box-shadow:
        inset 0 0 0 1px var(--trinity-silver),
        0 0 25px rgba(201, 169, 97, 0.25),
        0 18px 45px rgba(0, 0, 0, 0.7);
    border-color: var(--trinity-silver);
}

.social-icon-witness {
    width: 32px;
    height: 32px;
    fill: currentColor;
    flex-shrink: 0;
}

.social-name-witness {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.footer-divider {
    width: 350px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--witness-gold) 15%,
        var(--trinity-silver) 50%,
        var(--witness-gold) 85%,
        transparent);
    margin: 4rem auto;
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.15);
}

.copyright {
    font-size: 0.95rem;
    color: var(--trinity-silver);
    letter-spacing: 2px;
    font-weight: 300;
}

/* Responsive */
@media (max-width: 1200px) {
    .witness-pillar {
        display: none;
    }
}

/* Hide mobile timeline on desktop */
.timeline-level-mobile {
    display: none;
}

@media (max-width: 768px) {
    .witness-tablet {
        max-width: 420px;
    }

    .section-label {
        letter-spacing: 1.5px;
        font-size: 0.95rem;
        word-wrap: break-word;
        max-width: 90vw;
    }

    .section-label:last-of-type {
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 4rem);
        padding: 0 1rem;
    }

    /* Daniel J Cross larger on mobile */
    .about .section-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .section-header {
        padding: 0 1rem;
    }

    .chamber-content {
        padding: 0 1rem;
    }

    .offering-content {
        padding: 0 1rem;
    }

    .chamber-panel {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .offering-chamber {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .social-witness {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 5rem;
    }

    .social-witness-card {
        min-width: auto;
        width: 100%;
        padding: 1.25rem 1.75rem;
    }

    .witness-form {
        flex-direction: column;
    }

    .witness-form input {
        border-right: none;
        border-bottom: 2px solid var(--witness-gold);
        padding: 1.8rem 2rem;
    }

    .witness-form button {
        padding: 1.8rem 3rem;
    }

    .trinity-circle {
        display: none;
    }

    .cta-unlock::before {
        display: none;
    }

    .chamber-panel,
    .offering-chamber {
        padding: 3rem 2rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    section {
        padding: 6rem 1rem;
    }

    section.about {
        padding-top: 2rem;
    }

    .methodology-seal {
        width: 120px;
        height: 120px;
    }

    .cosmic-seal {
        width: 75px;
        height: 75px;
        font-size: 2rem;
    }

    .hero-quote {
        padding-left: 1.5rem;
        border-left-width: 3px;
    }

    .divine-timeline {
        padding: 2rem 0.5rem;
    }

    /* Hide desktop timeline on mobile */
    .timeline-level-1 {
        display: none;
    }

    /* Show mobile timeline */
    .timeline-level-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.5rem;
        position: relative;
    }

    /* Vertical line through markers - perfectly centered */
    .timeline-level-mobile::before {
        content: '';
        position: absolute;
        /* Container padding + date width + gap + half marker = perfect center */
        left: calc(0.5rem + 65px + 0.5rem + 25px);
        top: 5%;
        bottom: 5%;
        width: 2px;
        background: var(--witness-gold);
        opacity: 0.4;
        z-index: 0;
    }

    /* Each row */
    .timeline-row {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    /* Column widths and alignment - matching desktop styling */
    .timeline-col.date {
        width: 65px;
        text-align: right;
        font-size: 0.85rem;
        color: var(--witness-gold);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 300;
        flex-shrink: 0;
    }

    .timeline-col.marker {
        width: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }

    .timeline-col.ly {
        width: 65px;
        text-align: left;
        font-size: 0.85rem;
        color: var(--witness-gold);
        font-weight: 400;
        letter-spacing: 1.5px;
        flex-shrink: 0;
    }

    .timeline-col.name {
        flex: 1;
        text-align: left;
        font-size: 0.95rem;
        color: var(--sacred-white);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 400;
    }

    /* Mobile cyclical measurements between rows */
    .timeline-cyclical-mobile {
        display: flex;
        align-items: center;
        gap: 0;
        padding-left: calc(0.5rem + 65px + 0.5rem + 25px);
        opacity: 0.7;
        margin: 0;
    }

    .cyclical-mobile-arch {
        width: 35px;
        height: 50px;
        flex-shrink: 0;
    }

    .cyclical-mobile-arch svg {
        width: 100%;
        height: 100%;
    }

    .cyclical-mobile-text {
        font-size: 0.8rem;
        color: var(--trinity-silver);
        font-weight: 400;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .cyclical-arch {
        width: 30px;
        height: 50px;
        transform: rotate(90deg);
    }

    .cyclical-measure {
        font-size: 0.7rem;
    }

    .timeline-event {
        width: 100%;
    }

    .timeline-arrow {
        transform: rotate(90deg);
        min-width: auto;
    }

    .event-marker {
        width: 40px;
        height: 40px;
    }

    .marker-symbol {
        font-size: 1rem;
    }

    .event-marker.bookend .marker-symbol {
        font-size: 1.2rem;
    }

    .event-name {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        line-height: 1.3;
    }

    .solar-date {
        font-size: 0.75rem;
    }

    .linear-ly {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .witness-tablet {
        max-width: 320px;
    }

    .tablet-witness {
        padding: 2rem;
    }

    .methodology-seal {
        width: 100px;
        height: 100px;
    }

    .cosmic-seal {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
    }

    .witness-form input,
    .witness-form button {
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes fadeInVault {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-container,
.chamber-panel,
.newsletter-container,
.offering-chamber {
    animation: fadeInVault 1.5s ease-out;
}

@keyframes unlockGlow {
    0%, 100% {
        box-shadow:
            0 0 0 2px var(--vault-black),
            0 0 15px rgba(201, 169, 97, 0.25),
            0 12px 35px rgba(0, 0, 0, 0.6);
    }
    50% {
        box-shadow:
            0 0 0 2px var(--vault-black),
            0 0 20px rgba(201, 169, 97, 0.35),
            0 12px 35px rgba(201, 169, 97, 0.15);
    }
}

.cta-unlock {
    animation: unlockGlow 4s ease-in-out infinite;
}

@keyframes keyPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
    }
}

.orbital-point {
    animation: keyPulse 3s ease-in-out infinite;
}

.orbital-point.p1 { animation-delay: 0s; }
.orbital-point.p2 { animation-delay: 0.375s; }
.orbital-point.p3 { animation-delay: 0.75s; }
.orbital-point.p4 { animation-delay: 1.125s; }
.orbital-point.p5 { animation-delay: 1.5s; }
.orbital-point.p6 { animation-delay: 1.875s; }
.orbital-point.p7 { animation-delay: 2.25s; }
.orbital-point.p8 { animation-delay: 2.625s; }
