/* 
   THE CHIRON PROJECT - FOUNDER'S LETTER
   Page-specific styles
*/

.letter-hero {
    padding: 204px 0 100px;
    background-color: var(--navy-primary);
    position: relative;
    color: white;
    overflow: hidden;
}

.letter-hero .container {
    position: relative;
    z-index: 5;
}

.letter-hero-label {
    font-family: 'JetBrains Mono', monospace;
    color: var(--signal-red);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.letter-hero-title {
    font-size: 6.5rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 0.95;
    margin: 0 0 24px;
    max-width: 900px;
}

.letter-hero-subtext {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 600px;
    font-weight: 500;
}

/* Hero Schematic Background */
.letter-hero-visual {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

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

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

    to {
        transform: rotate(360deg);
    }
}

.anim-scan {
    animation: scan 12s linear infinite;
}

.anim-rotate {
    animation: rotate 60s linear infinite;
    transform-origin: center;
}

/* Letter Content Section */
.letter-content-section {
    padding: 140px 0;
    background-color: white;
    color: var(--navy-primary);
}

.letter-body-constrained {
    max-width: 830px;
    /* Increased by 15% from 720px */
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

/* Institutional Background Logic */
.letter-bg-ornaments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.letter-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 920px;
    /* Scaled with the body width increase */
    opacity: 0.02;
    filter: grayscale(1);
}

.letter-vertical-rule {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.05);
}

.letter-folio {
    position: absolute;
    left: -60px;
    top: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(15, 23, 42, 0.2);
    letter-spacing: 2px;
    writing-mode: vertical-lr;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .letter-folio {
        display: none;
    }

    .letter-body-constrained {
        padding: 0;
    }
}

.letter-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--navy-primary);
}

.letter-text p {
    margin-bottom: 1.8rem;
}

/* Drop Cap Styling */
.letter-text .drop-cap::first-letter {
    float: left;
    font-family: 'Cormorant', serif;
    font-size: 4.8rem;
    line-height: 1;
    padding: 12px 18px;
    margin-right: 20px;
    margin-top: 8px;
    color: var(--navy-primary);
    font-weight: 700;
    border: 4px solid var(--navy-primary);
    background-color: #f8fafc;
}

/* Pull Quote Styling */
.pull-quote {
    margin: 4rem 0;
    padding: 1.5rem 0 1.5rem 3rem;
    border-left: 2px solid var(--signal-red);
    position: relative;
    font-size: 2.25rem !important;
    font-weight: 500 !important;
    font-style: italic;
    line-height: 1.3 !important;
    color: var(--navy-primary);
}

.pull-quote p {
    margin-bottom: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* Numbered List / Bold Leads */
.letter-list {
    margin: 3rem 0;
    padding-left: 0;
    list-style: none;
}

.letter-list-item {
    margin-bottom: 2rem;
    display: flex;
    gap: 20px;
}

.letter-list-number {
    font-family: 'JetBrains Mono', monospace;
    color: var(--signal-red);
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.letter-list-content {
    font-size: 1.125rem;
    line-height: 1.7;
}

.letter-list-content strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--navy-primary);
}

/* Enhanced Signature Block */
.signature-section {
    margin-top: 6rem;
    padding: 0;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.signature-image {
    max-width: 320px;
    height: auto;
    margin-bottom: 24px;
    opacity: 0.95;
    filter: brightness(0.1) contrast(1.2);
}

.signature-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--navy-primary);
}

.signature-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--slate-gray);
}

/* CTA Section */
.letter-cta {
    padding: 140px 0;
    background-color: #f1f5f9;
    /* Soft cool grey to break up the navy blocks */
    color: var(--navy-primary);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.letter-cta-headline {
    font-size: 3.86rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--navy-primary);
}

.letter-cta-subtext {
    font-size: 1.25rem;
    color: var(--slate-gray);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.letter-cta .cta-primary {
    background-color: var(--navy-primary);
    color: white;
}

.letter-cta .cta-secondary {
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}

.letter-cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .letter-hero-title {
        font-size: 4rem;
    }

    .letter-hero {
        padding: 160px 0 80px;
    }

    .letter-cta-headline {
        font-size: 2.5rem;
    }
}